public class DataBaseAdapter
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransactionForFunctionalTest() |
java.lang.String |
executeInsert(DbBuilder builder)
Executes an insert statement.
|
int |
executeUpdate(DbBuilder builder)
Executes and update statement.
|
protected void |
finalize() |
void |
rollbackTransactionForFunctionalTest() |
org.json.JSONArray |
selectList(DbBuilder builder)
Executes a Select statement in the database and returns multiple rows.
|
org.json.JSONObject |
selectObject(DbBuilder builder)
Executes a Select statement in the database and returns only one object
|
public java.lang.String executeInsert(DbBuilder builder) throws java.lang.Exception
builder - Helper object that contains placeholders and build methodjava.lang.Exception - A SQL or mapping Exceptionpublic int executeUpdate(DbBuilder builder) throws java.lang.Exception
builder - Helper object that contains placeholders and build methodjava.lang.Exception - A SQL or mapping Exceptionpublic org.json.JSONArray selectList(DbBuilder builder) throws java.lang.Exception
builder - Helper object that contains placeholders and build methodjava.lang.Exception - A SQL or mapping Exceptionpublic org.json.JSONObject selectObject(DbBuilder builder) throws java.lang.Exception
builder - Helper object that contains placeholders and build methodjava.lang.Exception - A SQL or mapping Exceptionprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void beginTransactionForFunctionalTest()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void rollbackTransactionForFunctionalTest()
throws java.sql.SQLException
java.sql.SQLException