com.atlassian.bamboo.utils.db
Class MySqlDbmsBean

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

public class MySqlDbmsBean
extends AbstractDbmsBean


Constructor Summary
MySqlDbmsBean()
           
 
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 isMySql()
           
 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, isHsqldb, isMsSqlServer, isOracle, isPostgreSql, isTablePresent, isTablePresent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySqlDbmsBean

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

isMySql

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

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.