public class YTypeSystemSchemaMapping extends Object
| Constructor and Description |
|---|
YTypeSystemSchemaMapping(YTypeSystem system,
DBSchema schema) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertSchema(DBColumn col) |
protected void |
assertSystem(YAttributeDeployment depl) |
protected void |
assertSystem(YDeployment depl) |
void |
assignColumn(YDeployment deployment,
YAttributeDeployment ad,
DBColumn column)
Assigns a attribute deployment to a certain column.
|
DBColumn |
getColumn(YAttributeDescriptor ad)
Retrieves the mapped column for a given attribute.
|
DBColumn |
getColumn(YDeployment deployment,
YAttributeDeployment ad)
Retrieves the mapped column for a given attribute deployment within a item deployment.
|
Map<YAttributeDeployment,DBColumn> |
getColumns(YDeployment depl)
Returns all mapped attributes for a given item deployment.
|
DBSchema |
getSchema() |
YTypeSystem |
getSystem() |
public YTypeSystemSchemaMapping(YTypeSystem system, DBSchema schema)
public YTypeSystem getSystem()
public DBSchema getSchema()
protected void assertSchema(DBColumn col)
protected void assertSystem(YAttributeDeployment depl)
protected void assertSystem(YDeployment depl)
public void assignColumn(YDeployment deployment, YAttributeDeployment ad, DBColumn column)
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 toIllegalArgumentException - if the attribute has been assigned before to a different column within the same deploymentpublic DBColumn getColumn(YAttributeDescriptor ad)
ad - the attribute desciriptor to get the mapped column forpublic DBColumn getColumn(YDeployment deployment, YAttributeDeployment ad)
deployment - the item deployment to find mapped column withinad - the attribute deployment to get column forpublic Map<YAttributeDeployment,DBColumn> getColumns(YDeployment depl)
depl - the item deploymentCopyright © 2017 SAP SE. All Rights Reserved.