public class DocumentStatusDao extends ru.bitel.common.dao.AbstractDao<DocumentStatus> implements ru.bitel.bgbilling.kernel.directory.api.common.Directory<DocumentStatus>
cacheFilter, cacheJoin, cacheOrderBy, cachePaged, cachePS, cacheWhat, con, getByIdPS, logger, mid, moduleId, orderByPattern, SQL_CALC_FOUND_ROWS, SQL_DELETE, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_LIMIT, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_WHERE, tableName| Constructor and Description |
|---|
DocumentStatusDao(java.sql.Connection con) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatusLog(DocumentStatusLogItem item)
Добавление записи в таблицу с логами статусов по документу
|
int |
delete(int id)
Удаление элемента по id
|
DocumentStatus |
get(int id)
Получение элемента по id
|
DocumentStatus |
get(java.lang.String title)
Получение элемента по title(name)
Может быть не имплементировано - в этом случае бросается
UnsupportedOperationException |
protected DocumentStatus |
getFromRS(java.sql.ResultSet rs) |
java.util.List<DocumentStatusLogItem> |
getStatusHistory(int documentId)
Получение истории изменения статусов документа по коду документа.
|
java.util.List<DocumentStatus> |
list()
Получение всего списка элементов из справочника
|
protected void |
updateImpl(DocumentStatus b)
Вставка/Обновление статуса документа в БД.
|
close, delete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getSQLOrder, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, processException, recycle, setStatementParam, updateprotected void updateImpl(DocumentStatus b) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl in class ru.bitel.common.dao.AbstractDao<DocumentStatus>b - экземпляр моделиru.bitel.bgbilling.common.BGException - ошибкиjava.sql.SQLException - ошибкиpublic DocumentStatus get(int id) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.kernel.directory.api.common.Directoryget in interface ru.bitel.bgbilling.kernel.directory.api.common.Directory<DocumentStatus>ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<DocumentStatus> list() throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.kernel.directory.api.common.Directorylist in interface ru.bitel.bgbilling.kernel.directory.api.common.Directory<DocumentStatus>ru.bitel.bgbilling.common.BGExceptionpublic java.util.List<DocumentStatusLogItem> getStatusHistory(int documentId) throws ru.bitel.bgbilling.common.BGException
documentId - код документаru.bitel.bgbilling.common.BGExceptionpublic int delete(int id)
throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.kernel.directory.api.common.Directorydelete in interface ru.bitel.bgbilling.kernel.directory.api.common.Directory<DocumentStatus>ru.bitel.bgbilling.common.BGExceptionpublic void addStatusLog(DocumentStatusLogItem item) throws ru.bitel.bgbilling.common.BGException
item - запись логаru.bitel.bgbilling.common.BGExceptionpublic DocumentStatus get(java.lang.String title) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.kernel.directory.api.common.DirectoryUnsupportedOperationExceptionget in interface ru.bitel.bgbilling.kernel.directory.api.common.Directory<DocumentStatus>ru.bitel.bgbilling.common.BGExceptionprotected DocumentStatus getFromRS(java.sql.ResultSet rs) throws java.sql.SQLException, ru.bitel.bgbilling.common.BGException
getFromRS in class ru.bitel.common.dao.AbstractDao<DocumentStatus>java.sql.SQLExceptionru.bitel.bgbilling.common.BGException