mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
initial add of EbeanORM server based on v2.8.1
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user