T - the generic typepublic class PersistenceDeleteProcessor<T> extends AbstractPersistenceProcessor
| Constructor and Description |
|---|
PersistenceDeleteProcessor(IEntityManagerInterceptor entityManagerInterceptor)
Instantiates a new persistence delete processor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
delete(Connection connection,
PersistenceTableModel tableModel,
Class<T> clazz,
Object id)
Delete.
|
int |
deleteAll(Connection connection,
PersistenceTableModel tableModel,
Class<T> clazz)
Delete all.
|
protected String |
generateScript(Connection connection,
PersistenceTableModel tableModel)
Generate script.
|
protected String |
generateScriptDelete(Connection connection,
PersistenceTableModel tableModel)
Generate script delete.
|
protected String |
generateScriptDeleteAll(Connection connection,
PersistenceTableModel tableModel)
Generate script delete all.
|
closePreparedStatement, getEntityManagerInterceptor, getPrimaryKey, getPrimaryKeyModel, getValueFromPojo, openPreparedStatement, setEntityManagerInterceptor, setValue, setValue, setValuePrimaryKey, setValuesFromPojo, setValueToPojo, setValueToPojo, shouldSetColumnValuepublic PersistenceDeleteProcessor(IEntityManagerInterceptor entityManagerInterceptor)
entityManagerInterceptor - the entity manager interceptorprotected String generateScript(Connection connection, PersistenceTableModel tableModel)
AbstractPersistenceProcessorgenerateScript in class AbstractPersistenceProcessorconnection - the connectiontableModel - the table modelprotected String generateScriptDelete(Connection connection, PersistenceTableModel tableModel)
connection - the connectiontableModel - the table modelprotected String generateScriptDeleteAll(Connection connection, PersistenceTableModel tableModel)
connection - the connectiontableModel - the table modelpublic int delete(Connection connection, PersistenceTableModel tableModel, Class<T> clazz, Object id) throws PersistenceException
connection - the connectiontableModel - the table modelclazz - the clazzid - the idPersistenceException - the persistence exceptionpublic int deleteAll(Connection connection, PersistenceTableModel tableModel, Class<T> clazz) throws PersistenceException
connection - the connectiontableModel - the table modelclazz - the clazzPersistenceException - the persistence exceptionCopyright © 2010–2018 Eclipse Foundation. All rights reserved.