PAJES 2.3.9

org.pajes.db
Class ConnectionPoolDefinition

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byorg.pajes.db.ConnectionPoolDefinition
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class ConnectionPoolDefinition
extends java.util.HashMap

Contains the definition of a ConnectionPool as loaded by ConnectionPoolConfiguration.

Handlers for deployment descriptor elements are invoked using reflection. New handlers may be defined by creating a protected method with the lower-case name of the element. The method signature must accept a single Object and return the same or modified Object.

See Also:
Serialized Form

Constructor Summary
ConnectionPoolDefinition(javax.servlet.ServletContext context)
          Creates a new ConnectionPoolDefinition object.
 
Method Summary
protected  java.lang.Object init(java.lang.Object value)
          Handling of the ConnectionPoolConfiguration.INIT_ELEMENT to return an Integer object.
protected  java.lang.Object interval(java.lang.Object value)
          Handling of the ConnectionPoolConfiguration.INTERVAL_ELEMENT to return a Long object.
protected  java.lang.Object max(java.lang.Object value)
          Handling of the ConnectionPoolConfiguration.MAX_ELEMENT to return an Integer object.
protected  java.lang.Object password(java.lang.Object value)
          Handling of the ConnectionPoolConfiguration.PASSWORD_ELEMENT to return the decrypted value.
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
          Performs any required conversion on the String value read from the configuration file.
protected  java.lang.Object server(java.lang.Object value)
          Handling of the ConnectionPoolConfiguration.SERVER_ELEMENT for HSQLDB and InstantDB Java databases.
protected  java.lang.Object timeout(java.lang.Object value)
          Handling of the ConnectionPoolConfiguration.TIMEOUT_ELEMENT to return a Long object.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ConnectionPoolDefinition

public ConnectionPoolDefinition(javax.servlet.ServletContext context)
Creates a new ConnectionPoolDefinition object.

Parameters:
context - the Servlet Context.
Method Detail

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Performs any required conversion on the String value read from the configuration file.

See Also:
Map.put(java.lang.Object, java.lang.Object)

init

protected java.lang.Object init(java.lang.Object value)
Handling of the ConnectionPoolConfiguration.INIT_ELEMENT to return an Integer object.

Parameters:
value - the value from the configuration file.
Returns:
the handled value.

interval

protected java.lang.Object interval(java.lang.Object value)
Handling of the ConnectionPoolConfiguration.INTERVAL_ELEMENT to return a Long object.

Parameters:
value - the value from the configuration file.
Returns:
the handled value.

max

protected java.lang.Object max(java.lang.Object value)
Handling of the ConnectionPoolConfiguration.MAX_ELEMENT to return an Integer object.

Parameters:
value - the value from the configuration file.
Returns:
the handled value.

password

protected java.lang.Object password(java.lang.Object value)
Handling of the ConnectionPoolConfiguration.PASSWORD_ELEMENT to return the decrypted value.

Parameters:
value - the value from the configuration file.
Returns:
the handled value.

server

protected java.lang.Object server(java.lang.Object value)
Handling of the ConnectionPoolConfiguration.SERVER_ELEMENT for HSQLDB and InstantDB Java databases.

If the pathname portion of the database server URL does not exist, it will be substituted with the result of a call to ServletContext.getRealPath(pathname). This enables the database to exist within the context with no specific configuration at run time.

Parameters:
value - the value from the configuration file.
Returns:
the handled value.

timeout

protected java.lang.Object timeout(java.lang.Object value)
Handling of the ConnectionPoolConfiguration.TIMEOUT_ELEMENT to return a Long object.

Parameters:
value - the value from the configuration file.
Returns:
the handled value.

PAJES 2.3.9

Copyright © 2002-2003 Viridian Pty Limited. All Rights Reserved.