T - the entity typepublic class PersistenceInsertProcessor<T> extends AbstractPersistenceProcessor
| Constructor and Description |
|---|
PersistenceInsertProcessor(IEntityManagerInterceptor entityManagerInterceptor)
Instantiates a new persistence insert processor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
generateScript(Connection connection,
PersistenceTableModel tableModel)
Generate script.
|
Object |
insert(Connection connection,
PersistenceTableModel tableModel,
T pojo)
Insert.
|
closePreparedStatement, getEntityManagerInterceptor, getPrimaryKey, getPrimaryKeyModel, getValueFromPojo, openPreparedStatement, setEntityManagerInterceptor, setValue, setValue, setValuePrimaryKey, setValuesFromPojo, setValueToPojo, setValueToPojo, shouldSetColumnValuepublic PersistenceInsertProcessor(IEntityManagerInterceptor entityManagerInterceptor)
entityManagerInterceptor - the entity manager interceptorprotected String generateScript(Connection connection, PersistenceTableModel tableModel)
AbstractPersistenceProcessorgenerateScript in class AbstractPersistenceProcessorconnection - the connectiontableModel - the table modelpublic Object insert(Connection connection, PersistenceTableModel tableModel, T pojo) throws PersistenceException
connection - the connectiontableModel - the table modelpojo - the pojoPersistenceException - the persistence exceptionCopyright © 2010–2018 Eclipse Foundation. All rights reserved.