01: /*
02: * JBoss, Home of Professional Open Source.
03: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
04: * as indicated by the @author tags. See the copyright.txt file in the
05: * distribution for a full listing of individual contributors.
06: *
07: * This is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU Lesser General Public License as
09: * published by the Free Software Foundation; either version 2.1 of
10: * the License, or (at your option) any later version.
11: *
12: * This software is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this software; if not, write to the Free
19: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21: */
22: package org.jboss.test.cmp2.lob;
23:
24: import java.rmi.RemoteException;
25: import java.util.Map;
26: import java.util.Set;
27: import java.util.List;
28:
29: /**
30: *
31: * @author <a href="mailto:alex@jboss.org">Alexey Loubyansky</a>
32: */
33: public interface Facade extends javax.ejb.EJBObject {
34: public void createLOB(Integer id) throws Exception, RemoteException;
35:
36: public void removeLOB(Integer id) throws Exception, RemoteException;
37:
38: public void addMapEntry(Integer id, Object key, Object value)
39: throws Exception, RemoteException;
40:
41: public Map getMapField(Integer id) throws Exception,
42: RemoteException;
43:
44: public void addSetElement(Integer id, Object value)
45: throws Exception, RemoteException;
46:
47: public Set getSetField(Integer id) throws Exception,
48: RemoteException;
49:
50: public void addListElement(Integer id, Object value)
51: throws Exception, RemoteException;
52:
53: public List getListField(Integer id) throws Exception,
54: RemoteException;
55:
56: public void setBinaryData(Integer id, byte[] value)
57: throws Exception, RemoteException;
58:
59: public void setBinaryDataElement(Integer id, int index, byte value)
60: throws Exception, RemoteException;
61:
62: public byte getBinaryDataElement(Integer id, int index)
63: throws Exception, RemoteException;
64:
65: public void setValueHolderValue(Integer id, String value)
66: throws Exception, RemoteException;
67:
68: public String getValueHolderValue(Integer id) throws Exception,
69: RemoteException;
70:
71: public void setCleanGetValueHolderValue(Integer id, String value)
72: throws Exception, RemoteException;
73:
74: public void modifyCleanGetValueHolderValue(Integer id, String value)
75: throws Exception, RemoteException;
76:
77: public String getCleanGetValueHolderValue(Integer id)
78: throws Exception, RemoteException;
79:
80: public String getStateFactoryValueHolderValue(Integer id)
81: throws Exception, RemoteException;
82:
83: public void setStateFactoryValueHolderValue(Integer id, String value)
84: throws Exception, RemoteException;
85:
86: public void modifyStateFactoryValueHolderValue(Integer id,
87: String value) throws Exception, RemoteException;
88: }
|