public class SqlInterface extends Object
| Modifier and Type | Field and Description |
|---|---|
static Connection |
conn |
| Constructor and Description |
|---|
SqlInterface() |
| Modifier and Type | Method and Description |
|---|---|
static void |
connectDb() |
static void |
DataBaseInterface(ServiceObject serviceObject)
interface for database calls
|
static ResultSet |
evaluateDbQuery(ServiceObject serviceObject)
evaluaes the sql statement
|
static void |
evaluateReponse(ServiceObject serviceObject,
ResultSet resSet)
evaluate the response
|
static ResultSet |
executeAndWaitForDbResponse(PreparedStatement sqlStmt,
ServiceObject serviceObject)
executes And waits for response calls the query in each loop does not wait if
expected or partial expected response are empty
|
static void |
validateExpectedResponse(String expected,
ResultSet resSet) |
public static Connection conn
public static void DataBaseInterface(ServiceObject serviceObject) throws Exception
serviceObject - Exceptionpublic static void connectDb()
Exceptionpublic static ResultSet evaluateDbQuery(ServiceObject serviceObject) throws Exception
serviceObject - Exceptionpublic static void evaluateReponse(ServiceObject serviceObject, ResultSet resSet) throws Exception
serviceObject - resSet - Exceptionpublic static ResultSet executeAndWaitForDbResponse(PreparedStatement sqlStmt, ServiceObject serviceObject) throws SQLException
sqlStmt - serviceObject - SQLExceptionpublic static void validateExpectedResponse(String expected, ResultSet resSet) throws SQLException
SQLExceptionCopyright © 2019. All rights reserved.