Package com.sun.ts.tests.common.ejb.dba
Class LongDBSupport
java.lang.Object
com.sun.ts.tests.common.ejb.dba.DBSupport
com.sun.ts.tests.common.ejb.dba.LongDBSupport
- All Implemented Interfaces:
- Serializable
DB Support object for DB table using whose primary key is an 'long'.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected longprotected 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.DBSupportdbConnection, DBLookupName, ds, nctx, prefix, tablePrefix
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcreateNewRow(long cofID, String cofName, float cofPrice) static voidinitTable(Properties props) booleankeyExists(long pkey) floatloadPrice(long pkey) voidremoveRow(long pkey) voidstorePrice(long pkey, float cofPrice) Methods inherited from class com.sun.ts.tests.common.ejb.dba.DBSupportcloseDBConnection, closeStmt, getDBConnection, getStmt, initTable
- 
Field Details- 
longTablePrefixName of the property whose value is the DB table name- See Also:
 
- 
cofIDprotected long cofID
- 
cofName
- 
cofPriceprotected float cofPrice
 
- 
- 
Constructor Details- 
LongDBSupportCreate 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
 
- 
createNewRowpublic void createNewRow(long cofID, String cofName, float cofPrice) throws jakarta.ejb.CreateException, SQLException - Throws:
- jakarta.ejb.CreateException
- SQLException
 
- 
loadPrice- Throws:
- SQLException
 
- 
storePrice- Throws:
- SQLException
 
- 
removeRow- Throws:
- SQLException
 
 
-