Java Code Examples for com.j256.ormlite.stmt.QueryBuilder#iterator()
The following examples show how to use
com.j256.ormlite.stmt.QueryBuilder#iterator() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FeatureTableCoreIndex.java From geopackage-core-java with MIT License | 6 votes |
/** * Query for all Geometry Index objects * * @return geometry indices iterator */ public CloseableIterator<GeometryIndex> query() { CloseableIterator<GeometryIndex> geometryIndices = null; QueryBuilder<GeometryIndex, GeometryIndexKey> qb = queryBuilder(); try { geometryIndices = qb.iterator(); } catch (SQLException e) { throw new GeoPackageException( "Failed to query for all Geometry Indices. GeoPackage: " + geoPackage.getName() + ", Table Name: " + tableName + ", Column Name: " + columnName, e); } return geometryIndices; }
Example 2
Source File: FeatureTableCoreIndex.java From geopackage-core-java with MIT License | 6 votes |
/** * Query for Geometry Index objects within the Geometry Envelope * * @param envelope * geometry envelope * @return geometry indices iterator */ public CloseableIterator<GeometryIndex> query(GeometryEnvelope envelope) { CloseableIterator<GeometryIndex> geometryIndices = null; QueryBuilder<GeometryIndex, GeometryIndexKey> qb = queryBuilder( envelope); try { geometryIndices = qb.iterator(); } catch (SQLException e) { throw new GeoPackageException( "Failed to query for Geometry Indices. GeoPackage: " + geoPackage.getName() + ", Table Name: " + tableName + ", Column Name: " + columnName, e); } return geometryIndices; }