public void setVal ( String fldName , Constant val ) { if ( tx . isReadOnly ( ) && ! isTempTable ( ) ) throw new UnsupportedOperationException ( ) ; Type fldType = ti . schema ( ) . type ( fldName ) ; Constant v = val . castTo ( fldType ) ; if ( Page . size ( v ) > Page . maxSize ( fldType ) ) throw new SchemaIncompatibleException ( ) ; rp . setVal ( fldName , v ) ; }
Sets a value of the specified field in the current record . The type of the value must be equal to that of the specified field .