Class YItemDeploymentWrapper

    • Constructor Detail

      • YItemDeploymentWrapper

        public YItemDeploymentWrapper​(YDeployment depl)
    • Method Detail

      • adjustType

        public static final java.lang.String adjustType​(java.lang.String type)
      • getAttribute

        public ItemDeployment.Attribute getAttribute​(java.lang.String persistenceQualifier)
        Specified by:
        getAttribute in interface ItemDeployment
        Parameters:
        persistenceQualifier - the CMP field name
        Returns:
        a specific CMP field of this deployment
      • getConcreteEJBImplementationClass

        public java.lang.Class getConcreteEJBImplementationClass()
        Description copied from interface: ItemDeployment
        returns 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:
        getConcreteEJBImplementationClass in interface ItemDeployment
        Returns:
        the concrete ejb implementation class
      • getDatabaseTableName

        public java.lang.String getDatabaseTableName()
        Specified by:
        getDatabaseTableName in interface ItemDeployment
        Returns:
        the configured database table name; null for abstract deployments
      • getDumpPropertyTableName

        public java.lang.String getDumpPropertyTableName()
        Specified by:
        getDumpPropertyTableName in interface ItemDeployment
        Returns:
        the configured dump property database table name; null for abstract deployments
      • getAuditTableName

        public java.lang.String getAuditTableName()
        Specified by:
        getAuditTableName in interface ItemDeployment
        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:
        getFinderMethod in interface ItemDeployment
        Parameters:
        methodName - the name of the finder method
        signature - the signature of the finder method
        Returns:
        a specific CMP finder method
      • getHomeInterface

        public java.lang.Class getHomeInterface()
        Specified by:
        getHomeInterface in interface ItemDeployment
        Returns:
        the home interface class, null for generic deployments
      • getImplClass

        public java.lang.Class getImplClass()
        Specified by:
        getImplClass in interface ItemDeployment
        Returns:
        the impl class, null for generic deployments
      • getIndex

        public ItemDeployment.Index getIndex​(java.lang.String name)
        Specified by:
        getIndex in interface ItemDeployment
        Parameters:
        name - the name of the index to be fetched
        Returns:
        a single index of this deployment's indexes
      • getName

        public java.lang.String getName()
        Description copied from interface: ItemDeployment
        Returns this deployments name. for non-abstract deployments this name forms
        Specified by:
        getName in interface ItemDeployment
        Returns:
        the name of the deployment
      • getRemoteInterface

        public java.lang.Class getRemoteInterface()
        Specified by:
        getRemoteInterface in interface ItemDeployment
        Returns:
        the remote interface class, null for generic deployments
      • getSuperDeploymentName

        public java.lang.String getSuperDeploymentName()
        Specified by:
        getSuperDeploymentName in interface ItemDeployment
        Returns:
        the typecode of the super deployment, only if this a generic deployment
      • getTypeCode

        public int getTypeCode()
        Specified by:
        getTypeCode in interface ItemDeployment
        Returns:
        the deployed item's typecode, or 0 if this deployment is abstract
      • isAbstract

        public boolean isAbstract()
        Specified by:
        isAbstract in interface ItemDeployment
        Returns:
        whether this deployment is abstract; means that there is no actual EJB deployed
      • isFinal

        public boolean isFinal()
        Description copied from interface: ItemDeployment
        Tells whether this deployment is final - means no other deployment is allowed to inherit from it.
        Specified by:
        isFinal in interface ItemDeployment
        Returns:
        true if deployment is final
      • isGeneric

        public boolean isGeneric()
        Specified by:
        isGeneric in interface ItemDeployment
        Returns:
        whether the deployed EJB uses GenericItem ejb classes and interfaces
      • isNonItemDeployment

        public boolean isNonItemDeployment()
        Specified by:
        isNonItemDeployment in interface ItemDeployment
        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:
        toString in class java.lang.Object
      • getColumnName

        public java.lang.String getColumnName​(java.lang.String attribut,
                                              java.lang.String database)
        Description copied from interface: ItemDeployment
        performance shortcut
        Specified by:
        getColumnName in interface ItemDeployment