public MutableColumn(String name, ColumnType type) { this(name); setType(type); }
public MutableColumn(String name, ColumnType type) { this(name); setType(type); }
public MutableColumn(String name, ColumnType type, Table table) { this(name); setType(type); setTable(table); }
@Override public final T ofType(ColumnType type) { _column.setType(type); return getReturnObject(); }
public MutableColumn(String name, ColumnType type, Table table) { this(name); setType(type); setTable(table); }
@Override public final T ofType(ColumnType type) { _column.setType(type); return getReturnObject(); }
@Override public MutableColumn build() { final MutableColumn column = new MutableColumn(_name); column.setType(detectType()); if (_nulls) { column.setNullable(true); } return column; }
@Override public MutableColumn build() { final MutableColumn column = new MutableColumn(_name); column.setType(detectType()); if (_nulls) { column.setNullable(true); } return column; }
columnType = ColumnType.VARCHAR; final MutableColumn column = new MutableColumn(columnName).setType(columnType).setTable(table); table.addColumn(column);
mutableColumn.setType(newColumn.getType());
column.setType(columnType); column.setTable(table); column.setColumnNumber(i);
@Override public final T like(Column column) { _column.setColumnSize(column.getColumnSize()); _column.setNativeType(column.getNativeType()); _column.setType(column.getType()); _column.setNullable(column.isNullable()); _column.setPrimaryKey(column.isPrimaryKey()); return getReturnObject(); }
@Override public final T like(Column column) { _column.setColumnSize(column.getColumnSize()); _column.setNativeType(column.getNativeType()); _column.setType(column.getType()); _column.setNullable(column.isNullable()); _column.setPrimaryKey(column.isPrimaryKey()); return getReturnObject(); }
@Override protected Schema getMainSchema() throws MetaModelException { final MutableSchema schema = new MutableSchema(getMainSchemaName()); for (XmlSaxTableDef tableDef : _tableDefs) { final String rowXpath = tableDef.getRowXpath(); final MutableTable table = new MutableTable(getTableName(tableDef)).setSchema(schema).setRemarks("XPath: " + rowXpath); final MutableColumn rowIndexColumn = new MutableColumn(COLUMN_NAME_ROW_ID, ColumnType.INTEGER) .setColumnNumber(0).setNullable(false).setTable(table).setRemarks("Row/tag index (0-based)"); table.addColumn(rowIndexColumn); for (String valueXpath : tableDef.getValueXpaths()) { final MutableColumn column = new MutableColumn(getName(tableDef, valueXpath)).setRemarks("XPath: " + valueXpath); if (valueXpath.startsWith("index(") && valueXpath.endsWith(")")) { column.setType(ColumnType.INTEGER); } else { column.setType(ColumnType.STRING); } column.setTable(table); table.addColumn(column); } schema.addTable(table); } return new ImmutableSchema(schema); }