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

📄 dbservices.java

📁 利用java反射机制
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
    public boolean isUseDataSource() {        return this.useDataSource;    }        /** Setter for property useDataSource.     * @param useDataSource New value of property useDataSource.     *     */    public void setUseDataSource(boolean useDataSource) {        this.useDataSource = useDataSource;    }        /** Getter for property driverName.     * @return Value of property driverName.     *     */    public String getDriverName() {        return this.driverName;    }        /** Setter for property driverName.     * @param driverName New value of property driverName.     *     */    public void setDriverName(String driverName) {        this.driverName = driverName;    }        /** Getter for property dbUrl.     * @return Value of property dbUrl.     *     */    public String getDbUrl() {        return this.dbUrl;    }        /** Setter for property dbUrl.     * @param dbUrl New value of property dbUrl.     *     */    public void setDbUrl(String dbUrl) {        this.dbUrl = dbUrl;    }        /** Getter for property userName.     * @return Value of property userName.     *     */    public String getUserName() {        return this.userName;    }        /** Setter for property userName.     * @param userName New value of property userName.     *     */    public void setUserName(String userName) {        this.userName = userName;    }        /** Getter for property password.     * @return Value of property password.     *     */    public String getPassword() {        return this.password;    }        /** Setter for property password.     * @param password New value of property password.     *     */    public void setPassword(String password) {        this.password = password;    }        /** Getter for property dataSourceName.     * @return Value of property dataSourceName.     *     */    public java.lang.String getDataSourceName() {        return dataSourceName;    }        /** Setter for property dataSourceName.     * @param dataSourceName New value of property dataSourceName.     *     */    public void setDataSourceName(java.lang.String dataSourceName) {        this.dataSourceName = dataSourceName;    }        /** Getter for property fetchSize.     * @return Value of property fetchSize.     *     */    public int getFetchSize() {        return fetchSize;    }        /** Setter for property fetchSize.     * @param fetchSize New value of property fetchSize.     *     */    public void setFetchSize(int fetchSize) {        this.fetchSize = fetchSize;    }        /** Getter for property fetchDirection.     * @return Value of property fetchDirection.     *     */    public int getFetchDirection() {        return fetchDirection;    }        /** Setter for property fetchDirection.     * @param fetchDirection New value of property fetchDirection.     *     */    public void setFetchDirection(int fetchDirection) {        this.fetchDirection = fetchDirection;    }        /** Getter for property queryTimeout.     * @return Value of property queryTimeout.     *     */    public int getQueryTimeout() {        return queryTimeout;    }        /** Setter for property queryTimeout.     * @param queryTimeout New value of property queryTimeout.     *     */    public void setQueryTimeout(int queryTimeout) {        this.queryTimeout = queryTimeout;    }        /** Getter for property maxRows.     * @return Value of property maxRows.     *     */    public int getMaxRows() {        return maxRows;    }        /** Setter for property maxRows.     * @param maxRows New value of property maxRows.     *     */    public void setMaxRows(int maxRows) {        this.maxRows = maxRows;    }        /** Getter for property maxFieldSize.     * @return Value of property maxFieldSize.     *     */    public int getMaxFieldSize() {        return maxFieldSize;    }        /** Setter for property maxFieldSize.     * @param maxFieldSize New value of property maxFieldSize.     *     */    public void setMaxFieldSize(int maxFieldSize) {        this.maxFieldSize = maxFieldSize;    }        /** Getter for property escapeProcessing.     * @return Value of property escapeProcessing.     *     */    public boolean getEscapeProcessing() {        return escapeProcessing;    }        /** Setter for property escapeProcessing.     * @param escapeProcessing New value of property escapeProcessing.     *     */    public void setEscapeProcessing(boolean escapeProcessing) {        this.escapeProcessing = escapeProcessing;    }        /** Getter for property resultSetType.     * @return Value of property resultSetType.     *     */    public int getResultSetType() {        return resultSetType;    }        /** Setter for property resultSetType.     * @param resultSetType New value of property resultSetType.     *     */    public void setResultSetType(int resultSetType) {        this.resultSetType = resultSetType;    }        /** Getter for property concurrency.     * @return Value of property concurrency.     *     */    public int getConcurrency() {        return concurrency;    }        /** Setter for property concurrency.     * @param concurrency New value of property concurrency.     *     */    public void setConcurrency(int concurrency) {        this.concurrency = concurrency;    }        /** Getter for property connectionClosed.     * @return Value of property connectionClosed.     *     */    public boolean isConnectionClosed() {        return connectionClosed;    }        /** Setter for property connectionClosed.     * @param connectionClosed New value of property connectionClosed.     *     */    protected void setConnectionClosed(boolean connectionClosed) {        this.connectionClosed = connectionClosed;    }        /** Getter for property maxRowsToProccesInTransaction.     * @return Value of property maxRowsToProccesInTransaction.     *     */    public int getMaxRowsToProccesInTransaction() {        return maxRowsToProccesInTransaction;    }        /** Setter for property maxRowsToProccesInTransaction.     * @param maxRowsToProccesInTransaction New value of property maxRowsToProccesInTransaction.     *     */    public void setMaxRowsToProccesInTransaction(int maxRowsToProccesInTransaction) throws SQLException{        if (maxRowsToProccesInTransaction < 0){            throw new SQLException("Invalid maxRowsToProccesInTransaction value");        }        this.maxRowsToProccesInTransaction = maxRowsToProccesInTransaction;    }        /** Getter for property rowsAffectedInTransaction.     * @return Value of property rowsAffectedInTransaction.     *     */    public int getRowsAffectedInTransaction() {        return rowsAffectedInTransaction;    }        /** Setter for property rowsAffectedInTransaction.     * @param rowsAffectedInTransaction New value of property rowsAffectedInTransaction.     *     */    public void setRowsAffectedInTransaction(int rowsAffectedInTransaction) throws SQLException{        this.rowsAffectedInTransaction = rowsAffectedInTransaction;        if (this.maxRowsToProccesInTransaction != 0 &&                this.rowsAffectedInTransaction >= this.maxRowsToProccesInTransaction){            try{                this.commitTran();                this.release(false);                this.beginTran();            }catch(SQLException e){                this.rollbackTran();                throw e;            }        }    }        /** Getter for property connectionProperties.     * @return Value of property connectionProperties.     *     */    public java.util.Properties getConnectionProperties() {        return connectionProperties;    }        /** Setter for property connectionProperties.     * @param connectionProperties New value of property connectionProperties.     *     */    public void setConnectionProperties(java.util.Properties connectionProperties) {        this.connectionProperties = connectionProperties;    }        /** Getter for property closeStatementAfterExecute.     * @return Value of property closeStatementAfterExecute.     *     */    public boolean isCloseStatementAfterExecute() {        return closeStatementAfterExecute;    }        /** Setter for property closeStatementAfterExecute.     * @param closeStatementAfterExecute New value of property closeStatementAfterExecute.     *     */    public void setCloseStatementAfterExecute(boolean closeStatementAfterExecute) {        this.closeStatementAfterExecute = closeStatementAfterExecute;    }        /** Getter for property connectionId.     * @return Value of property connectionId.     *     */    public java.lang.String getConnectionId() {        return connectionId;    }        /** Setter for property connectionId.     * @param connectionId New value of property connectionId.     *     */    public void setConnectionId(java.lang.String connectionId) {        this.connectionId = connectionId;    }        /** Getter for property tranInProccess.     * @return Value of property tranInProccess.     *     */    public boolean isTranInProccess() {        return tranInProccess;    }        /** Setter for property tranInProccess.     * @param tranInProccess New value of property tranInProccess.     *     */    public void setTranInProccess(boolean tranInProccess) {        this.tranInProccess = tranInProccess;    }    }

⌨️ 快捷键说明

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