Class TypeModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.core.model.type.TypeManagerManagedModel
de.hybris.platform.core.model.type.TypeModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AtomicTypeModel,CollectionTypeModel,ComposedTypeModel,MapTypeModel
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
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofType.codeattribute defined at extensioncore.static final StringGenerated constant - Attribute key ofType.defaultValueattribute defined at extensioncore.static final StringGenerated constant - Attribute key ofType.descriptionattribute defined at extensioncore.static final StringGenerated constant - Attribute key ofType.xmldefinitionattribute defined at extensioncore.Fields inherited from class de.hybris.platform.core.model.type.TypeManagerManagedModel
AUTOCREATE, DEPRECATED, EXTENSIONNAME, GENERATE, NAMEFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.TypeModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextDeprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersDeprecated, 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 TypeMethodDescriptiongetCode()Generated method - Getter of theType.codeattribute defined at extensioncore.Generated method - Getter of theType.defaultValueattribute defined at extensioncore.Generated method - Getter of theType.descriptionattribute defined at extensioncore.getDescription(Locale loc) Generated method - Getter of theType.descriptionattribute defined at extensioncore.Generated method - Getter of theType.xmldefinitionattribute defined at extensioncore.voidGenerated method - Initial setter ofType.codeattribute defined at extensioncore.voidsetDefaultValue(Object value) Generated method - Setter ofType.defaultValueattribute defined at extensioncore.voidsetDescription(String value) Generated method - Setter ofType.descriptionattribute defined at extensioncore.voidsetDescription(String value, Locale loc) Generated method - Setter ofType.descriptionattribute defined at extensioncore.Methods inherited from class de.hybris.platform.core.model.type.TypeManagerManagedModel
getAutocreate, getDeprecated, getExtensionName, getGenerate, getName, getName, setAutocreate, setExtensionName, setGenerate, setName, setNameMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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
-
Field Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
XMLDEFINITION
Generated constant - Attribute key ofType.xmldefinitionattribute defined at extensioncore.- See Also:
-
CODE
Generated constant - Attribute key ofType.codeattribute defined at extensioncore.- See Also:
-
DEFAULTVALUE
Generated constant - Attribute key ofType.defaultValueattribute defined at extensioncore.- See Also:
-
DESCRIPTION
Generated constant - Attribute key ofType.descriptionattribute defined at extensioncore.- 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, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_code- initial attribute declared by typeTypeat extensioncore_generate- initial attribute declared by typeTypeManagerManagedat extensioncore
-
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 parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_code- initial attribute declared by typeTypeat extensioncore_generate- initial attribute declared by typeTypeManagerManagedat extensioncore_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getCode
Generated method - Getter of theType.codeattribute defined at extensioncore.- Returns:
- the code
-
getDefaultValue
Generated method - Getter of theType.defaultValueattribute defined at extensioncore.- Returns:
- the defaultValue
-
getDescription
Generated method - Getter of theType.descriptionattribute defined at extensioncore.- Returns:
- the description
-
getDescription
Generated method - Getter of theType.descriptionattribute defined at extensioncore.- Parameters:
loc- the value localization key- Returns:
- the description
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getXmldefinition
Generated method - Getter of theType.xmldefinitionattribute defined at extensioncore.- Returns:
- the xmldefinition
-
setCode
Generated method - Initial setter ofType.codeattribute defined at extensioncore. Can only be used at creation of model - before first save.- Parameters:
value- the code
-
setDefaultValue
Generated method - Setter ofType.defaultValueattribute defined at extensioncore.- Parameters:
value- the defaultValue
-
setDescription
Generated method - Setter ofType.descriptionattribute defined at extensioncore.- Parameters:
value- the description
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc) Generated method - Setter ofType.descriptionattribute defined at extensioncore.- Parameters:
value- the descriptionloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-