Code example for Connection

Methods: isClosed

0
        } 
    } 
     
    @Override 
    protected void finalize() throws Throwable { 
        if ( !external && cx != null && !cx.isClosed()) {
            Logger.getLogger( "org.geotools.jdbc").severe("State finalized with open connection.");
            dataStore.closeSafe(cx);
        } 
    } 
}