@Repository public class ChartOfAccountsHibernateDAO extends Object implements ChartOfAccountsDAO
| Constructor and Description |
|---|
ChartOfAccountsHibernateDAO() |
| Modifier and Type | Method and Description |
|---|---|
org.egov.commons.CChartOfAccounts |
create(org.egov.commons.CChartOfAccounts entity) |
void |
delete(org.egov.commons.CChartOfAccounts entity) |
List<org.egov.commons.CChartOfAccounts> |
findAll() |
List<org.egov.commons.CChartOfAccounts> |
findByGlcodeLikeIgnoreCaseAndClassification(String string,
Long classification) |
List<org.egov.commons.CChartOfAccounts> |
findByGlcodeLikeIgnoreCaseAndClassificationAndMajorCode(String string,
Long classification,
String majorCode) |
org.egov.commons.CChartOfAccounts |
findById(Number id,
boolean lock) |
List<org.egov.commons.CChartOfAccounts> |
findByMajorCodeAndClassification(String majorCode,
Long classification) |
List<org.egov.commons.CChartOfAccounts> |
findByType(Character type) |
org.egov.commons.CChartOfAccounts |
findCodeByPurposeId(int purposeId)
Deprecated.
|
List<org.egov.commons.CChartOfAccounts> |
findDetailedAccountCodesByGlcodeOrNameLike(String searchString) |
List<org.egov.commons.CChartOfAccounts> |
getAccountCodeByListOfPurposeId(Integer[] purposeId) |
List<org.egov.commons.CChartOfAccounts> |
getAccountCodeByListOfPurposeName(String[] purposeNames) |
List<org.egov.commons.CChartOfAccounts> |
getAccountCodeByPurpose(Integer purposeId)
to get the list of chartofaccounts based on the purposeId.
|
List<org.egov.commons.CChartOfAccounts> |
getAccountCodeByPurposeName(String purposeName)
to get the list of chartofaccounts based on the purposeName.
|
Collection |
getAccountCodeListForDetails()
Deprecated.
|
List<org.egov.commons.CChartOfAccounts> |
getAccountCodesListForBankEntries() |
org.egov.commons.Accountdetailtype |
getAccountDetailTypeIdByName(String glCode,
String name)
This API will return the accountdetailtype for an account code when the accountcode and the respective accountdetailtype
name is passed.
|
List<org.egov.commons.Accountdetailtype> |
getAccountdetailtypeListByGLCode(String glCode) |
List<org.egov.commons.CChartOfAccounts> |
getActiveAccountsForType(char type)
This API will return the list of detailed chartofaccounts objects that are active for posting for the Type.
|
List<org.egov.commons.CChartOfAccounts> |
getActiveAccountsForTypes(char[] type) |
List<org.egov.commons.CChartOfAccounts> |
getBankChartofAccountCodeList() |
List<org.egov.commons.CChartOfAccounts> |
getBySubLedgerCode(String subLedgerCode) |
org.egov.commons.CChartOfAccounts |
getCChartOfAccountsByGlCode(String glCode) |
List |
getChartOfAccountsForTds()
Deprecated.
|
org.hibernate.Session |
getCurrentSession() |
List<org.egov.commons.CChartOfAccounts> |
getDetailedAccountCodeList()
This API will give the list of detailed active for posting chartofaccounts list
|
List<org.egov.commons.CChartOfAccounts> |
getDetailedCodesList() |
int |
getDetailTypeId(String glCode,
Connection connection)
Deprecated.
|
int |
getDetailTypeIdByName(String glCode,
Connection connection,
String name)
Deprecated.
|
List<org.egov.commons.CChartOfAccounts> |
getForRecovery() |
List |
getGlcode(String minGlcode,
String maxGlcode,
String majGlcode) |
List<org.egov.commons.CChartOfAccounts> |
getListOfDetailCode(String glCode) |
List<org.egov.commons.CChartOfAccounts> |
getNonControlCodeList()
This API will return the list of non control detailed chartofaccount codes that are active for posting.
|
org.egov.commons.CChartOfAccounts |
update(org.egov.commons.CChartOfAccounts entity) |
@Transactional public org.egov.commons.CChartOfAccounts update(org.egov.commons.CChartOfAccounts entity)
update in interface ChartOfAccountsDAO@Transactional public org.egov.commons.CChartOfAccounts create(org.egov.commons.CChartOfAccounts entity)
create in interface ChartOfAccountsDAO@Transactional public void delete(org.egov.commons.CChartOfAccounts entity)
delete in interface ChartOfAccountsDAOpublic org.egov.commons.CChartOfAccounts findById(Number id, boolean lock)
findById in interface ChartOfAccountsDAOpublic List<org.egov.commons.CChartOfAccounts> findAll()
findAll in interface ChartOfAccountsDAOpublic org.hibernate.Session getCurrentSession()
@Deprecated public Collection getAccountCodeListForDetails()
getAccountCodeListForDetails in interface ChartOfAccountsDAOpublic List<org.egov.commons.CChartOfAccounts> getDetailedAccountCodeList()
getDetailedAccountCodeList in interface ChartOfAccountsDAOorg.egov.infra.exception.ApplicationExceptionpublic List<org.egov.commons.CChartOfAccounts> getDetailedCodesList()
public List<org.egov.commons.CChartOfAccounts> findDetailedAccountCodesByGlcodeOrNameLike(String searchString)
@Deprecated public org.egov.commons.CChartOfAccounts findCodeByPurposeId(int purposeId)
findCodeByPurposeId in interface ChartOfAccountsDAOpublic org.egov.commons.CChartOfAccounts getCChartOfAccountsByGlCode(String glCode)
getCChartOfAccountsByGlCode in interface ChartOfAccountsDAO@Deprecated public List getChartOfAccountsForTds()
getChartOfAccountsForTds in interface ChartOfAccountsDAO@Deprecated public int getDetailTypeId(String glCode, Connection connection) throws Exception
getDetailTypeId in interface ChartOfAccountsDAOException@Deprecated public int getDetailTypeIdByName(String glCode, Connection connection, String name)
getDetailTypeIdByName in interface ChartOfAccountsDAOpublic org.egov.commons.Accountdetailtype getAccountDetailTypeIdByName(String glCode, String name)
getAccountDetailTypeIdByName in interface ChartOfAccountsDAOglcode - - This the chartofaccount code (mandatory)name - - This is the accountdetailtype name that is associated with the account code (mandatory)public List getGlcode(String minGlcode, String maxGlcode, String majGlcode)
getGlcode in interface ChartOfAccountsDAOpublic List<org.egov.commons.CChartOfAccounts> getActiveAccountsForType(char type)
getActiveAccountsForType in interface ChartOfAccountsDAO-Accounting - type-(Asset (A), Liability (L), Income (I), Expense (E))public List<org.egov.commons.CChartOfAccounts> getAccountCodeByPurpose(Integer purposeId)
getAccountCodeByPurpose in interface ChartOfAccountsDAOpurposeId - public List<org.egov.commons.CChartOfAccounts> getNonControlCodeList()
getNonControlCodeList in interface ChartOfAccountsDAOpublic List<org.egov.commons.Accountdetailtype> getAccountdetailtypeListByGLCode(String glCode)
getAccountdetailtypeListByGLCode in interface ChartOfAccountsDAOglCode - - glcode supplied by the client.org.egov.infra.exception.ApplicationExceptionpublic List<org.egov.commons.CChartOfAccounts> getActiveAccountsForTypes(char[] type) throws org.egov.infra.validation.exception.ValidationException
getActiveAccountsForTypes in interface ChartOfAccountsDAOtype - - list of types,e.g income, Assets etc.org.egov.infra.validation.exception.ValidationExceptionpublic List<org.egov.commons.CChartOfAccounts> getAccountCodeByListOfPurposeId(Integer[] purposeId) throws org.egov.infra.validation.exception.ValidationException
getAccountCodeByListOfPurposeId in interface ChartOfAccountsDAOpurposeId - - list of purpose ids.org.egov.infra.validation.exception.ValidationExceptionpublic List<org.egov.commons.CChartOfAccounts> getListOfDetailCode(String glCode) throws org.egov.infra.validation.exception.ValidationException
getListOfDetailCode in interface ChartOfAccountsDAOglcode - - The input is the chartofaccounts code.org.egov.infra.validation.exception.ValidationExceptionpublic List<org.egov.commons.CChartOfAccounts> getBankChartofAccountCodeList()
getBankChartofAccountCodeList in interface ChartOfAccountsDAOpublic List<org.egov.commons.CChartOfAccounts> findByType(Character type)
findByType in interface ChartOfAccountsDAOpublic List<org.egov.commons.CChartOfAccounts> findByMajorCodeAndClassification(String majorCode, Long classification)
findByMajorCodeAndClassification in interface ChartOfAccountsDAOpublic List<org.egov.commons.CChartOfAccounts> findByGlcodeLikeIgnoreCaseAndClassificationAndMajorCode(String string, Long classification, String majorCode)
findByGlcodeLikeIgnoreCaseAndClassificationAndMajorCode in interface ChartOfAccountsDAOpublic List<org.egov.commons.CChartOfAccounts> findByGlcodeLikeIgnoreCaseAndClassification(String string, Long classification)
findByGlcodeLikeIgnoreCaseAndClassification in interface ChartOfAccountsDAOpublic List<org.egov.commons.CChartOfAccounts> getBySubLedgerCode(String subLedgerCode)
getBySubLedgerCode in interface ChartOfAccountsDAOpublic List<org.egov.commons.CChartOfAccounts> getForRecovery()
getForRecovery in interface ChartOfAccountsDAOpublic List<org.egov.commons.CChartOfAccounts> getAccountCodeByPurposeName(String purposeName)
getAccountCodeByPurposeName in interface ChartOfAccountsDAOpurposeId - public List<org.egov.commons.CChartOfAccounts> getAccountCodeByListOfPurposeName(String[] purposeNames) throws org.egov.infra.validation.exception.ValidationException
getAccountCodeByListOfPurposeName in interface ChartOfAccountsDAOpurposeNames - - list of purpose names.org.egov.infra.validation.exception.ValidationExceptionpublic List<org.egov.commons.CChartOfAccounts> getAccountCodesListForBankEntries()
getAccountCodesListForBankEntries in interface ChartOfAccountsDAOCopyright © 2015–2016 eGovernments Foundation. All rights reserved.