org.ow2.petals.registry.database
Class PostgreSqlClient

java.lang.Object
  extended by org.ow2.petals.registry.database.RegistryClient
      extended by org.ow2.petals.registry.database.PostgreSqlClient

public class PostgreSqlClient
extends RegistryClient


Nested Class Summary
 
Nested classes/interfaces inherited from class org.ow2.petals.registry.database.RegistryClient
RegistryClient.ClientKey, RegistryClient.IsContextException
 
Field Summary
 
Fields inherited from class org.ow2.petals.registry.database.RegistryClient
batchSize, connectionPoolSize, connectionUrl, dataSource, DATASOURCES, log, password, ROOT_CONTEXT, username
 
Constructor Summary
PostgreSqlClient(java.lang.String connectionUrl, java.lang.String username, java.lang.String password, int connectionPoolSize, int batchSize, boolean checkTables, org.ow2.petals.util.LoggingUtil log)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> list(javax.naming.CompositeName contextName)
          Enumerates the names bound in a context with their object class name.
 
Methods inherited from class org.ow2.petals.registry.database.RegistryClient
bind, close, isContextExist, lookup, readObject, rebind, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgreSqlClient

public PostgreSqlClient(java.lang.String connectionUrl,
                        java.lang.String username,
                        java.lang.String password,
                        int connectionPoolSize,
                        int batchSize,
                        boolean checkTables,
                        org.ow2.petals.util.LoggingUtil log)
                 throws javax.naming.NamingException
Throws:
javax.naming.NamingException
Method Detail

list

public java.util.Map<java.lang.String,java.lang.Object> list(javax.naming.CompositeName contextName)
                                                      throws javax.naming.NameNotFoundException,
                                                             javax.naming.NamingException
Description copied from class: RegistryClient
Enumerates the names bound in a context with their object class name. In case of a sub context, the object class name is set to null.

Specified by:
list in class RegistryClient
Parameters:
contextName - Context name, not null.
Returns:
A map the names and class names of the bindings in this context. Each element of the map is of type <String, Object>, Object is null in case of a sub context.
Throws:
javax.naming.NameNotFoundException - The context name does not exist.
javax.naming.NamingException - An SQL error occurs.


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.