net.sf.csutils.core.registry
Class SimpleRegistryFacade

java.lang.Object
  extended by net.sf.csutils.core.registry.impl.AbstractRegistryFacade
      extended by net.sf.csutils.core.registry.SimpleRegistryFacade
All Implemented Interfaces:
RegistryFacade
Direct Known Subclasses:
SimpleModelDrivenRegistryFacade

public class SimpleRegistryFacade
extends AbstractRegistryFacade

This is the most simple kind of RegistryFacade: It doesn't hold any internal cache. All methods are mapped directly to calls of the BusinessQueryManager.


Constructor Summary
SimpleRegistryFacade(javax.xml.registry.Connection pConnection)
          Creates a new instance with the given registry connection and the default RegistryInfo.
SimpleRegistryFacade(RegistryInfo pRegistryInfo, javax.xml.registry.Connection pConnection)
          Creates a new instance with the given registry connection and the given RegistryInfo.
 
Method Summary
 javax.xml.registry.infomodel.Concept findAssociationType(java.lang.String pName)
          Returns the association type with the given name.
 javax.xml.registry.infomodel.ClassificationScheme findClassificationScheme(java.lang.String pName)
          Returns the classification scheme, or taxonomy, with the given name.
 javax.xml.registry.infomodel.Concept findDescendant(javax.xml.registry.infomodel.RegistryObject pParent, java.lang.String pPath)
          Returns the concept with the given path, relative to the given object.
 javax.xml.registry.infomodel.RegistryObject findObjectByPath(java.lang.String pPath)
          Returns the classification scheme, or concept with the given path.
 javax.xml.registry.infomodel.Concept findObjectType(java.lang.String pName)
          Returns the object type with the given name.
 javax.xml.registry.BusinessLifeCycleManager getBusinessLifeCycleManager()
          Returns the BusinessLifeCycleManager.
 javax.xml.registry.BusinessQueryManager getBusinessQueryManager()
          Returns the BusinessQueryManager.
 javax.xml.registry.Connection getConnection()
          Returns the registry connection.
 
Methods inherited from class net.sf.csutils.core.registry.impl.AbstractRegistryFacade
findObjectType, getAssociationTypeClassificationScheme, getObjectTypeClassificationScheme, getReferencingAssociations, getRegistryInfo, isAssociationTypeClassificationScheme, isAssociationTypeConcept, isObjectTypeClassificationScheme, isObjectTypeConcept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRegistryFacade

public SimpleRegistryFacade(javax.xml.registry.Connection pConnection)
                     throws javax.xml.registry.JAXRException
Creates a new instance with the given registry connection and the default RegistryInfo.

Parameters:
pConnection - The connection to use.
Throws:
javax.xml.registry.JAXRException - The operation failed.

SimpleRegistryFacade

public SimpleRegistryFacade(RegistryInfo pRegistryInfo,
                            javax.xml.registry.Connection pConnection)
                     throws javax.xml.registry.JAXRException
Creates a new instance with the given registry connection and the given RegistryInfo.

Parameters:
pRegistryInfo - The registry information to use.
pConnection - The connection to use.
Throws:
javax.xml.registry.JAXRException - The operation failed.
Method Detail

getBusinessQueryManager

public javax.xml.registry.BusinessQueryManager getBusinessQueryManager()
Returns the BusinessQueryManager.

Returns:
The BusinessQueryManager to use.

getBusinessLifeCycleManager

public javax.xml.registry.BusinessLifeCycleManager getBusinessLifeCycleManager()
Returns the BusinessLifeCycleManager.

Returns:
The BusinessLifeCycleManager.

getConnection

public javax.xml.registry.Connection getConnection()
Returns the registry connection.

Returns:
The registry connection to use.

findClassificationScheme

public javax.xml.registry.infomodel.ClassificationScheme findClassificationScheme(java.lang.String pName)
                                                                           throws javax.xml.registry.JAXRException
Description copied from interface: RegistryFacade
Returns the classification scheme, or taxonomy, with the given name.

Parameters:
pName - The classification schemes name.
Returns:
The classification scheme, or taxonomy, with the given name.
Throws:
javax.xml.registry.JAXRException - The operation failed.

findObjectByPath

public javax.xml.registry.infomodel.RegistryObject findObjectByPath(java.lang.String pPath)
                                                             throws javax.xml.registry.JAXRException
Description copied from interface: RegistryFacade
Returns the classification scheme, or concept with the given path. The notation of a path follows the scheme as outlined in Concepts.

Parameters:
pPath - The path to evaluate.
Returns:
The classification scheme, or concept with the given path.
Throws:
javax.xml.registry.JAXRException - The operation failed.

findDescendant

public javax.xml.registry.infomodel.Concept findDescendant(javax.xml.registry.infomodel.RegistryObject pParent,
                                                           java.lang.String pPath)
                                                    throws javax.xml.registry.JAXRException
Description copied from interface: RegistryFacade
Returns the concept with the given path, relative to the given object.

Parameters:
pParent - The registry object, relative to which the path should be evaluated.
pPath - The path to evaluate.
Returns:
The concept with the given path, relative to the given.
Throws:
javax.xml.registry.JAXRException - The operation failed.

findAssociationType

public javax.xml.registry.infomodel.Concept findAssociationType(java.lang.String pName)
                                                         throws javax.xml.registry.JAXRException
Description copied from interface: RegistryFacade
Returns the association type with the given name.

Parameters:
pName - The association types name.
Returns:
The association type with the given name.
Throws:
javax.xml.registry.JAXRException - The operation failed.

findObjectType

public javax.xml.registry.infomodel.Concept findObjectType(java.lang.String pName)
                                                    throws javax.xml.registry.JAXRException
Description copied from interface: RegistryFacade
Returns the object type with the given name.

Parameters:
pName - The object types name.
Returns:
The object type with the given name.
Throws:
javax.xml.registry.JAXRException - The operation failed.


Copyright © 2009-2010. All Rights Reserved.