Node Director
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
sfi.director.repository.OnDemandDBConnection Class Reference

connect to a database the first time an operation is to be executed. More...

Inheritance diagram for sfi.director.repository.OnDemandDBConnection:
sfi.director.repository.DBConnection

Public Member Functions

 OnDemandDBConnection ()
 OnDemandDBConnection (String url)
 OnDemandDBConnection (String url, String alt1)
 OnDemandDBConnection (String url, String alt1, String alt2)
 OnDemandDBConnection (String url, String alt1, String alt2, String alt3)
String getURL ()
void setCredentials (Credentials cred)
void setContext (RemoteJob context)
void setURL (String url) throws DirectorException
void setOption (String option)
void setOption (String option, String val)
void setOption (Options opt)
void setOption (SURL url)
void setError (Exception e)
Exception getError ()
DN completeDN (DN dn)
Enumeration search (String expr) throws DirectorException
Enumeration search (String expr, Options searchopt) throws DirectorException
void append (DBObject dbo) throws DirectorException
void truncate () throws DirectorException
void replace (DBObject dbo) throws DirectorException
void remove (DBObject dbo) throws DirectorException
DBAccessor get (DN dn) throws DirectorException
void modify (DBObject dbo, Vector attrs) throws DirectorException
void close () throws DirectorException
- Public Member Functions inherited from sfi.director.repository.DBConnection
String getOption (String option)

Protected Member Functions

synchronized void ensureConnected () throws DirectorException

Protected Attributes

DBConnection ourDB
Credentials accessCreds
Vector urls = new Vector()
- Protected Attributes inherited from sfi.director.repository.DBConnection
String url
RemoteJob context
Options options = new Options()
Exception error = null

Additional Inherited Members

- Static Public Member Functions inherited from sfi.director.repository.DBConnection
static Enumeration unwrap (final Enumeration wrapped)
 Given an Enumeration of DBAccessor objects as returned by the search() method, returns an Enumeration of DBObject objects.
static String escapeSearchval (String val)
- Static Public Attributes inherited from sfi.director.repository.DBConnection
static final String SEARCH_BASEDN = "BaseDN"
 used in conjunction with the search() method to set the base DN of the subtree we are about to search (option)
static final String SEARCH_NOSUB = "Sub"
static final String SEARCH_WITHSTRUCT = "WithStruct"
static final String SEARCH_SORT = "Sort"
static final String SEARCH_SCHEMA = "Schema"

Detailed Description

connect to a database the first time an operation is to be executed.

Constructor & Destructor Documentation

sfi.director.repository.OnDemandDBConnection.OnDemandDBConnection ( )
sfi.director.repository.OnDemandDBConnection.OnDemandDBConnection ( String  url)
sfi.director.repository.OnDemandDBConnection.OnDemandDBConnection ( String  url,
String  alt1 
)
sfi.director.repository.OnDemandDBConnection.OnDemandDBConnection ( String  url,
String  alt1,
String  alt2 
)
sfi.director.repository.OnDemandDBConnection.OnDemandDBConnection ( String  url,
String  alt1,
String  alt2,
String  alt3 
)

Member Function Documentation

void sfi.director.repository.OnDemandDBConnection.append ( DBObject  dbo) throws DirectorException
virtual
void sfi.director.repository.OnDemandDBConnection.close ( ) throws DirectorException
DN sfi.director.repository.OnDemandDBConnection.completeDN ( DN  dn)
synchronized void sfi.director.repository.OnDemandDBConnection.ensureConnected ( ) throws DirectorException
protected
DBAccessor sfi.director.repository.OnDemandDBConnection.get ( DN  dn) throws DirectorException
Exception sfi.director.repository.OnDemandDBConnection.getError ( )
String sfi.director.repository.OnDemandDBConnection.getURL ( )
void sfi.director.repository.OnDemandDBConnection.modify ( DBObject  dbo,
Vector  attrs 
) throws DirectorException
void sfi.director.repository.OnDemandDBConnection.remove ( DBObject  dbo) throws DirectorException
void sfi.director.repository.OnDemandDBConnection.replace ( DBObject  dbo) throws DirectorException
Enumeration sfi.director.repository.OnDemandDBConnection.search ( String  expr) throws DirectorException
Enumeration sfi.director.repository.OnDemandDBConnection.search ( String  expr,
Options  searchopt 
) throws DirectorException
virtual
void sfi.director.repository.OnDemandDBConnection.setContext ( RemoteJob  context)
void sfi.director.repository.OnDemandDBConnection.setCredentials ( Credentials  cred)
void sfi.director.repository.OnDemandDBConnection.setError ( Exception  e)
void sfi.director.repository.OnDemandDBConnection.setOption ( String  option)
void sfi.director.repository.OnDemandDBConnection.setOption ( String  option,
String  val 
)
void sfi.director.repository.OnDemandDBConnection.setOption ( Options  opt)
void sfi.director.repository.OnDemandDBConnection.setOption ( SURL  url)
void sfi.director.repository.OnDemandDBConnection.setURL ( String  url) throws DirectorException
void sfi.director.repository.OnDemandDBConnection.truncate ( ) throws DirectorException
virtual

Member Data Documentation

Credentials sfi.director.repository.OnDemandDBConnection.accessCreds
protected
DBConnection sfi.director.repository.OnDemandDBConnection.ourDB
protected
Vector sfi.director.repository.OnDemandDBConnection.urls = new Vector()
protected

The documentation for this class was generated from the following file: