public class PreparedDelete<T> extends AbstractPreparedQuery<T>
AbstractPreparedQuery.ResultSetConsumercascade, mappingDelete, mappingDeleteAll, mappingInsert, mappingSelect| Constructor and Description |
|---|
PreparedDelete(Class<T> clazz,
Connection connection,
Cascade cascade)
Creates a PreparedStatement for a delete query.
|
| Modifier and Type | Method and Description |
|---|---|
protected static <S> void |
delete(S objectToDelete,
Connection connection,
Cascade cascade) |
void |
execute(T objectToDelete)
Executes a prepared delete statement on element objectToDelete.
|
handleId, prepareDelete, prepareInsert, prepareSelectexecuteQuery, executeQuery, getConnectionpublic PreparedDelete(Class<T> clazz, Connection connection, Cascade cascade)
clazz - Class corresponding to the table where a entry should be
deletedconnection - Database connectioncascade - Rule how referenced objects should be threaded @
SQLException in case of an errorpublic void execute(T objectToDelete)
objectToDelete - Object that gets deleted @ SQLException in case of an
errorprotected static <S> void delete(S objectToDelete,
Connection connection,
Cascade cascade)
Copyright © 2019. All rights reserved.