IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.web2.profile
Class BTTWeb2ProfileJDBCDAOImpl

java.lang.Object
  extended by com.ibm.btt.web2.profile.BTTWeb2ProfileJDBCDAOImpl
All Implemented Interfaces:
BTTWeb2ProfileDAO

public class BTTWeb2ProfileJDBCDAOImpl
extends java.lang.Object
implements BTTWeb2ProfileDAO


Field Summary
(package private)  javax.naming.InitialContext ctx
           
(package private)  javax.sql.DataSource ds
           
 
Constructor Summary
BTTWeb2ProfileJDBCDAOImpl()
           
 
Method Summary
 int addGlobalProfile(java.lang.String configType, java.lang.String xmlContent)
          Add global profile
 int addUserProfile(java.lang.String configType, java.lang.String userID, java.lang.String xmlContent)
          Add user profile
 java.lang.String getDataSource()
           
 java.lang.String getDbDriverName()
           
 java.lang.String getDbPassWord()
           
 java.lang.String getDbUrl()
           
 java.lang.String getDbUserName()
           
 java.lang.String getGlobalProfile(java.lang.String configType)
          Get the global profile
 java.lang.String getUserProfile(java.lang.String configType, java.lang.String userID)
          Get the user profile
 void setDataSource(java.lang.String dataSource)
           
 void setDbDriverName(java.lang.String dbDriverName)
           
 void setDbPassWord(java.lang.String dbPassWord)
           
 void setDbUrl(java.lang.String dbUrl)
           
 void setDbUserName(java.lang.String dbUserName)
           
 int updateGlobalProfile(java.lang.String configType, java.lang.String xmlContent)
          Update global profile
 int updateUserProfile(java.lang.String configType, java.lang.String userID, java.lang.String xmlContent)
          Update user profile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctx

javax.naming.InitialContext ctx

ds

javax.sql.DataSource ds
Constructor Detail

BTTWeb2ProfileJDBCDAOImpl

public BTTWeb2ProfileJDBCDAOImpl()
Method Detail

getDataSource

public java.lang.String getDataSource()

setDataSource

public void setDataSource(java.lang.String dataSource)

getDbDriverName

public java.lang.String getDbDriverName()

setDbDriverName

public void setDbDriverName(java.lang.String dbDriverName)

getDbUrl

public java.lang.String getDbUrl()

setDbUrl

public void setDbUrl(java.lang.String dbUrl)

getDbUserName

public java.lang.String getDbUserName()

setDbUserName

public void setDbUserName(java.lang.String dbUserName)

getDbPassWord

public java.lang.String getDbPassWord()

setDbPassWord

public void setDbPassWord(java.lang.String dbPassWord)

getGlobalProfile

public java.lang.String getGlobalProfile(java.lang.String configType)
                                  throws java.lang.Exception
Description copied from interface: BTTWeb2ProfileDAO
Get the global profile

Specified by:
getGlobalProfile in interface BTTWeb2ProfileDAO
Returns:
XML String of global profile
Throws:
java.lang.Exception

getUserProfile

public java.lang.String getUserProfile(java.lang.String configType,
                                       java.lang.String userID)
                                throws java.lang.Exception
Description copied from interface: BTTWeb2ProfileDAO
Get the user profile

Specified by:
getUserProfile in interface BTTWeb2ProfileDAO
Returns:
XML String of user profile
Throws:
java.lang.Exception

addGlobalProfile

public int addGlobalProfile(java.lang.String configType,
                            java.lang.String xmlContent)
                     throws java.lang.Exception
Description copied from interface: BTTWeb2ProfileDAO
Add global profile

Specified by:
addGlobalProfile in interface BTTWeb2ProfileDAO
Returns:
the count of record added, normally should be 1
Throws:
java.lang.Exception

addUserProfile

public int addUserProfile(java.lang.String configType,
                          java.lang.String userID,
                          java.lang.String xmlContent)
                   throws java.lang.Exception
Description copied from interface: BTTWeb2ProfileDAO
Add user profile

Specified by:
addUserProfile in interface BTTWeb2ProfileDAO
Returns:
the count of record added, normally should be 1
Throws:
java.lang.Exception

updateGlobalProfile

public int updateGlobalProfile(java.lang.String configType,
                               java.lang.String xmlContent)
                        throws java.lang.Exception
Description copied from interface: BTTWeb2ProfileDAO
Update global profile

Specified by:
updateGlobalProfile in interface BTTWeb2ProfileDAO
Returns:
the count of record updated, normally should be 1
Throws:
java.lang.Exception

updateUserProfile

public int updateUserProfile(java.lang.String configType,
                             java.lang.String userID,
                             java.lang.String xmlContent)
                      throws java.lang.Exception
Description copied from interface: BTTWeb2ProfileDAO
Update user profile

Specified by:
updateUserProfile in interface BTTWeb2ProfileDAO
Returns:
the count of record updated, normally should be 1
Throws:
java.lang.Exception

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011