net.sf.csutils.core.registry.impl
Class ROModelAccessorImpl

java.lang.Object
  extended by net.sf.csutils.core.registry.impl.ROModelAccessorImpl
All Implemented Interfaces:
ROModelAccessor

public class ROModelAccessorImpl
extends java.lang.Object
implements ROModelAccessor


Constructor Summary
ROModelAccessorImpl(ModelDrivenRegistryFacade pFacade, ROMetaModelAccessor pMetaModelAccessor, InnerModelAccessor pAccessor)
           
 
Method Summary
<RO extends javax.xml.registry.infomodel.RegistryObject>
RO
createInstance(QName pType)
          Creates a registry object with the given type.
<RO extends javax.xml.registry.infomodel.RegistryObject>
RO
createInstance(ROType pType)
          Creates a registry object with the given type.
<RO extends javax.xml.registry.infomodel.RegistryObject>
RO
createInstance(java.lang.String pType)
          Creates a registry object with the given type.
 java.util.List<javax.xml.registry.infomodel.RegistryObject[]> executeArrayQuery(java.lang.String pQuery, java.lang.Object... pParameters)
          Creates a query with the given CSQL statement, executes it, and returns the result.
 java.util.List<javax.xml.registry.infomodel.RegistryObject> executeQuery(java.lang.String pQuery, java.lang.Object... pParameters)
          Creates a query with the given CSQL statement, executes it, and returns the result.
 RORelation findRelation(ROType pType, java.lang.String pRelationName)
          Finds a relationship attribute with the given name in the given registry object type.
protected  ROSlot findSlot(ROMetaModel pModel, javax.xml.registry.infomodel.RegistryObject pObject, java.lang.String pSlotName)
           
 ROSlot findSlot(ROType pType, java.lang.String pSlotName)
          Finds a slot attribute with the given name in the given registry object type.
 ROType findType(QName pQName)
          Finds the registry object type with the given name.
 ROType findType(javax.xml.registry.infomodel.RegistryObject pInstance)
          Finds the registry object type of the given registry object instance.
 ROType findType(java.lang.String pTypeName)
          Finds the registry object type with the given name.
 ROMetaModel getMetaModel()
          Returns the meta model.
 ModelDrivenRegistryFacade getRegistryFacade()
          Returns the accessors registry facade.
 javax.xml.registry.infomodel.RegistryObject getRelationValue(RORelation pRelation, javax.xml.registry.infomodel.RegistryObject pObject)
          Returns the given relations value from the given registry object.
 javax.xml.registry.infomodel.RegistryObject getRelationValue(ROType pType, java.lang.String pRelationName, javax.xml.registry.infomodel.RegistryObject pObject)
          Returns the given relations value from the given registry object.
 javax.xml.registry.infomodel.RegistryObject getRelationValue(java.lang.String pRelationName, javax.xml.registry.infomodel.RegistryObject pObject)
          Returns the given relations value from the given registry object.
 java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getRelationValues(RORelation pRelation, javax.xml.registry.infomodel.RegistryObject pObject)
          Returns the given relations values from the given registry object.
 java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getRelationValues(ROType pType, java.lang.String pRelationName, javax.xml.registry.infomodel.RegistryObject pObject)
          Returns the given relations values from the given registry object.
 java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getRelationValues(java.lang.String pRelationName, javax.xml.registry.infomodel.RegistryObject pObject)
          Returns the given relations values from the given registry object.
 java.lang.String getSlotValue(ROSlot pSlot, javax.xml.registry.infomodel.RegistryObject pObject)
          Returns the given slots values from the given registry object.
 java.lang.String getSlotValue(ROType pType, java.lang.String pSlotName, javax.xml.registry.infomodel.RegistryObject pObject)
          Returns the given slots values from the given registry object.
 java.lang.String getSlotValue(java.lang.String pSlotName, javax.xml.registry.infomodel.RegistryObject pObject)
          Returns the given slots values from the given registry object.
 java.util.Collection<java.lang.String> getSlotValues(ROSlot pSlot, javax.xml.registry.infomodel.RegistryObject pObject)
          Returns the given slots values from the given registry object.
 java.util.Collection<java.lang.String> getSlotValues(ROType pType, java.lang.String pSlotName, javax.xml.registry.infomodel.RegistryObject pObject)
          Returns the given slots values from the given registry object.
 java.util.Collection<java.lang.String> getSlotValues(java.lang.String pSlotName, javax.xml.registry.infomodel.RegistryObject pObject)
          Returns the given slots values from the given registry object.
 CsqlStatement prepareStatement(java.lang.String pQuery)
          Creates a query with the given CSQL statement.
 RORelation requireRelation(ROType pType, java.lang.String pRelationName)
          Finds a relationship attribute with the given name in the given registry object type.
 ROSlot requireSlot(ROType pType, java.lang.String pSlotName)
          Finds a slot attribute with the given name in the given registry object type.
 ROType requireType(QName pQName)
          Finds the registry object type with the given name.
 ROType requireType(javax.xml.registry.infomodel.RegistryObject pInstance)
          Finds the registry object type of the given registry object instance.
 ROType requireType(java.lang.String pTypeName)
          Finds the registry object type with the given name.
 void setRelationValue(RORelation pRelation, javax.xml.registry.infomodel.RegistryObject pObject, javax.xml.registry.infomodel.RegistryObject pTarget)
          Sets the given relations value on the given registry object.
 void setRelationValue(ROType pType, java.lang.String pRelationName, javax.xml.registry.infomodel.RegistryObject pObject, javax.xml.registry.infomodel.RegistryObject pTarget)
          Sets the given relations value on the given registry object.
 void setRelationValue(java.lang.String pRelationName, javax.xml.registry.infomodel.RegistryObject pObject, javax.xml.registry.infomodel.RegistryObject pTarget)
          Sets the given relations value on the given registry object.
 void setRelationValues(RORelation pRelation, javax.xml.registry.infomodel.RegistryObject pObject, java.util.Collection<javax.xml.registry.infomodel.RegistryObject> pTargets)
          Sets the given relations values on the given registry object.
 void setRelationValues(RORelation pRelation, javax.xml.registry.infomodel.RegistryObject pObject, javax.xml.registry.infomodel.RegistryObject... pTargets)
          Sets the given relations values on the given registry object.
 void setRelationValues(ROType pType, java.lang.String pRelationName, javax.xml.registry.infomodel.RegistryObject pObject, java.util.Collection<javax.xml.registry.infomodel.RegistryObject> pTargets)
          Sets the given relations values on the given registry object.
 void setRelationValues(ROType pType, java.lang.String pRelationName, javax.xml.registry.infomodel.RegistryObject pObject, javax.xml.registry.infomodel.RegistryObject... pTargets)
          Sets the given relations values on the given registry object.
 void setRelationValues(java.lang.String pRelationName, javax.xml.registry.infomodel.RegistryObject pObject, java.util.Collection<javax.xml.registry.infomodel.RegistryObject> pTargets)
          Sets the given relations values on the given registry object.
 void setRelationValues(java.lang.String pRelationName, javax.xml.registry.infomodel.RegistryObject pObject, javax.xml.registry.infomodel.RegistryObject... pTargets)
          Sets the given relations values on the given registry object.
 void setSlotValue(ROSlot pSlot, javax.xml.registry.infomodel.RegistryObject pObject, java.lang.String pValue)
          Sets the given slots value on the given registry object.
 void setSlotValue(ROType pType, java.lang.String pSlotName, javax.xml.registry.infomodel.RegistryObject pObject, java.lang.String pValue)
          Sets the given slots value on the given registry object.
 void setSlotValue(java.lang.String pSlotName, javax.xml.registry.infomodel.RegistryObject pObject, java.lang.String pValue)
          Sets the given slots value on the given registry object.
 void setSlotValues(ROSlot pSlot, javax.xml.registry.infomodel.RegistryObject pObject, java.util.Collection<java.lang.String> pValues)
          Sets the given slots values on the given registry object.
 void setSlotValues(ROSlot pSlot, javax.xml.registry.infomodel.RegistryObject pObject, java.lang.String... pValues)
          Sets the given slots values on the given registry object.
 void setSlotValues(ROType pType, java.lang.String pSlotName, javax.xml.registry.infomodel.RegistryObject pObject, java.util.Collection<java.lang.String> pValues)
          Sets the given slots values on the given registry object.
 void setSlotValues(ROType pType, java.lang.String pSlotName, javax.xml.registry.infomodel.RegistryObject pObject, java.lang.String... pValues)
          Sets the given slots values on the given registry object.
 void setSlotValues(java.lang.String pSlotName, javax.xml.registry.infomodel.RegistryObject pObject, java.util.Collection<java.lang.String> pValues)
          Sets the given slots values on the given registry object.
 void setSlotValues(java.lang.String pSlotName, javax.xml.registry.infomodel.RegistryObject pObject, java.lang.String... pValues)
          Sets the given slots values on the given registry object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ROModelAccessorImpl

public ROModelAccessorImpl(ModelDrivenRegistryFacade pFacade,
                           ROMetaModelAccessor pMetaModelAccessor,
                           InnerModelAccessor pAccessor)
Method Detail

getMetaModel

public ROMetaModel getMetaModel()
Description copied from interface: ROModelAccessor
Returns the meta model.

Specified by:
getMetaModel in interface ROModelAccessor
Returns:
The meta model.

getRegistryFacade

public ModelDrivenRegistryFacade getRegistryFacade()
Description copied from interface: ROModelAccessor
Returns the accessors registry facade.

Specified by:
getRegistryFacade in interface ROModelAccessor
Returns:
The registry facade to use.

findType

public ROType findType(QName pQName)
                throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Finds the registry object type with the given name.

Specified by:
findType in interface ROModelAccessor
Parameters:
pQName - The registry object types name.
Returns:
ROType The matching registry object type, if any, or null.
Throws:
javax.xml.registry.JAXRException - The operation failed.
See Also:
ROModelAccessor.requireType(QName), ROModelAccessor.findType(String)

requireType

public ROType requireType(QName pQName)
                   throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Finds the registry object type with the given name.

Specified by:
requireType in interface ROModelAccessor
Parameters:
pQName - The registry object types name.
Returns:
ROType The matching registry object type; never null, because an exception is thrown in that case.
Throws:
javax.xml.registry.JAXRException - The operation failed.
See Also:
ROModelAccessor.findType(QName), ROModelAccessor.requireType(String)

findType

public ROType findType(java.lang.String pTypeName)
                throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Finds the registry object type with the given name.

Specified by:
findType in interface ROModelAccessor
Parameters:
pTypeName - The registry object types name.
Returns:
The matching registry object type, if any, or null.
Throws:
javax.xml.registry.JAXRException - The operation failed.
See Also:
ROModelAccessor.requireType(String), ROModelAccessor.findType(QName)

requireType

public ROType requireType(java.lang.String pTypeName)
                   throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Finds the registry object type with the given name.

Specified by:
requireType in interface ROModelAccessor
Parameters:
pTypeName - The registry object types name.
Returns:
The matching registry object type; never null, because an exception is thrown in that case.
Throws:
javax.xml.registry.JAXRException - The operation failed. In particular, this might be the case, if no type with the given name was found.
See Also:
ROModelAccessor.findType(String), ROModelAccessor.requireType(QName)

findType

public ROType findType(javax.xml.registry.infomodel.RegistryObject pInstance)
                throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Finds the registry object type of the given registry object instance.

Specified by:
findType in interface ROModelAccessor
Parameters:
pInstance - The instance for which the type is being queried.
Returns:
The matching registry object type, if any, or null.
Throws:
javax.xml.registry.JAXRException - The operation failed. In particular, this might be the case, if no type with the given name was found.
See Also:
ROModelAccessor.findType(String), ROModelAccessor.requireType(RegistryObject)

requireType

public ROType requireType(javax.xml.registry.infomodel.RegistryObject pInstance)
                   throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Finds the registry object type of the given registry object instance.

Specified by:
requireType in interface ROModelAccessor
Parameters:
pInstance - The instance for which the type is being queried.
Returns:
The matching registry object type; never null, because an exception is thrown in that case.
Throws:
javax.xml.registry.JAXRException - The operation failed. In particular, this might be the case, if no type with the given name was found.
See Also:
ROModelAccessor.requireType(String), ROModelAccessor.findType(RegistryObject)

findRelation

public RORelation findRelation(ROType pType,
                               java.lang.String pRelationName)
                        throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Finds a relationship attribute with the given name in the given registry object type.

Specified by:
findRelation in interface ROModelAccessor
Parameters:
pType - The registry object type.
pRelationName - The attributes name.
Returns:
The matching slot, if any, or null.
Throws:
javax.xml.registry.JAXRException - The operation failed.

findSlot

public ROSlot findSlot(ROType pType,
                       java.lang.String pSlotName)
                throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Finds a slot attribute with the given name in the given registry object type.

Specified by:
findSlot in interface ROModelAccessor
Parameters:
pType - The registry object type.
pSlotName - Then slots name.
Returns:
The matching slot, if any, or null.
Throws:
javax.xml.registry.JAXRException - The operation failed. In particular, this might be the case, because an attribute with the given name was found, but the attributes type is no slot attribute.
See Also:
ROModelAccessor.requireSlot(ROType, String)

requireSlot

public ROSlot requireSlot(ROType pType,
                          java.lang.String pSlotName)
                   throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Finds a slot attribute with the given name in the given registry object type.

Specified by:
requireSlot in interface ROModelAccessor
Parameters:
pType - The registry object type.
pSlotName - Then slots name.
Returns:
The matching slot; never null, because an exception is thrown in that case.
Throws:
javax.xml.registry.JAXRException - The operation failed. In particular, this might be the case, if no attribute with the given name was found. Likewise, because an attribute with the given name was found, but the attributes is no slot attribute.
See Also:
ROModelAccessor.findSlot(ROType, String)

requireRelation

public RORelation requireRelation(ROType pType,
                                  java.lang.String pRelationName)
                           throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Finds a relationship attribute with the given name in the given registry object type.

Specified by:
requireRelation in interface ROModelAccessor
Parameters:
pType - The registry object type.
pRelationName - The attributes name.
Returns:
The matching relation; never null, as an exception is thrown in that case.
Throws:
javax.xml.registry.JAXRException - The operation failed. In particular, this might be the case, if no attribute with the given name was found. Likewise, because an attribute with the given name was found, but the attributes is no relationship attribute.

findSlot

protected ROSlot findSlot(ROMetaModel pModel,
                          javax.xml.registry.infomodel.RegistryObject pObject,
                          java.lang.String pSlotName)
                   throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

setSlotValue

public void setSlotValue(ROSlot pSlot,
                         javax.xml.registry.infomodel.RegistryObject pObject,
                         java.lang.String pValue)
                  throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given slots value on the given registry object.

Specified by:
setSlotValue in interface ROModelAccessor
Parameters:
pSlot - The slot to set.
pObject - The object on which to set the slot value.
pValue - The value to use.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setSlotValue

public void setSlotValue(ROType pType,
                         java.lang.String pSlotName,
                         javax.xml.registry.infomodel.RegistryObject pObject,
                         java.lang.String pValue)
                  throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given slots value on the given registry object.

Specified by:
setSlotValue in interface ROModelAccessor
Parameters:
pType - The registry objects type.
pSlotName - The slots name.
pObject - The object on which to set the slot value.
pValue - The value to use.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setSlotValue

public void setSlotValue(java.lang.String pSlotName,
                         javax.xml.registry.infomodel.RegistryObject pObject,
                         java.lang.String pValue)
                  throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given slots value on the given registry object.

Specified by:
setSlotValue in interface ROModelAccessor
Parameters:
pSlotName - The slots name.
pObject - The object on which to set the slot value.
pValue - The value to use.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setSlotValues

public void setSlotValues(ROSlot pSlot,
                          javax.xml.registry.infomodel.RegistryObject pObject,
                          java.util.Collection<java.lang.String> pValues)
                   throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given slots values on the given registry object.

Specified by:
setSlotValues in interface ROModelAccessor
Parameters:
pSlot - The slot to set.
pObject - The object on which to set the slot values.
pValues - The values to use.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setSlotValues

public void setSlotValues(ROType pType,
                          java.lang.String pSlotName,
                          javax.xml.registry.infomodel.RegistryObject pObject,
                          java.util.Collection<java.lang.String> pValues)
                   throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given slots values on the given registry object.

Specified by:
setSlotValues in interface ROModelAccessor
Parameters:
pType - The registry objects type.
pSlotName - The slots name.
pObject - The object on which to set the slot values.
pValues - The values to use.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setSlotValues

public void setSlotValues(java.lang.String pSlotName,
                          javax.xml.registry.infomodel.RegistryObject pObject,
                          java.util.Collection<java.lang.String> pValues)
                   throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given slots values on the given registry object.

Specified by:
setSlotValues in interface ROModelAccessor
Parameters:
pSlotName - The slots name.
pObject - The object on which to set the slot values.
pValues - The values to use.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setSlotValues

public void setSlotValues(ROSlot pSlot,
                          javax.xml.registry.infomodel.RegistryObject pObject,
                          java.lang.String... pValues)
                   throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given slots values on the given registry object.

Specified by:
setSlotValues in interface ROModelAccessor
Parameters:
pSlot - The slot to set.
pObject - The object on which to set the slot values.
pValues - The values to use.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setSlotValues

public void setSlotValues(ROType pType,
                          java.lang.String pSlotName,
                          javax.xml.registry.infomodel.RegistryObject pObject,
                          java.lang.String... pValues)
                   throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given slots values on the given registry object.

Specified by:
setSlotValues in interface ROModelAccessor
Parameters:
pType - The registry objects type.
pSlotName - The slots name.
pObject - The object on which to set the slot values.
pValues - The values to use.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setSlotValues

public void setSlotValues(java.lang.String pSlotName,
                          javax.xml.registry.infomodel.RegistryObject pObject,
                          java.lang.String... pValues)
                   throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given slots values on the given registry object.

Specified by:
setSlotValues in interface ROModelAccessor
Parameters:
pSlotName - The slots name.
pObject - The object on which to set the slot values.
pValues - The values to use.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getSlotValue

public java.lang.String getSlotValue(ROSlot pSlot,
                                     javax.xml.registry.infomodel.RegistryObject pObject)
                              throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Returns the given slots values from the given registry object.

Specified by:
getSlotValue in interface ROModelAccessor
Parameters:
pSlot - The slot to read.
pObject - The object from which to read the slot value.
Returns:
The slot value.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getSlotValue

public java.lang.String getSlotValue(ROType pType,
                                     java.lang.String pSlotName,
                                     javax.xml.registry.infomodel.RegistryObject pObject)
                              throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Returns the given slots values from the given registry object.

Specified by:
getSlotValue in interface ROModelAccessor
Parameters:
pType - The registry objects type.
pSlotName - The slots name.
pObject - The object from which to read the slot value.
Returns:
The slot value.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getSlotValue

public java.lang.String getSlotValue(java.lang.String pSlotName,
                                     javax.xml.registry.infomodel.RegistryObject pObject)
                              throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Returns the given slots values from the given registry object.

Specified by:
getSlotValue in interface ROModelAccessor
Parameters:
pSlotName - The slots name.
pObject - The object from which to read the slot value.
Returns:
The slot values.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getSlotValues

public java.util.Collection<java.lang.String> getSlotValues(ROSlot pSlot,
                                                            javax.xml.registry.infomodel.RegistryObject pObject)
                                                     throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Returns the given slots values from the given registry object.

Specified by:
getSlotValues in interface ROModelAccessor
Parameters:
pSlot - The slot to read.
pObject - The object from which to read the slot value.
Returns:
The slot values.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getSlotValues

public java.util.Collection<java.lang.String> getSlotValues(ROType pType,
                                                            java.lang.String pSlotName,
                                                            javax.xml.registry.infomodel.RegistryObject pObject)
                                                     throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Returns the given slots values from the given registry object.

Specified by:
getSlotValues in interface ROModelAccessor
Parameters:
pType - The registry objects type.
pSlotName - The slots name.
pObject - The object from which to read the slot value.
Returns:
The slot values.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getSlotValues

public java.util.Collection<java.lang.String> getSlotValues(java.lang.String pSlotName,
                                                            javax.xml.registry.infomodel.RegistryObject pObject)
                                                     throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Returns the given slots values from the given registry object.

Specified by:
getSlotValues in interface ROModelAccessor
Parameters:
pSlotName - The slots name.
pObject - The object from which to read the slot value.
Returns:
The slot values.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setRelationValue

public void setRelationValue(RORelation pRelation,
                             javax.xml.registry.infomodel.RegistryObject pObject,
                             javax.xml.registry.infomodel.RegistryObject pTarget)
                      throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given relations value on the given registry object.

Specified by:
setRelationValue in interface ROModelAccessor
Parameters:
pRelation - The relation to set.
pObject - The object on which to set the relation value.
pTarget - The target object to use as the relations value.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setRelationValue

public void setRelationValue(ROType pType,
                             java.lang.String pRelationName,
                             javax.xml.registry.infomodel.RegistryObject pObject,
                             javax.xml.registry.infomodel.RegistryObject pTarget)
                      throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given relations value on the given registry object.

Specified by:
setRelationValue in interface ROModelAccessor
Parameters:
pType - The registry objects type.
pRelationName - The relations name.
pObject - The object on which to set the relation value.
pTarget - The target object to use as the relations value.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setRelationValue

public void setRelationValue(java.lang.String pRelationName,
                             javax.xml.registry.infomodel.RegistryObject pObject,
                             javax.xml.registry.infomodel.RegistryObject pTarget)
                      throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given relations value on the given registry object.

Specified by:
setRelationValue in interface ROModelAccessor
Parameters:
pRelationName - The relations name.
pObject - The object on which to set the relation value.
pTarget - The target object to use as the relations value.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setRelationValues

public void setRelationValues(RORelation pRelation,
                              javax.xml.registry.infomodel.RegistryObject pObject,
                              javax.xml.registry.infomodel.RegistryObject... pTargets)
                       throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given relations values on the given registry object.

Specified by:
setRelationValues in interface ROModelAccessor
Parameters:
pRelation - The relation to set.
pObject - The object on which to set the relation value.
pTargets - The target objects to use as the relations value.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setRelationValues

public void setRelationValues(ROType pType,
                              java.lang.String pRelationName,
                              javax.xml.registry.infomodel.RegistryObject pObject,
                              javax.xml.registry.infomodel.RegistryObject... pTargets)
                       throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given relations values on the given registry object.

Specified by:
setRelationValues in interface ROModelAccessor
Parameters:
pType - The registry objects type.
pRelationName - The relations name.
pObject - The object on which to set the relation value.
pTargets - The target objects to use as the relations value.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setRelationValues

public void setRelationValues(java.lang.String pRelationName,
                              javax.xml.registry.infomodel.RegistryObject pObject,
                              javax.xml.registry.infomodel.RegistryObject... pTargets)
                       throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given relations values on the given registry object.

Specified by:
setRelationValues in interface ROModelAccessor
Parameters:
pRelationName - The relations name.
pObject - The object on which to set the relation value.
pTargets - The target objects to use as the relations value.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setRelationValues

public void setRelationValues(RORelation pRelation,
                              javax.xml.registry.infomodel.RegistryObject pObject,
                              java.util.Collection<javax.xml.registry.infomodel.RegistryObject> pTargets)
                       throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given relations values on the given registry object.

Specified by:
setRelationValues in interface ROModelAccessor
Parameters:
pRelation - The relation to set.
pObject - The object on which to set the relation value.
pTargets - The target objects to use as the relations value.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setRelationValues

public void setRelationValues(ROType pType,
                              java.lang.String pRelationName,
                              javax.xml.registry.infomodel.RegistryObject pObject,
                              java.util.Collection<javax.xml.registry.infomodel.RegistryObject> pTargets)
                       throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given relations values on the given registry object.

Specified by:
setRelationValues in interface ROModelAccessor
Parameters:
pType - The registry objects type.
pRelationName - The relations name.
pObject - The object on which to set the relation value.
pTargets - The target objects to use as the relations value.
Throws:
javax.xml.registry.JAXRException - The operation failed.

setRelationValues

public void setRelationValues(java.lang.String pRelationName,
                              javax.xml.registry.infomodel.RegistryObject pObject,
                              java.util.Collection<javax.xml.registry.infomodel.RegistryObject> pTargets)
                       throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Sets the given relations values on the given registry object.

Specified by:
setRelationValues in interface ROModelAccessor
Parameters:
pRelationName - The relations name.
pObject - The object on which to set the relation value.
pTargets - The target objects to use as the relations value.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getRelationValue

public javax.xml.registry.infomodel.RegistryObject getRelationValue(RORelation pRelation,
                                                                    javax.xml.registry.infomodel.RegistryObject pObject)
                                                             throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Returns the given relations value from the given registry object.

Specified by:
getRelationValue in interface ROModelAccessor
Parameters:
pRelation - The relation to read.
pObject - The object from which to read the relation value.
Returns:
relations target object.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getRelationValue

public javax.xml.registry.infomodel.RegistryObject getRelationValue(ROType pType,
                                                                    java.lang.String pRelationName,
                                                                    javax.xml.registry.infomodel.RegistryObject pObject)
                                                             throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Returns the given relations value from the given registry object.

Specified by:
getRelationValue in interface ROModelAccessor
Parameters:
pType - The registry objects type.
pRelationName - The relations name.
pObject - The object from which to read the relation value.
Returns:
relations target object.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getRelationValue

public javax.xml.registry.infomodel.RegistryObject getRelationValue(java.lang.String pRelationName,
                                                                    javax.xml.registry.infomodel.RegistryObject pObject)
                                                             throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Returns the given relations value from the given registry object.

Specified by:
getRelationValue in interface ROModelAccessor
Parameters:
pRelationName - The relations name.
pObject - The object from which to read the relation value.
Returns:
relations target object.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getRelationValues

public java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getRelationValues(RORelation pRelation,
                                                                                           javax.xml.registry.infomodel.RegistryObject pObject)
                                                                                    throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Returns the given relations values from the given registry object.

Specified by:
getRelationValues in interface ROModelAccessor
Parameters:
pRelation - The relation to read.
pObject - The object from which to read the relation values.
Returns:
relations target objects.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getRelationValues

public java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getRelationValues(ROType pType,
                                                                                           java.lang.String pRelationName,
                                                                                           javax.xml.registry.infomodel.RegistryObject pObject)
                                                                                    throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Returns the given relations values from the given registry object.

Specified by:
getRelationValues in interface ROModelAccessor
Parameters:
pType - The registry objects type.
pRelationName - The relations name.
pObject - The object from which to read the relation values.
Returns:
relations target objects.
Throws:
javax.xml.registry.JAXRException - The operation failed.

getRelationValues

public java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getRelationValues(java.lang.String pRelationName,
                                                                                           javax.xml.registry.infomodel.RegistryObject pObject)
                                                                                    throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Returns the given relations values from the given registry object.

Specified by:
getRelationValues in interface ROModelAccessor
Parameters:
pRelationName - The relations name.
pObject - The object from which to read the relation values.
Returns:
relations target objects.
Throws:
javax.xml.registry.JAXRException - The operation failed.

createInstance

public <RO extends javax.xml.registry.infomodel.RegistryObject> RO createInstance(ROType pType)
                                                                      throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Creates a registry object with the given type.

Specified by:
createInstance in interface ROModelAccessor
Type Parameters:
RO - The type of the returned instance depends on the given registry object type. For example, it will be Organization, if the type is LifeCycleManager.ORGANIZATION, User in the case of LifeCycleManager.USER, or RegistryEntry for LifeCycleManager.REGISTRY_ENTRY or a custom object type.
Parameters:
pType - The registry object type.
Returns:
The created registry object instance.
Throws:
javax.xml.registry.JAXRException - The operation failed.

createInstance

public <RO extends javax.xml.registry.infomodel.RegistryObject> RO createInstance(QName pType)
                                                                      throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Creates a registry object with the given type.

Specified by:
createInstance in interface ROModelAccessor
Type Parameters:
RO - The type of the returned instance depends on the given registry object type. For example, it will be Organization, if the type is LifeCycleManager.ORGANIZATION, User in the case of LifeCycleManager.USER, or RegistryEntry for LifeCycleManager.REGISTRY_ENTRY or a custom object type.
Parameters:
pType - The registry object type.
Returns:
The created registry object instance.
Throws:
javax.xml.registry.JAXRException - The operation failed.

createInstance

public <RO extends javax.xml.registry.infomodel.RegistryObject> RO createInstance(java.lang.String pType)
                                                                      throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Creates a registry object with the given type.

Specified by:
createInstance in interface ROModelAccessor
Type Parameters:
RO - The type of the returned instance depends on the given registry object type. For example, it will be Organization, if the type is LifeCycleManager.ORGANIZATION, User in the case of LifeCycleManager.USER, or RegistryEntry for LifeCycleManager.REGISTRY_ENTRY or a custom object type.
Parameters:
pType - The registry object type.
Returns:
The created registry object instance.
Throws:
javax.xml.registry.JAXRException - The operation failed.

prepareStatement

public CsqlStatement prepareStatement(java.lang.String pQuery)
                               throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Creates a query with the given CSQL statement.

Specified by:
prepareStatement in interface ROModelAccessor
Parameters:
pQuery - The query to perform.
Returns:
The prepared CSQL statement.
Throws:
javax.xml.registry.JAXRException - Preparing the statement failed.

executeQuery

public java.util.List<javax.xml.registry.infomodel.RegistryObject> executeQuery(java.lang.String pQuery,
                                                                                java.lang.Object... pParameters)
                                                                         throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Creates a query with the given CSQL statement, executes it, and returns the result.

Specified by:
executeQuery in interface ROModelAccessor
Parameters:
pQuery - The query to perform.
pParameters - The parameters to set on the statement.
Returns:
The prepared CSQL statement.
Throws:
javax.xml.registry.JAXRException - Preparing the statement failed.

executeArrayQuery

public java.util.List<javax.xml.registry.infomodel.RegistryObject[]> executeArrayQuery(java.lang.String pQuery,
                                                                                       java.lang.Object... pParameters)
                                                                                throws javax.xml.registry.JAXRException
Description copied from interface: ROModelAccessor
Creates a query with the given CSQL statement, executes it, and returns the result.

Specified by:
executeArrayQuery in interface ROModelAccessor
Parameters:
pQuery - The query to perform.
pParameters - The parameters to set on the statement.
Returns:
The prepared CSQL statement.
Throws:
javax.xml.registry.JAXRException - Preparing the statement failed.


Copyright © 2009-2010. All Rights Reserved.