Uses of Class
org.apache.openjpa.jdbc.identifier.DBIdentifier
Package
Description
OpenJPA-JDBC Runtime Kernel
OpenJPA-JDBC ORM Metadata
OpenJPA-JDBC ORM Strategies
OpenJPA-JDBC Schema Management
OpenJPA-JDBC SQL Abstraction
OpenJPA JPA-JDBC
-
Uses of DBIdentifier in org.apache.openjpa.jdbc.identifier
Modifier and TypeClassDescriptionclass
This class extends DBIdentifier to provide support for qualified identifiers such as schema qualified tables and table qualified columns.Modifier and TypeFieldDescriptionstatic final DBIdentifier
DBIdentifier.NULL
Special NULL indicator for db identifiers.Modifier and TypeMethodDescriptionstatic DBIdentifier
DBIdentifier.append
(DBIdentifier name, String str) Returns a new DBIdentifier with the given string appended.DBIdentifierUtil.append
(DBIdentifier.DBIdentifierType resultId, DBIdentifier... names) Appends multiple names together using the appropriate name delimiter.DBIdentifierUtilImpl.append
(DBIdentifier.DBIdentifierType resultId, DBIdentifier... names) DBIdentifier.clone()
Clones an identifier using deep copy.static DBIdentifier
DBIdentifier.combine
(DBIdentifier.DBIdentifierType id, String... names) Combines an array of names names using standard combining rules and returns an identifier of the specified type.static DBIdentifier
DBIdentifier.combine
(DBIdentifier name, String str) Returns a new DBIdentifier with the given string combined using delimiting rules and appropriate separators.DBIdentifierUtil.convertSchemaCase
(DBIdentifier schema) Converts the name of the specified delimiter to the appropriate case as defined by the configuration.DBIdentifierUtilImpl.convertSchemaCase
(DBIdentifier name) Convert the specified schema name to a name that the database will be able to understand in metadata operations.DBIdentifierUtil.fromDBName
(String name, DBIdentifier.DBIdentifierType id) Converts the name returned by the database to an identifier of the specified type.DBIdentifierUtilImpl.fromDBName
(String name, DBIdentifier.DBIdentifierType id) Creates a new identifier of a given type based upon the name returned from the database.DBIdentifierUtil.getGeneratedKeySequenceName
(Column col, int maxLen) Returns a generated key sequence identifier for the column.DBIdentifierUtilImpl.getGeneratedKeySequenceName
(Column col, int maxLen) QualifiedDBIdentifier.getIdentifier()
Returns this object as a DBIdentifier.QualifiedDBIdentifier.getObjectTableName()
Gets the object table name component of the path, if the path is a table qualified identifier such as a constraint or column.QualifiedDBIdentifier.getSchemaName()
Gets the schema component of the path.DBIdentifier.getUnqualifiedName()
Returns the unqualified name of this identifier.QualifiedDBIdentifier.getUnqualifiedName()
Returns a new unqualified name based on this instance.DBIdentifierUtil.getValidColumnIdentifier
(DBIdentifier name, Table table, int maxLen, boolean checkForUniqueness) Returns a valid column name/identifier, based upon the configuration and provided parameters.DBIdentifierUtilImpl.getValidColumnIdentifier
(DBIdentifier name, Table table, int maxLen, boolean checkForUniqueness) DBIdentifierUtil.getValidForeignKeyIdentifier
(DBIdentifier name, Table table, Table toTable, int maxLen) Returns a valid foreign key identifier, based upon the configuration and provided parameters.DBIdentifierUtilImpl.getValidForeignKeyIdentifier
(DBIdentifier name, Table table, Table toTable, int maxLen) DBIdentifierUtil.getValidIndexIdentifier
(DBIdentifier name, Table table, int maxLen) Returns a valid index identifier, based upon the configuration and provided parameters.DBIdentifierUtilImpl.getValidIndexIdentifier
(DBIdentifier name, Table table, int maxLen) DBIdentifierUtil.getValidSequenceIdentifier
(DBIdentifier name, Schema schema, int maxLen) Returns a valid index identifier, based upon the configuration and provided parameters.DBIdentifierUtilImpl.getValidSequenceIdentifier
(DBIdentifier name, Schema schema, int maxLen) DBIdentifierUtil.getValidTableIdentifier
(DBIdentifier name, Schema schema, int maxLen) Returns a valid table identifier, based upon the configuration and provided parameters.DBIdentifierUtilImpl.getValidTableIdentifier
(DBIdentifier name, Schema schema, int maxLen) DBIdentifierUtil.getValidUniqueIdentifier
(DBIdentifier name, Table table, int maxLen) Returns a valid unique constraint identifier, based upon the configuration and provided parameters.DBIdentifierUtilImpl.getValidUniqueIdentifier
(DBIdentifier name, Table table, int maxLen) DBIdentifierUtil.makeIdentifierValid
(DBIdentifier sname, NameSet set, int maxLen, boolean checkForUniqueness) Shortens the given name to the given maximum length, then checks that it is not a reserved word.DBIdentifierUtilImpl.makeIdentifierValid
(DBIdentifier sname, NameSet set, int maxLen, boolean checkForUniqueness) DBIdentifierUtil.makeNameValid
(String name, NameSet set, int maxLen, int nameType, boolean checkForUniqueness) Shortens the given name to the given maximum length, then checks that it is not a reserved word.DBIdentifierUtilImpl.makeNameValid
(String name, NameSet set, int maxLen, int nameType, boolean checkForUniqueness) static DBIdentifier
DBIdentifier.newCatalog
(String name) Constructs a new identifier of type Catalog.static DBIdentifier
DBIdentifier.newCatalog
(String name, boolean delimit) Constructs a new identifier of type Catalog ,optionally delimiting the name.static DBIdentifier
Constructs a new identifier of type Column.static DBIdentifier
Constructs a new identifier of type Column,optionally delimiting the name.static DBIdentifier
DBIdentifier.newColumnDefinition
(String name) Constructs a new identifier of type Column Definition.static DBIdentifier
DBIdentifier.newConstant
(String name) Constructs a new identifier of type Constant.static DBIdentifier
DBIdentifier.newConstraint
(String name) Constructs a new identifier of type Constraint.static DBIdentifier
DBIdentifier.newConstraint
(String name, boolean delimit) Constructs a new identifier of type Constraint, optionally delimiting the name.static DBIdentifier
DBIdentifier.newDefault
(String name) Constructs a new identifier of type Default.static DBIdentifier
DBIdentifier.newForeignKey
(String name) Constructs a new identifier of type ForeignKey.static DBIdentifier
DBIdentifier.newForeignKey
(String name, boolean delimit) Constructs a new identifier of type ForeignKey, optionally delimiting the name.protected static DBIdentifier
DBIdentifier.newIdentifier
(String name, DBIdentifier.DBIdentifierType id) Constructs a new identifier with the provided name and typestatic DBIdentifier
DBIdentifier.newIdentifier
(String name, DBIdentifier.DBIdentifierType id, boolean toUpper) Constructs a new identifier with the provided name an type.protected static DBIdentifier
DBIdentifier.newIdentifier
(String name, DBIdentifier.DBIdentifierType id, boolean toUpper, boolean delimit) Constructs a new identifier (potentially a compound QualifiedDBIdentifier) with the provided name an type.protected static DBIdentifier
DBIdentifier.newIdentifier
(String name, DBIdentifier.DBIdentifierType id, boolean toUpper, boolean delimit, boolean ignoreCase) Constructs a new identifier (potentially a compound QualifiedDBIdentifier) with the provided name an type.static DBIdentifier
Constructs a new identifier of type Index.static DBIdentifier
Constructs a new identifier of type Index, optionally delimiting the name.static DBIdentifier
DBIdentifier.newProcedure
(String name) static DBIdentifier
Constructs a new identifier of type Schema.static DBIdentifier
Constructs a new identifier of type Schema, optionally delimiting the name.static DBIdentifier
DBIdentifier.newSequence
(String name) Constructs a new identifier of type Sequence.static DBIdentifier
DBIdentifier.newSequence
(String name, boolean delimit) Constructs a new identifier of type Sequence, optionally delimiting the name.static DBIdentifier
Constructs a new identifier of type Table.static DBIdentifier
Constructs a new identifier of type Table, optionally delimiting the name.static DBIdentifier
DBIdentifier.preCombine
(DBIdentifier name, String prefix) Returns a new identifier with a combined prefix and name using the standard name concatenation character ('_').static DBIdentifier
DBIdentifier.removeDelimiters
(DBIdentifier name) Returns a new identifier with delimiters removed.static DBIdentifier
DBIdentifier.removeDelimitersAndMakeUpper
(DBIdentifier name) CombineremoveDelimiters(org.apache.openjpa.jdbc.identifier.DBIdentifier)
withtoUpper(org.apache.openjpa.jdbc.identifier.DBIdentifier, boolean)
in order to save allocations and CPU cycles.static DBIdentifier
DBIdentifier.removeHungarianNotation
(DBIdentifier name) Returns a new DBIdentifier with Hungarian notation removed.static DBIdentifier
DBIdentifier.removeLeading
(DBIdentifier name, String leadingStr) Returns a new DBIdentifier with the specified leading string removed.static DBIdentifier[]
DBIdentifier.split
(String name, DBIdentifier.DBIdentifierType id, String delim) Splits a string delimited by the specified delimiter of a given name type into an array of DBIdentifier objects.static DBIdentifier[]
DBIdentifier.split
(DBIdentifier.DBIdentifierType resultType, String name) Splits a given DBIdentifier into multiple DBIdentifiers.static DBIdentifier[]
QualifiedDBIdentifier.splitPath
(DBIdentifier sName) Splits a qualified path into separate identifiers.static DBIdentifier[]
DBIdentifier.toArray
(String[] columnNames, DBIdentifier.DBIdentifierType id) Converts the provided set of names to an array of identifiers of the provided typestatic DBIdentifier[]
DBIdentifier.toArray
(String[] names, DBIdentifier.DBIdentifierType id, boolean delimit) Converts the provided set of names to an array of identifiers of the provided type, optionally delimiting the names.static DBIdentifier
DBIdentifier.toLower
(DBIdentifier name) Returns a new DBIdentifier converted to lower case - if not delimited.static DBIdentifier
DBIdentifier.toLower
(DBIdentifier name, boolean force) Returns a new DBIdentifier converted to lower case.static DBIdentifier
DBIdentifier.toUpper
(DBIdentifier name) Returns a new DBIdentifier converted to upper case - if not delimited.static DBIdentifier
DBIdentifier.toUpper
(DBIdentifier name, boolean force) Returns a new DBIdentifier converted to upper case.static DBIdentifier
DBIdentifier.trim
(DBIdentifier name) Returns a new delimiter with leading and trailing spaces removed.static DBIdentifier
DBIdentifier.trimToNull
(DBIdentifier name) Returns a copy of an identifier with name trimmed to null.static DBIdentifier
DBIdentifier.truncate
(DBIdentifier name, int length) Returns a new DBIdentifier truncated to lengthModifier and TypeMethodDescriptionstatic DBIdentifier
DBIdentifier.append
(DBIdentifier name, String str) Returns a new DBIdentifier with the given string appended.DBIdentifierUtil.append
(DBIdentifier.DBIdentifierType resultId, DBIdentifier... names) Appends multiple names together using the appropriate name delimiter.DBIdentifierUtilImpl.append
(DBIdentifier.DBIdentifierType resultId, DBIdentifier... names) static DBIdentifier
DBIdentifier.combine
(DBIdentifier name, String str) Returns a new DBIdentifier with the given string combined using delimiting rules and appropriate separators.DBIdentifierUtil.convertSchemaCase
(DBIdentifier schema) Converts the name of the specified delimiter to the appropriate case as defined by the configuration.DBIdentifierUtilImpl.convertSchemaCase
(DBIdentifier name) Convert the specified schema name to a name that the database will be able to understand in metadata operations.DBIdentifierUtilImpl.delimit
(DBIdentifier name, boolean force) static boolean
DBIdentifier.equal
(DBIdentifier name1, DBIdentifier name2) Static equality method for comparing two identifiers.boolean
DBIdentifier.equalsIgnoreCase
(DBIdentifier name) Equality operator which ignores case.static boolean
DBIdentifier.equalsIgnoreCase
(DBIdentifier name1, DBIdentifier name2) Static equality operator which ignores case.static QualifiedDBIdentifier
QualifiedDBIdentifier.getPath
(DBIdentifier sName) Creates a qualified path from an identifier.DBIdentifierUtil.getValidColumnIdentifier
(DBIdentifier name, Table table, int maxLen, boolean checkForUniqueness) Returns a valid column name/identifier, based upon the configuration and provided parameters.DBIdentifierUtilImpl.getValidColumnIdentifier
(DBIdentifier name, Table table, int maxLen, boolean checkForUniqueness) DBIdentifierUtil.getValidForeignKeyIdentifier
(DBIdentifier name, Table table, Table toTable, int maxLen) Returns a valid foreign key identifier, based upon the configuration and provided parameters.DBIdentifierUtilImpl.getValidForeignKeyIdentifier
(DBIdentifier name, Table table, Table toTable, int maxLen) DBIdentifierUtil.getValidIndexIdentifier
(DBIdentifier name, Table table, int maxLen) Returns a valid index identifier, based upon the configuration and provided parameters.DBIdentifierUtilImpl.getValidIndexIdentifier
(DBIdentifier name, Table table, int maxLen) DBIdentifierUtil.getValidSequenceIdentifier
(DBIdentifier name, Schema schema, int maxLen) Returns a valid index identifier, based upon the configuration and provided parameters.DBIdentifierUtilImpl.getValidSequenceIdentifier
(DBIdentifier name, Schema schema, int maxLen) DBIdentifierUtil.getValidTableIdentifier
(DBIdentifier name, Schema schema, int maxLen) Returns a valid table identifier, based upon the configuration and provided parameters.DBIdentifierUtilImpl.getValidTableIdentifier
(DBIdentifier name, Schema schema, int maxLen) DBIdentifierUtil.getValidUniqueIdentifier
(DBIdentifier name, Table table, int maxLen) Returns a valid unique constraint identifier, based upon the configuration and provided parameters.DBIdentifierUtilImpl.getValidUniqueIdentifier
(DBIdentifier name, Table table, int maxLen) static boolean
DBIdentifier.isEmpty
(DBIdentifier name) Returns true if the identifier is null or the name is null or empty.static boolean
DBIdentifier.isNull
(DBIdentifier name) Returns true if the identifier is null.static String
DBIdentifier.join
(DBIdentifier... names) Joins the list of identifiers using the appropriate delimiters and returns a string based identifier.DBIdentifierUtil.makeIdentifierValid
(DBIdentifier sname, NameSet set, int maxLen, boolean checkForUniqueness) Shortens the given name to the given maximum length, then checks that it is not a reserved word.DBIdentifierUtilImpl.makeIdentifierValid
(DBIdentifier sname, NameSet set, int maxLen, boolean checkForUniqueness) static QualifiedDBIdentifier
QualifiedDBIdentifier.newPath
(DBIdentifier... names) Creates a qualified identifier based upon an array of DBIdentifiers.static DBIdentifier
DBIdentifier.preCombine
(DBIdentifier name, String prefix) Returns a new identifier with a combined prefix and name using the standard name concatenation character ('_').static DBIdentifier
DBIdentifier.removeDelimiters
(DBIdentifier name) Returns a new identifier with delimiters removed.static DBIdentifier
DBIdentifier.removeDelimitersAndMakeUpper
(DBIdentifier name) CombineremoveDelimiters(org.apache.openjpa.jdbc.identifier.DBIdentifier)
withtoUpper(org.apache.openjpa.jdbc.identifier.DBIdentifier, boolean)
in order to save allocations and CPU cycles.static DBIdentifier
DBIdentifier.removeHungarianNotation
(DBIdentifier name) Returns a new DBIdentifier with Hungarian notation removed.static DBIdentifier
DBIdentifier.removeLeading
(DBIdentifier name, String leadingStr) Returns a new DBIdentifier with the specified leading string removed.void
DBIdentifier.setName
(DBIdentifier name) Set the name of this identifier based upon a given identifier.void
QualifiedDBIdentifier.setObjectTableName
(DBIdentifier objectName) Sets the object table name component of the path, if the path is a table qualified identifier such as a constraint or column.void
QualifiedDBIdentifier.setPath
(DBIdentifier... sNames) Set the identifiers that make up the path.void
QualifiedDBIdentifier.setSchemaName
(DBIdentifier schemaName) Sets the schema component of the path.static DBIdentifier[]
QualifiedDBIdentifier.splitPath
(DBIdentifier sName) Splits a qualified path into separate identifiers.DBIdentifierUtil.toDBName
(DBIdentifier name) Converts the specified identifier to a format required by the database.DBIdentifierUtil.toDBName
(DBIdentifier name, boolean delimit) Converts the specified identifier to a format required by the database, optionally delimiting the name.DBIdentifierUtilImpl.toDBName
(DBIdentifier name) Converts the name to a name which can be used within a SQL statement.DBIdentifierUtilImpl.toDBName
(DBIdentifier name, boolean delimit) Converts the name to a name which can be used within a SQL statement.static DBIdentifier
DBIdentifier.toLower
(DBIdentifier name) Returns a new DBIdentifier converted to lower case - if not delimited.static DBIdentifier
DBIdentifier.toLower
(DBIdentifier name, boolean force) Returns a new DBIdentifier converted to lower case.static String[]
DBIdentifier.toStringArray
(DBIdentifier[] sNames) Returns a string array of names based upon the provided set of identifiers.static DBIdentifier
DBIdentifier.toUpper
(DBIdentifier name) Returns a new DBIdentifier converted to upper case - if not delimited.static DBIdentifier
DBIdentifier.toUpper
(DBIdentifier name, boolean force) Returns a new DBIdentifier converted to upper case.static DBIdentifier
DBIdentifier.trim
(DBIdentifier name) Returns a new delimiter with leading and trailing spaces removed.static DBIdentifier
DBIdentifier.trimToNull
(DBIdentifier name) Returns a copy of an identifier with name trimmed to null.static DBIdentifier
DBIdentifier.truncate
(DBIdentifier name, int length) Returns a new DBIdentifier truncated to length -
Uses of DBIdentifier in org.apache.openjpa.jdbc.kernel
Modifier and TypeMethodDescriptionTableJDBCSeq.getPrimaryKeyColumnIdentifier()
NativeJDBCSeq.getSchemaIdentifier()
TableJDBCSeq.getUniqueConstraintIdentifier()
TableJDBCSeq.resolveTableIdentifier
(ClassMapping mapping, Table table) Resolve a fully qualified table nameModifier and TypeMethodDescriptionPreparedStatementManagerImpl.getGeneratedKeys
(PreparedStatement stmnt, DBIdentifier[] autoAssignColNames) PreparedStatementManagerImpl.populateAutoAssignCols
(PreparedStatement stmnt, Column[] autoAssign, DBIdentifier[] autoAssignColNames, RowImpl row) This method will only be called when there is auto assign columns.protected void
PreparedStatementManagerImpl.setObjectId
(List vals, Column[] autoAssign, DBIdentifier[] autoAssignColNames, RowImpl row) void
TableJDBCSeq.setUniqueConstraintName
(DBIdentifier uniqueConstraintName) -
Uses of DBIdentifier in org.apache.openjpa.jdbc.meta
Modifier and TypeMethodDescriptionMappingDefaultsImpl.getDataStoreIdColumnIdentifier()
MappingDefaultsImpl.getDiscriminatorColumnIdentifier()
MappingInfo.TableDefaults.getIdentifier
(Schema schema) protected DBIdentifier
MappingDefaultsImpl.getIndexName
(DBIdentifier name, Table table, Column[] cols) MappingDefaultsImpl.getNullIndicatorColumnIdentifier()
MappingDefaultsImpl.getOrderColumnIdentifier()
SequenceMapping.getPrimaryKeyColumnIdentifier()
MappingDefaults.getPrimaryKeyIdentifier
(ClassMapping cm, Table table) Return the name of the primary key for the table of the given class, or null for database default.MappingDefaultsImpl.getPrimaryKeyIdentifier
(ClassMapping cm, Table table) NoneMappingDefaults.getPrimaryKeyIdentifier
(ClassMapping cm, Table table) ClassMappingInfo.getSchemaIdentifier()
ClassMappingInfo.getSecondaryTableIdentifier
(DBIdentifier tableName) ClassMappingInfo.getSecondaryTableIdentifiers()
SequenceMapping.getSequenceColumnIdentifier()
ClassMappingInfo.getTableIdentifier()
FieldMappingInfo.getTableIdentifier()
MappingDefaults.getTableIdentifier
(ClassMapping cls, Schema defaultSchema) Return the default table name for the given class.MappingDefaults.getTableIdentifier
(FieldMapping fm, Schema defaultSchema) Return the default secondary table name for the given field.MappingDefaultsImpl.getTableIdentifier
(ClassMapping cls, Schema schema) MappingDefaultsImpl.getTableIdentifier
(FieldMapping fm, Schema schema) NoneMappingDefaults.getTableIdentifier
(ClassMapping cls, Schema defaultSchema) NoneMappingDefaults.getTableIdentifier
(FieldMapping fm, Schema defaultSchema) SequenceMapping.getTableIdentifier()
SequenceMapping.getUniqueColumnsIdentifier()
SequenceMapping.getUniqueConstraintIdentifier()
MappingDefaultsImpl.getVersionColumnIdentifier()
Modifier and TypeMethodDescriptionvoid
ClassMappingInfo.addIndex
(DBIdentifier table, Index idx) Add index for the given table.void
ClassMappingInfo.addSecondaryTable
(DBIdentifier second) void
ClassMappingInfo.addUnique
(DBIdentifier table, Unique unique) Add a unique constraint for the given table.MappingInfo.createTable
(MetaDataContext context, MappingInfo.TableDefaults def, DBIdentifier schemaName, DBIdentifier given, boolean adapt) MappingInfo.getColumns
(DBIdentifier tableName) Gets the columns whose table name matches the given table name.Column[]
ValueMappingInfo.getColumns
(ValueMapping val, DBIdentifier name, Column[] tmplates, Table table, boolean adapt) MappingDefaults.getForeignKey
(ValueMapping vm, DBIdentifier name, Table local, Table foreign, boolean inverse) Return a default foreign key for the join from this value to its related type, or null for a logical foreign key only.MappingDefaultsImpl.getForeignKey
(ValueMapping vm, DBIdentifier name, Table local, Table foreign, boolean inverse) NoneMappingDefaults.getForeignKey
(ValueMapping vm, DBIdentifier name, Table local, Table foreign, boolean inverse) MappingDefaults.getIndex
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) Return a default index for the value, or null if the value columns should not be indexed by default.MappingDefaultsImpl.getIndex
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) NoneMappingDefaults.getIndex
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) ValueMappingInfo.getIndex
(ValueMapping val, DBIdentifier name, boolean adapt) protected DBIdentifier
MappingDefaultsImpl.getIndexName
(DBIdentifier name, Table table, Column[] cols) ValueMappingInfo.getInverseTypeJoin
(ValueMapping val, DBIdentifier name, boolean adapt) ValueMappingInfo.getNullIndicatorColumn
(ValueMapping val, DBIdentifier name, Table table, boolean adapt) ClassMappingInfo.getSecondaryTableIdentifier
(DBIdentifier tableName) ClassMappingInfo.getSecondaryTableJoinColumns
(DBIdentifier tableName) ClassMappingInfo.getTable
(ClassMapping cls, DBIdentifier tableName, boolean adapt) Return the named table for the given class.ValueMappingInfo.getTypeJoin
(ValueMapping val, DBIdentifier name, boolean inversable, boolean adapt) MappingDefaults.getUnique
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) Return a default constraint for the value, or null if the value columns should not be constrained by default.MappingDefaultsImpl.getUnique
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) NoneMappingDefaults.getUnique
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) ValueMappingInfo.getUnique
(ValueMapping val, DBIdentifier name, boolean adapt) Unique[]
ClassMappingInfo.getUniques
(DBIdentifier table) Get the unique constraints of the given primary or secondary table.void
FieldMapping.mapConstraints
(DBIdentifier name, boolean adapt) void
ValueMapping.mapConstraints
(DBIdentifier name, boolean adapt) Map indexes and constraints for this value, using the currentValueMappingInfo
.void
ValueMappingImpl.mapConstraints
(DBIdentifier name, boolean adapt) void
MappingDefaults.populateColumns
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) Fill in default information for the given value columns.void
MappingDefaultsImpl.populateColumns
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) void
NoneMappingDefaults.populateColumns
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) void
MappingDefaults.populateForeignKeyColumn
(ValueMapping vm, DBIdentifier name, Table local, Table foreign, Column col, Object target, boolean inverse, int pos, int cols) Fill in default information for the given column used to join a value to its related type.void
MappingDefaultsImpl.populateForeignKeyColumn
(ValueMapping vm, DBIdentifier name, Table local, Table foreign, Column col, Object target, boolean inverse, int pos, int cols) void
NoneMappingDefaults.populateForeignKeyColumn
(ValueMapping vm, DBIdentifier name, Table local, Table foreign, Column col, Object target, boolean inverse, int pos, int cols) boolean
MappingDefaults.populateNullIndicatorColumns
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) Fill in default information for the given null indicator columns.boolean
MappingDefaultsImpl.populateNullIndicatorColumns
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) boolean
NoneMappingDefaults.populateNullIndicatorColumns
(ValueMapping vm, DBIdentifier name, Table table, Column[] cols) void
MappingDefaultsImpl.setDataStoreIdColumnIdentifier
(DBIdentifier dsIdName) void
MappingDefaultsImpl.setDiscriminatorColumnIdentifier
(DBIdentifier discName) void
MappingDefaultsImpl.setNullIndicatorColumnIdentifier
(DBIdentifier nullIndName) void
MappingDefaultsImpl.setOrderColumnIdentifier
(DBIdentifier orderName) void
SequenceMapping.setPrimaryKeyColumnIdentifier
(DBIdentifier primaryKeyColumn) void
ClassMappingInfo.setSchemaIdentifier
(DBIdentifier schema) void
ClassMappingInfo.setSecondaryTableJoinColumns
(DBIdentifier tableName, List<Column> cols) void
SequenceMapping.setSequenceColumnIdentifier
(DBIdentifier sequenceColumn) void
ClassMappingInfo.setTableIdentifier
(DBIdentifier table) void
FieldMappingInfo.setTableIdentifier
(DBIdentifier tableName) void
SequenceMapping.setTableIdentifier
(DBIdentifier table) void
SequenceMapping.setUniqueColumnsIdentifier
(DBIdentifier[] cols) void
SequenceMapping.setUniqueConstraintIdentifier
(DBIdentifier name) void
MappingDefaultsImpl.setVersionColumnIdentifier
(DBIdentifier versName) ModifierConstructorDescriptionSequenceMapping
(DBIdentifier name, MappingRepository repos) Sequence names are a kernel object so DBIdentifiers must be converted to strings -
Uses of DBIdentifier in org.apache.openjpa.jdbc.meta.strats
Modifier and TypeMethodDescriptionColumn[]
BlobValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
ByteArrayValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
CharArrayStreamValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
CharArrayValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
ClobValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
ElementEmbedValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) protected void
EmbedValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt, List cols, List args) Maps embedded value and gathers columns and arguments into given lists.Column[]
EnumValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
ImmutableValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
ObjectIdValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
UntypedPCValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) Column[]
XMLValueHandler.map
(ValueMapping vm, DBIdentifier name, ColumnIO io, boolean adapt) static void
RelationStrategies.mapRelationToUnmappedPC
(ValueMapping vm, DBIdentifier name, boolean adapt) -
Uses of DBIdentifier in org.apache.openjpa.jdbc.schema
Modifier and TypeMethodDescriptionConstraint.getColumnIdentifier()
Column.getFullDBIdentifier()
Constraint.getFullIdentifier()
Index.getFullIdentifier()
Sequence.getFullIdentifier()
Table.getFullIdentifier()
Column.getIdentifier()
Constraint.getIdentifier()
Schema.getIdentifier()
Sequence.getIdentifier()
Table.getIdentifier()
static DBIdentifier
Schemas.getNewTableSchemaIdentifier
(JDBCConfiguration conf) ForeignKey.getPrimaryKeyColumnIdentifier()
ForeignKey.getPrimaryKeySchemaIdentifier()
ForeignKey.getPrimaryKeyTableIdentifier()
Column.getSchemaIdentifier()
Constraint.getSchemaIdentifier()
Sequence.getSchemaIdentifier()
Table.getSchemaIdentifier()
Column.getTableIdentifier()
Constraint.getTableIdentifier()
Column.getTargetIdentifier()
Column.getTypeIdentifier()
ForeignKey.loadIdentifierFromDB
(DBDictionary dbdict, Connection conn) Modifier and TypeMethodDescriptionTable.addColumn
(DBIdentifier name) Table.addColumn
(DBIdentifier name, DBIdentifier validName) void
Table.addCorrectedColumnName
(DBIdentifier name, boolean validate) Table.addForeignKey
(DBIdentifier name) Table.addIndex
(DBIdentifier name) protected void
NameSet.addName
(DBIdentifier name, boolean validate) Attempt to add the given name to the set.Table.addPrimaryKey
(DBIdentifier name) SchemaGroup.addSchema
(DBIdentifier name) Add a schema to the group.Schema.addSequence
(DBIdentifier name) Schema.addTable
(DBIdentifier name) Schema.addTable
(DBIdentifier name, DBIdentifier validName) Table.addUnique
(DBIdentifier name) boolean
Table.containsColumn
(DBIdentifier name) boolean
Table.containsColumn
(DBIdentifier name, DBDictionary dict) LazySchemaFactory.findSequence
(DBIdentifier name) SchemaGroup.findSequence
(DBIdentifier name) DynamicSchemaFactory.findTable
(DBIdentifier name) LazySchemaFactory.findTable
(DBIdentifier name) SchemaGroup.findTable
(Schema inSchema, DBIdentifier name) SchemaGroup.findTable
(Schema inSchema, DBIdentifier name, DBIdentifier defaultSchemaName) SchemaGroup.findTable
(Schema inSchema, QualifiedDBIdentifier path, DBIdentifier defaultSchemaName) void
SchemaGenerator.generateForeignKeys
(DBIdentifier schemaName, DBIdentifier[] tableNames) Generate foreign key information for the given schema.void
SchemaGenerator.generateForeignKeys
(DBIdentifier schemaName, DBIdentifier tableName, Connection conn, DatabaseMetaData meta) void
SchemaGenerator.generateIndexes
(DBIdentifier schemaName, DBIdentifier[] tableNames) Generate index information for the given schema.void
SchemaGenerator.generateIndexes
(DBIdentifier schemaName, DBIdentifier tableName, Connection conn, DatabaseMetaData meta) void
SchemaGenerator.generatePrimaryKeys
(DBIdentifier schemaName, DBIdentifier[] tableNames) Generate primary key information for the given schema.void
SchemaGenerator.generatePrimaryKeys
(DBIdentifier schemaName, DBIdentifier tableName, Connection conn, DatabaseMetaData meta) void
SchemaGenerator.generateSchema
(DBIdentifier name, DBIdentifier[] tableNames) Add a fully-constructedSchema
matching the given database schema to the current group.void
SchemaGenerator.generateSchemas
(DBIdentifier[] schemasAndTables) Generate the schemas and/or tables named in the given strings.void
SchemaGenerator.generateSequences
(DBIdentifier schemaName, DBIdentifier sequenceName, Connection conn, DatabaseMetaData meta) void
SchemaGenerator.generateTables
(DBIdentifier schemaName, DBIdentifier tableName, Connection conn, DatabaseMetaData meta) Adds all tables matching the given name pattern to the schema.Table.getColumn
(DBIdentifier name) Table.getColumn
(DBIdentifier name, boolean create) Table.getForeignKey
(DBIdentifier name) Table.getIndex
(DBIdentifier name) SchemaGroup.getSchema
(DBIdentifier name) Schema.getSequence
(DBIdentifier name) Schema.getTable
(DBIdentifier name) Table.getUnique
(DBIdentifier name) boolean
SchemaGroup.isKnownSequence
(DBIdentifier name) boolean
NameSet.isNameTaken
(DBIdentifier name) protected Column
DynamicSchemaFactory.newColumn
(DBIdentifier name, Table table) protected Column
SchemaGroup.newColumn
(DBIdentifier name, Table table) protected ForeignKey
SchemaGroup.newForeignKey
(DBIdentifier name, Table table) protected Index
SchemaGroup.newIndex
(DBIdentifier name, Table table) protected PrimaryKey
SchemaGroup.newPrimaryKey
(DBIdentifier name, Table table) protected Schema
SchemaGroup.newSchema
(DBIdentifier name) protected Sequence
SchemaGroup.newSequence
(DBIdentifier name, Schema schema) protected Table
DynamicSchemaFactory.newTable
(DBIdentifier name, Schema schema) protected Table
SchemaGroup.newTable
(DBIdentifier name, Schema schema) protected Unique
SchemaGroup.newUnique
(DBIdentifier name, Table table) protected void
NameSet.removeName
(DBIdentifier name) Remove the given name from the table.void
Column.resetTableIdentifier
(DBIdentifier table) void
Constraint.setColumnIdentifier
(DBIdentifier name) void
Column.setIdentifier
(DBIdentifier name) void
Constraint.setIdentifier
(DBIdentifier name) void
Schema.setIdentifier
(DBIdentifier name) void
Sequence.setIdentifier
(DBIdentifier name) void
Table.setIdentifier
(DBIdentifier name) Set the name of the table.void
Unique.setIdentifier
(DBIdentifier name) void
ForeignKey.setPrimaryKeyColumnIdentifier
(DBIdentifier pkColumnName) void
ForeignKey.setPrimaryKeySchemaIdentifier
(DBIdentifier pkSchemaName) void
ForeignKey.setPrimaryKeyTableIdentifier
(DBIdentifier pkTableName) void
Column.setSchemaIdentifier
(DBIdentifier name) void
Constraint.setSchemaIdentifier
(DBIdentifier schema) void
Sequence.setSchemaIdentifier
(DBIdentifier name) void
Table.setSchemaIdentifier
(DBIdentifier name) void
Column.setTableIdentifier
(DBIdentifier name) void
Constraint.setTableIdentifier
(DBIdentifier name) void
Column.setTargetIdentifier
(DBIdentifier target) void
Column.setTypeIdentifier
(DBIdentifier typeName) ModifierConstructorDescriptionColumn
(DBIdentifier name, Table table) ForeignKey
(DBIdentifier name, Table table) Index
(DBIdentifier name, Table table) LocalConstraint
(DBIdentifier name, Table table) PrimaryKey
(DBIdentifier name, Table table) Schema
(DBIdentifier name, SchemaGroup group) Sequence
(DBIdentifier name, Schema schema) Table
(DBIdentifier name, Schema schema) Unique
(DBIdentifier name, Table table) -
Uses of DBIdentifier in org.apache.openjpa.jdbc.sql
Modifier and TypeMethodDescriptionDBDictionary.fromDBName
(String name, DBIdentifier.DBIdentifierType id) DBDictionary.getColumnIdentifier
(Column column) Returns the name of the column using database specific delimiters.DBDictionary.getFullIdentifier
(Table table, boolean logical) Returns the full name of the table, including the schema (delimited byDBDictionary.catalogSeparator
).DBDictionary.getValidColumnName
(DBIdentifier name, Table table) Make any necessary changes to the given column name to make it valid for the current DB.DBDictionary.getValidColumnName
(DBIdentifier name, Table table, boolean checkForUniqueness) Make any necessary changes to the given column name to make it valid for the current DB.DBDictionary.getValidForeignKeyName
(DBIdentifier name, Table table, Table toTable) Make any necessary changes to the given foreign key name to make it valid for the current DB.DBDictionary.getValidIndexName
(DBIdentifier name, Table table) Make any necessary changes to the given index name to make it valid for the current DB.DBDictionary.getValidSequenceName
(DBIdentifier name, Schema schema) Make any necessary changes to the given sequence name to make it valid for the current DB.DBDictionary.getValidTableName
(DBIdentifier name, Schema schema) Make any necessary changes to the given table name to make it valid for the current DB.DBDictionary.getValidUniqueName
(DBIdentifier name, Table table) Make any necessary changes to the given unique constraint name to make it valid for the current DB.DBDictionary.getVersionColumn
(Column column, DBIdentifier tableAlias) protected DBIdentifier
DBDictionary.makeNameValid
(DBIdentifier name, NameSet set, int maxLen, int nameType) Shortens the given name to the given maximum length, then checks that it is not a reserved word.protected DBIdentifier
DBDictionary.makeNameValid
(DBIdentifier name, NameSet set, int maxLen, int nameType, boolean checkForUniqueness) Shortens the given name to the given maximum length, then checks that it is not a reserved word.DBDictionary.processDBColumnName
(DBIdentifier name) Modifier and TypeMethodDescriptionSQLBuffer.append
(DBIdentifier name) DBDictionary.convertSchemaCase
(DBIdentifier objectName) Convert the specified schema name to a name that the database will be able to understand.SolidDBDictionary.convertSchemaCase
(DBIdentifier objectName) void
DB2Dictionary.createIndexIfNecessary
(Schema schema, DBIdentifier table, Column pkColumn) void
DBDictionary.createIndexIfNecessary
(Schema schema, DBIdentifier table, Column pkColumn) protected String
DBDictionary.getCatalogNameForMetadata
(DBIdentifier catalogName) Returns the catalog name that will be used for obtaining information fromDatabaseMetaData
.protected String
DBDictionary.getColumnNameForMetadata
(DBIdentifier columnName) Returns the column name that will be used for obtaining information fromDatabaseMetaData
.protected String
InterbaseDictionary.getColumnNameForMetadata
(DBIdentifier columnName) Column[]
DBDictionary.getColumns
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, DBIdentifier columnName, Connection conn) Reflect on the schema to find columns matching the given table and column patterns.Column[]
FoxProDictionary.getColumns
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, DBIdentifier columnName, Connection conn) Column[]
H2Dictionary.getColumns
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, DBIdentifier columnName, Connection conn) Column[]
HSQLDictionary.getColumns
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, DBIdentifier columnName, Connection conn) Column[]
InformixDictionary.getColumns
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, DBIdentifier columnName, Connection conn) Column[]
OracleDictionary.getColumns
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, DBIdentifier columnName, Connection conn) Column[]
PointbaseDictionary.getColumns
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, DBIdentifier columnName, Connection conn) Column[]
SQLServerDictionary.getColumns
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, DBIdentifier columnName, Connection conn) DBDictionary.getImportedKeys
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, Connection conn) Reflect on the schema to return foreign keys imported by the given table pattern.DBDictionary.getImportedKeys
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, Connection conn, boolean partialKeys) Reflect on the schema to return full foreign keys imported by the given table pattern.OracleDictionary.getImportedKeys
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, Connection conn, boolean partialKeys) Index[]
DBDictionary.getIndexInfo
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, boolean unique, boolean approx, Connection conn) Reflect on the schema to find indexes matching the given table pattern.Index[]
OracleDictionary.getIndexInfo
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, boolean unique, boolean approx, Connection conn) DBDictionary.getPrimaryKeys
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, Connection conn) Reflect on the schema to find primary keys for the given table pattern.FoxProDictionary.getPrimaryKeys
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, Connection conn) OracleDictionary.getPrimaryKeys
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, Connection conn) protected PrimaryKey[]
DBDictionary.getPrimaryKeysFromBestRowIdentifier
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, Connection conn) Reflect on the schema to find primary keys for the given table pattern.protected PrimaryKey[]
DBDictionary.getPrimaryKeysFromGetPrimaryKeys
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier tableName, Connection conn) Reflect on the schema to find primary keys for the given table pattern.protected String
DBDictionary.getSchemaNameForMetadata
(DBIdentifier schemaName) Returns the schema name that will be used for obtaining information fromDatabaseMetaData
.Sequence[]
DBDictionary.getSequences
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schemaName, DBIdentifier sequenceName, Connection conn) protected String
DB2Dictionary.getSequencesSQL
(DBIdentifier schemaName, DBIdentifier sequenceName) protected String
DBDictionary.getSequencesSQL
(DBIdentifier schemaName, DBIdentifier sequenceName) protected String
FirebirdDictionary.getSequencesSQL
(DBIdentifier schemaName, DBIdentifier sequenceName) protected String
H2Dictionary.getSequencesSQL
(DBIdentifier schemaName, DBIdentifier sequenceName) protected String
HSQLDictionary.getSequencesSQL
(DBIdentifier schemaName, DBIdentifier sequenceName) protected String
IngresDictionary.getSequencesSQL
(DBIdentifier schemaName, DBIdentifier sequenceName) protected String
OracleDictionary.getSequencesSQL
(DBIdentifier schemaName, DBIdentifier sequenceName) protected String
PostgresDictionary.getSequencesSQL
(DBIdentifier schemaName, DBIdentifier sequenceName) protected String
SolidDBDictionary.getSequencesSQL
(DBIdentifier schemaName, DBIdentifier sequenceName) DBDictionary.getStoredProcedure
(DatabaseMetaData meta, DBIdentifier catalog, DBIdentifier schema, String procedure) Gets the metadata of the stored procedure by the given name either from the cached version or by enquiring the database.protected String
DBDictionary.getTableNameForMetadata
(DBIdentifier tableName) Returns the table name that will be used for obtaining information fromDatabaseMetaData
.protected String
FirebirdDictionary.getTableNameForMetadata
(DBIdentifier tableName) protected String
InterbaseDictionary.getTableNameForMetadata
(DBIdentifier tableName) Table[]
DBDictionary.getTables
(DatabaseMetaData meta, DBIdentifier sqlCatalog, DBIdentifier sqlSchemaName, DBIdentifier sqlTableName, Connection conn) Reflect on the schema to find tables matching the given name pattern.DBDictionary.getValidColumnName
(DBIdentifier name, Table table) Make any necessary changes to the given column name to make it valid for the current DB.DBDictionary.getValidColumnName
(DBIdentifier name, Table table, boolean checkForUniqueness) Make any necessary changes to the given column name to make it valid for the current DB.DBDictionary.getValidForeignKeyName
(DBIdentifier name, Table table, Table toTable) Make any necessary changes to the given foreign key name to make it valid for the current DB.DBDictionary.getValidIndexName
(DBIdentifier name, Table table) Make any necessary changes to the given index name to make it valid for the current DB.DBDictionary.getValidSequenceName
(DBIdentifier name, Schema schema) Make any necessary changes to the given sequence name to make it valid for the current DB.DBDictionary.getValidTableName
(DBIdentifier name, Schema schema) Make any necessary changes to the given table name to make it valid for the current DB.DBDictionary.getValidUniqueName
(DBIdentifier name, Table table) Make any necessary changes to the given unique constraint name to make it valid for the current DB.DBDictionary.getVersionColumn
(Column column, DBIdentifier tableAlias) boolean
PostgresDictionary.isOwnedSequence
(DBIdentifier name, DBIdentifier schema, Connection conn) Uses the native Postgres function pg_get_serial_sequence to determine whether a sequence is owned by the database.boolean
DBDictionary.isSystemIndex
(DBIdentifier name, Table table) This method is used to filter system indexes from database metadata.boolean
H2Dictionary.isSystemIndex
(DBIdentifier name, Table table) boolean
HSQLDictionary.isSystemIndex
(DBIdentifier name, Table table) boolean
PostgresDictionary.isSystemIndex
(DBIdentifier name, Table table) boolean
SolidDBDictionary.isSystemIndex
(DBIdentifier name, Table table) boolean
DBDictionary.isSystemSequence
(DBIdentifier name, DBIdentifier schema, boolean targetSchema) This method is used to filter system sequences from database metadata.boolean
DBDictionary.isSystemSequence
(DBIdentifier name, DBIdentifier schema, boolean targetSchema, Connection conn) This method is used to filter system sequences from database metadata.boolean
OracleDictionary.isSystemSequence
(DBIdentifier name, DBIdentifier schema, boolean targetSchema) boolean
PostgresDictionary.isSystemSequence
(DBIdentifier name, DBIdentifier schema, boolean targetSchema) boolean
PostgresDictionary.isSystemSequence
(DBIdentifier name, DBIdentifier schema, boolean targetSchema, Connection conn) boolean
SolidDBDictionary.isSystemSequence
(DBIdentifier name, DBIdentifier schema, boolean targetSchema) boolean
DBDictionary.isSystemTable
(DBIdentifier name, DBIdentifier schema, boolean targetSchema) This method is used to filter system tables from database metadata.boolean
PostgresDictionary.isSystemTable
(DBIdentifier name, DBIdentifier schema, boolean targetSchema) protected DBIdentifier
DBDictionary.makeNameValid
(DBIdentifier name, NameSet set, int maxLen, int nameType) Shortens the given name to the given maximum length, then checks that it is not a reserved word.protected DBIdentifier
DBDictionary.makeNameValid
(DBIdentifier name, NameSet set, int maxLen, int nameType, boolean checkForUniqueness) Shortens the given name to the given maximum length, then checks that it is not a reserved word.DBDictionary.processDBColumnName
(DBIdentifier name) void
StoredProcedure.setCatalog
(DBIdentifier catalog) void
StoredProcedure.setSchema
(DBIdentifier schema) DBDictionary.toDBName
(DBIdentifier name) DBDictionary.toDBName
(DBIdentifier name, boolean delimit) -
Uses of DBIdentifier in org.apache.openjpa.persistence.jdbc
Modifier and TypeMethodDescriptionPersistenceMappingDefaults.getTableIdentifier
(FieldMapping fm, Schema schema) Modifier and TypeMethodDescriptionvoid
PersistenceMappingDefaults.populateForeignKeyColumn
(ValueMapping vm, DBIdentifier sName, Table local, Table foreign, Column col, Object target, boolean inverse, int pos, int cols)