org.nuiton.topia.it.mapping.test15.GeneratedA15ATopiaDao Maven / Gradle / Ivy
package org.nuiton.topia.it.mapping.test15;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import org.nuiton.topia.it.mapping.AbstractTopiaItMappingTopiaDao;
import org.nuiton.topia.it.mapping.TopiaItMappingEntityEnum;
import org.nuiton.topia.persistence.TopiaDao;
import org.nuiton.topia.persistence.TopiaEntity;
import org.nuiton.topia.persistence.TopiaException;
import org.nuiton.topia.persistence.TopiaQueryBuilderAddCriteriaOrRunQueryStep;
@Generated(value = "org.nuiton.topia.templates.EntityDaoTransformer", date = "Thu Oct 13 17:59:14 CEST 2016")
public abstract class GeneratedA15ATopiaDao extends AbstractTopiaItMappingTopiaDao {
@Override
public Class getEntityClass() {
return (Class) A15A.class;
}
@Override
public TopiaItMappingEntityEnum getTopiaEntityEnum() {
return TopiaItMappingEntityEnum.A15A;
}
@Override
public void delete(E entity) {
if ( ! entity.isPersisted()) {
throw new IllegalArgumentException("entity " + entity + " is not persisted, you can't delete it");
}
super.delete(entity);
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep forAnIntegerWrapperIn(Collection v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forIn(A15A.PROPERTY_AN_INTEGER_WRAPPER, (Collection) v);
return result;
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep forAnIntegerWrapperEquals(Integer v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forEquals(A15A.PROPERTY_AN_INTEGER_WRAPPER, v);
return result;
}
@Deprecated
public E findByAnIntegerWrapper(Integer v) {
return forAnIntegerWrapperEquals(v).findAnyOrNull();
}
@Deprecated
public List findAllByAnIntegerWrapper(Integer v) {
return forAnIntegerWrapperEquals(v).findAll();
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep forAnIntegerIn(Collection v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forIn(A15A.PROPERTY_AN_INTEGER, (Collection) v);
return result;
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep forAnIntegerEquals(int v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forEquals(A15A.PROPERTY_AN_INTEGER, v);
return result;
}
@Deprecated
public E findByAnInteger(int v) {
return forAnIntegerEquals(v).findAnyOrNull();
}
@Deprecated
public List findAllByAnInteger(int v) {
return forAnIntegerEquals(v).findAll();
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraBooleanWrapperIn(Collection v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forIn(A15A.PROPERTY_A_BOOLEAN_WRAPPER, (Collection) v);
return result;
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraBooleanWrapperEquals(Boolean v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forEquals(A15A.PROPERTY_A_BOOLEAN_WRAPPER, v);
return result;
}
@Deprecated
public E findByaBooleanWrapper(Boolean v) {
return foraBooleanWrapperEquals(v).findAnyOrNull();
}
@Deprecated
public List findAllByaBooleanWrapper(Boolean v) {
return foraBooleanWrapperEquals(v).findAll();
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraBooleanIn(Collection v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forIn(A15A.PROPERTY_A_BOOLEAN, (Collection) v);
return result;
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraBooleanEquals(boolean v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forEquals(A15A.PROPERTY_A_BOOLEAN, v);
return result;
}
@Deprecated
public E findByaBoolean(boolean v) {
return foraBooleanEquals(v).findAnyOrNull();
}
@Deprecated
public List findAllByaBoolean(boolean v) {
return foraBooleanEquals(v).findAll();
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraByteWrapperIn(Collection v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forIn(A15A.PROPERTY_A_BYTE_WRAPPER, (Collection) v);
return result;
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraByteWrapperEquals(Byte v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forEquals(A15A.PROPERTY_A_BYTE_WRAPPER, v);
return result;
}
@Deprecated
public E findByaByteWrapper(Byte v) {
return foraByteWrapperEquals(v).findAnyOrNull();
}
@Deprecated
public List findAllByaByteWrapper(Byte v) {
return foraByteWrapperEquals(v).findAll();
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraByteIn(Collection v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forIn(A15A.PROPERTY_A_BYTE, (Collection) v);
return result;
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraByteEquals(byte v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forEquals(A15A.PROPERTY_A_BYTE, v);
return result;
}
@Deprecated
public E findByaByte(byte v) {
return foraByteEquals(v).findAnyOrNull();
}
@Deprecated
public List findAllByaByte(byte v) {
return foraByteEquals(v).findAll();
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraShortWrapperIn(Collection v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forIn(A15A.PROPERTY_A_SHORT_WRAPPER, (Collection) v);
return result;
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraShortWrapperEquals(Short v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forEquals(A15A.PROPERTY_A_SHORT_WRAPPER, v);
return result;
}
@Deprecated
public E findByaShortWrapper(Short v) {
return foraShortWrapperEquals(v).findAnyOrNull();
}
@Deprecated
public List findAllByaShortWrapper(Short v) {
return foraShortWrapperEquals(v).findAll();
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraShortIn(Collection v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forIn(A15A.PROPERTY_A_SHORT, (Collection) v);
return result;
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraShortEquals(short v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forEquals(A15A.PROPERTY_A_SHORT, v);
return result;
}
@Deprecated
public E findByaShort(short v) {
return foraShortEquals(v).findAnyOrNull();
}
@Deprecated
public List findAllByaShort(short v) {
return foraShortEquals(v).findAll();
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraLongWrapperIn(Collection v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forIn(A15A.PROPERTY_A_LONG_WRAPPER, (Collection) v);
return result;
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraLongWrapperEquals(Long v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forEquals(A15A.PROPERTY_A_LONG_WRAPPER, v);
return result;
}
@Deprecated
public E findByaLongWrapper(Long v) {
return foraLongWrapperEquals(v).findAnyOrNull();
}
@Deprecated
public List findAllByaLongWrapper(Long v) {
return foraLongWrapperEquals(v).findAll();
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraLongIn(Collection v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forIn(A15A.PROPERTY_A_LONG, (Collection) v);
return result;
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraLongEquals(long v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forEquals(A15A.PROPERTY_A_LONG, v);
return result;
}
@Deprecated
public E findByaLong(long v) {
return foraLongEquals(v).findAnyOrNull();
}
@Deprecated
public List findAllByaLong(long v) {
return foraLongEquals(v).findAll();
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraFloatWrapperIn(Collection v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forIn(A15A.PROPERTY_A_FLOAT_WRAPPER, (Collection) v);
return result;
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraFloatWrapperEquals(Float v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forEquals(A15A.PROPERTY_A_FLOAT_WRAPPER, v);
return result;
}
@Deprecated
public E findByaFloatWrapper(Float v) {
return foraFloatWrapperEquals(v).findAnyOrNull();
}
@Deprecated
public List findAllByaFloatWrapper(Float v) {
return foraFloatWrapperEquals(v).findAll();
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraFloatIn(Collection v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forIn(A15A.PROPERTY_A_FLOAT, (Collection) v);
return result;
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraFloatEquals(float v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forEquals(A15A.PROPERTY_A_FLOAT, v);
return result;
}
@Deprecated
public E findByaFloat(float v) {
return foraFloatEquals(v).findAnyOrNull();
}
@Deprecated
public List findAllByaFloat(float v) {
return foraFloatEquals(v).findAll();
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraDoubleWrapperIn(Collection v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forIn(A15A.PROPERTY_A_DOUBLE_WRAPPER, (Collection) v);
return result;
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraDoubleWrapperEquals(Double v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forEquals(A15A.PROPERTY_A_DOUBLE_WRAPPER, v);
return result;
}
@Deprecated
public E findByaDoubleWrapper(Double v) {
return foraDoubleWrapperEquals(v).findAnyOrNull();
}
@Deprecated
public List findAllByaDoubleWrapper(Double v) {
return foraDoubleWrapperEquals(v).findAll();
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraDoubleIn(Collection v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forIn(A15A.PROPERTY_A_DOUBLE, (Collection) v);
return result;
}
public TopiaQueryBuilderAddCriteriaOrRunQueryStep foraDoubleEquals(double v) {
TopiaQueryBuilderAddCriteriaOrRunQueryStep result = forEquals(A15A.PROPERTY_A_DOUBLE, v);
return result;
}
@Deprecated
public E findByaDouble(double v) {
return foraDoubleEquals(v).findAnyOrNull();
}
@Deprecated
public List findAllByaDouble(double v) {
return foraDoubleEquals(v).findAll();
}
@Override
public List findUsages(Class type, E entity) {
return new LinkedList();
}
@Override
public Map, List extends TopiaEntity>> findAllUsages(E entity) {
return new HashMap, List extends TopiaEntity>>();
}
@Override
public List getAggregate(E entity) throws TopiaException {
List tmp = new ArrayList();
// pour tous les attributs rechecher les composites et les class d'asso
// on les ajoute dans tmp
// on refait un tour sur chaque entity de tmp pour recuperer leur
// composite
List result = new ArrayList();
for (TopiaEntity e : tmp) {
result.add(e);
TopiaDao dao = (TopiaDao) topiaDaoSupplier.getDao(e.getClass());
result.addAll(dao.getAggregate(e));
}
return result;
}
@Override
public List getComposite(E entity) throws TopiaException {
List tmp = new ArrayList();
// pour tous les attributs rechecher les composites et les class d'asso
// on les ajoute dans tmp
// on refait un tour sur chaque entity de tmp pour recuperer leur
// composite
List result = new ArrayList();
for (TopiaEntity e : tmp) {
if (e != null) {
result.add(e);
TopiaDao dao = (TopiaDao) topiaDaoSupplier.getDao(e.getClass());
result.addAll(dao.getComposite(e));
}
}
return result;
}
} //GeneratedA15ATopiaDao
© 2015 - 2024 Weber Informatics LLC | Privacy Policy