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