consultaByAlternativeKey method
Alternative Key
Implementation
@override
Condition<ColeccionObjBox2> consultaByAlternativeKey(
String coleccion, String value, CriterioPeticion criterio) {
switch (criterio) {
case CriterioPeticion.equals:
return ColeccionObjBox2_.coleccion
.equals(coleccion)
.and(ColeccionObjBox2_.alternativeKey.equals(value));
case CriterioPeticion.greaterThan:
return ColeccionObjBox2_.coleccion
.equals(coleccion)
.and(ColeccionObjBox2_.alternativeKey.greaterThan(value));
case CriterioPeticion.greaterThanOrEquals:
return ColeccionObjBox2_.coleccion
.equals(coleccion)
.and(ColeccionObjBox2_.alternativeKey.greaterOrEqual(value));
case CriterioPeticion.lessThan:
return ColeccionObjBox2_.coleccion
.equals(coleccion)
.and(ColeccionObjBox2_.alternativeKey.lessThan(value));
case CriterioPeticion.lessThanOrEquals:
return ColeccionObjBox2_.coleccion
.equals(coleccion)
.and(ColeccionObjBox2_.alternativeKey.lessOrEqual(value));
case CriterioPeticion.like:
return ColeccionObjBox2_.coleccion
.equals(coleccion)
.and(ColeccionObjBox2_.alternativeKey.contains(value));
}
}