org.gcube.portlets.user.tdw.server.datasource.jdbc.dialect
Interface SQLDialect
- All Known Implementing Classes:
- AbstractSQLDialect, Derby_10_7_SQLDialect, GenericSQLDialect, MySQL_5_x_x_SQLDialect, PostgresSQL_8_x_x_SQLDialect
public interface SQLDialect
- Author:
- "Federico De Faveri defaveri@isti.cnr.it"
|
Method Summary |
PreparedStatement |
createDataPreparedStatement(Connection connection,
String tableName,
String sortingColumn,
Direction sortingDirection,
int start,
int limit)
|
String |
getName()
|
String |
getTableSizeQuery(String tableName)
Returns a query for table size retrieving. |
void |
setDataPreparedStatementParameters(PreparedStatement preparedStatement,
String tableName,
String sortingColumn,
Direction sortingDirection,
int start,
int limit)
|
boolean |
supportDataBase(String databaseProductName,
int databaseMajorVersion,
int databaseMinorVersion)
Checks if the specified database system is compatible with this dialect. |
getName
String getName()
supportDataBase
boolean supportDataBase(String databaseProductName,
int databaseMajorVersion,
int databaseMinorVersion)
- Checks if the specified database system is compatible with this dialect.
- Parameters:
databaseProductName - databaseMajorVersion - databaseMinorVersion -
- Returns:
getTableSizeQuery
String getTableSizeQuery(String tableName)
- Returns a query for table size retrieving.
- Parameters:
tableName -
- Returns:
createDataPreparedStatement
PreparedStatement createDataPreparedStatement(Connection connection,
String tableName,
String sortingColumn,
Direction sortingDirection,
int start,
int limit)
throws SQLException
- Throws:
SQLException
setDataPreparedStatementParameters
void setDataPreparedStatementParameters(PreparedStatement preparedStatement,
String tableName,
String sortingColumn,
Direction sortingDirection,
int start,
int limit)
throws SQLException
- Throws:
SQLException
Copyright © 2013. All Rights Reserved.