public EndpointOverride getPath ( int pathId , String clientUUID , String [ ] filters ) throws Exception { EndpointOverride endpoint = null ; PreparedStatement statement = null ; ResultSet results = null ; try ( Connection sqlConnection = sqlService . getConnection ( ) ) { String queryString = this . getPathSelectString ( ) ; queryString += " AND " + Constants . DB_TABLE_PATH + "." + Constants . GENERIC_ID + "=" + pathId + ";" ; statement = sqlConnection . prepareStatement ( queryString ) ; statement . setString ( 1 , clientUUID ) ; results = statement . executeQuery ( ) ; if ( results . next ( ) ) { endpoint = this . getEndpointOverrideFromResultSet ( results ) ; endpoint . setFilters ( filters ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } finally { try { if ( results != null ) { results . close ( ) ; } } catch ( Exception e ) { } try { if ( statement != null ) { statement . close ( ) ; } } catch ( Exception e ) { } } return endpoint ; }
Returns information for a specific path id