com.ibm.commerce.payments.configurator
Interface IDatabase


public interface IDatabase

Represents a Commerce Payments instance database.


Method Summary
 void executeSQLUpdate(java.lang.String statement)
          Executes an SQL INSERT, UPDATE or DELETE statement.
 java.sql.Connection getConnection()
          Obtains a new connection to the PM Database.
 java.lang.String getDbName()
          Gets the name of the Payments instance database.
 java.lang.String getDbOwnerId()
          Gets the user id of the owner of the Payments instance tables.
 java.lang.String getDbUserId()
          Gets the user id of the db user currently connected to the Payments instance database.
 java.lang.String getType()
          Gets the type of the PM database.
 

Method Detail

getType

public java.lang.String getType()
Gets the type of the PM database. Possible values are:
Returns:
the type of the database

getDbOwnerId

public java.lang.String getDbOwnerId()
Gets the user id of the owner of the Payments instance tables.
Returns:
The user id of the owner of the Payments instance tables

getDbUserId

public java.lang.String getDbUserId()
Gets the user id of the db user currently connected to the Payments instance database.
Returns:
The user id of the db user currently connected to the Payments instance database

getDbName

public java.lang.String getDbName()
Gets the name of the Payments instance database.
Returns:
The name of the Payments instance database

executeSQLUpdate

public void executeSQLUpdate(java.lang.String statement)
                      throws DatabaseOperationFailedException
Executes an SQL INSERT, UPDATE or DELETE statement.
Returns:
If the SQL statement was executed successfully
Throws:
DatabaseOperationFailedException - Thrown if the database operation fails

getConnection

public java.sql.Connection getConnection()
Obtains a new connection to the PM Database. The caller is responsible to close the connection and any statements created from this connection. Every call to this method will create a new connection. The connection is set to have auto commit off. The caller is reponsible for committing are rolling back the transactions in this connection.
Returns:
A new connection to the Database Management System; null if a connection cannot be created