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, reset
private 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.SQLException
public 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.SQLException
public void customerInquiry(int scale) throws java.sql.SQLException
java.sql.SQLException
public void customerInquiry(short w, short d, int c) throws java.sql.SQLException
w
- Warehouse for customerd
- District for customerc
- Customer identifierjava.sql.SQLException
public void customerAddressChange(int scale) throws java.sql.SQLException
java.sql.SQLException
public void customerAddressChange(short w, short d, int c) throws java.sql.SQLException
w
- Warehouse for customerd
- District for customerc
- Customer identifierjava.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.