public class YDbModel extends Object implements YDbTableProvider
| Constructor and Description |
|---|
YDbModel(DatabaseSettings databaseSettings,
DbTypeSystem dbTypeSystem) |
| Modifier and Type | Method and Description |
|---|---|
String |
computeColumnNameForAttributeInType(YAttributeDescriptor attributeDescriptor,
YComposedType enclosingType) |
Database |
createDatabase() |
Database |
createDatabase(String tablePrefix) |
void |
createTable(String tableName,
int itemTypeCode) |
void |
createTable(String tableName,
int itemTypeCode,
Map<String,String> customProperties) |
YColumn |
findMappedColumn(YComposedType type,
YAttributeDescriptor attribute) |
String |
getColumnName(YAttributeDeployment attributeDeployment) |
CreationParameters |
getCreationParameters() |
YTable |
getLocalizedTable(String tableName) |
List<YTable> |
getLocalizedTables() |
YTable |
getMappedTable(YComposedType yComposedType) |
YTable |
getTable(String tableName) |
Map<String,YTable> |
getTables() |
void |
removeLocalizedTable(String tableName) |
public YDbModel(DatabaseSettings databaseSettings, DbTypeSystem dbTypeSystem)
public Database createDatabase()
public Database createDatabase(String tablePrefix)
public CreationParameters getCreationParameters()
public YTable getMappedTable(YComposedType yComposedType)
public YColumn findMappedColumn(YComposedType type, YAttributeDescriptor attribute)
public void removeLocalizedTable(String tableName)
public void createTable(String tableName, int itemTypeCode)
public void createTable(String tableName, int itemTypeCode, Map<String,String> customProperties)
public Map<String,YTable> getTables()
getTables in interface YDbTableProviderpublic String getColumnName(YAttributeDeployment attributeDeployment)
public String computeColumnNameForAttributeInType(YAttributeDescriptor attributeDescriptor, YComposedType enclosingType)
Copyright © 2017 SAP SE. All Rights Reserved.