public class FBServiceManager extends java.lang.Object implements ServiceManager
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
| Constructor and Description |
|---|
FBServiceManager()
Create a new instance of
FBServiceManager based on
the default GDSType. |
FBServiceManager(GDSType gdsType)
Create a new instance of
FBServiceManager based on
a given GDSType. |
FBServiceManager(java.lang.String gdsType)
Create a new instance of
FBServiceManager based on
a given GDSType. |
| Modifier and Type | Method and Description |
|---|---|
protected FbDatabase |
attachDatabase() |
FbService |
attachServiceManager() |
protected ServiceRequestBuffer |
createRequestBuffer(FbService service,
int operation,
int options) |
protected void |
executeServicesOperation(FbService service,
ServiceRequestBuffer srb) |
protected void |
executeServicesOperation(ServiceRequestBuffer srb)
Deprecated.
|
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 |
getServiceName() |
java.lang.String |
getUser()
Get name of the user that performs the operation.
|
WireCrypt |
getWireCrypt()
Get the wire encryption level.
|
boolean |
isWireCompression()
Get if wire compression should be enabled.
|
void |
queueService(FbService service) |
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)
Set the name of the user that performs the operation.
|
void |
setWireCompression(boolean wireCompression)
Sets if the connection should try to enable wire compression.
|
void |
setWireCrypt(WireCrypt wireCrypt)
Set the wire encryption level.
|
public static final int BUFFER_SIZE
public FBServiceManager()
FBServiceManager based on
the default GDSType.public FBServiceManager(java.lang.String gdsType)
FBServiceManager based on
a given GDSType.gdsType - type must be PURE_JAVA, EMBEDDED, or NATIVEpublic FBServiceManager(GDSType gdsType)
FBServiceManager based on
a given GDSType.gdsType - The GDS implementation type to usepublic void setCharSet(java.lang.String charSet)
ServiceManager
If not set (or null), defaults to the value of system property file.encoding/
setCharSet in interface ServiceManagercharSet - Java charset name.public java.lang.String getCharSet()
getCharSet in interface ServiceManagerpublic void setUser(java.lang.String user)
setUser in interface ServiceManageruser - name of the user.public java.lang.String getUser()
getUser in interface ServiceManagerpublic void setPassword(java.lang.String password)
ServiceManagersetPassword in interface ServiceManagerpassword - The password to set.public java.lang.String getPassword()
ServiceManagergetPassword in interface ServiceManagerpublic void setDatabase(java.lang.String database)
ServiceManagersetDatabase in interface ServiceManagerdatabase - path for the connection to the service manager.public java.lang.String getDatabase()
ServiceManagergetDatabase in interface ServiceManagerpublic java.lang.String getHost()
ServiceManagergetHost in interface ServiceManagerpublic void setHost(java.lang.String host)
ServiceManagersetHost in interface ServiceManagerhost - The host to set.public int getPort()
ServiceManagergetPort in interface ServiceManagerpublic void setPort(int port)
ServiceManagersetPort in interface ServiceManagerport - The port to set.public WireCrypt getWireCrypt()
ServiceManagergetWireCrypt in interface ServiceManagerpublic void setWireCrypt(WireCrypt wireCrypt)
ServiceManagersetWireCrypt in interface ServiceManagerwireCrypt - Wire encryption level (null not allowed)public java.lang.String getDbCryptConfig()
ServiceManagergetDbCryptConfig in interface ServiceManagerpublic void setDbCryptConfig(java.lang.String dbCryptConfig)
ServiceManagersetDbCryptConfig in interface ServiceManagerdbCryptConfig - Database encryption plugin configuration, meaning plugin specificpublic java.lang.String getAuthPlugins()
ServiceManagergetAuthPlugins in interface ServiceManagernull for driver defaultpublic void setAuthPlugins(java.lang.String authPlugins)
ServiceManagerInvalid names are skipped during authentication.
setAuthPlugins in interface ServiceManagerauthPlugins - comma-separated list of authentication plugins, or null for driver defaultpublic boolean isWireCompression()
ServiceManagerWire 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.
isWireCompression in interface ServiceManagertrue wire compression enabledpublic void setWireCompression(boolean wireCompression)
ServiceManagersetWireCompression in interface ServiceManagerwireCompression - true enable wire compression, false disable wire compression (the default)ServiceManager.isWireCompression()public java.io.OutputStream getLogger()
ServiceManagergetLogger in interface ServiceManagerpublic void setLogger(java.io.OutputStream logger)
ServiceManagersetLogger in interface ServiceManagerlogger - The out to set.public java.lang.String getServiceName()
public FbService attachServiceManager() throws java.sql.SQLException
java.sql.SQLExceptionprotected FbDatabase attachDatabase() throws java.sql.SQLException
java.sql.SQLExceptionpublic void queueService(FbService service) throws java.sql.SQLException, java.io.IOException
java.sql.SQLExceptionjava.io.IOException@Deprecated protected void executeServicesOperation(ServiceRequestBuffer srb) throws java.sql.SQLException
executeServicesOperation(FbService, ServiceRequestBuffer).ServiceManager's logger.srb - The buffer containing the task requestjava.sql.SQLException - if a database access error occurs or
incorrect parameters are suppliedprotected final void executeServicesOperation(FbService service, ServiceRequestBuffer srb) throws java.sql.SQLException
java.sql.SQLExceptionprotected ServiceRequestBuffer createRequestBuffer(FbService service, int operation, int options)
public GDSServerVersion getServerVersion() throws java.sql.SQLException
ServiceManagergetServerVersion in interface ServiceManagerGDSServerVersion.INVALID_VERSION if parsing
failed.java.sql.SQLException - For errors connecting to the service manager.Copyright © 2001-2023 Jaybird (Firebird JDBC/JCA) team. All rights reserved.