ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/result/ResultInterface.java

Path
ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/result/ResultInterface.java
Status
scanned
Type
file
Name
ResultInterface.java
Extension
.java
Programming language
Java
Mime type
text/x-java
File type
Java source, ASCII text
Tag

      
    
Rootfs path

      
    
Size
4076 (4.0 KB)
MD5
b0cc7ecbce475ec65b786c99c9794fc9
SHA1
e1e075f873b4d881e12c43466e7c79d9b342ae6a
SHA256
b6bb360b34beb88c6580a0ce4bdd64e63123db5c38c349ad85a83dd1d60259c3
SHA512

      
    
SHA1_git
677c02247b0c2637bbc96da430d88a551716ca6e
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ResultInterface.java | 4.0 KB |

/* * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, * and the EPL 1.0 (https://h2database.com/html/license.html). * Initial Developer: H2 Group */ package org.h2.result; import org.h2.engine.Session; import org.h2.value.TypeInfo; import org.h2.value.Value; /** * The result interface is used by the LocalResult and ResultRemote class. * A result may contain rows, or just an update count. */ public interface ResultInterface extends AutoCloseable { /** * Go to the beginning of the result, that means * before the first row. */ void reset(); /** * Get the current row. * * @return the row */ Value[] currentRow(); /** * Go to the next row. * * @return true if a row exists */ boolean next(); /** * Get the current row id, starting with 0. * -1 is returned when next() was not called yet. * * @return the row id */ long getRowId(); /** * Check if the current position is after last row. * * @return true if after last */ boolean isAfterLast(); /** * Get the number of visible columns. * More columns may exist internally for sorting or grouping. * * @return the number of columns */ int getVisibleColumnCount(); /** * Get the number of rows in this object. * * @return the number of rows */ long getRowCount(); /** * Check if this result has more rows to fetch. * * @return true if it has */ boolean hasNext(); /** * Check if this result set should be closed, for example because it is * buffered using a temporary file. * * @return true if close should be called. */ boolean needToClose(); /** * Close the result and delete any temporary files */ @Override void close(); /** * Get the column alias name for the column. * * @param i the column number (starting with 0) * @return the alias name */ String getAlias(int i); /** * Get the schema name for the column, if one exists. * * @param i the column number (starting with 0) * @return the schema name or null */ String getSchemaName(int i); /** * Get the table name for the column, if one exists. * * @param i the column number (starting with 0) * @return the table name or null */ String getTableName(int i); /** * Get the column name. * * @param i the column number (starting with 0) * @return the column name */ String getColumnName(int i); /** * Get the column data type. * * @param i the column number (starting with 0) * @return the column data type */ TypeInfo getColumnType(int i); /** * Check if this is an identity column. * * @param i the column number (starting with 0) * @return true for identity columns */ boolean isIdentity(int i); /** * Check if this column is nullable. * * @param i the column number (starting with 0) * @return Column.NULLABLE_* */ int getNullable(int i); /** * Set the fetch size for this result set. * * @param fetchSize the new fetch size */ void setFetchSize(int fetchSize); /** * Get the current fetch size for this result set. * * @return the fetch size */ int getFetchSize(); /** * Check if this a lazy execution result. * * @return true if it is a lazy result */ boolean isLazy(); /** * Check if this result set is closed. * * @return true if it is */ boolean isClosed(); /** * Create a shallow copy of the result set. The data and a temporary table * (if there is any) is not copied. * * @param targetSession the session of the copy * @return the copy if possible, or null if copying is not possible */ ResultInterface createShallowCopy(Session targetSession); }
Detected license expression
mpl-2.0 AND epl-1.0
Detected license expression (SPDX)
MPL-2.0 AND EPL-1.0
Percentage of license text
1.8
Copyrights
- end_line: 2
  copyright: Copyright 2004-2023 H2 Group. Multiple-Licensed
  start_line: 2
Holders
- holder: H2 Group. Multiple-Licensed
  end_line: 2
  start_line: 2
Authors

      
    
License detections License expression License expression SPDX
mpl_2_0_and_epl_1_0-796bf8d7-f485-3520-923d-e6a4b1ecd2f3 mpl-2.0 AND epl-1.0 MPL-2.0 AND EPL-1.0
URL Start line End line
https://h2database.com/html/license.html 3 3
Package URL License Primary language
pkg:osgi/com.h2database.source@2.2.220