|
com.im.commons.db 5.9.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DBTableInfo
Database info class for a database table. The term table is used in a generic sense meaning any database artifact that can behave in a tabular fashion, and includes views (and in future synonyms, materialised views etc.). All of these will have some things like a name, columns but the different sub-types will differ in some respects e.g. views have SQL that define the view whereas plain tables so not. The properties of this class are a superset of all the properties and not all will be used for any particular sub-type. Note: this class may be refactored in future be better distinguish the different sub-types.
| Nested Class Summary | |
|---|---|
static class |
DBTableInfo.Type
Enum of supported physical database artifacts that can be used. |
| Method Detail |
|---|
DBTableInfo.Type getType()
String getName()
String getSchema()
String schemaPlusTable()
boolean isReadOnly()
String getSQL()
DBTableInfo copy()
DBConstraintInfo findUniqueConstraintNameForColumns(String[] columns)
DatabasePlatform.NAME_PRIMARY_KEY_CONSTRAINT,
which may be handled differently in some databases - for drop, use
DatabasePlatform.sqlDropPrimaryConstraint(String, String, String[]).
columns - DB columns
null if there's no unique constraint.DBColInfo getColumn(String name)
String[] getColumnNamesAsArray()
List<String> getColumnNamesAsList()
List<DBColInfo> getColumns()
long getCreationTime()
List<DBForeignKeyInfo> getExportedFKInfo()
List<DBForeignKeyInfo> getImportedFKInfo()
List<DBIndexInfo> getIndexInfo()
List<String> getPrimaryKeyColumns()
List<DBTriggerInfo> getTriggerInfo()
List<DBConstraintInfo> getUniqueConstraints()
DBTableInfo updateColumns(List<DBColInfo> cols)
DBTableInfo updateImportedForeignKeys(List<DBForeignKeyInfo> pkKeys)
DBTableInfo updateExportedForeignKeys(List<DBForeignKeyInfo> fkKeys)
DBTableInfo updateIndexInfos(List<DBIndexInfo> indexes)
DBTableInfo updateUniqueConstraintInfos(List<DBConstraintInfo> constraints)
|
com.im.commons.db 5.9.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||