org.eclipse.net4j.db.ddl
Interface IDBTable

All Superinterfaces:
IDBSchemaElement

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)
           
 IDBField getField(int index)
           
 IDBField getField(String name)
           
 int getFieldCount()
           
 IDBField[] getFields()
           
 int getIndexCount()
           
 IDBIndex[] getIndices()
           
 IDBIndex getPrimaryKeyIndex()
           
 String sqlInsert()
           
 
Methods inherited from interface org.eclipse.net4j.db.ddl.IDBSchemaElement
getFullName, getName, getProperties, getSchema
 

Method Detail

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)

getField

IDBField getField(String name)

getField

IDBField getField(int index)

getFieldCount

int getFieldCount()

getFields

IDBField[] getFields()

addIndex

IDBIndex addIndex(IDBIndex.Type type,
                  IDBField... fields)

getIndexCount

int getIndexCount()

getIndices

IDBIndex[] getIndices()

getPrimaryKeyIndex

IDBIndex getPrimaryKeyIndex()

sqlInsert

String sqlInsert()


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.