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 voidstatic String[]booleanintstatic StringgetBalanceTypeValue(int balanceType) static String[]intstatic StringgetCategoryValue(int category) static String[]booleanbooleangetName()intintgetStatus(int accountStatus) booleanintstatic StringgetTransactionTypeValue(int transactionType) static String[]static inthints()static voidstatic String[]links()voidloaded()This method is called whenever the instance is loaded from the database.voidsaved()This method is invoked whenever an instance is saved/deleted/resurrected.static voidset(Account account, TransactionManager tm) static voidset(Account account, String chartName, TransactionManager tm) voidsetAccountsAllowed(boolean accountsAllowed) voidsetBalanceType(int balanceType) voidsetCategory(int category) voidsetDeepFrozen(boolean deepFrozen) voidsetLimitCheck(boolean limitCheck) voidvoidsetStrictBalanceControl(boolean strictBalanceControl) voidsetTransactionType(int transactionType) toString()String representation of the instance.voidvalidateChildAttach(StoredObject child, int type) Do validation when a child is attached.voidThe system will invoke this whenever the object is saved to the DB.voidvalidateParentAttach(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, family, fill, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getAttachment, getAttachmentId, getChildren, getContemporaryOf, 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, listDeletedIds, 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, loadAttributesFrom, 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, 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:StoredObjectString representation of the instance. Mostly used for logging purposes.- Overrides:
toStringin classStoredObject- Returns:
- String representation of the instance.
-
validateData
Description copied from class:StoredObjectThe system will invoke this whenever the object is saved to the DB. It will be invoked in all cases while creating new objects and updating/deleting/undeleting 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:
validateDatain classStoredObject- Parameters:
tm- Current transaction manager.- Throws:
Exception- If data is invalid.
-
validateChildAttach
Description copied from class:StoredObjectDo validation when a child is attached.Note: This method will be invoked only if this class implements
HasChildren.- Overrides:
validateChildAttachin 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:StoredObjectDo validation when this gets attached to a parent object.Note: This method will be invoked only if this class implements
HasParents.- Overrides:
validateParentAttachin 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:StoredObjectThis method is called whenever the instance is loaded from the database. Any additional logic can be here for extended classes.- Overrides:
loadedin classStoredObject
-
saved
Description copied from class:StoredObjectThis 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:
savedin 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
-