001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.test.cmp2.simple;
023:
024: import java.math.BigDecimal;
025: import java.sql.Time;
026: import java.sql.Timestamp;
027: import java.util.Hashtable;
028: import javax.ejb.EJBLocalObject;
029:
030: public interface Simple extends EJBLocalObject {
031: public String getId();
032:
033: public ValueClass getValueClass();
034:
035: public void setValueClass(ValueClass vc);
036:
037: public boolean getBooleanPrimitive();
038:
039: public void setBooleanPrimitive(boolean b);
040:
041: public Boolean getBooleanObject();
042:
043: public void setBooleanObject(Boolean b);
044:
045: public byte getBytePrimitive();
046:
047: public void setBytePrimitive(byte b);
048:
049: public Byte getByteObject();
050:
051: public void setByteObject(Byte b);
052:
053: public short getShortPrimitive();
054:
055: public void setShortPrimitive(short s);
056:
057: public Short getShortObject();
058:
059: public void setShortObject(Short s);
060:
061: public int getIntegerPrimitive();
062:
063: public void setIntegerPrimitive(int i);
064:
065: public Integer getIntegerObject();
066:
067: public void setIntegerObject(Integer i);
068:
069: public long getLongPrimitive();
070:
071: public void setLongPrimitive(long l);
072:
073: public Long getLongObject();
074:
075: public void setLongObject(Long l);
076:
077: public float getFloatPrimitive();
078:
079: public void setFloatPrimitive(float f);
080:
081: public Float getFloatObject();
082:
083: public void setFloatObject(Float f);
084:
085: public double getDoublePrimitive();
086:
087: public void setDoublePrimitive(double d);
088:
089: public Double getDoubleObject();
090:
091: public void setDoubleObject(Double d);
092:
093: public String getStringValue();
094:
095: public void setStringValue(String s);
096:
097: public java.util.Date getUtilDateValue();
098:
099: public void setUtilDateValue(java.util.Date d);
100:
101: public void updateUtilDateValue(java.util.Date d);
102:
103: public java.sql.Date getSqlDateValue();
104:
105: public void setSqlDateValue(java.sql.Date d);
106:
107: public Time getTimeValue();
108:
109: public void setTimeValue(Time t);
110:
111: public Timestamp getTimestampValue();
112:
113: public void setTimestampValue(Timestamp t);
114:
115: public java.math.BigDecimal getBigDecimalValue();
116:
117: public void setBigDecimalValue(java.math.BigDecimal d);
118:
119: public byte[] getByteArrayValue();
120:
121: public void setByteArrayValue(byte[] bytes);
122:
123: public Object getObjectValue();
124:
125: public void setObjectValue(Object t);
126:
127: public void addToHashtable(String key, String value);
128:
129: public Hashtable getHashtable();
130:
131: public void setHashtable(Hashtable t);
132: }
|