科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网软件频道Java模拟.NET的连接池

Java模拟.NET的连接池

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

.NET的ADO.NET的本身包含连接池功能,而java是在第三方开发包中提高的连接池功能因此,需要去下载第三方的连接池包,但是java的连接池一般都是在EJB或者B/S系统中使用的。

作者:我就喜欢 来源:CSDN 2008年3月3日

关键字: 连接池 java

  • 评论
  • 分享微博
  • 分享邮件

在本页阅读全文(共5页)

public PreparedStatement prepareStatement(String sql, int resultSetType,
                      int resultSetConcurrency) throws
   SQLException {
  /**@todo Implement this java.sql.Connection method*/
  // throw new java.lang.UnsupportedOperationException("Method prepareStatement() not yet implemented.");
  return aCon.prepareStatement(sql, resultSetType, resultSetConcurrency);
 }

 public CallableStatement prepareCall(String sql, int resultSetType,
                    int resultSetConcurrency) throws
   SQLException {
  /**@todo Implement this java.sql.Connection method*/
  //throw new java.lang.UnsupportedOperationException("Method prepareCall() not yet implemented.");
  return aCon.prepareCall(sql, resultSetType, resultSetConcurrency);
 }

 public Map getTypeMap() throws SQLException {
  /**@todo Implement this java.sql.Connection method*/
  //throw new java.lang.UnsupportedOperationException("Method getTypeMap() not yet implemented.");
  return aCon.getTypeMap();
 }

 public void setTypeMap(Map map) throws SQLException {
  /**@todo Implement this java.sql.Connection method*/
  //throw new java.lang.UnsupportedOperationException("Method setTypeMap() not yet implemented.");
  aCon.setTypeMap(map);
 }

 public void setHoldability(int holdability) throws SQLException {
  /**@todo Implement this java.sql.Connection method*/
  // throw new java.lang.UnsupportedOperationException("Method setHoldability() not yet implemented.");
  aCon.setHoldability(holdability);
 }

 public int getHoldability() throws SQLException {
  /**@todo Implement this java.sql.Connection method*/
  // throw new java.lang.UnsupportedOperationException("Method getHoldability() not yet implemented.");
  return aCon.getHoldability();
 }

 public Savepoint setSavepoint() throws SQLException {
  /**@todo Implement this java.sql.Connection method*/
  //throw new java.lang.UnsupportedOperationException("Method setSavepoint() not yet implemented.");
  return setSavepoint();
 }

 public Savepoint setSavepoint(String name) throws SQLException {
  /**@todo Implement this java.sql.Connection method*/
  // throw new java.lang.UnsupportedOperationException("Method setSavepoint() not yet implemented.");
  return setSavepoint(name);
 }

 public void rollback(Savepoint savepoint) throws SQLException {
  /**@todo Implement this java.sql.Connection method*/
  //throw new java.lang.UnsupportedOperationException("Method rollback() not yet implemented.");
  aCon.rollback(savepoint);
 }

 public void releaseSavepoint(Savepoint savepoint) throws SQLException {
  /**@todo Implement this java.sql.Connection method*/
  // throw new java.lang.UnsupportedOperationException("Method releaseSavepoint() not yet implemented.");
  aCon.releaseSavepoint(savepoint);
 }

 public Statement createStatement(int resultSetType, int resultSetConcurrency,
                  int resultSetHoldability) throws
   SQLException {
  /**@todo Implement this java.sql.Connection method*/
  //throw new java.lang.UnsupportedOperationException("Method createStatement() not yet implemented.");
  return aCon.createStatement(resultSetType, resultSetConcurrency,
                resultSetHoldability);
 }

 public PreparedStatement prepareStatement(String sql, int resultSetType,
                      int resultSetConcurrency,
                      int resultSetHoldability) throws
   SQLException {
  /**@todo Implement this java.sql.Connection method*/
  // throw new java.lang.UnsupportedOperationException("Method prepareStatement() not yet implemented.");
  return aCon.prepareStatement(sql, resultSetType, resultSetConcurrency,
                 resultSetHoldability);
 }
    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章