⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mockconnection.java

📁 jBpm是一个灵活可扩展的工作流管理系统。作为jBpm运行时server输入的业务流程使用简单强大的语言表达并打包在流程档案中
💻 JAVA
字号:
package org.jbpm.persistence.db;

import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.Savepoint;
import java.sql.Statement;
import java.util.Map;

public class MockConnection implements Connection {

  boolean wasClosed = false;
  boolean wasRolledBack = false;
  boolean wasCommitted = false;

  public void close() throws SQLException {
    wasClosed = true;
  }

  public boolean isClosed() throws SQLException {
    return wasClosed;
  }

  public void commit() throws SQLException {
    wasCommitted = true;
  }

  public void rollback() throws SQLException {
    wasRolledBack = true;
  }


  public Statement createStatement() throws SQLException {
    throw new UnsupportedOperationException();
  }

  public PreparedStatement prepareStatement(String arg0) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public CallableStatement prepareCall(String arg0) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public String nativeSQL(String arg0) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public void setAutoCommit(boolean arg0) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public boolean getAutoCommit() throws SQLException {
    throw new UnsupportedOperationException();
  }

  public DatabaseMetaData getMetaData() throws SQLException {
    throw new UnsupportedOperationException();
  }

  public void setReadOnly(boolean arg0) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public boolean isReadOnly() throws SQLException {
    throw new UnsupportedOperationException();
  }

  public void setCatalog(String arg0) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public String getCatalog() throws SQLException {
    throw new UnsupportedOperationException();
  }

  public void setTransactionIsolation(int arg0) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public int getTransactionIsolation() throws SQLException {
    throw new UnsupportedOperationException();
  }

  public SQLWarning getWarnings() throws SQLException {
    throw new UnsupportedOperationException();
  }

  public void clearWarnings() throws SQLException {
    throw new UnsupportedOperationException();
  }

  public Statement createStatement(int arg0, int arg1) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public PreparedStatement prepareStatement(String arg0, int arg1, int arg2) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public CallableStatement prepareCall(String arg0, int arg1, int arg2) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public Map getTypeMap() throws SQLException {
    throw new UnsupportedOperationException();
  }

  public void setTypeMap(Map arg0) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public void setHoldability(int arg0) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public int getHoldability() throws SQLException {
    throw new UnsupportedOperationException();
  }

  public Savepoint setSavepoint() throws SQLException {
    throw new UnsupportedOperationException();
  }

  public Savepoint setSavepoint(String arg0) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public void rollback(Savepoint arg0) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public void releaseSavepoint(Savepoint arg0) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public Statement createStatement(int arg0, int arg1, int arg2) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public PreparedStatement prepareStatement(String arg0, int arg1, int arg2, int arg3) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public CallableStatement prepareCall(String arg0, int arg1, int arg2, int arg3) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public PreparedStatement prepareStatement(String arg0, int arg1) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public PreparedStatement prepareStatement(String arg0, int[] arg1) throws SQLException {
    throw new UnsupportedOperationException();
  }

  public PreparedStatement prepareStatement(String arg0, String[] arg1) throws SQLException {
    throw new UnsupportedOperationException();
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -