sfi.director.repository.JDBC Class Reference

Inheritance diagram for sfi.director.repository.JDBC:

sfi.director.repository.DBConnection List of all members.

Public Member Functions

 JDBC ()
 track number of maximum unsuccessful re-connection retries the LDAP is willing to do.
 JDBC (String url)
void setCredentials (Credentials cred)
synchronized void setURL (String url) throws DirectorException
Enumeration search (String expr, final Options searchopt) throws DirectorException
DBAccessor get (DN dn) throws DirectorException
void remove (DBObject dbo) throws DirectorException
void append (DBObject dbo) throws DirectorException
 *
Exceptions:
DirectorException 

void replace (DBObject dbo) throws DirectorException
void truncate () throws DirectorException

Static Public Attributes

static final int retryLoopDelay = 5000
static final int retryMaxCount = 24

Protected Member Functions

CachedConnection getCachedConnection () throws DirectorException
void putCachedConnection (CachedConnection conn)
java.sql.Connection getConnection () throws DirectorException
String getPrimaryKey (java.sql.Connection conn, String tableName) throws Exception
String[] parseDN (DN dn) throws DirectorException
String encodeValue (String value)
String sqlFilter (String attr, String value)
Hashtable getColumns (java.sql.Connection conn, String table) throws DirectorException
Enumeration enumerateTables (final String expr, final Options searchopt) throws DirectorException

Protected Attributes

boolean wasConnectedBefore = false
Hashtable columnCache = new Hashtable()
Vector cachedConnections = new Vector()

Static Protected Attributes

static int reconnectRetries
static Hashtable loadedDrivers = new Hashtable()

Package Attributes

String url
String databaseURL
String username
String password
DN rootDN
Credentials accessCreds
String orgUrl

Classes

class  CachedConnection
class  JDBCTableEnumeration
class  SelectEnumeration

Constructor & Destructor Documentation

sfi.director.repository.JDBC.JDBC  ) 
 

track number of maximum unsuccessful re-connection retries the LDAP is willing to do.

This is 'static' since we want to avoid the number of retries increase with the number of open connections.

sfi.director.repository.JDBC.JDBC String  url  ) 
 


Member Function Documentation

void sfi.director.repository.JDBC.append DBObject  dbo  )  throws DirectorException [virtual]
 

*

Exceptions:
DirectorException 

Parameters:
dbo 

Implements sfi.director.repository.DBConnection.

String sfi.director.repository.JDBC.encodeValue String  value  )  [protected]
 

Enumeration sfi.director.repository.JDBC.enumerateTables final String  expr,
final Options  searchopt
throws DirectorException [protected]
 

DBAccessor sfi.director.repository.JDBC.get DN  dn  )  throws DirectorException
 

Reimplemented from sfi.director.repository.DBConnection.

CachedConnection sfi.director.repository.JDBC.getCachedConnection  )  throws DirectorException [protected]
 

Hashtable sfi.director.repository.JDBC.getColumns java.sql.Connection  conn,
String  table
throws DirectorException [protected]
 

java.sql.Connection sfi.director.repository.JDBC.getConnection  )  throws DirectorException [protected]
 

String sfi.director.repository.JDBC.getPrimaryKey java.sql.Connection  conn,
String  tableName
throws Exception [protected]
 

String [] sfi.director.repository.JDBC.parseDN DN  dn  )  throws DirectorException [protected]
 

void sfi.director.repository.JDBC.putCachedConnection CachedConnection  conn  )  [protected]
 

void sfi.director.repository.JDBC.remove DBObject  dbo  )  throws DirectorException
 

Reimplemented from sfi.director.repository.DBConnection.

void sfi.director.repository.JDBC.replace DBObject  dbo  )  throws DirectorException
 

Reimplemented from sfi.director.repository.DBConnection.

Enumeration sfi.director.repository.JDBC.search String  expr,
final Options  searchopt
throws DirectorException
 

void sfi.director.repository.JDBC.setCredentials Credentials  cred  ) 
 

Reimplemented from sfi.director.repository.DBConnection.

synchronized void sfi.director.repository.JDBC.setURL String  url  )  throws DirectorException
 

Reimplemented from sfi.director.repository.DBConnection.

String sfi.director.repository.JDBC.sqlFilter String  attr,
String  value
[protected]
 

void sfi.director.repository.JDBC.truncate  )  throws DirectorException [virtual]
 

Implements sfi.director.repository.DBConnection.


Member Data Documentation

Credentials sfi.director.repository.JDBC.accessCreds [package]
 

Vector sfi.director.repository.JDBC.cachedConnections = new Vector() [protected]
 

Hashtable sfi.director.repository.JDBC.columnCache = new Hashtable() [protected]
 

String sfi.director.repository.JDBC.databaseURL [package]
 

Hashtable sfi.director.repository.JDBC.loadedDrivers = new Hashtable() [static, protected]
 

String sfi.director.repository.JDBC.orgUrl [package]
 

String sfi.director.repository.JDBC.password [package]
 

int sfi.director.repository.JDBC.reconnectRetries [static, protected]
 

final int sfi.director.repository.JDBC.retryLoopDelay = 5000 [static]
 

final int sfi.director.repository.JDBC.retryMaxCount = 24 [static]
 

DN sfi.director.repository.JDBC.rootDN [package]
 

String sfi.director.repository.JDBC.url [package]
 

Reimplemented from sfi.director.repository.DBConnection.

String sfi.director.repository.JDBC.username [package]
 

boolean sfi.director.repository.JDBC.wasConnectedBefore = false [protected]
 


The documentation for this class was generated from the following file:
Generated on Sat Feb 11 01:20:23 2012 for Node Director by  doxygen 1.4.5