MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

ch.ethz.mxquery.datamodel
Class MXQueryBinary

java.lang.Object
  extended by ch.ethz.mxquery.datamodel.MXQueryBinary

public class MXQueryBinary
extends java.lang.Object


Field Summary
static int UNDEFINED
           
 
Constructor Summary
MXQueryBinary(byte[] value, int type)
           
MXQueryBinary(java.lang.String value, int type)
           
 
Method Summary
 int compareTo(MXQueryBinary arg)
          Compares too Binary values of the same type
 boolean equals(MXQueryBinary b)
          Compares two Binary values of the same type
 boolean equals(java.lang.Object o)
           
 int getType()
           
 byte[] getValue()
           
 int hashCode()
           
 void setType(int t)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEFINED

public static final int UNDEFINED
See Also:
Constant Field Values
Constructor Detail

MXQueryBinary

public MXQueryBinary(byte[] value,
                     int type)

MXQueryBinary

public MXQueryBinary(java.lang.String value,
                     int type)
              throws MXQueryException
Throws:
MXQueryException
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(MXQueryBinary b)
Compares two Binary values of the same type

Parameters:
b - - Binary value to compare with
Returns:
true if the values are equal

compareTo

public int compareTo(MXQueryBinary arg)
              throws MXQueryException
Compares too Binary values of the same type

Parameters:
arg - - Binary value to compare with
Returns:
0 if the argument Binary is equal to this Binary ONLY FOR EQ/NEQ COMPARISON
Throws:
MXQueryException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getType

public int getType()

setType

public void setType(int t)

getValue

public byte[] getValue()

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich

MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich