OrderCRUD Class
- public class OrderCRUD
extends Object
CRUD for entity bean Order
-
Hierarchy
-
Object
OrderCRUD
public static void |
-
create (Connection connection, Object key)
- Creates a single row in the database, ONLY using primary key information.
|
public static void |
-
delete (Connection connection, Object key)
- Deletes a single row in the database, ONLY using primary key information.
|
public static boolean |
-
exists (Connection connection, Object key)
- Deletes a single row in the database, ONLY using primary key information.
|
public static Collection |
-
findByCustomer (Connection connection, String identifier)
|
public static Collection |
-
findByDate (Connection connection, Date from, Date to)
|
public static Collection |
-
findByStatus (Connection connection, String status)
|
public static void |
-
refresh (Connection connection, Object key, Object target)
- Updates the datbase, using using primary key information in the where clause.
|
public static void |
-
refreshDirect (Connection connection, Object key, Object target)
- Refresh from database, using primary key information in the where clause.
|
public static void |
-
update (Connection connection, Object key, Object source)
- Updates the datbase, using using primary key information in the where clause.
|
public static void |
-
updateDirect (Connection connection, Object key, Object source)
- Updates the database, using primary key information in the where clause.
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderCRUD
public OrderCRUD()
create(Connection, Object) Method
public static void create(Connection
connection,
Object
key)
throws BMPException
Creates a single row in the database, ONLY using primary key information.
The database provides well-defined default values for the non-null fields.
Parameters
-
connection
- the database connection
-
key
- for belongings, this is the Impl class for the belonging. for entity beans, this is the primary key class.
Exceptions
-
BMPException
delete(Connection, Object) Method
public static void delete(Connection
connection,
Object
key)
throws BMPException
Deletes a single row in the database, ONLY using primary key information.
Parameters
-
connection
- the database connection
-
key
- for belongings, this is the Impl class for the belonging. for entity beans, this is the primary key class.
Exceptions
-
BMPException
exists(Connection, Object) Method
public static boolean exists(Connection
connection,
Object
key)
throws BMPException
Deletes a single row in the database, ONLY using primary key information.
Parameters
-
connection
- the database connection
-
key
- for belongings, this is the Impl class for the belonging. for entity beans, this is the primary key class.
Exceptions
-
BMPException
findByCustomer(Connection, String) Method
public static Collection
findByCustomer(Connection
connection,
String
identifier)
throws BMPException
Exceptions
-
BMPException
findByDate(Connection, Date, Date) Method
public static Collection
findByDate(Connection
connection,
Date
from,
Date
to)
throws BMPException
Exceptions
-
BMPException
findByStatus(Connection, String) Method
public static Collection
findByStatus(Connection
connection,
String
status)
throws BMPException
Exceptions
-
BMPException
refresh(Connection, Object, Object) Method
public static void refresh(Connection
connection,
Object
key,
Object
target)
throws BMPException
Updates the datbase, using using primary key information in the where clause.
Parameters
-
connection
- the database connection
-
key
- for belongings, this is the Impl class for the belonging. for entity beans, this is the primary key class.
Exceptions
-
BMPException
refreshDirect(Connection, Object, Object) Method
public static void refreshDirect(Connection
connection,
Object
key,
Object
target)
throws BMPException
Refresh from database, using primary key information in the where clause.
Parameters
-
connection
- the database connection
-
key
- for belongings, this is the Impl class for the belonging. for entity beans, this is the primary key class.
Exceptions
-
BMPException
update(Connection, Object, Object) Method
public static void update(Connection
connection,
Object
key,
Object
source)
throws BMPException
Updates the datbase, using using primary key information in the where clause.
Parameters
-
connection
- the database connection
-
key
- for belongings, this is the Impl class for the belonging. for entity beans, this is the primary key class.
Exceptions
-
BMPException
updateDirect(Connection, Object, Object) Method
public static void updateDirect(Connection
connection,
Object
key,
Object
source)
throws BMPException
Updates the database, using primary key information in the where clause.
Parameters
-
connection
- the database connection
-
key
- for belongings, this is the Impl class for the belonging. for entity beans, this is the primary key class.
Exceptions
-
BMPException