Package de.uplanet.lucy.server.ixvalue
Klasse IxKeyValue
java.lang.Object
de.uplanet.lucy.server.ixvalue.IxKeyValue
- Alle implementierten Schnittstellen:
IIxValue
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungIxKeyValue(IIxValue p_baseValue, Map<String, IIxValue> p_keyValue) IxKeyValue(String p_value, Map<String, IIxValue> p_keyValue) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns a big decimal value.asBigDecimal(BigDecimal p_fallbackValue) Returns a big decimal value or the fallback value on an empty value.booleanReturns the a boolean value.booleanasBoolean(boolean p_bFallbackValue) Returns the boolean value or the fallback value on an empty value.asDate()Returns the date value.Returns the date value or the fallback date for an empty value.doubleasDouble()Returns a double value.doubleasDouble(double p_dFallbackValue) Returns the value as an double or the fallback value on an empty value.intasInt()Returns a integer value.intasInt(int p_iFallbackValue) Returns a integer value or the fallback value on an empty value.longasLong()Returns a long value.longasLong(long p_lFallbackValue) Returns a long value or the fallback value on an empty value.asString()Returns the value as an stringReturns the value as an stringasTime()Returns the time value.Returns the time value or the fallback value on an empty value.Returns a timestamp value.asTimestamp(Timestamp p_fallbackValue) Returns the timestamp value or the given fallback value for an empty value.IValueHolder<?> Returns the value as an value holder.getKeyValue(String p_key) Returns the value for the given key.de.uplanet.lucy.types.UP_TYPEgetType()Returns the type.getValue()Returns the physical value.booleanhasValue()Returnstrueif the value is not empty or exits.booleanReturnstrueon a primitive value type like integer or boolean.
-
Konstruktordetails
-
IxKeyValue
-
IxKeyValue
-
-
Methodendetails
-
getKeyNames
- Gibt zurück:
- Returns the key names.
-
getKeyValue
Returns the value for the given key. If no key set an empty value will returned.- Parameter:
p_key- The key name.- Gibt zurück:
- Returns the value of the key or empty.
-
getType
public de.uplanet.lucy.types.UP_TYPE getType()Beschreibung aus Schnittstelle kopiert:IIxValueReturns the type. For internal use only. -
getValue
Beschreibung aus Schnittstelle kopiert:IIxValueReturns the physical value. Mostly an string value. For normal use cases, please use theIIxValue.asBigDecimal()IIxValue.asBigDecimal(BigDecimal)IIxValue.asBoolean()IIxValue.asBoolean(boolean)IIxValue.asDate()IIxValue.asDate(Date)IIxValue.asDouble()IIxValue.asDouble(double)IIxValue.asInt()IIxValue.asInt(int)IIxValue.asLong()IIxValue.asLong(long)IIxValue.asString()IIxValue.asString(String)IIxValue.asTime()IIxValue.asTime(Date)IIxValue.asTimestamp()IIxValue.asTimestamp(Timestamp)
-
asValueHolder
Beschreibung aus Schnittstelle kopiert:IIxValueReturns the value as an value holder.- Angegeben von:
asValueHolderin SchnittstelleIIxValue- Gibt zurück:
- Converts a IIxValue to an value holder.
-
asBoolean
public boolean asBoolean()Beschreibung aus Schnittstelle kopiert:IIxValueReturns the a boolean value.Cast Rules: String "0" = false "1" = true "true" = true "false" = false Numeric (int, long, double): 0 = false 1 = true -
asDouble
public double asDouble()Beschreibung aus Schnittstelle kopiert:IIxValueReturns a double value.Cast Rules: String Double.parseDouble(value) Numeric Types (double)value -
asInt
public int asInt()Beschreibung aus Schnittstelle kopiert:IIxValueReturns a integer value.Cast Rules: String Integer.parseInteger(value) Numeric Types (int)value -
asLong
public long asLong()Beschreibung aus Schnittstelle kopiert:IIxValueReturns a long value.Cast Rules: String Long.parseLong(value) Numeric Types (long)value- Angegeben von:
asLongin SchnittstelleIIxValue- Gibt zurück:
- Returns the value as an long.
Throws an exception if
IIxValue.hasValue()==falseor the value type cannot be cast to an long.
-
asTimestamp
Beschreibung aus Schnittstelle kopiert:IIxValueReturns a timestamp value.Value must be a date / timestamp type. No cast will be done.- Angegeben von:
asTimestampin SchnittstelleIIxValue- Gibt zurück:
- Returns the value as an timestamp.
-
asTimestamp
Beschreibung aus Schnittstelle kopiert:IIxValueReturns 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:
asTimestampin SchnittstelleIIxValue- Parameter:
p_fallbackValue- The fallback value used ifIIxValue.hasValue()==false.- Gibt zurück:
- Returns the value as an timestamp.
-
asDate
Beschreibung aus Schnittstelle kopiert:IIxValueReturns the date value.Value must be a date / time stamp / string type. -
asDate
Beschreibung aus Schnittstelle kopiert:IIxValueReturns the date value or the fallback date for an empty value.Value must be a date / time stamp / string type.- Angegeben von:
asDatein SchnittstelleIIxValue- Parameter:
p_fallbackValue- The fallback value used ifIIxValue.hasValue()==false.- Gibt zurück:
- Returns the value as an date.
-
asTime
Beschreibung aus Schnittstelle kopiert:IIxValueReturns the time value.Value must be a time / time stamp / string type. -
asTime
Beschreibung aus Schnittstelle kopiert:IIxValueReturns the time value or the fallback value on an empty value.Value must be a time / time stamp / string type. -
asBigDecimal
Beschreibung aus Schnittstelle kopiert:IIxValueReturns a big decimal value.Cast Rules: String new BigDecimal(value) Numeric Types new BigDecimalvalue)- Angegeben von:
asBigDecimalin SchnittstelleIIxValue- Gibt zurück:
- Returns the value as an big decimal or null if
IIxValue.hasValue()==false.
-
asString
Beschreibung aus Schnittstelle kopiert:IIxValueReturns the value as an stringCast Rules: Date values: A string representation of the date in theyyyy-MM-dd HH:mm:ssformat, calculated for the TimeZone UTC. Other Types: String.valueOf(type) will returned. -
hasValue
public boolean hasValue()Beschreibung aus Schnittstelle kopiert:IIxValueReturnstrueif the value is not empty or exits.- Angegeben von:
hasValuein SchnittstelleIIxValue- Gibt zurück:
- Returns
trueifIIxValue.getValue()!= null otherwisefalsewill returned.
-
asBoolean
public boolean asBoolean(boolean p_bFallbackValue) Beschreibung aus Schnittstelle kopiert:IIxValueReturns 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:
asBooleanin SchnittstelleIIxValue- Parameter:
p_bFallbackValue- The fallback value used ifIIxValue.hasValue()==false.- Gibt zurück:
- Returns the value as an boolean or the given fallback value if
IIxValue.hasValue()==false.
-
asDouble
public double asDouble(double p_dFallbackValue) Beschreibung aus Schnittstelle kopiert:IIxValueReturns the value as an double or the fallback value on an empty value.Cast Rules: String Double.parseDouble(value) Numeric: (double)value- Angegeben von:
asDoublein SchnittstelleIIxValue- Parameter:
p_dFallbackValue- The fallback value used ifIIxValue.hasValue()==false.- Gibt zurück:
- Returns the value as an double or the fallback value if
IIxValue.hasValue()==false.
-
asInt
public int asInt(int p_iFallbackValue) Beschreibung aus Schnittstelle kopiert:IIxValueReturns 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:
asIntin SchnittstelleIIxValue- Parameter:
p_iFallbackValue- The fallback value used ifIIxValue.hasValue()==false.- Gibt zurück:
- Returns the value as an integer or p_iFallbackValue if
IIxValue.hasValue()==false
-
asLong
public long asLong(long p_lFallbackValue) Beschreibung aus Schnittstelle kopiert:IIxValueReturns 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:
asLongin SchnittstelleIIxValue- Parameter:
p_lFallbackValue- The fallback value used ifIIxValue.hasValue()==false.- Gibt zurück:
- Returns the value as an long or p_lFallbackValue if
IIxValue.hasValue()==false.
-
asString
Beschreibung aus Schnittstelle kopiert:IIxValueReturns the value as an stringCast Rules: Date values: A string representation of the date in theyyyy-MM-dd HH:mm:ssformat, calculated for the TimeZone UTC. Other Types: String.valueOf(type) will returned.- Angegeben von:
asStringin SchnittstelleIIxValue- Parameter:
p_strFallbackValue- The fallback value used ifIIxValue.hasValue()==false.- Gibt zurück:
- Returns the value as an string or p_strFallbackValue if
IIxValue.hasValue()==false.
-
asBigDecimal
Beschreibung aus Schnittstelle kopiert:IIxValueReturns a big decimal value or the fallback value on an empty value.Cast Rules: String new BigDecimal(value) Numeric Types new BigDecimalvalue)- Angegeben von:
asBigDecimalin SchnittstelleIIxValue- Parameter:
p_fallbackValue- The fallback value used ifIIxValue.hasValue()==false.- Gibt zurück:
- Returns the value as an string or p_fallbackValue if
IIxValue.hasValue()==false.
-
isPrimitive
public boolean isPrimitive()Beschreibung aus Schnittstelle kopiert:IIxValueReturnstrueon a primitive value type like integer or boolean.- Angegeben von:
isPrimitivein SchnittstelleIIxValue- Gibt zurück:
- Returns
trueif the value represent an primitive type like a boolean, integer...
-