ca.idms.jdbc
Class IdmsMetaData

java.lang.Object
  extended by ca.idms.io.TraceObject
      extended by ca.idms.jdbc.IdmsJdbcObject
          extended by ca.idms.jdbc.IdmsMetaData
All Implemented Interfaces:
Trace, SQLState
Direct Known Subclasses:
IdmsParameterMetaData, IdmsResultSetMetaData

public abstract class IdmsMetaData
extends IdmsJdbcObject

An IdmsMetaData object provides common fields and methods for describing columns and parameters. It is the base class for IdmsResultSetMetaData and IdmsParameterMetaData.


Field Summary
 
Fields inherited from class ca.idms.jdbc.IdmsJdbcObject
FAKE_METHODS, FAKE_SUPPORT, fakeSupport, MESSAGES
 
Fields inherited from class ca.idms.io.TraceObject
exclude, EXCLUDE, FALSE, include, INCLUDE, logWriter, PREFIX, PROPERTIES_FILE, PROPERTIES_KEY, snap, SNAP, SNAP_BYTES, SNAP_NATIVE, SNAP_OBJECT, SNAP_SQL, snapBytes, snapNative, snapObject, snapSql, stub, trace, TRACE, TRACE_FILE, TRACE_LIFE, TRACE_NATIVE, TRACE_PRODUCT, traceLife, traceNative, traceStream, TRUE
 
Fields inherited from interface ca.idms.qcli.SQLState
SQL_00000, SQL_01000, SQL_01004, SQL_07001, SQL_07009, SQL_08001, SQL_08002, SQL_08003, SQL_08004, SQL_08006, SQL_08007, SQL_0A000, SQL_21000, SQL_22000, SQL_22001, SQL_22003, SQL_22005, SQL_22007, SQL_24000, SQL_25000, SQL_3C000, SQL_40000, SQL_42000, SQL_HY000, SQL_HY004, SQL_HY009, SQL_HY010, SQL_HY024, SQL_HY106, SQL_HYC00
 
Method Summary
 int getPrecision(int column)
          Get's the number of decimal digits?
 int getScale(int column)
          Gets the SQLSCALE.
 boolean isSigned(int column)
          Is it a signed number?
 
Methods inherited from class ca.idms.jdbc.IdmsJdbcObject
clearWarnings, get, getWarnings, hasCursor, hasUpdate, isStarted, isSuspended, isWrapperFor, notifyStatementError, unwrap
 
Methods inherited from class ca.idms.io.TraceObject
finalize, getBoolean, getClasses, getInteger, getProperty, listProperties, message, parseList, print, print, print, println, println, snap, snap, snap, snap, snap, snap, snap, toHex, toHex, toHex, toHex, toHex, toString, trace, trace, trace, trace, trace, trace, traceEntry, unloadProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isSigned

public boolean isSigned(int column)
                 throws java.sql.SQLException
Is it a signed number?

Parameters:
column - number starting with 1
Returns:
true if so
Throws:
java.sql.SQLException - if column index out of range.

getPrecision

public int getPrecision(int column)
                 throws java.sql.SQLException
Get's the number of decimal digits?

Parameters:
column - number starting with 1
Returns:
precision
Throws:
java.sql.SQLException - if column index out of range.

getScale

public int getScale(int column)
             throws java.sql.SQLException
Gets the SQLSCALE.

Parameters:
column - number starting with 1
Returns:
scale
Throws:
java.sql.SQLException - if column index out of range.


Copyright © 2009 CA, All rights reserved