public class DocumentTypeDao extends ru.bitel.common.dao.AbstractDao<DocumentType> implements Directory<DocumentType>
Constructor and Description |
---|
DocumentTypeDao(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
int |
delete(int id)
Удаление элемента по id
|
DocumentType |
get(int id)
Получение элемента по id
|
DocumentType |
get(java.lang.String title)
Получение элемента по title(name)
Может быть не имплементировано - в этом случае бросается
UnsupportedOperationException |
protected DocumentType |
getFromRS(java.sql.ResultSet rs) |
java.util.List<DocumentType> |
list()
Получение всего списка элементов из справочника
|
protected void |
updateImpl(DocumentType b)
Добавление/Обновление типа документа
|
close, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, processException, recycle, setStatementParam, update
protected void updateImpl(DocumentType b) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl
in class ru.bitel.common.dao.AbstractDao<DocumentType>
ru.bitel.bgbilling.common.BGException
java.sql.SQLException
public DocumentType get(int id) throws ru.bitel.bgbilling.common.BGException
Directory
get
in interface Directory<DocumentType>
ru.bitel.bgbilling.common.BGException
public DocumentType get(java.lang.String title) throws ru.bitel.bgbilling.common.BGException
Directory
UnsupportedOperationException
get
in interface Directory<DocumentType>
ru.bitel.bgbilling.common.BGException
public java.util.List<DocumentType> list() throws ru.bitel.bgbilling.common.BGException
Directory
list
in interface Directory<DocumentType>
ru.bitel.bgbilling.common.BGException
public int delete(int id) throws ru.bitel.bgbilling.common.BGException
Directory
delete
in interface Directory<DocumentType>
ru.bitel.bgbilling.common.BGException
protected DocumentType getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS
in class ru.bitel.common.dao.AbstractDao<DocumentType>
java.sql.SQLException
ru.bitel.bgbilling.common.BGException