-
- 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.PdoHolder<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.StringAN_LOCALEattribute name for database column 'blocale'.static java.lang.StringAN_NAMEattribute name for database column 'bname'.static intCL_LOCALEmaximum number of characters for 'locale'.static intCL_NAMEmaximum number of characters for 'name'.static java.lang.StringRN_KEYSrelation 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.StoredBundlefindByNameAndLocale(java.lang.String name, java.lang.String locale)Find the bundle by its name and locale.StoredBundlefindByUniqueDomainKeyForCache(StoredBundle.StoredBundleUDK udk)Selects via remote cache, if session is remote.org.tentackle.misc.TrackedList<StoredBundleKey>getKeys()Gets composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys).java.lang.StringgetLocale()Gets the attribute locale.java.lang.StringgetName()Gets the attribute name.booleanisKeysLoaded()Returns whether Keys is loaded.StoredBundleselectByUniqueDomainKey(java.lang.String name, java.lang.String locale)Selects StoredBundle by its unique domain key.StoredBundleselectCachedByUniqueDomainKey(StoredBundle.StoredBundleUDK udk)Selects via cache by unique domain key.StoredBundleselectCachedOnlyByUniqueDomainKey(StoredBundle.StoredBundleUDK udk)Selects from cache by unique domain key but does not load from db if not in cache.voidsetLocale(java.lang.String locale)Sets the attribute locale.voidsetName(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.misc.Immutable
getImmutableLoggingLevel, isFinallyImmutable, isImmutable, setFinallyImmutable, setImmutable, setImmutableLoggingLevel
-
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, getTransientData, 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, save, select, selectAll, selectAllAsCursor, selectAllCached, selectAllForCache, selectAllIdSerial, selectAllWithExpiredTableSerials, selectByNormText, selectByNormTextAsCursor, selectCached, selectCachedOnly, selectExpiredTableSerials, selectExpiredTableSerials, selectForCache, selectForUpdate, selectMaxId, selectMaxTableSerial, selectSerial, setEditedBy, setEditedExpiry, setEditedSince, setExpired, setId, setModified, setNormText, setRootClassId, setRootId, setSerial, setTableSerial, setTokenLockObject, setTransientData, toIdString, transferTokenLock, validate
-
Methods inherited from interface org.tentackle.session.SessionDependable
isSessionImmutable, setSession, setSessionImmutable
-
-
-
-
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 namelocale- 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 namelocale- the locale- Returns:
- the bundle
-
findByUniqueDomainKeyForCache
StoredBundle findByUniqueDomainKeyForCache(StoredBundle.StoredBundleUDK udk)
Selects via remote cache, if session is remote.- Parameters:
udk- the unique key- Returns:
- the pdo, null if no such object
-
-