Class PersistenceExecuteProcessor<T>
java.lang.Object
org.eclipse.dirigible.database.persistence.processors.AbstractPersistenceProcessor
org.eclipse.dirigible.database.persistence.processors.entity.PersistenceExecuteProcessor<T>
- Type Parameters:
T- the generic type
- All Implemented Interfaces:
IPersistenceProcessor
public class PersistenceExecuteProcessor<T> extends AbstractPersistenceProcessor
The Persistence Execute Processor.
-
Constructor Summary
Constructors Constructor Description PersistenceExecuteProcessor(IEntityManagerInterceptor entityManagerInterceptor)Instantiates a new persistence execute processor. -
Method Summary
Modifier and Type Method Description intexecute(Connection connection, String sql, List<Object> values)Execute.protected StringgenerateScript(Connection connection, PersistenceTableModel tableModel)Generate script.Methods inherited from class org.eclipse.dirigible.database.persistence.processors.AbstractPersistenceProcessor
closePreparedStatement, getEntityManagerInterceptor, getPrimaryKey, getPrimaryKeyModel, getValueFromPojo, openPreparedStatement, setEntityManagerInterceptor, setValue, setValue, setValuePrimaryKey, setValuesFromPojo, setValueToPojo, setValueToPojo, shouldSetColumnValue
-
Constructor Details
-
PersistenceExecuteProcessor
Instantiates a new persistence execute processor.- Parameters:
entityManagerInterceptor- the entity manager interceptor
-
-
Method Details
-
generateScript
Description copied from class:AbstractPersistenceProcessorGenerate script.- Specified by:
generateScriptin classAbstractPersistenceProcessor- Parameters:
connection- the connectiontableModel- the table model- Returns:
- the string
-
execute
Execute.- Parameters:
connection- the connectionsql- the sqlvalues- the values- Returns:
- the int
-