Package weave.utils

Examples of weave.utils.SQLExceptionWithQuery


            keyColumns.length == 1 ? "" : "s"
          ));
    }
    catch (SQLException cause)
    {
      throw new RemoteException("Error querying key columns", new SQLExceptionWithQuery(query, cause));
    }
    finally
    {
      SQLUtils.cleanup(conn);
    }
View Full Code Here


     
      return result;
    }
    catch (SQLException e)
    {
      e = new SQLExceptionWithQuery(query, e);
      throw new RemoteException("Unable to get all instances of a property.", e);
    }
    finally
    {
      SQLUtils.cleanup(rs);
View Full Code Here

      return result;
    }
    catch (SQLException e)
    {
      System.err.println(MapUtils.fromPairs("constraints", constraints, "wildcardFields", wildcardFields));
      e = new SQLExceptionWithQuery(query, e);
      throw new RemoteException("Unable to get ids given a set of property/value pairs.", e);
    }
    finally
    {
      SQLUtils.cleanup(rs);
View Full Code Here

      query = String.format("SELECT COUNT(*) FROM %s", SQLUtils.quoteSchemaTable(conn, schemaName, tableName));
      return SQLUtils.getSingleIntFromQuery(stmt, query, 0) == 0;
    }
    catch (SQLException cause)
    {
      throw new RemoteException("Unable to get row count", new SQLExceptionWithQuery(query, cause));
    }
    finally
    {
      SQLUtils.cleanup(stmt);
    }
View Full Code Here

            insertRecord(parent_id, child_id, sortOrder);
    }
    catch (SQLException e)
    {
      if (query != null)
        e = new SQLExceptionWithQuery(query, e);
      throw new RemoteException("Unable to add child.", e);
    }
    finally
    {
      SQLUtils.cleanup(rs);
View Full Code Here

      return result;
    }
    catch (SQLException e)
    {
      if (query != null)
        e = new SQLExceptionWithQuery(query, e);
      throw new RemoteException("Unable to retrieve relationships.", e);
    }
    finally
    {
      SQLUtils.cleanup(rs);
View Full Code Here

      return result;
    }
    catch (SQLException e)
    {
      if (query != null)
        e = new SQLExceptionWithQuery(query, e);
      throw new RemoteException("Unable to get all instances of a property.", e);
    }
    finally
    {
      SQLUtils.cleanup(rs);
View Full Code Here

      if (count > 0)
        System.out.println(String.format("Migrated %s type entries from %s to %s", count, MANIFEST_TABLE, publicMetadataTable));
    }
    catch (SQLException cause)
    {
      throw new SQLExceptionWithQuery(query, cause);
    }
    finally
    {
      SQLUtils.cleanup(cstmt);
    }
View Full Code Here

TOP

Related Classes of weave.utils.SQLExceptionWithQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.