public abstract class AbstractConnectionResult extends Object implements Closeable
Modifier | Constructor and Description |
---|---|
protected |
AbstractConnectionResult(MonetDBEmbeddedConnection connection) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkMetadataArrayLength(Object input)
Checks the length of an input array for metadata retrieval
|
void |
close()
Close the result set.
|
protected abstract void |
closeResultImplementation()
Close the result set internally.
|
protected void |
finalize()
Overriding the finalize method to clean the result set.
|
abstract void |
getColumnDigits(int[] input)
Gets the column digits as an integer array.
|
abstract void |
getColumnNames(String[] input)
Gets the columns names as a string array.
|
abstract void |
getColumnScales(int[] input)
Gets the column scales as an integer array.
|
abstract void |
getColumnTypes(String[] input)
Gets the columns types as a string array.
|
MonetDBEmbeddedConnection |
getConnection()
Gets the corresponding connection to this statement result.
|
abstract void |
getMappings(MonetDBToJavaMapping[] input)
Gets the Java mappings as a MonetDBToJavaMapping array.
|
abstract int |
getNumberOfColumns()
Returns the number of columns in the result set.
|
abstract int |
getNumberOfRows()
Returns the number of rows in the result set.
|
protected long |
getRandomIdentifier()
Gets a long number randomly generated, used to identify the result set.
|
protected AbstractConnectionResult(MonetDBEmbeddedConnection connection)
public MonetDBEmbeddedConnection getConnection()
public abstract int getNumberOfColumns()
public abstract int getNumberOfRows()
protected long getRandomIdentifier()
protected void checkMetadataArrayLength(Object input)
input
- - An array to check its boundspublic abstract void getColumnNames(String[] input) throws MonetDBEmbeddedException
input
- The columns names array to fill.MonetDBEmbeddedException
- If an error in the database occurred.public abstract void getColumnTypes(String[] input) throws MonetDBEmbeddedException
input
- The columns types array to fill.MonetDBEmbeddedException
- If an error in the database occurred.public abstract void getMappings(MonetDBToJavaMapping[] input) throws MonetDBEmbeddedException
input
- The columns mappings array to fill.MonetDBEmbeddedException
- If an error in the database occurred..public abstract void getColumnDigits(int[] input) throws MonetDBEmbeddedException
input
- The columns digits array to fill.MonetDBEmbeddedException
- If an error in the database occurred.public abstract void getColumnScales(int[] input) throws MonetDBEmbeddedException
input
- The columns scales array to fill.MonetDBEmbeddedException
- If an error in the database occurred.public void close()
close
in interface Closeable
close
in interface AutoCloseable
protected abstract void closeResultImplementation()
Copyright © 2018. All rights reserved.