Package com.sun.ts.tests.common.ejb.dba
Class FloatDBSupport
java.lang.Object
com.sun.ts.tests.common.ejb.dba.DBSupport
com.sun.ts.tests.common.ejb.dba.FloatDBSupport
- All Implemented Interfaces:
Serializable
DB Support object for DB table using whose primary key is an 'float'.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected Stringprotected floatprotected static final StringName of the property whose value is the DB table nameFields inherited from class com.sun.ts.tests.common.ejb.dba.DBSupport
dbConnection, DBLookupName, ds, nctx, prefix, tablePrefix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateNewRow(float cofID, String cofName, float cofPrice) static voidinitTable(Properties props) booleankeyExists(float pkey) floatloadPrice(float pkey) voidremoveRow(float pkey) voidstorePrice(float pkey, float cofPrice) Methods inherited from class com.sun.ts.tests.common.ejb.dba.DBSupport
closeDBConnection, closeStmt, getDBConnection, getStmt, initTable
-
Field Details
-
floatTablePrefix
Name of the property whose value is the DB table name- See Also:
-
cofID
protected float cofID -
cofName
-
cofPrice
protected float cofPrice
-
-
Constructor Details
-
FloatDBSupport
Create a new DBSupport object. If called from an EJB or a Web component, you must make sure to call TestUtil.init() before creating a new DBSupport object.- Throws:
Exception
-
-
Method Details
-
initTable
- Throws:
Exception
-
keyExists
- Throws:
SQLException
-
createNewRow
public void createNewRow(float cofID, String cofName, float cofPrice) throws jakarta.ejb.CreateException, SQLException - Throws:
jakarta.ejb.CreateExceptionSQLException
-
loadPrice
- Throws:
SQLException
-
storePrice
- Throws:
SQLException
-
removeRow
- Throws:
SQLException
-