com.atlassian.bamboo.utils.db
Class PostgreSqlDbmsBean

java.lang.Object
  extended by com.atlassian.bamboo.utils.db.AbstractDbmsBean
      extended by com.atlassian.bamboo.utils.db.PostgreSqlDbmsBean
All Implemented Interfaces:
DbmsBean

public class PostgreSqlDbmsBean
extends AbstractDbmsBean


Constructor Summary
PostgreSqlDbmsBean()
           
 
Method Summary
 java.lang.String getQuery(SqlQueryProvider sqlQueryProvider)
          Provide a different SQL query depending on SQL engine used.
 boolean isPostgreSql()
           
 java.sql.PreparedStatement prepareStatement(java.sql.Connection connection, PreparedStatementProvider preparedStatementProvider)
          Provide a different PreparedStatement depending on SQL engine used.
 
Methods inherited from class com.atlassian.bamboo.utils.db.AbstractDbmsBean
dropColumn, dropColumn, dropConstraints, dropIndex, isColumnPresent, isColumnPresent, isHsqldb, isMsSqlServer, isMySql, isOracle, isTablePresent, isTablePresent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgreSqlDbmsBean

public PostgreSqlDbmsBean()
Method Detail

getQuery

@NotNull
public java.lang.String getQuery(@NotNull
                                         SqlQueryProvider sqlQueryProvider)
Description copied from interface: DbmsBean
Provide a different SQL query depending on SQL engine used.

Returns:

prepareStatement

@NotNull
public java.sql.PreparedStatement prepareStatement(@NotNull
                                                           java.sql.Connection connection,
                                                           @NotNull
                                                           PreparedStatementProvider preparedStatementProvider)
                                            throws java.sql.SQLException
Description copied from interface: DbmsBean
Provide a different PreparedStatement depending on SQL engine used.

Returns:
Throws:
java.sql.SQLException

isPostgreSql

public boolean isPostgreSql()
Specified by:
isPostgreSql in interface DbmsBean
Overrides:
isPostgreSql in class AbstractDbmsBean
Returns:
true if db configured in Hibernate is PostgreSQL


Copyright © 2012 Atlassian. All Rights Reserved.