|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfedora.server.test.DeleteTest
Title: DeleteTest.java
Description: Program to delete Fedora test objects from the database.
-----------------------------------------------------------------------------License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.
-----------------------------------------------------------------------------
| Constructor Summary | |
DeleteTest()
|
|
| Method Summary | |
void |
deleteBehaviorDefinition(java.lang.String pid)
Deletes a Fedora database behavior definition object. |
void |
deleteBehaviorMechanism(java.lang.String pid)
Deletes a Fedora database behavior mechanism object. |
void |
deleteDataObject(java.lang.String pid)
Deletes a Fedora database data object. |
static void |
main(java.lang.String[] args)
Used for unit testing and demonstration purposes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DeleteTest()
| Method Detail |
public void deleteDataObject(java.lang.String pid)
throws ReplicationException,
java.lang.ClassNotFoundException,
java.sql.SQLException,
java.lang.Exception
pid - Data object PID
ReplicationException - replication processing error
java.lang.ClassNotFoundException - JDBC driver error
java.sql.SQLException - JDBC, SQL error
java.lang.Exception - General exeception (DBMS init code)
public void deleteBehaviorDefinition(java.lang.String pid)
throws ReplicationException,
java.lang.ClassNotFoundException,
java.sql.SQLException,
java.lang.Exception
pid - Behavior definition PID
ReplicationException - replication processing error
java.lang.ClassNotFoundException - JDBC driver error
java.sql.SQLException - JDBC, SQL error
java.lang.Exception - General exeception (DBMS init code)
public void deleteBehaviorMechanism(java.lang.String pid)
throws ReplicationException,
java.lang.ClassNotFoundException,
java.sql.SQLException,
java.lang.Exception
pid - Behavior mechanism PID
ReplicationException - replication processing error
java.lang.ClassNotFoundException - JDBC driver error
java.sql.SQLException - JDBC, SQL error
java.lang.Exception - General exeception (DBMS init code)
public static void main(java.lang.String[] args)
throws java.lang.Exception
Used for unit testing and demonstration purposes.
args - program arguments
java.lang.Exception - exceptions that are thrown from called methods
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||