Package org.monetdb.monetdbe
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 intgetScaleJDBC()Translates MonetDBe's internal scale format into Java's MathContext scale format.
-
Constructor Details
-
MonetColumn
Constructor for constant length data types (called from monetdbe_result_fetch_all)- Parameters:
name- Column namemonetdbeType- MonetDBe type (int)constData- Column datascale- Scale for decimal values
-
MonetColumn
Constructor for variable length data types (called from monetdbe_result_fetch_all)- Parameters:
name- Column namemonetdbeType- 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
-