Node Director
Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
sfi.director.repository.JDBC Class Reference
Inheritance diagram for sfi.director.repository.JDBC:
sfi.director.repository.DBConnection

Classes

class  CachedConnection
class  JDBCTableEnumeration
class  SelectEnumeration

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
void replace (DBObject dbo) throws DirectorException
void truncate () throws DirectorException
- Public Member Functions inherited from sfi.director.repository.DBConnection
String getURL ()
void setContext (RemoteJob context)
void setOption (String option)
void setOption (String option, String val)
void setOption (Options opt)
void setOption (SURL url)
String getOption (String option)
void setError (Exception e)
Exception getError ()
DN completeDN (DN dn)
Enumeration search (String expr) throws DirectorException
abstract Enumeration search (String expr, Options searchopt) throws DirectorException
void modify (DBObject dbo, Vector attrs) throws DirectorException
void close () throws DirectorException

Static Public Attributes

static final int retryLoopDelay = 5000
static final int retryMaxCount = 24
- 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"

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()
- Protected Attributes inherited from sfi.director.repository.DBConnection
String url
RemoteJob context
Options options = new Options()
Exception error = null

Static Protected Attributes

static int reconnectRetries
static Hashtable loadedDrivers = new Hashtable()

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)

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
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
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
void sfi.director.repository.JDBC.replace ( DBObject  dbo) throws DirectorException
Enumeration sfi.director.repository.JDBC.search ( String  expr,
final Options  searchopt 
) throws DirectorException
void sfi.director.repository.JDBC.setCredentials ( Credentials  cred)
synchronized void sfi.director.repository.JDBC.setURL ( String  url) throws DirectorException
String sfi.director.repository.JDBC.sqlFilter ( String  attr,
String  value 
)
protected
void sfi.director.repository.JDBC.truncate ( ) throws DirectorException
virtual

Member Data Documentation

Vector sfi.director.repository.JDBC.cachedConnections = new Vector()
protected
Hashtable sfi.director.repository.JDBC.columnCache = new Hashtable()
protected
Hashtable sfi.director.repository.JDBC.loadedDrivers = new Hashtable()
staticprotected
int sfi.director.repository.JDBC.reconnectRetries
staticprotected
final int sfi.director.repository.JDBC.retryLoopDelay = 5000
static
final int sfi.director.repository.JDBC.retryMaxCount = 24
static
boolean sfi.director.repository.JDBC.wasConnectedBefore = false
protected

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