Package com.ipc.oce.query

Examples of com.ipc.oce.query.OCQueryResultColumn


  }

 
  public int getColumnDisplaySize(int paramInt) throws SQLException {
    try {
      OCQueryResultColumn col = columnCollection.getColumn(paramInt - 1);
      return col.getWidth();
    } catch (JIException e) {
      throw new SQLException(e);
    }
  }
View Full Code Here


 
  public String getColumnLabel(int paramInt) throws SQLException {
    String res = null;
    try {
      OCQueryResultColumn col = columnCollection.getColumn(paramInt - 1);
      res = col.getName();
    } catch (JIException e) {
      throw new SQLException(e);
    }
    return res;
  }
View Full Code Here

 
  public int getPrecision(int paramInt) throws SQLException {
    int res = 0;
    try {
      OCQueryResultColumn col = columnCollection.getColumn(paramInt - 1);
      if (getScale(paramInt) == 0) {
        res = col.getWidth();
      } else {
        res = col.getValueType().getNumberQualifiers().getDigits();
      }
    } catch (JIException e) {
      throw new SQLException(e);
    }
    return res;
View Full Code Here

 
  public int getScale(int paramInt) throws SQLException {
    int res = 0;
    try {
      OCQueryResultColumn col = columnCollection.getColumn(paramInt - 1);
      res = col.getValueType().getNumberQualifiers().getFractionDigits();
    } catch (JIException e) {
      throw new SQLException(e);
    }
    return res;
  }
View Full Code Here

 
  public int getColumnType(int paramInt) throws SQLException {
    int res = -100500;
    try {
      OCQueryResultColumn col = columnCollection.getColumn(paramInt - 1);
      OCType[] types = col.getValueType().getNotNullTypes();
      res = OCType.typesToSQLType(types);
    } catch (JIException e) {
      throw new SQLException(e);
    }
    return res;
View Full Code Here

 
  public String getColumnTypeName(int paramInt) throws SQLException {
    String res = "";
    try {
      OCQueryResultColumn col = columnCollection.getColumn(paramInt - 1);
      OCType[] types = col.getValueType().getNotNullTypes();
      res = OCType.typesToSQLTypeName(types);
    } catch (JIException e) {
      throw new SQLException(e);
    }
    return res;
View Full Code Here

 
  public boolean isReadOnly(int paramInt) throws SQLException {
    boolean res = false;
    try {
      OCQueryResultColumn col = columnCollection.getColumn(paramInt - 1);
      OCType[] types = col.getValueType().getNotNullTypes();
      if (types.length == 1
          && types[0].getTypeCode() < OCType.OCT_REF_CATALOG) {
        res = true;
      }
    } catch (JIException e) {
View Full Code Here

TOP

Related Classes of com.ipc.oce.query.OCQueryResultColumn

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.