View Javadoc
1 /* 2 * $Header: /cvsroot/ebxmlrr/ebxmlrr/src/share/com/sun/ebxml/registry/persistence/PersistenceManager.java,v 1.12 2002/09/19 06:32:56 skchonghk Exp $ 3 * 4 * Copyright (c) 1999 Sun Microsystems, Inc. All Rights Reserved. 5 * 6 * This software is the confidential and proprietary information of Sun 7 * Microsystems, Inc. ("Confidential Information"). You shall not 8 * disclose such Confidential Information and shall use it only in 9 * accordance with the terms of the license agreement you entered into 10 * with Sun. 11 * 12 * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE 13 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 14 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 15 * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES 16 * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING 17 * THIS SOFTWARE OR ITS DERIVATIVES. 18 * 19 */ 20 21 package com.sun.ebxml.registry.persistence; 22 23 import com.sun.ebxml.registry.*; 24 25 import java.util.*; 26 27 import org.oasis.ebxml.registry.bindings.rs.RegistryErrorList; 28 import org.oasis.ebxml.registry.bindings.rim.*; 29 import org.oasis.ebxml.registry.bindings.rim.types.*; 30 import org.oasis.ebxml.registry.bindings.query.*; 31 import org.oasis.ebxml.registry.bindings.query.types.*; 32 33 34 /*** 35 * Interface exposed by all PersistenceManagers. 36 * This is the contract implemented by the persistence layer o fthe 37 * registry architecture. 38 * 39 * @author Farrukh Najmi 40 */ 41 public interface PersistenceManager { 42 43 44 /*** 45 * Does a bulk insert of a heterogeneous Collection of RegistrObjects. 46 * 47 */ 48 public void insert(User user, ArrayList registryObjects) throws RegistryException; 49 50 /*** 51 * Does a bulk update of a heterogeneous Collection of RegistrObjects. 52 * 53 */ 54 public void update(User user, ArrayList registryObjects) throws RegistryException; 55 56 /*** 57 * Update the status of specified objects to the specified status. 58 * 59 */ 60 public void updateStatus(User user, ArrayList registryObjectsIds, StatusType status, RegistryErrorList el) throws RegistryException; 61 62 /*** 63 * Does a bulk delete of a heterogeneous Collection of RegistrObjects. 64 * 65 */ 66 public void delete(User user, ArrayList registryObjectsIds) throws RegistryException; 67 68 /*** 69 * Adds specified slots to specified object. 70 * 71 */ 72 public void addSlots(String objectId, ArrayList slots) throws RegistryException; 73 74 /*** 75 * Removes specified slots from specified object. 76 * 77 */ 78 public void removeSlots(String objectId, ArrayList slots) throws RegistryException; 79 80 /*** 81 *Returns ArrayList of ids of non-existent RegistryObject 82 */ 83 public ArrayList registryObjectsExist(ArrayList ids) throws RegistryException; 84 85 /*** 86 * Gets the specified object using specified id and className 87 * 88 */ 89 public RegistryObjectType getRegistryObject(String id, String className) throws RegistryException; 90 91 92 /*** 93 * Executes and SQL query using specified parameters. 94 * 95 * @return An ArrayList of RegistryObjectType instances 96 */ 97 public ArrayList executeSQLQuery(String sqlQuery, ResponseOption responseOption, String tableName, ArrayList objectRefs) throws RegistryException; 98 99 /*** 100 Get a HashMap with registry object id as key and owner id as value 101 */ 102 public HashMap getOwnersMap(ArrayList ids) throws RegistryException; 103 104 }

This page was automatically generated by Maven