T - the generic typepublic class PersistenceUpdateProcessor<T> extends AbstractPersistenceProcessor
| Constructor and Description |
|---|
PersistenceUpdateProcessor(IEntityManagerInterceptor entityManagerInterceptor)
Instantiates a new persistence update processor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
generateScript(Connection connection,
PersistenceTableModel tableModel)
Generate script.
|
protected boolean |
shouldSetColumnValue(PersistenceTableColumnModel columnModel)
Should set column value.
|
int |
update(Connection connection,
PersistenceTableModel tableModel,
T pojo)
Update.
|
closePreparedStatement, getEntityManagerInterceptor, getPrimaryKey, getPrimaryKeyModel, getValueFromPojo, openPreparedStatement, setEntityManagerInterceptor, setValue, setValue, setValuePrimaryKey, setValuesFromPojo, setValueToPojo, setValueToPojopublic PersistenceUpdateProcessor(IEntityManagerInterceptor entityManagerInterceptor)
entityManagerInterceptor - the entity manager interceptorprotected String generateScript(Connection connection, PersistenceTableModel tableModel)
AbstractPersistenceProcessorgenerateScript in class AbstractPersistenceProcessorconnection - the connectiontableModel - the table modelpublic int update(Connection connection, PersistenceTableModel tableModel, T pojo) throws PersistenceException
connection - the connectiontableModel - the table modelpojo - the pojoPersistenceException - the persistence exceptionprotected boolean shouldSetColumnValue(PersistenceTableColumnModel columnModel)
AbstractPersistenceProcessorshouldSetColumnValue in class AbstractPersistenceProcessorcolumnModel - the column modelCopyright © 2010–2018 Eclipse Foundation. All rights reserved.