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 classGenericBMPBean.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 booleancheckTypeCodes(java.util.Collection<PK> pks, int typeCode)GenericItemRemotecreate(PK pkBase, ComposedTypeRemote type, EJBPropertyContainer props)PKejbCreate(PK pkBase, ComposedTypeRemote type, EJBPropertyContainer props)java.util.CollectionejbFindAll()java.util.CollectionejbFindByPKList(java.util.Collection<PK> pkList)PKejbFindByPrimaryKey(PK pkValue)java.util.CollectionejbFindByType(PK typePK)voidejbHomeLoadItemData(java.sql.ResultSet resultSet)voidejbLoad()voidejbPostCreate(PK param0, ComposedTypeRemote param1, EJBPropertyContainer param2)voidejbRemove()voidejbStore()java.util.CollectionfindAll()All item beans have a 'findAll' finder.java.util.CollectionfindByPKList(java.util.Collection pks)GenericItemRemotefindByPrimaryKey(PK pk)java.util.CollectionfindByType(PK typePK)java.util.CollectionfindChangedAfter(java.util.Date param0)A finder which selects all bean modified after a given time.longgetACLTimestampInternal()protected java.lang.ObjectgetCachedValueForModification(ItemCacheKey key)protected java.util.MapgetCacheKeyMap()java.util.DategetCreationTimestampInternal()de.hybris.platform.persistence.GenericBMPBean.GenericItemEntityStategetEntityState()longgetHJMPTS()protected java.lang.StringgetItemTableNameImpl()instance method impljava.util.DategetModifiedTimestampInternal()PKgetOwnerPkString()java.lang.StringgetOwnJNDIName()instance method implPKgetPkString()java.lang.StringgetPropertyTableNameImpl()longgetPropertyTimestampInternal()PKgetTypePkString()booleanisBeforeCreate()Special method indicating that the entity instance is currently within its ejbCreate() state and has not been written to database yet.voidsetACLTimestampInternal(long newvalue)voidsetCreationTimestampInternal(java.util.Date newvalue)voidsetModifiedTimestampInternal(java.util.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
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:
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
public PK ejbCreate(PK pkBase, ComposedTypeRemote type, EJBPropertyContainer props)
- Overrides:
ejbCreatein classGenericItemEJB
-
create
public GenericItemRemote create(PK pkBase, ComposedTypeRemote type, EJBPropertyContainer props)
-
ejbPostCreate
public void ejbPostCreate(PK param0, ComposedTypeRemote param1, EJBPropertyContainer param2)
- Overrides:
ejbPostCreatein classGenericItemEJB
-
ejbRemove
public void ejbRemove()
- Specified by:
ejbRemovein interfaceEntityInstance- Overrides:
ejbRemovein classExtensibleItemEJB
-
ejbHomeLoadItemData
public void ejbHomeLoadItemData(java.sql.ResultSet resultSet)
- Overrides:
ejbHomeLoadItemDatain classItemEJB
-
getPkString
public PK getPkString()
- Specified by:
getPkStringin interfaceItemRemote- Specified by:
getPkStringin classItemEJB
-
setPkString
public void setPkString(PK newvalue)
- Specified by:
setPkStringin classItemEJB
-
getCreationTimestampInternal
public java.util.Date getCreationTimestampInternal()
- Specified by:
getCreationTimestampInternalin classItemEJB
-
setCreationTimestampInternal
public void setCreationTimestampInternal(java.util.Date newvalue)
- Specified by:
setCreationTimestampInternalin classItemEJB
-
getModifiedTimestampInternal
public java.util.Date getModifiedTimestampInternal()
- Specified by:
getModifiedTimestampInternalin classItemEJB
-
setModifiedTimestampInternal
public void setModifiedTimestampInternal(java.util.Date newvalue)
- Specified by:
setModifiedTimestampInternalin classItemEJB
-
getACLTimestampInternal
public long getACLTimestampInternal()
- Specified by:
getACLTimestampInternalin classItemEJB
-
setACLTimestampInternal
public void setACLTimestampInternal(long newvalue)
- Specified by:
setACLTimestampInternalin classItemEJB
-
getTypePkString
public PK getTypePkString()
- Specified by:
getTypePkStringin classItemEJB
-
setTypePkString
public void setTypePkString(PK newvalue)
- Specified by:
setTypePkStringin classItemEJB
-
getOwnerPkString
public PK getOwnerPkString()
- Specified by:
getOwnerPkStringin classItemEJB
-
setOwnerPkString
public void setOwnerPkString(PK newvalue)
- Specified by:
setOwnerPkStringin classItemEJB
-
getPropertyTimestampInternal
public long getPropertyTimestampInternal()
- Specified by:
getPropertyTimestampInternalin classExtensibleItemEJB
-
setPropertyTimestampInternal
public void setPropertyTimestampInternal(long newvalue)
- Specified by:
setPropertyTimestampInternalin 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 YFinderExceptionDescription 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
public java.util.Collection ejbFindAll() throws YFinderException- Throws:
YFinderException
-
findAll
public java.util.Collection findAll() throws YFinderExceptionDescription copied from interface:ItemHomeAll 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:ItemEJBinstance method impl- Specified by:
getItemTableNameImplin classItemEJB
-
getOwnJNDIName
public java.lang.String getOwnJNDIName()
Description copied from class:ItemEJBinstance method impl- Specified by:
getOwnJNDINamein interfaceItemHome- Specified by:
getOwnJNDINamein classItemEJB- Returns:
- the item's JNDI name
-
getPropertyTableNameImpl
public java.lang.String getPropertyTableNameImpl()
- Specified by:
getPropertyTableNameImplin classExtensibleItemEJB
-
getCachedValueForModification
protected java.lang.Object getCachedValueForModification(ItemCacheKey key)
- Overrides:
getCachedValueForModificationin classItemEJB
-
getCacheKeyMap
protected java.util.Map getCacheKeyMap()
- Specified by:
getCacheKeyMapin classItemEJB
-
-