EDMSelect
edm.edom3
Interface EDMSelect
All Superinterfaces:EDMContextDependent, EDMData
public interface EDMSelect extends EDMData
The EDMSelect interface is the fundamental interface for transferreing data to and from an EDM database, and wraps any EDM single data element like instance, aggregate, real, string and so on.
Method Summary
All Methods Instance Methods Abstract MethodsÂ
Modifier and Type Method and Description EDMAggregate
aggrVal()
Retrieve aggregate from selectjava.lang.String
binVal()
retrieve BINARY value for this selectlong
boolVal()
retrieve BOOLEAN value for this selectvoid
cancel()
Reset this select to typeless and emptyjava.lang.String
enumVal()
retrieve an ENUMERATION value for this selectboolean
equals(EDMSelect another)
Check if this select equals anotherboolean
getBoolean()
Retrieve java.boolean value from this selectbyte[]
getByteArray()
EDOM3 Special Extension: Retrieve byte array value from this select.long
getSdaiType()
Get primitive data type.long[]
getTypelist()
Retrieve type list for this select.boolean
hasData()
Check if data is set, typically if getattr on unsetlong
idVal()
Retrieve aggregate or instance idEDMInstance
instVal()
Retrieve instance from selectlong
intVal()
Retrieve an integer value from this selectlong
logicalVal()
retrieve LOGICAL value for this selectlong
longVal()
Retrieve a long value from this selectdouble
realVal()
Retrieve a real value from this selectEDMSelect
setAggregate(EDMAggregate aggr)
Initialize this select with an aggregateEDMSelect
setBinary(java.lang.String s)
Assign a BINARY value to this selectEDMSelect
setBoolean(boolean b)
Assign a BOOLEAN value to this selectEDMSelect
setBoolean(long i)
Assign a BOOLEAN value to this selectEDMSelect
setByteArray(byte[]Â b)
EDOM3 Special Extension: Assign a Byte Array value to this select.void
setEdmType(int primType, long paramValue)
Assign edmUNIQUE_INDEX, edmSEQUENCE_NUMBER, edmTime_STAMP,edmPACKED_DATE value and typeEDMSelect
setEnumeration(java.lang.String s)
Assign an ENUMERATION value to this selectEDMSelect
setInstance(EDMInstance inst)
Initialize this select with an instanceEDMSelect
setInteger(int i)
Assign an integer value to this selectEDMSelect
setLogical(long i)
Assign a LOGICAL value to this selectEDMSelect
setLong(long i)
Assign a long value to this selectEDMSelect
setReal(double r)
Assign a real value to this selectEDMSelect
setString(java.lang.String s)
Assign a STRING value to this selectEDMSelect
setTypelist(long type, long[] list)
Set type info for this select.java.lang.String
stringVal()
Retrieve a STRING value from this selectMethods inherited from interface edm.edom3.EDMData
exists, getInstanceId, getName, getOwner, isLocal, isRemote
Methods inherited from interface edm.edom3.EDMContextDependent
getContext
Method Detail
cancel
void cancel()
Reset this select to typeless and empty
aggrVal
EDMAggregate aggrVal() throws EdmiException
Retrieve aggregate from selectReturns:aggrgateThrows:EdmiException - if not possible, type error etc
setAggregate
EDMSelect setAggregate(EDMAggregate aggr) throws EdmiException
Initialize this select with an aggregateParameters:aggr - aggrgate to useReturns:this instanceThrows:EdmiException - if not possible, type error etc
instVal
EDMInstance instVal() throws EdmiException
Retrieve instance from selectReturns:instanceThrows:EdmiException - if not possible, type error etc
setInstance
EDMSelect setInstance(EDMInstance inst) throws EdmiException
Initialize this select with an instanceParameters:inst - instance to useReturns:this instanceThrows:EdmiException - if not possible, type error etc
binVal
java.lang.String binVal()
retrieve BINARY value for this selectReturns:string representation of the binary value
setBinary
EDMSelect setBinary(java.lang.String s)
Assign a BINARY value to this selectParameters:s - string representation of the binary valueReturns:this select
boolVal
long boolVal()
retrieve BOOLEAN value for this selectReturns:long representation of the boolean valueSee Also:for interpretation
setBoolean
EDMSelect setBoolean(long i)
Assign a BOOLEAN value to this selectParameters:i - long representation of the boolean valueReturns:this selectSee Also:for interpretation
enumVal
java.lang.String enumVal()
retrieve an ENUMERATION value for this selectReturns:string representation of the enumeration value
setEnumeration
EDMSelect setEnumeration(java.lang.String s)
Assign an ENUMERATION value to this selectParameters:s - string representation of the enumeration valueReturns:this select
intVal
long intVal()
Retrieve an integer value from this selectReturns:integer value
setInteger
EDMSelect setInteger(int i)
Assign an integer value to this selectParameters:i - integer valueReturns:this select
longVal
long longVal()
Retrieve a long value from this selectReturns:long value
setLong
EDMSelect setLong(long i)
Assign a long value to this selectParameters:i - long valueReturns:this select
idVal
long idVal()
Retrieve aggregate or instance idReturns:instance id as long integer
logicalVal
long logicalVal()
retrieve LOGICAL value for this selectReturns:long representation of the logical valueSee Also:for interpretation
setLogical
EDMSelect setLogical(long i)
Assign a LOGICAL value to this selectParameters:i - long representation of the logical valueReturns:this selectSee Also:for interpretation
realVal
double realVal()
Retrieve a real value from this selectReturns:real value
setReal
EDMSelect setReal(double r)
Assign a real value to this selectParameters:r - real valueReturns:this select
stringVal
java.lang.String stringVal()
Retrieve a STRING value from this selectReturns:string value
setString
EDMSelect setString(java.lang.String s)
Assign a STRING value to this selectParameters:s - string valueReturns:this select
getBoolean
boolean getBoolean()
Retrieve java.boolean value from this selectReturns:boolean representation of the boolean value
setBoolean
EDMSelect setBoolean(boolean b)
Assign a BOOLEAN value to this selectParameters:b - boolean representation of the boolean valueReturns:this select
getByteArray
byte[]Â getByteArray()
EDOM3 Special Extension: Retrieve byte array value from this select.Returns:byte array representation of the value
setByteArray
EDMSelect setByteArray(byte[] b)
EDOM3 Special Extension: Assign a Byte Array value to this select. For those on the JNI side note that the LENGTH is placed in the SdaiSelect.nTypes attribute. The DATA are on the JNI placed in the SdaiSelect.value.binVal attribute. This ONLY on the JNI (C) side, NOT on the JAVA side.Parameters:b - byte array representation of the valueReturns:this select
equals
boolean equals(EDMSelect another)
Check if this select equals anotherParameters:another - select to compare toReturns:true if type and content matches
hasData
boolean hasData()
Check if data is set, typically if getattr on unsetReturns:true if any data
getTypelist
long[]Â getTypelist()
Retrieve type list for this select. See EDMassist for more info on the SELECT type.Returns:type list as typeID's, null if no typeinfo
setTypelist
EDMSelect setTypelist(long type, long[] list)
Set type info for this select. See EDMassist for more info on the SELECT type.Parameters:type - type as typeIDlist - type list as typeID's, null if no typelist infoReturns:this select instance
getSdaiType
long getSdaiType()
Get primitive data type.Returns:the SDAI type for this select.See Also:EDMConstants.PrimitiveTypes
setEdmType
void setEdmType(int primType, long paramValue)
Assign edmUNIQUE_INDEX, edmSEQUENCE_NUMBER, edmTime_STAMP,edmPACKED_DATE value and typeParameters:primType - integer representing type of the parameterparamValue - the value of the parameter