public class DBOption
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
DBOption.PasswordCipher
数据库密码加解密接口
|
构造器和说明 |
---|
DBOption() |
限定符和类型 | 方法和说明 |
---|---|
DBOption |
addRawProperty(java.lang.String key,
java.lang.Object value) |
DBOption |
copy() |
DBOption |
dialectClass(java.lang.String dialectClass) |
DBOption |
driverClass(java.lang.String driverClass) |
java.lang.String |
getDialectClass() |
java.lang.String |
getDriverClass() |
java.lang.String |
getPassword() |
java.util.Properties |
getProperties() |
java.lang.Object |
getRawProperty(java.lang.String key) |
java.lang.String |
getUrl() |
java.lang.String |
getUsername() |
DBOption |
password(java.lang.String password) |
DBOption |
read(java.io.InputStream inputStream)
从输入流中读取配置
|
DBOption |
read(java.io.InputStream inputStream,
DBOption.PasswordCipher cipher)
从输入流中读取配置
|
void |
setDialectClass(java.lang.String dialectClass)
hibernate专用的方言类名,都在这个包下:com.fr.third.org.hibernate.dialect
|
void |
setDriverClass(java.lang.String driverClass) |
void |
setPassword(java.lang.String password) |
void |
setUrl(java.lang.String url) |
void |
setUsername(java.lang.String username) |
DBOption |
url(java.lang.String url) |
DBOption |
username(java.lang.String username) |
DBOption |
write(java.io.OutputStream outputStream)
将配置写入到输出流中
|
DBOption |
write(java.io.OutputStream outputStream,
DBOption.PasswordCipher cipher)
将配置写入到输出流中
|
public void setDriverClass(java.lang.String driverClass)
public java.lang.String getDriverClass()
public DBOption driverClass(java.lang.String driverClass)
public void setDialectClass(java.lang.String dialectClass)
dialectClass
- 类名public java.lang.String getDialectClass()
public DBOption dialectClass(java.lang.String dialectClass)
public void setUrl(java.lang.String url)
public java.lang.String getUrl()
public DBOption url(java.lang.String url)
public void setUsername(java.lang.String username)
public java.lang.String getUsername()
public DBOption username(java.lang.String username)
public void setPassword(java.lang.String password)
public java.lang.String getPassword()
public DBOption password(java.lang.String password)
public DBOption addRawProperty(java.lang.String key, java.lang.Object value)
public java.lang.Object getRawProperty(java.lang.String key)
public java.util.Properties getProperties()
public DBOption read(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- 输入流java.io.IOException
public DBOption read(java.io.InputStream inputStream, DBOption.PasswordCipher cipher) throws java.io.IOException
inputStream
- 输入流cipher
- 数据库密码加解密器java.io.IOException
public DBOption write(java.io.OutputStream outputStream) throws java.io.IOException
outputStream
- 输出流java.io.IOException
public DBOption write(java.io.OutputStream outputStream, DBOption.PasswordCipher cipher) throws java.io.IOException
outputStream
- 输出流cipher
- 数据库密码加解密器java.io.IOException
public DBOption copy()