org.firebirdsql.jca
Class FBConnectionRequestInfo
java.lang.Object
org.firebirdsql.jca.FBConnectionRequestInfo
- ConnectionRequestInfo, ConnectionSpec, org.firebirdsql.gds.impl.DatabaseParameterBufferExtension, Serializable
public class FBConnectionRequestInfo
extends java.lang.Object
implements org.firebirdsql.gds.impl.DatabaseParameterBufferExtension, ConnectionRequestInfo, ConnectionSpec, Serializable
The class FBConnectionRequestInfo
holds a clumplet that is
used to store and transfer connection-specific information such as user,
password, and other dpb information..
BLOB_BUFFER_SIZE , FILENAME_CHARSET , LOCAL_ENCODING , MAPPING_PATH , NO_RESULT_SET_TRACKING , PARANOIA_MODE , RESULT_SET_HOLDABLE , SOCKET_BUFFER_SIZE , TIMESTAMP_USES_LOCAL_TIMEZONE , USE_STANDARD_UDF , USE_STREAM_BLOBS |
addArgument
public void addArgument(int argumentType,
String value)
Add string argument.
- addArgument in interface DatabaseParameterBuffer
argumentType
- type of argument.value
- string value to add.
addArgument
public void addArgument(int argumentType,
byte[] content)
Add array of bytes.
- addArgument in interface DatabaseParameterBuffer
argumentType
- type of argument.content
- content of argument.
addArgument
public void addArgument(int argumentType,
int value)
Add integer argument.
- addArgument in interface DatabaseParameterBuffer
argumentType
- type of argument.value
- integer value to add.
equals
public boolean equals(Object obj)
getArgumentAsInt
public int getArgumentAsInt(int argumentType)
Get argument as int.
- getArgumentAsInt in interface DatabaseParameterBuffer
argumentType
- type of argument to find.
- argument as string or
0
if nothing found.
getArgumentAsString
public String getArgumentAsString(int argumentType)
Get argument as string.
- getArgumentAsString in interface DatabaseParameterBuffer
argumentType
- type of argument to find.
- argument as string or
null
if nothing found.
getDpb
public DatabaseParameterBuffer getDpb()
Get the underlying Database Parameter Buffer for this object.
- The underlying dpb for this object
hasArgument
public boolean hasArgument(int argumentType)
Check if this parameter buffer has specified argument.
- hasArgument in interface DatabaseParameterBuffer
argumentType
- type of argument to find.
true
if this buffer contains specified argument.
hashCode
public int hashCode()
setPassword
public void setPassword(String password)
setUserName
public void setUserName(String userName)
Copyright B) 2001 David Jencks and other authors. All rights reserved.