Class MultiTypeValue
- java.lang.Object
-
- com.inductiveautomation.ignition.common.sqltags.model.MultiTypeValue
-
public class MultiTypeValue extends java.lang.Object
This class holds a value for each of the type classes, in case we need to pass all of the possibilities along until we can know for sure which to use.
-
-
Constructor Summary
Constructors Constructor Description MultiTypeValue(Dataset dsVal)
MultiTypeValue(java.lang.Long intVal, java.lang.Double dblVal, java.lang.String strVal, java.util.Date dtVal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getBestGuess()
Returns the first non-null value in the order: Double,Int,Str,Date,Dataset.java.lang.Object
getValue(DataTypeClass type)
Gets the value for the specified type.
-
-
-
Constructor Detail
-
MultiTypeValue
public MultiTypeValue(java.lang.Long intVal, java.lang.Double dblVal, java.lang.String strVal, java.util.Date dtVal)
-
MultiTypeValue
public MultiTypeValue(Dataset dsVal)
-
-
Method Detail
-
getValue
public java.lang.Object getValue(DataTypeClass type)
Gets the value for the specified type. If type is null, returns the first non-null value. Ultimately returns null if nothing is found.
-
getBestGuess
public java.lang.Object getBestGuess()
Returns the first non-null value in the order: Double,Int,Str,Date,Dataset.
-
-