| org.netbeans.modules.db.test.TestBase org.netbeans.modules.db.util.DBTestBase
All known Subclasses: org.netbeans.modules.db.explorer.dlg.AddTableColumnDDLTest, org.netbeans.modules.db.explorer.actions.AddToIndexDDLTest, org.netbeans.modules.db.explorer.dlg.CreateTableDDLTest, org.netbeans.modules.db.explorer.dlg.AddIndexDDLTest, org.netbeans.modules.db.explorer.infos.DDLHelperTest, org.netbeans.modules.db.explorer.dlg.AddViewDDLTest, org.netbeans.api.db.sql.support.QuoterTest, org.netbeans.modules.db.explorer.actions.GrabTableHelperTest,
DBTestBase | abstract public class DBTestBase extends TestBase (Code) | | This class is a useful base test class that provides initial setup
to get a connecxtion and also a number of utility routines
author: David Van Couvering |
Method Summary | |
protected void | addBasicColumn(String tablename, String colname, int type, int size) Adds a basic column. | protected boolean | columnExists(String tablename, String colname) | protected boolean | columnInAnyIndex(String tablename, String colname) | protected boolean | columnInIndex(String tablename, String colname, String indexname) | protected boolean | columnInPrimaryKey(String tablename, String colname) | protected void | createBasicTable(String tablename, String pkeyName) | protected void | createSchema() | protected void | createSimpleIndex(String tablename, String indexname, String colname) | protected void | createView(String viewName, String query) | protected void | dropSchema() | protected void | dropTable(String tablename) | protected void | dropView(String viewname) | public String | fixIdentifier(String ident) | protected Connection | getConnection() | public int | getUnquotedCaseRule() | protected boolean | indexExists(String tablename, String indexname) | protected boolean | indexIsUnique(String tablename, String indexName) | protected boolean | isQuoted(String ident) | protected void | printAllTables() | protected int | printResults(ResultSet rs, String queryName) | protected String | quote(String value) | protected boolean | schemaExists(String schemaName) | protected void | setSchema() | public void | setUp() | protected boolean | tableExists(String tablename) | protected void | tearDown() | protected boolean | viewExists(String viewName) |
DEBUGLEVEL | final protected static Level DEBUGLEVEL(Code) | | |
LC_RULE | final public static int LC_RULE(Code) | | |
MC_RULE | final public static int MC_RULE(Code) | | |
QUOTE_RETAINS_CASE | final public static int QUOTE_RETAINS_CASE(Code) | | |
UC_RULE | final public static int UC_RULE(Code) | | |
addBasicColumn | protected void addBasicColumn(String tablename, String colname, int type, int size) throws Exception(Code) | | Adds a basic column. Non-unique, allows nulls.
|
fixIdentifier | public String fixIdentifier(String ident) throws Exception(Code) | | Fix an identifier for a metadata call, as the metadata APIs
require identifiers to be in proper case
|
|
|