Package com.storedobject.core
Class AccountChart
java.lang.Object
com.storedobject.core.StoredObject
com.storedobject.core.AccountChart
- All Implemented Interfaces:
Displayable
,StringFiller
,HasChildren
,HasId
,HasParents
-
Field Summary
Fields inherited from class com.storedobject.core.StoredObject
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
static void
static String[]
boolean
int
static String
getBalanceTypeValue
(int balanceType) static String[]
int
static String
getCategoryValue
(int category) static String[]
boolean
boolean
getName()
int
int
getStatus
(int accountStatus) boolean
int
static String
getTransactionTypeValue
(int transactionType) static String[]
static int
hints()
static void
static String[]
links()
void
loaded()
This method is called whenever the instance is loaded from the database.void
saved()
This method is invoked whenever an instance is saved/deleted/resurrected.static void
set
(Account account, TransactionManager tm) static void
set
(Account account, String chartName, TransactionManager tm) void
setAccountsAllowed
(boolean accountsAllowed) void
setBalanceType
(int balanceType) void
setCategory
(int category) void
setDeepFrozen
(boolean deepFrozen) void
setLimitCheck
(boolean limitCheck) void
void
setStrictBalanceControl
(boolean strictBalanceControl) void
setTransactionType
(int transactionType) toString()
String representation of the instance.void
validateChildAttach
(StoredObject child, int type) Do validation when a child is attached.void
This will be invoked by the system whenever the object is saved to the DB.void
validateParentAttach
(StoredObject parent, int type) Do validation when this gets attached to a parent object.Methods inherited from class com.storedobject.core.StoredObject
addLink, addLink, addLink, addLink, addLink, addLink, addLink, addLink, checkCurrency, checkCurrency, checkForDuplicate, checkForDuplicate, checkTimeZone, checkTransaction, clearObjectLinks, contemporary, copy, copy, count, count, count, count, count, count, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, create, created, delete, delete, delete, deleted, directUpdate, equals, exists, exists, exists, exists, exists, existsFileData, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsMaster, existsMaster, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, family, family, family, fill, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getAttachment, getAttachmentId, getChildren, getDeleted, getDeleted, getExistsCondition, getExistsCondition, getFileData, getFileData, getHistorical, getId, getKeyIndex, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getNotExistsCondition, getNotExistsCondition, getParent, getParent, getParent, getParentId, getParentId, getParentId, getRelated, getRelated, getTransaction, getTransactionId, getTransactionIP, getUnique, getUniqueCondition, hashCode, inserted, isModified, isVirtual, list, list, list, list, list, list, list, list, list, list, list, list, list, listFileData, listFileData, listHistory, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listTree, listTree, listTree, listTree, listViaQuery, listViaQuery, load, load, load, load, loading, makeNew, makeVirtual, migrate, moduleName, nextVersion, objectLink, objectLink, objectLink, objectLinks, objectLinks, old, person, previousVersion, previousVersion, query, query, query, query, query, query, query, query, query, query, query, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, reload, reload, reloaded, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeReverseLinks, removeReverseLinks, save, save, save, save, save, save, save, save, save, save, save, save, save, save, saving, setMaster, setRawValue, setTransaction, stringify, tableName, timestamp, toCode, toDisplay, transacting, undelete, undelete, undeleted, updated, user, userId, validate, validateChildDetach, validateChildUpdate, validateDelete, validateInsert, validateParentDetach, validateParentUpdate, validateUndelete, validateUpdate, valueEquals
-
Constructor Details
-
AccountChart
public AccountChart()
-
-
Method Details
-
columns
-
indices
-
displayColumns
-
browseColumns
-
hints
public static int hints() -
links
-
getBalanceType
public int getBalanceType() -
setBalanceType
public void setBalanceType(int balanceType) -
getTransactionType
public int getTransactionType() -
setTransactionType
public void setTransactionType(int transactionType) -
getStrictBalanceControl
public boolean getStrictBalanceControl() -
setStrictBalanceControl
public void setStrictBalanceControl(boolean strictBalanceControl) -
getDeepFrozen
public boolean getDeepFrozen() -
setDeepFrozen
public void setDeepFrozen(boolean deepFrozen) -
getLimitCheck
public boolean getLimitCheck() -
setLimitCheck
public void setLimitCheck(boolean limitCheck) -
setName
-
getName
-
getStatus
public int getStatus(int accountStatus) -
getCategoryValues
-
setCategory
public void setCategory(int category) -
getCategory
public int getCategory() -
getCategoryValue
-
getCategoryValue
-
getBalanceTypeValues
-
getBalanceTypeValue
-
getBalanceTypeValue
-
getTransactionTypeValues
-
getTransactionTypeValue
-
getTransactionTypeValue
-
toString
Description copied from class:StoredObject
String representation of the instance. Mostly used for logging purposes.- Overrides:
toString
in classStoredObject
- Returns:
- String representation of the instance.
-
validateData
Description copied from class:StoredObject
This will be invoked by the system whenever the object is saved to the DB. It will be invoked in all cases, while creating new objects and updating/deleting/un-deleting existing objects. If any exception is raised by this method, the process of saving to the DB will be abandoned.
Note: This method is mainly used to validate the data of all attributes of the object, and it may be used by others for validating the object. For example, front-end data-entry systems can use this method for validating the object.
- Overrides:
validateData
in classStoredObject
- Parameters:
tm
- Current transaction manager.- Throws:
Exception
- If data is invalid.
-
validateChildAttach
Description copied from class:StoredObject
Do validation when a child is attached.Note: This method will be invoked only if this class implements
HasChildren
.- Overrides:
validateChildAttach
in classStoredObject
- Parameters:
child
- Child to validate.type
- Link type.- Throws:
Exception
- By raising an exception from this method the current transaction can be abandoned.
-
validateParentAttach
Description copied from class:StoredObject
Do validation when this gets attached to a parent object.Note: This method will be invoked only if this class implements
HasParents
.- Overrides:
validateParentAttach
in classStoredObject
- Parameters:
parent
- Parent to validate.type
- Link type.- Throws:
Exception
- By raising an exception from this method the current transaction can be abandoned.
-
getStatus
public int getStatus() -
getStatusDescription
-
loaded
public void loaded()Description copied from class:StoredObject
This method is called whenever the instance is loaded from the database. Any additional logic can be here for extended classes.- Overrides:
loaded
in classStoredObject
-
saved
Description copied from class:StoredObject
This method is invoked whenever an instance is saved/deleted/resurrected. It can be overridden to take care of any additional actions required by the application.- Overrides:
saved
in classStoredObject
- Throws:
Exception
- When error occurs or invalidate state exists so that transaction will be abandoned.
-
setAccountsAllowed
public void setAccountsAllowed(boolean accountsAllowed) -
getAccountsAllowed
public boolean getAccountsAllowed() -
set
-
set
-