Class YTypeSystemSchemaMapping
java.lang.Object
de.hybris.platform.util.typesystem.YTypeSystemSchemaMapping
Mapping of a type system to a database schema.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertSchema(DBColumn col) protected voidprotected voidassertSystem(YDeployment depl) voidassignColumn(YDeployment deployment, YAttributeDeployment ad, DBColumn column) Assigns a attribute deployment to a certain column.Retrieves the mapped column for a given attribute.getColumn(YDeployment deployment, YAttributeDeployment ad) Retrieves the mapped column for a given attribute deployment within a item deployment.getColumns(YDeployment depl) Returns all mapped attributes for a given item deployment.
-
Constructor Details
-
YTypeSystemSchemaMapping
-
-
Method Details
-
getSystem
-
getSchema
-
assertSchema
-
assertSystem
-
assertSystem
-
assignColumn
Assigns a attribute deployment to a certain column.- Parameters:
deployment- the actual deployment which the attribute is assigned for (may be multiple per attribute due to inheritance)ad- the attribute deployment to assigncolumn- the column to assign to- Throws:
IllegalArgumentException- if the attribute has been assigned before to a different column within the same deployment
-
getColumn
Retrieves the mapped column for a given attribute.- Parameters:
ad- the attribute desciriptor to get the mapped column for- Returns:
- the column or null if the attribute has not been mapped
-
getColumn
Retrieves the mapped column for a given attribute deployment within a item deployment.- Parameters:
deployment- the item deployment to find mapped column withinad- the attribute deployment to get column for- Returns:
- the column or null if the attribute has not been mapped
-
getColumns
Returns all mapped attributes for a given item deployment.- Parameters:
depl- the item deployment
-