com.sun.ebxml.registry.persistence
Interface PersistenceManager

All Known Implementing Classes:
PersistenceManagerImpl, SQLPersistenceManagerImpl

public interface PersistenceManager

Interface exposed by all PersistenceManagers. This is the contract implemented by the persistence layer o fthe registry architecture.


Method Summary
 void addSlots(java.lang.String objectId, java.util.ArrayList slots)
          Adds specified slots to specified object.
 void delete(org.oasis.ebxml.registry.bindings.rim.User user, java.util.ArrayList registryObjectsIds)
          Does a bulk delete of a heterogeneous Collection of RegistrObjects.
 java.util.ArrayList executeSQLQuery(java.lang.String sqlQuery, org.oasis.ebxml.registry.bindings.query.ResponseOption responseOption, java.lang.String tableName, java.util.ArrayList objectRefs)
          Executes and SQL query using specified parameters.
 java.util.HashMap getOwnersMap(java.util.ArrayList ids)
          Get a HashMap with registry object id as key and owner id as value
 org.oasis.ebxml.registry.bindings.rim.RegistryObjectType getRegistryObject(java.lang.String id, java.lang.String className)
          Gets the specified object using specified id and className
 void insert(org.oasis.ebxml.registry.bindings.rim.User user, java.util.ArrayList registryObjects)
          Does a bulk insert of a heterogeneous Collection of RegistrObjects.
 java.util.ArrayList registryObjectsExist(java.util.ArrayList ids)
          Returns ArrayList of ids of non-existent RegistryObject
 void removeSlots(java.lang.String objectId, java.util.ArrayList slots)
          Removes specified slots from specified object.
 void update(org.oasis.ebxml.registry.bindings.rim.User user, java.util.ArrayList registryObjects)
          Does a bulk update of a heterogeneous Collection of RegistrObjects.
 void updateStatus(org.oasis.ebxml.registry.bindings.rim.User user, java.util.ArrayList registryObjectsIds, org.oasis.ebxml.registry.bindings.rim.types.StatusType status, org.oasis.ebxml.registry.bindings.rs.RegistryErrorList el)
          Update the status of specified objects to the specified status.
 

Method Detail

insert

public void insert(org.oasis.ebxml.registry.bindings.rim.User user,
                   java.util.ArrayList registryObjects)
            throws RegistryException
Does a bulk insert of a heterogeneous Collection of RegistrObjects.

Throws:
RegistryException

update

public void update(org.oasis.ebxml.registry.bindings.rim.User user,
                   java.util.ArrayList registryObjects)
            throws RegistryException
Does a bulk update of a heterogeneous Collection of RegistrObjects.

Throws:
RegistryException

updateStatus

public void updateStatus(org.oasis.ebxml.registry.bindings.rim.User user,
                         java.util.ArrayList registryObjectsIds,
                         org.oasis.ebxml.registry.bindings.rim.types.StatusType status,
                         org.oasis.ebxml.registry.bindings.rs.RegistryErrorList el)
                  throws RegistryException
Update the status of specified objects to the specified status.

Throws:
RegistryException

delete

public void delete(org.oasis.ebxml.registry.bindings.rim.User user,
                   java.util.ArrayList registryObjectsIds)
            throws RegistryException
Does a bulk delete of a heterogeneous Collection of RegistrObjects.

Throws:
RegistryException

addSlots

public void addSlots(java.lang.String objectId,
                     java.util.ArrayList slots)
              throws RegistryException
Adds specified slots to specified object.

Throws:
RegistryException

removeSlots

public void removeSlots(java.lang.String objectId,
                        java.util.ArrayList slots)
                 throws RegistryException
Removes specified slots from specified object.

Throws:
RegistryException

registryObjectsExist

public java.util.ArrayList registryObjectsExist(java.util.ArrayList ids)
                                         throws RegistryException
Returns ArrayList of ids of non-existent RegistryObject

Throws:
RegistryException

getRegistryObject

public org.oasis.ebxml.registry.bindings.rim.RegistryObjectType getRegistryObject(java.lang.String id,
                                                                                  java.lang.String className)
                                                                           throws RegistryException
Gets the specified object using specified id and className

Throws:
RegistryException

executeSQLQuery

public java.util.ArrayList executeSQLQuery(java.lang.String sqlQuery,
                                           org.oasis.ebxml.registry.bindings.query.ResponseOption responseOption,
                                           java.lang.String tableName,
                                           java.util.ArrayList objectRefs)
                                    throws RegistryException
Executes and SQL query using specified parameters.

Returns:
An ArrayList of RegistryObjectType instances
Throws:
RegistryException

getOwnersMap

public java.util.HashMap getOwnersMap(java.util.ArrayList ids)
                               throws RegistryException
Get a HashMap with registry object id as key and owner id as value

Throws:
RegistryException