test_class.declarator: jdbc
test_class.modifier: private
test_class.original_string: private RDBDocumentStoreJDBC jdbc;
test_class.type: RDBDocumentStoreJDBC
test_class.var_name: jdbc
test_class.declarator: dbInfo
test_class.modifier: private
test_class.original_string: private RDBDocumentStoreDB dbInfo;
test_class.type: RDBDocumentStoreDB
test_class.var_name: dbInfo
test_class.declarator: LOG = LoggerFactory.getLogger(RDBDocumentStoreJDBCTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(RDBDocumentStoreJDBCTest.class);
test_class.type: Logger
test_class.var_name: LOG
test_class.declarator: name= new TestName()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public TestName name= new TestName();
test_class.type: TestName
test_class.var_name: name
test_class.file: oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStoreJDBCTest.java
test_class.identifier: RDBDocumentStoreJDBCTest
test_class.superclass: extends AbstractDocumentStoreTest
test_case.body: @Test
      public void batchUpdateResult() throws SQLException {
  
          // https://issues.apache.org/jira/browse/OAK-3938
          assumeTrue(super.dsf != DocumentStoreFixture.RDB_ORACLE);
  
          String table = ((RDBDocumentStore) super.ds).getTable(Collection.NODES).getName();
  
          Connection con = super.rdbDataSource.getConnection();
          con.setReadOnly(false);
          try {
              PreparedStatement st = con.prepareStatement("DELETE FROM " + table + " WHERE ID in (?, ?, ?)");
              setIdInStatement(st, 1, "key-1");
              setIdInStatement(st, 2, "key-2");
              setIdInStatement(st, 3, "key-3");
              st.executeUpdate();
              st.close();
              con.commit();
  
              st = con.prepareStatement("INSERT INTO " + table + " (id) VALUES (?)");
              setIdInStatement(st, 1, "key-3");
              st.executeUpdate();
              st.close();
              con.commit();
  
              removeMe.add("key-3");
  
              PreparedStatement batchSt = con.prepareStatement("UPDATE " + table + " SET data = '{}' WHERE id = ?");
              setIdInStatement(batchSt, 1, "key-1");
              batchSt.addBatch();
  
              setIdInStatement(batchSt, 1, "key-2");
              batchSt.addBatch();
  
              setIdInStatement(batchSt, 1, "key-3");
              batchSt.addBatch();
  
              int[] batchResult = batchSt.executeBatch();
              batchSt.close();
              con.commit();
  
              // System.out.println(super.dsname + " " +
              // Arrays.toString(batchResult));
  
              assertEquals(3, batchResult.length);
              assertFalse("Row was updated although not present, status: " + batchResult[0], isSuccess(batchResult[0]));
              assertFalse("Row was updated although not present, status: " + batchResult[1], isSuccess(batchResult[1]));
              assertTrue("Row should be updated correctly.", isSuccess(batchResult[2]));
          } finally {
              con.close();
          }
      }
test_case.class_method_signature: RDBDocumentStoreJDBCTest.batchUpdateResult()
test_case.full_signature: @Test public void batchUpdateResult()
test_case.identifier: batchUpdateResult
test_case.invocations: assumeTrue getName getTable getConnection setReadOnly prepareStatement setIdInStatement setIdInStatement setIdInStatement executeUpdate close commit prepareStatement setIdInStatement executeUpdate close commit add prepareStatement setIdInStatement addBatch setIdInStatement addBatch setIdInStatement addBatch executeBatch close commit assertEquals assertFalse isSuccess assertFalse isSuccess assertTrue isSuccess close
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void batchUpdateResult()
focal_class.declarator: LOG = LoggerFactory.getLogger(RDBDocumentStoreJDBC.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(RDBDocumentStoreJDBC.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: PERFLOG = new PerfLogger(
              LoggerFactory.getLogger(RDBDocumentStoreJDBC.class.getName() + ".perf"))
focal_class.modifier: private static final
focal_class.original_string: private static final PerfLogger PERFLOG = new PerfLogger(
              LoggerFactory.getLogger(RDBDocumentStoreJDBC.class.getName() + ".perf"));
focal_class.type: PerfLogger
focal_class.var_name: PERFLOG
focal_class.declarator: COLLISIONSMODCOUNT = RDBDocumentStore.COLLISIONSMODCOUNT
focal_class.modifier: private static final
focal_class.original_string: private static final String COLLISIONSMODCOUNT = RDBDocumentStore.COLLISIONSMODCOUNT;
focal_class.type: String
focal_class.var_name: COLLISIONSMODCOUNT
focal_class.declarator: MODCOUNT = NodeDocument.MOD_COUNT
focal_class.modifier: private static final
focal_class.original_string: private static final String MODCOUNT = NodeDocument.MOD_COUNT;
focal_class.type: String
focal_class.var_name: MODCOUNT
focal_class.declarator: MODIFIED = NodeDocument.MODIFIED_IN_SECS
focal_class.modifier: private static final
focal_class.original_string: private static final String MODIFIED = NodeDocument.MODIFIED_IN_SECS;
focal_class.type: String
focal_class.var_name: MODIFIED
focal_class.declarator: SCHEMAVERSION = RDBDocumentStore.SCHEMA
focal_class.modifier: private static final
focal_class.original_string: private static final int SCHEMAVERSION = RDBDocumentStore.SCHEMA;
focal_class.type: int
focal_class.var_name: SCHEMAVERSION
focal_class.declarator: dbInfo
focal_class.modifier: private final
focal_class.original_string: private final RDBDocumentStoreDB dbInfo;
focal_class.type: RDBDocumentStoreDB
focal_class.var_name: dbInfo
focal_class.declarator: ser
focal_class.modifier: private final
focal_class.original_string: private final RDBDocumentSerializer ser;
focal_class.type: RDBDocumentSerializer
focal_class.var_name: ser
focal_class.declarator: queryHitsLimit
focal_class.modifier: private final
focal_class.original_string: private final int queryHitsLimit, queryTimeLimit;
focal_class.type: int
focal_class.var_name: queryHitsLimit
focal_class.declarator: INITIALMODCOUNT = Long.valueOf(1)
focal_class.modifier: private static final
focal_class.original_string: private static final Long INITIALMODCOUNT = Long.valueOf(1);
focal_class.type: Long
focal_class.var_name: INITIALMODCOUNT
focal_class.declarator: INDEXED_PROP_MAPPING
focal_class.modifier: private final static
focal_class.original_string: private final static Map<String, String> INDEXED_PROP_MAPPING;
focal_class.type: Map<String, String>
focal_class.var_name: INDEXED_PROP_MAPPING
focal_class.declarator: SUPPORTED_OPS
focal_class.modifier: private final static
focal_class.original_string: private final static Set<String> SUPPORTED_OPS;
focal_class.type: Set<String>
focal_class.var_name: SUPPORTED_OPS
focal_class.declarator: INT_FALSE = 0
focal_class.modifier: private static final
focal_class.original_string: private static final Integer INT_FALSE = 0;
focal_class.type: Integer
focal_class.var_name: INT_FALSE
focal_class.declarator: INT_TRUE = 1
focal_class.modifier: private static final
focal_class.original_string: private static final Integer INT_TRUE = 1;
focal_class.type: Integer
focal_class.var_name: INT_TRUE
focal_class.declarator: idExtractor = new Function<Document, String>() {
          @Override
          public String apply(Document input) {
              return input.getId();
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final Function<Document, String> idExtractor = new Function<Document, String>() {
          @Override
          public String apply(Document input) {
              return input.getId();
          }
      };
focal_class.type: Function<Document, String>
focal_class.var_name: idExtractor
focal_class.file: oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStoreJDBC.java
focal_class.identifier: RDBDocumentStoreJDBC
focal_class.class_method_signature: RDBDocumentStoreJDBC.RDBDocumentStoreJDBC(RDBDocumentStoreDB dbInfo, RDBDocumentSerializer ser, int queryHitsLimit, int queryTimeLimit)
focal_class.full_signature: public  RDBDocumentStoreJDBC(RDBDocumentStoreDB dbInfo, RDBDocumentSerializer ser, int queryHitsLimit, int queryTimeLimit)
focal_class.identifier: RDBDocumentStoreJDBC
focal_class.modifiers: public
focal_class.parameters: (RDBDocumentStoreDB dbInfo, RDBDocumentSerializer ser, int queryHitsLimit, int queryTimeLimit)
focal_class.signature:  RDBDocumentStoreJDBC(RDBDocumentStoreDB dbInfo, RDBDocumentSerializer ser, int queryHitsLimit, int queryTimeLimit)
focal_class.class_method_signature: RDBDocumentStoreJDBC.appendingUpdate(Connection connection, RDBTableMetaData tmd, String id, Long modified,
              boolean setModifiedConditionally, Number hasBinary, Boolean deletedOnce, Long modcount, Long cmodcount,
              Long oldmodcount, String appendData)
focal_class.full_signature: public boolean appendingUpdate(Connection connection, RDBTableMetaData tmd, String id, Long modified,
              boolean setModifiedConditionally, Number hasBinary, Boolean deletedOnce, Long modcount, Long cmodcount,
              Long oldmodcount, String appendData)
focal_class.identifier: appendingUpdate
focal_class.modifiers: public
focal_class.parameters: (Connection connection, RDBTableMetaData tmd, String id, Long modified,
              boolean setModifiedConditionally, Number hasBinary, Boolean deletedOnce, Long modcount, Long cmodcount,
              Long oldmodcount, String appendData)
focal_class.return: boolean
focal_class.signature: boolean appendingUpdate(Connection connection, RDBTableMetaData tmd, String id, Long modified,
              boolean setModifiedConditionally, Number hasBinary, Boolean deletedOnce, Long modcount, Long cmodcount,
              Long oldmodcount, String appendData)
focal_class.class_method_signature: RDBDocumentStoreJDBC.delete(Connection connection, RDBTableMetaData tmd, List<String> allIds)
focal_class.full_signature: public int delete(Connection connection, RDBTableMetaData tmd, List<String> allIds)
focal_class.identifier: delete
focal_class.modifiers: public
focal_class.parameters: (Connection connection, RDBTableMetaData tmd, List<String> allIds)
focal_class.return: int
focal_class.signature: int delete(Connection connection, RDBTableMetaData tmd, List<String> allIds)
focal_class.class_method_signature: RDBDocumentStoreJDBC.delete(Connection connection, RDBTableMetaData tmd, Map<String, Long> toDelete)
focal_class.full_signature: public int delete(Connection connection, RDBTableMetaData tmd, Map<String, Long> toDelete)
focal_class.identifier: delete
focal_class.modifiers: public
focal_class.parameters: (Connection connection, RDBTableMetaData tmd, Map<String, Long> toDelete)
focal_class.return: int
focal_class.signature: int delete(Connection connection, RDBTableMetaData tmd, Map<String, Long> toDelete)
focal_class.class_method_signature: RDBDocumentStoreJDBC.deleteWithCondition(Connection connection, RDBTableMetaData tmd, List<QueryCondition> conditions)
focal_class.full_signature: public int deleteWithCondition(Connection connection, RDBTableMetaData tmd, List<QueryCondition> conditions)
focal_class.identifier: deleteWithCondition
focal_class.modifiers: public
focal_class.parameters: (Connection connection, RDBTableMetaData tmd, List<QueryCondition> conditions)
focal_class.return: int
focal_class.signature: int deleteWithCondition(Connection connection, RDBTableMetaData tmd, List<QueryCondition> conditions)
focal_class.class_method_signature: RDBDocumentStoreJDBC.determineServerTimeDifferenceMillis(Connection connection)
focal_class.full_signature: public long determineServerTimeDifferenceMillis(Connection connection)
focal_class.identifier: determineServerTimeDifferenceMillis
focal_class.modifiers: public
focal_class.parameters: (Connection connection)
focal_class.return: long
focal_class.signature: long determineServerTimeDifferenceMillis(Connection connection)
focal_class.class_method_signature: RDBDocumentStoreJDBC.insert(Connection connection, RDBTableMetaData tmd, List<T> documents)
focal_class.full_signature: public Set<String> insert(Connection connection, RDBTableMetaData tmd, List<T> documents)
focal_class.identifier: insert
focal_class.modifiers: public
focal_class.parameters: (Connection connection, RDBTableMetaData tmd, List<T> documents)
focal_class.return: Set<String>
focal_class.signature: Set<String> insert(Connection connection, RDBTableMetaData tmd, List<T> documents)
focal_class.class_method_signature: RDBDocumentStoreJDBC.update(Connection connection, RDBTableMetaData tmd, List<T> documents, boolean upsert)
focal_class.full_signature: public Set<String> update(Connection connection, RDBTableMetaData tmd, List<T> documents, boolean upsert)
focal_class.identifier: update
focal_class.modifiers: public
focal_class.parameters: (Connection connection, RDBTableMetaData tmd, List<T> documents, boolean upsert)
focal_class.return: Set<String>
focal_class.signature: Set<String> update(Connection connection, RDBTableMetaData tmd, List<T> documents, boolean upsert)
focal_class.class_method_signature: RDBDocumentStoreJDBC.assertNoDuplicatedIds(List<T> documents)
focal_class.full_signature: private static void assertNoDuplicatedIds(List<T> documents)
focal_class.identifier: assertNoDuplicatedIds
focal_class.modifiers: private static
focal_class.parameters: (List<T> documents)
focal_class.return: void
focal_class.signature: void assertNoDuplicatedIds(List<T> documents)
focal_class.class_method_signature: RDBDocumentStoreJDBC.query(Connection connection, RDBTableMetaData tmd, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions, int limit)
focal_class.full_signature: @NotNull public List<RDBRow> query(Connection connection, RDBTableMetaData tmd, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions, int limit)
focal_class.identifier: query
focal_class.modifiers: @NotNull public
focal_class.parameters: (Connection connection, RDBTableMetaData tmd, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions, int limit)
focal_class.return: List<RDBRow>
focal_class.signature: List<RDBRow> query(Connection connection, RDBTableMetaData tmd, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions, int limit)
focal_class.class_method_signature: RDBDocumentStoreJDBC.getLong(Connection connection, RDBTableMetaData tmd, String aggregate, String field, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions)
focal_class.full_signature: public long getLong(Connection connection, RDBTableMetaData tmd, String aggregate, String field, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions)
focal_class.identifier: getLong
focal_class.modifiers: public
focal_class.parameters: (Connection connection, RDBTableMetaData tmd, String aggregate, String field, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions)
focal_class.return: long
focal_class.signature: long getLong(Connection connection, RDBTableMetaData tmd, String aggregate, String field, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions)
focal_class.class_method_signature: RDBDocumentStoreJDBC.queryAsIterator(RDBConnectionHandler ch, RDBTableMetaData tmd, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions, int limit, String sortBy)
focal_class.full_signature: @NotNull public Iterator<RDBRow> queryAsIterator(RDBConnectionHandler ch, RDBTableMetaData tmd, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions, int limit, String sortBy)
focal_class.identifier: queryAsIterator
focal_class.modifiers: @NotNull public
focal_class.parameters: (RDBConnectionHandler ch, RDBTableMetaData tmd, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions, int limit, String sortBy)
focal_class.return: Iterator<RDBRow>
focal_class.signature: Iterator<RDBRow> queryAsIterator(RDBConnectionHandler ch, RDBTableMetaData tmd, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions, int limit, String sortBy)
focal_class.class_method_signature: RDBDocumentStoreJDBC.prepareQuery(Connection connection, RDBTableMetaData tmd, String columns, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions, int limit, String sortBy)
focal_class.full_signature: @NotNull private PreparedStatement prepareQuery(Connection connection, RDBTableMetaData tmd, String columns, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions, int limit, String sortBy)
focal_class.identifier: prepareQuery
focal_class.modifiers: @NotNull private
focal_class.parameters: (Connection connection, RDBTableMetaData tmd, String columns, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions, int limit, String sortBy)
focal_class.return: PreparedStatement
focal_class.signature: PreparedStatement prepareQuery(Connection connection, RDBTableMetaData tmd, String columns, String minId, String maxId,
              List<String> excludeKeyPatterns, List<QueryCondition> conditions, int limit, String sortBy)
focal_class.class_method_signature: RDBDocumentStoreJDBC.read(Connection connection, RDBTableMetaData tmd, Collection<String> allKeys)
focal_class.full_signature: public List<RDBRow> read(Connection connection, RDBTableMetaData tmd, Collection<String> allKeys)
focal_class.identifier: read
focal_class.modifiers: public
focal_class.parameters: (Connection connection, RDBTableMetaData tmd, Collection<String> allKeys)
focal_class.return: List<RDBRow>
focal_class.signature: List<RDBRow> read(Connection connection, RDBTableMetaData tmd, Collection<String> allKeys)
focal_class.class_method_signature: RDBDocumentStoreJDBC.read(Connection connection, RDBTableMetaData tmd, String id, long lastmodcount, long lastmodified)
focal_class.full_signature: @Nullable public RDBRow read(Connection connection, RDBTableMetaData tmd, String id, long lastmodcount, long lastmodified)
focal_class.identifier: read
focal_class.modifiers: @Nullable public
focal_class.parameters: (Connection connection, RDBTableMetaData tmd, String id, long lastmodcount, long lastmodified)
focal_class.return: RDBRow
focal_class.signature: RDBRow read(Connection connection, RDBTableMetaData tmd, String id, long lastmodcount, long lastmodified)
focal_class.class_method_signature: RDBDocumentStoreJDBC.update(Connection connection, RDBTableMetaData tmd, String id, Long modified, Number hasBinary,
              Boolean deletedOnce, Long modcount, Long cmodcount, Long oldmodcount, String data)
focal_class.full_signature: public boolean update(Connection connection, RDBTableMetaData tmd, String id, Long modified, Number hasBinary,
              Boolean deletedOnce, Long modcount, Long cmodcount, Long oldmodcount, String data)
focal_class.identifier: update
focal_class.modifiers: public
focal_class.parameters: (Connection connection, RDBTableMetaData tmd, String id, Long modified, Number hasBinary,
              Boolean deletedOnce, Long modcount, Long cmodcount, Long oldmodcount, String data)
focal_class.return: boolean
focal_class.signature: boolean update(Connection connection, RDBTableMetaData tmd, String id, Long modified, Number hasBinary,
              Boolean deletedOnce, Long modcount, Long cmodcount, Long oldmodcount, String data)
focal_class.class_method_signature: RDBDocumentStoreJDBC.buildWhereClause(String minId, String maxId, List<String> excludeKeyPatterns, List<QueryCondition> conditions)
focal_class.full_signature: private static String buildWhereClause(String minId, String maxId, List<String> excludeKeyPatterns, List<QueryCondition> conditions)
focal_class.identifier: buildWhereClause
focal_class.modifiers: private static
focal_class.parameters: (String minId, String maxId, List<String> excludeKeyPatterns, List<QueryCondition> conditions)
focal_class.return: String
focal_class.signature: String buildWhereClause(String minId, String maxId, List<String> excludeKeyPatterns, List<QueryCondition> conditions)
focal_class.class_method_signature: RDBDocumentStoreJDBC.getIdFromRS(RDBTableMetaData tmd, ResultSet rs, int idx)
focal_class.full_signature: private static String getIdFromRS(RDBTableMetaData tmd, ResultSet rs, int idx)
focal_class.identifier: getIdFromRS
focal_class.modifiers: private static
focal_class.parameters: (RDBTableMetaData tmd, ResultSet rs, int idx)
focal_class.return: String
focal_class.signature: String getIdFromRS(RDBTableMetaData tmd, ResultSet rs, int idx)
focal_class.class_method_signature: RDBDocumentStoreJDBC.setIdInStatement(RDBTableMetaData tmd, PreparedStatement stmt, int idx, String id)
focal_class.full_signature: private static void setIdInStatement(RDBTableMetaData tmd, PreparedStatement stmt, int idx, String id)
focal_class.identifier: setIdInStatement
focal_class.modifiers: private static
focal_class.parameters: (RDBTableMetaData tmd, PreparedStatement stmt, int idx, String id)
focal_class.return: void
focal_class.signature: void setIdInStatement(RDBTableMetaData tmd, PreparedStatement stmt, int idx, String id)
focal_class.class_method_signature: RDBDocumentStoreJDBC.setDataInStatement(RDBTableMetaData tmd, PreparedStatement stmt, int idx, String id)
focal_class.full_signature: private static void setDataInStatement(RDBTableMetaData tmd, PreparedStatement stmt, int idx, String id)
focal_class.identifier: setDataInStatement
focal_class.modifiers: private static
focal_class.parameters: (RDBTableMetaData tmd, PreparedStatement stmt, int idx, String id)
focal_class.return: void
focal_class.signature: void setDataInStatement(RDBTableMetaData tmd, PreparedStatement stmt, int idx, String id)
focal_class.class_method_signature: RDBDocumentStoreJDBC.readLongFromResultSet(ResultSet res, int index)
focal_class.full_signature: private static long readLongFromResultSet(ResultSet res, int index)
focal_class.identifier: readLongFromResultSet
focal_class.modifiers: private static
focal_class.parameters: (ResultSet res, int index)
focal_class.return: long
focal_class.signature: long readLongFromResultSet(ResultSet res, int index)
focal_class.class_method_signature: RDBDocumentStoreJDBC.readBooleanOrNullFromResultSet(ResultSet res, int index)
focal_class.full_signature: @Nullable private static Boolean readBooleanOrNullFromResultSet(ResultSet res, int index)
focal_class.identifier: readBooleanOrNullFromResultSet
focal_class.modifiers: @Nullable private static
focal_class.parameters: (ResultSet res, int index)
focal_class.return: Boolean
focal_class.signature: Boolean readBooleanOrNullFromResultSet(ResultSet res, int index)
focal_class.class_method_signature: RDBDocumentStoreJDBC.readLongOrNullFromResultSet(ResultSet res, int index)
focal_class.full_signature: @Nullable private static Long readLongOrNullFromResultSet(ResultSet res, int index)
focal_class.identifier: readLongOrNullFromResultSet
focal_class.modifiers: @Nullable private static
focal_class.parameters: (ResultSet res, int index)
focal_class.return: Long
focal_class.signature: Long readLongOrNullFromResultSet(ResultSet res, int index)
focal_class.class_method_signature: RDBDocumentStoreJDBC.deletedOnceAsNullOrInteger(Boolean b)
focal_class.full_signature: @Nullable private static Integer deletedOnceAsNullOrInteger(Boolean b)
focal_class.identifier: deletedOnceAsNullOrInteger
focal_class.modifiers: @Nullable private static
focal_class.parameters: (Boolean b)
focal_class.return: Integer
focal_class.signature: Integer deletedOnceAsNullOrInteger(Boolean b)
focal_class.class_method_signature: RDBDocumentStoreJDBC.hasBinaryAsNullOrInteger(Number n)
focal_class.full_signature: @Nullable private static Integer hasBinaryAsNullOrInteger(Number n)
focal_class.identifier: hasBinaryAsNullOrInteger
focal_class.modifiers: @Nullable private static
focal_class.parameters: (Number n)
focal_class.return: Integer
focal_class.signature: Integer hasBinaryAsNullOrInteger(Number n)
focal_class.class_method_signature: RDBDocumentStoreJDBC.sortDocuments(Collection<T> documents)
focal_class.full_signature: private static List<T> sortDocuments(Collection<T> documents)
focal_class.identifier: sortDocuments
focal_class.modifiers: private static
focal_class.parameters: (Collection<T> documents)
focal_class.return: List<T>
focal_class.signature: List<T> sortDocuments(Collection<T> documents)
focal_method.body: private static void setIdInStatement(RDBTableMetaData tmd, PreparedStatement stmt, int idx, String id) throws SQLException {
          try {
              if (tmd.isIdBinary()) {
                  stmt.setBytes(idx, UTF8Encoder.encodeAsByteArray(id));
              } else {
                  if (!UTF8Encoder.canEncode(id)) {
                      throw new IOException("can not encode as UTF-8");
                  }
                  stmt.setString(idx, id);
              }
          } catch (IOException ex) {
              LOG.warn("Invalid ID: " + id, ex);
              throw asDocumentStoreException(ex, "Invalid ID: " + id);
          }
      }
focal_method.class_method_signature: RDBDocumentStoreJDBC.setIdInStatement(RDBTableMetaData tmd, PreparedStatement stmt, int idx, String id)
focal_method.full_signature: private static void setIdInStatement(RDBTableMetaData tmd, PreparedStatement stmt, int idx, String id)
focal_method.identifier: setIdInStatement
focal_method.invocations: isIdBinary setBytes encodeAsByteArray canEncode setString warn asDocumentStoreException
focal_method.modifiers: private static
focal_method.parameters: (RDBTableMetaData tmd, PreparedStatement stmt, int idx, String id)
focal_method.return: void
focal_method.signature: void setIdInStatement(RDBTableMetaData tmd, PreparedStatement stmt, int idx, String id)