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 void
changeSTPK(java.lang.String string)
protected void
doTypeInitialization(ComposedTypeRemote newSuperType, ItemDeployment newDeployment, java.lang.String jaloClassName, ComposedTypeRemote metaType)
PK
ejbCreate(PK pkBase, ComposedTypeRemote superType, java.lang.String code, java.lang.String jaloClassName, ItemDeployment deployment, ComposedTypeRemote metaType)
void
ejbPostCreate(PK pkBase, ComposedTypeRemote superType, java.lang.String code, java.lang.String jaloClassName, ItemDeployment deployment, ComposedTypeRemote metaType)
void
ejbRemove()
ComposedTypeRemote
getComposedType()
Superclass method overridden to escape the 'dummy' type pk which is set during initialization when no matching item type is yet available.ItemDeployment
getDeployment()
protected ItemDeployment
getDeploymentInternal(boolean warn)
java.util.List
getInheritancePath()
java.lang.String
getInheritancePathString()
abstract java.lang.String
getItemJNDIName()
java.lang.String
getItemPropertyTableName()
returns the property table name or null if this type isnt assoziated with a real item ejb.java.lang.String
getItemTableName()
the database table assoziated with this type or NULL for abstract types.int
getItemTypeCode()
abstract int
getItemTypeCodeInt()
abstract java.lang.String
getJaloClassName()
abstract boolean
getPropertyTableStatus()
abstract boolean
getRemovableFlag()
abstract boolean
getSingletonFlag()
ComposedTypeRemote
getSuperType()
PK
getSuperTypeItemPK()
boolean
isAbstract()
boolean
isAssignableFrom(TypeRemote type)
boolean
isRemovable()
boolean
isSingleton()
protected boolean
preLoadUnlocalizedProperties()
override to enable/disable unlocalized property cache preloading this applies only when BuildConstants.NO_UP_TABLES = true !void
reinitializeType(ComposedTypeRemote superType, ItemDeployment deployment, java.lang.String jaloClassName, ComposedTypeRemote metaType)
Internal ! Used for reinitialization - dont call directly.void
setAbstract()
void
setComposedType(ComposedTypeRemote type)
Superclass method overridden to escape the 'dummy' type pk which is set during initialization when no matching item type is yet available.void
setDeployment(ItemDeployment deployment)
protected void
setInheritancePath(java.util.List path)
void
setInheritancePathString(java.lang.String pks)
abstract void
setItemJNDIName(java.lang.String jndi)
void
setItemTypeCode(int tc)
abstract void
setItemTypeCodeInt(int tc)
abstract void
setJaloClassName(java.lang.String className)
changes this types assoziated jalo class.abstract void
setPropertyTableStatus(boolean initialized)
abstract void
setRemovableFlag(boolean removable)
void
setSingleton(boolean isSingleton)
abstract void
setSingletonFlag(boolean singletonFlag)
protected int
typeCode()
-
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:
getItemJNDIName
in interfaceComposedTypeRemote
-
setItemJNDIName
public abstract void setItemJNDIName(java.lang.String jndi)
- Specified by:
setItemJNDIName
in interfaceComposedTypeRemote
-
getJaloClassName
public abstract java.lang.String getJaloClassName()
- Specified by:
getJaloClassName
in 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:ComposedTypeRemote
changes this types assoziated jalo class. NULL means to use its supertype's jaloclass.- Specified by:
setJaloClassName
in interfaceComposedTypeRemote
-
getPropertyTableStatus
public abstract boolean getPropertyTableStatus()
- Specified by:
getPropertyTableStatus
in interfaceComposedTypeRemote
-
setPropertyTableStatus
public abstract void setPropertyTableStatus(boolean initialized)
- Specified by:
setPropertyTableStatus
in 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:ComposedTypeRemote
the database table assoziated with this type or NULL for abstract types.- Specified by:
getItemTableName
in interfaceComposedTypeRemote
-
typeCode
protected int typeCode()
-
preLoadUnlocalizedProperties
protected boolean preLoadUnlocalizedProperties()
Description copied from class:ExtensibleItemEJB
override to enable/disable unlocalized property cache preloading this applies only when BuildConstants.NO_UP_TABLES = true !- Overrides:
preLoadUnlocalizedProperties
in classExtensibleItemEJB
-
getItemTypeCode
public int getItemTypeCode()
- Specified by:
getItemTypeCode
in interfaceComposedTypeRemote
-
setItemTypeCode
public void setItemTypeCode(int tc)
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract
in interfaceComposedTypeRemote
-
setAbstract
public void setAbstract()
- Specified by:
setAbstract
in interfaceComposedTypeRemote
-
getItemPropertyTableName
public java.lang.String getItemPropertyTableName()
Description copied from interface:ComposedTypeRemote
returns the property table name or null if this type isnt assoziated with a real item ejb.- Specified by:
getItemPropertyTableName
in interfaceComposedTypeRemote
-
changeSTPK
public void changeSTPK(java.lang.String string)
- Specified by:
changeSTPK
in 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:
getComposedType
in interfaceItemRemote
- Overrides:
getComposedType
in 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:
setComposedType
in interfaceItemRemote
- Overrides:
setComposedType
in classItemEJB
- Throws:
EJBInvalidParameterException
-
reinitializeType
public void reinitializeType(ComposedTypeRemote superType, ItemDeployment deployment, java.lang.String jaloClassName, ComposedTypeRemote metaType)
Description copied from interface:ComposedTypeRemote
Internal ! Used for reinitialization - dont call directly.- Specified by:
reinitializeType
in 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:
ejbRemove
in interfaceEntityInstance
- Overrides:
ejbRemove
in classExtensibleItemEJB
-
isRemovable
public boolean isRemovable()
- Specified by:
isRemovable
in interfaceComposedTypeRemote
-
getDeployment
public ItemDeployment getDeployment()
- Specified by:
getDeployment
in interfaceComposedTypeRemote
-
getDeploymentInternal
protected ItemDeployment getDeploymentInternal(boolean warn)
-
setDeployment
public void setDeployment(ItemDeployment deployment)
-
getSuperTypeItemPK
public PK getSuperTypeItemPK()
- Specified by:
getSuperTypeItemPK
in interfaceComposedTypeRemote
- Returns:
- the item pk of this type's supertype
-
getSuperType
public ComposedTypeRemote getSuperType()
- Specified by:
getSuperType
in interfaceComposedTypeRemote
-
getInheritancePathString
public java.lang.String getInheritancePathString()
- Specified by:
getInheritancePathString
in interfaceComposedTypeRemote
- Specified by:
getInheritancePathString
in interfaceHierarchieTypeRemote
-
setInheritancePathString
public void setInheritancePathString(java.lang.String pks)
- Specified by:
setInheritancePathString
in interfaceComposedTypeRemote
- Specified by:
setInheritancePathString
in interfaceHierarchieTypeRemote
-
getInheritancePath
public java.util.List getInheritancePath()
- Specified by:
getInheritancePath
in interfaceComposedTypeRemote
- Specified by:
getInheritancePath
in interfaceHierarchieTypeRemote
-
setInheritancePath
protected void setInheritancePath(java.util.List path)
-
isAssignableFrom
public boolean isAssignableFrom(TypeRemote type)
- Specified by:
isAssignableFrom
in interfaceTypeRemote
- Specified by:
isAssignableFrom
in classTypeEJB
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interfaceComposedTypeRemote
-
setSingleton
public void setSingleton(boolean isSingleton)
- Specified by:
setSingleton
in interfaceComposedTypeRemote
-
-