org.enableit.db.beans
Class Schema
java.lang.Object
|
+--org.enableit.db.beans.Schema
- All Implemented Interfaces:
- java.io.Serializable
- public class Schema
- extends java.lang.Object
- implements java.io.Serializable
- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Schema
public Schema()
addTable
public void addTable(org.enableit.db.beans.Table vTable)
throws java.lang.IndexOutOfBoundsException
- Parameters:
vTable
-
java.lang.IndexOutOfBoundsException
addTable
public void addTable(int index,
org.enableit.db.beans.Table vTable)
throws java.lang.IndexOutOfBoundsException
- Parameters:
index
- vTable
-
java.lang.IndexOutOfBoundsException
addView
public void addView(org.enableit.db.beans.View vView)
throws java.lang.IndexOutOfBoundsException
- Parameters:
vView
-
java.lang.IndexOutOfBoundsException
addView
public void addView(int index,
org.enableit.db.beans.View vView)
throws java.lang.IndexOutOfBoundsException
- Parameters:
index
- vView
-
java.lang.IndexOutOfBoundsException
enumerateTable
public java.util.Enumeration enumerateTable()
enumerateView
public java.util.Enumeration enumerateView()
getName
public java.lang.String getName()
- Returns the value of field 'name'.
- Returns:
- the value of field 'name'.
getTable
public org.enableit.db.beans.Table getTable(int index)
throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-
java.lang.IndexOutOfBoundsException
getTable
public org.enableit.db.beans.Table[] getTable()
getTableCount
public int getTableCount()
getView
public org.enableit.db.beans.View getView(int index)
throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-
java.lang.IndexOutOfBoundsException
getView
public org.enableit.db.beans.View[] getView()
getViewCount
public int getViewCount()
isValid
public boolean isValid()
marshal
public void marshal(java.io.Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Parameters:
out
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
marshal
public void marshal(org.xml.sax.ContentHandler handler)
throws java.io.IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Parameters:
handler
-
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
removeAllTable
public void removeAllTable()
removeAllView
public void removeAllView()
removeTable
public org.enableit.db.beans.Table removeTable(int index)
- Parameters:
index
-
removeView
public org.enableit.db.beans.View removeView(int index)
- Parameters:
index
-
setName
public void setName(java.lang.String name)
- Sets the value of field 'name'.
- Parameters:
name
- the value of field 'name'.
setTable
public void setTable(int index,
org.enableit.db.beans.Table vTable)
throws java.lang.IndexOutOfBoundsException
- Parameters:
index
- vTable
-
java.lang.IndexOutOfBoundsException
setTable
public void setTable(org.enableit.db.beans.Table[] tableArray)
- Parameters:
tableArray
-
setView
public void setView(int index,
org.enableit.db.beans.View vView)
throws java.lang.IndexOutOfBoundsException
- Parameters:
index
- vView
-
java.lang.IndexOutOfBoundsException
setView
public void setView(org.enableit.db.beans.View[] viewArray)
- Parameters:
viewArray
-
unmarshal
public static org.enableit.db.beans.Schema unmarshal(java.io.Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Parameters:
reader
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
validate
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
Copyright © 1999-2004 enableIT.org. All Rights Reserved.