Class MonetColumn

java.lang.Object
org.monetdb.monetdbe.MonetColumn

public class MonetColumn
extends Object
Java class representation of a result MonetDB column. Stores data on one column of a MonetResultSet and allows for retrieving values from the column through the getX() methods. Allows type conversion according to the JDBC standard (follows table B6 of the JDBC 4.3 specification).
  • Constructor Summary

    Constructors 
    Constructor Description
    MonetColumn​(String name, int monetdbeType, Object[] varData)
    Constructor for variable length data types (called from monetdbe_result_fetch_all)
    MonetColumn​(String name, int monetdbeType, ByteBuffer constData, double scale)
    Constructor for constant length data types (called from monetdbe_result_fetch_all)
  • Method Summary

    Modifier and Type Method Description
    int getScaleJDBC()
    Translates MonetDBe's internal scale format into Java's MathContext scale format.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MonetColumn

      public MonetColumn​(String name, int monetdbeType, ByteBuffer constData, double scale)
      Constructor for constant length data types (called from monetdbe_result_fetch_all)
      Parameters:
      name - Column name
      monetdbeType - MonetDBe type (int)
      constData - Column data
      scale - Scale for decimal values
    • MonetColumn

      public MonetColumn​(String name, int monetdbeType, Object[] varData)
      Constructor for variable length data types (called from monetdbe_result_fetch_all)
      Parameters:
      name - Column name
      monetdbeType - MonetDBe type (int)
      varData - Column data
  • Method Details

    • getScaleJDBC

      public int getScaleJDBC()
      Translates MonetDBe's internal scale format into Java's MathContext scale format. Example: MonetDBe scale = 1000.0, then Java scale = 3
      Returns:
      Scale of current column in Java's MathContext scale format