/** * Create with a specific server. This means you can use the * UpdateSql.execute() method. */ public DefaultOrmUpdate(Class<?> beanType, EbeanServer server, String baseTable, String updateStatement) { this.beanType = beanType; this.server = server; this.baseTable = baseTable; this.name = ""; this.updateStatement = updateStatement; this.type = deriveType(updateStatement); }
/** * Create with a specific server. This means you can use the * UpdateSql.execute() method. */ public DefaultOrmUpdate(Class<?> beanType, EbeanServer server, String baseTable, String updateStatement) { this.beanType = beanType; this.server = server; this.baseTable = baseTable; this.name = ""; this.updateStatement = updateStatement; this.type = deriveType(updateStatement); }
/** * Create with a specific server. This means you can use the * UpdateSql.execute() method. */ public DefaultOrmUpdate(Class<?> beanType, EbeanServer server, String baseTable, String updateStatement) { this.beanType = beanType; this.server = server; this.baseTable = baseTable; this.name = ""; this.updateStatement = updateStatement; this.type = deriveType(updateStatement); }
public DefaultOrmUpdate(Class<?> beanType, EbeanServer server, String baseTable, DeployNamedUpdate namedUpdate) { this.beanType = beanType; this.server = server; this.baseTable = baseTable; this.name = namedUpdate.getName(); this.notifyCache = namedUpdate.isNotifyCache(); // named updates are always converted to sql as part // of the initialisation this.updateStatement = namedUpdate.getSqlUpdateStatement(); this.type = deriveType(updateStatement); }
public DefaultOrmUpdate(Class<?> beanType, EbeanServer server, String baseTable, DeployNamedUpdate namedUpdate) { this.beanType = beanType; this.server = server; this.baseTable = baseTable; this.name = namedUpdate.getName(); this.notifyCache = namedUpdate.isNotifyCache(); // named updates are always converted to sql as part // of the initialisation this.updateStatement = namedUpdate.getSqlUpdateStatement(); this.type = deriveType(updateStatement); }