Interface StoredBundlePersistence

All Superinterfaces:
org.tentackle.pdo.DomainContextDependable, org.tentackle.pdo.DomainContextProvider, org.tentackle.misc.Identifiable, org.tentackle.misc.Immutable, org.tentackle.reflect.Interceptable, org.tentackle.misc.Modifiable, org.tentackle.pdo.PdoProvider<StoredBundle>, org.tentackle.pdo.PersistenceDelegate<StoredBundle>, org.tentackle.pdo.PersistentObject<StoredBundle>, org.tentackle.pdo.ProxyDelegate<StoredBundle>, org.tentackle.validate.ScopeConfigurator, Serializable, org.tentackle.misc.SerialNumbered, org.tentackle.session.SessionDependable, org.tentackle.session.SessionProvider, org.tentackle.misc.Snapshotable<StoredBundle>, org.tentackle.validate.Validateable
All Known Subinterfaces:
StoredBundle
All Known Implementing Classes:
StoredBundlePersistenceImpl

public interface StoredBundlePersistence extends org.tentackle.pdo.PersistentObject<StoredBundle>
Persistence interface for stored bundles.
Author:
harald
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    attribute name for database column 'blocale'.
    static final String
    attribute name for database column 'bname'.
    static final int
    maximum number of characters for 'locale'.
    static final int
    maximum number of characters for 'name'.
    static final String
    relation name for 'composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys)'.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.tentackle.misc.TrackedList<StoredBundle>
    Finds all bundles (one for each locale) for a given name.
    Find the bundle by its name and locale.
    org.tentackle.misc.TrackedList<StoredBundleKey>
    Gets composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys).
    Gets the attribute locale.
    Gets the attribute name.
    boolean
    Returns whether Keys is loaded.
    Selects StoredBundle by its unique domain key.
    Selects via remote cache, if session is remote.
    Selects via cache by unique domain key.
    Selects from cache by unique domain key but does not load from db if not in cache.
    void
    setLocale(String locale)
    Sets the attribute locale.
    void
    Sets the attribute name.

    Methods inherited from interface org.tentackle.pdo.DomainContextDependable

    createValidContext, determineContextId, getBaseContext, getContextId, isDomainContextImmutable, setDomainContext, setDomainContextImmutable

    Methods inherited from interface org.tentackle.pdo.DomainContextProvider

    getDomainContext, on, on, op, op

    Methods inherited from interface org.tentackle.misc.Identifiable

    toGenericString

    Methods inherited from interface org.tentackle.misc.Immutable

    getImmutableLoggingLevel, isFinallyImmutable, isImmutable, setFinallyImmutable, setImmutable, setImmutableLoggingLevel

    Methods inherited from interface org.tentackle.misc.Modifiable

    isModified

    Methods inherited from interface org.tentackle.pdo.PdoProvider

    getPdo, on, on

    Methods inherited from interface org.tentackle.pdo.PersistenceDelegate

    getDomainDelegate

    Methods inherited from interface org.tentackle.pdo.PersistentObject

    attributesModified, containsPattern, delete, differsPersisted, findDuplicate, getCache, getCacheAccessCount, getCacheAccessTime, getClassBaseName, getClassId, getEditedBy, getEditedExpiry, getEditedSince, getEmbeddingParent, getExpiredTableSerials, getId, getModificationCount, getNormText, getRootClassId, getRootId, getSecurityResult, getSerial, getTableName, getTableSerial, getTokenLockTimeout, isAbstract, isCacheable, isCached, isComposite, isDeleted, isEditAllowed, isEmbedded, isExpired, isNew, isNormTextProvided, isPermissionAccepted, isPersistable, isReferenced, isRemovable, isRootClassIdProvided, isRootEntity, isRootEntityOf, isRootIdProvided, isTableSerialProvided, isTokenLockableByMe, isTokenLocked, isTokenLockedBy, isTokenLockedByMe, isTokenLockProvided, isTracked, isValidated, isViewAllowed, isWriteAllowed, loadComponents, markCacheAccess, persist, persistTokenLocked, releaseTokenLock, reload, reloadForUpdate, reloadTokenLocked, requestTokenLock, reserveId, reserveId, save, select, selectAll, selectAllAsCursor, selectAllCached, selectAllForCache, selectAllIdSerial, selectAllWithExpiredTableSerials, selectByNormText, selectByNormTextAsCursor, selectCached, selectCachedOnly, selectExpiredTableSerials, selectExpiredTableSerials, selectForCache, selectForUpdate, selectLatest, selectMaxId, selectMaxTableSerial, selectSerial, selectTokenLocked, setExpired, toIdString, transferTokenLock, validate

    Methods inherited from interface org.tentackle.pdo.ProxyDelegate

    me

    Methods inherited from interface org.tentackle.validate.ScopeConfigurator

    getDefaultScopes

    Methods inherited from interface org.tentackle.misc.SerialNumbered

    isVirgin

    Methods inherited from interface org.tentackle.session.SessionDependable

    isSessionImmutable, setSession, setSessionImmutable

    Methods inherited from interface org.tentackle.session.SessionProvider

    getSession

    Methods inherited from interface org.tentackle.misc.Snapshotable

    copy, createSnapshot, discardSnapshot, discardSnapshots, getSnapshots, isCopy, isSnapshot, revertToSnapshot, setCopy

    Methods inherited from interface org.tentackle.validate.Validateable

    validate
  • Field Details

    • CL_NAME

      static final int CL_NAME
      maximum number of characters for 'name'.
      See Also:
    • CL_LOCALE

      static final int CL_LOCALE
      maximum number of characters for 'locale'.
      See Also:
    • RN_KEYS

      static final String RN_KEYS
      relation name for 'composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys)'.
      See Also:
    • AN_NAME

      static final String AN_NAME
      attribute name for database column 'bname'.
      See Also:
    • AN_LOCALE

      static final String AN_LOCALE
      attribute name for database column 'blocale'.
      See Also:
  • Method Details

    • getName

      @Persistent(ordinal=1, comment="the resource bundle name") @NotNull @DomainKey String getName()
      Gets the attribute name.
      Returns:
      the resource bundle name
    • setName

      void setName(String name)
      Sets the attribute name.
      Parameters:
      name - the resource bundle name
    • getLocale

      @Persistent(ordinal=2, comment="the locale, null if default") @DomainKey String getLocale()
      Gets the attribute locale.
      Returns:
      the locale, null if default
    • setLocale

      void setLocale(String locale)
      Sets the attribute locale.
      Parameters:
      locale - the locale, null if default
    • selectByUniqueDomainKey

      StoredBundle selectByUniqueDomainKey(String name, String locale)
      Selects StoredBundle by its unique domain key.
      Parameters:
      name - the resource bundle name
      locale - the locale, null if default
      Returns:
      the StoredBundle, null if no such PDO
    • getKeys

      @Bindable @Persistent(ordinal=0, comment="Keys") org.tentackle.misc.TrackedList<StoredBundleKey> getKeys()
      Gets composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys).
      Returns:
      keys Keys
    • isKeysLoaded

      @Bindable boolean isKeysLoaded()
      Returns whether Keys is loaded.
      Returns:
      true if getKeys() invoked at least once
    • selectCachedOnlyByUniqueDomainKey

      StoredBundle selectCachedOnlyByUniqueDomainKey(StoredBundle.StoredBundleUDK udk)
      Selects from cache by unique domain key but does not load from db if not in cache.
      Parameters:
      udk - the unique domain key
      Returns:
      the pdo, null if not in cache
    • selectCachedByUniqueDomainKey

      StoredBundle selectCachedByUniqueDomainKey(StoredBundle.StoredBundleUDK udk)
      Selects via cache by unique domain key.
      Parameters:
      udk - the unique key
      Returns:
      the pdo, null if no such object
    • findByName

      org.tentackle.misc.TrackedList<StoredBundle> findByName(String name)
      Finds all bundles (one for each locale) for a given name.
      Parameters:
      name - the bundle name
      Returns:
      the localized bundles
    • findByNameAndLocale

      StoredBundle findByNameAndLocale(String name, String locale)
      Find the bundle by its name and locale.
      Parameters:
      name - the bundle name
      locale - the locale
      Returns:
      the bundle
    • selectByUniqueDomainKeyForCache

      StoredBundle selectByUniqueDomainKeyForCache(StoredBundle.StoredBundleUDK udk)
      Selects via remote cache, if session is remote.
      Parameters:
      udk - the unique key
      Returns:
      the pdo, null if no such object