Klasse VCValueHolderHelper

java.lang.Object
de.uplanet.lucy.server.auxiliaries.VCValueHolderHelper

@VelocityCallable("singleton") public final class VCValueHolderHelper extends Object
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static final boolean
    returns the boolean value of the ValueHolder throws Nullpointer Exception when isNull(p_vh) is true or an RuntimeException if p_vh.getValue() is not an int, long or an String that cannot parsed to an int!
    static final boolean
    getBooleanFromVH(IValueHolder<?> p_vh, boolean p_dNullValue)
    returns the float value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an int or an String cannot parsed to an Int!
    static final Boolean
    getBooleanFromVH(IValueHolder<?> p_vh, Boolean p_dNullValue)
    returns the float value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an int or an String cannot parsed to an Int!
    static final Date
     
    static final Calendar
    returns an UPCalendar from a ValueHolder throws an Exception when the getValue() is not an Date type!
    static final double
    returns the double value of the ValueHolder throws Nullpointer Exception when isNull(p_vh) is true or an RuntimeException if p_vh.getValue() is not an int, long, float, double or an String that cannot parsed to an double!
    static final double
    getDoubleFromVH(IValueHolder<?> p_vh, double p_dNullValue)
    returns the double value of the ValueHolder throws an RuntimeException when p_vh.getValue() is not an int, long, double, float or an String that cannot parsed to an double!
    static final Double
    getDoubleFromVH(IValueHolder<?> p_vh, Double p_dNullValue)
    returns the double value of the ValueHolder throws an RuntimeException when p_vh.getValue() is not an int, long, double, float or an String that cannot parsed to an double!
    static final float
    returns the float value of the ValueHolder throws Nullpointer Exception when isNull(p_vh) is true or an RuntimeException if p_vh.getValue() is not an int, long, float, double or an String that cannot parsed to an float!
    static final float
    getFloatFromVH(IValueHolder<?> p_vh, float p_fNullValue)
    returns the float value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an float, double, long, int or an String that cannot parsed to an float!
    static final Float
    getFloatFromVH(IValueHolder<?> p_vh, Float p_fNullValue)
    returns the float value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an float, double, long, int or an String that cannot parsed to an float!
    static final int
    returns the int value of the ValueHolder throws Nullpointer Exception when isNull(p_vh) is true or an RuntimeException if p_vh.getValue() is not an int, long or an String that cannot parsed to an int!
    static final int
    getIntFromVH(IValueHolder<?> p_vh, int p_iNullValue)
    returns the int value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an int, long or an String that cannot parsed to an Int!
    static final Integer
    getIntFromVH(IValueHolder<?> p_vh, Integer p_iNullValue)
    returns the int value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an int, long or an String that cannot parsed to an Int!
    static final long
    returns the long value of the ValueHolder throws Nullpointer Exception when isNull(p_vh) is true or an RuntimeException if p_vh.getValue() is not an int, long or an String that cannot parsed to an int!
    static final long
    getLongFromVH(IValueHolder<?> p_vh, long p_iNullValue)
    returns the long value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an int, long or an String that cannot parsed to an long!
    static final Long
    getLongFromVH(IValueHolder<?> p_vh, Long p_iNullValue)
    returns the long value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an int, long or an String that cannot parsed to an long!
    static final short
    returns the short value of the ValueHolder throws Nullpointer Exception when isNull(p_vh) is true or an RuntimeException if p_vh.getValue() is not an short or an String that cannot parsed to an int!
    static final short
    getShortFromVH(IValueHolder<?> p_vh, short p_sNullValue)
    returns the short value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an short or an String that cannot parsed to an short!
    static final Short
    getShortFromVH(IValueHolder<?> p_vh, Short p_sNullValue)
    returns the short value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an short or an String that cannot parsed to an short!
    static String
    getStringFromVH(de.uplanet.lucy.server.dataobjects.IDateTimeValueHolder p_vh)
    Converts the contents of a value holder to string.
    static String
    getStringFromVH(de.uplanet.lucy.server.dataobjects.IDateTimeValueHolder p_vh, String p_strNullValue)
     
    static String
    Converts the contents of a value holder to string.
    static String
    getStringFromVH(IValueHolder<?> p_vh, String p_strNullValue)
     
    static final long
     
    static final long
    getTimeInMillisFromVH(IValueHolder<?> p_vh, long p_lNullValue)
     
    static final Long
    getTimeInMillisFromVH(IValueHolder<?> p_vh, Long p_lNullValue)
     
    static final Calendar
    returns an UPCalendar from a ValueHolder throws an Exception when the getValue() is not an Date type!
    static final boolean
     
    static final boolean
     
    static final boolean
     

    Von Klasse geerbte Methoden java.lang.Object

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

    • VCValueHolderHelper

      public VCValueHolderHelper()
  • Methodendetails

    • getStringFromVH

      public static String getStringFromVH(IValueHolder<?> p_vh)
      Converts the contents of a value holder to string.
      Parameter:
      p_vh - The value holder
      Gibt zurück:
      The converted string or null
    • getStringFromVH

      public static String getStringFromVH(IValueHolder<?> p_vh, String p_strNullValue)
    • getStringFromVH

      public static String getStringFromVH(de.uplanet.lucy.server.dataobjects.IDateTimeValueHolder p_vh)
      Converts the contents of a value holder to string.
      Parameter:
      p_vh - The value holder
      Gibt zurück:
      The converted string or null
    • getStringFromVH

      public static String getStringFromVH(de.uplanet.lucy.server.dataobjects.IDateTimeValueHolder p_vh, String p_strNullValue)
    • isNull

      public static final boolean isNull(IValueHolder<?> p_vh)
      Parameter:
      p_vh -
      Gibt zurück:
      true when p_vh == null or p_vh.getValue() == null
    • isNullOrEmpty

      public static final boolean isNullOrEmpty(IValueHolder<?> p_vh)
      Parameter:
      p_vh -
      Gibt zurück:
      true when p_vh == null || p_vh.getValue() == null || p_vh.getValue().toString().length() == 0
    • isRawNull

      public static final boolean isRawNull(IValueHolder<?> p_vh)
      Parameter:
      p_vh -
      Gibt zurück:
      true when p_vh == null or p_vh.getRawValue() == null
    • getDateFromVH

      public static final Calendar getDateFromVH(IValueHolder<?> p_vh, TimeZone p_tz)
      returns an UPCalendar from a ValueHolder throws an Exception when the getValue() is not an Date type!
      Parameter:
      p_vh -
      p_tz -
      Gibt zurück:
      UPCalendar or null
    • getDateFromVH

      public static final Date getDateFromVH(IValueHolder<?> p_vh)
    • getUTCDateFromVH

      public static final Calendar getUTCDateFromVH(IValueHolder<?> p_vh)
      returns an UPCalendar from a ValueHolder throws an Exception when the getValue() is not an Date type!
      Parameter:
      p_vh -
      Gibt zurück:
      Calendar in utc or null when isNull(p_vh)
    • getTimeInMillisFromVH

      public static final long getTimeInMillisFromVH(IValueHolder<?> p_vh)
      Parameter:
      p_vh -
      Gibt zurück:
      Time in Milliseconds (UTC) from the DateTime ValueHolder
    • getTimeInMillisFromVH

      public static final long getTimeInMillisFromVH(IValueHolder<?> p_vh, long p_lNullValue)
      Parameter:
      p_vh -
      Gibt zurück:
      Time in Milliseconds from the DateTime ValueHolder, or p_lNullValue when isNull(p_vh) == true
    • getTimeInMillisFromVH

      public static final Long getTimeInMillisFromVH(IValueHolder<?> p_vh, Long p_lNullValue)
      Parameter:
      p_vh -
      Gibt zurück:
      Time in Milliseconds from the DateTime ValueHolder, or p_lNullValue when isNull(p_vh) == true
    • getIntFromVH

      public static final int getIntFromVH(IValueHolder<?> p_vh)
      returns the int value of the ValueHolder throws Nullpointer Exception when isNull(p_vh) is true or an RuntimeException if p_vh.getValue() is not an int, long or an String that cannot parsed to an int! (when null is allowed use getIntFromVH(IValueHolder, int)).
      Parameter:
      p_vh -
      Gibt zurück:
      int value of the ValueHolder
    • getIntFromVH

      public static final int getIntFromVH(IValueHolder<?> p_vh, int p_iNullValue)
      returns the int value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an int, long or an String that cannot parsed to an Int!
      Parameter:
      p_vh -
      Gibt zurück:
      int value of the ValueHolder
    • getIntFromVH

      public static final Integer getIntFromVH(IValueHolder<?> p_vh, Integer p_iNullValue)
      returns the int value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an int, long or an String that cannot parsed to an Int!
      Parameter:
      p_vh -
      Gibt zurück:
      int value of the ValueHolder
    • getLongFromVH

      public static final long getLongFromVH(IValueHolder<?> p_vh)
      returns the long value of the ValueHolder throws Nullpointer Exception when isNull(p_vh) is true or an RuntimeException if p_vh.getValue() is not an int, long or an String that cannot parsed to an int! (when null is allowed use getLongFromVH(IValueHolder, long)).
      Parameter:
      p_vh -
      Gibt zurück:
      long value of the ValueHolder
    • getLongFromVH

      public static final long getLongFromVH(IValueHolder<?> p_vh, long p_iNullValue)
      returns the long value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an int, long or an String that cannot parsed to an long!
      Parameter:
      p_vh -
      Gibt zurück:
      float value of the ValueHolder
    • getLongFromVH

      public static final Long getLongFromVH(IValueHolder<?> p_vh, Long p_iNullValue)
      returns the long value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an int, long or an String that cannot parsed to an long!
      Parameter:
      p_vh -
      Gibt zurück:
      float value of the ValueHolder
    • getShortFromVH

      public static final short getShortFromVH(IValueHolder<?> p_vh)
      returns the short value of the ValueHolder throws Nullpointer Exception when isNull(p_vh) is true or an RuntimeException if p_vh.getValue() is not an short or an String that cannot parsed to an int! (when null is allowed use getShortFromVH(IValueHolder, short)).
      Parameter:
      p_vh -
      Gibt zurück:
      short value of the ValueHolder
    • getShortFromVH

      public static final short getShortFromVH(IValueHolder<?> p_vh, short p_sNullValue)
      returns the short value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an short or an String that cannot parsed to an short!
      Parameter:
      p_vh -
      Gibt zurück:
      float value of the ValueHolder
    • getShortFromVH

      public static final Short getShortFromVH(IValueHolder<?> p_vh, Short p_sNullValue)
      returns the short value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an short or an String that cannot parsed to an short!
      Parameter:
      p_vh -
      Gibt zurück:
      float value of the ValueHolder
    • getFloatFromVH

      public static final float getFloatFromVH(IValueHolder<?> p_vh)
      returns the float value of the ValueHolder throws Nullpointer Exception when isNull(p_vh) is true or an RuntimeException if p_vh.getValue() is not an int, long, float, double or an String that cannot parsed to an float! (when null is allowed use getFloatFromVH(IValueHolder, float)).
      Parameter:
      p_vh -
      Gibt zurück:
      float value of the ValueHolder
    • getFloatFromVH

      public static final float getFloatFromVH(IValueHolder<?> p_vh, float p_fNullValue)
      returns the float value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an float, double, long, int or an String that cannot parsed to an float!
      Parameter:
      p_vh -
      Gibt zurück:
      float value of the ValueHolder
    • getFloatFromVH

      public static final Float getFloatFromVH(IValueHolder<?> p_vh, Float p_fNullValue)
      returns the float value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an float, double, long, int or an String that cannot parsed to an float!
      Parameter:
      p_vh -
      Gibt zurück:
      float value of the ValueHolder
    • getDoubleFromVH

      public static final double getDoubleFromVH(IValueHolder<?> p_vh)
      returns the double value of the ValueHolder throws Nullpointer Exception when isNull(p_vh) is true or an RuntimeException if p_vh.getValue() is not an int, long, float, double or an String that cannot parsed to an double! (when null is allowed use getDoubleFromVH(IValueHolder, double)).
      Parameter:
      p_vh -
      Gibt zurück:
      double value of the ValueHolder
    • getDoubleFromVH

      public static final double getDoubleFromVH(IValueHolder<?> p_vh, double p_dNullValue)
      returns the double value of the ValueHolder throws an RuntimeException when p_vh.getValue() is not an int, long, double, float or an String that cannot parsed to an double!
      Parameter:
      p_vh -
      Gibt zurück:
      double value of the ValueHolder
    • getDoubleFromVH

      public static final Double getDoubleFromVH(IValueHolder<?> p_vh, Double p_dNullValue)
      returns the double value of the ValueHolder throws an RuntimeException when p_vh.getValue() is not an int, long, double, float or an String that cannot parsed to an double!
      Parameter:
      p_vh -
      Gibt zurück:
      double value of the ValueHolder
    • getBooleanFromVH

      public static final boolean getBooleanFromVH(IValueHolder<?> p_vh)
      returns the boolean value of the ValueHolder throws Nullpointer Exception when isNull(p_vh) is true or an RuntimeException if p_vh.getValue() is not an int, long or an String that cannot parsed to an int! (when null is allowed use getBooleanFromVH(IValueHolder, boolean)).
      Parameter:
      p_vh -
      Gibt zurück:
      double value of the ValueHolder
    • getBooleanFromVH

      public static final boolean getBooleanFromVH(IValueHolder<?> p_vh, boolean p_dNullValue)
      returns the float value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an int or an String cannot parsed to an Int!
      Parameter:
      p_vh -
      Gibt zurück:
      float value of the ValueHolder
    • getBooleanFromVH

      public static final Boolean getBooleanFromVH(IValueHolder<?> p_vh, Boolean p_dNullValue)
      returns the float value of the ValueHolder throws an RuntimeException when p_vh.getValue is not an int or an String cannot parsed to an Int!
      Parameter:
      p_vh -
      Gibt zurück:
      float value of the ValueHolder