flushOldTempBagTables(c); } catch (SQLException e) { LOG.warn("Failed to drop temporary bag tables: " + e);
flushOldTempBagTables(c); } catch (SQLException e) { LOG.warn("Failed to drop temporary bag tables: " + e);
/** * Create temporary tables for the bag in the BagConstraints of the given Query. * Entries are placed in the bagConstraintTables Map, which is a * WeakHashMap from BagConstraint -> table name. When the BagConstraint is garbage- * collected, or when the JVM exits, the table associated with the table name is dropped from * the database. * * @param c a Connection to use * @param q the Query * @throws ObjectStoreException if an error occurs */ private void createTempBagTablesForQuery(Connection c, Query q) throws ObjectStoreException { if (getMinBagTableSize() != -1) { // We have a strong reference to the Query, and therefore all the BagConstraints. We can // count on the bagConstraintTables Map to be sane. createTempBagTables(c, q); flushOldTempBagTables(c); } }
/** * Create temporary tables for the bag in the BagConstraints of the given Query. * Entries are placed in the bagConstraintTables Map, which is a * WeakHashMap from BagConstraint -> table name. When the BagConstraint is garbage- * collected, or when the JVM exits, the table associated with the table name is dropped from * the database. * * @param c a Connection to use * @param q the Query * @throws ObjectStoreException if an error occurs */ private void createTempBagTablesForQuery(Connection c, Query q) throws ObjectStoreException { if (getMinBagTableSize() != -1) { // We have a strong reference to the Query, and therefore all the BagConstraints. We can // count on the bagConstraintTables Map to be sane. createTempBagTables(c, q); flushOldTempBagTables(c); } }
if (getMinBagTableSize() != -1) { createTempBagTables(c, q); flushOldTempBagTables(c);
if (getMinBagTableSize() != -1) { createTempBagTables(c, q); flushOldTempBagTables(c);
if (getMinBagTableSize() != -1) { createTempBagTables(c, q); flushOldTempBagTables(c);
if (getMinBagTableSize() != -1) { createTempBagTables(c, q); flushOldTempBagTables(c);
if (getMinBagTableSize() != -1) { createTempBagTables(c, q); flushOldTempBagTables(c);
if (getMinBagTableSize() != -1) { createTempBagTables(c, q); flushOldTempBagTables(c);