public class DocumentDao extends ru.bitel.common.dao.AbstractDao<Document>
cacheFilter, cacheJoin, cacheOrderBy, cachePaged, cachePS, cacheWhat, 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 |
|---|
DocumentDao(java.sql.Connection con) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteDocument(int id)
Удаление документа из БД по его коду.
|
Document |
getDocument(int id) |
java.util.List<Document> |
getDocumentList(int contractId,
java.lang.String title,
Period period)
Возвращает список документов договора с учетом фильтра.
|
int |
getDocumentOwnerId(int documentId)
Возвращает код договора по коду документа.
|
protected Document |
getFromRS(java.sql.ResultSet rs) |
protected void |
updateImpl(Document b)
Вставка/Обновление документа в БД.
|
protected void updateImpl(Document b) throws ru.bitel.bgbilling.common.BGException, java.sql.SQLException
updateImpl in class ru.bitel.common.dao.AbstractDao<Document>b - экземпляр моделиru.bitel.bgbilling.common.BGException - ошибкиjava.sql.SQLException - ошибкиpublic java.util.List<Document> getDocumentList(int contractId, java.lang.String title, Period period) throws ru.bitel.bgbilling.common.BGException
contractId - код договораtitle - название документа (либо часть названия)period - периодru.bitel.bgbilling.common.BGExceptionpublic void deleteDocument(int id)
throws ru.bitel.bgbilling.common.BGException
id - код документаru.bitel.bgbilling.common.BGExceptionjava.sql.SQLExceptionpublic int getDocumentOwnerId(int documentId)
throws ru.bitel.bgbilling.common.BGException
documentId - код документаru.bitel.bgbilling.common.BGExceptionpublic Document getDocument(int id) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGException