public class SimpleNonStandardOperations extends StatementHelper
| Modifier and Type | Field and Description |
|---|---|
private Address |
address |
private Customer |
customer |
private OERandom |
rand |
conn| Constructor and Description |
|---|
SimpleNonStandardOperations(java.sql.Connection conn,
int isolation) |
| Modifier and Type | Method and Description |
|---|---|
void |
customerAddressChange(int scale)
Execute customerAddressChange() with random parameters.
|
void |
customerAddressChange(short w,
short d,
int c)
Update a customers address with a new random value.
|
void |
customerInquiry(int scale)
Execute customerInquiry() with random parameters.
|
void |
customerInquiry(short w,
short d,
int c)
Lookup a customer's information (name, address, balance)
fetching it by the identifier.
|
static SimpleNonStandardOperations |
noReset(java.sql.Connection conn,
int isolation)
Return an SimpleNonStandardOperations implementation based upon
SimpleNonStandardOperations with a single difference.
|
close, getAddress, getAddress, prepareStatement, resetprivate final Customer customer
private final Address address
private final OERandom rand
public SimpleNonStandardOperations(java.sql.Connection conn,
int isolation)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static SimpleNonStandardOperations noReset(java.sql.Connection conn, int isolation) throws java.sql.SQLException
Each ResultSet will be closed implicitly either at commit time or at the next execution of the same PreparedStatement object.
java.sql.SQLExceptionpublic void customerInquiry(int scale)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void customerInquiry(short w,
short d,
int c)
throws java.sql.SQLException
w - Warehouse for customerd - District for customerc - Customer identifierjava.sql.SQLExceptionpublic void customerAddressChange(int scale)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void customerAddressChange(short w,
short d,
int c)
throws java.sql.SQLException
w - Warehouse for customerd - District for customerc - Customer identifierjava.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.