public abstract class SchemaUpdatingOperation extends SchemaOperation
| Modifier and Type | Field and Description |
|---|---|
protected String |
delimiter
Delimiter for SQLs.
|
protected org.hibernate.engine.jdbc.internal.Formatter |
formatter
SQL formatter.
|
protected boolean |
haltOnError
Hale on error flag.
|
protected org.hibernate.engine.jdbc.spi.SqlStatementLogger |
sqlStatementLogger
SQL statement logger.
|
protected boolean |
update
Update flag.
|
configuration, connectionHelper, dialect, exceptions| Constructor and Description |
|---|
SchemaUpdatingOperation(com.whitestein.lsps.model.sharedrecord.SharedRecordConfiguration cfg)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes the schema operation.
|
protected abstract String[] |
generateScript(DatabaseMetadata databaseMetadata)
Generates the script to execute.
|
void |
setDelimiter(String delimiter)
Sets the delimiter string for the script.
|
void |
setFormat(boolean format)
Sets whether the script is formatted or not.
|
void |
setHaltOnError(boolean haltOnError)
Sets the halt-on-error flag.
|
void |
setOut(PrintWriter out)
Sets the print writer where the script should be printed
|
void |
setUpdate(boolean update)
Sets whether the update will be performed.
|
compatibleTypes, getExceptions, getSystemEntytyNames, getTablesAndFksToUpdate, iterateGeneratorsprotected final org.hibernate.engine.jdbc.spi.SqlStatementLogger sqlStatementLogger
protected boolean haltOnError
protected String delimiter
protected org.hibernate.engine.jdbc.internal.Formatter formatter
protected boolean update
public SchemaUpdatingOperation(com.whitestein.lsps.model.sharedrecord.SharedRecordConfiguration cfg)
cfg - public void setHaltOnError(boolean haltOnError)
haltOnError - public void setFormat(boolean format)
format - public void setDelimiter(String delimiter)
delimiter - public void setUpdate(boolean update)
update - public void execute()
SchemaOperationexecute in class SchemaOperationprotected abstract String[] generateScript(DatabaseMetadata databaseMetadata) throws org.hibernate.HibernateException
databaseMetadata - org.hibernate.HibernateExceptionpublic void setOut(PrintWriter out)
out - Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.