org.talend.esb.sam.server.persistence.dialects
Interface DatabaseDialect

All Known Implementing Classes:
AbstractDatabaseDialect, DB2Dialect, DerbyDialect, H2Dialect, MySQLDialect, OracleDialect, PostgreSQLDialect, SqlServerDialect

public interface DatabaseDialect

Interface to encapsulate difference between databases.

Author:
zubairov

Field Summary
static String SUBSTITUTION_STRING
           
 
Method Summary
 String getCountQuery()
          Should return a count query.
 String getDataQuery(QueryFilter filter)
          Should return a query that list data.
 org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer getIncrementer()
          Returns DataFieldMaxValueIncrementer for specific database.
 String getName()
          get the name of the dialect
 

Field Detail

SUBSTITUTION_STRING

static final String SUBSTITUTION_STRING
See Also:
Constant Field Values
Method Detail

getName

String getName()
get the name of the dialect

Returns:

getIncrementer

org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer getIncrementer()
Returns DataFieldMaxValueIncrementer for specific database.

Returns:
the incrementer

getDataQuery

String getDataQuery(QueryFilter filter)
Should return a query that list data.

Parameters:
filter - the filter
Returns:
the data query

getCountQuery

String getCountQuery()
Should return a count query.

Returns:
the count query string with SUBSTITUTION_STRING placeholder for where clause.


Copyright © 2011–2013 Talend Inc.. All rights reserved.