Package nl.cwi.monetdb.embedded.mapping
Class AbstractColumn
java.lang.Object
nl.cwi.monetdb.embedded.mapping.AbstractColumn
- Direct Known Subclasses:
MonetDBTableColumn
public abstract class AbstractColumn extends Object
A single Java representation of a MonetDB column.
- Author:
- Pedro Ferreira
-
Field Summary
Fields Modifier and Type Field Description protected MonetDBToJavaMapping
mapping
The mapping between MonetDB type and the Java Class. -
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractColumn(String columnType, String columnName, int columnDigits, int columnScale)
-
Method Summary
Modifier and Type Method Description int
getColumnDigits()
Gets the number digits of the column.String
getColumnInternalTypeName()
Gets the type of the column.String
getColumnName()
Gets the name of the column.int
getColumnScale()
Gets the scale of the column.MonetDBToJavaMapping
getMapping()
Gets the Java mapping of the column.
-
Field Details
-
mapping
The mapping between MonetDB type and the Java Class.
-
-
Constructor Details
-
AbstractColumn
protected AbstractColumn(String columnType, String columnName, int columnDigits, int columnScale) throws MonetDBEmbeddedException- Throws:
MonetDBEmbeddedException
-
-
Method Details
-
getColumnInternalTypeName
Gets the type of the column.- Returns:
- The Column type
-
getMapping
Gets the Java mapping of the column.- Returns:
- A enum constant of the Java mapping
-
getColumnName
Gets the name of the column.- Returns:
- The column name
-
getColumnDigits
public int getColumnDigits()Gets the number digits of the column.- Returns:
- The number of digits
-
getColumnScale
public int getColumnScale()Gets the scale of the column.- Returns:
- The scale
-