org.openanzo.jdbc.utils.opgen
Class Result

java.lang.Object
  extended by org.openanzo.jdbc.utils.opgen.Result

public class Result
extends java.lang.Object

Enumerates the result formats a SQL statement wrapper may return.

Author:
Joe Betz

Field Summary
static Result COUNTER
          Many rows are returned by the statement.
static Result ITERATOR
          Many rows are returned by the statement.
static Result NONE
          No results returned by statement.
static Result ROW
          One row in the table is returned by the statement.
static Result VALUE
          A single value (single entry in the table).
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static Result getResultsEnum(org.w3c.dom.Node node)
          Get the type of result set
 java.lang.String getValue()
          Get the value of the result
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final Result NONE
No results returned by statement. The default.


VALUE

public static final Result VALUE
A single value (single entry in the table).


ROW

public static final Result ROW
One row in the table is returned by the statement.


ITERATOR

public static final Result ITERATOR
Many rows are returned by the statement.


COUNTER

public static final Result COUNTER
Many rows are returned by the statement.

Method Detail

getResultsEnum

public static Result getResultsEnum(org.w3c.dom.Node node)
Get the type of result set

Parameters:
node - node value for which to determine result set type
Returns:
the type of result set

getValue

public java.lang.String getValue()
Get the value of the result

Returns:
the value of the result

equals

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


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.