/** * The name of the schema column on the schema definition table. * Defaults to <code>SCHEMA_DEF</code>. */ public void setSchemaColumn(String name) { _schemaColumnName = DBIdentifier.newColumn(name); }
/** * Map a logical foreign key to an unmapped base class relation. */ public static void mapRelationToUnmappedPC(ValueMapping vm, String name, boolean adapt) { mapRelationToUnmappedPC(vm, DBIdentifier.newColumn(name), adapt); }
/** * Set the column's name. You can only call this method on columns * whose table object is not set. * @deprecated use setIdentifier(DBIdentifier name) */ public void setName(String name) { setIdentifier(DBIdentifier.newColumn(name)); }
/** * Default base name for datastore identity columns, or null to the * mapping's built-in name. * @deprecated */ public void setDataStoreIdColumnName(String dsIdName) { setDataStoreIdColumnIdentifier(DBIdentifier.newColumn(dsIdName)); }
/** * Default base name for version identity columns, or null to the mapping's * built-in name. * @deprecated */ public void setVersionColumnName(String versName) { setVersionColumnIdentifier(DBIdentifier.newColumn(versName)); }
/** * Default base name for discriminator columns, or null to the mapping's * built-in name. * @deprecated */ public void setDiscriminatorColumnName(String discName) { setDiscriminatorColumnIdentifier(DBIdentifier.newColumn(discName)); }
/** * Default base name for null indicator columns, or null to the mapping's * built-in name. * @deprecated */ public void setNullIndicatorColumnName(String nullIndName) { setNullIndicatorColumnIdentifier(DBIdentifier.newColumn(nullIndName)); }
/** * @deprecated */ public void populateForeignKeyColumn(ValueMapping vm, String name, Table local, Table foreign, Column col, Object target, boolean inverse, int pos, int cols) { populateForeignKeyColumn(vm, DBIdentifier.newColumn(name), local, foreign, col, target, inverse, pos, cols); }
/** * Affirms if this table contains the column of the given name without any * side-effect. * @see Table#getColumn(String) can have side-effect of creating a column * for dynamic table implementation. * @deprecated */ public boolean containsColumn(String name) { return containsColumn(DBIdentifier.newColumn(name), null); }
/** * Add a column to the table. * @deprecated */ public Column addColumn(String name) { return addColumn(DBIdentifier.newColumn(name)); }
/** * Name of sequence column, if any. * @deprecated */ public void setSequenceColumn(String sequenceColumn) { setSequenceColumnIdentifier(DBIdentifier.newColumn(sequenceColumn)); }
/** * Make any necessary changes to the given column name to make it valid * for the current DB. The column name will be made unique for the * specified table. * @deprecated */ public String getValidColumnName(String name, Table table) { return getValidColumnName(DBIdentifier.newColumn(name), table, true).getName(); }
/** * Process a <code>field-result</code> node. */ private boolean startFieldResult(Attributes attrs) throws SAXException { String fieldName = attrs.getValue("name"); String columnName = DBIdentifier.newColumn(attrs.getValue("column"), delimit()).getName(); QueryResultMapping.PCResult parent = (QueryResultMapping.PCResult) currentElement(); parent.addMapping(fieldName, columnName); return true; }
protected void setTargetIdentifier(Column col, String refColumnName) { if (refColumnName.charAt(0) == SINGLE_QUOTE) { col.setTargetIdentifier(DBIdentifier.newConstant(refColumnName)); } else { col.setTargetIdentifier(DBIdentifier.newColumn(refColumnName, delimit())); } }
protected void setTargetIdentifier(Column col, String refColumnName) { if (refColumnName.charAt(0) == SINGLE_QUOTE) { col.setTargetIdentifier(DBIdentifier.newConstant(refColumnName)); } else { col.setTargetIdentifier(DBIdentifier.newColumn(refColumnName, delimit())); } }
/** * @deprecated */ public Column[] map(ValueMapping vm, String name, ColumnIO io, boolean adapt) { DBDictionary dict = vm.getMappingRepository().getDBDictionary(); DBIdentifier colName = DBIdentifier.newColumn(name, dict != null ? dict.delimitAll() : false); return map(vm, colName, io, adapt); }
/** * @deprecated */ public Column[] map(ValueMapping vm, String name, ColumnIO io, boolean adapt) { DBDictionary dict = vm.getMappingRepository().getDBDictionary(); DBIdentifier colName = DBIdentifier.newColumn(name, dict != null ? dict.delimitAll() : false); return map(vm, colName, io, adapt); }
/** * @deprecated */ public Column[] map(ValueMapping vm, String name, ColumnIO io, boolean adapt) { DBDictionary dict = vm.getMappingRepository().getDBDictionary(); DBIdentifier colName = DBIdentifier.newColumn(name, dict != null ? dict.delimitAll() : false); return map(vm, colName, io, adapt); }
@Override public Column[] getColumns(DatabaseMetaData meta, String catalog, String schemaName, String tableName, String columnName, Connection conn) throws SQLException { return getColumns(meta, DBIdentifier.newCatalog(catalog), DBIdentifier.newSchema(schemaName), DBIdentifier.newTable(tableName), DBIdentifier.newColumn(columnName), conn); }
/** * @deprecated */ public Column[] map(ValueMapping vm, String name, ColumnIO io, boolean adapt) { DBDictionary dict = vm.getMappingRepository().getDBDictionary(); DBIdentifier colName = DBIdentifier.newColumn(name, dict != null ? dict.delimitAll() : false); return map(vm, colName, io, adapt); }