/** * The name of the table's primary key column. Defaults to * <code>ID</code>. */ public String getPrimaryKeyColumn() { return _pkColumnName.getName(); }
/** * The name of the schema column on the schema definition table. * Defaults to <code>SCHEMA_DEF</code>. */ public String getSchemaColumn() { return _schemaColumnName.getName(); }
/** * Return the schema name that should be used for new tables, or null if * none. * @deprecated */ public static String getNewTableSchema(JDBCConfiguration conf) { return getNewTableSchemaIdentifier(conf).getName(); }
/** * Return the column's full name, in the form <table>.<name>. * @deprecated use getFullDBIdentifier() */ public String getFullName() { return getFullDBIdentifier().getName(); }
/** * Return the name of the sequence. * @deprecated */ public String getName() { return getIdentifier().getName(); }
/** * Return the sequence name, including schema, using '.' as the * catalog separator. * @deprecated */ public String getFullName() { return getFullIdentifier().getName(); }
/** * Return the column table's schema name. * @deprecated */ public String getSchemaName() { return getSchemaIdentifier().getName(); }
/** * Sequence names are a kernel object so DBIdentifiers must be converted to * strings * @param name * @param repos */ public SequenceMapping(DBIdentifier name, MappingRepository repos) { super(DBIdentifier.isNull(name) ? null : name.getName(), repos); }
/** * Name of sequence table, if any. * @deprecated */ public String getTable() { return getTableIdentifier().getName(); }
/** * Name of sequence column, if any. * @deprecated */ public String getSequenceColumn() { return getSequenceColumnIdentifier().getName(); }
/** * Default base name for null indicator columns, or null to the mapping's * built-in name. * @deprecated */ public String getNullIndicatorColumnName() { return getNullIndicatorColumnIdentifier().getName(); }
/** * Return the table name, including schema, using '.' as the * catalog separator. * @deprecated */ public String getFullName() { return getFullIdentifier().getName(); }
public boolean isSystemIndex(DBIdentifier name, Table table) { // names starting with "pg_" are reserved for Postgresql internal use String strName = DBIdentifier.isNull(name) ? null : name.getName(); return super.isSystemIndex(name, table) || (strName != null && strName.toLowerCase(Locale.ENGLISH).startsWith("pg_")); }
/** * 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 index name to make it valid * for the current DB. * @deprecated */ public String getValidIndexName(String name, Table table) { return getValidIndexName(DBIdentifier.newIndex(name), table).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; }
/** * Start tracking secondary table information and columns */ private boolean startSecondaryTable(Attributes attrs) throws SAXException { _secondaryTable = toTableIdentifier(attrs.getValue("schema"), attrs.getValue("name")).getName(); ((ClassMapping)currentElement()).getMappingInfo() .addSecondaryTable(DBIdentifier.newTable(_secondaryTable)); return true; }
@Override protected String normalizeSequenceName(String seqName) { if (StringUtil.isEmpty(seqName)) { return seqName; } return DBIdentifier.newSequence(seqName, delimit()).getName(); }
@Override protected String normalizeSchemaName(String schName) { if (StringUtil.isEmpty(schName)) { return schName; } return DBIdentifier.newSchema(schName, delimit()).getName(); }