public ReferencedEnvelope getBounds() throws IOException { return getBounds(Query.ALL); }
/** * Retrieve Bounds of Query results. * * <p> * Currently returns null, consider getFeatures( query ).getBounds() * instead. * </p> * * <p> * Subclasses may override this method to perform the appropriate * optimization for this result. * </p> * * @param query Query we are requesting the bounds of * * @return null representing the lack of an optimization * * @throws IOException DOCUMENT ME! */ public ReferencedEnvelope getBounds(Query query) throws IOException { if(query.getTypeName() == null) { query = new DefaultQuery(query); ((DefaultQuery) query).setTypeName(getSchema().getTypeName()); } return ((OracleDataStore) getDataStore()).bounds(query); }
/** * Default implementation based on getFeatureReader and getFeatureWriter. * * <p> * We should be able to optimize this to only get the RowSet once * </p> * * @see org.geotools.data.DataStore#getFeatureSource(java.lang.String) */ public SimpleFeatureSource getFeatureSource(String typeName) throws IOException { if (!typeHandler.getFIDMapper(typeName).isVolatile() || allowWriteOnVolatileFIDs) { if (getLockingManager() != null) { // Use default JDBCFeatureLocking that delegates all locking // the getLockingManager // return new OracleFeatureLocking(this, getSchema(typeName)); } else { // subclass should provide a FeatureLocking implementation // but for now we will simply forgo all locking return new OracleFeatureStore(this, getSchema(typeName)); } } else { return new OracleFeatureSource(this, getSchema(typeName)); } }