Class ComposedTypeEJB
- java.lang.Object
-
- de.hybris.platform.persistence.ItemEJB
-
- de.hybris.platform.persistence.ExtensibleItemEJB
-
- de.hybris.platform.persistence.c2l.LocalizableItemEJB
-
- de.hybris.platform.persistence.type.TypeManagerManagedEJB
-
- de.hybris.platform.persistence.type.TypeEJB
-
- de.hybris.platform.persistence.type.HierarchieTypeEJB
-
- de.hybris.platform.persistence.type.ComposedTypeEJB
-
- All Implemented Interfaces:
LocalizableItemRemote,ExtensibleItemRemote,EntityInstance,EntityProxy,HomeProxy,ItemHome,ItemPermissionFacade,ItemRemote,ComposedTypeHome,ComposedTypeRemote,HierarchieTypeHome,HierarchieTypeRemote,TypeHome,TypeManagerManagedRemote,TypeRemote
- Direct Known Subclasses:
ComposedType_HJMPWrapper
public abstract class ComposedTypeEJB extends HierarchieTypeEJB implements ComposedTypeRemote, ComposedTypeHome
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.persistence.type.TypeEJB
INTERNAL_DESCRIPTION_PROPERTY
-
Fields inherited from class de.hybris.platform.persistence.ItemEJB
entityContext, READ, WRITE
-
-
Constructor Summary
Constructors Constructor Description ComposedTypeEJB()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidchangeSTPK(java.lang.String string)protected voiddoTypeInitialization(ComposedTypeRemote newSuperType, ItemDeployment newDeployment, java.lang.String jaloClassName, ComposedTypeRemote metaType)PKejbCreate(PK pkBase, ComposedTypeRemote superType, java.lang.String code, java.lang.String jaloClassName, ItemDeployment deployment, ComposedTypeRemote metaType)voidejbPostCreate(PK pkBase, ComposedTypeRemote superType, java.lang.String code, java.lang.String jaloClassName, ItemDeployment deployment, ComposedTypeRemote metaType)voidejbRemove()ComposedTypeRemotegetComposedType()Superclass method overridden to escape the 'dummy' type pk which is set during initialization when no matching item type is yet available.ItemDeploymentgetDeployment()protected ItemDeploymentgetDeploymentInternal(boolean warn)java.util.ListgetInheritancePath()java.lang.StringgetInheritancePathString()abstract java.lang.StringgetItemJNDIName()java.lang.StringgetItemPropertyTableName()returns the property table name or null if this type isnt assoziated with a real item ejb.java.lang.StringgetItemTableName()the database table assoziated with this type or NULL for abstract types.intgetItemTypeCode()abstract intgetItemTypeCodeInt()abstract java.lang.StringgetJaloClassName()abstract booleangetPropertyTableStatus()abstract booleangetRemovableFlag()abstract booleangetSingletonFlag()ComposedTypeRemotegetSuperType()PKgetSuperTypeItemPK()booleanisAbstract()booleanisAssignableFrom(TypeRemote type)booleanisRemovable()booleanisSingleton()protected booleanpreLoadUnlocalizedProperties()override to enable/disable unlocalized property cache preloading this applies only when BuildConstants.NO_UP_TABLES = true !voidreinitializeType(ComposedTypeRemote superType, ItemDeployment deployment, java.lang.String jaloClassName, ComposedTypeRemote metaType)Internal ! Used for reinitialization - dont call directly.voidsetAbstract()voidsetComposedType(ComposedTypeRemote type)Superclass method overridden to escape the 'dummy' type pk which is set during initialization when no matching item type is yet available.voidsetDeployment(ItemDeployment deployment)protected voidsetInheritancePath(java.util.List path)voidsetInheritancePathString(java.lang.String pks)abstract voidsetItemJNDIName(java.lang.String jndi)voidsetItemTypeCode(int tc)abstract voidsetItemTypeCodeInt(int tc)abstract voidsetJaloClassName(java.lang.String className)changes this types assoziated jalo class.abstract voidsetPropertyTableStatus(boolean initialized)abstract voidsetRemovableFlag(boolean removable)voidsetSingleton(boolean isSingleton)abstract voidsetSingletonFlag(boolean singletonFlag)protected inttypeCode()-
Methods inherited from class de.hybris.platform.persistence.type.HierarchieTypeEJB
getInheritancePathStringInternal, getSuperTypePK, setInheritancePathStringInternal, setSuperTypePK
-
Methods inherited from class de.hybris.platform.persistence.type.TypeEJB
ejbCreate, ejbPostCreate, getCode, getInternalCode, getInternalCodeLowerCase, setCode, setInternalCode, setInternalCodeLowerCase
-
Methods inherited from class de.hybris.platform.persistence.type.TypeManagerManagedEJB
equals, getTypeManager, pGetInternalProperty, pSetInternalProperty
-
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, getPropertyTableNameImpl, getPropertyTimestamp, getPropertyTimestampInternal, getTypeInfoMap, hasModifiedCaches, removeProperty, removePropertyData, setAllProperties, setPropertiesFromContainer, setProperty, setPropertyTimestampInternal, typeChanged, updatePropertyVersion, warnOnDecryptionError, writePropertyCaches
-
Methods inherited from class de.hybris.platform.persistence.ItemEJB
checkItemPermission, checkOwnGlobalPermission, copyComposedTypeFromTemplate, doCreateInternal, doPostCreateInternal, ejbHomeGetItemTableName, ejbHomeGetOwnJNDIName, ejbHomeLoadItemData, ejbLoad, ejbStore, getACLTimestampInternal, getCachedValueForModification, getCachedValueForReading, getCachedValueForReadingIfAvailable, getCachedValuesStartingWith, getCacheKey, getCacheKeyMap, 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, setCreationTime, setCreationTimestampInternal, setEntityContext, setGlobalPermission, setGlobalPermissions, setModifiedTime, setModifiedTimestamp, setModifiedTimestampInternal, setNeedsStoring, setOwner, setOwnerPkString, setOwnerRef, setPermission, setPermissions, setPkString, setPrincipalToBooleanListMap, setTypePkString, 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.type.ComposedTypeHome
create, findByJaloClassName, findByPrimaryKey, findByTypeCode
-
Methods inherited from interface de.hybris.platform.persistence.framework.EntityInstance
ejbFindByPrimaryKey
-
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.type.HierarchieTypeHome
findByInheritancePath, findBySuperType
-
Methods inherited from interface de.hybris.platform.persistence.ItemHome
findAll, findByPKList, findByType, findChangedAfter, getOwnJNDIName, loadItemData
-
Methods inherited from interface de.hybris.platform.persistence.ItemRemote
getCreationTime, getHJMPTS, getModifiedTime, getOwner, getPkString, getTypeKey, hasJNDIName, remove, setCreationTime, setModifiedTime, setOwner, setOwnerRef, wasModifiedSince
-
Methods inherited from interface de.hybris.platform.persistence.c2l.LocalizableItemRemote
copyLocalizablePropertiesFrom, getAllLocalizedProperties, getAllLocalizedProperties, getLocalizedProperty, getLocalizedPropertyNames, hintPropertyCache, removeLocalizedProperty, setAllLocalizedProperties, setLocalizedProperty
-
Methods inherited from interface de.hybris.platform.persistence.type.TypeHome
findByCodeExact
-
Methods inherited from interface de.hybris.platform.persistence.type.TypeRemote
getCode
-
-
-
-
Method Detail
-
getItemTypeCodeInt
public abstract int getItemTypeCodeInt()
-
setItemTypeCodeInt
public abstract void setItemTypeCodeInt(int tc)
-
getItemJNDIName
public abstract java.lang.String getItemJNDIName()
- Specified by:
getItemJNDINamein interfaceComposedTypeRemote
-
setItemJNDIName
public abstract void setItemJNDIName(java.lang.String jndi)
- Specified by:
setItemJNDINamein interfaceComposedTypeRemote
-
getJaloClassName
public abstract java.lang.String getJaloClassName()
- Specified by:
getJaloClassNamein interfaceComposedTypeRemote- Returns:
- the assoziated jalo class of this type or NULL which means to use its supertype's jaloclass.
-
setJaloClassName
public abstract void setJaloClassName(java.lang.String className)
Description copied from interface:ComposedTypeRemotechanges this types assoziated jalo class. NULL means to use its supertype's jaloclass.- Specified by:
setJaloClassNamein interfaceComposedTypeRemote
-
getPropertyTableStatus
public abstract boolean getPropertyTableStatus()
- Specified by:
getPropertyTableStatusin interfaceComposedTypeRemote
-
setPropertyTableStatus
public abstract void setPropertyTableStatus(boolean initialized)
- Specified by:
setPropertyTableStatusin interfaceComposedTypeRemote
-
getSingletonFlag
public abstract boolean getSingletonFlag()
-
setSingletonFlag
public abstract void setSingletonFlag(boolean singletonFlag)
-
getRemovableFlag
public abstract boolean getRemovableFlag()
-
setRemovableFlag
public abstract void setRemovableFlag(boolean removable)
-
getItemTableName
public java.lang.String getItemTableName()
Description copied from interface:ComposedTypeRemotethe database table assoziated with this type or NULL for abstract types.- Specified by:
getItemTableNamein interfaceComposedTypeRemote
-
typeCode
protected int typeCode()
-
preLoadUnlocalizedProperties
protected boolean preLoadUnlocalizedProperties()
Description copied from class:ExtensibleItemEJBoverride to enable/disable unlocalized property cache preloading this applies only when BuildConstants.NO_UP_TABLES = true !- Overrides:
preLoadUnlocalizedPropertiesin classExtensibleItemEJB
-
getItemTypeCode
public int getItemTypeCode()
- Specified by:
getItemTypeCodein interfaceComposedTypeRemote
-
setItemTypeCode
public void setItemTypeCode(int tc)
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin interfaceComposedTypeRemote
-
setAbstract
public void setAbstract()
- Specified by:
setAbstractin interfaceComposedTypeRemote
-
getItemPropertyTableName
public java.lang.String getItemPropertyTableName()
Description copied from interface:ComposedTypeRemotereturns the property table name or null if this type isnt assoziated with a real item ejb.- Specified by:
getItemPropertyTableNamein interfaceComposedTypeRemote
-
changeSTPK
public void changeSTPK(java.lang.String string)
- Specified by:
changeSTPKin interfaceComposedTypeRemote
-
ejbCreate
public PK ejbCreate(PK pkBase, ComposedTypeRemote superType, java.lang.String code, java.lang.String jaloClassName, ItemDeployment deployment, ComposedTypeRemote metaType) throws EJBDuplicateCodeException, EJBInvalidParameterException
-
ejbPostCreate
public void ejbPostCreate(PK pkBase, ComposedTypeRemote superType, java.lang.String code, java.lang.String jaloClassName, ItemDeployment deployment, ComposedTypeRemote metaType) throws EJBDuplicateCodeException, EJBInvalidParameterException
-
getComposedType
public ComposedTypeRemote getComposedType()
Superclass method overridden to escape the 'dummy' type pk which is set during initialization when no matching item type is yet available.- Specified by:
getComposedTypein interfaceItemRemote- Overrides:
getComposedTypein classItemEJB
-
setComposedType
public void setComposedType(ComposedTypeRemote type) throws EJBInvalidParameterException
Superclass method overridden to escape the 'dummy' type pk which is set during initialization when no matching item type is yet available.- Specified by:
setComposedTypein interfaceItemRemote- Overrides:
setComposedTypein classItemEJB- Throws:
EJBInvalidParameterException
-
reinitializeType
public void reinitializeType(ComposedTypeRemote superType, ItemDeployment deployment, java.lang.String jaloClassName, ComposedTypeRemote metaType)
Description copied from interface:ComposedTypeRemoteInternal ! Used for reinitialization - dont call directly.- Specified by:
reinitializeTypein interfaceComposedTypeRemote- Parameters:
superType- the new supertype (optional)deployment- the new deployment object (optional)jaloClassName- the new jalo class name (optional)
-
doTypeInitialization
protected void doTypeInitialization(ComposedTypeRemote newSuperType, ItemDeployment newDeployment, java.lang.String jaloClassName, ComposedTypeRemote metaType)
-
ejbRemove
public void ejbRemove()
- Specified by:
ejbRemovein interfaceEntityInstance- Overrides:
ejbRemovein classExtensibleItemEJB
-
isRemovable
public boolean isRemovable()
- Specified by:
isRemovablein interfaceComposedTypeRemote
-
getDeployment
public ItemDeployment getDeployment()
- Specified by:
getDeploymentin interfaceComposedTypeRemote
-
getDeploymentInternal
protected ItemDeployment getDeploymentInternal(boolean warn)
-
setDeployment
public void setDeployment(ItemDeployment deployment)
-
getSuperTypeItemPK
public PK getSuperTypeItemPK()
- Specified by:
getSuperTypeItemPKin interfaceComposedTypeRemote- Returns:
- the item pk of this type's supertype
-
getSuperType
public ComposedTypeRemote getSuperType()
- Specified by:
getSuperTypein interfaceComposedTypeRemote
-
getInheritancePathString
public java.lang.String getInheritancePathString()
- Specified by:
getInheritancePathStringin interfaceComposedTypeRemote- Specified by:
getInheritancePathStringin interfaceHierarchieTypeRemote
-
setInheritancePathString
public void setInheritancePathString(java.lang.String pks)
- Specified by:
setInheritancePathStringin interfaceComposedTypeRemote- Specified by:
setInheritancePathStringin interfaceHierarchieTypeRemote
-
getInheritancePath
public java.util.List getInheritancePath()
- Specified by:
getInheritancePathin interfaceComposedTypeRemote- Specified by:
getInheritancePathin interfaceHierarchieTypeRemote
-
setInheritancePath
protected void setInheritancePath(java.util.List path)
-
isAssignableFrom
public boolean isAssignableFrom(TypeRemote type)
- Specified by:
isAssignableFromin interfaceTypeRemote- Specified by:
isAssignableFromin classTypeEJB
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceComposedTypeRemote
-
setSingleton
public void setSingleton(boolean isSingleton)
- Specified by:
setSingletonin interfaceComposedTypeRemote
-
-