public class FBServiceManager extends java.lang.Object implements ServiceManager
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
| Modifier | Constructor and Description |
|---|---|
protected |
FBServiceManager()
Create a new instance of
FBServiceManager based on
the default GDSType. |
protected |
FBServiceManager(org.firebirdsql.gds.impl.GDSType gdsType)
Create a new instance of
FBServiceManager based on
a given GDSType. |
protected |
FBServiceManager(java.lang.String gdsType)
Create a new instance of
FBServiceManager based on
a given GDSType. |
| Modifier and Type | Method and Description |
|---|---|
IscSvcHandle |
attachServiceManager(GDS gds) |
protected ServiceRequestBuffer |
createRequestBuffer(int operation,
int options)
Build up a request buffer for the specified operation.
|
void |
detachServiceManager(GDS gds,
IscSvcHandle handle) |
protected void |
executeServicesOperation(ServiceRequestBuffer srb)
Execute a Services API operation in the database.
|
java.lang.String |
getDatabase()
Returns the database path for the connection to the service manager.
|
GDS |
getGds()
Get
GDS implementation depending on the type specified
during instantiation. |
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.
|
java.lang.String |
getServiceName() |
java.lang.String |
getUser()
Get name of the user that performs the operation.
|
void |
queueService(GDS gds,
IscSvcHandle handle) |
void |
setDatabase(java.lang.String database)
Sets the database path for the connection to the service manager.
|
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.
|
public static final int BUFFER_SIZE
protected FBServiceManager()
FBServiceManager based on
the default GDSType.protected FBServiceManager(java.lang.String gdsType)
FBServiceManager based on
a given GDSType.gdsType - type must be PURE_JAVA, EMBEDDED, or NATIVEprotected FBServiceManager(org.firebirdsql.gds.impl.GDSType gdsType)
FBServiceManager based on
a given GDSType.gdsType - The GDS implementation type to usepublic 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 java.io.OutputStream getLogger()
ServiceManagergetLogger in interface ServiceManagerpublic void setLogger(java.io.OutputStream logger)
ServiceManagersetLogger in interface ServiceManagerlogger - The out to set.public GDS getGds()
GDS implementation depending on the type specified
during instantiation.GDS.public java.lang.String getServiceName()
public IscSvcHandle attachServiceManager(GDS gds) throws GDSException
GDSExceptionpublic void detachServiceManager(GDS gds, IscSvcHandle handle) throws GDSException
GDSExceptionpublic void queueService(GDS gds, IscSvcHandle handle) throws GDSException, FBSQLException, java.io.IOException
GDSExceptionFBSQLExceptionjava.io.IOExceptionprotected void executeServicesOperation(ServiceRequestBuffer srb) throws FBSQLException
ServiceManager's logger.srb - The buffer containing the task requestFBSQLException - if a database access error occurs or
incorrect parameters are suppliedprotected ServiceRequestBuffer createRequestBuffer(int operation, int options)
operation - The isc_action_svc_* operationoptions - The options bitmask for the request bufferCopyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.