public class FileDataDAO extends CommonDAO
con, dateFormat_DDMMYYYY, dateFormat_DDMMYYYY_HHMM, 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 |
---|
FileDataDAO(java.sql.Connection con) |
Modifier and Type | Method and Description |
---|---|
java.io.FileOutputStream |
add(FileData file) |
void |
delete(FileData fileData) |
java.io.File |
getFile(FileData fileData) |
java.io.File |
getFile(java.lang.String url) |
static FileData |
getFromRs(java.sql.ResultSet rs,
java.lang.String prefix) |
addLikeSql, convertDateToSqlDate, convertDateToTimestamp, deleteById, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getMySQLLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, updateColumn, updateIds, updateIds
public java.io.FileOutputStream add(FileData file) throws BGException, java.io.FileNotFoundException
BGException
java.io.FileNotFoundException
public void delete(FileData fileData) throws BGException
BGException
public java.io.File getFile(FileData fileData)
public java.io.File getFile(java.lang.String url)
public static FileData getFromRs(java.sql.ResultSet rs, java.lang.String prefix) throws java.sql.SQLException
java.sql.SQLException