public class DatabaseSchema extends Object implements Serializable
Constructor and Description |
---|
DatabaseSchema() |
Modifier and Type | Method and Description |
---|---|
void |
addTable(int index,
Table vTable) |
void |
addTable(Table vTable) |
Enumeration<Table> |
enumerateTable()
Method enumerateTable.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Table[] |
getTable()
Method getTable.Returns the contents of the collection in an
Array.
|
Table |
getTable(int index)
Method getTable.
|
List<Table> |
getTableCollection()
Method getTableCollection.Returns a reference to
'_tableList'.
|
int |
getTableCount()
Method getTableCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Table> |
iterateTable()
Method iterateTable.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllTable() |
boolean |
removeTable(Table vTable)
Method removeTable.
|
Table |
removeTableAt(int index)
Method removeTableAt.
|
void |
setTable(int index,
Table vTable) |
void |
setTable(List<Table> vTableList)
Sets the value of '_tableList' by copying the given Vector.
|
void |
setTable(Table[] vTableArray) |
void |
setTableCollection(List<Table> tableList)
Deprecated.
|
static DatabaseSchema |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addTable(Table vTable) throws IndexOutOfBoundsException
vTable
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addTable(int index, Table vTable) throws IndexOutOfBoundsException
index
- vTable
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Table> enumerateTable()
public boolean equals(Object obj)
public Table getTable(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Table[] getTable()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Table> getTableCollection()
public int getTableCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Table> iterateTable()
public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllTable()
public boolean removeTable(Table vTable)
vTable
- public Table removeTableAt(int index)
index
- public void setTable(int index, Table vTable) throws IndexOutOfBoundsException
index
- vTable
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setTable(Table[] vTableArray)
vTableArray
- public void setTable(List<Table> vTableList)
vTableList
- the Vector to copy.public void setTableCollection(List<Table> tableList)
tableList
- the Vector to set.public static DatabaseSchema unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2016. All rights reserved.