org.edg.security.voms.database
Class DBContainerFactory

java.lang.Object
  |
  +--org.edg.security.voms.database.DBContainerFactory

public class DBContainerFactory
extends java.lang.Object

Creating DBContainer instances.

Version:
$Name: v0_7_0 $
Author:
Karoly Lorentey

Field Summary
private static ContainerNamingScheme cns
           
 
Constructor Summary
DBContainerFactory()
           
 
Method Summary
static DBContainer getDBContainer(java.lang.String name)
          Returns the container object corresponding to the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cns

private static final ContainerNamingScheme cns
Constructor Detail

DBContainerFactory

public DBContainerFactory()
Method Detail

getDBContainer

public static DBContainer getDBContainer(java.lang.String name)
                                  throws GeneralDatabaseException,
                                         NotInDatabase,
                                         ArgumentException
Returns the container object corresponding to the given name.

Throws:
ArgumentException - if name is not well-formed.
NotInDatabase - if name has valid syntax, but there is no such container in the database
InconsistentDatabase - if there is a problem with the database
GeneralDatabaseException