Modifier and Type | Method and Description |
---|---|
static DB |
JDBDT.database(Connection c)
Create a new database handle.
|
static DB |
JDBDT.database(DataSource xds)
Create a new database handle for given
DataSource
instance. |
static DB |
JDBDT.database(DataSource xds,
String user,
String password)
Create a new database handle for given
DataSource
instance, user, and password. |
static DB |
JDBDT.database(String url)
Create a new database handle for given database URL.
|
static DB |
JDBDT.database(String url,
String user,
String password)
Create a new database handle for given database
URL, user and password .
|
DB |
DataSource.getDB()
Get database instance.
|
Modifier and Type | Method and Description |
---|---|
static void |
JDBDT.assertTableDoesNotExist(DB db,
String... tableNames)
Assert that tables do not exist in a database.
|
static void |
JDBDT.assertTableDoesNotExist(DB db,
String tableName)
Assert that table does not exist in a database.
|
static void |
JDBDT.assertTableDoesNotExist(String message,
DB db,
String... tableNames)
Assert that tables do not exist in a database (error message variant).
|
static void |
JDBDT.assertTableDoesNotExist(String message,
DB db,
String tableName)
Assert that table does not exist in a database (error message variant).
|
static void |
JDBDT.assertTableExists(DB db,
String... tableNames)
Assert that tables exist in the database.
|
static void |
JDBDT.assertTableExists(DB db,
String tableName)
Assert that table exists in the database.
|
static void |
JDBDT.assertTableExists(String message,
DB db,
String... tableNames)
Assert that tables exist in the database (error message variant).
|
static void |
JDBDT.assertTableExists(String message,
DB db,
String tableName)
Assert that table exists in the database (error message variant).
|
Table |
TableBuilder.build(DB db)
Build the table object.
|
Query |
QueryBuilder.build(DB db)
Build the query.
|
static void |
JDBDT.commit(DB db)
Commit changes in current transaction.
|
static void |
JDBDT.drop(DB db,
String... tableNames)
Drop tables.
|
static void |
JDBDT.drop(DB db,
String tableName)
Drop a table (table name variant).
|
static int |
JDBDT.execute(DB db,
String sql,
Object... args)
Execute arbitrary SQL for a database instance.
|
static Query |
JDBDT.query(DB db,
String sql,
Object... args)
Create a query data source from given SQL code.
|
static void |
JDBDT.restore(DB db)
Restore database state to the last JDBDT save-point.
|
static void |
JDBDT.save(DB db)
Set JDBDT save-point for database.
|
static void |
JDBDT.teardown(DB db,
boolean closeConn)
Tear-down a database handle.
|
Constructor and Description |
---|
DataSource(org.jdbdt.CallInfo callInfo,
DB db,
String sql,
Object... queryArgs)
Constructor.
|
Query(DB db,
String sql,
Object... args)
Constructor.
|
Table(DB db,
String name,
String[] columns,
String[] keyColumns)
Constructor.
|
Copyright © 2016–2021 JDBDT. All rights reserved.