public class UPSDBAgent
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkForSubscription(java.lang.String strSOPInstance)
Check for subscription for specified SOP .
|
static UPSDBAgent |
createInstance(java.lang.String strConnectionString,
java.lang.String strDriverName)
Creates instance of UPSDBAgent.
|
boolean |
find(IDataSet objIDataSet,
ISingleCollection<IDataSet> objRstDataCollection)
Depending on the keys in the IDataSet it finds the matching DataSets and returns status.
|
boolean |
isSOPInstanceExist(java.lang.String strSOPInstance)
Checks whether provided SOP Instance is created or not.
|
boolean |
isTransactionUIDExist(java.lang.String strUID)
Checks whether provided Transaction UID is created or not.
|
IDataSet |
retrieveUPSInstanceInfo(ISingleCollection<ITag> objTagCollection,
java.lang.String strSOPInstance)
Retrieve specified Data set from Database.
|
IDataSet |
retrieveUPSInstanceInfoForThree(ISingleCollection<ITag> objTagCollection,
java.lang.String strSOPInstance)
Retrieve specified Data set from Database.
|
IDataSet |
retrieveUPSInstanceInfoForTwo(ISingleCollection<ITag> objTagCollection,
java.lang.String strSOPInstance)
Retrieve specified Data set from Database.
|
boolean |
storeInstanceInfo(IDataSet objIDataSet)
Stores specified Data set to Database.
|
boolean |
storeInstanceInfoForCancle(IDataSet objIDataSet)
Stores specified Data set to Database.
|
boolean |
storeInstanceInfoForSubscription(IDataSet objIDataSet)
Stores specified Data set to Database.
|
boolean |
storeInstanceInfoForUnsubscribe(IDataSet objIDataSet)
Stores specified Data set to Database.
|
boolean |
updateSOPInstance(IDataSet objIDataSet,
java.lang.String strUID)
Updates a SOP Instance
|
public static UPSDBAgent createInstance(java.lang.String strConnectionString, java.lang.String strDriverName) throws java.sql.SQLException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
strConnectionString - Database Connection StringstrDriverName - Database driver fully qualified namejava.sql.SQLException - - thrown in case of database access error or other errors.java.lang.ClassNotFoundException - - thrown in case failure when an application tries to load in a class.java.lang.InstantiationException - - thrown in case failure when an application tries to create an instance of a class using the newInstance method in class Class, but the specified class object cannot be instantiated.java.lang.IllegalAccessException - - thrown in case failure when an application tries to reflectively create an instance (other than an array), set or get a field, or invoke a method, but the currently executing method does not have access to the definition of the specified class, field, method or constructor.public boolean storeInstanceInfo(IDataSet objIDataSet) throws java.sql.SQLException
objIDataSet - - instance of IDataSetjava.sql.SQLException - if there is database access error or other errors.public boolean find(IDataSet objIDataSet, ISingleCollection<IDataSet> objRstDataCollection) throws java.sql.SQLException
objIDataSet - The data set containing identifiers.objRstDataCollection - the matched data set collectionjava.sql.SQLException - if there is database access error or other errors.public boolean storeInstanceInfoForCancle(IDataSet objIDataSet) throws java.sql.SQLException
objIDataSet - - instance of IDataSetjava.sql.SQLException - if there is database access error or other errors.public boolean isTransactionUIDExist(java.lang.String strUID)
throws java.sql.SQLException
strSOPInstance - value of SOP Instance UIDjava.sql.SQLException - if sql operation failspublic boolean updateSOPInstance(IDataSet objIDataSet, java.lang.String strUID) throws java.sql.SQLException
objIDataSet - instance of DatasetstrSOPInstanceUID - value of SOPInstanceUIDjava.sql.SQLException - if SQL operation failspublic IDataSet retrieveUPSInstanceInfo(ISingleCollection<ITag> objTagCollection, java.lang.String strSOPInstance) throws java.sql.SQLException
objTagCollection - strSOPInstance - java.sql.SQLExceptionpublic boolean isSOPInstanceExist(java.lang.String strSOPInstance)
throws java.sql.SQLException
strSOPInstance - value of SOP Instance UIDjava.sql.SQLException - if sql operation failspublic boolean storeInstanceInfoForSubscription(IDataSet objIDataSet) throws java.sql.SQLException
objIDataSet - - instance of IDataSetjava.sql.SQLException - if there is database access error or other errors.public boolean storeInstanceInfoForUnsubscribe(IDataSet objIDataSet) throws java.sql.SQLException
objIDataSet - - instance of IDataSetjava.sql.SQLException - if there is database access error or other errors.public IDataSet retrieveUPSInstanceInfoForTwo(ISingleCollection<ITag> objTagCollection, java.lang.String strSOPInstance) throws java.sql.SQLException
objTagCollection - strSOPInstance - java.sql.SQLExceptionpublic IDataSet retrieveUPSInstanceInfoForThree(ISingleCollection<ITag> objTagCollection, java.lang.String strSOPInstance) throws java.sql.SQLException
objTagCollection - strSOPInstance - java.sql.SQLExceptionpublic boolean checkForSubscription(java.lang.String strSOPInstance)
throws java.sql.SQLException
strSOPInstance - java.sql.SQLException