01: package com.ibm.emb.meb.test.ejb;
02:
03: import javax.ejb.CreateException;
04: import javax.ejb.EJBObject;
05: import javax.ejb.FinderException;
06: import javax.ejb.RemoveException;
07: import javax.emb.MediaException;
08: import javax.emb.MediaFormat;
09: import javax.naming.NamingException;
10:
11: import com.ibm.emb.meb.wrapper.MetaDataEntityWrapper;
12:
13: /**
14: * Remote interface for Enterprise Bean: TestDriver
15: */
16: public interface MetaDataEntityLocalTestDriver extends EJBObject,
17: MetaDataEntityWrapper {
18:
19: public static int NULLPOINTER = 1;
20:
21: public static int VERSIONCHAININTEGRITY = 2;
22:
23: public static int FINDER = 3;
24:
25: public static int METADATAVALIDATION = 4;
26:
27: public static int METADATASYNTAX = 5;
28:
29: public static int MALFORMEDQUERY = 6;
30:
31: public static int UNSUPPORTEDQUERYLANG = 7;
32:
33: public static int ILLEGALOPTION = 8;
34:
35: public int addChildExceptions(String pk, String childpk)
36: throws NamingException, FinderException, MediaException,
37: java.rmi.RemoteException;
38:
39: public int addMediaExceptions(String pk, String mebpk)
40: throws NamingException, FinderException, MediaException,
41: java.rmi.RemoteException;
42:
43: public int retrieveSupportedOptionsExceptions(String queryLanguage)
44: throws NamingException, MediaException,
45: java.rmi.RemoteException;
46:
47: public int getMediaByFormatExceptions(String pk,
48: MediaFormat format, boolean searchChildren)
49: throws NamingException, FinderException, MediaException,
50: java.rmi.RemoteException;
51:
52: public int getMediaByMimeTypeExceptions(String pk, String mimeType,
53: boolean searchChildren) throws NamingException,
54: FinderException, MediaException, java.rmi.RemoteException;
55:
56: public int removeChildExceptions(String pk, String childpk)
57: throws FinderException, NamingException, MediaException,
58: java.rmi.RemoteException;
59:
60: public int removeMediaExceptions(String pk, String mebpk)
61: throws NamingException, FinderException, MediaException,
62: java.rmi.RemoteException;
63:
64: public int setNameExceptions(String pk, String name)
65: throws FinderException, NamingException, MediaException,
66: java.rmi.RemoteException;
67:
68: public int setXMLExceptions(String pk, String xml, boolean validate)
69: throws MediaException, FinderException, NamingException,
70: java.rmi.RemoteException;
71:
72: public int findByPKExceptions(String pk) throws NamingException,
73: java.rmi.RemoteException;
74:
75: public int queryExceptions(String query, String queryLanguage,
76: java.util.Map options) throws MediaException,
77: NamingException, java.rmi.RemoteException;
78:
79: public String createMediaSetName(String name)
80: throws NamingException, CreateException, MediaException,
81: java.rmi.RemoteException;
82:
83: public void bindMediaFormat(String fileExt, MediaFormat format)
84: throws MediaException, java.rmi.RemoteException;
85:
86: public int setPreviousVersionExceptions(String pk, String prevpk)
87: throws MediaException, FinderException, NamingException,
88: java.rmi.RemoteException;
89:
90: public void removeMEBByPK(String pk) throws NamingException,
91: FinderException, RemoveException, java.rmi.RemoteException;
92:
93: public void removeMDEBByPK(String pk) throws NamingException,
94: FinderException, RemoveException, java.rmi.RemoteException;
95:
96: public int getXMLExceptions(String pk) throws NamingException,
97: FinderException, MediaException, java.rmi.RemoteException;
98: }
|