org.webdocwf.util.loader
Class DBConnectionManager

java.lang.Object
  extended byorg.webdocwf.util.loader.DBConnectionManager

public class DBConnectionManager
extends java.lang.Object

DBConnectionManager class creates all connection to database.

Version:
1.0
Author:
Radoslav Dutina

Field Summary
 java.lang.String connectinPrefix
           
 boolean fileSystemDatabase
           
 java.lang.String loaderJobPath
           
 
Constructor Summary
DBConnectionManager(java.util.Vector allConnections)
          This method set all connection into vector
 
Method Summary
 java.sql.Connection getConnection(java.lang.String name)
          This method get connection from connection pool
 void release(java.lang.String exception)
          This method release (close) all connection and deregister all drivers
 void setConnectionPrefix(java.lang.String prefix)
          This method set connection prefix
 void setLoaderJobPath(java.lang.String loaderJob)
          This method set path to LoaderJob.olj file
 void setParsePermission(boolean doParse)
          This method set the value of fileSystemDatabase parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loaderJobPath

public java.lang.String loaderJobPath

connectinPrefix

public java.lang.String connectinPrefix

fileSystemDatabase

public boolean fileSystemDatabase
Constructor Detail

DBConnectionManager

public DBConnectionManager(java.util.Vector allConnections)
This method set all connection into vector

Parameters:
allConnections - represents all connection property
Method Detail

setLoaderJobPath

public void setLoaderJobPath(java.lang.String loaderJob)
This method set path to LoaderJob.olj file

Parameters:
loaderJob - represents string path to LoaderJob.olj file

setConnectionPrefix

public void setConnectionPrefix(java.lang.String prefix)
This method set connection prefix

Parameters:
prefix - is value of connection prefix

setParsePermission

public void setParsePermission(boolean doParse)
This method set the value of fileSystemDatabase parameter

Parameters:
doParse - is value of parameter

getConnection

public java.sql.Connection getConnection(java.lang.String name)
This method get connection from connection pool

Parameters:
name - is the name of the pool
Returns:
connection

release

public void release(java.lang.String exception)
This method release (close) all connection and deregister all drivers

Parameters:
exception - defines if application calls release from exception method or not


Copyright © 2002-2007 Together - the Workgroup. All Rights Reserved.