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, java.io.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 java.lang.String AN_LOCALE
      attribute name for database column 'blocale'.
      static java.lang.String AN_NAME
      attribute name for database column 'bname'.
      static int CL_LOCALE
      maximum number of characters for 'locale'.
      static int CL_NAME
      maximum number of characters for 'name'.
      static java.lang.String RN_KEYS
      relation name for 'composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys)'.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.tentackle.misc.TrackedList<StoredBundle> findByName​(java.lang.String name)
      Finds all bundles (one for each locale) for a given name.
      StoredBundle findByNameAndLocale​(java.lang.String name, java.lang.String locale)
      Find the bundle by its name and locale.
      org.tentackle.misc.TrackedList<StoredBundleKey> getKeys()
      Gets composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys).
      java.lang.String getLocale()
      Gets the attribute locale.
      java.lang.String getName()
      Gets the attribute name.
      boolean isKeysLoaded()
      Returns whether Keys is loaded.
      StoredBundle selectByUniqueDomainKey​(java.lang.String name, java.lang.String locale)
      Selects StoredBundle by its unique domain key.
      StoredBundle selectByUniqueDomainKeyForCache​(StoredBundle.StoredBundleUDK udk)
      Selects via remote cache, if session is remote.
      StoredBundle selectCachedByUniqueDomainKey​(StoredBundle.StoredBundleUDK udk)
      Selects via cache by unique domain key.
      StoredBundle selectCachedOnlyByUniqueDomainKey​(StoredBundle.StoredBundleUDK udk)
      Selects from cache by unique domain key but does not load from db if not in cache.
      void setLocale​(java.lang.String locale)
      Sets the attribute locale.
      void setName​(java.lang.String name)
      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, 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
      • 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, getExpiredTableSerials, getId, getModificationCount, getNormText, getRootClassId, getRootId, getSecurityResult, getSerial, getTableName, getTableSerial, getTokenLockObject, getTokenLockTimeout, isAbstract, isCacheable, isCached, isComposite, isDeleted, isEditAllowed, 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, requestTokenLock, reserveId, reserveId, save, select, selectAll, selectAllAsCursor, selectAllCached, selectAllForCache, selectAllIdSerial, selectAllWithExpiredTableSerials, selectByNormText, selectByNormTextAsCursor, selectCached, selectCachedOnly, selectExpiredTableSerials, selectExpiredTableSerials, selectForCache, selectForUpdate, selectMaxId, selectMaxTableSerial, selectSerial, 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 Detail

      • CL_NAME

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

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

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

        static final java.lang.String AN_NAME
        attribute name for database column 'bname'.
        See Also:
        Constant Field Values
      • AN_LOCALE

        static final java.lang.String AN_LOCALE
        attribute name for database column 'blocale'.
        See Also:
        Constant Field Values
    • Method Detail

      • getName

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

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

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

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

        StoredBundle selectByUniqueDomainKey​(java.lang.String name,
                                             java.lang.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​(java.lang.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​(java.lang.String name,
                                         java.lang.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