com.atlassian.bamboo.utils.db
Class OracleDbmsBean
java.lang.Object
com.atlassian.bamboo.utils.db.AbstractDbmsBean
com.atlassian.bamboo.utils.db.OracleDbmsBean
- All Implemented Interfaces:
- DbmsBean
public class OracleDbmsBean
- extends AbstractDbmsBean
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 |
OracleDbmsBean
public OracleDbmsBean()
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.