Class TypeModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AtomicTypeModel, CollectionTypeModel, ComposedTypeModel, MapTypeModel

public class TypeModel extends TypeManagerManagedModel
Generated model class for type Type first defined at extension core.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Generated model type code constant.
    static final String
    Generated constant - Attribute key of Type.code attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Type.defaultValue attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Type.description attribute defined at extension core.
    static final String
    Generated constant - Attribute key of Type.xmldefinition attribute defined at extension core.

    Fields inherited from class de.hybris.platform.core.model.type.TypeManagerManagedModel

    AUTOCREATE, DEPRECATED, EXTENSIONNAME, GENERATE, NAME

    Fields inherited from class de.hybris.platform.core.model.ItemModel

    _COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED

    Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Generated constructor - Default constructor for generic creation.
    TypeModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
    Generated constructor - Default constructor for creation with existing context
    TypeModel(String _code, Boolean _generate)
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 4.1.1 Please use the default constructor without parameters
    TypeModel(String _code, Boolean _generate, ItemModel _owner)
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 4.1.1 Please use the default constructor without parameters
  • Method Summary

    Modifier and Type
    Method
    Description
    Generated method - Getter of the Type.code attribute defined at extension core.
    Generated method - Getter of the Type.defaultValue attribute defined at extension core.
    Generated method - Getter of the Type.description attribute defined at extension core.
    Generated method - Getter of the Type.description attribute defined at extension core.
    Generated method - Getter of the Type.xmldefinition attribute defined at extension core.
    void
    setCode(String value)
    Generated method - Initial setter of Type.code attribute defined at extension core.
    void
    Generated method - Setter of Type.defaultValue attribute defined at extension core.
    void
    Generated method - Setter of Type.description attribute defined at extension core.
    void
    Generated method - Setter of Type.description attribute defined at extension core.

    Methods inherited from class de.hybris.platform.core.model.ItemModel

    getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner

    Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • XMLDEFINITION

      public static final String XMLDEFINITION
      Generated constant - Attribute key of Type.xmldefinition attribute defined at extension core.
      See Also:
    • CODE

      public static final String CODE
      Generated constant - Attribute key of Type.code attribute defined at extension core.
      See Also:
    • DEFAULTVALUE

      public static final String DEFAULTVALUE
      Generated constant - Attribute key of Type.defaultValue attribute defined at extension core.
      See Also:
    • DESCRIPTION

      public static final String DESCRIPTION
      Generated constant - Attribute key of Type.description attribute defined at extension core.
      See Also:
  • Constructor Details

    • TypeModel

      public TypeModel()
      Generated constructor - Default constructor for generic creation.
    • TypeModel

      public TypeModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • TypeModel

      @Deprecated(since="4.1.1", forRemoval=true) public TypeModel(String _code, Boolean _generate)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _code - initial attribute declared by type Type at extension core
      _generate - initial attribute declared by type TypeManagerManaged at extension core
    • TypeModel

      @Deprecated(since="4.1.1", forRemoval=true) public TypeModel(String _code, Boolean _generate, ItemModel _owner)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _code - initial attribute declared by type Type at extension core
      _generate - initial attribute declared by type TypeManagerManaged at extension core
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getCode

      @Accessor(qualifier="code", type=GETTER) public String getCode()
      Generated method - Getter of the Type.code attribute defined at extension core.
      Returns:
      the code
    • getDefaultValue

      @Accessor(qualifier="defaultValue", type=GETTER) public Object getDefaultValue()
      Generated method - Getter of the Type.defaultValue attribute defined at extension core.
      Returns:
      the defaultValue
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription()
      Generated method - Getter of the Type.description attribute defined at extension core.
      Returns:
      the description
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription(Locale loc)
      Generated method - Getter of the Type.description attribute defined at extension core.
      Parameters:
      loc - the value localization key
      Returns:
      the description
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getXmldefinition

      @Accessor(qualifier="xmldefinition", type=GETTER) public String getXmldefinition()
      Generated method - Getter of the Type.xmldefinition attribute defined at extension core.
      Returns:
      the xmldefinition
    • setCode

      @Accessor(qualifier="code", type=SETTER) public void setCode(String value)
      Generated method - Initial setter of Type.code attribute defined at extension core. Can only be used at creation of model - before first save.
      Parameters:
      value - the code
    • setDefaultValue

      @Accessor(qualifier="defaultValue", type=SETTER) public void setDefaultValue(Object value)
      Generated method - Setter of Type.defaultValue attribute defined at extension core.
      Parameters:
      value - the defaultValue
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value)
      Generated method - Setter of Type.description attribute defined at extension core.
      Parameters:
      value - the description
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc)
      Generated method - Setter of Type.description attribute defined at extension core.
      Parameters:
      value - the description
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language