|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ashridgetech.prevdb.client.AbstractPersistentObject | +--com.ashridgetech.prevdb.test.TestClassA
Persistent test class for use in unit tests.
Field Summary | |
static PersistentField |
B
|
static PersistentField |
BALANCE
|
static PersistentField |
CREDIT_LIMIT
|
static PersistentField |
NAME
|
protected static PersistentField[] |
PERSISTENT_FIELDS
|
static PersistentField |
START_DATE
|
Fields inherited from class com.ashridgetech.prevdb.client.AbstractPersistentObject |
oid, OID |
Constructor Summary | |
TestClassA(PrevDb prevDb)
|
|
TestClassA(PrevDb prevDb,
String name,
Date startDate,
int creditLimit,
BigDecimal balance)
|
Method Summary | |
TestClassB |
getB()
Get the B |
BigDecimal |
getBalance()
Get the cash balance |
int |
getCreditLimit()
Get the credit limit |
protected Object |
getJavaField(Field javaField)
Get the value of a Java field. |
String |
getName()
Get the name |
protected PersistentField[] |
getPersistentFields()
Provide an array of PersistentField s for this object. |
Date |
getStartDate()
Get the starting date |
void |
setB(TestClassB b)
Set the B |
void |
setCreditLimit(int creditLimit)
Set the credit limit |
protected void |
setJavaField(Field javaField,
Object value)
Set the value of a Java field. |
void |
setName(String name)
Set the name |
void |
setStartDate(Date startDate)
Set the starting date |
String |
toString()
|
Methods inherited from class com.ashridgetech.prevdb.client.AbstractPersistentObject |
getField, getFields, getManager, getOid, getPersistentField, notifyUpdate, notifyUpdate, notifyUpdate, setField, setFields |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final PersistentField NAME
public static final PersistentField START_DATE
public static final PersistentField CREDIT_LIMIT
public static final PersistentField BALANCE
public static final PersistentField B
protected static final PersistentField[] PERSISTENT_FIELDS
Constructor Detail |
public TestClassA(PrevDb prevDb)
public TestClassA(PrevDb prevDb, String name, Date startDate, int creditLimit, BigDecimal balance)
Method Detail |
protected PersistentField[] getPersistentFields()
AbstractPersistentObject
PersistentField
s for this object.
Must include the persistent fields of the superclass, if any
getPersistentFields
in class AbstractPersistentObject
PersistentField
sprotected Object getJavaField(Field javaField) throws IllegalAccessException
return javaField.get( this );
getJavaField
in class AbstractPersistentObject
javaField
- the Field
to get the value of
IllegalAccessException
protected void setJavaField(Field javaField, Object value) throws IllegalAccessException
javaField.set( this, value );
setJavaField
in class AbstractPersistentObject
javaField
- the Field
to set the value ofvalue
- the value to set
IllegalAccessException
public String getName()
public void setName(String name)
name
- public Date getStartDate()
public void setStartDate(Date startDate)
startDate
- public int getCreditLimit()
public void setCreditLimit(int creditLimit)
creditLimit
- public BigDecimal getBalance()
public TestClassB getB()
public void setB(TestClassB b)
b
- public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |