org.gcube.portlets.user.tdw.datasource.jdbc.dialect
Class PostgresSQL_8_x_x_SQLDialect
java.lang.Object
org.gcube.portlets.user.tdw.datasource.jdbc.dialect.AbstractSQLDialect
org.gcube.portlets.user.tdw.datasource.jdbc.dialect.PostgresSQL_8_x_x_SQLDialect
- All Implemented Interfaces:
- SQLDialect
public class PostgresSQL_8_x_x_SQLDialect
- extends AbstractSQLDialect
- Author:
- "Giancarlo Panichi"
g.panichi@isti.cnr.it
|
Method Summary |
String |
getDataQuery(String tableName,
String sortingColumn,
org.gcube.portlets.user.tdw.server.datasource.Direction sortingDirection)
Returns a query for table data selection. |
String |
getName()
|
String |
getTableSizeQuery(String tableName)
Returns a query for table size retrieving. |
boolean |
supportDataBase(String databaseProductName,
int databaseMajorVersion,
int databaseMinorVersion)
Checks if the specified database system is compatible with this dialect. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
useSizeEstimation
protected boolean useSizeEstimation
PostgresSQL_8_x_x_SQLDialect
public PostgresSQL_8_x_x_SQLDialect()
PostgresSQL_8_x_x_SQLDialect
public PostgresSQL_8_x_x_SQLDialect(boolean useSizeEstimation)
- Parameters:
useSizeEstimation -
getName
public String getName()
supportDataBase
public boolean supportDataBase(String databaseProductName,
int databaseMajorVersion,
int databaseMinorVersion)
- Checks if the specified database system is compatible with this dialect.
- Returns:
getTableSizeQuery
public String getTableSizeQuery(String tableName)
- Returns a query for table size retrieving.
- Returns:
getDataQuery
public String getDataQuery(String tableName,
String sortingColumn,
org.gcube.portlets.user.tdw.server.datasource.Direction sortingDirection)
- Returns a query for table data selection.
- Specified by:
getDataQuery in class AbstractSQLDialect
sortingColumn - the sorting column, can be null.sortingDirection - the sorting direction, can be null.
- Returns:
Copyright © 2014. All Rights Reserved.