@Transactional(readOnly=true) public class BudgetGroupHibernateDAO extends Object implements BudgetGroupDAO
| Constructor and Description |
|---|
BudgetGroupHibernateDAO() |
| Modifier and Type | Method and Description |
|---|---|
BudgetGroup |
create(BudgetGroup entity) |
BudgetGroup |
createBudgetGroup(BudgetGroup cbg) |
void |
delete(BudgetGroup entity) |
List<BudgetGroup> |
findAll() |
BudgetGroup |
findById(Number id,
boolean lock) |
List<BudgetGroup> |
getBudgetGroupList() |
List<BudgetGroup> |
getBudgetGroupsByFundFunctionDeptAndAccountType(Integer fund,
Long dept,
Long function,
String accountType)
Returns a list of BudgetGroup having entry in budget detail with the given fund,function,department and account type.
|
List<BudgetGroup> |
getBudgetHeadByCOAandFunction(String functionCode,
List<org.egov.commons.CChartOfAccounts> chartOfAccountsList)
Returns a list of BudgetGroup having entry in budget detail with the given function code or given List of ChartOfAccounts
or both.
|
List<BudgetGroup> |
getBudgetHeadByDateAndFunction(String functionCode,
Date date) |
List<BudgetGroup> |
getBudgetHeadByFunction(String functionCode)
Returns a list of BudgetGroup having entry in budget detail with the given function code.
|
BudgetGroup |
getBudgetHeadById(Long id) |
org.hibernate.Session |
getCurrentSession() |
BudgetGroup |
update(BudgetGroup entity) |
@Transactional public BudgetGroup update(BudgetGroup entity)
update in interface BudgetGroupDAO@Transactional public BudgetGroup create(BudgetGroup entity)
create in interface BudgetGroupDAO@Transactional public void delete(BudgetGroup entity)
delete in interface BudgetGroupDAOpublic BudgetGroup findById(Number id, boolean lock)
findById in interface BudgetGroupDAOpublic List<BudgetGroup> findAll()
findAll in interface BudgetGroupDAOpublic org.hibernate.Session getCurrentSession()
@Transactional public BudgetGroup createBudgetGroup(BudgetGroup cbg) throws org.egov.infra.validation.exception.ValidationException
org.egov.infra.validation.exception.ValidationExceptionpublic List<BudgetGroup> getBudgetHeadByDateAndFunction(String functionCode, Date date) throws org.egov.infra.validation.exception.ValidationException
getBudgetHeadByDateAndFunction in interface BudgetGroupDAOorg.egov.infra.validation.exception.ValidationExceptionpublic BudgetGroup getBudgetHeadById(Long id)
getBudgetHeadById in interface BudgetGroupDAOpublic List<BudgetGroup> getBudgetGroupList() throws org.egov.infra.validation.exception.ValidationException
getBudgetGroupList in interface BudgetGroupDAOorg.egov.infra.validation.exception.ValidationExceptionpublic List<BudgetGroup> getBudgetHeadByFunction(String functionCode) throws org.egov.infra.validation.exception.ValidationException
getBudgetHeadByFunction in interface BudgetGroupDAOfunction - codeorg.egov.infra.validation.exception.ValidationExceptionpublic List<BudgetGroup> getBudgetHeadByCOAandFunction(String functionCode, List<org.egov.commons.CChartOfAccounts> chartOfAccountsList) throws org.egov.infra.validation.exception.ValidationException
getBudgetHeadByCOAandFunction in interface BudgetGroupDAOfunction - codechartOfAccountsList - org.egov.infra.validation.exception.ValidationExceptionpublic List<BudgetGroup> getBudgetGroupsByFundFunctionDeptAndAccountType(Integer fund, Long dept, Long function, String accountType) throws org.egov.infra.validation.exception.ValidationException
getBudgetGroupsByFundFunctionDeptAndAccountType in interface BudgetGroupDAOfund,function,department - and account typeorg.egov.infra.validation.exception.ValidationExceptionCopyright © 2015–2017 eGovernments Foundation. All rights reserved.