|
|||||||||
| 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, COLUMN_LABEL_FOR_NAME, EXTENSION_PARAMETERS, FILENAME_CHARSET, LOCAL_ENCODING, MAPPING_PATH, NO_RESULT_SET_TRACKING, OCTETS_AS_BYTES, PARANOIA_MODE, RESULT_SET_HOLDABLE, SO_TIMEOUT, SOCKET_BUFFER_SIZE, TIMESTAMP_USES_LOCAL_TIMEZONE, USE_FIREBIRD_AUTOCOMMIT, 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,
java.lang.String value)
Add string argument. |
DatabaseParameterBuffer |
deepCopy()
Perform a deep copy of this object, returning the copied instance. |
boolean |
equals(java.lang.Object obj)
|
int |
getArgumentAsInt(int argumentType)
Get argument as int. |
java.lang.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()
|
void |
setPassword(java.lang.String password)
|
void |
setUserName(java.lang.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,
java.lang.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 java.lang.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()
removeExtensionParams in interface org.firebirdsql.gds.impl.DatabaseParameterBufferExtensionpublic void setUserName(java.lang.String userName)
public void setPassword(java.lang.String password)
public boolean equals(java.lang.Object obj)
equals in interface javax.resource.spi.ConnectionRequestInfoequals in class java.lang.Objectpublic int hashCode()
hashCode in interface javax.resource.spi.ConnectionRequestInfohashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||