public class DocumentDAO extends CommonDAO
con, dateFormat_DDMMYYYY, dateFormat_DDMMYYYY_HHMM, log, SQL_AND, SQL_DELETE, SQL_DESC, SQL_FROM, SQL_GROUP_BY, SQL_INNER_JOIN, SQL_INSERT, SQL_LEFT_JOIN, SQL_LIMIT, SQL_ORDER_BY, SQL_REPLACE, SQL_SELECT, SQL_SELECT_ALL_FROM, SQL_SELECT_COUNT_ROWS, SQL_SET, SQL_UPDATE, SQL_WHERE
Constructor and Description |
---|
DocumentDAO(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
void |
add(Document b) |
java.io.OutputStream |
createDocumentFile(Document doc,
java.lang.String title) |
void |
delete(Document doc) |
Document |
getDocumentById(int id) |
static Document |
getFromRS(java.sql.ResultSet rs,
java.lang.String prefix) |
void |
searchObjectDocuments(SearchResult<Document> result,
java.lang.String objectType,
int objectId) |
addLikeSql, convertDateToSqlDate, convertDateToTimestamp, deleteById, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getMySQLLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, updateColumn, updateIds, updateIds
public void add(Document b) throws java.sql.SQLException
java.sql.SQLException
public void delete(Document doc) throws BGException
BGException
public Document getDocumentById(int id) throws java.sql.SQLException
java.sql.SQLException
public void searchObjectDocuments(SearchResult<Document> result, java.lang.String objectType, int objectId) throws java.sql.SQLException
java.sql.SQLException
public java.io.OutputStream createDocumentFile(Document doc, java.lang.String title) throws java.lang.Exception
java.lang.Exception
public static Document getFromRS(java.sql.ResultSet rs, java.lang.String prefix) throws java.sql.SQLException
java.sql.SQLException