|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.jdo.conf.Database
public class Database
Class Database.
| Constructor Summary | |
|---|---|
Database()
|
|
| Method Summary | |
|---|---|
void |
addMapping(int index,
Mapping vMapping)
|
void |
addMapping(Mapping vMapping)
|
Enumeration<? extends Mapping> |
enumerateMapping()
Method enumerateMapping. |
DatabaseChoice |
getDatabaseChoice()
Returns the value of field 'databaseChoice'. |
String |
getEngine()
Returns the value of field 'engine'. |
Mapping[] |
getMapping()
Method getMapping.Returns the contents of the collection in an Array. |
Mapping |
getMapping(int index)
Method getMapping. |
int |
getMappingCount()
Method getMappingCount. |
String |
getName()
Returns the value of field 'name'. |
boolean |
isValid()
Method isValid. |
Iterator<? extends Mapping> |
iterateMapping()
Method iterateMapping. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllMapping()
|
boolean |
removeMapping(Mapping vMapping)
Method removeMapping. |
Mapping |
removeMappingAt(int index)
Method removeMappingAt. |
void |
setDatabaseChoice(DatabaseChoice databaseChoice)
Sets the value of field 'databaseChoice'. |
void |
setEngine(String engine)
Sets the value of field 'engine'. |
void |
setMapping(int index,
Mapping vMapping)
|
void |
setMapping(Mapping[] vMappingArray)
|
void |
setName(String name)
Sets the value of field 'name'. |
static Database |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Database()
| Method Detail |
|---|
public void addMapping(Mapping vMapping)
throws IndexOutOfBoundsException
vMapping -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addMapping(int index,
Mapping vMapping)
throws IndexOutOfBoundsException
index - vMapping -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<? extends Mapping> enumerateMapping()
public DatabaseChoice getDatabaseChoice()
public String getEngine()
public Mapping getMapping(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Mapping[] getMapping()
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 int getMappingCount()
public String getName()
public boolean isValid()
public Iterator<? extends Mapping> iterateMapping()
public void marshal(Writer out)
throws MarshalException,
ValidationException
out -
MarshalException - if object is
null or if any SAXException is thrown during marshaling
ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
MarshalException,
ValidationException
handler -
IOException - if an IOException occurs during
marshaling
ValidationException - if this
object is an invalid instance according to the schema
MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllMapping()
public boolean removeMapping(Mapping vMapping)
vMapping -
public Mapping removeMappingAt(int index)
index -
public void setDatabaseChoice(DatabaseChoice databaseChoice)
databaseChoice - the value of field 'databaseChoice'.public void setEngine(String engine)
engine - the value of field 'engine'.
public void setMapping(int index,
Mapping vMapping)
throws IndexOutOfBoundsException
index - vMapping -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setMapping(Mapping[] vMappingArray)
vMappingArray - public void setName(String name)
name - the value of field 'name'.
public static Database unmarshal(Reader reader)
throws MarshalException,
ValidationException
reader -
MarshalException - if object is
null or if any SAXException is thrown during marshaling
ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws ValidationException
ValidationException - if this
object is an invalid instance according to the schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||