Search in sources :

Example 1 with FormatableLongHolder

use of org.apache.derby.iapi.services.io.FormatableLongHolder in project derby by apache.

the class ColumnInfo method readExternal.

// Formatable methods
/**
 * Read this object from a stream of stored objects.
 *
 * @param in read this.
 *
 * @exception IOException					thrown on error
 * @exception ClassNotFoundException		thrown on error
 */
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    FormatableLongHolder flh;
    FormatableHashtable fh = (FormatableHashtable) in.readObject();
    name = (String) fh.get("name");
    dataType = (DataTypeDescriptor) fh.get("dataType");
    defaultValue = (DataValueDescriptor) fh.get("defaultValue");
    defaultInfo = (DefaultInfo) fh.get("defaultInfo");
    newDefaultUUID = (UUID) fh.get("newDefaultUUID");
    oldDefaultUUID = (UUID) fh.get("oldDefaultUUID");
    action = fh.getInt("action");
    if (fh.get("autoincStart") != null) {
        autoincStart = fh.getLong("autoincStart");
        autoincInc = fh.getLong("autoincInc");
    } else {
        autoincInc = autoincStart = 0;
    }
    FormatableArrayHolder fah = (FormatableArrayHolder) fh.get("providers");
    if (fah != null) {
        providers = fah.getArray(ProviderInfo[].class);
    }
}
Also used : FormatableHashtable(org.apache.derby.iapi.services.io.FormatableHashtable) FormatableArrayHolder(org.apache.derby.iapi.services.io.FormatableArrayHolder) FormatableLongHolder(org.apache.derby.iapi.services.io.FormatableLongHolder)

Aggregations

FormatableArrayHolder (org.apache.derby.iapi.services.io.FormatableArrayHolder)1 FormatableHashtable (org.apache.derby.iapi.services.io.FormatableHashtable)1 FormatableLongHolder (org.apache.derby.iapi.services.io.FormatableLongHolder)1