Package de.hybris.bootstrap.typesystem
Class YRelation
- java.lang.Object
-
public class YRelation extends YComposedType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.bootstrap.typesystem.YComposedType
YComposedType.YModelConstructor
-
-
Constructor Summary
Constructors Constructor Description YRelation(YNamespace container, java.lang.String code)YRelation(YNamespace container, java.lang.String code, java.lang.String superTypeCode, java.lang.String jaloClassName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanallowMetaTypeInheritanceFrom(YComposedType superType)Dont inherit meta type from 'normal' composed types - using default meta type instead.protected java.lang.StringgetDefaultMetaTypeCode()YAttributeDescriptorgetLocalizationAttribute()YAttributeDescriptorgetOrderingAttribute()YRelationEndgetSourceEnd()YRelationEndgetTargetEnd()booleanisLocalized()booleanisOneToMany()voidsetLocalized(boolean localized)voidsetSourceEnd(YRelationEnd src)voidsetTargetEnd(YRelationEnd tgt)voidvalidate()Validates the element.-
Methods inherited from class de.hybris.bootstrap.typesystem.YComposedType
addConstructorSignatures, equals, getAllSubtypes, getAllSuperTypes, getAttribute, getAttributeIncludingSuperType, getAttributes, getCustomProps, getDeclaredAttributes, getDeployment, getDeploymentName, getDeprecatedSince, getJaloClass, getJaloClassName, getJaloOnlyClass, getJavaClassName, getMetaType, getOwnCustomProps, getOwnDeployment, getOwnJaloClass, getOwnJaloClassName, getRedeclaredAttributes, getSubtypes, getSuperType, getSuperTypeCode, getTypeDescription, getYModelConstructors, hashCode, isAbstract, isAssignableFrom, isGenerateModel, isJaloClassAbstract, isJaloOnly, isLegacyPersistence, isSingleton, isViewType, setAbstract, setDeploymentName, setDeprecatedSince, setGenerateModel, setJaloClassName, setJaloOnly, setLegacyPersistence, setSingleton, setTypeDescription
-
Methods inherited from class de.hybris.bootstrap.typesystem.YType
getCode, getDefaultValueDefinition, setDefaultValueDefinition, toString
-
Methods inherited from class de.hybris.bootstrap.typesystem.YTypeSystemElement
addCustomProperties, addCustomProperty, getMetaTypeCode, isAutocreate, isGenerate, resetCaches, setAutocreate, setGenerate, setMetaTypeCode
-
Methods inherited from class de.hybris.bootstrap.typesystem.YNameSpaceElement
getLoaderInfo, getNamespace, getTypeSystem, setLoaderInfo
-
-
-
-
Constructor Detail
-
YRelation
public YRelation(YNamespace container, java.lang.String code)
-
YRelation
public YRelation(YNamespace container, java.lang.String code, java.lang.String superTypeCode, java.lang.String jaloClassName)
-
-
Method Detail
-
allowMetaTypeInheritanceFrom
protected boolean allowMetaTypeInheritanceFrom(YComposedType superType)
Dont inherit meta type from 'normal' composed types - using default meta type instead.- Overrides:
allowMetaTypeInheritanceFromin classYComposedType
-
getDefaultMetaTypeCode
protected java.lang.String getDefaultMetaTypeCode()
- Overrides:
getDefaultMetaTypeCodein classYComposedType
-
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 classYComposedType
-
isLocalized
public boolean isLocalized()
-
setLocalized
public void setLocalized(boolean localized)
-
isOneToMany
public boolean isOneToMany()
-
getOrderingAttribute
public YAttributeDescriptor getOrderingAttribute()
-
getLocalizationAttribute
public YAttributeDescriptor getLocalizationAttribute()
-
getSourceEnd
public YRelationEnd getSourceEnd()
-
getTargetEnd
public YRelationEnd getTargetEnd()
-
setSourceEnd
public void setSourceEnd(YRelationEnd src)
-
setTargetEnd
public void setTargetEnd(YRelationEnd tgt)
-
-