org.objectweb.telosys.dal.dao
Class DAORegistries

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysObject
      extended byorg.objectweb.telosys.dal.dao.DAORegistries

public class DAORegistries
extends TelosysObject

Set of DAO registries (one registry for each database)

Since:
1.0.0

Constructor Summary
DAORegistries()
          Construct a new instance
 
Method Summary
 int getNumberOfRegistries()
          Return the number of registries defined.
protected  DAORegistry getRegistry(int databaseId)
          Returns the DAO registry corresponding to the given database ID
 
Methods inherited from class org.objectweb.telosys.common.TelosysObject
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAORegistries

public DAORegistries()
Construct a new instance

Method Detail

getRegistry

protected DAORegistry getRegistry(int databaseId)
Returns the DAO registry corresponding to the given database ID

Parameters:
databaseId - ( 0 to N )
Returns:
Throws:
TelosysRuntimeException - if the database id is invalid or unknown

getNumberOfRegistries

public int getNumberOfRegistries()
Return the number of registries defined.

Returns: