com.atlassian.bamboo.utils.db
Class AbstractPreparedStatementProvider

java.lang.Object
  extended by com.atlassian.bamboo.utils.db.AbstractPreparedStatementProvider
All Implemented Interfaces:
PreparedStatementProvider

public abstract class AbstractPreparedStatementProvider
extends java.lang.Object
implements PreparedStatementProvider


Constructor Summary
AbstractPreparedStatementProvider()
           
 
Method Summary
 java.sql.PreparedStatement prepareHsqlStatement(java.sql.Connection connection)
           
 java.sql.PreparedStatement prepareMsSqlStatement(java.sql.Connection connection)
           
 java.sql.PreparedStatement prepareMySqlStatement(java.sql.Connection connection)
           
 java.sql.PreparedStatement prepareOracleStatement(java.sql.Connection connection)
           
 java.sql.PreparedStatement preparePostgreSqlStatement(java.sql.Connection connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.utils.db.PreparedStatementProvider
prepareDefaultStatement
 

Constructor Detail

AbstractPreparedStatementProvider

public AbstractPreparedStatementProvider()
Method Detail

prepareHsqlStatement

@NotNull
public java.sql.PreparedStatement prepareHsqlStatement(@NotNull
                                                               java.sql.Connection connection)
                                                throws java.sql.SQLException
Specified by:
prepareHsqlStatement in interface PreparedStatementProvider
Returns:
specialized/optimised SQL query for HSQL engine
Throws:
java.sql.SQLException

prepareMsSqlStatement

@NotNull
public java.sql.PreparedStatement prepareMsSqlStatement(@NotNull
                                                                java.sql.Connection connection)
                                                 throws java.sql.SQLException
Specified by:
prepareMsSqlStatement in interface PreparedStatementProvider
Returns:
specialized/optimised SQL query for SQL Server engine
Throws:
java.sql.SQLException

prepareMySqlStatement

@NotNull
public java.sql.PreparedStatement prepareMySqlStatement(@NotNull
                                                                java.sql.Connection connection)
                                                 throws java.sql.SQLException
Specified by:
prepareMySqlStatement in interface PreparedStatementProvider
Returns:
specialized/optimised SQL query for MySQL engine
Throws:
java.sql.SQLException

prepareOracleStatement

@NotNull
public java.sql.PreparedStatement prepareOracleStatement(@NotNull
                                                                 java.sql.Connection connection)
                                                  throws java.sql.SQLException
Specified by:
prepareOracleStatement in interface PreparedStatementProvider
Returns:
specialized/optimised SQL query for Oracle engine
Throws:
java.sql.SQLException

preparePostgreSqlStatement

@NotNull
public java.sql.PreparedStatement preparePostgreSqlStatement(@NotNull
                                                                     java.sql.Connection connection)
                                                      throws java.sql.SQLException
Specified by:
preparePostgreSqlStatement in interface PreparedStatementProvider
Returns:
specialized/optimised SQL query for PostgreSQL engine
Throws:
java.sql.SQLException


Copyright © 2012 Atlassian. All Rights Reserved.