|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.persist.examples.DomainObject | +--com.objectwave.persist.xml.TestXMLCompany
A sample for using a XML file to read match field. This implementation is showing the absolute minimal amount of information that could is required in a persistent object.
Nested Class Summary | |
static class |
TestXMLCompany.Test
Unit Test |
Nested classes inherited from class com.objectwave.persist.examples.DomainObject |
DomainObject.Test |
Field Summary | |
static java.lang.reflect.Field |
_address
|
static java.lang.reflect.Field |
_employees
|
static java.lang.reflect.Field |
_founders
|
static java.lang.reflect.Field |
_name
|
protected java.lang.String |
address
|
protected java.util.Vector |
employees
|
protected java.util.Vector |
founders
|
protected java.lang.String |
name
|
Fields inherited from class com.objectwave.persist.examples.DomainObject |
adapt, editor, objectIdentifier, tableMap |
Constructor Summary | |
TestXMLCompany()
Using this method to do the field match with xml file called testCompany.xml. |
Method Summary | |
java.lang.String |
getAddress()
Gets the Address attribute of the TestXMLCompany object |
protected java.util.Vector |
getClassDescriptor()
Use an instance method to access a static variable. |
java.util.Vector |
getEmployees()
Gets the Employees attribute of the TestXMLCompany object |
java.util.Vector |
getFounders()
Gets the Founders attribute of the TestXMLCompany object |
java.lang.String |
getName()
Gets the Name attribute of the TestXMLCompany object |
protected java.lang.String |
getTableName()
Use an instance method to access a static variable. |
void |
setAddress(java.lang.String aValue)
Sets the Address attribute of the TestXMLCompany object |
protected void |
setClassDescriptor(java.util.Vector v)
Use an instance method to access a static variable. |
void |
setEmployees(java.util.Vector aValue)
Sets the Employees attribute of the TestXMLCompany object |
void |
setFounders(java.util.Vector aValue)
Sets the Founders attribute of the TestXMLCompany object |
void |
setName(java.lang.String aValue)
Sets the Name attribute of the TestXMLCompany object |
protected void |
setTableName(java.lang.String table)
Use an instance method to access a static variable. |
Methods inherited from class com.objectwave.persist.examples.DomainObject |
addDefaultPrimaryAttribute, createAdapter, delete, getAdapter, getBrokerName, getEntry, getObjectEditor, getObjectIdentifier, getPrimaryKeyField, getPrimaryKeyFields, getSuperDescriptor, getXmlDefinition, initDescription, initDescriptor, initializeObjectEditor, initializeObjectEditor, insert, isDirty, isRetrievedFromDatabase, isTransient, locateXmlMap, lock, markForDelete, save, setAsTransient, setBrokerName, setEntry, setObjectEditor, setObjectIdentifier, setPrimaryKeyField, setPrintString, setRetrievedFromDatabase, toString, unlock, update, usesAdapter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static java.lang.reflect.Field _name
public static java.lang.reflect.Field _address
public static java.lang.reflect.Field _employees
public static java.lang.reflect.Field _founders
protected java.lang.String name
protected java.lang.String address
protected java.util.Vector employees
protected java.util.Vector founders
Constructor Detail |
public TestXMLCompany() throws java.io.FileNotFoundException, ConfigurationException
java.io.FileNotFoundException
- The specified file could not be located
ConfigurationException
- Some other problem related to the configuration occuredMethod Detail |
public void setEmployees(java.util.Vector aValue)
aValue
- The new Employees valuepublic void setFounders(java.util.Vector aValue)
aValue
- The new Founders valuepublic void setName(java.lang.String aValue)
aValue
- The new Name valuepublic void setAddress(java.lang.String aValue)
aValue
- The new Address valuepublic java.util.Vector getEmployees()
public java.util.Vector getFounders()
public java.lang.String getName()
public java.lang.String getAddress()
protected void setTableName(java.lang.String table)
setTableName
in class DomainObject
table
- The new TableName valueprotected void setClassDescriptor(java.util.Vector v)
setClassDescriptor
in class DomainObject
v
- The new ClassDescriptor valueprotected java.util.Vector getClassDescriptor()
getClassDescriptor
in class DomainObject
protected java.lang.String getTableName()
getTableName
in class DomainObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |