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
public class GenericBMPBean extends GenericItemEJB
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GenericBMPBean.GenericItemEntityStateCacheUnit
-
Field Summary
-
Fields inherited from class de.hybris.platform.persistence.ItemEJB
entityContext, READ, WRITE
-
-
Constructor Summary
Constructors Constructor Description GenericBMPBean()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
checkTypeCodes(java.util.Collection<PK> pks, int typeCode)
GenericItemRemote
create(PK pkBase, ComposedTypeRemote type, EJBPropertyContainer props)
PK
ejbCreate(PK pkBase, ComposedTypeRemote type, EJBPropertyContainer props)
java.util.Collection
ejbFindAll()
java.util.Collection
ejbFindByPKList(java.util.Collection<PK> pkList)
PK
ejbFindByPrimaryKey(PK pkValue)
java.util.Collection
ejbFindByType(PK typePK)
void
ejbHomeLoadItemData(java.sql.ResultSet resultSet)
void
ejbLoad()
void
ejbPostCreate(PK param0, ComposedTypeRemote param1, EJBPropertyContainer param2)
void
ejbRemove()
void
ejbStore()
java.util.Collection
findAll()
All item beans have a 'findAll' finder.java.util.Collection
findByPKList(java.util.Collection pks)
GenericItemRemote
findByPrimaryKey(PK pk)
java.util.Collection
findByType(PK typePK)
java.util.Collection
findChangedAfter(java.util.Date param0)
A finder which selects all bean modified after a given time.long
getACLTimestampInternal()
protected java.lang.Object
getCachedValueForModification(ItemCacheKey key)
protected java.util.Map
getCacheKeyMap()
java.util.Date
getCreationTimestampInternal()
de.hybris.platform.persistence.GenericBMPBean.GenericItemEntityState
getEntityState()
long
getHJMPTS()
protected java.lang.String
getItemTableNameImpl()
instance method impljava.util.Date
getModifiedTimestampInternal()
PK
getOwnerPkString()
java.lang.String
getOwnJNDIName()
instance method implPK
getPkString()
java.lang.String
getPropertyTableNameImpl()
long
getPropertyTimestampInternal()
PK
getTypePkString()
boolean
isBeforeCreate()
Special method indicating that the entity instance is currently within its ejbCreate() state and has not been written to database yet.void
setACLTimestampInternal(long newvalue)
void
setCreationTimestampInternal(java.util.Date newvalue)
void
setModifiedTimestampInternal(java.util.Date newvalue)
void
setOwnerPkString(PK newvalue)
void
setPkString(PK newvalue)
void
setPropertyTimestampInternal(long newvalue)
void
setTypePkString(PK newvalue)
protected int
typeCode()
-
Methods inherited from class de.hybris.platform.persistence.GenericItemEJB
hasModifiedCaches
-
Methods inherited from class de.hybris.platform.persistence.c2l.LocalizableItemEJB
copyLocalizablePropertiesFrom, createFromTemplate, getAllLocalizedProperties, getAllLocalizedProperties, getLocalizedProperty, getLocalizedPropertyNames, getLocPropertyAccess, hintPropertyCache, postCreateFromTemplate, removeLocalizedProperty, setAllLocalizedProperties, setLocalizedProperty, setLocPropertiesFromContainer
-
Methods 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, writePropertyCaches
-
Methods 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, writeACLEntries
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.persistence.framework.EntityProxy
getPK
-
Methods inherited from interface de.hybris.platform.persistence.ExtensibleItemRemote
copyPropertiesFrom, getAllProperties, getProperty, getPropertyNames, getPropertyRaw, getPropertyTimestamp, getTypeInfoMap, removeProperty, setAllProperties, setProperty
-
Methods inherited from interface de.hybris.platform.persistence.ItemHome
loadItemData
-
Methods inherited from interface de.hybris.platform.persistence.ItemRemote
getComposedType, getCreationTime, getModifiedTime, getOwner, getTypeKey, hasJNDIName, remove, setComposedType, setCreationTime, setModifiedTime, setOwner, setOwnerRef, wasModifiedSince
-
Methods inherited from interface de.hybris.platform.persistence.c2l.LocalizableItemRemote
copyLocalizablePropertiesFrom, getAllLocalizedProperties, getAllLocalizedProperties, getLocalizedProperty, getLocalizedPropertyNames, hintPropertyCache, removeLocalizedProperty, setAllLocalizedProperties, setLocalizedProperty
-
-
-
-
Method Detail
-
getHJMPTS
public long getHJMPTS()
- Specified by:
getHJMPTS
in interfaceItemRemote
- Specified by:
getHJMPTS
in classItemEJB
-
ejbLoad
public void ejbLoad()
- Specified by:
ejbLoad
in interfaceEntityInstance
- Overrides:
ejbLoad
in 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:
ejbStore
in interfaceEntityInstance
- Overrides:
ejbStore
in classItemEJB
-
typeCode
protected int typeCode()
- Overrides:
typeCode
in 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:ItemEJB
Special method indicating that the entity instance is currently within its ejbCreate() state and has not been written to database yet.- Specified by:
isBeforeCreate
in classItemEJB
-
ejbCreate
public PK ejbCreate(PK pkBase, ComposedTypeRemote type, EJBPropertyContainer props)
- Overrides:
ejbCreate
in classGenericItemEJB
-
create
public GenericItemRemote create(PK pkBase, ComposedTypeRemote type, EJBPropertyContainer props)
-
ejbPostCreate
public void ejbPostCreate(PK param0, ComposedTypeRemote param1, EJBPropertyContainer param2)
- Overrides:
ejbPostCreate
in classGenericItemEJB
-
ejbRemove
public void ejbRemove()
- Specified by:
ejbRemove
in interfaceEntityInstance
- Overrides:
ejbRemove
in classExtensibleItemEJB
-
ejbHomeLoadItemData
public void ejbHomeLoadItemData(java.sql.ResultSet resultSet)
- Overrides:
ejbHomeLoadItemData
in classItemEJB
-
getPkString
public PK getPkString()
- Specified by:
getPkString
in interfaceItemRemote
- Specified by:
getPkString
in classItemEJB
-
setPkString
public void setPkString(PK newvalue)
- Specified by:
setPkString
in classItemEJB
-
getCreationTimestampInternal
public java.util.Date getCreationTimestampInternal()
- Specified by:
getCreationTimestampInternal
in classItemEJB
-
setCreationTimestampInternal
public void setCreationTimestampInternal(java.util.Date newvalue)
- Specified by:
setCreationTimestampInternal
in classItemEJB
-
getModifiedTimestampInternal
public java.util.Date getModifiedTimestampInternal()
- Specified by:
getModifiedTimestampInternal
in classItemEJB
-
setModifiedTimestampInternal
public void setModifiedTimestampInternal(java.util.Date newvalue)
- Specified by:
setModifiedTimestampInternal
in classItemEJB
-
getACLTimestampInternal
public long getACLTimestampInternal()
- Specified by:
getACLTimestampInternal
in classItemEJB
-
setACLTimestampInternal
public void setACLTimestampInternal(long newvalue)
- Specified by:
setACLTimestampInternal
in classItemEJB
-
getTypePkString
public PK getTypePkString()
- Specified by:
getTypePkString
in classItemEJB
-
setTypePkString
public void setTypePkString(PK newvalue)
- Specified by:
setTypePkString
in classItemEJB
-
getOwnerPkString
public PK getOwnerPkString()
- Specified by:
getOwnerPkString
in classItemEJB
-
setOwnerPkString
public void setOwnerPkString(PK newvalue)
- Specified by:
setOwnerPkString
in classItemEJB
-
getPropertyTimestampInternal
public long getPropertyTimestampInternal()
- Specified by:
getPropertyTimestampInternal
in classExtensibleItemEJB
-
setPropertyTimestampInternal
public void setPropertyTimestampInternal(long newvalue)
- Specified by:
setPropertyTimestampInternal
in classExtensibleItemEJB
-
ejbFindByPrimaryKey
public PK ejbFindByPrimaryKey(PK pkValue) throws YObjectNotFoundException
- Throws:
YObjectNotFoundException
-
findByPrimaryKey
public GenericItemRemote findByPrimaryKey(PK pk) throws YObjectNotFoundException, YFinderException
-
findChangedAfter
public java.util.Collection findChangedAfter(java.util.Date param0) throws YFinderException
Description copied from interface:ItemHome
A 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
public java.util.Collection ejbFindAll() throws YFinderException
- Throws:
YFinderException
-
findAll
public java.util.Collection findAll() throws YFinderException
Description copied from interface:ItemHome
All item beans have a 'findAll' finder. So dont define another 'findAll' finder in a subclassed item !- Throws:
YFinderException
-
checkTypeCodes
public static boolean checkTypeCodes(java.util.Collection<PK> pks, int typeCode)
-
ejbFindByPKList
public java.util.Collection ejbFindByPKList(java.util.Collection<PK> pkList) throws YFinderException
- Throws:
YFinderException
-
ejbFindByType
public java.util.Collection ejbFindByType(PK typePK) throws YFinderException
- Throws:
YFinderException
-
findByType
public java.util.Collection findByType(PK typePK) throws YFinderException
- Throws:
YFinderException
-
findByPKList
public java.util.Collection findByPKList(java.util.Collection pks) throws YFinderException
- Throws:
YFinderException
-
getItemTableNameImpl
protected java.lang.String getItemTableNameImpl()
Description copied from class:ItemEJB
instance method impl- Specified by:
getItemTableNameImpl
in classItemEJB
-
getOwnJNDIName
public java.lang.String getOwnJNDIName()
Description copied from class:ItemEJB
instance method impl- Specified by:
getOwnJNDIName
in interfaceItemHome
- Specified by:
getOwnJNDIName
in classItemEJB
- Returns:
- the item's JNDI name
-
getPropertyTableNameImpl
public java.lang.String getPropertyTableNameImpl()
- Specified by:
getPropertyTableNameImpl
in classExtensibleItemEJB
-
getCachedValueForModification
protected java.lang.Object getCachedValueForModification(ItemCacheKey key)
- Overrides:
getCachedValueForModification
in classItemEJB
-
getCacheKeyMap
protected java.util.Map getCacheKeyMap()
- Specified by:
getCacheKeyMap
in classItemEJB
-
-