com.sybase.CORBA.jdbc11.SQL class

Description

package com.sybase.CORBA.jdbc11;
public abstract class SQL

Provides methods to convert EAServer’s predefined CORBA IDL datatypes to core Java datatypes.

Constructors

None. All methods are static.

Methods

See also

com.sybase.CORBA.jdbc11.IDL class




SQL.getBigDecimal(BCD.Decimal)

Description

Converts a BCD::Decimal CORBA IDL object to an equivalent java.math.BigDecimal.

Syntax

Package

com.sybase.CORBA.jdbc11

Class

SQL

public static java.math.BigDecimal 
        getBigDecimal(BCD.Decimal value)

Parameters

value

A BCD.Decimal value to be converted.

Returns

The value converted to an equivalent java.math.BigDecimal value.

See also

getBigDecimal(BCD.Decimal), getBigDecimal(BCD.Money), IDL.getDecimal(java.math.BigDecimal)




SQL.getBigDecimal(BCD.Money)

Description

Converts a BCD::Money CORBA IDL object to an equivalent java.math.BigDecimal.

Syntax

Package

com.sybase.CORBA.jdbc11

Class

SQL

public static java.math.BigDecimal
        getBigDecimal(BCD.Money value)

Parameters

value

A BCD.Money value to be converted.

Returns

The value converted to an equivalent java.math.BigDecimal value.

See also

getBigDecimal(BCD.Decimal), IDL.getMoney(java.math.BigDecimal)




SQL.getDate(MJD.Date)

Description

Converts an MJD::Date CORBA IDL object to an equivalent java.sql.Date object.

Syntax

Package

com.sybase.CORBA.jdbc11

Class

SQL

public static java.sql.Date getDate(MJD.Date value)

Parameters

value

An MJD::Date value to be converted.

Returns

The value converted to an equivalent java.sql.Date value.

See also

getTime(MJD.Time), getTimestamp(MJD.Timestamp), IDL.getDate(java.sql.Date)




SQL.getResultSet(TabularResults.ResultSet)

Description

Converts a TabularResults::ResultSet CORBA IDL object to an equivalent java.sql.ResultSet object.

Syntax

Package

com.sybase.CORBA.jdbc11

Class

SQL

public static java.sql.ResultSet 
         getResultSet(TabularResults.ResultSet rs)

Parameters

rs

A TabularResults.ResultSet object to be converted.

Returns

The value converted to an equivalent java.sql.ResultSet value.

See also

IDL.getResultSet(java.sql.ResultSet)




SQL.getTime(MJD.Time)

Description

Converts an MJD::Time CORBA IDL object to an equivalent java.sql.Time object.

Syntax

Package

com.sybase.CORBA.jdbc11

Class

SQL

public static java.sql.Time getTime(MJD.Time value)

Parameters

value

An MJD.Time value to be converted.

Returns

The value converted to an equivalent java.sql.Time value.

See also

getDate(MJD.Date), getTimestamp(MJD.Timestamp), IDL.getTime(java.sql.Time)




SQL.getTimestamp(MJD.Timestamp)

Description

Converts an MJD::Timestamp CORBA IDL object to an equivalent java.sql.Timestamp object.

Syntax

Package

com.sybase.CORBA.jdbc11

Class

SQL

public static java.sql.Timestamp
        getTimestamp(MJD.Timestamp value)

Parameters

value

An MJD.Timestamp value to be converted.

Returns

The value converted to an equivalent java.sql.Timestamp value.

See also

getDate(MJD.Date), getTime(MJD.Time), IDL.getTimestamp(java.sql.Timestamp)