FileDocCategorySizeDatePackage
MyRationalO.javaAPI DocExample1944Fri Oct 01 15:10:24 BST 1999None

MyRationalO

public class MyRationalO extends JPubRationalO implements oracle.sql.CustomDatumFactory, oracle.sql.CustomDatum

Fields Summary
static final MyRationalO
_MyRationalOFactory
Constructors Summary
public MyRationalO()

    super();
  
public MyRationalO(sqlj.runtime.ConnectionContext c)

    super(c);
  
public MyRationalO(Connection c)

    super(c);
  
Methods Summary
public oracle.sql.CustomDatumcreate(oracle.sql.Datum d, int sqlType)

    if (d == null) return null;
    MyRationalO o = new MyRationalO();
    o._struct = new MutableStruct((STRUCT) d, _sqlType, _factory);
    o._ctx = new _Ctx(((STRUCT) d).getConnection());
    return o;
  
public static oracle.sql.CustomDatumFactorygetFactory()

     
  
    return _MyRationalOFactory;
  
public java.lang.StringtoString()

    try
    {
       return getNumerator().toString() + "/" + getDenominator().toString();
    }
    catch (SQLException e)
    {
       return null;
    }