|
The Gravey Framework and RATS RIA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--GrvObject
|
+--Transaction
DOMAIN-OBJECT: This class encapsulates a Account "transaction".
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:
| Constructor Summary | |
Transaction
()
|
|
| Method Summary | |
String
|
action()
return our edit state translated to a broadcast message code |
void
|
addMe()
mark this transaction as being newly added |
String
|
asUpdateString( <Balance> parentBalance )
return a string of updates for this transaction formatted as
"{key}~{action}~{sdate}~{ttype}~{ccode}~{balA}~{balB}~{balC}~{balD}"
where the fields are defined as follows...
|
Transaction
|
clone()
return a clone of this object |
void
|
deleteMe()
mark this transaction as deleted |
String
|
dump()
return the debug details of "this" |
void
|
editMe()
mark this record as having been edited |
String
|
getEditRule( <String> optBalanceID )
return the edit/validation rule for the specified balance. |
Float
|
getTotal()
return sum of balances for this transaction |
String
|
getValidity(<String> ID)
return the validity "code" of the specified attribute |
boolean
|
inactive()
return whether this transaction needs to update server |
boolean
|
inEdit()
return whether this transaction has been changed since last save |
boolean
|
isComplex()
return whether this transaction is a complex type |
boolean
|
isValid()
return whether this transaction has validated data |
String
|
isViewable()
return whether this transaction can be viewed if desired |
void
|
konstructor( <String> complexCode, <String> transType, <Float> amountA, <Float> amountB, <Float> amountC, <Float> amountD, <String> editDate, <String> editUser, <int> theKey, <int> optEditStatus )
|
void
|
setValidity(<String> ID,<String> v)
set the validity code of the specified attribute |
String
|
state()
return the formatted version of our edit state |
void
|
undeleteMe()
restore this transaction to its pre-deleted state |
void
|
uneditMe()
restore this record to its pre-edited state |
| Methods inherited from class GrvObject |
souper
|
| Constructor Detail |
Transaction()
| Method Detail |
String action()
void addMe()
String asUpdateString( <Balance> parentBalance )
"{key}~{action}~{sdate}~{ttype}~{ccode}~{balA}~{balB}~{balC}~{balD}"
where the fields are defined as follows...
{key} = the transaction's unique key number
{action} = the transaction's action code
(encode as strings 'C','D', and 'U' for values create, delete, and update.)
{sdate} = the transaction's parent balance date
{ttype} = the transaction's new transaction Type
{ccode} = the transaction's new complex code
{balA} = the transaction's new balance A
{balB} = the transaction's new balance B
{balC} = the transaction's new balance C
{balD} = the transaction's new balance D
parentBalance - balance "this" is attached to
Transaction clone()
void deleteMe()
String dump()
void editMe()
String getEditRule( <String> optBalanceID )
optBalanceID - optional object element name specifying desired balance
Float getTotal()
String getValidity(<String> ID)
ID - transaction attribute name
boolean inactive()
boolean inEdit()
boolean isComplex()
boolean isValid()
String isViewable()
void konstructor( <String> complexCode, <String> transType, <Float> amountA, <Float> amountB, <Float> amountC, <Float> amountD, <String> editDate, <String> editUser, <int> theKey, <int> optEditStatus )
complexCode - complex code
transType - "transaction type" code
amountA - balance A
amountB - balance B
amountC - balance C
amountD - balance D
editDate - date of last edit
editUser - ID of last user to edit
theKey - Oracle primary key of this record
optEditStatus - optional edit status where the status codes are: 0=no-change; 1=delete; 2=create; 3=hidden; 4=update
void setValidity(<String> ID,<String> v)
ID - transaction attribute name
v - validity "code" (actually an error message or null)
String state()
void undeleteMe()
void uneditMe()
|
The Gravey Framework and RATS RIA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||