|
||||||||||
| 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 |
addClassMapping(ClassMapping vClassMapping)
|
void |
addClassMapping(int index,
ClassMapping vClassMapping)
|
void |
addMapping(int index,
Mapping vMapping)
|
void |
addMapping(Mapping vMapping)
|
void |
addPackageMapping(int index,
PackageMapping vPackageMapping)
|
void |
addPackageMapping(PackageMapping vPackageMapping)
|
Enumeration<? extends ClassMapping> |
enumerateClassMapping()
Method enumerateClassMapping. |
Enumeration<? extends Mapping> |
enumerateMapping()
Method enumerateMapping. |
Enumeration<? extends PackageMapping> |
enumeratePackageMapping()
Method enumeratePackageMapping. |
ClassMapping[] |
getClassMapping()
Method getClassMapping.Returns the contents of the collection in an Array. |
ClassMapping |
getClassMapping(int index)
Method getClassMapping. |
int |
getClassMappingCount()
Method getClassMappingCount. |
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'. |
PackageMapping[] |
getPackageMapping()
Method getPackageMapping.Returns the contents of the collection in an Array. |
PackageMapping |
getPackageMapping(int index)
Method getPackageMapping. |
int |
getPackageMappingCount()
Method getPackageMappingCount. |
boolean |
isValid()
Method isValid. |
Iterator<? extends ClassMapping> |
iterateClassMapping()
Method iterateClassMapping. |
Iterator<? extends Mapping> |
iterateMapping()
Method iterateMapping. |
Iterator<? extends PackageMapping> |
iteratePackageMapping()
Method iteratePackageMapping. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllClassMapping()
|
void |
removeAllMapping()
|
void |
removeAllPackageMapping()
|
boolean |
removeClassMapping(ClassMapping vClassMapping)
Method removeClassMapping. |
ClassMapping |
removeClassMappingAt(int index)
Method removeClassMappingAt. |
boolean |
removeMapping(Mapping vMapping)
Method removeMapping. |
Mapping |
removeMappingAt(int index)
Method removeMappingAt. |
boolean |
removePackageMapping(PackageMapping vPackageMapping)
Method removePackageMapping. |
PackageMapping |
removePackageMappingAt(int index)
Method removePackageMappingAt. |
void |
setClassMapping(ClassMapping[] vClassMappingArray)
|
void |
setClassMapping(int index,
ClassMapping vClassMapping)
|
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'. |
void |
setPackageMapping(int index,
PackageMapping vPackageMapping)
|
void |
setPackageMapping(PackageMapping[] vPackageMappingArray)
|
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 addClassMapping(ClassMapping vClassMapping)
throws IndexOutOfBoundsException
vClassMapping -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addClassMapping(int index,
ClassMapping vClassMapping)
throws IndexOutOfBoundsException
index - vClassMapping -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
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 collection
public void addPackageMapping(PackageMapping vPackageMapping)
throws IndexOutOfBoundsException
vPackageMapping -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addPackageMapping(int index,
PackageMapping vPackageMapping)
throws IndexOutOfBoundsException
index - vPackageMapping -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<? extends ClassMapping> enumerateClassMapping()
public Enumeration<? extends Mapping> enumerateMapping()
public Enumeration<? extends PackageMapping> enumeratePackageMapping()
public ClassMapping getClassMapping(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic ClassMapping[] getClassMapping()
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 getClassMappingCount()
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 PackageMapping getPackageMapping(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic PackageMapping[] getPackageMapping()
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 getPackageMappingCount()
public boolean isValid()
public Iterator<? extends ClassMapping> iterateClassMapping()
public Iterator<? extends Mapping> iterateMapping()
public Iterator<? extends PackageMapping> iteratePackageMapping()
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 removeAllClassMapping()
public void removeAllMapping()
public void removeAllPackageMapping()
public boolean removeClassMapping(ClassMapping vClassMapping)
vClassMapping -
public ClassMapping removeClassMappingAt(int index)
index -
public boolean removeMapping(Mapping vMapping)
vMapping -
public Mapping removeMappingAt(int index)
index -
public boolean removePackageMapping(PackageMapping vPackageMapping)
vPackageMapping -
public PackageMapping removePackageMappingAt(int index)
index -
public void setClassMapping(int index,
ClassMapping vClassMapping)
throws IndexOutOfBoundsException
index - vClassMapping -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setClassMapping(ClassMapping[] vClassMappingArray)
vClassMappingArray - 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 void setPackageMapping(int index,
PackageMapping vPackageMapping)
throws IndexOutOfBoundsException
index - vPackageMapping -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setPackageMapping(PackageMapping[] vPackageMappingArray)
vPackageMappingArray -
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 | |||||||||