FileDocCategorySizeDatePackage
ColumnResult.javaAPI DocGlassfish v2 API3201Tue May 22 16:54:50 BST 2007oracle.toplink.essentials.queryframework

ColumnResult

public class ColumnResult extends SQLResult

Purpose: Concrete class to represent the ColumnResult structure as defined by the EJB 3.0 Persistence specification. This class is a subcompent of the EntityResult

see
EntityResult
author
Gordon Yorke
since
TopLink Java Essentials

Fields Summary
protected String
columnName
Stores the Columns name from the result set
Constructors Summary
public ColumnResult(String column)

        this.columnName = column;
        if (this.columnName == null){
            throw new IllegalArgumentException(ExceptionLocalization.buildMessage("null_value_for_column_result"));
        }
    
Methods Summary
public java.lang.StringgetColumnName()

        return this.columnName;
    
public java.lang.ObjectgetValueFromRecord(oracle.toplink.essentials.sessions.DatabaseRecord record, oracle.toplink.essentials.queryframework.ResultSetMappingQuery query)
INTERNAL: This method is a convience method for extracting values from Results

        return record.get(this.columnName);
    
public booleanisColumnResult()

        return true;