public SimpleFeature next() throws IOException, IllegalArgumentException, NoSuchElementException { ensureNext(); try { last.init(); } catch (Exception e) { java.util.logging.Logger.getGlobal().log(java.util.logging.Level.INFO, "", e); } // reset next flag setNext(null); if (this.featureSource.getEntry().getState(tx).hasListener()) { // record bounds as we have a listener who will be interested this.lastBounds = new ReferencedEnvelope(last.getBounds()); } return last; }
public SimpleFeature next() throws IOException, IllegalArgumentException, NoSuchElementException { ensureNext(); try { last.init(); } catch (Exception e) { e.printStackTrace(); } //reset next flag next = null; return last; }
public SimpleFeature next() throws IOException, IllegalArgumentException, NoSuchElementException { ensureNext(); try { last.init(); } catch (Exception e) { e.printStackTrace(); } //reset next flag next = null; if( this.featureSource.getEntry().getState(tx).hasListener() ){ // record bounds as we have a listener who will be interested this.lastBounds = new ReferencedEnvelope( last.getBounds() ); } return last; }
public SimpleFeature next() throws IOException { //init, setting id to null explicity since the feature is yet to be // inserted last.init(null); return last; }
public void init() throws SQLException, IOException { //get fid //PrimaryKey pkey = dataStore.getPrimaryKey(featureType); //TODO: factory fid prefixing out init(featureType.getTypeName() + "." + dataStore.encodeFID( key, rs )); }
public SimpleFeature next() throws IOException { //init, setting id to null explicity since the feature is yet to be // inserted last.init(null); return last; }
public void init() throws SQLException, IOException { //get fid //PrimaryKey pkey = dataStore.getPrimaryKey(featureType); //TODO: factory fid prefixing out init(featureType.getTypeName() + "." + dataStore.encodeFID( key, rs, offset )); }
public void init() throws SQLException, IOException { // get fid // PrimaryKey pkey = dataStore.getPrimaryKey(featureType); // TODO: factory fid prefixing out init(featureType.getTypeName() + "." + dataStore.encodeFID(key, rs, offset)); }
public SimpleFeature next() throws IOException { // init, setting id to null explicity since the feature is yet to be // inserted ResultSetFeature rsf = getOrCreateRSF(); rsf.init(null); return rsf; }