KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > cmp2 > lob > LOB


1 /*
2 * JBoss, Home of Professional Open Source
3 * Copyright 2005, JBoss Inc., and individual contributors as indicated
4 * by the @authors tag. See the copyright.txt in the distribution for a
5 * full listing of individual contributors.
6 *
7 * This is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU Lesser General Public License as
9 * 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 JavaDoc;
25 import java.util.Map JavaDoc;
26 import java.util.List JavaDoc;
27 import java.util.Set JavaDoc;
28 import javax.ejb.EJBObject JavaDoc;
29
30 /**
31  * Renote interface for a LOBBean.
32  *
33  * @see javax.ejb.EJBObject
34  *
35  * @version <tt>$Revision: 56720 $</tt>
36  * @author <a HREF="mailto:steve@resolvesw.com">Steve Coy</a>
37  * @author <a HREF="mailto:alex@jboss.org">Alexey Loubyansky</a>
38  */

39 public interface LOB extends EJBObject JavaDoc
40 {
41    /**
42     * Returns the primary key
43     * @return Integer
44     */

45    public Integer JavaDoc getId() throws RemoteException JavaDoc;
46
47    /**
48     * Sets the primary key.
49     * @param id
50     */

51    public void setId(Integer JavaDoc id) throws RemoteException JavaDoc;
52
53    /**
54     * Returns the large string attribute.
55     * @return String
56     */

57    public String JavaDoc getBigString() throws RemoteException JavaDoc;
58
59    /**
60     * Sets the value of the large string attribute.
61     * The idea here is to store it in a CLOB object in associated database table
62     * so that we can check the container's LOB functionality properly.
63     * @param s
64     */

65    public void setBigString(String JavaDoc s) throws RemoteException JavaDoc;
66
67    /**
68     * Returns the content of the large binary object.
69     * @return byte[]
70     */

71    public byte[] getBinaryData() throws RemoteException JavaDoc;
72
73    /**
74     * Sets the content of the large binary object.
75     * The idea here is to store it in a BLOB objects in the associated database
76     * table so that we check the container's LOB functionality properly.
77     * @param data
78     */

79    public void setBinaryData(byte[] data) throws RemoteException JavaDoc;
80
81    public Object JavaDoc getObjectField() throws RemoteException JavaDoc;
82    public void setObjectField(Object JavaDoc obj) throws RemoteException JavaDoc;
83
84    Map JavaDoc getMapField() throws RemoteException JavaDoc;
85    void setMapField(Map JavaDoc map) throws RemoteException JavaDoc;
86
87    List JavaDoc getListField() throws RemoteException JavaDoc;
88    void setListField(List JavaDoc list) throws RemoteException JavaDoc;
89
90    Set JavaDoc getSetField() throws RemoteException JavaDoc;
91    void setSetField(Set JavaDoc set) throws RemoteException JavaDoc;
92
93    ValueHolder getValueHolder() throws RemoteException JavaDoc;
94    void setValueHolder(ValueHolder valueHolder) throws RemoteException JavaDoc;
95
96    ValueHolder getCleanGetValueHolder() throws RemoteException JavaDoc;
97    void setCleanGetValueHolder(ValueHolder valueHolder) throws RemoteException JavaDoc;
98
99    ValueHolder getStateFactoryValueHolder() throws RemoteException JavaDoc;
100    void setStateFactoryValueHolder(ValueHolder valueHolder) throws RemoteException JavaDoc;
101 }
102
Popular Tags