We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.data.util.sqlcontainer.query.generator.
Class OracleGenerator
java.lang.Object
com.vaadin.data.util.sqlcontainer.query.generator.DefaultSQLGenerator
com.vaadin.data.util.sqlcontainer.query.generator.OracleGenerator
All Implemented Interfaces:
- extends DefaultSQLGenerator
public class OracleGenerator
See Also:
Constructor Summary | |
---|---|
OracleGenerator()
|
|
OracleGenerator(Class<? extends StatementHelper> statementHelperClazz)
|
|
OracleGenerator(String quoteStart,
String quoteEnd)
Construct an OracleSQLGenerator with the specified identifiers for start and end of quoted strings. |
|
OracleGenerator(String quoteStart,
String quoteEnd,
Class<? extends StatementHelper> statementHelperClazz)
|
Method Summary | |
---|---|
StatementHelper |
generateSelectQuery(String tableName,
List<Container.Filter> filters,
List<OrderBy> orderBys,
int offset,
int pagelength,
String toSelect)
Generates a SELECT query with the provided parameters. |
Methods inherited from class com.vaadin.data.util.sqlcontainer.query.generator.DefaultSQLGenerator |
---|
generateColumnToValueMap, generateDeleteQuery, generateInsertQuery, generateLimits, generateOrderBy, generateRowIdentifiers, generateUpdateQuery, getStatementHelper |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
OracleGenerator
public OracleGenerator()
OracleGenerator
public OracleGenerator(Class<? extends StatementHelper> statementHelperClazz)
OracleGenerator
public OracleGenerator(String quoteStart,
String quoteEnd)
- Parameters:
quoteStart
- the identifier (character) denoting the start of a quoted stringquoteEnd
- the identifier (character) denoting the end of a quoted string
Construct an OracleSQLGenerator with the specified identifiers for start and end of quoted strings. The identifiers may be different depending on the database engine and it's settings.
OracleGenerator
public OracleGenerator(String quoteStart,
String quoteEnd,
Class<? extends StatementHelper> statementHelperClazz)
Method Detail |
---|
generateSelectQuery
public StatementHelper generateSelectQuery(String tableName,
List<Container.Filter> filters,
List<OrderBy> orderBys,
int offset,
int pagelength,
String toSelect)
- Specified by:
generateSelectQuery
in interfaceSQLGenerator
- Overrides:
generateSelectQuery
in classDefaultSQLGenerator
- Parameters:
tableName
- Name of the table queriedfilters
- The filters, converted into a WHERE clauseorderBys
- The the ordering conditions, converted into an ORDER BY clauseoffset
- The offset of the first row to be includedpagelength
- The number of rows to be returned when the query executestoSelect
- String containing what to select, e.g. "*", "COUNT(*)"- Returns:
- StatementHelper instance containing the query string for a PreparedStatement and the values required for the parameters
Description copied from interface: SQLGenerator
Generates a SELECT query with the provided parameters. Uses default filtering mode (INCLUSIVE).