Package com.storedobject.accounts
Class TaxAccountConfiguration
java.lang.Object
com.storedobject.core.StoredObject
com.storedobject.accounts.TaxAccountConfiguration
- All Implemented Interfaces:
Displayable,StringFiller,HasId,OfEntity
This class is used to configure tax accounts.
- Author:
- Syam
-
Field Summary
Fields inherited from class com.storedobject.core.StoredObject
logger -
Constructor Summary
ConstructorsConstructorDescriptionThis class represents a Tax Account Configuration. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAdds columns to the given Columns object.Retrieves the Account related to the current AccountConfiguration.Returns the account Id.Retrieves the system entity associated with this AccountConfiguration.Retrieves the system entity ID.getType()Returns the TaxType associated with the current instance.Retrieves the type ID of the tax type.Retrieves the unique condition used for querying the system.static inthints()Provides hints about objects.static voidAdds indices to the given Indices object.voidsetAccount(Account account) Sets the account for this AccountConfiguration.voidsetAccount(Id accountId) Sets the account ID for the current object.voidsetAccount(BigDecimal idValue) Sets the account for this object using the specified id value.voidsetSystemEntity(Id systemEntityId) Sets the system entity Id for this object.voidsetSystemEntity(SystemEntity systemEntity) Sets the system entity for this AccountConfiguration.voidsetSystemEntity(BigDecimal idValue) Sets the system entity using the provided id value.voidSets the type of tax.voidSets the type of tax.voidsetType(BigDecimal idValue) Sets the type of tax.voidThe system will invoke this whenever the object is saved to the DB.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, getActor, 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, 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, loaded, 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, saved, saving, setMaster, setRawValue, setTransaction, stringify, tableName, timestamp, toCode, toDisplay, toString, transacting, undelete, undelete, undeleted, updated, user, userId, validate, validateChildAttach, validateChildDetach, validateChildUpdate, validateDelete, validateInsert, validateParentAttach, validateParentDetach, validateParentUpdate, validateUndelete, validateUpdate, valueEqualsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.storedobject.core.OfEntity
check, findSystemEntityId
-
Constructor Details
-
TaxAccountConfiguration
public TaxAccountConfiguration()This class represents a Tax Account Configuration. It provides a constructor to create an instance of TaxAccountConfiguration.
-
-
Method Details
-
columns
Adds columns to the given Columns object.- Parameters:
columns- The Columns object to add the columns to.
-
indices
Adds indices to the given Indices object.- Parameters:
indices- the Indices object to add indices to
-
getUniqueCondition
Retrieves the unique condition used for querying the system. The condition is formed by concatenating the system entity ID and type.- Overrides:
getUniqueConditionin classStoredObject- Returns:
- The unique condition.
-
hints
public static int hints()Provides hints about objects.This method returns a combination of hints representing certain characteristics of objects. The possible hints are defined in the
ObjectHintclass.- Returns:
- An integer value that represents a combination of hints. The hints can be extracted using binary AND operations.
- See Also:
-
setSystemEntity
Sets the system entity Id for this object.- Specified by:
setSystemEntityin interfaceOfEntity- Parameters:
systemEntityId- the Id of the system entity to set- Throws:
Set_Not_Allowed- if the method is called when the object is not in a loading state or if the provided system entity Id is different from the current one
-
setSystemEntity
Sets the system entity using the provided id value.- Parameters:
idValue- the id value of the system entity
-
setSystemEntity
Sets the system entity for this AccountConfiguration.- Parameters:
systemEntity- The system entity to set. If null, the system entity will be set to null.
-
getSystemEntityId
Retrieves the system entity ID.- Specified by:
getSystemEntityIdin interfaceOfEntity- Returns:
- the system entity ID
-
getSystemEntity
Retrieves the system entity associated with this AccountConfiguration.- Specified by:
getSystemEntityin interfaceOfEntity- Returns:
- The SystemEntity object associated with this AccountConfiguration.
-
setType
Sets the type of tax.- Parameters:
typeId- the Id representing the desired type- Throws:
Set_Not_Allowed- if the method is called outside the loading state and the new typeId is different from the current typeId
-
setType
Sets the type of tax.- Parameters:
idValue- the BigDecimal value of the id to set as the new type
-
setType
-
getTypeId
Retrieves the type ID of the tax type.- Returns:
- the type ID of the tax type
-
getType
Returns the TaxType associated with the current instance.- Returns:
- the TaxType object for the current instance.
-
setAccount
Sets the account ID for the current object.- Parameters:
accountId- the unique identifier of the account
-
setAccount
Sets the account for this object using the specified id value.- Parameters:
idValue- the value for the account id
-
setAccount
Sets the account for this AccountConfiguration.- Parameters:
account- The account to set. If null, the account ID will be set to null.
-
getAccountId
-
getAccount
Retrieves the Account related to the current AccountConfiguration.- Returns:
- The related Account object.
-
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.
-