- 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
Persistence interface for stored bundles.
- Author:
- harald
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringattribute name for database column 'blocale'.static final Stringattribute name for database column 'bname'.static final intmaximum number of characters for 'locale'.static final intmaximum number of characters for 'name'.static final Stringrelation name for 'composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys)'. -
Method Summary
Modifier and TypeMethodDescriptionorg.tentackle.misc.TrackedList<StoredBundle> findByName(String name) Finds all bundles (one for each locale) for a given name.findByNameAndLocale(String name, 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).Gets the attribute locale.getName()Gets the attribute name.booleanReturns whether Keys is loaded.selectByUniqueDomainKey(String name, String locale) 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.voidSets the attribute locale.voidSets the attribute name.Methods inherited from interface org.tentackle.pdo.DomainContextDependable
createValidContext, determineContextId, getBaseContext, getContextId, isDomainContextImmutable, setDomainContext, setDomainContextImmutableMethods inherited from interface org.tentackle.pdo.DomainContextProvider
getDomainContext, on, on, op, opMethods inherited from interface org.tentackle.misc.Identifiable
toGenericStringMethods inherited from interface org.tentackle.misc.Immutable
getImmutableLoggingLevel, isFinallyImmutable, isImmutable, setFinallyImmutable, setImmutable, setImmutableLoggingLevelMethods inherited from interface org.tentackle.misc.Modifiable
isModifiedMethods inherited from interface org.tentackle.pdo.PdoProvider
getPdo, on, onMethods inherited from interface org.tentackle.pdo.PersistenceDelegate
getDomainDelegateMethods 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, validateMethods inherited from interface org.tentackle.pdo.ProxyDelegate
meMethods inherited from interface org.tentackle.validate.ScopeConfigurator
getDefaultScopesMethods inherited from interface org.tentackle.misc.SerialNumbered
isVirginMethods inherited from interface org.tentackle.session.SessionDependable
isSessionImmutable, setSession, setSessionImmutableMethods inherited from interface org.tentackle.session.SessionProvider
getSessionMethods inherited from interface org.tentackle.misc.Snapshotable
copy, createSnapshot, discardSnapshot, discardSnapshots, getSnapshots, isCopy, isSnapshot, revertToSnapshot, setCopyMethods inherited from interface org.tentackle.validate.Validateable
validate
-
Field Details
-
CL_NAME
static final int CL_NAMEmaximum number of characters for 'name'.- See Also:
-
CL_LOCALE
static final int CL_LOCALEmaximum number of characters for 'locale'.- See Also:
-
RN_KEYS
relation name for 'composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys)'.- See Also:
-
AN_NAME
attribute name for database column 'bname'.- See Also:
-
AN_LOCALE
attribute name for database column 'blocale'.- See Also:
-
-
Method Details
-
getName
Gets the attribute name.- Returns:
- the resource bundle name
-
setName
Sets the attribute name.- Parameters:
name- the resource bundle name
-
getLocale
Gets the attribute locale.- Returns:
- the locale, null if default
-
setLocale
Sets the attribute locale.- Parameters:
locale- the locale, null if default
-
selectByUniqueDomainKey
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
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
Selects via cache by unique domain key.- Parameters:
udk- the unique key- Returns:
- the pdo, null if no such object
-
findByName
Finds all bundles (one for each locale) for a given name.- Parameters:
name- the bundle name- Returns:
- the localized bundles
-
findByNameAndLocale
Find the bundle by its name and locale.- Parameters:
name- the bundle namelocale- the locale- Returns:
- the bundle
-
selectByUniqueDomainKeyForCache
Selects via remote cache, if session is remote.- Parameters:
udk- the unique key- Returns:
- the pdo, null if no such object
-