For IntelliJ IDEA and
Android Studio


@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; }
/** * 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(); }
@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; }
@Override public <T> JDOUpdateClause setNull(Path<T> path) { updates.put(path, Expressions.nullExpression(path)); return this; }
@Override public <T> HibernateUpdateClause setNull(Path<T> path) { updates.put(path, Expressions.nullExpression(path)); return this; }
@Override public <T> JPAUpdateClause setNull(Path<T> path) { updates.put(path, Expressions.nullExpression(path)); return this; }
/** * 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(); }
@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; }
@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; }
@Override public <T> JPAUpdateClause setNull(Path<T> path) { updates.put(path, Expressions.nullExpression(path)); return this; }
@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; }
/** * 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(); }
@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; }
@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; }
@Override public <T> HibernateUpdateClause setNull(Path<T> path) { updates.put(path, Expressions.nullExpression(path)); return this; }