public final class MonetDBTable extends AbstractConnectionResult
Modifier and Type | Method and Description |
---|---|
int |
appendColumns(Object[] input)
Appends new rows to the table column-wise.
|
protected void |
closeResultImplementation()
Close the result set internally.
|
MonetDBTableColumn[] |
getAllColumnsMetadata()
Gets all columns metadata.
|
void |
getColumnDefaultValues(String[] input)
Gets the columns default values in an array.
|
protected void |
getColumnDefaultValuesInternal(String[] input) |
void |
getColumnDigits(int[] input)
Gets the column digits as an integer array.
|
protected void |
getColumnDigitsInternal(int[] input) |
MonetDBTableColumn |
getColumnMetadataByIndex(int index)
Gets a column metadata by index.
|
MonetDBTableColumn |
getColumnMetadataByName(String name)
Gets a column metadata by name.
|
void |
getColumnNames(String[] input)
Gets the columns names as a string array.
|
protected void |
getColumnNamesInternal(String[] input) |
void |
getColumnNullableIndexes(boolean[] input)
Gets the columns nullable indexes as an array.
|
protected void |
getColumnNullableIndexesInternal(boolean[] input) |
void |
getColumnScales(int[] input)
Gets the column scales as an integer array.
|
protected void |
getColumnScalesInternal(int[] input) |
void |
getColumnTypes(String[] input)
Gets the columns types as a string array.
|
protected void |
getColumnTypesInternal(String[] input) |
void |
getMappings(MonetDBToJavaMapping[] input)
Gets the Java mappings as a MonetDBToJavaMapping array.
|
protected void |
getMappingsInternal(MonetDBToJavaMapping[] input) |
int |
getNumberOfColumns()
Returns the number of columns in the result set.
|
int |
getNumberOfRows()
Gets the current number of rows in the table, or -1 if an error in the database has occurred.
|
int |
getRoundingMode()
Gets the current rounding mode for decimals in this table.
|
String |
getTableName()
Gets the table name.
|
String |
getTableSchema()
Gets the table schema name.
|
int |
iterateTable(IMonetDBTableCursor cursor)
Iterate over the table using a
IMonetDBTableCursor instance. |
void |
setRoundingMode(int roundingMode)
Sets the current rounding mode for decimals in this table, from the rounding modes in the BigDecimal class.
|
checkMetadataArrayLength, close, finalize, getConnection, getRandomIdentifier
public int getNumberOfColumns()
AbstractConnectionResult
getNumberOfColumns
in class AbstractConnectionResult
public int getNumberOfRows()
getNumberOfRows
in class AbstractConnectionResult
protected void getColumnNamesInternal(String[] input)
protected void getColumnTypesInternal(String[] input)
protected void getMappingsInternal(MonetDBToJavaMapping[] input)
protected void getColumnDigitsInternal(int[] input)
protected void getColumnScalesInternal(int[] input)
protected void getColumnNullableIndexesInternal(boolean[] input)
protected void getColumnDefaultValuesInternal(String[] input)
public String getTableSchema()
public String getTableName()
public int getRoundingMode()
public void setRoundingMode(int roundingMode)
roundingMode
- The roundingMode mode value to set, between BigDecimal.ROUND_HALF_UP and
BigDecimal.ROUND_HALF_EVENpublic void getColumnNames(String[] input) throws MonetDBEmbeddedException
AbstractConnectionResult
getColumnNames
in class AbstractConnectionResult
input
- The columns names array to fill.MonetDBEmbeddedException
- If an error in the database occurred.public void getColumnTypes(String[] input) throws MonetDBEmbeddedException
AbstractConnectionResult
getColumnTypes
in class AbstractConnectionResult
input
- The columns types array to fill.MonetDBEmbeddedException
- If an error in the database occurred.public void getMappings(MonetDBToJavaMapping[] input) throws MonetDBEmbeddedException
AbstractConnectionResult
getMappings
in class AbstractConnectionResult
input
- The columns mappings array to fill.MonetDBEmbeddedException
- If an error in the database occurred..public void getColumnDigits(int[] input) throws MonetDBEmbeddedException
AbstractConnectionResult
getColumnDigits
in class AbstractConnectionResult
input
- The columns digits array to fill.MonetDBEmbeddedException
- If an error in the database occurred.public void getColumnScales(int[] input) throws MonetDBEmbeddedException
AbstractConnectionResult
getColumnScales
in class AbstractConnectionResult
input
- The columns scales array to fill.MonetDBEmbeddedException
- If an error in the database occurred.public void getColumnNullableIndexes(boolean[] input)
input
- The columns nullable indexes array to fillpublic void getColumnDefaultValues(String[] input)
input
- The columns default values array to fillpublic MonetDBTableColumn getColumnMetadataByIndex(int index)
index
- The column index (starting from 1)null
if index not in boundspublic MonetDBTableColumn getColumnMetadataByName(String name)
name
- The column namenull
if not foundpublic MonetDBTableColumn[] getAllColumnsMetadata()
public int iterateTable(IMonetDBTableCursor cursor) throws MonetDBEmbeddedException
IMonetDBTableCursor
instance.cursor
- The iterator with the business logicMonetDBEmbeddedException
- If an error in the database occurredpublic int appendColumns(Object[] input) throws MonetDBEmbeddedException
input
- An array of columns to appendMonetDBEmbeddedException
- If an error in the database occurredprotected void closeResultImplementation()
AbstractConnectionResult
closeResultImplementation
in class AbstractConnectionResult
Copyright © 2018. All rights reserved.