26 package javax.sql.rowset.serial;
27
28 import java.sql.*;
29 import java.io.*;
30 import java.util.*;
31
32 /**
33 * A serialized mapping of a <code>Ref</code> object, which is the mapping in the
34 * Java programming language of an SQL <code>REF</code> value.
35 * <p>
36 * The <code>SerialRef</code> class provides a constructor for
37 * creating a <code>SerialRef</code> instance from a <code>Ref</code>
38 * object and provides methods for getting and setting the <code>Ref</code> object.
39 *
40 * <h3> Thread safety </h3>
41 *
42 * A SerialRef is not safe for use by multiple concurrent threads. If a
43 * SerialRef is to be used by more than one thread then access to the SerialRef
44 * should be controlled by appropriate synchronization.
45 *
46 */
47 public class SerialRef implements Ref, Serializable, Cloneable {
48
49 /**
50 * String containing the base type name.
51 * @serial
52 */
53 private String baseTypeName;
54
55 /**
56 * This will store the type <code>Ref</code> as an <code>Object</code>.
57 */
58 private Object object;
59
60 /**
61 * Private copy of the Ref reference.
62 */
63 private Ref reference;
64
65 /**
|
26 package javax.sql.rowset.serial;
27
28 import java.sql.*;
29 import java.io.*;
30 import java.util.*;
31
32 /**
33 * A serialized mapping of a <code>Ref</code> object, which is the mapping in the
34 * Java programming language of an SQL <code>REF</code> value.
35 * <p>
36 * The <code>SerialRef</code> class provides a constructor for
37 * creating a <code>SerialRef</code> instance from a <code>Ref</code>
38 * object and provides methods for getting and setting the <code>Ref</code> object.
39 *
40 * <h3> Thread safety </h3>
41 *
42 * A SerialRef is not safe for use by multiple concurrent threads. If a
43 * SerialRef is to be used by more than one thread then access to the SerialRef
44 * should be controlled by appropriate synchronization.
45 *
46 * @since 1.5
47 */
48 public class SerialRef implements Ref, Serializable, Cloneable {
49
50 /**
51 * String containing the base type name.
52 * @serial
53 */
54 private String baseTypeName;
55
56 /**
57 * This will store the type <code>Ref</code> as an <code>Object</code>.
58 */
59 private Object object;
60
61 /**
62 * Private copy of the Ref reference.
63 */
64 private Ref reference;
65
66 /**
|