fedora.server.test
Class DeleteTest

java.lang.Object
  extended byfedora.server.test.DeleteTest

public class DeleteTest
extends java.lang.Object

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.

-----------------------------------------------------------------------------

Version:
$Id: DeleteTest.java,v 1.7 2005/01/11 20:06:09 cwilper Exp $
Author:
Paul Charlton

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

DeleteTest

public DeleteTest()
Method Detail

deleteDataObject

public void deleteDataObject(java.lang.String pid)
                      throws ReplicationException,
                             java.lang.ClassNotFoundException,
                             java.sql.SQLException,
                             java.lang.Exception
Deletes a Fedora database data object.

Parameters:
pid - Data object PID
Throws:
ReplicationException - replication processing error
java.lang.ClassNotFoundException - JDBC driver error
java.sql.SQLException - JDBC, SQL error
java.lang.Exception - General exeception (DBMS init code)

deleteBehaviorDefinition

public void deleteBehaviorDefinition(java.lang.String pid)
                              throws ReplicationException,
                                     java.lang.ClassNotFoundException,
                                     java.sql.SQLException,
                                     java.lang.Exception
Deletes a Fedora database behavior definition object.

Parameters:
pid - Behavior definition PID
Throws:
ReplicationException - replication processing error
java.lang.ClassNotFoundException - JDBC driver error
java.sql.SQLException - JDBC, SQL error
java.lang.Exception - General exeception (DBMS init code)

deleteBehaviorMechanism

public void deleteBehaviorMechanism(java.lang.String pid)
                             throws ReplicationException,
                                    java.lang.ClassNotFoundException,
                                    java.sql.SQLException,
                                    java.lang.Exception
Deletes a Fedora database behavior mechanism object.

Parameters:
pid - Behavior mechanism PID
Throws:
ReplicationException - replication processing error
java.lang.ClassNotFoundException - JDBC driver error
java.sql.SQLException - JDBC, SQL error
java.lang.Exception - General exeception (DBMS init code)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception

Used for unit testing and demonstration purposes.

Parameters:
args - program arguments
Throws:
java.lang.Exception - exceptions that are thrown from called methods