public class JdoConf extends Object implements Serializable
Constructor and Description |
---|
JdoConf() |
Modifier and Type | Method and Description |
---|---|
void |
addDatabase(Database vDatabase) |
void |
addDatabase(int index,
Database vDatabase) |
Enumeration<? extends Database> |
enumerateDatabase()
Method enumerateDatabase.
|
Database[] |
getDatabase()
Method getDatabase.Returns the contents of the collection in
an Array.
|
Database |
getDatabase(int index)
Method getDatabase.
|
int |
getDatabaseCount()
Method getDatabaseCount.
|
String |
getName()
Returns the value of field 'name'.
|
TransactionDemarcation |
getTransactionDemarcation()
Returns the value of field 'transactionDemarcation'.
|
boolean |
isValid()
Method isValid.
|
Iterator<? extends Database> |
iterateDatabase()
Method iterateDatabase.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllDatabase() |
boolean |
removeDatabase(Database vDatabase)
Method removeDatabase.
|
Database |
removeDatabaseAt(int index)
Method removeDatabaseAt.
|
void |
setDatabase(Database[] vDatabaseArray) |
void |
setDatabase(int index,
Database vDatabase) |
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setTransactionDemarcation(TransactionDemarcation transactionDemarcation)
Sets the value of field 'transactionDemarcation'.
|
static JdoConf |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addDatabase(Database vDatabase) throws IndexOutOfBoundsException
vDatabase
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addDatabase(int index, Database vDatabase) throws IndexOutOfBoundsException
index
- vDatabase
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<? extends Database> enumerateDatabase()
public Database getDatabase(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Database[] getDatabase()
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 getDatabaseCount()
public String getName()
public TransactionDemarcation getTransactionDemarcation()
public boolean isValid()
public Iterator<? extends Database> iterateDatabase()
public void marshal(Writer out) throws MarshalException, ValidationException
out
- MarshalException
- if object is
null or if any SAXException is thrown during marshalingValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, MarshalException, ValidationException
handler
- IOException
- if an IOException occurs during
marshalingValidationException
- if this
object is an invalid instance according to the schemaMarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllDatabase()
public boolean removeDatabase(Database vDatabase)
vDatabase
- public Database removeDatabaseAt(int index)
index
- public void setDatabase(int index, Database vDatabase) throws IndexOutOfBoundsException
index
- vDatabase
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setDatabase(Database[] vDatabaseArray)
vDatabaseArray
- public void setName(String name)
name
- the value of field 'name'.public void setTransactionDemarcation(TransactionDemarcation transactionDemarcation)
transactionDemarcation
- the value of field
'transactionDemarcation'.public static JdoConf unmarshal(Reader reader) throws MarshalException, ValidationException
reader
- MarshalException
- if object is
null or if any SAXException is thrown during marshalingValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws ValidationException
ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2014. All rights reserved.