public class PostgresDbEngineDialect extends Object implements DbEngineDialect
Modifier and Type | Class and Description |
---|---|
static class |
PostgresDbEngineDialect.PostgresJdbcTemplate
A
JdbcTemplate extension for PostgreSQL DB, for stripping the 'v_' prefix from parameters returned by
function calls. |
Constructor and Description |
---|
PostgresDbEngineDialect() |
Modifier and Type | Method and Description |
---|---|
org.springframework.jdbc.core.simple.SimpleJdbcCallOperations |
createJdbcCallForQuery(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Create the object used for performing function calls for querying data and returning a result/list of results.
|
org.springframework.jdbc.core.JdbcTemplate |
createJdbcTemplate(DataSource dataSource)
Create the
JdbcTemplate to use in the DbFacade class. |
String |
getFunctionReturnKey()
TODO: Remove this method once we don't use SqlServer anymore, since it's a needed only for SqlServer
Compatibility.
|
String |
getParamNamePrefix()
Gets the engine prefix to be used for sp parameters.
|
String |
getPreSearchQueryCommand()
TODO: Remove this method once we don't use SqlServer anymore, since it's a needed only for SqlServer
Compatibility.
|
public org.springframework.jdbc.core.JdbcTemplate createJdbcTemplate(DataSource dataSource)
DbEngineDialect
JdbcTemplate
to use in the DbFacade
class.
TODO: Remove this method once we don't use SqlServer anymore, since it's a needed only for SqlServer
Compatibility.createJdbcTemplate
in interface DbEngineDialect
dataSource
- The Data Source to use for the template.JdbcTemplate
that can be used to DB operations.public org.springframework.jdbc.core.simple.SimpleJdbcCallOperations createJdbcCallForQuery(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
DbEngineDialect
createJdbcCallForQuery
in interface DbEngineDialect
jdbcTemplate
- The JDBC template is needed for actually performing the calls.SimpleJdbcCallOperations
instance that can be used to call a query function in the DB.public String getParamNamePrefix()
DbEngineDialect
getParamNamePrefix
in interface DbEngineDialect
public String getPreSearchQueryCommand()
DbEngineDialect
getPreSearchQueryCommand
in interface DbEngineDialect
public String getFunctionReturnKey()
DbEngineDialect
getFunctionReturnKey
in interface DbEngineDialect
SimpleJdbcCallOperations#execute()
.Copyright © 2012. All Rights Reserved.