mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
41 lines
789 B
Java
41 lines
789 B
Java
package com.avaje.ebeaninternal.server.deploy;
|
|
|
|
import com.avaje.ebean.annotation.NamedUpdate;
|
|
|
|
/**
|
|
* Deployment information for a named update.
|
|
*/
|
|
public class DeployNamedUpdate {
|
|
|
|
private final String name;
|
|
|
|
private final String updateStatement;
|
|
|
|
private final boolean notifyCache;
|
|
|
|
private String sqlUpdateStatement;
|
|
|
|
public DeployNamedUpdate(NamedUpdate update) {
|
|
this.name = update.name();
|
|
this.updateStatement = update.update();
|
|
this.notifyCache = update.notifyCache();
|
|
}
|
|
|
|
public void initialise(DeployUpdateParser parser) {
|
|
sqlUpdateStatement = parser.parse(updateStatement);
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public String getSqlUpdateStatement() {
|
|
return sqlUpdateStatement;
|
|
}
|
|
|
|
public boolean isNotifyCache() {
|
|
return notifyCache;
|
|
}
|
|
|
|
}
|