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