All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cube.tools.Convert

java.lang.Object
   |
   +----cube.tools.Convert

public class Convert
extends Object
A class that provides conversion routines, mostly for use in a database.

For more information on the cube see the cube Overview.
Copyright © 1997 Curtis E. Dyreson. All rights reserved. Please be aware of the Licence and Version.


Constructor Index

 o Convert()

Method Index

 o save()
 o StringToIdMapping(String)
Add a new mapping to the string to Id tables
 o toId(String)
Convert a String to an Id by doing a table lookup
 o toString(Id)
Convert an Id to a String by doing a table lookup

Constructors

 o Convert
  public Convert()

Methods

 o StringToIdMapping
  public static Id StringToIdMapping(String key)
Add a new mapping to the string to Id tables

Parameters:
s - - the string to convert
Returns:
- the Id to which it maps
 o toString
  public static String toString(Id key)
Convert an Id to a String by doing a table lookup

Parameters:
key - - the Id to convert
Returns:
- the string to which it maps
 o toId
  public static Id toId(String key)
Convert a String to an Id by doing a table lookup

Parameters:
key - - the String to convert
Returns:
- the Id to which it maps
 o save
  public static void save()

All Packages  Class Hierarchy  This Package  Previous  Next  Index