public class MySQLDBSession extends DBSession
DBSession.ALTER_OPERATION, DBSession.ENGINEconnection, CSV_DELIMITER, logger| Constructor and Description |
|---|
MySQLDBSession(Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkExist(String tableName,
List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> keys) |
void |
createLikeTable(String newTableName,
String oldTable) |
void |
createTable(String tableName,
String[] columnsAndConstraintDefinition) |
void |
createTable(String tableName,
String[] columnsAndConstraintDefinition,
int numParitions,
String partitioningKey,
DBSession.ENGINE... engines) |
int |
deleteOperation(String tableName,
List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> filters) |
ResultSet |
executeFilteredQuery(List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> filters,
String table,
String orderColumn,
org.gcube_system.namespaces.application.aquamaps.types.OrderDirection orderMode) |
String |
exportTableToCSV(String tableName,
boolean hasHeaders,
char delimiter) |
PreparedStatement |
fillParameters(List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> fields,
int parameterOffset,
PreparedStatement ps) |
Long |
getCount(String tableName,
List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> filters) |
ResultSet |
getDistinct(org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field toSelect,
List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> filters,
String table,
String orderColumn,
org.gcube_system.namespaces.application.aquamaps.types.OrderDirection orderMode) |
PreparedStatement |
getFilterCellByAreaQuery(org.gcube.application.aquamaps.aquamapsservice.stubs.fw.fields.HSPECFields filterByCodeType,
String sourceTableName,
String destinationTableName) |
PreparedStatement |
getPreparedStatementForInsertOnDuplicate(List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> fields,
String table,
Integer[] keyIndexes) |
List<List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field>> |
insertOperation(String tableName,
List<List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field>> rows) |
int |
updateOperation(String tableName,
List<List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field>> keys,
List<List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field>> rows) |
alterColumn, checkTableExist, close, commit, createIndex, deleteColumn, disableAutoCommit, disableKeys, dropTable, dropView, enableKeys, executeQuery, executeUpdate, formDeletetQueryStringFromFields, formSelectCountString, formSelectDistinctQueryStringFromFields, formSelectQueryStringFromFields, formUpdateQuery, getConnection, getGeneratedKeys, getInternalDBSession, getPostGisDBSession, getPreparedStatementForCount, getPreparedStatementForDelete, getPreparedStatementForDISTINCT, getPreparedStatementForInsert, getPreparedStatementForInsertFromSelect, getPreparedStatementForQuery, getPreparedStatementForUpdate, getTableCount, preparedStatementpublic MySQLDBSession(Connection conn)
public ResultSet executeFilteredQuery(List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> filters, String table, String orderColumn, org.gcube_system.namespaces.application.aquamaps.types.OrderDirection orderMode) throws Exception
executeFilteredQuery in class DBSessionExceptionpublic PreparedStatement fillParameters(List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> fields, int parameterOffset, PreparedStatement ps) throws SQLException
fillParameters in class DBSessionSQLExceptionpublic boolean checkExist(String tableName, List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> keys) throws Exception
checkExist in class DBSessionExceptionpublic int deleteOperation(String tableName, List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> filters) throws Exception
deleteOperation in class DBSessionExceptionpublic Long getCount(String tableName, List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> filters) throws Exception
public PreparedStatement getFilterCellByAreaQuery(org.gcube.application.aquamaps.aquamapsservice.stubs.fw.fields.HSPECFields filterByCodeType, String sourceTableName, String destinationTableName) throws Exception
getFilterCellByAreaQuery in class DBSessionExceptionpublic List<List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field>> insertOperation(String tableName, List<List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field>> rows) throws Exception
insertOperation in class DBSessionExceptionpublic int updateOperation(String tableName, List<List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field>> keys, List<List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field>> rows) throws Exception
updateOperation in class DBSessionExceptionpublic void createTable(String tableName, String[] columnsAndConstraintDefinition, int numParitions, String partitioningKey, DBSession.ENGINE... engines) throws Exception
Exceptionpublic void createLikeTable(String newTableName, String oldTable) throws Exception
createLikeTable in class DBSessionExceptionpublic void createTable(String tableName, String[] columnsAndConstraintDefinition) throws Exception
createTable in class DBSessionExceptionpublic PreparedStatement getPreparedStatementForInsertOnDuplicate(List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> fields, String table, Integer[] keyIndexes) throws Exception
getPreparedStatementForInsertOnDuplicate in class DBSessionExceptionpublic ResultSet getDistinct(org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field toSelect, List<org.gcube.application.aquamaps.aquamapsservice.stubs.fw.model.Field> filters, String table, String orderColumn, org.gcube_system.namespaces.application.aquamaps.types.OrderDirection orderMode) throws Exception
getDistinct in class DBSessionExceptionCopyright © 2017. All Rights Reserved.