public class ChargeTypeDao extends ru.bitel.common.dao.AbstractIdDao<ChargeType> implements Directory<ChargeType>
Constructor and Description |
---|
ChargeTypeDao(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
protected void |
addChild(int up,
PaymentTypeItem rootItem,
java.util.List<ChargeType> list,
boolean showEmptyRoot) |
int |
delete(int id)
Удаление элемента по id
|
ChargeType |
get(java.lang.String title)
Получение элемента по title(name)
Может быть не имплементировано - в этом случае бросается
UnsupportedOperationException |
protected ChargeType |
getFromRS(java.sql.ResultSet rs) |
PaymentTypeItem |
getTree(int editable,
boolean isPayback,
boolean showEmptyRoot)
Получение дерева типов.
|
java.util.List<ChargeType> |
list()
Получение всего списка элементов из справочника
|
java.util.List<ChargeType> |
list(java.lang.Integer editable,
java.lang.Integer type,
java.lang.Boolean isPayback)
Вернет список типов расхода.
|
void |
move(int chargeTypeId,
java.util.List<java.lang.Integer> idList)
Перемещение
|
void |
update(ChargeType chargeType)
Изменение/добавление элемента справочника
|
protected void |
updateImpl(ChargeType b) |
close, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, processException, recycle, setStatementParam
public ChargeType get(java.lang.String title) throws ru.bitel.bgbilling.common.BGException
Directory
UnsupportedOperationException
get
in interface Directory<ChargeType>
ru.bitel.bgbilling.common.BGException
public java.util.List<ChargeType> list() throws ru.bitel.bgbilling.common.BGException
Directory
list
in interface Directory<ChargeType>
ru.bitel.bgbilling.common.BGException
public java.util.List<ChargeType> list(java.lang.Integer editable, java.lang.Integer type, java.lang.Boolean isPayback) throws ru.bitel.bgbilling.common.BGException
editable
- - 0 - редактируемые, 1 - не редактируемые, null или меньше 0 - все.type
- - 0 - элемент группы, 1 - группа, null или меньше 0 -все.isPayback
- - true - возврат, false - приход, null - все.ru.bitel.bgbilling.common.BGException
public void move(int chargeTypeId, java.util.List<java.lang.Integer> idList) throws ru.bitel.bgbilling.common.BGException
idList
- - список ид которые будут перемещены.chargeTypeId
- - ид типа в который станет предком.ru.bitel.bgbilling.common.BGException
public PaymentTypeItem getTree(int editable, boolean isPayback, boolean showEmptyRoot) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException
public int delete(int id) throws ru.bitel.bgbilling.common.BGException
Directory
delete
in interface Directory<ChargeType>
delete
in class ru.bitel.common.dao.AbstractIdDao<ChargeType>
ru.bitel.bgbilling.common.BGException
public void update(ChargeType chargeType) throws ru.bitel.bgbilling.common.BGException
Directory
update
in interface Directory<ChargeType>
update
in class ru.bitel.common.dao.AbstractDao<ChargeType>
ru.bitel.bgbilling.common.BGException
protected void updateImpl(ChargeType b) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<ChargeType>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
protected ChargeType getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS
in class ru.bitel.common.dao.AbstractDao<ChargeType>
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
protected void addChild(int up, PaymentTypeItem rootItem, java.util.List<ChargeType> list, boolean showEmptyRoot)