Klasse AbstractIxValue

java.lang.Object
de.uplanet.lucy.server.ixvalue.AbstractIxValue
Alle implementierten Schnittstellen:
IIxValue
Bekannte direkte Unterklassen:
AbstractIxStringValue, IxBigDecimalValue, IxBooleanValue, IxDateTimeValue, IxDoubleValue, IxIntValue, IxLongValue, IxObjectValue

public abstract class AbstractIxValue extends Object implements IIxValue
  • Feldübersicht

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

    EMPTY
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    AbstractIxValue(de.uplanet.lucy.types.UP_TYPE p_type, Object p_value)
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    asBigDecimal(BigDecimal p_fallbackValue)
    Returns a big decimal value or the fallback value on an empty value.
    final boolean
    asBoolean(boolean p_bFallbackValue)
    Returns the boolean value or the fallback value on an empty value.
    Returns the date value.
    final Date
    asDate(Date p_fallbackValue)
    Returns the date value or the fallback date for an empty value.
    final double
    asDouble(double p_dFallbackValue)
    Returns the value as an double or the fallback value on an empty value.
    final int
    asInt(int p_iFallbackValue)
    Returns a integer value or the fallback value on an empty value.
    final long
    asLong(long p_lFallbackValue)
    Returns a long value or the fallback value on an empty value.
    Returns the value as an string
    final String
    asString(String p_strFallback)
    Returns the value as an string
    Returns the time value.
    final Date
    asTime(Date p_fallbackValue)
    Returns the time value or the fallback value on an empty value.
    Returns a timestamp value.
    final Timestamp
    asTimestamp(Timestamp p_fallbackValue)
    Returns the timestamp value or the given fallback value for an empty value.
    de.uplanet.lucy.types.UP_TYPE
    Returns the type.
    boolean
    Returns true if the value is not empty or exits.

    Von Klasse geerbte Methoden java.lang.Object

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

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

    asBigDecimal, asBoolean, asDouble, asInt, asLong, asValueHolder, getValue, isPrimitive
  • Konstruktordetails

    • AbstractIxValue

      public AbstractIxValue(de.uplanet.lucy.types.UP_TYPE p_type, Object p_value)
      Parameter:
      p_type - The type (not null)
      p_value - The value (could be null)
  • Methodendetails

    • getType

      public de.uplanet.lucy.types.UP_TYPE getType()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns the type. For internal use only.
      Angegeben von:
      getType in Schnittstelle IIxValue
      Gibt zurück:
      Returns the value type (not null).
    • 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
      Gibt zurück:
      Returns the value as an string.
    • asString

      public final String asString(String p_strFallback)
      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
      Parameter:
      p_strFallback - The fallback value used if IIxValue.hasValue() == false.
      Gibt zurück:
      Returns the value as an string or p_strFallbackValue if IIxValue.hasValue() == false.
    • asBoolean

      public final boolean asBoolean(boolean p_bFallbackValue)
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns the boolean value or the fallback value on an empty value.
       Cast Rules:
              String
                      "0" = false
                      "1" = true
                      "true" = true
                      "false" = false
      
              Numeric (int, long, double):
                      0 = false
                      1 = true
       
      Angegeben von:
      asBoolean in Schnittstelle IIxValue
      Parameter:
      p_bFallbackValue - The fallback value used if IIxValue.hasValue() == false.
      Gibt zurück:
      Returns the value as an boolean or the given fallback value if IIxValue.hasValue() == false.
    • asBigDecimal

      public final BigDecimal asBigDecimal(BigDecimal p_fallbackValue)
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns a big decimal value or the fallback value on an empty value.
       Cast Rules:
              String
                      new BigDecimal(value)
              Numeric Types
                      new BigDecimalvalue)
              
      Angegeben von:
      asBigDecimal in Schnittstelle IIxValue
      Parameter:
      p_fallbackValue - The fallback value used if IIxValue.hasValue() == false.
      Gibt zurück:
      Returns the value as an string or p_fallbackValue if IIxValue.hasValue() == false.
    • asDouble

      public final double asDouble(double p_dFallbackValue)
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns the value as an double or the fallback value on an empty value.
       Cast Rules:
              String
                      Double.parseDouble(value)
      
              Numeric:
                      (double)value
       
      Angegeben von:
      asDouble in Schnittstelle IIxValue
      Parameter:
      p_dFallbackValue - The fallback value used if IIxValue.hasValue() == false.
      Gibt zurück:
      Returns the value as an double or the fallback value if IIxValue.hasValue() == false.
    • asInt

      public final int asInt(int p_iFallbackValue)
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns a integer value or the fallback value on an empty value.
       Cast Rules:
              String
                      Integer.parseInteger(value)
      
              Numeric Types
                      (int)value
      
        Other types:
              String.valueOf(type) will check.
       
      Angegeben von:
      asInt in Schnittstelle IIxValue
      Parameter:
      p_iFallbackValue - The fallback value used if IIxValue.hasValue() == false.
      Gibt zurück:
      Returns the value as an integer or p_iFallbackValue if IIxValue.hasValue() == false
    • asLong

      public final long asLong(long p_lFallbackValue)
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns a long value or the fallback value on an empty value.
       Cast Rules:
              String
                      Long.parseLong(value)
      
              Numeric Types
                      (long)value
      
        Other types:
              String.valueOf(type) will check.
       
      Angegeben von:
      asLong in Schnittstelle IIxValue
      Parameter:
      p_lFallbackValue - The fallback value used if IIxValue.hasValue() == false.
      Gibt zurück:
      Returns the value as an long or p_lFallbackValue if IIxValue.hasValue() == false.
    • hasValue

      public boolean hasValue()
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns true if the value is not empty or exits.
      Angegeben von:
      hasValue in Schnittstelle IIxValue
      Gibt zurück:
      Returns true if IIxValue.getValue() != null otherwise false will returned.
    • 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
      Gibt zurück:
      Returns the value as an date.
    • asDate

      public final Date asDate(Date p_fallbackValue)
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns the date value or the fallback date for an empty value.
              Value must be a date / time stamp / string type.
       
      Angegeben von:
      asDate in Schnittstelle IIxValue
      Parameter:
      p_fallbackValue - The fallback value used if IIxValue.hasValue() == false.
      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
      Gibt zurück:
      Returns the value as an time.
    • asTime

      public final Date asTime(Date p_fallbackValue)
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns the time value or the fallback value on an empty value.
              Value must be a time / time stamp / string type.
       
      Angegeben von:
      asTime in Schnittstelle IIxValue
      Gibt zurück:
      Returns the value as an time or the fallback value on an empty value.
    • 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
      Gibt zurück:
      Returns the value as an timestamp.
    • asTimestamp

      public final Timestamp asTimestamp(Timestamp p_fallbackValue)
      Beschreibung aus Schnittstelle kopiert: IIxValue
      Returns the timestamp value or the given fallback value for an empty value.
              Value must be a date / timestamp type. No cast will be done.
       
      Angegeben von:
      asTimestamp in Schnittstelle IIxValue
      Parameter:
      p_fallbackValue - The fallback value used if IIxValue.hasValue() == false.
      Gibt zurück:
      Returns the value as an timestamp.