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

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


     throws StandardException
  {
    if (saveServiceProperty(key,value)) return;

    Dictionary defaults = (Dictionary)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;
View Full Code Here


    if (key == null)
      return;

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

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

     throws StandardException
  {
    if (saveServiceProperty(key,value)) return;

    Dictionary defaults = (Dictionary)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;
View Full Code Here

      synchronized (savedObjects) {

        compileTimeConstants = (FormatableHashtable) savedObjects[ctcNumber];
        if (compileTimeConstants == null) {
          compileTimeConstants = new FormatableHashtable();
          savedObjects[ctcNumber] = compileTimeConstants;
        }
      }
    }
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);
    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");
  }
View Full Code Here

   *
   * @exception IOException  Thrown on read error
   */
  public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
  {
    FormatableHashtable fh = (FormatableHashtable)in.readObject();
    isUnique = fh.getBoolean("isUnique");
    int bcpLength = fh.getInt("keyLength");
    baseColumnPositions = new int[bcpLength];
    isAscending = new boolean[bcpLength];
    for (int i = 0; i < bcpLength; i++)
    {
      baseColumnPositions[i] = fh.getInt("bcp" + i);
      isAscending[i] = fh.getBoolean("isAsc" + i);
    }
    numberOfOrderedColumns = fh.getInt("orderedColumns");
    indexType = (String)fh.get("indexType");
  }
View Full Code Here

   *
   * @exception IOException  Thrown on write error
   */
  public void writeExternal(ObjectOutput out) throws IOException
  {
    FormatableHashtable fh = new FormatableHashtable();
    fh.putBoolean("isUnique", isUnique);
    fh.putInt("keyLength", baseColumnPositions.length);
    for (int i = 0; i < baseColumnPositions.length; i++)
    {
      fh.putInt("bcp" + i, baseColumnPositions[i]);
      fh.putBoolean("isAsc" + i, isAscending[i]);
    }
    fh.putInt("orderedColumns", numberOfOrderedColumns);
    fh.put("indexType", indexType);
    out.writeObject(fh);
  }
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

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.