protected Api getApiInternal ( String organizationId , String apiId , String apiVersion ) throws SQLException { QueryRunner run = new QueryRunner ( ds ) ; return run . query ( "SELECT bean FROM gw_apis WHERE org_id = ? AND id = ? AND version = ?" , //$NON-NLS-1$ Handlers . API_HANDLER , organizationId , apiId , apiVersion ) ; }
Gets an api from the DB .