Mercurial > hg > monetdb-java
view src/main/java/nl/cwi/monetdb/embedded/mapping/AbstractResultTable.java @ 54:6617eaf808cb embedded
Intermediary commit. Added direct mapping for primitive types. Removed unused code.
author | Pedro Ferreira <pedro.ferreira@monetdbsolutions.com> |
---|---|
date | Fri, 18 Nov 2016 18:27:32 +0100 (2016-11-18) |
parents | c592d8a72627 |
children |
line wrap: on
line source
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright 2016 MonetDB B.V. */ package nl.cwi.monetdb.embedded.mapping; import nl.cwi.monetdb.embedded.env.AbstractConnectionResult; import nl.cwi.monetdb.embedded.env.MonetDBEmbeddedConnection; /** * Base class for statement results with data * * @author <a href="mailto:pedro.ferreira@monetdbsolutions.com">Pedro Ferreira</a> */ public abstract class AbstractResultTable extends AbstractConnectionResult { public AbstractResultTable(MonetDBEmbeddedConnection connection) { super(connection); } /** * Returns the number of columns in the result set. * * @return Number of columns */ public abstract int getNumberOfColumns(); /** * Returns the number of rows in the result set. * * @return Number of rows */ public abstract int getNumberOfRows(); /** * Gets the columns names as a string array. * * @return The columns names array */ public abstract String[] getColumnNames(); /** * Gets the columns types as a string array. * * @return The columns types array */ public abstract String[] getColumnTypes(); /** * Gets the Java mappings as a MonetDBToJavaMapping array. * * @return The columns MonetDBToJavaMapping array */ public abstract MonetDBToJavaMapping[] getMappings(); /** * Gets the columns digits as an integer array. * * @return The columns digits array */ public abstract int[] getColumnDigits(); /** * Gets the columns scales as an integer array. * * @return The columns scales array */ public abstract int[] getColumnScales(); }