public interface ServiceManager
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthPlugins()
Get the list of authentication plugins to try.
|
java.lang.String |
getCharSet() |
java.lang.String |
getDatabase()
Returns the database path for the connection to the service manager.
|
java.lang.String |
getDbCryptConfig()
Get the database encryption plugin configuration.
|
java.lang.String |
getHost()
Returns the host for the connection to the service manager.
|
java.io.OutputStream |
getLogger()
Returns the logger for the connection to the service manager.
|
java.lang.String |
getPassword()
Returns the password for the connection to the service manager.
|
int |
getPort()
Returns the port for the connection to the service manager.
|
GDSServerVersion |
getServerVersion()
Obtains the server version through a service call.
|
java.lang.String |
getUser()
Returns the username for the connection to the service manager.
|
WireCrypt |
getWireCrypt()
Get the wire encryption level.
|
boolean |
isWireCompression()
Get if wire compression should be enabled.
|
void |
setAuthPlugins(java.lang.String authPlugins)
Sets the authentication plugins to try.
|
void |
setCharSet(java.lang.String charSet)
Sets the encoding used for encoding or decoding string values.
|
void |
setDatabase(java.lang.String database)
Sets the database path for the connection to the service manager.
|
void |
setDbCryptConfig(java.lang.String dbCryptConfig)
Sets the database encryption plugin configuration.
|
void |
setHost(java.lang.String host)
Sets the host for the connection to the service manager.
|
void |
setLogger(java.io.OutputStream logger)
Sets the logger for the connection to the service manager.
|
void |
setPassword(java.lang.String password)
Sets the password for the connection to the service manager.
|
void |
setPort(int port)
Sets the port for the connection to the service manager.
|
void |
setUser(java.lang.String user)
Sets the username for the connection to the service manager.
|
void |
setWireCompression(boolean wireCompression)
Sets if the connection should try to enable wire compression.
|
void |
setWireCrypt(WireCrypt wireCrypt)
Set the wire encryption level.
|
void setCharSet(java.lang.String charSet)
If not set (or null), defaults to the value of system property file.encoding
/
charSet
- Java charset name.java.lang.String getCharSet()
void setUser(java.lang.String user)
user
- for the connection to the service manager.java.lang.String getUser()
void setPassword(java.lang.String password)
password
- for the connection to the service manager.java.lang.String getPassword()
void setDatabase(java.lang.String database)
database
- path for the connection to the service manager.java.lang.String getDatabase()
java.lang.String getHost()
void setHost(java.lang.String host)
host
- for the connection to the service manager.int getPort()
void setPort(int port)
port
- for the connection to the service manager.WireCrypt getWireCrypt()
void setWireCrypt(WireCrypt wireCrypt)
wireCrypt
- Wire encryption level (null
not allowed)java.lang.String getDbCryptConfig()
void setDbCryptConfig(java.lang.String dbCryptConfig)
dbCryptConfig
- Database encryption plugin configuration, meaning plugin specificjava.lang.String getAuthPlugins()
null
for driver defaultvoid setAuthPlugins(java.lang.String authPlugins)
Invalid names are skipped during authentication.
authPlugins
- comma-separated list of authentication plugins, or null
for driver defaultboolean isWireCompression()
Wire compression requires Firebird 3 or higher, and the server must have the zlib library. If compression cannot be negotiated, the connection will be made without wire compression.
This property will be ignored for native connections. For native connections, the configuration in
firebird.conf
read by the client library will be used.
true
wire compression enabledvoid setWireCompression(boolean wireCompression)
wireCompression
- true
enable wire compression, false
disable wire compression (the default)isWireCompression()
java.io.OutputStream getLogger()
void setLogger(java.io.OutputStream logger)
logger
- for the connection to the service manager.GDSServerVersion getServerVersion() throws java.sql.SQLException
GDSServerVersion.INVALID_VERSION
if parsing
failed.java.sql.SQLException
- For errors connecting to the service manager.Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.