test_class.file: code/src/test/java/com/googlecode/cqengine/index/sqlite/support/DBUtilsTest.java
test_class.identifier: DBUtilsTest
test_case.body: @Test
      public void testCloseStatementQuietly() throws Exception {
          Statement statement = mock(Statement.class);
          DBUtils.closeQuietly(statement);
          verify(statement, times(1)).close();
      }
test_case.class_method_signature: DBUtilsTest.testCloseStatementQuietly()
test_case.full_signature: @Test public void testCloseStatementQuietly()
test_case.identifier: testCloseStatementQuietly
test_case.invocations: mock closeQuietly close verify times
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCloseStatementQuietly()
focal_class.file: code/src/main/java/com/googlecode/cqengine/index/sqlite/support/DBUtils.java
focal_class.identifier: DBUtils
focal_class.class_method_signature: DBUtils.wrapAsCloseable(final ResultSet resultSet)
focal_class.full_signature: public static Closeable wrapAsCloseable(final ResultSet resultSet)
focal_class.identifier: wrapAsCloseable
focal_class.modifiers: public static
focal_class.parameters: (final ResultSet resultSet)
focal_class.return: Closeable
focal_class.signature: Closeable wrapAsCloseable(final ResultSet resultSet)
focal_class.class_method_signature: DBUtils.setAutoCommit(final Connection connection, final boolean value)
focal_class.full_signature: public static boolean setAutoCommit(final Connection connection, final boolean value)
focal_class.identifier: setAutoCommit
focal_class.modifiers: public static
focal_class.parameters: (final Connection connection, final boolean value)
focal_class.return: boolean
focal_class.signature: boolean setAutoCommit(final Connection connection, final boolean value)
focal_class.class_method_signature: DBUtils.commit(final Connection connection)
focal_class.full_signature: public static void commit(final Connection connection)
focal_class.identifier: commit
focal_class.modifiers: public static
focal_class.parameters: (final Connection connection)
focal_class.return: void
focal_class.signature: void commit(final Connection connection)
focal_class.class_method_signature: DBUtils.rollback(final Connection connection)
focal_class.full_signature: public static boolean rollback(final Connection connection)
focal_class.identifier: rollback
focal_class.modifiers: public static
focal_class.parameters: (final Connection connection)
focal_class.return: boolean
focal_class.signature: boolean rollback(final Connection connection)
focal_class.class_method_signature: DBUtils.closeQuietly(java.sql.ResultSet resultSet)
focal_class.full_signature: public static void closeQuietly(java.sql.ResultSet resultSet)
focal_class.identifier: closeQuietly
focal_class.modifiers: public static
focal_class.parameters: (java.sql.ResultSet resultSet)
focal_class.return: void
focal_class.signature: void closeQuietly(java.sql.ResultSet resultSet)
focal_class.class_method_signature: DBUtils.closeQuietly(Statement statement)
focal_class.full_signature: public static void closeQuietly(Statement statement)
focal_class.identifier: closeQuietly
focal_class.modifiers: public static
focal_class.parameters: (Statement statement)
focal_class.return: void
focal_class.signature: void closeQuietly(Statement statement)
focal_class.class_method_signature: DBUtils.closeQuietly(Connection connection)
focal_class.full_signature: public static void closeQuietly(Connection connection)
focal_class.identifier: closeQuietly
focal_class.modifiers: public static
focal_class.parameters: (Connection connection)
focal_class.return: void
focal_class.signature: void closeQuietly(Connection connection)
focal_class.class_method_signature: DBUtils.getDBTypeForClass(final Class<?> valueType)
focal_class.full_signature: public static String getDBTypeForClass(final Class<?> valueType)
focal_class.identifier: getDBTypeForClass
focal_class.modifiers: public static
focal_class.parameters: (final Class<?> valueType)
focal_class.return: String
focal_class.signature: String getDBTypeForClass(final Class<?> valueType)
focal_class.class_method_signature: DBUtils.setValueToPreparedStatement(int index, final PreparedStatement preparedStatement, Object value)
focal_class.full_signature: public static void setValueToPreparedStatement(int index, final PreparedStatement preparedStatement, Object value)
focal_class.identifier: setValueToPreparedStatement
focal_class.modifiers: public static
focal_class.parameters: (int index, final PreparedStatement preparedStatement, Object value)
focal_class.return: void
focal_class.signature: void setValueToPreparedStatement(int index, final PreparedStatement preparedStatement, Object value)
focal_class.class_method_signature: DBUtils.setValuesToPreparedStatement(final int startIndex, final PreparedStatement preparedStatement, final Iterable values)
focal_class.full_signature: public static int setValuesToPreparedStatement(final int startIndex, final PreparedStatement preparedStatement, final Iterable values)
focal_class.identifier: setValuesToPreparedStatement
focal_class.modifiers: public static
focal_class.parameters: (final int startIndex, final PreparedStatement preparedStatement, final Iterable values)
focal_class.return: int
focal_class.signature: int setValuesToPreparedStatement(final int startIndex, final PreparedStatement preparedStatement, final Iterable values)
focal_class.class_method_signature: DBUtils.getValueFromResultSet(int index, final ResultSet resultSet, final Class<T> type)
focal_class.full_signature: @SuppressWarnings("unchecked") public static T getValueFromResultSet(int index, final ResultSet resultSet, final Class<T> type)
focal_class.identifier: getValueFromResultSet
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (int index, final ResultSet resultSet, final Class<T> type)
focal_class.return: T
focal_class.signature: T getValueFromResultSet(int index, final ResultSet resultSet, final Class<T> type)
focal_class.class_method_signature: DBUtils.sanitizeForTableName(String input)
focal_class.full_signature: public static String sanitizeForTableName(String input)
focal_class.identifier: sanitizeForTableName
focal_class.modifiers: public static
focal_class.parameters: (String input)
focal_class.return: String
focal_class.signature: String sanitizeForTableName(String input)
focal_method.body: public static void closeQuietly(java.sql.ResultSet resultSet){
          if (resultSet == null)
              return;
  
          try {
              Statement statement = resultSet.getStatement();
              if (statement != null){
                  statement.close();
              }
          }catch(Exception e){
              // Ignore
          }
  
          try{
              resultSet.close();
          }catch (Exception e){
              // Ignore
          }
      }
focal_method.class_method_signature: DBUtils.closeQuietly(java.sql.ResultSet resultSet)
focal_method.full_signature: public static void closeQuietly(java.sql.ResultSet resultSet)
focal_method.identifier: closeQuietly
focal_method.invocations: getStatement close close
focal_method.modifiers: public static
focal_method.parameters: (java.sql.ResultSet resultSet)
focal_method.return: void
focal_method.signature: void closeQuietly(java.sql.ResultSet resultSet)