public interface StoredBundlePersistence extends org.tentackle.pdo.PersistentObject<StoredBundle>
| Modifier and Type | Field and Description |
|---|---|
static String |
AN_LOCALE
attribute name for database column 'blocale'.
|
static 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 String |
RN_KEYS
relation name for 'composite list of StoredBundleKey keys via StoredBundleKey#bundleId (Keys)'.
|
| Modifier and Type | Method and Description |
|---|---|
org.tentackle.misc.TrackedList<StoredBundle> |
findByName(String name)
Finds all bundles (one for each locale) for a given name.
|
StoredBundle |
findByNameAndLocale(String name,
String locale)
Find the bundle by its name and locale.
|
StoredBundle |
findByUniqueDomainKeyForCache(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).
|
String |
getLocale()
Gets the attribute locale.
|
String |
getName()
Gets the attribute name.
|
boolean |
isKeysLoaded()
Returns whether Keys is loaded.
|
StoredBundle |
selectByUniqueDomainKey(String name,
String locale)
Selects StoredBundle by its unique domain key.
|
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(String locale)
Sets the attribute locale.
|
void |
setName(String name)
Sets the attribute name.
|
attributesModified, clonePersistentObject, containsPattern, createCopyInContext, delete, differsPersisted, findDuplicate, getCache, getCacheAccessCount, getCacheAccessTime, getClassBaseName, getClassId, getCopiedObject, getEditedBy, getEditedExpiry, getEditedSince, getExpiredTableSerials, getId, getModificationCount, getNormText, getRootClassId, getRootId, getSecurityResult, getSerial, getTableName, getTableSerial, getTokenLockObject, getTokenLockTimeout, getTransientData, isAbstract, isCacheable, isCached, isComposite, isDeleted, isEditAllowed, isExpired, isImmutable, isNew, isNormTextProvided, isPermissionAccepted, isPersistable, isReferenced, isRemovable, isRootClassIdProvided, isRootEntity, isRootEntityOf, isRootIdProvided, isTableSerialProvided, isTokenLocked, isTokenLockedBy, isTokenLockedByMe, isTokenLockProvided, isTracked, isValidated, isViewAllowed, isWriteAllowed, markCacheAccess, pdo, persist, persistTokenLocked, prepareDelete, releaseTokenLock, reload, reloadLocked, requestTokenLock, reserveId, save, select, selectAll, selectAllAsCursor, selectAllCached, selectAllForCache, selectAllIdSerial, selectAllWithExpiredTableSerials, selectByNormText, selectByNormTextAsCursor, selectCached, selectCachedOnly, selectExpiredTableSerials, selectExpiredTableSerials, selectForCache, selectLocked, selectMaxId, selectMaxTableSerial, selectSerial, setEditedBy, setEditedExpiry, setEditedSince, setExpired, setId, setImmutable, setModified, setNormText, setRootClassId, setRootId, setSerial, setTableSerial, setTokenLockObject, setTransientData, toIdString, transferTokenLock, validatecreateSnapshot, getSnapshots, isSnapshot, revertToSnapshotcreateValidContext, determineContextId, getBaseContext, getContextId, isDomainContextImmutable, setDomainContext, setDomainContextImmutablestatic final int CL_NAME
static final int CL_LOCALE
static final String RN_KEYS
static final String AN_NAME
static final String AN_LOCALE
@Persistent(value="the resource bundle name") @NotNull @DomainKey String getName()
void setName(String name)
name - the resource bundle name@Persistent(value="the locale, null if default") @DomainKey String getLocale()
void setLocale(String locale)
locale - the locale, null if defaultStoredBundle selectByUniqueDomainKey(String name, String locale)
name - the resource bundle namelocale - the locale, null if default@Bindable @Persistent(value="Keys") org.tentackle.misc.TrackedList<StoredBundleKey> getKeys()
@Bindable boolean isKeysLoaded()
StoredBundle selectCachedOnlyByUniqueDomainKey(StoredBundle.StoredBundleUDK udk)
udk - the unique domain keyStoredBundle selectCachedByUniqueDomainKey(StoredBundle.StoredBundleUDK udk)
udk - the unique keyorg.tentackle.misc.TrackedList<StoredBundle> findByName(String name)
name - the bundle nameStoredBundle findByNameAndLocale(String name, String locale)
name - the bundle namelocale - the localeStoredBundle findByUniqueDomainKeyForCache(StoredBundle.StoredBundleUDK udk)
udk - the unique keyTentackle - a domain driven enterprise framework