/** * Return connection pool type. Values include: "Internal", "External" and "N/A". */ public synchronized String getConnectionPoolType() { if (getSession().getLogin().shouldUseExternalConnectionPooling()) { return "External"; } else { return "N/A"; } }
/** * Return connection pool type. Values include: "Internal", "External" and "N/A". */ public synchronized String getConnectionPoolType() { if (getSession().getLogin().shouldUseExternalConnectionPooling()) { return "External"; } else { return "N/A"; } }
/** * Return connection pool type. Values include: "Internal", "External" and "N/A". */ public synchronized String getConnectionPoolType() { if (getSession().getLogin().shouldUseExternalConnectionPooling()) { return "External"; } else { return "N/A"; } }
/** * INTERNAL: * This method is used to unwrap the oracle connection wrapped by * the application server. TopLink needs this unwrapped connection for certain * Oracle Specific support. (ie TIMESTAMPTZ, LOB) * This is added as a workaround for bug 4565190 */ public Connection getConnection(AbstractSession session, Connection connection) { if (session.getServerPlatform() != null && (session.getLogin()).shouldUseExternalConnectionPooling()){ // This is added as a workaround for bug 4460996 return session.getServerPlatform().unwrapConnection(connection); } return connection; }
/** * INTERNAL: * This method is used to unwrap the oracle connection wrapped by * the application server. TopLink needs this unwrapped connection for certain * Oracle Specific support. (ie TIMESTAMPTZ, LOB) * This is added as a workaround for bug 4565190 */ @Override public Connection getConnection(AbstractSession session, Connection connection) { if (session.getServerPlatform() != null && (session.getLogin()).shouldUseExternalConnectionPooling()){ // This is added as a workaround for bug 4460996 return session.getServerPlatform().unwrapConnection(connection); } return connection; }
method.addLine("\tlogin.setUsesJDBCBatchWriting(" + login.shouldUseJDBCBatchWriting() + ");"); if (login.shouldUseExternalConnectionPooling()) { method.addLine("login.setUsesExternalConnectionPooling(" + login.shouldUseExternalConnectionPooling() + ");");
method.addLine("\tlogin.setUsesJDBCBatchWriting(" + login.shouldUseJDBCBatchWriting() + ");"); if (login.shouldUseExternalConnectionPooling()) { method.addLine("login.setUsesExternalConnectionPooling(" + login.shouldUseExternalConnectionPooling() + ");");
method.addLine("\tlogin.setUsesJDBCBatchWriting(" + login.shouldUseJDBCBatchWriting() + ");"); if (login.shouldUseExternalConnectionPooling()) { method.addLine("login.setUsesExternalConnectionPooling(" + login.shouldUseExternalConnectionPooling() + ");");
method.addLine("\tlogin.setUsesJDBCBatchWriting(" + login.shouldUseJDBCBatchWriting() + ");"); method.addLine("}"); method.addLine("login.setUsesExternalConnectionPooling(" + login.shouldUseExternalConnectionPooling() + ");"); method.addLine("login.setUsesExternalTransactionController(" + login.shouldUseExternalTransactionController() + ");");
method.addLine("\tlogin.setUsesJDBCBatchWriting(" + login.shouldUseJDBCBatchWriting() + ");"); method.addLine("}"); method.addLine("login.setUsesExternalConnectionPooling(" + login.shouldUseExternalConnectionPooling() + ");"); method.addLine("login.setUsesExternalTransactionController(" + login.shouldUseExternalTransactionController() + ");");
method.addLine("\tlogin.setUsesJDBCBatchWriting(" + login.shouldUseJDBCBatchWriting() + ");"); method.addLine("}"); method.addLine("login.setUsesExternalConnectionPooling(" + login.shouldUseExternalConnectionPooling() + ");"); method.addLine("login.setUsesExternalTransactionController(" + login.shouldUseExternalTransactionController() + ");");