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 |
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.
|
void |
queueService(FbService service) |
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 |
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 ServiceManager
charSet
- Java charset name.public java.lang.String getCharSet()
getCharSet
in interface ServiceManager
public void setUser(java.lang.String user)
setUser
in interface ServiceManager
user
- name of the user.public java.lang.String getUser()
getUser
in interface ServiceManager
public void setPassword(java.lang.String password)
ServiceManager
setPassword
in interface ServiceManager
password
- The password to set.public java.lang.String getPassword()
ServiceManager
getPassword
in interface ServiceManager
public void setDatabase(java.lang.String database)
ServiceManager
setDatabase
in interface ServiceManager
database
- path for the connection to the service manager.public java.lang.String getDatabase()
ServiceManager
getDatabase
in interface ServiceManager
public java.lang.String getHost()
ServiceManager
getHost
in interface ServiceManager
public void setHost(java.lang.String host)
ServiceManager
setHost
in interface ServiceManager
host
- The host to set.public int getPort()
ServiceManager
getPort
in interface ServiceManager
public void setPort(int port)
ServiceManager
setPort
in interface ServiceManager
port
- The port to set.public WireCrypt getWireCrypt()
ServiceManager
getWireCrypt
in interface ServiceManager
public void setWireCrypt(WireCrypt wireCrypt)
ServiceManager
setWireCrypt
in interface ServiceManager
wireCrypt
- Wire encryption level (null
not allowed)public java.lang.String getDbCryptConfig()
ServiceManager
getDbCryptConfig
in interface ServiceManager
public void setDbCryptConfig(java.lang.String dbCryptConfig)
ServiceManager
setDbCryptConfig
in interface ServiceManager
dbCryptConfig
- Database encryption plugin configuration, meaning plugin specificpublic java.io.OutputStream getLogger()
ServiceManager
getLogger
in interface ServiceManager
public void setLogger(java.io.OutputStream logger)
ServiceManager
setLogger
in interface ServiceManager
logger
- The out to set.public java.lang.String getServiceName()
public FbService attachServiceManager() throws java.sql.SQLException
java.sql.SQLException
protected FbDatabase attachDatabase() throws java.sql.SQLException
java.sql.SQLException
public void queueService(FbService service) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.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.SQLException
protected ServiceRequestBuffer createRequestBuffer(FbService service, int operation, int options)
public GDSServerVersion getServerVersion() throws java.sql.SQLException
ServiceManager
getServerVersion
in interface ServiceManager
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.