public class CreateTable extends java.lang.Object implements ICreateTable
| Constructor and Description |
|---|
CreateTable() |
| Modifier and Type | Method and Description |
|---|---|
int |
createTable(java.sql.Connection connection,
java.lang.String dbName,
Table table) |
int |
dropTable(java.sql.Connection connection,
java.lang.String dbName,
java.lang.String tbName) |
boolean |
exists(java.sql.Connection connection,
java.lang.String dbName,
java.lang.String tbName) |
public boolean exists(java.sql.Connection connection,
java.lang.String dbName,
java.lang.String tbName)
throws java.sql.SQLException
exists in interface ICreateTableconnection - to the databasedbName - the name of the database we want to create the table intbName - the name of the table we want to check existsjava.sql.SQLExceptionpublic int createTable(java.sql.Connection connection,
java.lang.String dbName,
Table table)
throws java.sql.SQLException,
DBSQLException
createTable in interface ICreateTableconnection - to the databasedbName - the name of the database we want to create the table intable - the table we want to createjava.sql.SQLExceptionDBSQLExceptionpublic int dropTable(java.sql.Connection connection,
java.lang.String dbName,
java.lang.String tbName)
throws java.sql.SQLException,
DBSQLException
dropTable in interface ICreateTableconnection - to the databasedbName - the name of the database we want to create the table intbName - the name of the table we want to check existsjava.sql.SQLExceptionDBSQLException