【原创】jdbc api架构基于webapi的实现+web端实现

        con = DriverManager.getConnection(connectionUrl, dbUsername, dbPwd);

我觉得完全可行,这样做的话,意味着只需要把底层的驱动改掉就可以兼容现在的jdbc
花费了大概1个多星期实现了 安卓的jdbc代码的webapi实现和 web端的上传下载 等等。
怎么说呢,安卓本来的项目是基于jdbc,现在我实现了不修改jdbc的逻辑等代码的情况下吧把Connection 拦截返回自己的connection来实现,

实现起来也很简单,但是要处理的细节很多,处理类型转换,处理顺序,而且由于web端我实现的过程中发现调用存储过程不能通过index 必须指定参数名,不得不修改了安卓端之前的jdb调用根据类名调用而不是index,
然后比较麻烦的是处理二进制流的问题。
二进制流包含了sql查询 更新 ,插入以
存储过程的二进制流提交这也包含了插入,这才是比较麻烦的,当然下载二进制流比较简单,主要的是上传给web端,然后我还要实现web端的二进制流转换。
我这里只能用base64来进行处理了,目前很完美的实现了,别告诉我你还能其他实现方法,我是http如果你说用socket那我没话说了。。

其次是jdbc index从1开始的,需要做一些处理,就差不多了。
最后关于close连接问题 ,connection类管理了各种statement,用它统一关流,


    @Override
    public void close() throws SQLException {
        for (MyCallableStatement myCallableStatement : prepareCallList) {
            myCallableStatement.close();
        }
        for (MyCreateStatement createStatement : createStateMentList) {
            createStatement.close();
        }
        for (MyPreparedStatement myPreparedStatement : prepareStatementList) {
            myPreparedStatement.close();
        }
        _Close = true;
    }

MyCallableStatement
是存储过程的实现
MyCreateStatement
是执行sql查询的实现
MyPreparedStatement
是执行更新删除sql查询的实现
MyResultSetMetaData
处理列名问题
JSONArrayResultSet
结果集 结果集当然也包含了存储过程的结果集。
拦截连接

 public static Connection getSQLServerConnection(String IP, String dbname, String dbUsername, String dbPwd) throws SQLException, ClassNotFoundException {


        if(AppCns.USE_WEBAPI){
            return new LoznConnection("http://192.168.1.35:5002/sql/SQLRequestControl/str",null);
        }
        Connection con = null;
        //加上 useunicode=true;characterEncoding=UTF-8 防止中文乱码

        IP = IP.replace(",", ":");
        Class.forName("webapi.sql.Driver");
//        Class.forName("net.sourceforge.jtds.jdbc.Driver");
//      final String connectionUrl = "jdbc:sqlserver://localhost:1433;databaseName=test;integratedSecurity=true;";
        //"jdbc:sqlserver://" + IP + ":1433;databaseName=" + DBName + ";useunicode=true;characterEncoding=UTF-8"
        String connectionUrl = "jdbc:jtds:sqlserver://" + IP + ";databasename=" + dbname + ";useunicode=true;characterEncoding=UTF-8";
//        net.sourceforge.jtds.jdbc.Driver
        con = DriverManager.getConnection(connectionUrl, dbUsername, dbPwd);
        return con;
    }

image.png

image.png

json转resultset


/**
 * Author:Lozn
 * Email:qssq521@gmail.com
 * 2021/12/10
 * 16:56
 */
public class JSONArrayResultSet implements ResultSet {


    public JSONArrayResultSet(JSONArray rows) {
        this.rows = rows;

        int i = 0;

    }
    private final com.alibaba.fastjson.JSONArray rows;
    private com.alibaba.fastjson.JSONObject currentRow;
    private String[] keys;

    int current = -1;

    @Override
    public boolean next() throws SQLException {
        if (current < rows.size()) {
            current++;
        } else {
            return false;
        }
        currentRow = rows.getJSONObject(current);
        int i = 0;
        keys = new String[rows.size()];
        for (String s : currentRow.keySet()) {
            keys[i] = s;
            i++;
        }
        return true;

    }

    @Override
    public void close() throws SQLException {

    }

    @Override
    public boolean wasNull() throws SQLException {
        return false;
    }

    @Override
    public String getString(int columnIndex) throws SQLException {
        String key = findColumnLabel(columnIndex);
        return currentRow.getString(key);
    }

    private String findColumnLabel(int columnIndex) {
        if (columnIndex >= 0 && columnIndex < currentRow.size()) {
            return keys[columnIndex];
        }
        return null;
    }

    @Override
    public boolean getBoolean(int columnIndex) throws SQLException {
        String key = findColumnLabel(columnIndex);
        return currentRow.getBoolean(key);
    }

    @Override
    public byte getByte(int columnIndex) throws SQLException {
        String key = findColumnLabel(columnIndex);
        return currentRow.getByte(key);
    }

    @Override
    public short getShort(int columnIndex) throws SQLException {
        String key = findColumnLabel(columnIndex);
        return currentRow.getShort(key);
    }

    @Override
    public int getInt(int columnIndex) throws SQLException {
        String key = findColumnLabel(columnIndex);
        return currentRow.getIntValue(key);
    }

    @Override
    public long getLong(int columnIndex) throws SQLException {
        String key = findColumnLabel(columnIndex);
        return currentRow.getLongValue(key);
    }

    @Override
    public float getFloat(int columnIndex) throws SQLException {
        String key = findColumnLabel(columnIndex);
        return currentRow.getFloatValue(key);
    }

    @Override
    public double getDouble(int columnIndex) throws SQLException {
        String key = findColumnLabel(columnIndex);
        return currentRow.getDoubleValue(key);
    }

    @Override
    public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
        String key = findColumnLabel(columnIndex);
        return currentRow.getBigDecimal(key);
    }

    @Override
    public byte[] getBytes(int columnIndex) throws SQLException {
        String key = findColumnLabel(columnIndex);
        return currentRow.getBytes(key);
    }

    @Override
    public Date getDate(int columnIndex) throws SQLException {
        String key = findColumnLabel(columnIndex);
        java.util.Date date = currentRow.getDate(key);
        Date date_ = new Date(date.getTime());
        return date_;
    }

    @Override
    public Time getTime(int columnIndex) throws SQLException {
        String key = findColumnLabel(columnIndex);
        return new Time(currentRow.getDate(key).getTime());
    }

    @Override
    public Timestamp getTimestamp(int columnIndex) throws SQLException {
        String key = findColumnLabel(columnIndex);
        return new Timestamp(currentRow.getLongValue(key));
    }

    @Override
    public InputStream getAsciiStream(int columnIndex) throws SQLException {
//        String key = findColumnLabel(columnIndex);
        return null;
//        return rows.get(key);
    }

    @Override
    public InputStream getUnicodeStream(int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public InputStream getBinaryStream(int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public String getString(String columnLabel) throws SQLException {
        return currentRow.getString(columnLabel);
    }

    @Override
    public boolean getBoolean(String columnLabel) throws SQLException {
        return currentRow.getBoolean(columnLabel);
    }

    @Override
    public byte getByte(String columnLabel) throws SQLException {
        return currentRow.getByte(columnLabel);
    }

    @Override
    public short getShort(String columnLabel) throws SQLException {
        return currentRow.getShort(columnLabel);
    }

    @Override
    public int getInt(String columnLabel) throws SQLException {
        return currentRow.getIntValue(columnLabel);
    }

    @Override
    public long getLong(String columnLabel) throws SQLException {
        return currentRow.getLongValue(columnLabel);
    }

    @Override
    public float getFloat(String columnLabel) throws SQLException {
        return currentRow.getFloatValue(columnLabel);
    }

    @Override
    public double getDouble(String columnLabel) throws SQLException {
        return currentRow.getDoubleValue(columnLabel);
    }

    @Override
    public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException {
        return currentRow.getBigDecimal(columnLabel);
    }

    @Override
    public byte[] getBytes(String columnLabel) throws SQLException {
        return currentRow.getBytes(columnLabel);
    }

    @Override
    public Date getDate(String columnLabel) throws SQLException {
        return new Date(currentRow.getDate(columnLabel).getTime());
    }

    @Override
    public Time getTime(String columnLabel) throws SQLException {
        return new Time(currentRow.getLongValue(columnLabel));
    }

    @Override
    public Timestamp getTimestamp(String columnLabel) throws SQLException {
        return new Timestamp(currentRow.getLongValue(columnLabel));
    }

    @Override
    public InputStream getAsciiStream(String columnLabel) throws SQLException {
//        return new Time(currentRow.getObject(columnLabel));
        return null;
    }

    @Override
    public InputStream getUnicodeStream(String columnLabel) throws SQLException {
        return null;
    }

    @Override
    public InputStream getBinaryStream(String columnLabel) throws SQLException {
        return null;
    }

    @Override
    public SQLWarning getWarnings() throws SQLException {
        return null;
    }

    @Override
    public void clearWarnings() throws SQLException {

    }

    @Override
    public String getCursorName() throws SQLException {
        return null;
    }

    @Override
    public ResultSetMetaData getMetaData() throws SQLException {
        return null;
    }

    @Override
    public Object getObject(int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public Object getObject(String columnLabel) throws SQLException {
        return currentRow.get(columnLabel);
    }

    @Override
    public int findColumn(String columnLabel) throws SQLException {
        int i = 0;
        for (String s : currentRow.keySet()) {
            if (columnLabel.equals(s)) {
                return i;
            }
            i++;
        }
        return -1;
    }

    @Override
    public Reader getCharacterStream(int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public Reader getCharacterStream(String columnLabel) throws SQLException {
        return null;
    }

    @Override
    public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
        return currentRow.getBigDecimal(findColumnLabel(columnIndex));
    }

    @Override
    public BigDecimal getBigDecimal(String columnLabel) throws SQLException {
        return currentRow.getBigDecimal(columnLabel);
    }

    @Override
    public boolean isBeforeFirst() throws SQLException {
        return current<0;
    }

    @Override
    public boolean isAfterLast() throws SQLException {
        return current>=rows.size();
    }

    @Override
    public boolean isFirst() throws SQLException {
        return current==0;
    }

    @Override
    public boolean isLast() throws SQLException {
        return current==rows.size()-1;
    }

    @Override
    public void beforeFirst() throws SQLException {
                current=-1;
    }

    @Override
    public void afterLast() throws SQLException {
                current=rows.size();
    }

    @Override
    public boolean first() throws SQLException {
        if(rows!=null&&rows.size()>0){
            current=0;
            return true;
        }

        return false;
    }

    @Override
    public boolean last() throws SQLException {
        if(rows!=null&&rows.size()>0){
            current=rows.size()-1;
            return true;
        }
        return false;
    }

    @Override
    public int getRow() throws SQLException {
        return rows.size();
    }

    @Override
    public boolean absolute(int row) throws SQLException {
        return false;
    }

    @Override
    public boolean relative(int rows) throws SQLException {
        return false;
    }

    @Override
    public boolean previous() throws SQLException {
        return false;
    }

    @Override
    public void setFetchDirection(int direction) throws SQLException {

    }

    @Override
    public int getFetchDirection() throws SQLException {
        return 0;
    }

    @Override
    public void setFetchSize(int rows) throws SQLException {

    }

    @Override
    public int getFetchSize() throws SQLException {
        return 0;
    }

    @Override
    public int getType() throws SQLException {
        return 0;
    }

    @Override
    public int getConcurrency() throws SQLException {
        return 0;
    }

    @Override
    public boolean rowUpdated() throws SQLException {
        return false;
    }

    @Override
    public boolean rowInserted() throws SQLException {
        return false;
    }

    @Override
    public boolean rowDeleted() throws SQLException {
        return false;
    }

    @Override
    public void updateNull(int columnIndex) throws SQLException {

    }

    @Override
    public void updateBoolean(int columnIndex, boolean x) throws SQLException {

    }

    @Override
    public void updateByte(int columnIndex, byte x) throws SQLException {

    }

    @Override
    public void updateShort(int columnIndex, short x) throws SQLException {

    }

    @Override
    public void updateInt(int columnIndex, int x) throws SQLException {

    }

    @Override
    public void updateLong(int columnIndex, long x) throws SQLException {

    }

    @Override
    public void updateFloat(int columnIndex, float x) throws SQLException {

    }

    @Override
    public void updateDouble(int columnIndex, double x) throws SQLException {

    }

    @Override
    public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {

    }

    @Override
    public void updateString(int columnIndex, String x) throws SQLException {

    }

    @Override
    public void updateBytes(int columnIndex, byte[] x) throws SQLException {

    }

    @Override
    public void updateDate(int columnIndex, Date x) throws SQLException {

    }

    @Override
    public void updateTime(int columnIndex, Time x) throws SQLException {

    }

    @Override
    public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {

    }

    @Override
    public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException {

    }

    @Override
    public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException {

    }

    @Override
    public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {

    }

    @Override
    public void updateObject(int columnIndex, Object x, int scaleOrLength) throws SQLException {

    }

    @Override
    public void updateObject(int columnIndex, Object x) throws SQLException {

    }

    @Override
    public void updateNull(String columnLabel) throws SQLException {

    }

    @Override
    public void updateBoolean(String columnLabel, boolean x) throws SQLException {

    }

    @Override
    public void updateByte(String columnLabel, byte x) throws SQLException {

    }

    @Override
    public void updateShort(String columnLabel, short x) throws SQLException {

    }

    @Override
    public void updateInt(String columnLabel, int x) throws SQLException {

    }

    @Override
    public void updateLong(String columnLabel, long x) throws SQLException {

    }

    @Override
    public void updateFloat(String columnLabel, float x) throws SQLException {

    }

    @Override
    public void updateDouble(String columnLabel, double x) throws SQLException {

    }

    @Override
    public void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException {

    }

    @Override
    public void updateString(String columnLabel, String x) throws SQLException {

    }

    @Override
    public void updateBytes(String columnLabel, byte[] x) throws SQLException {

    }

    @Override
    public void updateDate(String columnLabel, Date x) throws SQLException {

    }

    @Override
    public void updateTime(String columnLabel, Time x) throws SQLException {

    }

    @Override
    public void updateTimestamp(String columnLabel, Timestamp x) throws SQLException {

    }

    @Override
    public void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException {

    }

    @Override
    public void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException {

    }

    @Override
    public void updateCharacterStream(String columnLabel, Reader reader, int length) throws SQLException {

    }

    @Override
    public void updateObject(String columnLabel, Object x, int scaleOrLength) throws SQLException {

    }

    @Override
    public void updateObject(String columnLabel, Object x) throws SQLException {

    }

    @Override
    public void insertRow() throws SQLException {

    }

    @Override
    public void updateRow() throws SQLException {

    }

    @Override
    public void deleteRow() throws SQLException {

    }

    @Override
    public void refreshRow() throws SQLException {

    }

    @Override
    public void cancelRowUpdates() throws SQLException {

    }

    @Override
    public void moveToInsertRow() throws SQLException {

    }

    @Override
    public void moveToCurrentRow() throws SQLException {

    }

    @Override
    public Statement getStatement() throws SQLException {
        return null;
    }

    @Override
    public Object getObject(int columnIndex, Map<String, Class<?>> map) throws SQLException {
        return null;
    }

    @Override
    public Ref getRef(int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public Blob getBlob(int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public Clob getClob(int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public Array getArray(int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public Object getObject(String columnLabel, Map<String, Class<?>> map) throws SQLException {
        return null;
    }

    @Override
    public Ref getRef(String columnLabel) throws SQLException {
        return null;
    }

    @Override
    public Blob getBlob(String columnLabel) throws SQLException {
        return null;
    }

    @Override
    public Clob getClob(String columnLabel) throws SQLException {
        return null;
    }

    @Override
    public Array getArray(String columnLabel) throws SQLException {
        return null;
    }

    @Override
    public Date getDate(int columnIndex, Calendar cal) throws SQLException {
        return null;
    }

    @Override
    public Date getDate(String columnLabel, Calendar cal) throws SQLException {
        return null;
    }

    @Override
    public Time getTime(int columnIndex, Calendar cal) throws SQLException {
        return null;
    }

    @Override
    public Time getTime(String columnLabel, Calendar cal) throws SQLException {
        return null;
    }

    @Override
    public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
        return null;
    }

    @Override
    public Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException {
        return null;
    }

    @Override
    public URL getURL(int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public URL getURL(String columnLabel) throws SQLException {
        return null;
    }

    @Override
    public void updateRef(int columnIndex, Ref x) throws SQLException {

    }

    @Override
    public void updateRef(String columnLabel, Ref x) throws SQLException {

    }

    @Override
    public void updateBlob(int columnIndex, Blob x) throws SQLException {

    }

    @Override
    public void updateBlob(String columnLabel, Blob x) throws SQLException {

    }

    @Override
    public void updateClob(int columnIndex, Clob x) throws SQLException {

    }

    @Override
    public void updateClob(String columnLabel, Clob x) throws SQLException {

    }

    @Override
    public void updateArray(int columnIndex, Array x) throws SQLException {

    }

    @Override
    public void updateArray(String columnLabel, Array x) throws SQLException {

    }

    @Override
    public RowId getRowId(int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public RowId getRowId(String columnLabel) throws SQLException {
        return null;
    }

    @Override
    public void updateRowId(int columnIndex, RowId x) throws SQLException {

    }

    @Override
    public void updateRowId(String columnLabel, RowId x) throws SQLException {

    }

    @Override
    public int getHoldability() throws SQLException {
        return 0;
    }

    @Override
    public boolean isClosed() throws SQLException {
        return false;
    }

    @Override
    public void updateNString(int columnIndex, String nString) throws SQLException {

    }

    @Override
    public void updateNString(String columnLabel, String nString) throws SQLException {

    }

    @Override
    public void updateNClob(int columnIndex, NClob nClob) throws SQLException {

    }

    @Override
    public void updateNClob(String columnLabel, NClob nClob) throws SQLException {

    }

    @Override
    public NClob getNClob(int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public NClob getNClob(String columnLabel) throws SQLException {
        return null;
    }

    @Override
    public SQLXML getSQLXML(int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public SQLXML getSQLXML(String columnLabel) throws SQLException {
        return null;
    }

    @Override
    public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {

    }

    @Override
    public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {

    }

    @Override
    public String getNString(int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public String getNString(String columnLabel) throws SQLException {
        return null;
    }

    @Override
    public Reader getNCharacterStream(int columnIndex) throws SQLException {
        return null;
    }

    @Override
    public Reader getNCharacterStream(String columnLabel) throws SQLException {
        return null;
    }

    @Override
    public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException {

    }

    @Override
    public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {

    }

    @Override
    public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {

    }

    @Override
    public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {

    }

    @Override
    public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {

    }

    @Override
    public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException {

    }

    @Override
    public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException {

    }

    @Override
    public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {

    }

    @Override
    public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {

    }

    @Override
    public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException {

    }

    @Override
    public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {

    }

    @Override
    public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {

    }

    @Override
    public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {

    }

    @Override
    public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {

    }

    @Override
    public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {

    }

    @Override
    public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException {

    }

    @Override
    public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {

    }

    @Override
    public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {

    }

    @Override
    public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {

    }

    @Override
    public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException {

    }

    @Override
    public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException {

    }

    @Override
    public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException {

    }

    @Override
    public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {

    }

    @Override
    public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {

    }

    @Override
    public void updateClob(int columnIndex, Reader reader) throws SQLException {

    }

    @Override
    public void updateClob(String columnLabel, Reader reader) throws SQLException {

    }

    @Override
    public void updateNClob(int columnIndex, Reader reader) throws SQLException {

    }

    @Override
    public void updateNClob(String columnLabel, Reader reader) throws SQLException {

    }

    @Override
    public <T> T unwrap(Class<T> iface) throws SQLException {
        return null;
    }

    @Override
    public boolean isWrapperFor(Class<?> iface) throws SQLException {
        return false;
    }
}


uml类图


@startuml
class webapi.sql.Driver {
- {static} String driverPrefix
~ {static} int MAJOR_VERSION
~ {static} int MINOR_VERSION
~ {static} String MISC_VERSION
+ {static} int TDS42
+ {static} int TDS50
+ {static} int TDS70
+ {static} int TDS80
+ {static} int TDS81
+ {static} int TDS90
+ {static} int SQLSERVER
+ {static} int SYBASE
+ {static} String APPNAME
+ {static} String AUTOCOMMIT
+ {static} String BATCHSIZE
+ {static} String BINDADDRESS
+ {static} String BUFFERDIR
+ {static} String BUFFERMAXMEMORY
+ {static} String BUFFERMINPACKETS
+ {static} String CACHEMETA
+ {static} String CHARSET
+ {static} String DATABASENAME
+ {static} String DOMAIN
+ {static} String INSTANCE
+ {static} String LANGUAGE
+ {static} String LASTUPDATECOUNT
+ {static} String LOBBUFFER
+ {static} String LOGFILE
+ {static} String LOGINTIMEOUT
+ {static} String MACADDRESS
+ {static} String MAXSTATEMENTS
+ {static} String NAMEDPIPE
+ {static} String PACKETSIZE
+ {static} String PASSWORD
+ {static} String PORTNUMBER
+ {static} String PREPARESQL
+ {static} String PROGNAME
+ {static} String SERVERNAME
+ {static} String SERVERTYPE
+ {static} String SOTIMEOUT
+ {static} String SOKEEPALIVE
+ {static} String PROCESSID
+ {static} String SSL
+ {static} String TCPNODELAY
+ {static} String TDS
+ {static} String USECURSORS
+ {static} String USEJCIFS
+ {static} String USENTLMV2
+ {static} String USEKERBEROS
+ {static} String USELOBS
+ {static} String USER
+ {static} String SENDSTRINGPARAMETERSASUNICODE
+ {static} String WSID
+ {static} String XAEMULATION
+ int getMajorVersion()
+ int getMinorVersion()
+ {static} String getVersion()
+ String toString()
+ boolean jdbcCompliant()
+ boolean acceptsURL(String)
+ Connection connect(String,Properties)
+ DriverPropertyInfo[] getPropertyInfo(String,Properties)
- Properties setupConnectProperties(String,Properties)
- {static} Map createChoicesMap()
- {static} Map createRequiredTrueMap()
- {static} Properties parseURL(String,Properties)
- {static} int nextToken(String,int,StringBuilder)
+ {static} void main(String[])
}
class webapi.sql.MyCallableStatement {
- LoznConnection loznConnection
- boolean _multi
- CancelHelper cancelHelper
- String _sql
- String funcName
- int argCount
- ArrayList<Param> _objParam
- com.alibaba.fastjson.JSONArray rows
~ int currentReset
+ void setFile(String,File)
+ void setFile(int,File)
+ boolean isClosed()
+ void close()
+ void cancel()
+ ResultSet executeQuery(String)
+ int executeUpdate(String)
+ int getMaxFieldSize()
+ void setMaxFieldSize(int)
+ int getMaxRows()
+ void setMaxRows(int)
+ void setEscapeProcessing(boolean)
+ int getQueryTimeout()
+ void setQueryTimeout(int)
+ void registerOutParameter(int,int)
+ void registerOutParameter(int,int,String)
+ void registerOutParameter(int,int,int)
+ boolean wasNull()
+ String getString(int)
+ boolean getBoolean(int)
+ byte getByte(int)
+ short getShort(int)
+ int getInt(int)
+ long getLong(int)
+ float getFloat(int)
+ double getDouble(int)
+ BigDecimal getBigDecimal(int,int)
+ byte[] getBytes(int)
+ Date getDate(int)
+ Time getTime(int)
+ Timestamp getTimestamp(int)
+ String getString(String)
+ boolean getBoolean(String)
+ byte getByte(String)
+ short getShort(String)
+ int getInt(String)
+ long getLong(String)
+ float getFloat(String)
+ double getDouble(String)
+ BigDecimal getBigDecimal(String,int)
+ byte[] getBytes(String)
+ Date getDate(String)
+ Time getTime(String)
+ Timestamp getTimestamp(String)
+ SQLWarning getWarnings()
+ void clearWarnings()
+ void setCursorName(String)
+ boolean execute(String)
+ ResultSet getResultSet()
+ int getUpdateCount()
+ boolean getMoreResults()
+ ResultSet executeQuery()
- void parseData(boolean)
- void genereateDefault(ArrayList<Param>)
+ int executeUpdate()
+ void setNull(int,int)
+ void setBoolean(int,boolean)
+ void setByte(int,byte)
+ void setShort(int,short)
+ void setInt(int,int)
+ void setLong(int,long)
+ void setFloat(int,float)
+ void setDouble(int,double)
+ void setBigDecimal(int,BigDecimal)
+ void setString(int,String)
+ void setBytes(int,byte[])
+ void setDate(int,Date)
+ void setTime(int,Time)
+ void setTimestamp(int,Timestamp)
+ void setAsciiStream(int,InputStream,int)
+ void setUnicodeStream(int,InputStream,int)
+ void setBinaryStream(int,InputStream,int)
+ void clearParameters()
+ void setObject(int,Object,int)
- int guessType(Object,int)
+ void setObject(int,Object)
+ boolean execute()
+ void addBatch()
+ void setCharacterStream(int,Reader,int)
+ void setRef(int,Ref)
+ void setBlob(int,Blob)
+ void setClob(int,Clob)
+ void setArray(int,Array)
+ ResultSetMetaData getMetaData()
+ void setDate(int,Date,Calendar)
+ void setTime(int,Time,Calendar)
+ void setTimestamp(int,Timestamp,Calendar)
+ void setNull(int,int,String)
+ void setURL(int,URL)
+ ParameterMetaData getParameterMetaData()
+ void setRowId(int,RowId)
+ void setNString(int,String)
+ void setNCharacterStream(int,Reader,long)
+ void setNClob(int,NClob)
+ void setClob(int,Reader,long)
+ void setBlob(int,InputStream,long)
+ void setNClob(int,Reader,long)
+ void setSQLXML(int,SQLXML)
+ void setObject(int,Object,int,int)
+ void setAsciiStream(int,InputStream,long)
+ void setBinaryStream(int,InputStream,long)
+ void setCharacterStream(int,Reader,long)
+ void setAsciiStream(int,InputStream)
+ void setBinaryStream(int,InputStream)
+ void setCharacterStream(int,Reader)
+ void setNCharacterStream(int,Reader)
+ void setClob(int,Reader)
+ void setBlob(int,InputStream)
+ void setNClob(int,Reader)
+ Object getObject(int)
+ Blob getBlob(int)
+ Object getObject(String)
+ Reader getCharacterStream(int)
+ Reader getCharacterStream(String)
+ void setBlob(String,Blob)
+ void setClob(String,Clob)
+ void setAsciiStream(String,InputStream,long)
+ void setBinaryStream(String,InputStream,long)
+ void setCharacterStream(String,Reader,long)
+ void setAsciiStream(String,InputStream)
+ void setBinaryStream(String,InputStream)
+ void setCharacterStream(String,Reader)
+ void setNCharacterStream(String,Reader)
+ void setClob(String,Reader)
+ void setBlob(String,InputStream)
+ void setNClob(String,Reader)
+ BigDecimal getBigDecimal(int)
+ BigDecimal getBigDecimal(String)
+ void setFetchDirection(int)
+ int getFetchDirection()
+ void setFetchSize(int)
+ int getFetchSize()
+ int getResultSetConcurrency()
+ int getResultSetType()
+ void addBatch(String)
+ void clearBatch()
+ int[] executeBatch()
+ Connection getConnection()
+ boolean getMoreResults(int)
+ ResultSet getGeneratedKeys()
+ int executeUpdate(String,int)
+ int executeUpdate(String,int[])
+ int executeUpdate(String,String[])
+ boolean execute(String,int)
+ boolean execute(String,int[])
+ boolean execute(String,String[])
+ int getResultSetHoldability()
+ Object getObject(int,Map<String,Class<?>>)
+ Ref getRef(int)
+ Clob getClob(int)
+ Array getArray(int)
+ Object getObject(String,Map<String,Class<?>>)
+ Ref getRef(String)
+ Blob getBlob(String)
+ Clob getClob(String)
+ Array getArray(String)
+ Date getDate(int,Calendar)
+ Date getDate(String,Calendar)
+ Time getTime(int,Calendar)
+ Time getTime(String,Calendar)
+ Timestamp getTimestamp(int,Calendar)
+ void registerOutParameter(String,int)
+ void registerOutParameter(String,int,int)
+ void registerOutParameter(String,int,String)
+ Timestamp getTimestamp(String,Calendar)
+ URL getURL(int)
+ void setURL(String,URL)
+ void setNull(String,int)
+ void setBoolean(String,boolean)
+ void setByte(String,byte)
+ void setShort(String,short)
+ void setInt(String,int)
+ void setLong(String,long)
+ void setFloat(String,float)
+ void setDouble(String,double)
+ void setBigDecimal(String,BigDecimal)
+ void setString(String,String)
+ void setBytes(String,byte[])
+ void setDate(String,Date)
+ void setTime(String,Time)
+ void setTimestamp(String,Timestamp)
+ void setAsciiStream(String,InputStream,int)
+ void setBinaryStream(String,InputStream,int)
+ void setObject(String,Object,int,int)
+ void setObject(String,Object,int)
- void setObjectX(String,Object,int)
+ void setObject(String,Object)
+ void setCharacterStream(String,Reader,int)
+ void setDate(String,Date,Calendar)
+ void setTime(String,Time,Calendar)
+ void setTimestamp(String,Timestamp,Calendar)
+ void setNull(String,int,String)
+ URL getURL(String)
+ RowId getRowId(int)
+ RowId getRowId(String)
+ void setRowId(String,RowId)
+ void setNString(String,String)
+ void setNCharacterStream(String,Reader,long)
+ void setNClob(String,NClob)
+ void setClob(String,Reader,long)
+ void setBlob(String,InputStream,long)
+ void setNClob(String,Reader,long)
+ void setPoolable(boolean)
+ boolean isPoolable()
+ NClob getNClob(int)
+ NClob getNClob(String)
+ void setSQLXML(String,SQLXML)
+ SQLXML getSQLXML(int)
+ SQLXML getSQLXML(String)
+ String getNString(int)
+ String getNString(String)
+ Reader getNCharacterStream(int)
+ Reader getNCharacterStream(String)
+ T unwrap(Class<T>)
+ boolean isWrapperFor(Class<?>)
}
class webapi.sql.ServerExecException {
}
class webapi.sql.DataFormatException {
}
class webapi.sql.APIUtil {
+ {static} Object convertNoException(Object,ICallBack)
+ {static} Object convertObj(Object)
}
interface webapi.sql.ICallBack {
~ T call(Object)
}
class webapi.sql.MyResultSetMetaData {
- JSONObject current
- String[] keys
+ int getColumnCount()
+ boolean isAutoIncrement(int)
+ boolean isCaseSensitive(int)
+ boolean isSearchable(int)
+ boolean isCurrency(int)
+ int isNullable(int)
+ boolean isSigned(int)
+ int getColumnDisplaySize(int)
+ String getColumnLabel(int)
+ String getColumnName(int)
+ String getSchemaName(int)
+ int getPrecision(int)
+ int getScale(int)
+ String getTableName(int)
+ String getCatalogName(int)
+ int getColumnType(int)
+ String getColumnTypeName(int)
+ boolean isReadOnly(int)
+ boolean isWritable(int)
+ boolean isDefinitelyWritable(int)
+ String getColumnClassName(int)
+ T unwrap(Class<T>)
+ boolean isWrapperFor(Class<?>)
}
class webapi.sql.LoznConnection {
+ {static} int TYPE_QUERY
+ {static} int TYPE_EXEC
+ {static} int TYPE_EXEC_PROCEDURE
+ {static} int TYPE_UPDATE_FILE
+ {static} int TYPE_QUERY_FILE
- String mUrl
+ {static} int FLAG_PREPARE_CALL
+ {static} int FLAG_PREPARE_STATEMENT
+ {static} int FLAG_CREATE_STATEMENT
~ ArrayList<MyCallableStatement> prepareCallList
~ ArrayList<MyPreparedStatement> prepareStatementList
~ ArrayList<MyCreateStatement> createStateMentList
~ boolean _Close
+ String getUrl()
+ Statement createStatement()
+ PreparedStatement prepareStatement(String)
+ CallableStatement prepareCall(String)
- void checkCloseItem(int)
+ String nativeSQL(String)
+ void setAutoCommit(boolean)
+ boolean getAutoCommit()
+ void commit()
+ void rollback()
+ void close()
+ boolean isClosed()
+ DatabaseMetaData getMetaData()
+ void setReadOnly(boolean)
+ boolean isReadOnly()
+ void setCatalog(String)
+ String getCatalog()
+ void setTransactionIsolation(int)
+ int getTransactionIsolation()
+ SQLWarning getWarnings()
+ void clearWarnings()
+ Statement createStatement(int,int)
+ PreparedStatement prepareStatement(String,int,int)
+ CallableStatement prepareCall(String,int,int)
+ Map<String,Class<?>> getTypeMap()
+ void setTypeMap(Map<String,Class<?>>)
+ void setHoldability(int)
+ int getHoldability()
+ Savepoint setSavepoint()
+ Savepoint setSavepoint(String)
+ void rollback(Savepoint)
+ void releaseSavepoint(Savepoint)
+ Statement createStatement(int,int,int)
+ PreparedStatement prepareStatement(String,int,int,int)
+ CallableStatement prepareCall(String,int,int,int)
+ PreparedStatement prepareStatement(String,int)
+ PreparedStatement prepareStatement(String,int[])
+ PreparedStatement prepareStatement(String,String[])
+ Clob createClob()
+ Blob createBlob()
+ NClob createNClob()
+ SQLXML createSQLXML()
+ boolean isValid(int)
+ void setClientInfo(String,String)
+ void setClientInfo(Properties)
+ String getClientInfo(String)
+ Properties getClientInfo()
+ Array createArrayOf(String,Object[])
+ Struct createStruct(String,Object[])
+ T unwrap(Class<T>)
+ boolean isWrapperFor(Class<?>)
+ RequestBody getRequestBody()
+ RequestBody getRequestBody(int,String)
+ RequestBody getRequestBody(int,String,JSONObject)
+ RequestBody getFileUploadRequestBody(int,String,ArrayList<Param>)
+ RequestBody getStoredProcedureBody(int,String,Object,int,int)
+ HashMap<String,String> getRequestHeader()
}
class webapi.sql.Param {
~ Object value
~ String paramName
~ int datatype
~ int out
~ int index
+ Object getValue()
+ Param setValue(Object)
+ String getParamName()
+ Param setParamName(String)
+ int getDatatype()
+ Param setDatatype(int)
+ int getOut()
+ Param setOut(int)
+ int getIndex()
+ Param setIndex(int)
+ String toString()
}
class webapi.sql.BlobImpl {
- byte[] _bytes
- int _length
+ {static} byte[] readBinaryFileContent(InputStream)
- void init(byte[])
- byte[] blobToBytes(Blob)
+ long length()
+ byte[] getBytes(long,int)
+ InputStream getBinaryStream()
+ long position(byte[],long)
+ long position(Blob,long)
~ void nonsupport()
+ void free()
+ InputStream getBinaryStream(long,long)
+ OutputStream setBinaryStream(long)
- int setBytes(long,byte[],int,int,boolean)
+ int setBytes(long,byte[])
+ int setBytes(long,byte[],int,int)
+ void truncate(long)
+ {static} void main(String[])
}
class webapi.sql.CancelHelper {
- PairX<Call,Response> _callResponse
~ boolean isCanced
+ PairX<Call,Response> get_callResponse()
+ boolean isClosed()
+ void close()
+ void cancel()
- void doCancelRequest()
}
class webapi.sql.MyPreparedStatement {
- String sql
- LoznConnection loznConnection
- CancelHelper cancelHelper
- JSONArray rows
- int flag
+ ArrayList<Param> filelist
+ com.alibaba.fastjson.JSONArray getRows()
+ boolean isClosed()
+ void close()
+ void cancel()
+ InputStream downloadFile(ResponseBody)
+ ResultSet executeQuery()
+ int executeUpdate()
+ void setNull(int,int)
+ void setBoolean(int,boolean)
+ void setByte(int,byte)
+ void setShort(int,short)
+ void setInt(int,int)
+ void setLong(int,long)
+ void setFloat(int,float)
+ void setDouble(int,double)
+ void setBigDecimal(int,BigDecimal)
+ void setString(int,String)
+ void setBytes(int,byte[])
+ void setDate(int,Date)
+ void setTime(int,Time)
+ void setTimestamp(int,Timestamp)
+ void setAsciiStream(int,InputStream,int)
+ void setUnicodeStream(int,InputStream,int)
+ void setBinaryStream(int,InputStream,int)
+ void clearParameters()
+ void setObject(int,Object,int)
+ void setObject(int,Object)
+ ArrayList<Param> getFilelist()
+ boolean execute()
+ void addBatch()
+ void setCharacterStream(int,Reader,int)
+ void setRef(int,Ref)
+ void setBlob(int,Blob)
+ void setClob(int,Clob)
+ void setArray(int,Array)
+ ResultSetMetaData getMetaData()
+ void setDate(int,Date,Calendar)
+ void setTime(int,Time,Calendar)
+ void setTimestamp(int,Timestamp,Calendar)
+ void setNull(int,int,String)
+ void setURL(int,URL)
+ ParameterMetaData getParameterMetaData()
+ void setRowId(int,RowId)
+ void setNString(int,String)
+ void setNCharacterStream(int,Reader,long)
+ void setNClob(int,NClob)
+ void setClob(int,Reader,long)
+ void setBlob(int,InputStream,long)
+ void setNClob(int,Reader,long)
+ void setSQLXML(int,SQLXML)
+ void setObject(int,Object,int,int)
+ void setAsciiStream(int,InputStream,long)
+ void setBinaryStream(int,InputStream,long)
+ void setCharacterStream(int,Reader,long)
+ void setAsciiStream(int,InputStream)
+ void setBinaryStream(int,InputStream)
+ void setCharacterStream(int,Reader)
+ void setNCharacterStream(int,Reader)
+ void setClob(int,Reader)
+ void setBlob(int,InputStream)
+ void setNClob(int,Reader)
+ ResultSet executeQuery(String)
+ int executeUpdate(String)
+ int getMaxFieldSize()
+ void setMaxFieldSize(int)
+ int getMaxRows()
+ void setMaxRows(int)
+ void setEscapeProcessing(boolean)
+ int getQueryTimeout()
+ void setQueryTimeout(int)
+ SQLWarning getWarnings()
+ void clearWarnings()
+ void setCursorName(String)
+ boolean execute(String)
+ ResultSet getResultSet()
+ int getUpdateCount()
+ boolean getMoreResults()
+ void setFetchDirection(int)
+ int getFetchDirection()
+ void setFetchSize(int)
+ int getFetchSize()
+ int getResultSetConcurrency()
+ int getResultSetType()
+ void addBatch(String)
+ void clearBatch()
+ int[] executeBatch()
+ Connection getConnection()
+ boolean getMoreResults(int)
+ ResultSet getGeneratedKeys()
+ int executeUpdate(String,int)
+ int executeUpdate(String,int[])
+ int executeUpdate(String,String[])
+ boolean execute(String,int)
+ boolean execute(String,int[])
+ boolean execute(String,String[])
+ int getResultSetHoldability()
+ void setPoolable(boolean)
+ boolean isPoolable()
+ T unwrap(Class<T>)
+ boolean isWrapperFor(Class<?>)
}
class webapi.sql.JSONArrayResultSet {
- {static} String TAG
- com.alibaba.fastjson.JSONArray rows
- com.alibaba.fastjson.JSONObject currentRow
- String[] keys
~ int current
+ boolean next()
+ void close()
+ boolean wasNull()
+ String getString(int)
- String findColumnLabel(int)
+ boolean getBoolean(int)
+ byte getByte(int)
+ short getShort(int)
+ int getInt(int)
+ long getLong(int)
+ float getFloat(int)
+ double getDouble(int)
+ BigDecimal getBigDecimal(int,int)
+ byte[] getBytes(int)
+ Date getDate(int)
+ Time getTime(int)
+ Timestamp getTimestamp(int)
+ InputStream getAsciiStream(int)
+ InputStream getUnicodeStream(int)
+ InputStream getBinaryStream(int)
+ String getString(String)
+ boolean getBoolean(String)
+ byte getByte(String)
+ short getShort(String)
+ int getInt(String)
+ long getLong(String)
+ float getFloat(String)
+ double getDouble(String)
+ BigDecimal getBigDecimal(String,int)
+ byte[] getBytes(String)
+ Date getDate(String)
+ Time getTime(String)
+ Timestamp getTimestamp(String)
+ InputStream getAsciiStream(String)
+ InputStream getUnicodeStream(String)
+ InputStream getBinaryStream(String)
+ SQLWarning getWarnings()
+ void clearWarnings()
+ String getCursorName()
+ ResultSetMetaData getMetaData()
+ Object getObject(int)
+ Object getObject(String)
+ int findColumn(String)
+ Reader getCharacterStream(int)
+ Reader getCharacterStream(String)
+ BigDecimal getBigDecimal(int)
+ BigDecimal getBigDecimal(String)
+ boolean isBeforeFirst()
+ boolean isAfterLast()
+ boolean isFirst()
+ boolean isLast()
+ void beforeFirst()
+ void afterLast()
+ boolean first()
+ boolean last()
+ int getRow()
+ boolean absolute(int)
+ boolean relative(int)
+ boolean previous()
+ void setFetchDirection(int)
+ int getFetchDirection()
+ void setFetchSize(int)
+ int getFetchSize()
+ int getType()
+ int getConcurrency()
+ boolean rowUpdated()
+ boolean rowInserted()
+ boolean rowDeleted()
+ void updateNull(int)
+ void updateBoolean(int,boolean)
+ void updateByte(int,byte)
+ void updateShort(int,short)
+ void updateInt(int,int)
+ void updateLong(int,long)
+ void updateFloat(int,float)
+ void updateDouble(int,double)
+ void updateBigDecimal(int,BigDecimal)
+ void updateString(int,String)
+ void updateBytes(int,byte[])
+ void updateDate(int,Date)
+ void updateTime(int,Time)
+ void updateTimestamp(int,Timestamp)
+ void updateAsciiStream(int,InputStream,int)
+ void updateBinaryStream(int,InputStream,int)
+ void updateCharacterStream(int,Reader,int)
+ void updateObject(int,Object,int)
+ void updateObject(int,Object)
+ void updateNull(String)
+ void updateBoolean(String,boolean)
+ void updateByte(String,byte)
+ void updateShort(String,short)
+ void updateInt(String,int)
+ void updateLong(String,long)
+ void updateFloat(String,float)
+ void updateDouble(String,double)
+ void updateBigDecimal(String,BigDecimal)
+ void updateString(String,String)
+ void updateBytes(String,byte[])
+ void updateDate(String,Date)
+ void updateTime(String,Time)
+ void updateTimestamp(String,Timestamp)
+ void updateAsciiStream(String,InputStream,int)
+ void updateBinaryStream(String,InputStream,int)
+ void updateCharacterStream(String,Reader,int)
+ void updateObject(String,Object,int)
+ void updateObject(String,Object)
+ void insertRow()
+ void updateRow()
+ void deleteRow()
+ void refreshRow()
+ void cancelRowUpdates()
+ void moveToInsertRow()
+ void moveToCurrentRow()
+ Statement getStatement()
+ Object getObject(int,Map<String,Class<?>>)
+ Ref getRef(int)
+ Blob getBlob(int)
+ Clob getClob(int)
+ Array getArray(int)
+ Object getObject(String,Map<String,Class<?>>)
+ Ref getRef(String)
+ Blob getBlob(String)
+ Clob getClob(String)
+ Array getArray(String)
+ Date getDate(int,Calendar)
+ Date getDate(String,Calendar)
+ Time getTime(int,Calendar)
+ Time getTime(String,Calendar)
+ Timestamp getTimestamp(int,Calendar)
+ Timestamp getTimestamp(String,Calendar)
+ URL getURL(int)
+ URL getURL(String)
+ void updateRef(int,Ref)
+ void updateRef(String,Ref)
+ void updateBlob(int,Blob)
+ void updateBlob(String,Blob)
+ void updateClob(int,Clob)
+ void updateClob(String,Clob)
+ void updateArray(int,Array)
+ void updateArray(String,Array)
+ RowId getRowId(int)
+ RowId getRowId(String)
+ void updateRowId(int,RowId)
+ void updateRowId(String,RowId)
+ int getHoldability()
+ boolean isClosed()
+ void updateNString(int,String)
+ void updateNString(String,String)
+ void updateNClob(int,NClob)
+ void updateNClob(String,NClob)
+ NClob getNClob(int)
+ NClob getNClob(String)
+ SQLXML getSQLXML(int)
+ SQLXML getSQLXML(String)
+ void updateSQLXML(int,SQLXML)
+ void updateSQLXML(String,SQLXML)
+ String getNString(int)
+ String getNString(String)
+ Reader getNCharacterStream(int)
+ Reader getNCharacterStream(String)
+ void updateNCharacterStream(int,Reader,long)
+ void updateNCharacterStream(String,Reader,long)
+ void updateAsciiStream(int,InputStream,long)
+ void updateBinaryStream(int,InputStream,long)
+ void updateCharacterStream(int,Reader,long)
+ void updateAsciiStream(String,InputStream,long)
+ void updateBinaryStream(String,InputStream,long)
+ void updateCharacterStream(String,Reader,long)
+ void updateBlob(int,InputStream,long)
+ void updateBlob(String,InputStream,long)
+ void updateClob(int,Reader,long)
+ void updateClob(String,Reader,long)
+ void updateNClob(int,Reader,long)
+ void updateNClob(String,Reader,long)
+ void updateNCharacterStream(int,Reader)
+ void updateNCharacterStream(String,Reader)
+ void updateAsciiStream(int,InputStream)
+ void updateBinaryStream(int,InputStream)
+ void updateCharacterStream(int,Reader)
+ void updateAsciiStream(String,InputStream)
+ void updateBinaryStream(String,InputStream)
+ void updateCharacterStream(String,Reader)
+ void updateBlob(int,InputStream)
+ void updateBlob(String,InputStream)
+ void updateClob(int,Reader)
+ void updateClob(String,Reader)
+ void updateNClob(int,Reader)
+ void updateNClob(String,Reader)
+ T unwrap(Class<T>)
+ boolean isWrapperFor(Class<?>)
}
interface webapi.sql.ICancel {
+ boolean isClosed()
+ void close()
+ void cancel()
}
class webapi.sql.MyCreateStatement {
- LoznConnection loznConnection
- int flag
- CancelHelper cancelHelper
- com.alibaba.fastjson.JSONArray rows
- com.alibaba.fastjson.JSONObject currentRow
- String[] keys
~ int current
+ boolean isClosed()
+ void close()
+ void cancel()
+ boolean next()
+ ResultSet executeQuery(String)
+ int executeUpdate(String)
+ int getMaxFieldSize()
+ void setMaxFieldSize(int)
+ int getMaxRows()
+ void setMaxRows(int)
+ void setEscapeProcessing(boolean)
+ int getQueryTimeout()
+ void setQueryTimeout(int)
- String findColumnLabel(int)
+ SQLWarning getWarnings()
+ void clearWarnings()
+ void setCursorName(String)
+ boolean execute(String)
+ ResultSet getResultSet()
+ int getUpdateCount()
+ boolean getMoreResults()
+ boolean first()
+ boolean last()
+ void setFetchDirection(int)
+ int getFetchDirection()
+ void setFetchSize(int)
+ int getFetchSize()
+ int getResultSetConcurrency()
+ int getResultSetType()
+ void addBatch(String)
+ void clearBatch()
+ int[] executeBatch()
+ Connection getConnection()
+ boolean getMoreResults(int)
+ ResultSet getGeneratedKeys()
+ int executeUpdate(String,int)
+ int executeUpdate(String,int[])
+ int executeUpdate(String,String[])
+ boolean execute(String,int)
+ boolean execute(String,int[])
+ boolean execute(String,String[])
+ int getResultSetHoldability()
+ void setPoolable(boolean)
+ boolean isPoolable()
+ T unwrap(Class<T>)
+ boolean isWrapperFor(Class<?>)
}


webapi.sql.Driver <|.. webapi.sql.Driver
java.sql.CallableStatement <|.. webapi.sql.MyCallableStatement
webapi.sql.ICancel <|.. webapi.sql.MyCallableStatement
webapi.sql.RuntimeException <|-- webapi.sql.ServerExecException
webapi.sql.RuntimeException <|-- webapi.sql.DataFormatException
java.sql.ResultSetMetaData <|.. webapi.sql.MyResultSetMetaData
webapi.sql.Connection <|.. webapi.sql.LoznConnection
java.sql.Blob <|.. webapi.sql.BlobImpl
webapi.sql.ICancel <|.. webapi.sql.CancelHelper
java.sql.PreparedStatement <|.. webapi.sql.MyPreparedStatement
webapi.sql.ICancel <|.. webapi.sql.MyPreparedStatement
java.sql.ResultSet <|.. webapi.sql.JSONArrayResultSet
webapi.sql.Statement <|.. webapi.sql.MyCreateStatement
webapi.sql.ICancel <|.. webapi.sql.MyCreateStatement
@enduml



diagram-10650204536351048981.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值