public abstract class VoiceAccountTypeAbstractDao<T extends VoiceAccountTypeAbstract> extends ru.bitel.common.dao.AbstractIdDao<T> implements Directory<T>
Modifier and Type | Field and Description |
---|---|
protected boolean |
isOperator |
Constructor and Description |
---|
VoiceAccountTypeAbstractDao(java.sql.Connection con,
int mid) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
createAccountTypeInstance() |
protected abstract java.lang.String |
fields() |
T |
get(java.lang.String title)
Получение элемента по title(name)
Может быть не имплементировано - в этом случае бросается
UnsupportedOperationException |
protected T |
getFromRS(java.sql.ResultSet rs) |
java.util.List<T> |
list()
Получение списка типов аккаунтов.
|
protected abstract int |
setParams(T type,
java.sql.PreparedStatement ps,
int idx) |
protected void |
updateImpl(T b) |
delete, get, getAndDelete, getAndUpdate
close, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, processException, recycle, setStatementParam, update
public VoiceAccountTypeAbstractDao(java.sql.Connection con, int mid)
protected T getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS
in class ru.bitel.common.dao.AbstractDao<T extends VoiceAccountTypeAbstract>
java.sql.SQLException
ru.bitel.bgbilling.common.BGException
protected abstract T createAccountTypeInstance()
protected void updateImpl(T b) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<T extends VoiceAccountTypeAbstract>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
protected abstract int setParams(T type, java.sql.PreparedStatement ps, int idx) throws java.sql.SQLException
java.sql.SQLException
protected abstract java.lang.String fields()
public java.util.List<T> list() throws ru.bitel.bgbilling.common.BGException
list
in interface Directory<T extends VoiceAccountTypeAbstract>
ru.bitel.bgbilling.common.BGException
public T get(java.lang.String title) throws ru.bitel.bgbilling.common.BGException
Directory
UnsupportedOperationException
get
in interface Directory<T extends VoiceAccountTypeAbstract>
ru.bitel.bgbilling.common.BGException