public class SchemaUpdateAction extends Object
Constructor and Description |
---|
SchemaUpdateAction(String realm) |
Modifier and Type | Method and Description |
---|---|
void |
execute(Database db)
Executes the change against the given database.
|
String |
getError()
Returns the last error reported by the database.
|
String |
getId()
Returns an unique ID which identifies this change
|
String |
getRealm() |
String |
getReason()
Contains a short description of what the change will cause.
|
List<String> |
getSql()
A list of SQL statements which have to be executed to perform the required change.
|
boolean |
isDataLossPossible()
Determines if dataloss is possible when executing this change.
|
boolean |
isExecuted()
Determines if the change was already executed.
|
boolean |
isFailed()
Determines if the change was successfully executed.
|
protected void |
setDataLossPossible(boolean dataLossPossible) |
protected void |
setRealm(String realm) |
protected void |
setReason(String reason) |
protected void |
setSql(List<String> sql) |
protected void |
setSql(String sql) |
String |
toString() |
public SchemaUpdateAction(String realm)
public String getRealm()
protected void setRealm(String realm)
public String getReason()
protected void setReason(String reason)
public List<String> getSql()
protected void setSql(String sql)
public boolean isDataLossPossible()
protected void setDataLossPossible(boolean dataLossPossible)
public String getId()
public String getError()
public void execute(Database db)
db
- the datbase to changepublic boolean isFailed()
public boolean isExecuted()
Copyright © 2018. All rights reserved.