Package de.hybris.bootstrap.typesystem
Class YAttributeDescriptor
java.lang.Object
de.hybris.bootstrap.typesystem.YNameSpaceElement
de.hybris.bootstrap.typesystem.YTypeSystemElement
de.hybris.bootstrap.typesystem.YDescriptor
de.hybris.bootstrap.typesystem.YAttributeDescriptor
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionYAttributeDescriptor(YNamespace container, String enclosingTypeCode, String qualifier, String typeCode) YAttributeDescriptor(String enclosingType, YAttributeDescriptor inheritedFrom) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDbColumnDefinitions(Map<String, String> dbColumnDefinitions) protected voidprotected voidgetColumnName(DatabaseSettings databaseSettings) protected YAtomicTypegetColumnType(YType type) intOverwritten to merge all super type properties.protected StringintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisPartOf()booleanbooleanbooleanbooleanbooleanbooleanbooleanprotected booleanbooleanbooleanbooleanbooleanprotected voidprotected voidvoidSince most typesystem elements use lazy references e.g.voidsetAttributeHandler(String attributeHandler) voidsetConfiguredPersistenceType(YAttributeDescriptor.PersistenceType configuredPersistenceType) voidsetDefaultValueDefinition(String defaultValueDefinition) voidsetDescription(String description) voidsetInherited(boolean isInherited) voidsetModelData(ModelTagListener.ModelData modelData) voidsetPersistenceQualifier(String persistenceQualifier) voidsetPersistenceType(YAttributeDescriptor.PersistenceType persistenceType) voidsetRealColumnName(String configuredColumnName) voidsetRedeclared(boolean isRedeclared) voidsetSelectionOfQualifier(String selectionOfQualifier) toString()voidvalidate()Validates the element.Methods inherited from class de.hybris.bootstrap.typesystem.YDescriptor
getQualifier, getType, getTypeCode, setModifiers, setUniqueModifierMethods inherited from class de.hybris.bootstrap.typesystem.YTypeSystemElement
addCustomProperties, addCustomProperty, getMetaTypeCode, isAutocreate, isGenerate, setAutocreate, setGenerate, setMetaTypeCodeMethods inherited from class de.hybris.bootstrap.typesystem.YNameSpaceElement
getLoaderInfo, getNamespace, getTypeSystem, setLoaderInfo
-
Field Details
-
READ_FLAG
public static final int READ_FLAG- See Also:
-
WRITE_FLAG
public static final int WRITE_FLAG- See Also:
-
REMOVE_FLAG
public static final int REMOVE_FLAG- See Also:
-
OPTIONAL_FLAG
public static final int OPTIONAL_FLAG- See Also:
-
SEARCH_FLAG
public static final int SEARCH_FLAG- See Also:
-
PARTOF_FLAG
public static final int PARTOF_FLAG- See Also:
-
PRIVATE_FLAG
public static final int PRIVATE_FLAG- See Also:
-
PROPERTY_FLAG
public static final int PROPERTY_FLAG- See Also:
-
LOCALIZED_FLAG
public static final int LOCALIZED_FLAG- See Also:
-
INHERITED_FLAG
public static final int INHERITED_FLAG- See Also:
-
INITIAL_FLAG
public static final int INITIAL_FLAG- See Also:
-
TIM_IGNORE_FLAG
public static final int TIM_IGNORE_FLAG- See Also:
-
ENCRYPTED_FLAG
public static final int ENCRYPTED_FLAG- See Also:
-
PRIMITIVE_FLAG
public static final int PRIMITIVE_FLAG- See Also:
-
-
Constructor Details
-
YAttributeDescriptor
public YAttributeDescriptor(YNamespace container, String enclosingTypeCode, String qualifier, String typeCode) -
YAttributeDescriptor
-
-
Method Details
-
isRedeclaredOneToManyRelationEnd
public boolean isRedeclaredOneToManyRelationEnd() -
resetCaches
public void resetCaches()Description copied from class:YNameSpaceElementSince most typesystem elements use lazy references e.g. by codes this method allows to reset all lazy loaded references and data so that they will be calculated anew upon next access.- Overrides:
resetCachesin classYDescriptor
-
redeclare
- Overrides:
redeclarein classYDescriptor
-
redeclare
- Overrides:
redeclarein classYDescriptor
-
getCustomProps
Overwritten to merge all super type properties. UsegetOwnCustomProps()to get just the ones declared at this type.- Overrides:
getCustomPropsin classYTypeSystemElement
-
getOwnCustomProps
-
toString
- Overrides:
toStringin classYDescriptor
-
connectToRelationEnd
-
getRelationEnd
-
getConditionQuery
-
isRelationEndAttribute
public boolean isRelationEndAttribute() -
getDefaultMetaTypeCode
- Specified by:
getDefaultMetaTypeCodein classYTypeSystemElement
-
getMetaType
- Overrides:
getMetaTypein classYTypeSystemElement
-
validate
public void validate()Description copied from class:YNameSpaceElementValidates the element. This should check whether or not lazy references can be resolved or any data is missing.- Overrides:
validatein classYDescriptor
-
isDeclared
public boolean isDeclared() -
isInherited
public boolean isInherited() -
getPersistenceQualifier
-
hasNonGenericPersistenceQualifier
public boolean hasNonGenericPersistenceQualifier() -
setPersistenceQualifier
-
getPersistenceType
-
isPersistable
public boolean isPersistable() -
getColumnType
-
getColumnType
-
getAttributeDeploymentOrFail
-
tryGetAttributeDeployment
-
isRelationAttribute
protected boolean isRelationAttribute() -
getConfiguredModifiers
public int getConfiguredModifiers() -
getModifiers
public int getModifiers()- Overrides:
getModifiersin classYDescriptor
-
isLocalized
public boolean isLocalized() -
setPersistenceType
-
getSelectionOfQualifier
-
getSelectionOf
-
setSelectionOfQualifier
-
getEnclosingTypeCode
-
isRedeclared
public boolean isRedeclared() -
clearPersistenceInfos
protected void clearPersistenceInfos() -
setInherited
public void setInherited(boolean isInherited) -
setRedeclared
public void setRedeclared(boolean isRedeclared) -
setModelData
-
isGenerateInModel
public boolean isGenerateInModel() -
getDeclaringAttribute
-
getDeclaringType
-
getSuperAttribute
-
getEnclosingType
-
getDefaultValueDefinition
-
setDefaultValueDefinition
-
getDescription
-
setDescription
-
getDbColumnDefinitions
-
addDbColumnDefinitions
-
getRealColumnName
- Returns:
- the configuredColumnName
-
setRealColumnName
- Parameters:
configuredColumnName- the configuredColumnName to set
-
isOptional
public boolean isOptional() -
isSearchable
public boolean isSearchable() -
isPartOf
public boolean isPartOf() -
isWritable
public boolean isWritable() -
isInitial
public boolean isInitial() -
isReadable
public boolean isReadable() -
isPrivate
public boolean isPrivate() -
isProperty
public boolean isProperty() -
isEncrypted
public boolean isEncrypted() -
isPrimitive
public boolean isPrimitive() -
isBooleanAttribute
public boolean isBooleanAttribute() -
getSetters
-
getGetters
-
setAttributeHandler
-
getAttributeHandlerIncludingSuperTypes
-
getConfiguredAttributeHandler
-
isUniqueModifier
public boolean isUniqueModifier()- Overrides:
isUniqueModifierin classYDescriptor
-
setConfiguredPersistenceType
public void setConfiguredPersistenceType(YAttributeDescriptor.PersistenceType configuredPersistenceType) -
getDynamicAttributeHandler
-
getColumnName
-
hasFixedColumnName
public boolean hasFixedColumnName()
-