Class YItemDeploymentWrapper
- java.lang.Object
-
- de.hybris.platform.util.typesystem.YItemDeploymentWrapper
-
- All Implemented Interfaces:
ItemDeployment,java.io.Serializable
public class YItemDeploymentWrapper extends java.lang.Object implements ItemDeployment
Wraps up aYDeploymentinstance to be used inside- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.hybris.platform.core.ItemDeployment
ItemDeployment.Attribute, ItemDeployment.FinderMethod, ItemDeployment.Index, ItemDeployment.IndexAttribute
-
-
Constructor Summary
Constructors Constructor Description YItemDeploymentWrapper(YDeployment depl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringadjustType(java.lang.String type)protected java.util.Map<java.lang.String,ItemDeployment.Attribute>attributes()protected java.util.Map<java.lang.String,ItemDeployment.Attribute>createAttributes(YDeployment depl)protected java.util.Map<java.lang.String,ItemDeployment.FinderMethod>createFinders(YDeployment depl)protected java.util.Map<java.lang.String,ItemDeployment.Index>createIndexes(YDeployment depl)protected java.util.Map<java.lang.String,ItemDeployment.FinderMethod>finders()ItemDeployment.AttributegetAttribute(java.lang.String persistenceQualifier)java.util.Collection<ItemDeployment.Attribute>getAttributes()java.lang.StringgetAuditTableName()java.lang.StringgetColumnName(java.lang.String attribut, java.lang.String database)performance shortcutjava.lang.ClassgetConcreteEJBImplementationClass()returns the name of the concrete EJB implementation class this is for example "de.hybris....Country_HJMPWrapper" or whatever class is used during deploymentjava.lang.StringgetDatabaseTableName()java.lang.StringgetDumpPropertyTableName()ItemDeployment.FinderMethodgetFinderMethod(java.lang.String methodName, java.lang.String signature)java.util.Collection<ItemDeployment.FinderMethod>getFinderMethods()java.lang.ClassgetHomeInterface()java.lang.ClassgetImplClass()ItemDeployment.IndexgetIndex(java.lang.String name)java.util.Collection<ItemDeployment.Index>getIndexes()java.lang.StringgetName()Returns this deployments name.java.lang.ClassgetRemoteInterface()java.lang.StringgetSuperDeploymentName()intgetTypeCode()protected java.util.Map<java.lang.String,ItemDeployment.Index>indexes()booleanisAbstract()booleanisFinal()Tells whether this deployment is final - means no other deployment is allowed to inherit from it.booleanisGeneric()booleanisNonItemDeployment()java.lang.StringtoString()
-
-
-
Constructor Detail
-
YItemDeploymentWrapper
public YItemDeploymentWrapper(YDeployment depl)
-
-
Method Detail
-
adjustType
public static final java.lang.String adjustType(java.lang.String type)
-
attributes
protected java.util.Map<java.lang.String,ItemDeployment.Attribute> attributes()
-
createAttributes
protected java.util.Map<java.lang.String,ItemDeployment.Attribute> createAttributes(YDeployment depl)
-
finders
protected java.util.Map<java.lang.String,ItemDeployment.FinderMethod> finders()
-
createFinders
protected java.util.Map<java.lang.String,ItemDeployment.FinderMethod> createFinders(YDeployment depl)
-
indexes
protected java.util.Map<java.lang.String,ItemDeployment.Index> indexes()
-
createIndexes
protected java.util.Map<java.lang.String,ItemDeployment.Index> createIndexes(YDeployment depl)
-
getAttribute
public ItemDeployment.Attribute getAttribute(java.lang.String persistenceQualifier)
- Specified by:
getAttributein interfaceItemDeployment- Parameters:
persistenceQualifier- the CMP field name- Returns:
- a specific CMP field of this deployment
-
getAttributes
public java.util.Collection<ItemDeployment.Attribute> getAttributes()
- Specified by:
getAttributesin interfaceItemDeployment- Returns:
- all CMP fields of this deployment
-
getConcreteEJBImplementationClass
public java.lang.Class getConcreteEJBImplementationClass()
Description copied from interface:ItemDeploymentreturns the name of the concrete EJB implementation class this is for example "de.hybris....Country_HJMPWrapper" or whatever class is used during deployment- Specified by:
getConcreteEJBImplementationClassin interfaceItemDeployment- Returns:
- the concrete ejb implementation class
-
getDatabaseTableName
public java.lang.String getDatabaseTableName()
- Specified by:
getDatabaseTableNamein interfaceItemDeployment- Returns:
- the configured database table name; null for abstract deployments
-
getDumpPropertyTableName
public java.lang.String getDumpPropertyTableName()
- Specified by:
getDumpPropertyTableNamein interfaceItemDeployment- Returns:
- the configured dump property database table name; null for abstract deployments
-
getAuditTableName
public java.lang.String getAuditTableName()
- Specified by:
getAuditTableNamein interfaceItemDeployment- Returns:
- the configured audit table name; null for abstract deployments
-
getFinderMethod
public ItemDeployment.FinderMethod getFinderMethod(java.lang.String methodName, java.lang.String signature)
- Specified by:
getFinderMethodin interfaceItemDeployment- Parameters:
methodName- the name of the finder methodsignature- the signature of the finder method- Returns:
- a specific CMP finder method
-
getFinderMethods
public java.util.Collection<ItemDeployment.FinderMethod> getFinderMethods()
- Specified by:
getFinderMethodsin interfaceItemDeployment- Returns:
- all CMP finders of this deployment
-
getHomeInterface
public java.lang.Class getHomeInterface()
- Specified by:
getHomeInterfacein interfaceItemDeployment- Returns:
- the home interface class, null for generic deployments
-
getImplClass
public java.lang.Class getImplClass()
- Specified by:
getImplClassin interfaceItemDeployment- Returns:
- the impl class, null for generic deployments
-
getIndex
public ItemDeployment.Index getIndex(java.lang.String name)
- Specified by:
getIndexin interfaceItemDeployment- Parameters:
name- the name of the index to be fetched- Returns:
- a single index of this deployment's indexes
-
getIndexes
public java.util.Collection<ItemDeployment.Index> getIndexes()
- Specified by:
getIndexesin interfaceItemDeployment- Returns:
- all indexes for this item deployment
-
getName
public java.lang.String getName()
Description copied from interface:ItemDeploymentReturns this deployments name. for non-abstract deployments this name forms- Specified by:
getNamein interfaceItemDeployment- Returns:
- the name of the deployment
-
getRemoteInterface
public java.lang.Class getRemoteInterface()
- Specified by:
getRemoteInterfacein interfaceItemDeployment- Returns:
- the remote interface class, null for generic deployments
-
getSuperDeploymentName
public java.lang.String getSuperDeploymentName()
- Specified by:
getSuperDeploymentNamein interfaceItemDeployment- Returns:
- the typecode of the super deployment, only if this a generic deployment
-
getTypeCode
public int getTypeCode()
- Specified by:
getTypeCodein interfaceItemDeployment- Returns:
- the deployed item's typecode, or 0 if this deployment is abstract
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin interfaceItemDeployment- Returns:
- whether this deployment is abstract; means that there is no actual EJB deployed
-
isFinal
public boolean isFinal()
Description copied from interface:ItemDeploymentTells whether this deployment is final - means no other deployment is allowed to inherit from it.- Specified by:
isFinalin interfaceItemDeployment- Returns:
trueif deployment is final
-
isGeneric
public boolean isGeneric()
- Specified by:
isGenericin interfaceItemDeployment- Returns:
- whether the deployed EJB uses GenericItem ejb classes and interfaces
-
isNonItemDeployment
public boolean isNonItemDeployment()
- Specified by:
isNonItemDeploymentin interfaceItemDeployment- Returns:
- true if this deployment doesnt belong to a item and represents a plain database table ( like props )
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getColumnName
public java.lang.String getColumnName(java.lang.String attribut, java.lang.String database)Description copied from interface:ItemDeploymentperformance shortcut- Specified by:
getColumnNamein interfaceItemDeployment
-
-