|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.database.DeleteFromDatabase
public class DeleteFromDatabase
This class provides methods for removing entries from a database, all its children and any associated files that were copied into the database (rather than referenced).
| Constructor Summary | |
|---|---|
DeleteFromDatabase()
|
|
| Method Summary | |
|---|---|
static void |
deleteRecordChildrenAndFilesByLocalPrimaryKey(DatabaseInformationModel d,
InformationEntity ie,
String localPrimaryKeyValue)
Remove the database entry, all its children and any copied files. |
static void |
deleteRecordChildrenAndFilesByUniqueKey(DatabaseInformationModel d,
InformationEntity ie,
String keyValue)
Remove the database entry, all its children and any copied files. |
static void |
deleteRecordChildrenAndFilesByUniqueKey(DatabaseInformationModel d,
String ieName,
String keyValue)
|
static void |
main(String[] arg)
Remove the database entry, all its children and any copied files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeleteFromDatabase()
| Method Detail |
|---|
public static void deleteRecordChildrenAndFilesByUniqueKey(DatabaseInformationModel d,
String ieName,
String keyValue)
throws DicomException
DicomException
public static void deleteRecordChildrenAndFilesByUniqueKey(DatabaseInformationModel d,
InformationEntity ie,
String keyValue)
throws DicomException
Remove the database entry, all its children and any copied files.
d - ie - keyValue - for the PATIENT level, the unique key is the PatientID, otherwise it is the InstanceUID of the entity
DicomException
public static void deleteRecordChildrenAndFilesByLocalPrimaryKey(DatabaseInformationModel d,
InformationEntity ie,
String localPrimaryKeyValue)
throws DicomException
Remove the database entry, all its children and any copied files.
d - ie - localPrimaryKeyValue -
DicomException - if the databaseInformationModel or ie are invalidpublic static void main(String[] arg)
Remove the database entry, all its children and any copied files.
For the PATIENT level, the unique key is the PatientID, otherwise it is the InstanceUID of the entity.
arg - four arguments, the class name of the model, the (full) path of the database file prefix, the level of the entity to remove and the unique key of the entity
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||