/** * 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. */ public DBIdentifier getValidColumnName(DBIdentifier name, Table table) { return getValidColumnName(name, table, true); }
/** * 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. */ public DBIdentifier getValidColumnName(DBIdentifier name, Table table) { return getValidColumnName(name, table, true); }
/** * 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. */ public DBIdentifier getValidColumnName(DBIdentifier name, Table table) { return getValidColumnName(name, table, true); }
/** * 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(); }
/** * 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(); }
/** * Make any necessary changes to the given column name to make it valid * for the current DB. If checkForUniqueness is true, the column name will * be made unique for the specified table. * @deprecated */ public String getValidColumnName(String name, Table table, boolean checkForUniqueness) { return getValidColumnName(DBIdentifier.newColumn(name), table, checkForUniqueness).toString(); }
/** * Make any necessary changes to the given column name to make it valid * for the current DB. If checkForUniqueness is true, the column name will * be made unique for the specified table. * @deprecated */ public String getValidColumnName(String name, Table table, boolean checkForUniqueness) { return getValidColumnName(DBIdentifier.newColumn(name), table, checkForUniqueness).toString(); }
/** * Make any necessary changes to the given column name to make it valid * for the current DB. If checkForUniqueness is true, the column name will * be made unique for the specified table. * @deprecated */ public String getValidColumnName(String name, Table table, boolean checkForUniqueness) { return getValidColumnName(DBIdentifier.newColumn(name), table, checkForUniqueness).toString(); }
/** * Make any necessary changes to the given column name to make it valid * for the current DB. If checkForUniqueness is true, the column name will * be made unique for the specified table. * @deprecated */ public String getValidColumnName(String name, Table table, boolean checkForUniqueness) { return getValidColumnName(DBIdentifier.newColumn(name), table, checkForUniqueness).toString(); }
/** * Correct the given column's name. */ protected void correctName(Table table, Column col) { if (!_defMissing || _removeHungarianNotation) { String name = col.getName(); if (_removeHungarianNotation) name = removeHungarianNotation(name); col.setName(dict.getValidColumnName(name, table)); } }
/** * Add the primary key column to the given table and return it. */ protected Column addPrimaryKeyColumn(Table table) { DBDictionary dict = _conf.getDBDictionaryInstance(); Column pkColumn = table.addColumn(dict.getValidColumnName (getPrimaryKeyColumnIdentifier(), table)); pkColumn.setType(dict.getPreferredType(Types.TINYINT)); pkColumn.setJavaType(JavaTypes.INT); return pkColumn; }
/** * Add the primary key column to the given table and return it. */ protected Column addPrimaryKeyColumn(Table table) { DBDictionary dict = _conf.getDBDictionaryInstance(); Column pkColumn = table.addColumn(dict.getValidColumnName (getPrimaryKeyColumnIdentifier(), table)); pkColumn.setType(dict.getPreferredType(Types.TINYINT)); pkColumn.setJavaType(JavaTypes.INT); return pkColumn; }
/** * Add the primary key column to the given table and return it. */ protected Column addPrimaryKeyColumn(Table table) { DBDictionary dict = _conf.getDBDictionaryInstance(); Column pkColumn = table.addColumn(dict.getValidColumnName (getPrimaryKeyColumnIdentifier(), table)); pkColumn.setType(dict.getPreferredType(Types.TINYINT)); pkColumn.setJavaType(JavaTypes.INT); return pkColumn; }
/** * Add the primary key column to the given table and return it. */ protected Column addPrimaryKeyColumn(Table table) { DBDictionary dict = _conf.getDBDictionaryInstance(); Column pkColumn = table.addColumn(dict.getValidColumnName (getPrimaryKeyColumn(), table)); pkColumn.setType(dict.getPreferredType(Types.TINYINT)); pkColumn.setJavaType(JavaTypes.INT); return pkColumn; }
protected Column addPrimaryKeyColumn(Table table) { DBDictionary dict = getConfiguration().getDBDictionaryInstance(); Column pkColumn = table.addColumn(dict.getValidColumnName (getPrimaryKeyColumnIdentifier(), table)); pkColumn.setType(dict.getPreferredType(Types.VARCHAR)); pkColumn.setJavaType(JavaTypes.STRING); pkColumn.setSize(dict.characterColumnSize); return pkColumn; }
protected Column addPrimaryKeyColumn(Table table) { DBDictionary dict = getConfiguration().getDBDictionaryInstance(); Column pkColumn = table.addColumn(dict.getValidColumnName( getPrimaryKeyColumnIdentifier(), table)); pkColumn.setType(dict.getPreferredType(Types.VARCHAR)); pkColumn.setJavaType(JavaTypes.STRING); pkColumn.setSize(dict.characterColumnSize); return pkColumn; }
protected Column addPrimaryKeyColumn(Table table) { DBDictionary dict = getConfiguration().getDBDictionaryInstance(); Column pkColumn = table.addColumn(dict.getValidColumnName (getPrimaryKeyColumnIdentifier(), table)); pkColumn.setType(dict.getPreferredType(Types.VARCHAR)); pkColumn.setJavaType(JavaTypes.STRING); pkColumn.setSize(dict.characterColumnSize); return pkColumn; }
protected Column addPrimaryKeyColumn(Table table) { DBDictionary dict = getConfiguration().getDBDictionaryInstance(); Column pkColumn = table.addColumn(dict.getValidColumnName( getPrimaryKeyColumnIdentifier(), table)); pkColumn.setType(dict.getPreferredType(Types.VARCHAR)); pkColumn.setJavaType(JavaTypes.STRING); pkColumn.setSize(dict.characterColumnSize); return pkColumn; }
protected Column addPrimaryKeyColumn(Table table) { DBDictionary dict = getConfiguration().getDBDictionaryInstance(); Column pkColumn = table.addColumn(dict.getValidColumnName (getPrimaryKeyColumnIdentifier(), table)); pkColumn.setType(dict.getPreferredType(Types.VARCHAR)); pkColumn.setJavaType(JavaTypes.STRING); pkColumn.setSize(dict.characterColumnSize); return pkColumn; }
protected Column addPrimaryKeyColumn(Table table) { DBDictionary dict = getConfiguration().getDBDictionaryInstance(); Column pkColumn = table.addColumn(dict.getValidColumnName( getPrimaryKeyColumn(), table)); pkColumn.setType(dict.getPreferredType(Types.VARCHAR)); pkColumn.setJavaType(JavaTypes.STRING); pkColumn.setSize(dict.characterColumnSize); return pkColumn; }