/** * 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 <T> Update<T> createUpdate(Class<T> beanType, String ormUpdate) { BeanDescriptor<?> desc = getBeanDescriptor(beanType); if (desc == null) { String m = beanType.getName() + " is NOT an Entity Bean registered with this server?"; throw new PersistenceException(m); } return new DefaultOrmUpdate<T>(beanType, this, desc.getBaseTable(), ormUpdate); }
public <T> Update<T> createUpdate(Class<T> beanType, String ormUpdate) { BeanDescriptor<?> desc = getBeanDescriptor(beanType); if (desc == null) { String m = beanType.getName() + " is NOT an Entity Bean registered with this server?"; throw new PersistenceException(m); } return new DefaultOrmUpdate<T>(beanType, this, desc.getBaseTable(), ormUpdate); }
public <T> Update<T> createUpdate(Class<T> beanType, String ormUpdate) { BeanDescriptor<?> desc = getBeanDescriptor(beanType); if (desc == null) { String m = beanType.getName() + " is NOT an Entity Bean registered with this server?"; throw new PersistenceException(m); } return new DefaultOrmUpdate<>(beanType, this, desc.getBaseTable(), ormUpdate); }
/** * 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 <T> Update<T> createNamedUpdate(Class<T> beanType, String namedUpdate) { BeanDescriptor<?> desc = getBeanDescriptor(beanType); if (desc == null) { String m = beanType.getName() + " is NOT an Entity Bean registered with this server?"; throw new PersistenceException(m); } DeployNamedUpdate deployUpdate = desc.getNamedUpdate(namedUpdate); if (deployUpdate == null) { throw new PersistenceException("named update " + namedUpdate + " was not found for " + desc.getFullName()); } return new DefaultOrmUpdate<T>(beanType, this, desc.getBaseTable(), deployUpdate); }
/** * 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 <T> Update<T> createNamedUpdate(Class<T> beanType, String namedUpdate) { BeanDescriptor<?> desc = getBeanDescriptor(beanType); if (desc == null) { String m = beanType.getName() + " is NOT an Entity Bean registered with this server?"; throw new PersistenceException(m); } DeployNamedUpdate deployUpdate = desc.getNamedUpdate(namedUpdate); if (deployUpdate == null) { throw new PersistenceException("named update " + namedUpdate + " was not found for " + desc.getFullName()); } return new DefaultOrmUpdate<T>(beanType, this, desc.getBaseTable(), deployUpdate); }
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); }