com.atlassian.bamboo.utils.db
Class OracleDbmsBean

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

public class OracleDbmsBean
extends AbstractDbmsBean


Constructor Summary
OracleDbmsBean()
           
 
Method Summary
 String getConcat(String... values)
          Provide a different SQL concatenation operator depending on SQL engine used.
 String getQuery(SqlQueryProvider sqlQueryProvider)
          Provide a different SQL query depending on SQL engine used.
 boolean isOracle()
           
 PreparedStatement prepareStatement(Connection connection, PreparedStatementProvider preparedStatementProvider)
          Provide a different PreparedStatement depending on SQL engine used.
 void resizeVarcharColumn(Statement statement, String tableName, String columnName, int newSize, boolean isNullable, String defaultValue)
           
 
Methods inherited from class com.atlassian.bamboo.utils.db.AbstractDbmsBean
dropColumn, dropColumn, dropConstraints, dropIndex, isColumnPresent, isColumnPresent, isHsqldb, isMsSqlServer, isMySql, isPostgreSql, isTablePresent, isTablePresent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleDbmsBean

public OracleDbmsBean()
Method Detail

getQuery

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

Returns:

getConcat

@NotNull
public String getConcat(String... values)
Description copied from interface: DbmsBean
Provide a different SQL concatenation operator depending on SQL engine used.

Parameters:
values - the values to concatenate.
Returns:
the concatenation SQL to append to a query.

prepareStatement

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

Returns:
Throws:
SQLException

resizeVarcharColumn

public void resizeVarcharColumn(@NotNull
                                Statement statement,
                                String tableName,
                                String columnName,
                                int newSize,
                                boolean isNullable,
                                @Nullable
                                String defaultValue)
                         throws SQLException
Throws:
SQLException

isOracle

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


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.