Class PersistenceCreateIdentityProcessor
java.lang.Object
org.eclipse.dirigible.database.persistence.processors.AbstractPersistenceProcessor
org.eclipse.dirigible.database.persistence.processors.identity.PersistenceCreateIdentityProcessor
- All Implemented Interfaces:
IPersistenceProcessor
public class PersistenceCreateIdentityProcessor extends AbstractPersistenceProcessor
The Persistence Create Identity Processor.
-
Constructor Summary
Constructors Constructor Description PersistenceCreateIdentityProcessor(IEntityManagerInterceptor entityManagerInterceptor)Instantiates a new persistence create identity processor. -
Method Summary
Modifier and Type Method Description intcreate(Connection connection, PersistenceTableModel tableModel)Creates the.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
-
PersistenceCreateIdentityProcessor
Instantiates a new persistence create identity 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
-
create
public int create(Connection connection, PersistenceTableModel tableModel) throws PersistenceExceptionCreates the.- Parameters:
connection- the connectiontableModel- the table model- Returns:
- the int
- Throws:
PersistenceException- the persistence exception
-