Constant function ( String arg0 ) { if ( sch . type ( arg0 ) == INTEGER ) return new IntConstant ( rf . getInt ( arg0 ) ) ; else return new StringConstant ( rf . getString ( arg0 ) ) ; }
returns the value of the specified field , as a constant . the schema is examined to determine the field 's type . if integer , then the record file 's getint method is called ; otherwise , the getstring method is called . concode_field_sep RecordFile rf concode_elem_sep Schema sch concode_field_sep boolean next concode_elem_sep void beforeFirst concode_elem_sep void insert concode_elem_sep String getString concode_elem_sep void delete concode_elem_sep void setInt concode_elem_sep void moveToRid concode_elem_sep int getInt concode_elem_sep void setString concode_elem_sep void close concode_elem_sep void setVal concode_elem_sep boolean hasField concode_elem_sep RID getRid