|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.firebirdsql.jca.FBConnectionRequestInfo
public class FBConnectionRequestInfo
The class FBConnectionRequestInfo holds a clumplet that is
used to store and transfer connection-specific information such as user,
password, and other dpb information..
| Field Summary |
|---|
| Fields inherited from interface org.firebirdsql.gds.impl.DatabaseParameterBufferExtension |
|---|
BLOB_BUFFER_SIZE, EXTENSION_PARAMETERS, FILENAME_CHARSET, LOCAL_ENCODING, MAPPING_PATH, NO_RESULT_SET_TRACKING, OCTETS_AS_BYTES, PARANOIA_MODE, RESULT_SET_HOLDABLE, SOCKET_BUFFER_SIZE, TIMESTAMP_USES_LOCAL_TIMEZONE, USE_STANDARD_UDF, USE_STREAM_BLOBS |
| Constructor Summary | |
|---|---|
FBConnectionRequestInfo(DatabaseParameterBuffer dpb)
|
|
| Method Summary | |
|---|---|
void |
addArgument(int argumentType)
Add argument with no parameters. |
void |
addArgument(int argumentType,
byte[] content)
Add array of bytes. |
void |
addArgument(int argumentType,
int value)
Add integer argument. |
void |
addArgument(int argumentType,
String value)
Add string argument. |
DatabaseParameterBuffer |
deepCopy()
Perform a deep copy of this object, returning the copied instance. |
boolean |
equals(Object obj)
|
int |
getArgumentAsInt(int argumentType)
Get argument as int. |
String |
getArgumentAsString(int argumentType)
Get argument as string. |
DatabaseParameterBuffer |
getDpb()
Get the underlying Database Parameter Buffer for this object. |
boolean |
hasArgument(int argumentType)
Check if this parameter buffer has specified argument. |
int |
hashCode()
|
void |
removeArgument(int argumentType)
Remove specified argument. |
DatabaseParameterBuffer |
removeExtensionParams()
Remove extension parameters in the newly created deep copy of this class. |
void |
setPassword(String password)
|
void |
setUserName(String userName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FBConnectionRequestInfo(DatabaseParameterBuffer dpb)
| Method Detail |
|---|
public DatabaseParameterBuffer deepCopy()
deepCopy in interface DatabaseParameterBufferpublic DatabaseParameterBuffer getDpb()
public void addArgument(int argumentType,
byte[] content)
DatabaseParameterBuffer
addArgument in interface DatabaseParameterBufferargumentType - type of argument.content - content of argument.
public void addArgument(int argumentType,
int value)
DatabaseParameterBuffer
addArgument in interface DatabaseParameterBufferargumentType - type of argument.value - integer value to add.
public void addArgument(int argumentType,
String value)
DatabaseParameterBuffer
addArgument in interface DatabaseParameterBufferargumentType - type of argument.value - string value to add.public void addArgument(int argumentType)
DatabaseParameterBuffer
addArgument in interface DatabaseParameterBufferargumentType - type of argument.public int getArgumentAsInt(int argumentType)
DatabaseParameterBuffer
getArgumentAsInt in interface DatabaseParameterBufferargumentType - type of argument to find.
0 if nothing found.public String getArgumentAsString(int argumentType)
DatabaseParameterBuffer
getArgumentAsString in interface DatabaseParameterBufferargumentType - type of argument to find.
null if nothing found.public boolean hasArgument(int argumentType)
DatabaseParameterBuffer
hasArgument in interface DatabaseParameterBufferargumentType - type of argument to find.
true if this buffer contains specified argument.public void removeArgument(int argumentType)
DatabaseParameterBuffer
removeArgument in interface DatabaseParameterBufferargumentType - type of argument to remove.public DatabaseParameterBuffer removeExtensionParams()
DatabaseParameterBufferExtension
removeExtensionParams in interface DatabaseParameterBufferExtensionpublic void setUserName(String userName)
public void setPassword(String password)
public boolean equals(Object obj)
equals in interface javax.resource.spi.ConnectionRequestInfoequals in class Objectpublic int hashCode()
hashCode in interface javax.resource.spi.ConnectionRequestInfohashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||