美文网首页
SchemaDataSource

SchemaDataSource

作者: jinhm007 | 来源:发表于2019-01-21 00:03 被阅读0次

    package com.test.demo.jdbc;

    import org.apache.commons.dbcp.BasicDataSource;

    /**

    * @ClassName: SchemaDataSource

    * @Description: 增加schemaName属性,以支持Oracle数据库

    *

    */

    public class SchemaDataSourceextends BasicDataSource {

    private StringschemaName;

      public SchemaDataSource() {

    }

    public SchemaDataSource(String driverClassName, String url,

            String username, String password, String schemaName) {

    super();

          this.schemaName = schemaName;

      }

    public StringgetSchemaName() {

    return schemaName;

      }

    public void setSchemaName(String schemaName) {

    this.schemaName = schemaName;

      }

    }

    相关文章

      网友评论

          本文标题:SchemaDataSource

          本文链接:https://www.haomeiwen.com/subject/zlcqjqtx.html