public interface BatchHandler<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
addObject(T object)
Adds an object to the BatchHandler.
|
void |
deleteObject(T object)
Deletes an object.
|
T |
findObject(T arg)
Retrieves an object, using the unique columns of the given object as argument.
|
void |
flush()
Flushes the BatchHandler by executing a potential remaining statement, and
closing the underlying statement object and the database connection.
|
JdbcConfiguration |
getConfiguration()
Returns the current JdbcConfiguration.
|
BatchHandler<T> |
init()
Initializes the BatchHandler by acquiring a database connection, creating a
statement object and initializing a SQL statement.
|
boolean |
objectExists(T object)
Checks whether this object exists in the database or not.
|
void |
updateObject(T object)
Updates an object.
|
BatchHandler<T> init()
JdbcConfiguration getConfiguration()
boolean addObject(T object)
object - the object to add.T findObject(T arg)
arg - the argument object, identifier properties must be populated.void updateObject(T object)
object - the object to update.void deleteObject(T object)
object - the object to delete.boolean objectExists(T object)
object - the object to check.void flush()
Copyright © 2016 UiO. All rights reserved.