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, processException, recycle, setStatementParampublic ChargeType get(java.lang.String title) throws ru.bitel.bgbilling.common.BGException
DirectoryUnsupportedOperationExceptionget in interface Directory<ChargeType>ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<ChargeType> list() throws ru.bitel.bgbilling.common.BGException
Directorylist in interface Directory<ChargeType>ru.bitel.bgbilling.common.BGExceptionpublic 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.BGExceptionpublic void move(int chargeTypeId,
java.util.List<java.lang.Integer> idList)
throws ru.bitel.bgbilling.common.BGException
idList - - список ид которые будут перемещены.chargeTypeId - - ид типа в который станет предком.ru.bitel.bgbilling.common.BGExceptionpublic PaymentTypeItem getTree(int editable, boolean isPayback, boolean showEmptyRoot) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionpublic int delete(int id)
throws ru.bitel.bgbilling.common.BGException
Directorydelete in interface Directory<ChargeType>delete in class ru.bitel.common.dao.AbstractIdDao<ChargeType>ru.bitel.bgbilling.common.BGExceptionpublic void update(ChargeType chargeType) throws ru.bitel.bgbilling.common.BGException
Directoryupdate in interface Directory<ChargeType>update in class ru.bitel.common.dao.AbstractDao<ChargeType>ru.bitel.bgbilling.common.BGExceptionprotected 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.BGExceptionjava.sql.SQLExceptionprotected 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.SQLExceptionru.bitel.bgbilling.common.BGExceptionprotected void addChild(int up,
PaymentTypeItem rootItem,
java.util.List<ChargeType> list,
boolean showEmptyRoot)