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