Package 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 Detail

      • cancel

        void cancel()
        Reset this select to typeless and empty
      • setAggregate

        EDMSelect setAggregate​(EDMAggregate aggr)
                        throws EdmiException
        Initialize this select with an aggregate
        Parameters:
        aggr - aggrgate to use
        Returns:
        this instance
        Throws:
        EdmiException - if not possible, type error etc
      • setInstance

        EDMSelect setInstance​(EDMInstance inst)
                       throws EdmiException
        Initialize this select with an instance
        Parameters:
        inst - instance to use
        Returns:
        this instance
        Throws:
        EdmiException - if not possible, type error etc
      • binVal

        java.lang.String binVal()
        retrieve BINARY value for this select
        Returns:
        string representation of the binary value
      • setBinary

        EDMSelect setBinary​(java.lang.String s)
        Assign a BINARY value to this select
        Parameters:
        s - string representation of the binary value
        Returns:
        this select
      • boolVal

        long boolVal()
        retrieve BOOLEAN value for this select
        Returns:
        long representation of the boolean value
        See Also:
        for interpretation
      • setBoolean

        EDMSelect setBoolean​(long i)
        Assign a BOOLEAN value to this select
        Parameters:
        i - long representation of the boolean value
        Returns:
        this select
        See Also:
        for interpretation
      • enumVal

        java.lang.String enumVal()
        retrieve an ENUMERATION value for this select
        Returns:
        string representation of the enumeration value
      • setEnumeration

        EDMSelect setEnumeration​(java.lang.String s)
        Assign an ENUMERATION value to this select
        Parameters:
        s - string representation of the enumeration value
        Returns:
        this select
      • intVal

        long intVal()
        Retrieve an integer value from this select
        Returns:
        integer value
      • setInteger

        EDMSelect setInteger​(int i)
        Assign an integer value to this select
        Parameters:
        i - integer value
        Returns:
        this select
      • longVal

        long longVal()
        Retrieve a long value from this select
        Returns:
        long value
      • setLong

        EDMSelect setLong​(long i)
        Assign a long value to this select
        Parameters:
        i - long value
        Returns:
        this select
      • idVal

        long idVal()
        Retrieve aggregate or instance id
        Returns:
        instance id as long integer
      • logicalVal

        long logicalVal()
        retrieve LOGICAL value for this select
        Returns:
        long representation of the logical value
        See Also:
        for interpretation
      • setLogical

        EDMSelect setLogical​(long i)
        Assign a LOGICAL value to this select
        Parameters:
        i - long representation of the logical value
        Returns:
        this select
        See Also:
        for interpretation
      • realVal

        double realVal()
        Retrieve a real value from this select
        Returns:
        real value
      • setReal

        EDMSelect setReal​(double r)
        Assign a real value to this select
        Parameters:
        r - real value
        Returns:
        this select
      • stringVal

        java.lang.String stringVal()
        Retrieve a STRING value from this select
        Returns:
        string value
      • setString

        EDMSelect setString​(java.lang.String s)
        Assign a STRING value to this select
        Parameters:
        s - string value
        Returns:
        this select
      • getBoolean

        boolean getBoolean()
        Retrieve java.boolean value from this select
        Returns:
        boolean representation of the boolean value
      • setBoolean

        EDMSelect setBoolean​(boolean b)
        Assign a BOOLEAN value to this select
        Parameters:
        b - boolean representation of the boolean value
        Returns:
        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 value
        Returns:
        this select
      • equals

        boolean equals​(EDMSelect another)
        Check if this select equals another
        Parameters:
        another - select to compare to
        Returns:
        true if type and content matches
      • hasData

        boolean hasData()
        Check if data is set, typically if getattr on unset
        Returns:
        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 typeID
        list - type list as typeID's, null if no typelist info
        Returns:
        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 type
        Parameters:
        primType - integer representing type of the parameter
        paramValue - the value of the parameter