com.ibm.etill.framework.admin
Class FrameworkMerchantAdmin

java.lang.Object
  |
  +--com.ibm.etill.framework.admin.AdminObject
        |
        +--com.ibm.etill.framework.admin.MerchantAdmin
              |
              +--com.ibm.etill.framework.admin.FrameworkMerchantAdmin
All Implemented Interfaces:
Archivable, PSServerAdminConstants, PSServerMerchantConstants

public final synchronized class FrameworkMerchantAdmin
extends MerchantAdmin
implements PSServerMerchantConstants


Fields inherited from interface com.ibm.etill.framework.xdm.PSServerMerchantConstants
APPROXIMATE_XDM_OBJECT_SIZE, COL_MERCHANTNUMBER, COL_MERCHANTTITLE, MerchantAdminTable
 
Fields inherited from interface com.ibm.etill.framework.xdm.PSServerAdminConstants
COL_ACTIVE, COL_ENABLED, COL_MESSAGESKEY, COL_PENDING, COL_VALID
 
Method Summary
static ReturnCodeStructure createObject(String, AdminRequest)
           
 void createRecord(Connection)
          Creates a new record representing this object in a Commerce Payments database table.
static ReturnCodeStructure deleteObject(String)
           
 void deleteRecord(Connection)
          Deletes an existing or newly-created record representing this object from a database table.
static Hashtable getConfiguredMerchants()
           
 ReaderWriterMonitor getReaderWriterMonitor()
           
static void initializeClass()
           
static ReturnCodeStructure modifyObject(String, AdminRequest)
           
static FrameworkMerchantAdmin obtainObject(String)
           
 void setMerchantTitle(String)
          Updates the merchant title with the input string.
 void startObject()
          Implemented by subclasses to start this AdminObject.
 void stopObject()
          Implemented by subclasses to stop this AdminObject.
 void updateRecord(Connection)
          Updates an existing or newly-created record representing this object in a Payment Server database table.
 
Methods inherited from class com.ibm.etill.framework.admin.MerchantAdmin
getMerchantNumber, getMerchantTitle, toString
 
Methods inherited from class com.ibm.etill.framework.admin.AdminObject
addCassetteMessage, addFrameworkMessage, getActive, getEnabled, getInvalidList, getPending, processConfigurationChanges, processExtension, setActive, setEnabled, setEnabled, setPending, validateExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

initializeClass

public static void initializeClass()

obtainObject

public static FrameworkMerchantAdmin obtainObject(String)

createObject

public static ReturnCodeStructure createObject(String,
                                               AdminRequest)
                                        throws ETillAbortOperation

modifyObject

public static ReturnCodeStructure modifyObject(String,
                                               AdminRequest)
                                        throws ETillAbortOperation

deleteObject

public static ReturnCodeStructure deleteObject(String)
                                        throws ETillAbortOperation

startObject

public void startObject()
                 throws ETillAbortOperation
Description copied from class: AdminObject
Implemented by subclasses to start this AdminObject. The Framework calls this method as required.
Overrides:
startObject in class AdminObject
Following copied from class: com.ibm.etill.framework.admin.AdminObject
Throws:
ETillAbortOperation - thrown if the object cannot be started.

stopObject

public void stopObject()
                throws ETillAbortOperation
Description copied from class: AdminObject
Implemented by subclasses to stop this AdminObject. The Framework calls this method as required.
Overrides:
stopObject in class AdminObject
Following copied from class: com.ibm.etill.framework.admin.AdminObject
Throws:
ETillAbortOperation - thrown if the object cannot be stopped.

createRecord

public void createRecord(Connection)
                  throws ETillAbortOperation
Description copied from interface: Archivable
Creates a new record representing this object in a Commerce Payments database table. The CommitPoint object calls this method during commit processing when this Archivable object is a member of the CommitPoint create list. This method should never be called directly from cassettes.

The implementation of this method determines which table is used and which data members from the object are to be stored into the table.

Following copied from interface: com.ibm.etill.framework.archive.Archivable
Parameters:
Connection - The JDBC Connection object used to access the database.
Throws:
ETillAbortOperation - Thrown if an SQLException is caught.

updateRecord

public void updateRecord(Connection)
                  throws ETillAbortOperation
Description copied from interface: Archivable
Updates an existing or newly-created record representing this object in a Payment Server database table. The CommitPoint object calls this method during commit processing when this Archivable object is a member of the CommitPoint update list. This method should never be called directly from cassettes.

If the Archivable object's record is being created within the same CommitPoint as this update, the CommitPoint object will ensure that the update is applied after the record has been created. The implementation of this method determines which fields in the record will be updated.

Following copied from interface: com.ibm.etill.framework.archive.Archivable
Parameters:
Connection - The JDBC Connection object used to access the database.
Throws:
ETillAbortOperation - Thrown if an SQLException is caught.

deleteRecord

public void deleteRecord(Connection)
                  throws ETillAbortOperation
Description copied from interface: Archivable
Deletes an existing or newly-created record representing this object from a database table. The CommitPoint object calls this method during commit processing when this Archivable object is a member of the CommitPoint delete list. This method should never be called directly from cassettes.

If the Archivable object's record is being created within the same CommitPoint as this deletion, the CommitPoint object will simply remove all operations on this record before committing the changes.

Following copied from interface: com.ibm.etill.framework.archive.Archivable
Parameters:
Connection - The JDBC Connection object used to access the database.
Throws:
ETillAbortOperation - Thrown if an SQLException is caught.

setMerchantTitle

public void setMerchantTitle(String)
                      throws ETillAbortOperation
Description copied from class: MerchantAdmin
Updates the merchant title with the input string.
Overrides:
setMerchantTitle in class MerchantAdmin
Following copied from class: com.ibm.etill.framework.admin.MerchantAdmin
Returns:
String - the new merchant title.
Throws:
ETillAbortOperation - declared but not thrown

getConfiguredMerchants

public static Hashtable getConfiguredMerchants()

getReaderWriterMonitor

public ReaderWriterMonitor getReaderWriterMonitor()