com.healthmarketscience.sqlbuilder.dbspec.basic.DbSchema Java Examples
The following examples show how to use
com.healthmarketscience.sqlbuilder.dbspec.basic.DbSchema.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DimensionTable.java From olaper with MIT License | 5 votes |
protected void index(DbSchema dbSchema) { dbTable = dbSchema.addTable(table); dbKey = dbTable.addColumn(key); for(TableColumn t : columns){ t.setDbColumn(dbTable.addColumn(t.column)); } }
Example #2
Source File: PhysicalSchema.java From olaper with MIT License | 4 votes |
public DbSchema getDbSchema() { return dbSchema; }
Example #3
Source File: DimensionTable.java From olaper with MIT License | 4 votes |
public DimensionTable createAlias(DbSchema dbSchema) { DimensionTable alias = new DimensionTable(); alias.key = key; alias.table = table; alias.columns = new ArrayList<TableColumn>(); for(TableColumn tc : columns){ TableColumn alias_tc = new TableColumn(); alias_tc.attribute = tc.attribute; alias_tc.column = tc.column; alias_tc.identified_by = tc.identified_by; alias_tc.sort_direction = tc.sort_direction; alias_tc.sorted_by = tc.sorted_by; alias.columns.add(alias_tc); } alias.index(dbSchema); return alias; }