User: mulder
Date: 00/10/19 12:56:30
Modified: src/main/org/jboss/test/dbtest/interfaces AllTypes.java
AllTypesHome.java
Log:
- Add a variable of type Time
- Add checks for min/max values for numeric types. Many DBs cannot
accurately represent floats, doubles, or longs. This is not
considered to be a failure, since it's a limitation of the DB not
the jBoss configuration or JAWS mapping.
- Change "Oracle" mapping to "Oracle 7". There's an "Oracle 8" mapping
forthcoming. In 7, you can only have one serialized Java object
per table, since they map to DB type long. In 8, we may be able to
get around that.
Revision Changes Path
1.2 +15 -7
jbosstest/src/main/org/jboss/test/dbtest/interfaces/AllTypes.java
Index: AllTypes.java
===================================================================
RCS file:
/products/cvs/ejboss/jbosstest/src/main/org/jboss/test/dbtest/interfaces/AllTypes.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AllTypes.java 2000/10/09 18:07:15 1.1
+++ AllTypes.java 2000/10/19 19:56:29 1.2
@@ -7,19 +7,20 @@
import javax.ejb.FinderException;
import java.util.Collection;
import java.sql.Date;
+import java.sql.Time;
import java.sql.Timestamp;
public interface AllTypes extends EJBObject {
-
+
// business methods
- public void updateAllValues(boolean aBoolean, byte aByte, short aShort, int
anInt,
- long aLong, float aFloat, double aDouble, /*char aChar,*/ String
aString,
- Date aDate, Timestamp aTimestamp, MyObject anObject ) throws
RemoteException;
-
+ public void updateAllValues(boolean aBoolean, byte aByte, short aShort, int
anInt,
+ long aLong, float aFloat, double aDouble, /*char aChar,*/ String
aString,
+ Date aDate, Time aTime, Timestamp aTimestamp, MyObject anObject )
throws RemoteException;
+
public void addObjectToList(Object anObject) throws RemoteException;
public void removeObjectFromList(Object anObject) throws RemoteException;
public Collection getObjectList() throws RemoteException;
-
+
public boolean getBoolean() throws RemoteException;
public byte getByte() throws RemoteException;
public short getShort() throws RemoteException;
@@ -30,9 +31,16 @@
//public char getChar() throws RemoteException;
public String getString() throws RemoteException;
public Date getDate() throws RemoteException;
+ public Time getTime() throws RemoteException;
public Timestamp getTimestamp() throws RemoteException;
-
+
public MyObject getObject() throws RemoteException;
+ public void setByte(byte b) throws RemoteException;
+ public void setShort(short s) throws RemoteException;
+ public void setInt(int i) throws RemoteException;
+ public void setLong(long l) throws RemoteException;
+ public void setFloat(float f) throws RemoteException;
+ public void setDouble(double d) throws RemoteException;
}
1.2 +11 -10
jbosstest/src/main/org/jboss/test/dbtest/interfaces/AllTypesHome.java
Index: AllTypesHome.java
===================================================================
RCS file:
/products/cvs/ejboss/jbosstest/src/main/org/jboss/test/dbtest/interfaces/AllTypesHome.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AllTypesHome.java 2000/10/09 18:07:16 1.1
+++ AllTypesHome.java 2000/10/19 19:56:29 1.2
@@ -7,24 +7,25 @@
import javax.ejb.FinderException;
import java.util.Collection;
import java.sql.Date;
+import java.sql.Time;
import java.sql.Timestamp;
public interface AllTypesHome extends EJBHome {
-
- public AllTypes create(String pk) throws RemoteException, CreateException;
-
- public AllTypes create(boolean aBoolean, byte aByte, short aShort, int anInt,
- long aLong, float aFloat, double aDouble, /*char aChar,*/ String
aString,
- Date aDate, Timestamp aTimestamp, MyObject anObject )
-
+
+ public AllTypes create(String pk) throws RemoteException, CreateException;
+
+ public AllTypes create(boolean aBoolean, byte aByte, short aShort, int anInt,
+ long aLong, float aFloat, double aDouble, /*char aChar,*/ String
aString,
+ Date aDate, Time aTime, Timestamp aTimestamp, MyObject anObject )
+
throws RemoteException, CreateException;
-
-
+
+
// automatically generated finders
public AllTypes findByPrimaryKey(String name)
throws RemoteException, FinderException;
-
+
public Collection findAll()
throws RemoteException, FinderException;