Search in sources :

Example 11 with FormatableHashtable

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

the class DDColumnDependableFinder method writeExternal.

/**
 * Write this object to a stream of stored objects.  Just write the
 * byte array, besides what the parent does.
 *
 * @param out write bytes here.
 */
public void writeExternal(ObjectOutput out) throws IOException {
    super.writeExternal(out);
    FormatableHashtable fh = new FormatableHashtable();
    fh.put("columnBitMap", columnBitMap);
    out.writeObject(fh);
}
Also used : FormatableHashtable(org.apache.derby.iapi.services.io.FormatableHashtable)

Example 12 with FormatableHashtable

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

the class DDColumnDependableFinder method readExternal.

// ////////////////////////////////////////////////////////////////
// 
// FORMATABLE METHODS
// 
// ////////////////////////////////////////////////////////////////
/**
 * Read this object from a stream of stored objects.  Just read the
 * byte array, besides what the parent does.
 *
 * @param in read this.
 */
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    super.readExternal(in);
    FormatableHashtable fh = (FormatableHashtable) in.readObject();
    columnBitMap = (byte[]) fh.get("columnBitMap");
}
Also used : FormatableHashtable(org.apache.derby.iapi.services.io.FormatableHashtable)

Example 13 with FormatableHashtable

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

the class GenericColumnDescriptor method writeExternal.

// ////////////////////////////////////////////
// 
// FORMATABLE
// 
// ////////////////////////////////////////////
/**
 * Write this object out
 *
 * @param out write bytes here
 *
 * @exception IOException thrown on error
 */
public void writeExternal(ObjectOutput out) throws IOException {
    FormatableHashtable fh = new FormatableHashtable();
    fh.put("name", name);
    fh.put("tableName", tableName);
    fh.put("schemaName", schemaName);
    fh.putInt("columnPos", columnPos);
    fh.put("type", type);
    fh.putBoolean("isAutoincrement", isAutoincrement);
    fh.putBoolean("updatableByCursor", updatableByCursor);
    out.writeObject(fh);
    return;
}
Also used : FormatableHashtable(org.apache.derby.iapi.services.io.FormatableHashtable)

Example 14 with FormatableHashtable

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

the class CacheLock method getProperties.

public void getProperties(TransactionController tc, Dictionary<Object, Object> d, boolean stringsOnly, boolean defaultsOnly) throws StandardException {
    // See if I'm the exclusive owner. If so I cannot populate
    // the cache as it would contain my uncommitted changes.
    Dictionary<String, Object> dbProps;
    if (iHoldTheUpdateLock(tc)) {
        dbProps = readDbProperties(tc);
    } else {
        dbProps = getCachedDbProperties(tc);
    }
    FormatableHashtable defaults = (FormatableHashtable) dbProps.get(AccessFactoryGlobals.DEFAULT_PROPERTY_NAME);
    copyValues(d, defaults, stringsOnly);
    if (!defaultsOnly) {
        copyValues(d, dbProps, stringsOnly);
    }
}
Also used : FormatableHashtable(org.apache.derby.iapi.services.io.FormatableHashtable)

Aggregations

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