Expressions.nullExpression
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.querydsl.core.types.dsl.Expressions.nullExpression(Showing top 15 results out of 315)

origin: querydsl/querydsl

@Override
public <T> JDOUpdateClause set(Path<T> path, T value) {
  if (value != null) {
    updates.put(path, Expressions.constant(value));
  } else {
    updates.put(path, Expressions.nullExpression(path));
  }
  return this;
}
origin: querydsl/querydsl

/**
 * Create a null expression for the specified path
 *
 * @param path path for type cast
 * @param <T> type of expression
 * @return null expression
 */
public static <T> NullExpression<T> nullExpression(Path<T> path) {
  return nullExpression();
}
origin: querydsl/querydsl

@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public JPAUpdateClause set(List<? extends Path<?>> paths, List<?> values) {
  for (int i = 0; i < paths.size(); i++) {
    if (values.get(i) != null) {
      updates.put(paths.get(i), Expressions.constant(values.get(i)));
    } else {
      updates.put(paths.get(i), Expressions.nullExpression(paths.get(i)));
    }
  }
  return this;
}
origin: querydsl/querydsl

@Override
public <T> JDOUpdateClause setNull(Path<T> path) {
  updates.put(path, Expressions.nullExpression(path));
  return this;
}
origin: querydsl/querydsl

@Override
public <T> HibernateUpdateClause setNull(Path<T> path) {
  updates.put(path, Expressions.nullExpression(path));
  return this;
}
origin: querydsl/querydsl

@Override
public <T> JPAUpdateClause setNull(Path<T> path) {
  updates.put(path, Expressions.nullExpression(path));
  return this;
}
origin: querydsl/querydsl

/**
 * Create a null expression for the specified type
 *
 * @param type type of expression
 * @param <T> type of expression
 * @return null expression
 */
public static <T> NullExpression<T> nullExpression(Class<T> type) {
  return nullExpression();
}
origin: querydsl/querydsl

@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public JDOUpdateClause set(List<? extends Path<?>> paths, List<?> values) {
  for (int i = 0; i < paths.size(); i++) {
    if (values.get(i) != null) {
      updates.put(paths.get(i), Expressions.constant(values.get(i)));
    } else {
      updates.put(paths.get(i), Expressions.nullExpression(paths.get(i)));
    }
  }
  return this;
}
origin: querydsl/querydsl

@SuppressWarnings("unchecked")
@Override
public HibernateUpdateClause set(List<? extends Path<?>> paths, List<?> values) {
  for (int i = 0; i < paths.size(); i++) {
    if (values.get(i) != null) {
      updates.put(paths.get(i), Expressions.constant(values.get(i)));
    } else {
      updates.put(paths.get(i), Expressions.nullExpression(paths.get(i)));
    }
  }
  return this;
}
origin: com.querydsl/querydsl-jpa

@Override
public <T> JPAUpdateClause setNull(Path<T> path) {
  updates.put(path, Expressions.nullExpression(path));
  return this;
}
origin: com.querydsl/querydsl-jpa

@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public JPAUpdateClause set(List<? extends Path<?>> paths, List<?> values) {
  for (int i = 0; i < paths.size(); i++) {
    if (values.get(i) != null) {
      updates.put(paths.get(i), Expressions.constant(values.get(i)));
    } else {
      updates.put(paths.get(i), Expressions.nullExpression(paths.get(i)));
    }
  }
  return this;
}
origin: com.querydsl/querydsl-core

/**
 * Create a null expression for the specified path
 *
 * @param path path for type cast
 * @param <T> type of expression
 * @return null expression
 */
public static <T> NullExpression<T> nullExpression(Path<T> path) {
  return nullExpression();
}
origin: com.querydsl/querydsl-jpa

@SuppressWarnings("unchecked")
@Override
public HibernateUpdateClause set(List<? extends Path<?>> paths, List<?> values) {
  for (int i = 0; i < paths.size(); i++) {
    if (values.get(i) != null) {
      updates.put(paths.get(i), Expressions.constant(values.get(i)));
    } else {
      updates.put(paths.get(i), Expressions.nullExpression(paths.get(i)));
    }
  }
  return this;
}
origin: com.querydsl/querydsl-jpa

@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public JPAUpdateClause set(List<? extends Path<?>> paths, List<?> values) {
  for (int i = 0; i < paths.size(); i++) {
    if (values.get(i) != null) {
      updates.put(paths.get(i), Expressions.constant(values.get(i)));
    } else {
      updates.put(paths.get(i), Expressions.nullExpression(paths.get(i)));
    }
  }
  return this;
}
origin: com.querydsl/querydsl-jpa

@Override
public <T> HibernateUpdateClause setNull(Path<T> path) {
  updates.put(path, Expressions.nullExpression(path));
  return this;
}
com.querydsl.core.types.dslExpressionsnullExpression

Javadoc

Create a null expression for the specified type

Popular methods of Expressions

  • constant
    Create a Constant expression for the given value
  • stringOperation
    Create a new Operation expression
  • booleanOperation
    Create a new Boolean operation
  • stringPath
    Create a new Path expression
  • as
    Create a source as alias expression
  • operation
    Create a new Operation expression
  • path
    Create a new Path expression
  • predicate
    Create a new Predicate operation
  • datePath
    Create a new Path expression
  • dateTimePath
    Create a new Path expression
  • numberOperation
    Create a new Operation expression
  • numberPath
    Create a new Path expression
  • numberOperation,
  • numberPath,
  • stringTemplate,
  • asComparable,
  • booleanPath,
  • comparableOperation,
  • comparablePath,
  • currentTimestamp,
  • dateOperation

Popular classes and methods

  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ResultSet (java.sql)
    A table of data representing a database result set, which is usually generated by executing a statem
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • LinkedHashMap (java.util)
    Hash table implementation of the Map interface with predictable iteration order. [Sun docs] [http:/
  • LinkedList (java.util)
    Linked list implementation. [Sun docs] [http://java.sun.com/j2se/1.5.0/docs/api/java/util/LinkedList
  • JList (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)