|
||||||||||
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.TestXMLPerson
A sample for using a XML file to read match field
Nested Class Summary | |
static class |
TestXMLPerson.Test
|
Nested classes inherited from class com.objectwave.persist.examples.DomainObject |
DomainObject.Test |
Field Summary | |
static java.lang.reflect.Field |
_annualIncome
|
static java.lang.reflect.Field |
_company
|
static java.lang.reflect.Field |
_fax
|
static java.lang.reflect.Field |
_founderOf
|
static java.lang.reflect.Field |
_name
|
static java.lang.reflect.Field |
_phone
|
static java.lang.reflect.Field |
_title
|
Fields inherited from class com.objectwave.persist.examples.DomainObject |
adapt, editor, objectIdentifier, tableMap |
Constructor Summary | |
TestXMLPerson()
Using this method to do the field match with xml file tag note: "table.testPerson" in method means tha tag name for XML file which include all the field match info. |
Method Summary | |
double |
getAnnualIncome()
Gets the AnnualIncome attribute of the TestXMLPerson object |
protected java.util.Vector |
getClassDescriptor()
Use an instance method to access a static variable. |
TestXMLCompany |
getCompany()
Gets the Company attribute of the TestXMLPerson object |
java.lang.String |
getFax()
Gets the Fax attribute of the TestXMLPerson object |
TestXMLCompany |
getFounderOf()
Gets the FounderOf attribute of the TestXMLPerson object |
java.lang.String |
getName()
Gets the Name attribute of the TestXMLPerson object |
java.lang.String |
getPhone()
Gets the Phone attribute of the TestXMLPerson object |
protected java.lang.String |
getTableName()
Use an instance method to access a static variable. |
java.lang.String |
getTitle()
Gets the Title attribute of the TestXMLPerson object |
void |
setAnnualIncome(double aValue)
Sets the AnnualIncome attribute of the TestXMLPerson object |
protected void |
setClassDescriptor(java.util.Vector v)
Use an instance method to access a static variable. |
void |
setCompany(TestXMLCompany aValue)
Sets the Company attribute of the TestXMLPerson object |
void |
setFax(java.lang.String aValue)
Sets the Fax attribute of the TestXMLPerson object |
void |
setFounderOf(TestXMLCompany aValue)
Sets the FounderOf attribute of the TestXMLPerson object |
void |
setName(java.lang.String aValue)
Sets the Name attribute of the TestXMLPerson object |
void |
setPhone(java.lang.String aValue)
Sets the Phone attribute of the TestXMLPerson object |
protected void |
setTableName(java.lang.String table)
Use an instance method to access a static variable. |
void |
setTitle(java.lang.String aValue)
Sets the Title attribute of the TestXMLPerson object |
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 _phone
public static java.lang.reflect.Field _fax
public static java.lang.reflect.Field _title
public static java.lang.reflect.Field _annualIncome
public static java.lang.reflect.Field _company
public static java.lang.reflect.Field _founderOf
Constructor Detail |
public TestXMLPerson() throws java.io.FileNotFoundException, ConfigurationException
java.io.FileNotFoundException
ConfigurationException
Method Detail |
public void setCompany(TestXMLCompany aValue)
aValue
- The new Company valuepublic void setFounderOf(TestXMLCompany aValue)
aValue
- The new FounderOf valuepublic void setAnnualIncome(double aValue)
aValue
- The new AnnualIncome valuepublic void setFax(java.lang.String aValue)
aValue
- The new Fax valuepublic void setName(java.lang.String aValue)
aValue
- The new Name valuepublic void setPhone(java.lang.String aValue)
aValue
- The new Phone valuepublic void setTitle(java.lang.String aValue)
aValue
- The new Title valuepublic double getAnnualIncome()
public java.lang.String getFax()
public java.lang.String getName()
public java.lang.String getPhone()
public java.lang.String getTitle()
public TestXMLCompany getCompany()
public TestXMLCompany getFounderOf()
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.lang.String getTableName()
getTableName
in class DomainObject
protected java.util.Vector getClassDescriptor()
getClassDescriptor
in class DomainObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |