Class PersistenceNextValueIdentityProcessor
java.lang.Object
org.eclipse.dirigible.database.persistence.processors.AbstractPersistenceProcessor
org.eclipse.dirigible.database.persistence.processors.identity.PersistenceNextValueIdentityProcessor
- All Implemented Interfaces:
IPersistenceProcessor
public class PersistenceNextValueIdentityProcessor extends AbstractPersistenceProcessor
The Persistence Next Value Identity Processor.
-
Constructor Summary
Constructors Constructor Description PersistenceNextValueIdentityProcessor(IEntityManagerInterceptor entityManagerInterceptor)Instantiates a new persistence next value identity processor. -
Method Summary
Modifier and Type Method Description protected StringgenerateScript(Connection connection, PersistenceTableModel tableModel)Generate script.longnextval(Connection connection, String tableName)Nextval.longnextval(Connection connection, PersistenceTableModel tableModel)Nextval.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
-
PersistenceNextValueIdentityProcessor
Instantiates a new persistence next value 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
-
nextval
public long nextval(Connection connection, PersistenceTableModel tableModel) throws PersistenceExceptionNextval.- Parameters:
connection- the connectiontableModel- the table model- Returns:
- the long
- Throws:
PersistenceException- the persistence exception
-
nextval
Nextval.- Parameters:
connection- the connectiontableName- the table name- Returns:
- the long
- Throws:
PersistenceException- the persistence exception
-