com.atlassian.bamboo.utils.db
Class HsqlDbmsBean

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

public class HsqlDbmsBean
extends AbstractDbmsBean


Constructor Summary
HsqlDbmsBean()
           
 
Method Summary
protected  void dropConstraints(java.sql.Statement statement, java.lang.String tableName, java.lang.String columnName, java.util.List<java.lang.String> defaultConstraintNames)
           
 java.lang.String getQuery(SqlQueryProvider sqlQueryProvider)
          Provide a different SQL query depending on SQL engine used.
 boolean isHsqldb()
           
 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, dropIndex, isColumnPresent, isColumnPresent, isMsSqlServer, isMySql, isOracle, isPostgreSql, isTablePresent, isTablePresent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HsqlDbmsBean

public HsqlDbmsBean()
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

isHsqldb

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

dropConstraints

protected void dropConstraints(java.sql.Statement statement,
                               java.lang.String tableName,
                               java.lang.String columnName,
                               java.util.List<java.lang.String> defaultConstraintNames)
Overrides:
dropConstraints in class AbstractDbmsBean


Copyright © 2012 Atlassian. All Rights Reserved.