|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.db.TPAOps
public class TPAOps
Field Summary | |
---|---|
static java.lang.String |
AGREEMENTID
|
static java.lang.String |
CONTROLNUMBER
|
static java.lang.String |
CREATED
|
static java.lang.String |
DATASCHEMA
|
static java.lang.String |
DATASTATUS
|
static java.lang.String |
DESCRIPTION
|
static java.lang.String |
EXPORTSERVICE
|
static java.lang.String |
INITSERVICE
|
static java.lang.String |
LASTMODIFIED
|
static java.lang.String |
RECEIVERID
|
static java.lang.String |
SENDERID
|
static java.lang.String |
STATUS
|
static java.lang.String |
TPADATA
|
static java.lang.String |
TPAID
|
static java.lang.String |
VALIDATIONSERVICE
|
static java.lang.String |
VERSION
|
Constructor Summary | |
---|---|
TPAOps()
|
Method Summary | |
---|---|
static void |
addTPA(com.wm.app.tn.tpa.TPA tpa)
Add TPA operation |
static void |
changeStatus(java.lang.String[] tpaID,
java.lang.String newStatus)
Change status by tpaID. |
static void |
changeStatus(java.lang.String senderID,
java.lang.String receiverID,
java.lang.String agreementID,
java.lang.String newStatus)
Change status Throw TPAException if the TPA does not exist. |
static void |
deleteTPA(java.lang.String senderID,
java.lang.String receiverID,
java.lang.String agreementID)
Delete a TPA. |
static void |
deleteTPAByID(java.lang.String tpaID)
|
static com.wm.app.tn.tpa.TPA[] |
getAllTPAs(boolean all)
Return all TPAs - used by export facility |
static void |
getConNumAndTPAData(java.lang.String senderID,
java.lang.String receiverID,
java.lang.String agreementID,
com.wm.app.tn.tpa.TPA tpa)
Retrieve the latest controlNumber and tpaData Throw TPAException if none matches senderID, receiverID and agreementID |
static void |
getConNumAndTPAData(java.lang.String senderID,
java.lang.String receiverID,
java.lang.String agreementID,
com.wm.app.tn.tpa.TPA tpa,
boolean lock)
Retrieve the latest controlNumber and tpaData Throw TPAException if none matches senderID, receiverID and agreementID |
static java.lang.String |
getControlNumber(java.lang.String senderID,
java.lang.String receiverID,
java.lang.String agreementID)
Retrieve the latest controlNumber and tpaData Throw TPAException if none matches senderID, receiverID and agreementID |
static void |
getControlNumber(java.lang.String senderID,
java.lang.String receiverID,
java.lang.String agreementID,
com.wm.app.tn.tpa.TPA tpa)
Retrieve the latest controlNumber Throw TPAException if none matches senderID, receiverID and agreementID |
static void |
getControlNumber(java.lang.String senderID,
java.lang.String receiverID,
java.lang.String agreementID,
com.wm.app.tn.tpa.TPA tpa,
boolean lock)
Retrieve the latest controlNumber Throw TPAException if none matches senderID, receiverID and agreementID |
static java.lang.String |
getNextControlNumber(java.lang.String senderID,
java.lang.String receiverID,
java.lang.String agreementID)
Get the next controlNumber Throw TPAException if the TPA doesn't exist |
static com.wm.app.tn.tpa.TPA |
getTPA(java.lang.String senderID,
java.lang.String receiverID,
java.lang.String agreementID)
Retrieve a TPA |
static com.wm.app.tn.tpa.TPA |
getTPAByID(java.lang.String tpaID)
Retrieve a TPA for a TPAID |
static com.wm.app.tn.tpa.TPALock |
getTPALock(java.lang.String senderID,
java.lang.String receiverID,
java.lang.String agreementID)
Return a JDBC connection return null if the TPA is not found. |
static void |
importTPA(com.wm.app.tn.tpa.TPA tpa,
boolean force)
Import a TPA - used by import facility Note: all other DB op should stop |
static com.wm.data.IData |
query(TPAQuery query,
int pageSize,
int maxRowCount,
int queryTimeout,
int threshold,
java.lang.String queryId)
Query service |
static java.util.Vector<com.wm.app.tn.tpa.TPA> |
queryTPA(java.lang.String regexAgreementID)
|
static void |
releaseTPALock(com.wm.app.tn.tpa.TPALock tpaLock)
Release a TPA lock |
static void |
updateControlNumber(java.lang.String senderID,
java.lang.String receiverID,
java.lang.String agreementID,
java.lang.String newValue)
Update controlNumber and return the oldValue Throw TPAException if the TPA doesn't exist |
static void |
updateControlNumber(com.wm.app.tn.tpa.TPALock tpaLock,
java.lang.String newValue)
|
static void |
updateTPA(java.lang.String senderID,
java.lang.String receiverID,
java.lang.String agreementID,
com.wm.app.tn.tpa.TPA tpa)
Atomic update the selected fields |
static void |
updateTPAData(java.lang.String senderID,
java.lang.String receiverID,
java.lang.String agreementID,
com.wm.data.IData newValue)
Update tpaData and return the oldValue Throw TPAException if the TPA doesn't exist |
static void |
updateTPAData(com.wm.app.tn.tpa.TPALock tpaLock,
com.wm.data.IData newValue)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TPAID
public static final java.lang.String SENDERID
public static final java.lang.String RECEIVERID
public static final java.lang.String AGREEMENTID
public static final java.lang.String CREATED
public static final java.lang.String LASTMODIFIED
public static final java.lang.String CONTROLNUMBER
public static final java.lang.String STATUS
public static final java.lang.String EXPORTSERVICE
public static final java.lang.String INITSERVICE
public static final java.lang.String VALIDATIONSERVICE
public static final java.lang.String DATASCHEMA
public static final java.lang.String DATASTATUS
public static final java.lang.String TPADATA
public static final java.lang.String VERSION
public static final java.lang.String DESCRIPTION
Constructor Detail |
---|
public TPAOps()
Method Detail |
---|
public static void addTPA(com.wm.app.tn.tpa.TPA tpa) throws java.sql.SQLException, com.wm.app.tn.tpa.TPAException
java.sql.SQLException
com.wm.app.tn.tpa.TPAException
public static com.wm.app.tn.tpa.TPA getTPAByID(java.lang.String tpaID) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static com.wm.app.tn.tpa.TPA getTPA(java.lang.String senderID, java.lang.String receiverID, java.lang.String agreementID) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static void updateTPA(java.lang.String senderID, java.lang.String receiverID, java.lang.String agreementID, com.wm.app.tn.tpa.TPA tpa) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static java.lang.String getControlNumber(java.lang.String senderID, java.lang.String receiverID, java.lang.String agreementID) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static void getControlNumber(java.lang.String senderID, java.lang.String receiverID, java.lang.String agreementID, com.wm.app.tn.tpa.TPA tpa) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static void getControlNumber(java.lang.String senderID, java.lang.String receiverID, java.lang.String agreementID, com.wm.app.tn.tpa.TPA tpa, boolean lock) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static void getConNumAndTPAData(java.lang.String senderID, java.lang.String receiverID, java.lang.String agreementID, com.wm.app.tn.tpa.TPA tpa) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static void getConNumAndTPAData(java.lang.String senderID, java.lang.String receiverID, java.lang.String agreementID, com.wm.app.tn.tpa.TPA tpa, boolean lock) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static void updateControlNumber(java.lang.String senderID, java.lang.String receiverID, java.lang.String agreementID, java.lang.String newValue) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static void updateControlNumber(com.wm.app.tn.tpa.TPALock tpaLock, java.lang.String newValue) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static void updateTPAData(java.lang.String senderID, java.lang.String receiverID, java.lang.String agreementID, com.wm.data.IData newValue) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static void updateTPAData(com.wm.app.tn.tpa.TPALock tpaLock, com.wm.data.IData newValue) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static java.lang.String getNextControlNumber(java.lang.String senderID, java.lang.String receiverID, java.lang.String agreementID) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static void deleteTPAByID(java.lang.String tpaID) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static void deleteTPA(java.lang.String senderID, java.lang.String receiverID, java.lang.String agreementID) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static void changeStatus(java.lang.String senderID, java.lang.String receiverID, java.lang.String agreementID, java.lang.String newStatus) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static void changeStatus(java.lang.String[] tpaID, java.lang.String newStatus) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static com.wm.app.tn.tpa.TPALock getTPALock(java.lang.String senderID, java.lang.String receiverID, java.lang.String agreementID) throws com.wm.app.tn.tpa.TPAException, java.sql.SQLException
com.wm.app.tn.tpa.TPAException
java.sql.SQLException
public static void releaseTPALock(com.wm.app.tn.tpa.TPALock tpaLock)
tpaLock
- a TPALock objectpublic static com.wm.data.IData query(TPAQuery query, int pageSize, int maxRowCount, int queryTimeout, int threshold, java.lang.String queryId) throws java.sql.SQLException, java.io.IOException, com.wm.app.repo.RepositoryException, com.wm.app.b2b.server.ServiceException
java.sql.SQLException
java.io.IOException
com.wm.app.repo.RepositoryException
com.wm.app.b2b.server.ServiceException
public static com.wm.app.tn.tpa.TPA[] getAllTPAs(boolean all) throws java.sql.SQLException, com.wm.app.tn.tpa.TPAException
java.sql.SQLException
com.wm.app.tn.tpa.TPAException
public static void importTPA(com.wm.app.tn.tpa.TPA tpa, boolean force) throws java.sql.SQLException, com.wm.app.tn.tpa.TPAException
java.sql.SQLException
com.wm.app.tn.tpa.TPAException
public static java.util.Vector<com.wm.app.tn.tpa.TPA> queryTPA(java.lang.String regexAgreementID) throws com.wm.app.b2b.server.ServiceException, java.sql.SQLException, java.io.IOException, com.wm.app.tn.tpa.TPAException
com.wm.app.b2b.server.ServiceException
java.sql.SQLException
java.io.IOException
com.wm.app.tn.tpa.TPAException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |