public class Table extends Relation
Modifier and Type | Class and Description |
---|---|
static class |
Table.TableType
Different types of Table supported in the API.
|
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TABLE_TYPE_KEY
Property controlling the type of Table represented by this model.
|
static java.lang.String |
TYPE |
Constructor and Description |
---|
Table()
Constructs a new Table.
|
Table(java.lang.String name,
Schema schema)
Constructs a new Table in the specified schema with the specified name.
|
Modifier and Type | Method and Description |
---|---|
void |
addIndex(Index index) |
Index |
getIndex(java.lang.String idxName) |
Index[] |
getIndexes() |
java.lang.String |
getType()
Returns the type of this object.
|
void |
removeIndex(Index index) |
void |
setIndexes(Index[] indexes) |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets the value for a property.
|
void |
setSchema(Schema schema)
Sets the Schema of this object.
|
addColumn, addColumn, addConstraint, getColumn, getColumns, getConstraint, getConstraints, getOwnedObjectsImpl, removeColumn, removeConstraint, setColumns, setConstraints
getSchema
checkInit, checkInit, copyToImpl, getProperties, getReferenceIDsImpl, needsInitialization
addObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addObjectListener, removeObjectListener
addObjectListener, fireObjectUpdated, removeObjectListener
addObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperties, getReferenceIDs, hashCode, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setName
getProperty, getProperty, setProperties
public static final java.lang.String TYPE
public static final java.lang.String TABLE_TYPE_KEY
Table.TableType
,
Constant Field Valuespublic Table()
public Table(java.lang.String name, Schema schema)
name
- a string containing the name of the tableschema
- the schema containing the tablepublic java.lang.String getType()
DBObject
public Index[] getIndexes()
public void setIndexes(Index[] indexes)
public void addIndex(Index index)
public void removeIndex(Index index)
public Index getIndex(java.lang.String idxName)
public void setSchema(Schema schema)
SchemaObject
setSchema
in interface SchemaObject
setSchema
in class AbstractSchemaObject
schema
- the Schema containing this objectpublic void setProperty(java.lang.String key, java.lang.Object value)
DynamicPropertySet
null
removes that property.setProperty
in interface DynamicPropertySet
setProperty
in class AbstractDBObject
key
- the property key to setvalue
- the value to set