Klasse IxObjectValue

java.lang.Object
de.uplanet.lucy.server.ixvalue.AbstractIxValue
de.uplanet.lucy.server.ixvalue.IxObjectValue
Alle implementierten Schnittstellen:
IIxValue

public final class IxObjectValue extends de.uplanet.lucy.server.ixvalue.AbstractIxValue
  • Feldübersicht

    Von Schnittstelle geerbte Felder de.uplanet.lucy.server.ixvalue.IIxValue

    EMPTY
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
    IxObjectValue(Object p_value, boolean p_empty)
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Returns a big decimal value.
    boolean
    Returns the a boolean value.
    double
    Returns a double value.
    int
    Returns a integer value.
    long
    Returns a long value.
    Returns the value as an string
    Returns the value as an value holder.
    Returns the physical value.
    boolean
    Returns true on a primitive value type like integer or boolean.

    Von Klasse geerbte Methoden de.uplanet.lucy.server.ixvalue.AbstractIxValue

    asBigDecimal, asBoolean, asDate, asDate, asDouble, asInt, asLong, asString, asTime, asTime, asTimestamp, asTimestamp, getType, hasValue

    Von Klasse geerbte Methoden java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • IxObjectValue

      public IxObjectValue(Object p_value)
      Parameter:
      p_value - The value (could be null)
    • IxObjectValue

      public IxObjectValue(Object p_value, boolean p_empty)
      Parameter:
      p_value - The value (could be null)
      p_empty - true if the value is empty, otherwise false, if empty is true then asString() will return null instead of throwing an exception
  • Methodendetails

    • getValue

      public Object getValue()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Gibt zurück:
      Returns the value (could be null).
    • asValueHolder

      public IValueHolder<?> asValueHolder()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns the value as an value holder.
      Gibt zurück:
      Converts a IIxValue to an value holder.
    • asString

      public String asString()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns the value as an string
       Cast Rules:
          Date values: A string representation of the date in the yyyy-MM-dd HH:mm:ss format,
          calculated for the TimeZone UTC.
      
          Other Types: String.valueOf(type) will returned.
       
      Angegeben von:
      asString in Schnittstelle IIxValue
      Setzt außer Kraft:
      asString in Klasse de.uplanet.lucy.server.ixvalue.AbstractIxValue
      Gibt zurück:
      Returns the value as an string.
    • asBoolean

      public boolean asBoolean()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns the a boolean value.
       Cast Rules:
              String
                      "0" = false
                      "1" = true
                      "true" = true
                      "false" = false
      
              Numeric (int, long, double):
                      0 = false
                      1 = true
      
       
      Gibt zurück:
      Returns the value as an boolean.
    • asBigDecimal

      public BigDecimal asBigDecimal()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns a big decimal value.
       Cast Rules:
              String
                      new BigDecimal(value)
              Numeric Types
                      new BigDecimalvalue)
              
      Gibt zurück:
      Returns the value as an big decimal or null if IIxValue.hasValue() == false.
    • asDouble

      public double asDouble()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns a double value.
       Cast Rules:
              String
                      Double.parseDouble(value)
      
              Numeric Types
                      (double)value
       
      Gibt zurück:
      Returns the value as an double.
    • asInt

      public int asInt()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns a integer value.
       Cast Rules:
              String
                      Integer.parseInteger(value)
      
              Numeric Types
                      (int)value
       
      Gibt zurück:
      Returns the value as an integer.
    • asLong

      public long asLong()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns a long value.
       Cast Rules:
              String
                      Long.parseLong(value)
      
              Numeric Types
                      (long)value
       
      Gibt zurück:
      Returns the value as an long. Throws an exception if IIxValue.hasValue() == false or the value type cannot be cast to an long.
    • isPrimitive

      public boolean isPrimitive()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns true on a primitive value type like integer or boolean.
      Gibt zurück:
      Returns true if the value represent an primitive type like a boolean, integer...