Package dev.galasa.db2
Interface IDb2Schema
public interface IDb2Schema
IDb2Schema provides a connection to a specific db2 schema. Statements submited that do not specify a
schema will use this as its default schema.
Allows users to submit statements as string, or as a batch of statements from a file.
-
Method Summary
Modifier and TypeMethodDescriptionexecuteSql
(String stmt, Object... params) Executes a single statement, with any parametersExecutes a file of statements which are line separated.executeSqlList
(String stmt, Object... params) Executes a single statement with any parameters which expects multiple records returned.Returns the name of the Schema.
-
Method Details
-
executeSql
Executes a single statement, with any parameters- Parameters:
stmt
-params
-- Returns:
- IResultsMap
- Throws:
Db2ManagerException
-
executeSqlList
Executes a single statement with any parameters which expects multiple records returned.- Parameters:
stmt
-params
-- Returns:
- List
- Throws:
Db2ManagerException
-
executeSqlFile
Executes a file of statements which are line separated.- Parameters:
in
-- Returns:
- List
- Throws:
Db2ManagerException
-
getSchemaName
String getSchemaName()Returns the name of the Schema.- Returns:
-