|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceRegistry
The ServiceRegistry allows you to create, update, delete, query, and retrieve objects from the Service Registry.
The ServiceRegistry interface is available via a Stateless Session Bean.
It is recommended that you set up an EJB reference to the Session Bean
in the J2EE container in which you are running your code.
The reference name should be ejb/ServiceRegistrySession
See the Information Center for the JNDI name to use.
To get the ejb home use the following code
try {
// look up remote home
ServiceRegistrySessionHome ejbHome = (ServiceRegistrySessionHome) PortableRemoteObject
.narrow(context.lookup("ejb/ServiceRegistrySession"), ServiceRegistrySessionHome.class);
} catch (ClassCastException e) {
// do nothing
} catch (NamingException e) {
// do nothing
}
Currently you should make sure the following jars are in the client classpath
sdo-int.jar This has to be as high up the classpath as possible to be in front
of any SDO 1 interfaces.
ServiceRegistryClient.jar
The appropriate jar files from a J2EE runtime
Field Summary | |
---|---|
static java.lang.String |
copyrightStatement
|
Method Summary | |
---|---|
java.lang.String |
create(OriginalObject originalObject)
Save an OriginalObject to the Service Registry. |
java.lang.String |
createSCAModule(byte[] content)
Create an SCAModule by passing the byte[], representing the SCAModule. |
void |
delete(java.util.List bsrURIs)
Delete a list of objects from the repository given a List of bsrUris. |
void |
delete(java.lang.String bsrURI)
Delete an object from ServiceRegistry using the bsrURI |
java.util.List |
executeNamedQuery(java.lang.String name)
Execute a named stored query |
java.util.List |
executeNamedQuery(java.lang.String name,
java.lang.Object[] params)
Execute a named stored query with parameters |
java.util.List |
executeQuery(QueryObject query)
Execute a GraphQuery or PropertyQuery |
java.util.List |
loadZipFile(byte[] zipFile)
Load the contents of a zip file into the Service Registry. |
BaseObject |
retrieve(java.lang.String bsrURI)
Retrieve a BaseObject using the bsrURI. |
BaseObject |
retrieve(java.lang.String bsrURI,
int depth)
Retrieve a BaseObject using the object id and a depth value of 0, 1 or -1. |
BaseObject |
retrieve(java.lang.String bsrURI,
Options options)
Retrieve a BaseObject using the object id and a set of options. |
void |
update(BaseObject object)
Update a BaseObject. |
void |
update(java.util.List objects)
Update a list of BaseObjects This is done under a transaction, so if a failure occurs, the changes will be rolled back - The list of objects to update |
Field Detail |
---|
static final java.lang.String copyrightStatement
Method Detail |
---|
java.lang.String create(OriginalObject originalObject) throws ServiceRegistryException
originalObject
- - The OriginalObject to be saved.
ServiceRegistryException
- (More specific later)java.util.List loadZipFile(byte[] zipFile) throws ServiceRegistryException
zipFile
- - A byte array representation of a zip file
ServiceRegistryException
BaseObject retrieve(java.lang.String bsrURI) throws ServiceRegistryException
bsrURI
- - A bsrURI of a Service Registry Object
ServiceRegistryException
BaseObject retrieve(java.lang.String bsrURI, int depth) throws ServiceRegistryException
bsrURI
- - A bsrURI of a ServiceRegistryObjectdepth
- - The depth of DataGraph in the returned object
ServiceRegistryException
BaseObject retrieve(java.lang.String bsrURI, Options options) throws ServiceRegistryException
bsrURI
- - A bsrURI of a ServiceRegistryObjectoptions
- - An Options object
ServiceRegistryException
void update(BaseObject object) throws ServiceRegistryException
object
- - The BaseObject to update
ServiceRegistryException
void update(java.util.List objects) throws ServiceRegistryException
objects
- A List of BaseObjects
ServiceRegistryException
void delete(java.lang.String bsrURI) throws ServiceRegistryException
bsrURI
- - The bsrURI of the object to be deleted.
ServiceRegistryException
void delete(java.util.List bsrURIs) throws ServiceRegistryException
bsrURIs
- The list of bsrURIs
ServiceRegistryException
java.util.List executeNamedQuery(java.lang.String name) throws ServiceRegistryException
name
- The name of the query
ServiceRegistryException
java.util.List executeNamedQuery(java.lang.String name, java.lang.Object[] params) throws ServiceRegistryException
name
- The name of the queryparams
- The correctly ordered parameters. These should be String parameters
ServiceRegistryException
java.util.List executeQuery(QueryObject query) throws ServiceRegistryException
query
- The query to run
ServiceRegistryException
java.lang.String createSCAModule(byte[] content) throws ServiceRegistryException
content
-
ServiceRegistryException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |