private void setExecutionSequence(int execSeq) { assert this.database != null : "database expected to be non null"; EngineConnection conn = this.database.getConnection(); conn.setExecutionSequence(execSeq); } // GemStone changes BEGIN
private void setExecutionSequence(int execSeq) { assert this.database != null : "database expected to be non null"; EngineConnection conn = this.database.getConnection(); conn.setExecutionSequence(execSeq); } // GemStone changes BEGIN
private void setExecutionSequence(int execSeq) { assert this.database != null : "database expected to be non null"; EngineConnection conn = this.database.getConnection(); conn.setExecutionSequence(execSeq); } // GemStone changes BEGIN
public void setSchema(String schemaName) throws SQLException { this.database.getConnection().setSchema(schemaName); }
public String getSchema() throws SQLException { return this.database.getConnection().getSchema(); }
public void setSchema(String schemaName) throws SQLException { this.database.getConnection().setSchema(schemaName); }
public String getSchema() throws SQLException { return this.database.getConnection().getSchema(); }
public void setSchema(String schemaName) throws SQLException { this.database.getConnection().setSchema(schemaName); }
public String getSchema() throws SQLException { return this.database.getConnection().getSchema(); }
private void sendBatchResult(final DRDAStatement stmt) throws DRDAProtocolException, SQLException { checkWarning(database.getConnection(), stmt.ps, null, -3, stmt.batchResult, true, true); stmt.resetBatch(); }
private void sendBatchResult(final DRDAStatement stmt) throws DRDAProtocolException, SQLException { checkWarning(database.getConnection(), stmt.ps, null, -3, stmt.batchResult, true, true); stmt.resetBatch(); }
private void sendBatchResult(final DRDAStatement stmt) throws DRDAProtocolException, SQLException { checkWarning(database.getConnection(), stmt.ps, null, -3, stmt.batchResult, true, true); stmt.resetBatch(); }
/** * Checks whether database can support locators. This is done by * checking whether one of the stored procedures needed for * locators exists. (If the database has been soft-upgraded from * an earlier version, the procedures will not exist). * * @throws SQLException if metadata call fails * @return <code>true</code> if locators are supported, * <code>false</code otherwise */ boolean supportsLocator() throws SQLException { if (!locatorSupportChecked) { // Check if locator procedures exist ResultSet rs = getConnection().getMetaData() .getProcedures(null, "SYSIBM", "BLOBTRUNCATE"); locatorSupport = rs.next(); // True if procedure exists rs.close(); locatorSupportChecked = true; } return locatorSupport; }
/** * Checks whether database can support locators. This is done by * checking whether one of the stored procedures needed for * locators exists. (If the database has been soft-upgraded from * an earlier version, the procedures will not exist). * * @throws SQLException if metadata call fails * @return <code>true</code> if locators are supported, * <code>false</code otherwise */ boolean supportsLocator() throws SQLException { if (!locatorSupportChecked) { // Check if locator procedures exist ResultSet rs = getConnection().getMetaData() .getProcedures(null, "SYSIBM", "BLOBTRUNCATE"); locatorSupport = rs.next(); // True if procedure exists rs.close(); locatorSupportChecked = true; } return locatorSupport; }
/** * Checks whether database can support locators. This is done by * checking whether one of the stored procedures needed for * locators exists. (If the database has been soft-upgraded from * an earlier version, the procedures will not exist). * * @throws SQLException if metadata call fails * @return <code>true</code> if locators are supported, * <code>false</code otherwise */ boolean supportsLocator() throws SQLException { if (!locatorSupportChecked) { // Check if locator procedures exist ResultSet rs = getConnection().getMetaData() .getProcedures(null, "SYSIBM", "BLOBTRUNCATE"); locatorSupport = rs.next(); // True if procedure exists rs.close(); locatorSupportChecked = true; } return locatorSupport; }
protected PreparedStatement explicitPrepare(String sqlStmt, boolean createQueryInfo) throws SQLException { explicitlyPrepared = true; // Gemstone changes BEGIN if (!createQueryInfo) { if (SanityManager.TraceSingleHop) { SanityManager .DEBUG_PRINT( SanityManager.TRACE_SINGLE_HOP, "DRDAStatement::explicitPrepare setting marker bucketSet indicating no query info creation"); } database.getConnection().getLanguageConnectionContext() .setExecuteLocally(BUCKET_FLAG, null, false, null); } // Gemstone changes END return prepare(sqlStmt); }
protected PreparedStatement explicitPrepare(String sqlStmt, boolean createQueryInfo) throws SQLException { explicitlyPrepared = true; // Gemstone changes BEGIN if (!createQueryInfo) { if (SanityManager.TraceSingleHop) { SanityManager .DEBUG_PRINT( SanityManager.TRACE_SINGLE_HOP, "DRDAStatement::explicitPrepare setting marker bucketSet indicating no query info creation"); } database.getConnection().getLanguageConnectionContext() .setExecuteLocally(BUCKET_FLAG, null, false, null); } // Gemstone changes END return prepare(sqlStmt); }
protected PreparedStatement explicitPrepare(String sqlStmt, boolean createQueryInfo) throws SQLException { explicitlyPrepared = true; // Gemstone changes BEGIN if (!createQueryInfo) { if (SanityManager.TraceSingleHop) { SanityManager .DEBUG_PRINT( SanityManager.TRACE_SINGLE_HOP, "DRDAStatement::explicitPrepare setting marker bucketSet indicating no query info creation"); } database.getConnection().getLanguageConnectionContext() .setExecuteLocally(BUCKET_FLAG, null, false, null); } sqlStmt = trimNulls(sqlStmt); // Gemstone changes END return prepare(sqlStmt); }
private boolean startNewTransactionAndWriteNewTXID() { EngineConnection conn = database.getConnection(); if (conn != null) { LanguageConnectionContext lcc = conn.getLanguageConnectionContext(); int isolationLevel = lcc.getCurrentIsolationLevel(); GemFireTransaction gft = (GemFireTransaction)conn .getLanguageConnectionContext().getTransactionExecute(); TXId txid = gft.getNewTXId(true); writer.writeByte(ClientSharedData.CLIENT_TXID_WRITTEN); writer.writeLong(txid.getMemberId()); writer.writeLong(txid.getUniqId()); if (SanityManager.TraceClientHA | SanityManager.TraceSingleHop) { SanityManager.DEBUG_PRINT(SanityManager.TRACE_CLIENT_HA, "DRDAConnThread:startNewTransactionAndWriteNewTXID new txid sent: " + txid); } return true; } return false; } // GemStone changes END
private boolean startNewTransactionAndWriteNewTXID() { EngineConnection conn = database.getConnection(); if (conn != null) { LanguageConnectionContext lcc = conn.getLanguageConnectionContext(); int isolationLevel = lcc.getCurrentIsolationLevel(); GemFireTransaction gft = (GemFireTransaction)conn .getLanguageConnectionContext().getTransactionExecute(); TXId txid = gft.getNewTXId(true); writer.writeByte(ClientSharedData.CLIENT_TXID_WRITTEN); writer.writeLong(txid.getMemberId()); writer.writeLong(txid.getUniqId()); if (SanityManager.TraceClientHA | SanityManager.TraceSingleHop) { SanityManager.DEBUG_PRINT(SanityManager.TRACE_CLIENT_HA, "DRDAConnThread:startNewTransactionAndWriteNewTXID new txid sent: " + txid); } return true; } return false; } // GemStone changes END