Tabnine Logo
ValueOption.setNull
Code IndexAdd Tabnine to your IDE (free)

How to use
setNull
method
in
com.asakusafw.runtime.value.ValueOption

Best Java code snippets using com.asakusafw.runtime.value.ValueOption.setNull (Showing top 20 results out of 315)

origin: asakusafw/asakusafw

@SuppressWarnings("deprecation")
@Override
public void start() {
  ValueOption<?>[] vs = values;
  for (int i = 0; i < vs.length; i++) {
    ValueOption<?> v = vs[i];
    if (v != null) {
      v.setNull();
    }
  }
}
origin: asakusafw/asakusafw

@SuppressWarnings("deprecation")
@Override
public void absent(T property) {
  property.setNull();
}
origin: asakusafw/asakusafw

@SuppressWarnings("deprecation")
@Override
public void clear(T property) {
  property.setNull();
}
origin: asakusafw/asakusafw

@SuppressWarnings("deprecation")
private void set(T instance, Method property, Object value) {
  assert instance != null;
  assert property != null;
  ValueOption<?> holder = getHolder(instance, property);
  if (value == null) {
    holder.setNull();
  } else {
    ValueDriver<?> driver = VALUE_DRIVERS.get(property.getReturnType());
    assert driver != null : property;
    driver.modifyUnsafe(holder, value);
  }
}
origin: asakusafw/asakusafw

  @SuppressWarnings("deprecation")
  @Override
  public void set(ValueOption<?> target, Object value) {
    if (value == null) {
      target.setNull();
    } else {
      ((FloatOption) target).modify(inspector.get(value));
    }
  }
}
origin: asakusafw/asakusafw

@SuppressWarnings("deprecation")
@Override
public void set(ValueOption<?> target, Object value) {
  if (value == null) {
    target.setNull();
  } else {
    ((BooleanOption) target).modify(inspector.get(value));
  }
}
origin: asakusafw/asakusafw

  @SuppressWarnings("deprecation")
  @Override
  public void set(ValueOption<?> target, Object value) {
    if (value == null) {
      target.setNull();
    } else {
      ((IntOption) target).modify(inspector.get(value));
    }
  }
}
origin: asakusafw/asakusafw

  @SuppressWarnings("deprecation")
  @Override
  public void set(ValueOption<?> target, Object value) {
    if (value == null) {
      target.setNull();
    } else {
      ((LongOption) target).modify(inspector.get(value));
    }
  }
}
origin: asakusafw/asakusafw

  @SuppressWarnings("deprecation")
  @Override
  public void set(ValueOption<?> target, Object value) {
    if (value == null) {
      target.setNull();
    } else {
      ((ShortOption) target).modify(inspector.get(value));
    }
  }
}
origin: asakusafw/asakusafw

  @SuppressWarnings("deprecation")
  @Override
  public void set(ValueOption<?> target, Object value) {
    if (value == null) {
      target.setNull();
    } else {
      ((DoubleOption) target).modify(inspector.get(value));
    }
  }
}
origin: asakusafw/asakusafw

@SuppressWarnings("deprecation")
@Override
public void set(ValueOption<?> target, Object value) {
  if (value == null) {
    target.setNull();
  } else {
    ((ByteOption) target).modify(inspector.get(value));
  }
}
origin: asakusafw/asakusafw

@SuppressWarnings("deprecation")
@Override
public final void set(ValueOption<?> target, Object value) {
  if (value == null) {
    target.setNull();
  } else if (primitive) {
    String entity = inspector.getPrimitiveJavaObject(value);
    set(target, entity);
  } else {
    Text writable = inspector.getPrimitiveWritableObject(value);
    set(target, writable.toString());
  }
}
origin: asakusafw/asakusafw

  @SuppressWarnings("deprecation")
  @Override
  public void set(ValueOption<?> target, Object value) {
    if (value == null) {
      target.setNull();
    } else if (primitive) {
      ((StringOption) target).modify(inspector.getPrimitiveJavaObject(value));
    } else {
      ((StringOption) target).modify(inspector.getPrimitiveWritableObject(value));
    }
  }
}
origin: asakusafw/asakusafw

/**
 * Sets the specified value to this object only if the specified value is less than this object. However, if either
 * this object or the specified value represents {@code null}, this object will also turn to {@code null}.
 * @param other the target value
 */
public final void min(V other) {
  if (this == other) {
    return;
  }
  if (this.isNull() || other.isNull()) {
    setNull();
  } else if (compareTo(other) > 0) {
    copyFrom(other);
  }
}
origin: asakusafw/asakusafw

@SuppressWarnings("deprecation")
@Override
public void set(ValueOption<?> target, Object value) {
  if (value == null) {
    target.setNull();
  } else if (primitive) {
    java.sql.Timestamp entity = inspector.getPrimitiveJavaObject(value);
    setDate(target, entity);
  } else {
    TimestampWritable writable = inspector.getPrimitiveWritableObject(value);
    setDate(target, writable.getTimestamp());
  }
}
origin: asakusafw/asakusafw

@SuppressWarnings("deprecation")
@Override
public final void set(ValueOption<?> target, Object value) {
  if (value == null) {
    target.setNull();
  } else if (primitive) {
    Timestamp entity = inspector.getPrimitiveJavaObject(value);
    set(target, entity);
  } else {
    TimestampWritable writable = inspector.getPrimitiveWritableObject(value);
    set(target, writable.getTimestamp());
  }
}
origin: asakusafw/asakusafw

@SuppressWarnings("deprecation")
@Override
public void set(ValueOption<?> target, Object value) {
  if (value == null) {
    target.setNull();
  } else if (primitive) {
    java.sql.Date entity = inspector.getPrimitiveJavaObject(value);
    setDate(target, entity);
  } else {
    DateWritable writable = inspector.getPrimitiveWritableObject(value);
    setDate(target, writable.get());
  }
}
origin: asakusafw/asakusafw

  @SuppressWarnings("deprecation")
  @Override
  public void set(ValueOption<?> target, Object value) {
    if (value == null) {
      target.setNull();
    } else if (primitive) {
      HiveBaseChar entity = inspector.getPrimitiveJavaObject(value);
      ((StringOption) target).modify(entity.getValue());
    } else {
      HiveBaseCharWritable writable = inspector.getPrimitiveWritableObject(value);
      ((StringOption) target).modify(writable.getTextValue());
    }
  }
}
origin: asakusafw/asakusafw

  @SuppressWarnings("deprecation")
  @Override
  public void set(ValueOption<?> target, Object value) {
    if (value == null) {
      target.setNull();
    } else if (primitive) {
      HiveBaseChar entity = inspector.getPrimitiveJavaObject(value);
      ((StringOption) target).modify(entity.getValue());
    } else {
      HiveBaseCharWritable writable = inspector.getPrimitiveWritableObject(value);
      ((StringOption) target).modify(writable.getTextValue());
    }
  }
}
origin: asakusafw/asakusafw

@SuppressWarnings("deprecation")
@Override
public void set(ValueOption<?> target, Object value) {
  if (value == null) {
    target.setNull();
  } else if (primitive) {
    HiveDecimal entity = inspector.getPrimitiveJavaObject(value);
    ((DecimalOption) target).modify(entity.bigDecimalValue());
  } else {
    HiveDecimalWritable writable = inspector.getPrimitiveWritableObject(value);
    ((DecimalOption) target).modify(writable.getHiveDecimal().bigDecimalValue());
  }
}
com.asakusafw.runtime.valueValueOptionsetNull

Javadoc

Makes this value represent null.

Popular methods of ValueOption

  • isNull
    Returns whether this object represents null or not.
  • compareTo
  • copyFrom
    Copies the value from the specified values into this.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • findViewById (Activity)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • IsNull (org.hamcrest.core)
    Is the value null?
  • CodeWhisperer 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