Tabnine Logo
SimpleCondition.getField
Code IndexAdd Tabnine to your IDE (free)

How to use
getField
method
in
io.yawp.repository.query.condition.SimpleCondition

Best Java code snippets using io.yawp.repository.query.condition.SimpleCondition.getField (Showing top 3 results out of 315)

origin: feroult/yawp

private void assertSimpleCondition(BaseCondition c, String p, WhereOperator whereOperator, Object value) {
  assertEquals(SimpleCondition.class, c.getClass());
  SimpleCondition condition = (SimpleCondition) c;
  assertEquals(p, condition.getField());
  assertEquals(whereOperator, condition.getWhereOperator());
  assertEquals(value, condition.getWhereValue());
}
origin: feroult/yawp

private Filter createSimpleFilter(QueryBuilder<?> builder, SimpleCondition condition) throws FalsePredicateException {
  String field = condition.getField();
  Class<?> clazz = builder.getModel().getClazz();
  Object whereValue = condition.getWhereValue();
  WhereOperator whereOperator = condition.getWhereOperator();
  String actualFieldName = getActualFieldName(field, clazz);
  Object actualValue = getActualFieldValue(field, clazz, whereValue);
  if (whereOperator == WhereOperator.IN && listSize(whereValue) == 0) {
    throw new FalsePredicateException();
  }
  return new FilterPredicate(actualFieldName, getFilterOperator(whereOperator), actualValue);
}
origin: feroult/yawp

private String simpleWhere(SimpleCondition condition) throws FalsePredicateException {
  String fieldName = condition.getField();
  Class<?> clazz = builder.getModel().getClazz();
  Object whereValue = condition.getWhereValue();
  WhereOperator whereOperator = condition.getWhereOperator();
  String actualFieldName = getActualFieldName(fieldName, clazz);
  Object actualValue = getActualFieldValue(fieldName, clazz, whereValue);
  if (whereOperator == WhereOperator.IN) {
    if (listSize(whereValue) == 0) {
      throw new FalsePredicateException();
    }
    return whereCollectionValue(fieldName, actualFieldName, whereOperator, (Collection<?>) actualValue);
  }
  return whereSingleValue(fieldName, actualFieldName, whereOperator, actualValue);
}
io.yawp.repository.query.conditionSimpleConditiongetField

Popular methods of SimpleCondition

  • getWhereValue
  • getWhereOperator
  • <init>
  • assertIsList
  • convertToIdRefs
  • hasPreFilter
  • isEqualOperator
  • isIdField
  • isRefField
  • normalizeIdRefs

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now