/** * Validates that the meta data is valid against the server meta data if we haven't yet done so. Otherwise, for * every UPSERT VALUES call, we'd need to hit the server to see if the meta data has changed. * * @return the server time to use for the upsert * @throws SQLException * if the table or any columns no longer exist */ private long[] validateAll() throws SQLException { int i = 0; long[] timeStamps = new long[this.mutations.size()]; for (Map.Entry<TableRef, MultiRowMutationState> entry : mutations.entrySet()) { TableRef tableRef = entry.getKey(); timeStamps[i++] = validateAndGetServerTimestamp(tableRef, entry.getValue()); } return timeStamps; }
long serverTimestamp = serverTimeStamps == null ? validateAndGetServerTimestamp(tableRef, multiRowMutationState) : serverTimeStamps[i++]; Long scn = connection.getSCN();
/** * Validates that the meta data is valid against the server meta data if we haven't yet done so. Otherwise, for * every UPSERT VALUES call, we'd need to hit the server to see if the meta data has changed. * * @return the server time to use for the upsert * @throws SQLException * if the table or any columns no longer exist */ private long[] validateAll() throws SQLException { int i = 0; long[] timeStamps = new long[this.mutations.size()]; for (Map.Entry<TableRef, MultiRowMutationState> entry : mutations.entrySet()) { TableRef tableRef = entry.getKey(); timeStamps[i++] = validateAndGetServerTimestamp(tableRef, entry.getValue()); } return timeStamps; }
/** * Validates that the meta data is valid against the server meta data if we haven't yet done so. Otherwise, for * every UPSERT VALUES call, we'd need to hit the server to see if the meta data has changed. * * @return the server time to use for the upsert * @throws SQLException * if the table or any columns no longer exist */ private long[] validateAll() throws SQLException { int i = 0; long[] timeStamps = new long[this.mutations.size()]; for (Map.Entry<TableRef, MultiRowMutationState> entry : mutations.entrySet()) { TableRef tableRef = entry.getKey(); timeStamps[i++] = validateAndGetServerTimestamp(tableRef, entry.getValue()); } return timeStamps; }
long serverTimestamp = serverTimeStamps == null ? validateAndGetServerTimestamp(tableRef, multiRowMutationState) : serverTimeStamps[i++]; Long scn = connection.getSCN();
long serverTimestamp = serverTimeStamps == null ? validateAndGetServerTimestamp(tableRef, multiRowMutationState) : serverTimeStamps[i++]; Long scn = connection.getSCN();