All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scudata.common.SpringDBConfig Maven / Gradle / Ivy

Go to download

SPL(Structured Process Language) A programming language specially for structured data computing.

There is a newer version: 20240823
Show newest version
package com.scudata.common;

import java.io.Serializable;

/**
 * Spring????Դ????
 *
 */
public class SpringDBConfig extends DBInfo implements Cloneable, Serializable {

	private String id; // datasource??id

	/**
	 * ??ʼ??
	 * @param dbType	???ݿ?????
	 */
	public SpringDBConfig(int dbType) {
		super(dbType);
	}

	/**
	 * ??ʼ??
	 * @param dbType	???ݿ?????
	 * @param id	Spring??datasource??id
	 */
	public SpringDBConfig(int dbType, String id) {
		super(dbType);
		this.id = id;
	}

	/**
	 * ȡID
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * ????ID
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * ???????ӹ???
	 */
	public ISessionFactory createSessionFactory() throws Exception {
		return SpringDBSessionFactory.create(id, dbType);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy