public abstract class AbstractTableInheritance
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractTableInheritance.CascadeType |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,AbstractTableInheritance.CascadeType> |
cascadingTypes |
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
checkConstraints |
protected java.util.Map<java.lang.String,java.lang.String> |
duplicatedForeignKeys |
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
keyColumnsMap |
protected java.util.Map<java.lang.String,java.lang.String> |
keymap |
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
keyPiecesMap |
protected java.util.Map<java.lang.String,java.lang.String> |
map |
protected java.util.Map<java.lang.String,java.lang.String> |
sequences |
protected java.util.List<java.lang.String> |
tablesImplementingBackloggable |
protected java.util.List<java.lang.String> |
tablesImplementingIdentifiable |
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
xmlClobTableColumns |
| Constructor and Description |
|---|
AbstractTableInheritance() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
generateInverseCollection(java.lang.String tableName,
java.lang.String columnName)
Check if the given column in the given table should generate an inverse collection
in the referenced table class or not.
|
AbstractTableInheritance.CascadeType |
getCascadeTypeForForeigKey(java.lang.String name)
Checks which is the cascading options for the given foreign key
|
java.lang.String |
getEnumTypeForColumn(java.lang.String tableName,
java.lang.String columnName)
Returns all the columns, and their associated enum classes, that exist
in a given table
|
java.util.Map<java.lang.String,java.lang.String> |
getEnumTypesForTable(java.lang.String tableName)
Returns all the columns, and their associated enum classes, that exist
in a given table
|
java.lang.String |
getKeynameLowercase(java.lang.String table)
Returns the name for the key defined in the parent table for a given table.
|
java.util.List<java.lang.String> |
getPkFkCombinationColumns(java.lang.String table)
Returns a Map containing all the columns that are part of the PK/FK combination
of a child table.
|
java.lang.String |
getSequenceForTable(java.lang.String tableName)
Returns the name of the Oracle sequence for the given table
|
java.lang.String |
getSuperTable(java.lang.String table)
Returns the Java table name for the given sql-short table name
|
boolean |
hasXmlClobType(java.lang.String tableName)
Checks if a table contains at least one column of type XMLCLOB
|
boolean |
isBackloggable(java.lang.String table) |
boolean |
isIdentifiable(java.lang.String table) |
boolean |
isKeyPiece(java.lang.String table,
java.lang.String column)
Checks whether the indicated column of the given table is part of the pieces
that are supposed to generate the primary key.
|
boolean |
isSuperClass(java.lang.String table)
Checks if a table is parent of another one or not
|
boolean |
isXmlClobType(java.lang.String tableName,
java.lang.String columnName)
Checks if a column of a given table is of type XMLCLOB
|
protected java.util.Map<java.lang.String,java.lang.String> map
protected java.util.Map<java.lang.String,java.lang.String> keymap
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> keyColumnsMap
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> keyPiecesMap
protected java.util.Map<java.lang.String,AbstractTableInheritance.CascadeType> cascadingTypes
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> xmlClobTableColumns
protected java.util.Map<java.lang.String,java.lang.String> sequences
protected java.util.Map<java.lang.String,java.lang.String> duplicatedForeignKeys
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> checkConstraints
protected java.util.List<java.lang.String> tablesImplementingIdentifiable
protected java.util.List<java.lang.String> tablesImplementingBackloggable
public java.lang.String getSuperTable(java.lang.String table)
table - The child table name, in the sql-short formpublic java.lang.String getKeynameLowercase(java.lang.String table)
table - The name of the tablepublic boolean isIdentifiable(java.lang.String table)
table - The name of the tablepublic boolean isBackloggable(java.lang.String table)
public boolean isKeyPiece(java.lang.String table,
java.lang.String column)
table - The tablecolumn - The columnspublic java.util.List<java.lang.String> getPkFkCombinationColumns(java.lang.String table)
table - The name of the tableList with the column names (lowercase) of the PK/FKpublic boolean isSuperClass(java.lang.String table)
table - The name of the table, lowercasedpublic AbstractTableInheritance.CascadeType getCascadeTypeForForeigKey(java.lang.String name)
name - The foreign key namepublic boolean hasXmlClobType(java.lang.String tableName)
tableName - Name of the tablepublic boolean isXmlClobType(java.lang.String tableName,
java.lang.String columnName)
tableName - Name of the tablecolumnName - Name of the columnpublic java.lang.String getSequenceForTable(java.lang.String tableName)
tableName - The name of the tablenull if table doesn't have a generated IDpublic boolean generateInverseCollection(java.lang.String tableName,
java.lang.String columnName)
tableName - The tablecolumnName - The columnpublic java.lang.String getEnumTypeForColumn(java.lang.String tableName,
java.lang.String columnName)
tableName - The table namepublic java.util.Map<java.lang.String,java.lang.String> getEnumTypesForTable(java.lang.String tableName)
tableName - The table name