MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mysql.clusterj.openjpa.NdbOpenJPAResult Class Reference
Inheritance diagram for com.mysql.clusterj.openjpa.NdbOpenJPAResult:
Collaboration diagram for com.mysql.clusterj.openjpa.NdbOpenJPAResult:

Public Member Functions

 NdbOpenJPAResult (ResultData resultData, DomainTypeHandler<?> domainTypeHandler, BitSet fields)
int size () throws SQLException
Set< StringgetColumnNames ()

Protected Member Functions

boolean nextInternal () throws SQLException
boolean containsInternal (Object obj, Joins joins) throws SQLException
Object getObjectInternal (Object obj, int metaType, Object arg, Joins joins) throws SQLException
Object getStreamInternal (JDBCStore store, Object obj, int metaType, Object arg, Joins joins) throws SQLException
long getLongInternal (Object obj, Joins joins) throws SQLException
com.mysql.clusterj.core.store.Column resolve (Object obj)

Protected Attributes

ResultData resultData
DomainTypeHandler<?> domainTypeHandler
BitSet fields

Detailed Description

Result for use with the Ndb runtime.

Definition at line 47 of file NdbOpenJPAResult.java.

Constructor & Destructor Documentation

com.mysql.clusterj.openjpa.NdbOpenJPAResult.NdbOpenJPAResult ( ResultData  resultData,
DomainTypeHandler<?>  domainTypeHandler,
BitSet  fields 
)
inline

Construct the Result with the result of an NDB query. This encapsulates both the result from the database and the metadata that describes the result.

Definition at line 77 of file NdbOpenJPAResult.java.

Member Function Documentation

long com.mysql.clusterj.openjpa.NdbOpenJPAResult.getLongInternal ( Object  obj,
Joins  joins 
) throws SQLException
inlineprotected

This method exists solely to bypass a known bug in OpenJPA. http://issues.apache.org/jira/browse/OPENJPA-1158

Parameters
objthe column (or column name) to fetch
joinsjoins
Returns
the long value
Exceptions
java.sql.SQLException

Definition at line 197 of file NdbOpenJPAResult.java.

Member Data Documentation

DomainTypeHandler<?> com.mysql.clusterj.openjpa.NdbOpenJPAResult.domainTypeHandler
protected

The DomainTypeHandler for the root object of the operation.

Definition at line 59 of file NdbOpenJPAResult.java.

BitSet com.mysql.clusterj.openjpa.NdbOpenJPAResult.fields
protected

The BitSet of fields requested from the operation.

Definition at line 62 of file NdbOpenJPAResult.java.

ResultData com.mysql.clusterj.openjpa.NdbOpenJPAResult.resultData
protected

The ResultData as returned from the operation.

Definition at line 56 of file NdbOpenJPAResult.java.


The documentation for this class was generated from the following file: