This section defines the rules for assignment between SQL data items whose datatypes are Java-SQL classes.
Each assignment transfers a source instance to a target data item:
For an insert statement specifying a table that has a Java-SQL column, refer to the Java-SQL column as the target data item and the insert value as the source instance.
For an update statement that updates a Java-SQL column, refer to the Java-SQL column as the target data item and the update value as the source instance.
For a select or fetch statement that assigns to a variable or parameter, refer to the variable or parameter as the target data item and the retrieved value as the source instance.
If the source is a variable or parameter, then it is a reference to an object in the Java VM. If the source is a column reference, which contains a serialization, then the rules for column references (see Java-SQL column references) yield a reference to an object in the Java VM. Thus, the source is a reference to an object in the Java VM.