public abstract class ExtensibleItemEJB extends ItemEJB implements ExtensibleItemRemote
Mainly property access is handled here.
entityContext, READ, WRITE| Constructor and Description |
|---|
ExtensibleItemEJB() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearEntityCaches() |
void |
copyPropertiesFrom(ExtensibleItemRemote ext) |
protected void |
createFromTemplate(ItemRemote template)
sets data from template item.
|
protected java.lang.Object |
decryptIfNecessaryWithFallback(java.lang.String name,
java.lang.Object original) |
protected java.lang.String |
decryptValueWithFallback(ValueEncryptor vc,
java.lang.String name,
java.lang.String original) |
protected PK |
doCreateInternal(PK pk,
ComposedTypeRemote type,
ItemRemote template,
EJBPropertyContainer props) |
java.lang.String |
ejbHomeGetPropertyTableName()
home method impl
|
void |
ejbRemove() |
protected java.util.Collection<PK> |
getAllLanguagePKs() |
java.util.Map<java.lang.String,java.lang.Object> |
getAllProperties()
|
protected java.util.Collection<PropertyAccess> |
getAllPropertyAccesses(boolean forWriting) |
protected EJBPropertyRowCache |
getModifiedUnlocalizedPropertyCache()
used by HJMP to get modifed unloc property cache to save it together with item row itself.
|
java.lang.Object |
getProperty(java.lang.String name)
|
protected PropertyAccess |
getPropertyAccess(java.lang.String name,
boolean forWriting) |
protected PropertyAccess |
getPropertyAccess(java.lang.String name,
PK langPK,
boolean forWriting) |
protected PropertyAccess |
getPropertyAccessInternal(TypeInfoMap info,
int type,
PK langPK,
boolean forWriting,
java.lang.String name) |
java.util.Set<java.lang.String> |
getPropertyNames()
|
java.lang.Object |
getPropertyRaw(java.lang.String name)
Same as
ExtensibleItemRemote.getProperty(String) without instantiating property values which have been saved as
ItemPropertyValue. |
abstract java.lang.String |
getPropertyTableNameImpl() |
long |
getPropertyTimestamp()
external property timestamp access
|
abstract long |
getPropertyTimestampInternal() |
TypeInfoMap |
getTypeInfoMap() |
protected boolean |
hasModifiedCaches()
Checks if a modified property caches exist.
|
protected void |
postCreateFromTemplate(ItemRemote template)
sets (postcreate - )data from template item.
|
protected boolean |
preLoadUnlocalizedProperties()
override to enable/disable unlocalized property cache preloading this applies only when
BuildConstants.NO_UP_TABLES = true !
|
java.lang.Object |
removeProperty(java.lang.String name)
|
protected void |
removePropertyData()
called by HJMP only !!!
|
void |
setAllProperties(EJBPropertyContainer propertyContainer) |
void |
setPropertiesFromContainer(java.util.Map<java.lang.String,java.lang.Object> values) |
java.lang.Object |
setProperty(java.lang.String name,
java.lang.Object value)
|
abstract void |
setPropertyTimestampInternal(long timestamp) |
protected void |
typeChanged(PK oldTypePK,
PK newTypePK) |
protected void |
updatePropertyVersion(long newTS)
sets timestamp in all currently available property caches
|
protected void |
warnOnDecryptionError(java.lang.String name,
java.lang.Exception e) |
protected boolean |
writePropertyCaches()
called by HJMP only !!!
|
checkItemPermission, checkOwnGlobalPermission, copyComposedTypeFromTemplate, doCreateInternal, doPostCreateInternal, ejbHomeGetItemTableName, ejbHomeGetOwnJNDIName, ejbHomeLoadItemData, ejbLoad, ejbStore, getACLTimestampInternal, getCachedValueForModification, getCachedValueForReading, getCachedValueForReadingIfAvailable, getCachedValuesStartingWith, getCacheKey, getCacheKeyMap, getComposedType, getCreationTime, getCreationTimestampInternal, getDefaultType, getEntityContext, getGlobalPermissionPKs, getHJMPTS, getItemTableNameImpl, getModifiedTime, getModifiedTimestampInternal, getOrAddCacheKey, getOwner, getOwnerPkString, getOwnJNDIName, getPermissionPKs, getPK, getPkString, getPrincipalToBooleanListMap, getRestrictedPrincipalPKs, getTypeKey, getTypePkString, hasJNDIName, isBeforeCreate, loadItemData, logACLCacheChange, needsStoring, quoteSQLStringLiteralForQuery, remove, removeACLEntries, removeGlobalPermission, removeGlobalPermissions, removePermission, removePermissions, setACLTimestampInternal, setComposedType, setCreationTime, setCreationTimestampInternal, setEntityContext, setGlobalPermission, setGlobalPermissions, setModifiedTime, setModifiedTimestamp, setModifiedTimestampInternal, setNeedsStoring, setOwner, setOwnerPK, setOwnerPkString, setPermission, setPermissions, setPkString, setPrincipalToBooleanListMap, setTypePkString, skipRemovePermission, skipSetPermission, storeCaches, typeCode, wasModifiedSince, writeACLEntriesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComposedType, getCreationTime, getHJMPTS, getModifiedTime, getOwner, getPkString, getTypeKey, hasJNDIName, remove, setComposedType, setCreationTime, setModifiedTime, setOwner, wasModifiedSincegetPKejbFindByPrimaryKeyfindAll, findByPKList, findByType, findChangedAfterpublic abstract void setPropertyTimestampInternal(long timestamp)
public abstract long getPropertyTimestampInternal()
protected final java.util.Collection<PK> getAllLanguagePKs()
protected java.util.Collection<PropertyAccess> getAllPropertyAccesses(boolean forWriting)
protected PK doCreateInternal(PK pk, ComposedTypeRemote type, ItemRemote template, EJBPropertyContainer props)
protected boolean preLoadUnlocalizedProperties()
public TypeInfoMap getTypeInfoMap()
getTypeInfoMap in interface ExtensibleItemRemoteprotected PropertyAccess getPropertyAccess(java.lang.String name, boolean forWriting)
protected PropertyAccess getPropertyAccess(java.lang.String name, PK langPK, boolean forWriting)
protected final PropertyAccess getPropertyAccessInternal(TypeInfoMap info, int type, PK langPK, boolean forWriting, java.lang.String name)
public java.util.Map<java.lang.String,java.lang.Object> getAllProperties()
getAllProperties in interface ExtensibleItemRemotepublic void setAllProperties(EJBPropertyContainer propertyContainer) throws ConsistencyCheckException
setAllProperties in interface ExtensibleItemRemoteConsistencyCheckException - if the property container contains localized properties, and the called item is not localizablepublic java.lang.Object setProperty(java.lang.String name,
java.lang.Object value)
setProperty in interface ExtensibleItemRemotename - the qualifier if this propertyvalue - the new valuepublic void setPropertiesFromContainer(java.util.Map<java.lang.String,java.lang.Object> values)
public java.lang.Object getProperty(java.lang.String name)
getProperty in interface ExtensibleItemRemotename - the qualifier of the property null if the property was not setprotected java.lang.Object decryptIfNecessaryWithFallback(java.lang.String name,
java.lang.Object original)
protected void warnOnDecryptionError(java.lang.String name,
java.lang.Exception e)
protected java.lang.String decryptValueWithFallback(ValueEncryptor vc, java.lang.String name, java.lang.String original)
public java.lang.Object getPropertyRaw(java.lang.String name)
ExtensibleItemRemoteExtensibleItemRemote.getProperty(String) without instantiating property values which have been saved as
ItemPropertyValue.getPropertyRaw in interface ExtensibleItemRemotepublic java.lang.Object removeProperty(java.lang.String name)
removeProperty in interface ExtensibleItemRemotename - the qualifier of the property null if the property was not setpublic java.util.Set<java.lang.String> getPropertyNames()
getPropertyNames in interface ExtensibleItemRemoteprotected void createFromTemplate(ItemRemote template)
createFromTemplate in class ItemEJBprotected void postCreateFromTemplate(ItemRemote template)
postCreateFromTemplate in class ItemEJBpublic void copyPropertiesFrom(ExtensibleItemRemote ext)
copyPropertiesFrom in interface ExtensibleItemRemoteprotected EJBPropertyRowCache getModifiedUnlocalizedPropertyCache()
protected boolean hasModifiedCaches()
hasModifiedCaches in class ItemEJBItemEJB.hasModifiedCaches()protected final void updatePropertyVersion(long newTS)
public java.lang.String ejbHomeGetPropertyTableName()
public abstract java.lang.String getPropertyTableNameImpl()
protected final boolean writePropertyCaches()
protected final void removePropertyData()
protected void typeChanged(PK oldTypePK, PK newTypePK)
typeChanged in class ItemEJBprotected void clearEntityCaches()
clearEntityCaches in class ItemEJBpublic void ejbRemove()
ejbRemove in interface EntityInstanceejbRemove in class ItemEJBpublic long getPropertyTimestamp()
getPropertyTimestamp in interface ExtensibleItemRemoteCopyright © 2018 SAP SE. All Rights Reserved.