public class NService_DBAgent
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close data base connection.
|
static NService_DBAgent |
createInstance(java.lang.String strConnectionString,
java.lang.String strDriverName)
Creates instance of NService_DBAgent.
|
boolean |
createSOPInstance(IDataSet objIDataSet,
java.lang.String strSOPInstanceUID)
Creates SOP Instance for provided SOPInstanceUID and DataElement attributes.
|
boolean |
isSOPInstanceExist(java.lang.String strSOPInstance)
Checks whether provided SOP Instance is created or not.
|
java.lang.String |
isUpdationAllowed(int iGroupNo,
int iElementNo,
java.lang.String strSOPInstanceUID)
Retrieves the value of Performed Procedure Step Status Value.
|
IDataSet |
retrieveSOPInstance(ISingleCollection<ITag> objTagCollection,
java.lang.String strSOPInstanceUID)
Retrieves a SOP Instance
|
boolean |
updateSOPInstance(IDataSet objIDataSet,
java.lang.String strSOPInstanceUID)
Updates a SOP Instance
|
public static NService_DBAgent createInstance(java.lang.String strConnectionString, java.lang.String strDriverName) throws java.sql.SQLException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
java.sql.SQLException - Signals if SQL Exception occurs.java.lang.ClassNotFoundException - if ClassNotFoundException occursjava.lang.InstantiationException - if InstantiationException occursjava.lang.IllegalAccessException - if IllegalAccessException occurspublic boolean createSOPInstance(IDataSet objIDataSet, java.lang.String strSOPInstanceUID) throws java.sql.SQLException
objIDataSet - instance of DatasetstrSOPInstanceUID - value of SOPInstanceUIDjava.sql.SQLException - if SQL operation failspublic boolean updateSOPInstance(IDataSet objIDataSet, java.lang.String strSOPInstanceUID) throws java.sql.SQLException
objIDataSet - instance of DatasetstrSOPInstanceUID - value of SOPInstanceUIDjava.sql.SQLException - if SQL operation failspublic IDataSet retrieveSOPInstance(ISingleCollection<ITag> objTagCollection, java.lang.String strSOPInstanceUID) throws java.sql.SQLException
objIDataSet - instance of DatasetstrSOPInstanceUID - value of SOPInstanceUIDjava.sql.SQLException - if SQL operation failspublic java.lang.String isUpdationAllowed(int iGroupNo,
int iElementNo,
java.lang.String strSOPInstanceUID)
throws java.sql.SQLException
iGroupNo - Group Number of attributeiElementNo - Element Number of AttributestrSOPInstanceUID - value of SOP Instance UIDjava.sql.SQLException - if sql operation failspublic boolean isSOPInstanceExist(java.lang.String strSOPInstance)
throws java.sql.SQLException
strSOPInstance - value of SOP Instance UIDjava.sql.SQLException - if sql operation failspublic void close()
throws java.sql.SQLException
java.sql.SQLException