Package com.impossibl.postgres.protocol

Examples of com.impossibl.postgres.protocol.ResultField


   * @return CompositeType of columns table
   * @throws SQLException If columnIndex is out of bounds
   */
  CompositeType getRelType(int columnIndex) throws SQLException {

    ResultField field = get(columnIndex);
    if (field.relationId == 0)
      return null;

    return connection.getRegistry().loadRelationType(field.relationId);
  }
View Full Code Here


   * @return CompositeType.Attribute of the requested column
   * @throws SQLException If columnIndex is out of bounds
   */
  CompositeType.Attribute getRelAttr(int columnIndex) throws SQLException {

    ResultField field = get(columnIndex);

    CompositeType relType = connection.getRegistry().loadRelationType(field.relationId);
    if (relType == null)
      return null;

View Full Code Here

  }

  @Override
  public boolean isAutoIncrement(int column) throws SQLException {

    ResultField field = get(column);
    CompositeType relType = connection.getRegistry().loadRelationType(field.relationId);

    return SQLTypeMetaData.isAutoIncrement(field.typeRef.get(), relType, field.relationAttributeNumber);
  }
View Full Code Here

  }

  @Override
  public int isNullable(int column) throws SQLException {

    ResultField field = get(column);
    CompositeType relType = connection.getRegistry().loadRelationType(field.relationId);

    return SQLTypeMetaData.isNullable(field.typeRef.get(), relType, field.relationAttributeNumber);
  }
View Full Code Here

    return attr.name;
  }

  @Override
  public int getColumnType(int column) throws SQLException {
    ResultField field = get(column);
    return getSQLType(field.typeRef.get());
  }
View Full Code Here

  }

  @Override
  public String getColumnTypeName(int column) throws SQLException {

    ResultField field = get(column);
    CompositeType relType = connection.getRegistry().loadRelationType(field.relationId);

    return SQLTypeMetaData.getTypeName(field.typeRef.get(), relType, field.relationAttributeNumber);
  }
View Full Code Here

  }

  @Override
  public String getColumnClassName(int column) throws SQLException {

    ResultField field = get(column);
    return SQLTypeUtils.mapGetType(field.typeRef.get(), typeMap, connection).getName();
  }
View Full Code Here

  }

  @Override
  public int getPrecision(int column) throws SQLException {

    ResultField field = get(column);
    return SQLTypeMetaData.getPrecision(field.typeRef.get(), field.typeLength, field.typeModifier);
  }
View Full Code Here

  }

  @Override
  public int getScale(int column) throws SQLException {

    ResultField field = get(column);
    return SQLTypeMetaData.getScale(field.typeRef.get(), field.typeLength, field.typeModifier);
  }
View Full Code Here

  }

  @Override
  public int getColumnDisplaySize(int column) throws SQLException {

    ResultField field = get(column);
    return SQLTypeMetaData.getDisplaySize(field.typeRef.get(), field.typeLength, field.typeModifier);
  }
View Full Code Here

TOP

Related Classes of com.impossibl.postgres.protocol.ResultField

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.