EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.queries
Class SQLResult

java.lang.Object
  extended by org.eclipse.persistence.queries.SQLResult
Direct Known Subclasses:
ColumnResult, ConstructorResult, EntityResult

public abstract class SQLResult
extends java.lang.Object

Purpose: An abstract superclass that represents the commonalities between the main result types of the SQLResultSetMapping

See Also:
EntityResult, ColumnResult, ConstructorResult
Author:
Gordon Yorke
Since:
TopLink Java Essentials

Field Summary
protected  SQLResultSetMapping sqlResultSetMapping
           
 
Constructor Summary
SQLResult()
           
 
Method Summary
 void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
          INTERNAL: Convert all the class-name-based settings in this SQLResult to actual class-based settings.
 SQLResultSetMapping getSQLResultMapping()
          INTERNAL: Return the SQLResultSetMapping this SQLResult is part of.
abstract  java.lang.Object getValueFromRecord(DatabaseRecord record, ResultSetMappingQuery query)
          INTERNAL: This method is a convenience method for extracting values from Results
 boolean isColumnResult()
          Return true if this is a column result.
 boolean isConstructorResult()
          Return true if this is a constructor result.
 boolean isEntityResult()
          Return true if this is an entity result.
 void setSQLResultMapping(SQLResultSetMapping mapping)
          INTERNAL: Set the SQLResultSetMapping this SQLResult is part of.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sqlResultSetMapping

protected SQLResultSetMapping sqlResultSetMapping
Constructor Detail

SQLResult

public SQLResult()
Method Detail

convertClassNamesToClasses

public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL: Convert all the class-name-based settings in this SQLResult to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes.

Parameters:
classLoader -

getSQLResultMapping

public SQLResultSetMapping getSQLResultMapping()
INTERNAL: Return the SQLResultSetMapping this SQLResult is part of.


isColumnResult

public boolean isColumnResult()
Return true if this is a column result.


isConstructorResult

public boolean isConstructorResult()
Return true if this is a constructor result.


isEntityResult

public boolean isEntityResult()
Return true if this is an entity result.


setSQLResultMapping

public void setSQLResultMapping(SQLResultSetMapping mapping)
INTERNAL: Set the SQLResultSetMapping this SQLResult is part of.


getValueFromRecord

public abstract java.lang.Object getValueFromRecord(DatabaseRecord record,
                                                    ResultSetMappingQuery query)
INTERNAL: This method is a convenience method for extracting values from Results


EclipseLink 2.4.2, build 'v20130514-5956486' API Reference