Package org.eclipse.net4j.db.ddl
Interface IDBTable
- All Superinterfaces:
Comparable<IDBSchemaElement>,org.eclipse.net4j.util.container.IContainer<IDBSchemaElement>,IDBElement,IDBNamedElement,IDBSchemaElement,org.eclipse.net4j.util.event.INotifier
- All Known Subinterfaces:
InternalDBTable
A table specification in a
DB schema.- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceSupplies one primary schema table to DML factory and fluent APIs.Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer
org.eclipse.net4j.util.container.IContainer.Modifiable<E>, org.eclipse.net4j.util.container.IContainer.Persistable<E>, org.eclipse.net4j.util.container.IContainer.Persistence<E>Nested classes/interfaces inherited from interface org.eclipse.net4j.db.ddl.IDBSchemaElement
IDBSchemaElement.SchemaElementTypeNested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2 -
Method Summary
Modifier and TypeMethodDescriptionaddIndex(String name, IDBIndex.Type type, String... fieldNames) addIndex(String name, IDBIndex.Type type, IDBField... fields) addIndex(IDBIndex.Type type, String... fieldNames) addIndex(IDBIndex.Type type, IDBField... fields) addIndexEmpty(String name, IDBIndex.Type type) addIndexEmpty(IDBIndex.Type type) default SQLTableRefCreates a table reference with the given SQL alias.ensureField(String name, DBType type, int precision, int scale, boolean notNull) getField(int position) intIDBField[]IDBField[]getFieldSafe(String name) getIndex(int position) intgetIndexSafe(String name) IDBIndex[]booleanhasIndexFor(IDBField... fields) Deprecated.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmptyMethods inherited from interface org.eclipse.net4j.db.ddl.IDBElement
getPropertiesMethods inherited from interface org.eclipse.net4j.db.ddl.IDBNamedElement
getNameMethods inherited from interface org.eclipse.net4j.db.ddl.IDBSchemaElement
accept, getElement, getFullName, getSchema, getSchemaElementType, remove, setNameMethods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Method Details
-
getParent
IDBSchema getParent()- Specified by:
getParentin interfaceIDBElement- Specified by:
getParentin interfaceIDBSchemaElement- Since:
- 4.2
-
addField
-
addField
-
addField
-
addField
-
addField
-
addField
-
ensureField
- Since:
- 4.14
-
getFieldSafe
- Throws:
SchemaElementNotFoundException- Since:
- 4.2
-
getField
-
getField
-
getFieldCount
int getFieldCount() -
getFields
IDBField[] getFields() -
getFields
- Throws:
SchemaElementNotFoundException- Since:
- 4.2
-
hasIndexFor
- Since:
- 4.5
-
addIndex
- Since:
- 4.2
-
addIndex
IDBIndex addIndex(String name, IDBIndex.Type type, String... fieldNames) throws SchemaElementNotFoundException - Throws:
SchemaElementNotFoundException- Since:
- 4.2
-
addIndexEmpty
- Since:
- 4.2
-
addIndex
-
addIndex
- Throws:
SchemaElementNotFoundException- Since:
- 4.2
-
addIndexEmpty
- Since:
- 4.2
-
getIndexSafe
- Throws:
SchemaElementNotFoundException- Since:
- 4.2
-
getIndex
- Since:
- 4.2
-
getIndex
- Since:
- 4.2
-
getIndexCount
int getIndexCount() -
getIndices
IDBIndex[] getIndices() -
getPrimaryKeyIndex
IDBIndex getPrimaryKeyIndex() -
as
Creates a table reference with the given SQL alias.- Parameters:
alias- the alias used to qualify columns and render the table in SQL- Returns:
- an immutable reference to this table
- Since:
- 4.15
-
sqlInsert
Deprecated.UseSQL.insertInto(IDBTable)to create a structured INSERT definition.Creates legacy INSERT SQL text for this table.- Returns:
- the INSERT statement text
-
SQL.insertInto(IDBTable)to create a structured INSERT definition.