org.eclipse.net4j.db.ddl
Interface IDBTable
- All Superinterfaces:
- Comparable<IDBSchemaElement>, IContainer<IDBSchemaElement>, IDBElement, IDBNamedElement, IDBSchemaElement, INotifier
- All Known Subinterfaces:
- InternalDBTable
- public interface IDBTable
- extends IDBSchemaElement
A table specification in a DB schema
.
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
Method Summary |
IDBField |
addField(String name,
DBType type)
|
IDBField |
addField(String name,
DBType type,
boolean notNull)
|
IDBField |
addField(String name,
DBType type,
int precision)
|
IDBField |
addField(String name,
DBType type,
int precision,
boolean notNull)
|
IDBField |
addField(String name,
DBType type,
int precision,
int scale)
|
IDBField |
addField(String name,
DBType type,
int precision,
int scale,
boolean notNull)
|
IDBIndex |
addIndex(IDBIndex.Type type,
IDBField... fields)
|
IDBIndex |
addIndex(IDBIndex.Type type,
String... fieldNames)
|
IDBIndex |
addIndex(String name,
IDBIndex.Type type,
IDBField... fields)
|
IDBIndex |
addIndex(String name,
IDBIndex.Type type,
String... fieldNames)
|
IDBIndex |
addIndexEmpty(IDBIndex.Type type)
|
IDBIndex |
addIndexEmpty(String name,
IDBIndex.Type type)
|
IDBField |
getField(int position)
|
IDBField |
getField(String name)
|
int |
getFieldCount()
|
IDBField[] |
getFields()
|
IDBField[] |
getFields(String... fieldNames)
|
IDBField |
getFieldSafe(String name)
|
IDBIndex |
getIndex(int position)
|
IDBIndex |
getIndex(String name)
|
int |
getIndexCount()
|
IDBIndex |
getIndexSafe(String name)
|
IDBIndex[] |
getIndices()
|
IDBSchema |
getParent()
|
IDBIndex |
getPrimaryKeyIndex()
|
String |
sqlInsert()
|
getParent
IDBSchema getParent()
- Specified by:
getParent
in interface IDBSchemaElement
- Since:
- 4.2
addField
IDBField addField(String name,
DBType type)
addField
IDBField addField(String name,
DBType type,
boolean notNull)
addField
IDBField addField(String name,
DBType type,
int precision)
addField
IDBField addField(String name,
DBType type,
int precision,
boolean notNull)
addField
IDBField addField(String name,
DBType type,
int precision,
int scale)
addField
IDBField addField(String name,
DBType type,
int precision,
int scale,
boolean notNull)
getFieldSafe
IDBField getFieldSafe(String name)
throws SchemaElementNotFoundException
- Throws:
SchemaElementNotFoundException
- Since:
- 4.2
getField
IDBField getField(String name)
getField
IDBField getField(int position)
getFieldCount
int getFieldCount()
getFields
IDBField[] getFields()
getFields
IDBField[] getFields(String... fieldNames)
throws SchemaElementNotFoundException
- Throws:
SchemaElementNotFoundException
- Since:
- 4.2
addIndex
IDBIndex addIndex(String name,
IDBIndex.Type type,
IDBField... fields)
- Since:
- 4.2
addIndex
IDBIndex addIndex(String name,
IDBIndex.Type type,
String... fieldNames)
throws SchemaElementNotFoundException
- Throws:
SchemaElementNotFoundException
- Since:
- 4.2
addIndexEmpty
IDBIndex addIndexEmpty(String name,
IDBIndex.Type type)
- Since:
- 4.2
addIndex
IDBIndex addIndex(IDBIndex.Type type,
IDBField... fields)
addIndex
IDBIndex addIndex(IDBIndex.Type type,
String... fieldNames)
throws SchemaElementNotFoundException
- Throws:
SchemaElementNotFoundException
- Since:
- 4.2
addIndexEmpty
IDBIndex addIndexEmpty(IDBIndex.Type type)
- Since:
- 4.2
getIndexSafe
IDBIndex getIndexSafe(String name)
throws SchemaElementNotFoundException
- Throws:
SchemaElementNotFoundException
- Since:
- 4.2
getIndex
IDBIndex getIndex(String name)
- Since:
- 4.2
getIndex
IDBIndex getIndex(int position)
- Since:
- 4.2
getIndexCount
int getIndexCount()
getIndices
IDBIndex[] getIndices()
getPrimaryKeyIndex
IDBIndex getPrimaryKeyIndex()
sqlInsert
String sqlInsert()
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.