com.mysema.query.jdo
Class JDOTuple

java.lang.Object
  extended by com.mysema.query.jdo.JDOTuple
All Implemented Interfaces:
Tuple

public class JDOTuple
extends Object
implements Tuple

JDOTuple is a Tuple implementation for JDOQuery instances

Author:
tiwe

Constructor Summary
JDOTuple()
           
 
Method Summary
 boolean equals(Object obj)
          All Tuples should override equals and hashCode.
<T> T
get(Expression<T> expr)
          Get a tuple element by expression
<T> T
get(int index, Class<T> type)
          Get a Tuple element by index
 int hashCode()
          All Tuples should override equals and hashCode.
 void put(Object name, Object value)
           
 Object[] toArray()
          Get the content as an Object array
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOTuple

public JDOTuple()
Method Detail

put

public void put(Object name,
                Object value)

get

public <T> T get(int index,
                 Class<T> type)
Description copied from interface: Tuple
Get a Tuple element by index

Specified by:
get in interface Tuple
Returns:

get

public <T> T get(Expression<T> expr)
Description copied from interface: Tuple
Get a tuple element by expression

Specified by:
get in interface Tuple
Returns:

toArray

public Object[] toArray()
Description copied from interface: Tuple
Get the content as an Object array

Specified by:
toArray in interface Tuple
Returns:

equals

public boolean equals(Object obj)
Description copied from interface: Tuple
All Tuples should override equals and hashCode. For compatibility across different Tuple implementations, equality check should use Arrays.equals(Object[], Object[]) with Tuple.toArray() as parameters.

Specified by:
equals in interface Tuple
Overrides:
equals in class Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Description copied from interface: Tuple
All Tuples should override equals and hashCode. For compatibility across different Tuple implementations, hashCode should use Arrays.hashCode(Object[]) with Tuple.toArray() as parameter.

Specified by:
hashCode in interface Tuple
Overrides:
hashCode in class Object
See Also:
Object.hashCode()


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.