Klasse IxDateTimeValue

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

public final class IxDateTimeValue extends AbstractIxValue
  • Konstruktordetails

    • IxDateTimeValue

      public IxDateTimeValue(Date p_value)
      Parameter:
      p_value - The value (could be null)
  • Methodendetails

    • getValue

      public Date getValue()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Gibt zurück:
      the value
    • 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()
      Returns a iso string representation of the date in the yyyy-MM-ddTHH:mm:ssZ format, calculated for the TimeZone UTC.
      Angegeben von:
      asString in Schnittstelle IIxValue
      Setzt außer Kraft:
      asString in Klasse 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.
    • 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.
    • 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.
    • asDate

      public Date asDate()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns the date value.
              Value must be a date / time stamp / string type.
       
      Angegeben von:
      asDate in Schnittstelle IIxValue
      Setzt außer Kraft:
      asDate in Klasse AbstractIxValue
      Gibt zurück:
      Returns the value as an date.
    • asTime

      public Date asTime()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns the time value.
              Value must be a time / time stamp / string type.
       
      Angegeben von:
      asTime in Schnittstelle IIxValue
      Setzt außer Kraft:
      asTime in Klasse AbstractIxValue
      Gibt zurück:
      Returns the value as an time.
    • asTimestamp

      public Timestamp asTimestamp()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns a timestamp value.
              Value must be a date / timestamp type. No cast will be done.
       
      Angegeben von:
      asTimestamp in Schnittstelle IIxValue
      Setzt außer Kraft:
      asTimestamp in Klasse AbstractIxValue
      Gibt zurück:
      Returns the value as an timestamp.
    • 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...