|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DbmsBean
Method Summary | |
---|---|
boolean |
dropColumn(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String columnName)
Checks whether given table contains the specified column and drops it |
boolean |
dropColumn(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String columnName,
java.util.List<java.lang.String> defaultConstraintNames,
java.lang.String indexName)
Checks whether given table contains the specified column and drops it, as well as foreign key constraints and index on the column. |
java.lang.String |
getQuery(SqlQueryProvider sqlQueryProvider)
Provide a different SQL query depending on SQL engine used. |
boolean |
isColumnPresent(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String columnName)
Checks whether given table contains the specified column. |
boolean |
isColumnPresent(java.sql.Statement statement,
java.lang.String tableName,
java.lang.String columnName)
Checks whether given table contains the specified column. |
boolean |
isHsqldb()
|
boolean |
isMsSqlServer()
|
boolean |
isMySql()
|
boolean |
isOracle()
|
boolean |
isPostgreSql()
|
boolean |
isTablePresent(java.sql.Connection connection,
java.lang.String tableName)
Checks whether given table is present in the database |
boolean |
isTablePresent(java.sql.Statement statement,
java.lang.String tableName)
Checks whether given table is present in the database |
java.sql.PreparedStatement |
prepareStatement(java.sql.Connection connection,
PreparedStatementProvider preparedStatementProvider)
Provide a different PreparedStatement depending on SQL engine used. |
Method Detail |
---|
@NotNull java.lang.String getQuery(@NotNull SqlQueryProvider sqlQueryProvider)
sqlQueryProvider
-
@NotNull java.sql.PreparedStatement prepareStatement(@NotNull java.sql.Connection connection, @NotNull PreparedStatementProvider preparedStatementProvider) throws java.sql.SQLException
PreparedStatement
depending on SQL engine used.
connection
- preparedStatementProvider
-
java.sql.SQLException
boolean isColumnPresent(@NotNull java.sql.Connection connection, @NotNull java.lang.String tableName, @NotNull java.lang.String columnName) throws java.sql.SQLException
connection
- tableName
- columnName
-
java.sql.SQLException
boolean isColumnPresent(@NotNull java.sql.Statement statement, @NotNull java.lang.String tableName, @NotNull java.lang.String columnName) throws java.sql.SQLException
statement
- tableName
- columnName
-
java.sql.SQLException
boolean dropColumn(@NotNull java.sql.Connection connection, @NotNull java.lang.String tableName, @NotNull java.lang.String columnName) throws java.sql.SQLException
connection
- tableName
- columnName
-
java.sql.SQLException
boolean dropColumn(@NotNull java.sql.Connection connection, @NotNull java.lang.String tableName, @NotNull java.lang.String columnName, @NotNull java.util.List<java.lang.String> defaultConstraintNames, @Nullable java.lang.String indexName) throws java.sql.SQLException
connection
- tableName
- columnName
- defaultConstraintNames
- indexName
-
java.sql.SQLException
boolean isTablePresent(@NotNull java.sql.Statement statement, @NotNull java.lang.String tableName)
statement
- statement used to verify DB table existencetableName
- name of DB table
boolean isTablePresent(@NotNull java.sql.Connection connection, @NotNull java.lang.String tableName) throws java.sql.SQLException
connection
- connection used to verify DB table existencetableName
- name of DB table
java.sql.SQLException
- if a database error occurs or connection is closedboolean isMySql()
boolean isOracle()
boolean isHsqldb()
boolean isPostgreSql()
boolean isMsSqlServer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |