Package de.hybris.platform.persistence
Class GenericBMPBean
java.lang.Object
de.hybris.platform.persistence.ItemEJB
de.hybris.platform.persistence.ExtensibleItemEJB
de.hybris.platform.persistence.c2l.LocalizableItemEJB
de.hybris.platform.persistence.GenericItemEJB
de.hybris.platform.persistence.GenericBMPBean
- All Implemented Interfaces:
LocalizableItemRemote,ExtensibleItemRemote,EntityInstance,EntityProxy,HomeProxy,GenericItemHome,GenericItemRemote,ItemHome,ItemPermissionFacade,ItemRemote
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
Fields inherited from class de.hybris.platform.persistence.ItemEJB
entityContext, READ, WRITE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckTypeCodes(Collection<PK> pks, int typeCode) create(PK pkBase, ComposedTypeRemote type, EJBPropertyContainer props) ejbCreate(PK pkBase, ComposedTypeRemote type, EJBPropertyContainer props) ejbFindByPKList(Collection<PK> pkList) ejbFindByPrimaryKey(PK pkValue) ejbFindByType(PK typePK) voidejbHomeLoadItemData(ResultSet resultSet) voidejbLoad()voidejbPostCreate(PK param0, ComposedTypeRemote param1, EJBPropertyContainer param2) voidvoidejbStore()findAll()All item beans have a 'findAll' finder.findByPKList(Collection pks) findByPrimaryKey(PK pk) findByType(PK typePK) findChangedAfter(Date param0) A finder which selects all bean modified after a given time.longprotected Objectprotected Mapfinal de.hybris.platform.persistence.GenericBMPBean.GenericItemEntityStatelongprotected Stringinstance method implinstance method impllongbooleanSpecial method indicating that the entity instance is currently within its ejbCreate() state and has not been written to database yet.voidsetACLTimestampInternal(long newvalue) voidsetCreationTimestampInternal(Date newvalue) voidsetModifiedTimestampInternal(Date newvalue) voidsetOwnerPkString(PK newvalue) voidsetPkString(PK newvalue) voidsetPropertyTimestampInternal(long newvalue) voidsetTypePkString(PK newvalue) protected inttypeCode()Methods inherited from class de.hybris.platform.persistence.GenericItemEJB
hasModifiedCachesMethods inherited from class de.hybris.platform.persistence.c2l.LocalizableItemEJB
copyLocalizablePropertiesFrom, createFromTemplate, getAllLocalizedProperties, getAllLocalizedProperties, getLocalizedProperty, getLocalizedPropertyNames, getLocPropertyAccess, hintPropertyCache, postCreateFromTemplate, removeLocalizedProperty, setAllLocalizedProperties, setLocalizedProperty, setLocPropertiesFromContainerMethods inherited from class de.hybris.platform.persistence.ExtensibleItemEJB
clearEntityCaches, copyPropertiesFrom, decryptIfNecessaryWithFallback, decryptValueWithFallback, doCreateInternal, ejbHomeGetPropertyTableName, getAllLanguagePKs, getAllProperties, getAllPropertyAccesses, getModifiedUnlocalizedPropertyCache, getProperty, getPropertyAccess, getPropertyAccess, getPropertyAccessInternal, getPropertyNames, getPropertyRaw, getPropertyTimestamp, getTypeInfoMap, preLoadUnlocalizedProperties, removeProperty, removePropertyData, setAllProperties, setPropertiesFromContainer, setProperty, typeChanged, updatePropertyVersion, warnOnDecryptionError, writePropertyCachesMethods inherited from class de.hybris.platform.persistence.ItemEJB
checkItemPermission, checkOwnGlobalPermission, copyComposedTypeFromTemplate, doCreateInternal, doPostCreateInternal, ejbHomeGetItemTableName, ejbHomeGetOwnJNDIName, getCachedValueForReading, getCachedValueForReadingIfAvailable, getCachedValuesStartingWith, getCacheKey, getComposedType, getCreationTime, getDefaultType, getEntityContext, getGlobalPermissionPKs, getModifiedTime, getOrAddCacheKey, getOwner, getPermissionPKs, getPK, getPrincipalToBooleanListMap, getRestrictedPrincipalPKs, getTypeKey, hasJNDIName, loadItemData, logACLCacheChange, needsStoring, quoteSQLStringLiteralForQuery, remove, removeACLEntries, removeGlobalPermission, removeGlobalPermissions, removePermission, removePermissions, setComposedType, setCreationTime, setEntityContext, setGlobalPermission, setGlobalPermissions, setModifiedTime, setModifiedTimestamp, setNeedsStoring, setOwner, setOwnerRef, setPermission, setPermissions, setPrincipalToBooleanListMap, skipRemovePermission, skipSetPermission, storeCaches, wasModifiedSince, writeACLEntriesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.persistence.framework.EntityProxy
getPKMethods inherited from interface de.hybris.platform.persistence.ExtensibleItemRemote
copyPropertiesFrom, getAllProperties, getProperty, getPropertyNames, getPropertyRaw, getPropertyTimestamp, getTypeInfoMap, removeProperty, setAllProperties, setPropertyMethods inherited from interface de.hybris.platform.persistence.ItemHome
loadItemDataMethods inherited from interface de.hybris.platform.persistence.ItemRemote
getComposedType, getCreationTime, getModifiedTime, getOwner, getTypeKey, hasJNDIName, remove, setComposedType, setCreationTime, setModifiedTime, setOwner, setOwnerRef, wasModifiedSinceMethods inherited from interface de.hybris.platform.persistence.c2l.LocalizableItemRemote
copyLocalizablePropertiesFrom, getAllLocalizedProperties, getAllLocalizedProperties, getLocalizedProperty, getLocalizedPropertyNames, hintPropertyCache, removeLocalizedProperty, setAllLocalizedProperties, setLocalizedProperty
-
Constructor Details
-
GenericBMPBean
public GenericBMPBean()
-
-
Method Details
-
getHJMPTS
public long getHJMPTS()- Specified by:
getHJMPTSin interfaceItemRemote- Specified by:
getHJMPTSin classItemEJB
-
ejbLoad
public void ejbLoad()- Specified by:
ejbLoadin interfaceEntityInstance- Overrides:
ejbLoadin classItemEJB- Throws:
YNoSuchEntityException- is there is no item for the given pk
-
getEntityState
public final de.hybris.platform.persistence.GenericBMPBean.GenericItemEntityState getEntityState() -
ejbStore
public void ejbStore()- Specified by:
ejbStorein interfaceEntityInstance- Overrides:
ejbStorein classItemEJB
-
typeCode
protected int typeCode()- Overrides:
typeCodein classGenericItemEJB- Returns:
- a unique typecode for this item type. Used for wrapping entity beans to the jalo layer.
-
isBeforeCreate
public boolean isBeforeCreate()Description copied from class:ItemEJBSpecial method indicating that the entity instance is currently within its ejbCreate() state and has not been written to database yet.- Specified by:
isBeforeCreatein classItemEJB
-
ejbCreate
- Overrides:
ejbCreatein classGenericItemEJB
-
create
-
ejbPostCreate
- Overrides:
ejbPostCreatein classGenericItemEJB
-
ejbRemove
public void ejbRemove()- Specified by:
ejbRemovein interfaceEntityInstance- Overrides:
ejbRemovein classExtensibleItemEJB
-
ejbHomeLoadItemData
- Overrides:
ejbHomeLoadItemDatain classItemEJB
-
getPkString
- Specified by:
getPkStringin interfaceItemRemote- Specified by:
getPkStringin classItemEJB
-
setPkString
- Specified by:
setPkStringin classItemEJB
-
getCreationTimestampInternal
- Specified by:
getCreationTimestampInternalin classItemEJB
-
setCreationTimestampInternal
- Specified by:
setCreationTimestampInternalin classItemEJB
-
getModifiedTimestampInternal
- Specified by:
getModifiedTimestampInternalin classItemEJB
-
setModifiedTimestampInternal
- Specified by:
setModifiedTimestampInternalin classItemEJB
-
getACLTimestampInternal
public long getACLTimestampInternal()- Specified by:
getACLTimestampInternalin classItemEJB
-
setACLTimestampInternal
public void setACLTimestampInternal(long newvalue) - Specified by:
setACLTimestampInternalin classItemEJB
-
getTypePkString
- Specified by:
getTypePkStringin classItemEJB
-
setTypePkString
- Specified by:
setTypePkStringin classItemEJB
-
getOwnerPkString
- Specified by:
getOwnerPkStringin classItemEJB
-
setOwnerPkString
- Specified by:
setOwnerPkStringin classItemEJB
-
getPropertyTimestampInternal
public long getPropertyTimestampInternal()- Specified by:
getPropertyTimestampInternalin classExtensibleItemEJB
-
setPropertyTimestampInternal
public void setPropertyTimestampInternal(long newvalue) - Specified by:
setPropertyTimestampInternalin classExtensibleItemEJB
-
ejbFindByPrimaryKey
- Throws:
YObjectNotFoundException
-
findByPrimaryKey
-
findChangedAfter
Description copied from interface:ItemHomeA finder which selects all bean modified after a given time. This uses the modifiedTimestamp field of the item.- Parameters:
param0- the time to check in milliseconds ( see java.lang.System )- Throws:
YFinderException
-
ejbFindAll
- Throws:
YFinderException
-
findAll
Description copied from interface:ItemHomeAll item beans have a 'findAll' finder. So dont define another 'findAll' finder in a subclassed item !- Throws:
YFinderException
-
checkTypeCodes
-
ejbFindByPKList
- Throws:
YFinderException
-
ejbFindByType
- Throws:
YFinderException
-
findByType
- Throws:
YFinderException
-
findByPKList
- Throws:
YFinderException
-
getItemTableNameImpl
Description copied from class:ItemEJBinstance method impl- Specified by:
getItemTableNameImplin classItemEJB
-
getOwnJNDIName
Description copied from class:ItemEJBinstance method impl- Specified by:
getOwnJNDINamein interfaceItemHome- Specified by:
getOwnJNDINamein classItemEJB- Returns:
- the item's JNDI name
-
getPropertyTableNameImpl
- Specified by:
getPropertyTableNameImplin classExtensibleItemEJB
-
getCachedValueForModification
- Overrides:
getCachedValueForModificationin classItemEJB
-
getCacheKeyMap
- Specified by:
getCacheKeyMapin classItemEJB
-