Skip to content

Commit

Permalink
[jOOQ#5280] Bad Javadoc on dropTable() statements
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaseder committed May 17, 2016
1 parent 7c69793 commit caaf0fc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions jOOQ/src/main/java/org/jooq/DSLContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -7515,15 +7515,15 @@ public interface DSLContext extends Scope , AutoCloseable {
DropViewFinalStep dropViewIfExists(Table<?> view);

/**
* Create a new DSL <code>ALTER TABLE</code> statement.
* Create a new DSL <code>DROP TABLE</code> statement.
*
* @see DSL#dropTable(String)
*/
@Support
DropTableStep dropTable(String table);

/**
* Create a new DSL <code>ALTER TABLE</code> statement.
* Create a new DSL <code>DROP TABLE</code> statement.
*
* @see DSL#dropTable(Name)
*/
Expand All @@ -7539,7 +7539,7 @@ public interface DSLContext extends Scope , AutoCloseable {
DropTableStep dropTable(Table<?> table);

/**
* Create a new DSL <code>ALTER TABLE IF EXISTS</code> statement.
* Create a new DSL <code>DROP TABLE IF EXISTS</code> statement.
* <p>
* If your database doesn't natively support <code>IF EXISTS</code>, this is
* emulated by catching (and ignoring) the relevant {@link SQLException}.
Expand All @@ -7550,7 +7550,7 @@ public interface DSLContext extends Scope , AutoCloseable {
DropTableStep dropTableIfExists(String table);

/**
* Create a new DSL <code>ALTER TABLE IF EXISTS</code> statement.
* Create a new DSL <code>DROP TABLE IF EXISTS</code> statement.
* <p>
* If your database doesn't natively support <code>IF EXISTS</code>, this is
* emulated by catching (and ignoring) the relevant {@link SQLException}.
Expand Down
24 changes: 12 additions & 12 deletions jOOQ/src/main/java/org/jooq/impl/DSL.java
Original file line number Diff line number Diff line change
Expand Up @@ -5530,10 +5530,7 @@ public static DropViewFinalStep dropViewIfExists(Table<?> view) {
}

/**
* Create a new DSL <code>DROP TABLE IF EXISTS</code> statement.
* <p>
* If your database doesn't natively support <code>IF EXISTS</code>, this is
* emulated by catching (and ignoring) the relevant {@link SQLException}.
* Create a new DSL <code>DROP TABLE</code> statement.
*
* @see DSLContext#dropTable(String)
*/
Expand All @@ -5543,10 +5540,7 @@ public static DropTableStep dropTable(String table) {
}

/**
* Create a new DSL <code>DROP TABLE IF EXISTS</code> statement.
* <p>
* If your database doesn't natively support <code>IF EXISTS</code>, this is
* emulated by catching (and ignoring) the relevant {@link SQLException}.
* Create a new DSL <code>DROP TABLE</code> statement.
*
* @see DSLContext#dropTable(Name)
*/
Expand All @@ -5566,19 +5560,25 @@ public static DropTableStep dropTable(Table<?> table) {
}

/**
* Create a new DSL <code>DROP TABLE</code> statement.
* Create a new DSL <code>DROP TABLE IF EXISTS</code> statement.
* <p>
* If your database doesn't natively support <code>IF EXISTS</code>, this is
* emulated by catching (and ignoring) the relevant {@link SQLException}.
*
* @see DSLContext#dropTable(String)
* @see DSLContext#dropTableIfExists(String)
*/
@Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
public static DropTableStep dropTableIfExists(String table) {
return using(new DefaultConfiguration()).dropTableIfExists(table);
}

/**
* Create a new DSL <code>DROP TABLE</code> statement.
* Create a new DSL <code>DROP TABLE IF EXISTS</code> statement.
* <p>
* If your database doesn't natively support <code>IF EXISTS</code>, this is
* emulated by catching (and ignoring) the relevant {@link SQLException}.
*
* @see DSLContext#dropTable(Name)
* @see DSLContext#dropTableIfExists(Name)
*/
@Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
public static DropTableStep dropTableIfExists(Name table) {
Expand Down

0 comments on commit caaf0fc

Please sign in to comment.