Package de.hybris.bootstrap.typesystem
Class YTypeSystem
java.lang.Object
de.hybris.bootstrap.typesystem.YTypeSystem
- Direct Known Subclasses:
YPersistedTypeSystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtension(YExtension currentExtension) protected StringadjustColumnName(String requested, Set<String> currentColumnNames, int maxLength) protected voidCreatesYAttributeDescriptorobjects for all subtypes of the actual declaring type of a declared attribute.protected voidcreateInheritedAttributes(YComposedType composedType, YAttributeDescriptor inheritFrom) protected voidprotected YAttributeDescriptorcreateRelationEndAttribute(YRelation rel, YRelationEnd end, YRelationEnd _other) protected voiddeployAttribute(YAttributeDescriptor attDesc) protected voidCreatesYAttributeDeploymentobjects for eachYAttributeDescriptorwhich is persistable.protected voiddeployIndex(YIndex idx) protected voidCreatesYIndexDeploymentobjects for eachYIndex.voidgetAttribute(String enclosingTypeCode, String qualifier) getAttributeDeployments(String deploymentName) getAttributeRelationEnd(String enclosingTypeCode, String qualifier) getAttributes(String enclosingTypeCode) getDBTypeMappings(String databaseName) getDeployment(int typeCode) getDeployment(String name) getDeployments(boolean filterAbstract) getDeploymentTypes(YDeployment deployment) Finds all types which are mapped to a given deployment or which are super types of the ones directly mapped to the deployment.getEnumValues(String enumTypeCode) getExtension(String extName) getFinders(String deploymentName) getIndexDeployments(String deploymentName) getIndexes(String composedTypeCode) protected YCollectionTypegetOrCreateCollectionType(YNamespace namespace, String code, String elementType, YCollectionType.TypeOfCollection toc) protected YMapTypegetOrCreateMapType(YNamespace namespace, String code, String argumentType, String elementType) getSubtypes(String code) <T extends YType>
TgetTypes()booleanbooleanprotected voidprotected ClassresolveClass(Object resolveFor, String className) voidvalidate()
-
Constructor Details
-
YTypeSystem
public YTypeSystem(boolean buildMode)
-
-
Method Details
-
getExtension
-
isFinalized
public boolean isFinalized() -
finalizeTypeSystem
public void finalizeTypeSystem() -
mergeNamespaces
protected void mergeNamespaces() -
createRelationAttributes
protected void createRelationAttributes() -
createRelationEndAttribute
protected YAttributeDescriptor createRelationEndAttribute(YRelation rel, YRelationEnd end, YRelationEnd _other) -
getOrCreateCollectionType
protected YCollectionType getOrCreateCollectionType(YNamespace namespace, String code, String elementType, YCollectionType.TypeOfCollection toc) -
getOrCreateMapType
protected YMapType getOrCreateMapType(YNamespace namespace, String code, String argumentType, String elementType) -
adjustColumnName
-
deployAttributes
protected void deployAttributes()CreatesYAttributeDeploymentobjects for eachYAttributeDescriptorwhich is persistable. -
deployAttribute
-
deployIndexes
protected void deployIndexes()CreatesYIndexDeploymentobjects for eachYIndex. -
deployIndex
-
createInheritedAttributes
protected void createInheritedAttributes()CreatesYAttributeDescriptorobjects for all subtypes of the actual declaring type of a declared attribute. -
createInheritedAttributes
protected void createInheritedAttributes(YComposedType composedType, YAttributeDescriptor inheritFrom) -
validate
public void validate() -
getExtensions
-
getTypes
-
getTypes
-
getType
-
getDBTypeMappings
-
getDBTypeMappings
-
getAttributes
-
getAttributes
-
getAttribute
-
getAttributeRelationEnd
-
getSubtypes
-
getIndexes
-
getIndexes
-
getEnumValues
-
getEnumValues
-
getDeployments
-
getDeployments
-
getFinders
-
getAttributeDeployments
-
getDeploymentTypes
Finds all types which are mapped to a given deployment or which are super types of the ones directly mapped to the deployment.In fact this method collects all types which are allowed to provide attribute deployments to the given deployment.
-
getDeployment
-
getDeployment
-
getAttributeDeployments
-
getIndexDeployments
-
getIndexDeployments
-
getFinders
-
addExtension
-
getAtomicTypes
-
getComposedTypes
-
getMapTypes
-
getCollectionTypes
-
getEnumTypes
-
getRelationTypes
-
isBuildMode
public boolean isBuildMode()- Returns:
- the buildMode
-
resolveClass
-