Package org.apache.derby.iapi.services.io

Examples of org.apache.derby.iapi.services.io.FormatableHashtable


   */
  public void writeExternal( ObjectOutput out )
      throws IOException
  {
    super.writeExternal(out);
    FormatableHashtable fh = new FormatableHashtable();
    fh.put("columnBitMap", columnBitMap);
    out.writeObject(fh);
  }
View Full Code Here


  void savePropertyDefault(TransactionController tc, String key, Serializable value)
     throws StandardException
  {
    if (saveServiceProperty(key,value)) return;

        FormatableHashtable defaults = (FormatableHashtable)
            readProperty(tc,AccessFactoryGlobals.DEFAULT_PROPERTY_NAME);
    if (defaults == null) defaults = new FormatableHashtable();
    if (value==null)
      defaults.remove(key);
    else
      defaults.put(key,value);
    if (defaults.size() == 0) defaults = null;
    saveProperty(tc,AccessFactoryGlobals.DEFAULT_PROPERTY_NAME,(Serializable)defaults);
  }
View Full Code Here

    else
   
            dbProps = getCachedDbProperties(tc);
    }

        FormatableHashtable defaults = (FormatableHashtable)
                dbProps.get(AccessFactoryGlobals.DEFAULT_PROPERTY_NAME);
        copyValues(d, defaults, stringsOnly);
        if (!defaultsOnly) {
            copyValues(d, dbProps, stringsOnly);
        }
View Full Code 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;
 
View Full Code Here

   * @exception ClassNotFoundException    thrown on error
   */
  public void readExternal(ObjectInput in)
    throws IOException, ClassNotFoundException
  {
    FormatableHashtable fh = (FormatableHashtable)in.readObject();   
    name = (String)fh.get("name");
    tableName = (String)fh.get("tableName");
    schemaName = (String)fh.get("schemaName");
    columnPos = fh.getInt("columnPos");
    type = (DataTypeDescriptor)fh.get("type");
    isAutoincrement = fh.getBoolean("isAutoincrement");
    updatableByCursor = fh.getBoolean("updatableByCursor");
  }
View Full Code Here

    if (key == null)
      return;

    if (compileTimeConstants == null)
      compileTimeConstants = new FormatableHashtable();

    compileTimeConstants.put(key, value);
  }
View Full Code Here

   * @see java.io.Externalizable#readExternal
   */
  public void readExternal(ObjectInput in)
    throws IOException, ClassNotFoundException
  {
    FormatableHashtable fh = (FormatableHashtable)in.readObject();
    numRows = fh.getLong("numRows");
    numUnique = fh.getLong("numUnique");
  }
View Full Code Here

   * @exception IOException    thrown on error
   */
  public void writeExternal(ObjectOutput out)
     throws IOException
  {
    FormatableHashtable fh = new FormatableHashtable();
    fh.putLong("numRows", numRows);
    fh.putLong("numUnique", numUnique);
    out.writeObject(fh);
  }
View Full Code Here

      synchronized (savedObjects) {

        compileTimeConstants = (FormatableHashtable) savedObjects[ctcNumber];
        if (compileTimeConstants == null) {
          compileTimeConstants = new FormatableHashtable();
          savedObjects[ctcNumber] = compileTimeConstants;
        }
      }
    }
View Full Code Here

    if (key == null)
      return;

    if (compileTimeConstants == null)
      compileTimeConstants = new FormatableHashtable();

    compileTimeConstants.put(key, value);
  }
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.services.io.FormatableHashtable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.