class AppRequester
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
private int |
clientType |
|
protected static int |
DNC_CLIENT |
|
protected java.lang.String |
extnam |
|
private int[] |
managerLevels |
|
protected static int |
MGR_LEVEL_UNKNOWN |
|
private static int[] |
MIN_MGR_LEVELS |
|
protected int |
modifyLevel |
|
protected java.lang.String |
prdid |
|
protected int |
releaseLevel |
|
protected java.lang.String |
spvnam |
|
protected java.lang.String |
srvclsnm |
|
protected java.lang.String |
srvnam |
|
protected java.lang.String |
srvrlslv |
|
protected static int |
UNKNOWN_CLIENT |
|
protected int |
versionLevel |
Constructor | Description |
---|---|
AppRequester() |
AppRequester constructor
|
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
equals(AppRequester a) |
Check if the application requester is the same as this one
|
protected int |
getClientType() |
Get the type of the client.
|
protected int |
getManagerLevel(int manager) |
get the Application requester manager level
|
protected int |
getTimestampLength() |
The timestamp length may be truncated for old versions of Derby.
|
protected boolean |
greaterThanOrEqualTo(int vLevel,
int rLevel,
int mLevel) |
Check if provided JCC version level is greaterThanOrEqualTo current level
|
protected boolean |
isXARequester() |
Is this an AppRequester that supports XA
return true if XAMGR >= 7, false otherwise
|
private boolean |
notEquals(java.lang.Object a,
java.lang.Object b) |
Check whether two objects are not equal when 1 of the objects could
be null
|
protected void |
setClientVersion(java.lang.String productId) |
|
protected void |
setManagerLevel(int manager,
int managerLevel) |
set Application requester manager level
if the manager level is less than the minimum manager level,
set the manager level to zero (saying we can't handle this
level), this will be returned
to the application requester and he can decide whether or not to
proceed
For CCSIDMGR, if the target server supports the CCSID manager but
not the CCSID requested, the value returned is FFFF
For now, we won't support the CCSIDMGR since JCC doesn't request it.
|
protected int |
supportedMessageParamLength() |
Get the maximum length supported for an exception's message
parameter string.
|
protected boolean |
supportsBooleanValues() |
|
protected boolean |
supportsEXTDTAAbort() |
Tells whether the client sends a trailing Derby-specific status byte
when transferring EXTDTA objects.
|
protected boolean |
supportsLongerLDStrings() |
Return true if the client contains the fix for DERBY-5236, which allows
DDMWriter.writeLDString() to write strings that need up to 64K-1 bytes
when represented in UTF-8.
|
protected boolean |
supportsQryclsimpForLmtblkprc() |
Check if the client expects QRYCLSIMP to be supported when the
protocol is LMTBLKPRC.
|
protected boolean |
supportsSecMecUSRSSBPWD() |
Returns true if Derby's client driver supports SECMEC_USRSSBPWD
DRDA security mechanism.
|
protected boolean |
supportsSessionDataCaching() |
|
protected boolean |
supportsTimestampNanoseconds() |
|
protected boolean |
supportsUDTs() |
|
protected boolean |
supportsUtf8Ccsid() |
Returns whether our AppRequester's UNICODEMGR supports UTF8 (CCSID 1208)
|
protected static final int MGR_LEVEL_UNKNOWN
protected static final int UNKNOWN_CLIENT
protected static final int DNC_CLIENT
private static final int[] MIN_MGR_LEVELS
protected java.lang.String extnam
protected java.lang.String srvnam
protected java.lang.String srvrlslv
protected java.lang.String srvclsnm
protected java.lang.String spvnam
protected java.lang.String prdid
private int[] managerLevels
private int clientType
protected int versionLevel
protected int releaseLevel
protected int modifyLevel
protected int getManagerLevel(int manager)
manager
- codepoint for manager we are looking forprotected void setClientVersion(java.lang.String productId)
protected boolean supportsSecMecUSRSSBPWD()
protected final boolean supportsQryclsimpForLmtblkprc()
true
if QRYCLSIMP is supported for
LMTBLKPRCprotected boolean greaterThanOrEqualTo(int vLevel, int rLevel, int mLevel)
vLevel
- Version levelrLevel
- Release levelmLevel
- Modification levelprotected void setManagerLevel(int manager, int managerLevel)
manager
- codepoint of the managermanagerLevel
- level for that managerprotected boolean equals(AppRequester a)
a
- application requester to compare toprivate boolean notEquals(java.lang.Object a, java.lang.Object b)
a
- first objectb
- second objectprotected int supportedMessageParamLength()
protected int getClientType()
protected boolean isXARequester()
protected boolean supportsEXTDTAAbort()
true
if the status byte is sent, false
if notprotected boolean supportsUtf8Ccsid()
true
if the AppRequester supports CCSID 1208, false
if notprotected boolean supportsSessionDataCaching()
protected boolean supportsUDTs()
protected boolean supportsTimestampNanoseconds()
protected boolean supportsBooleanValues()
protected boolean supportsLongerLDStrings()
protected int getTimestampLength()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.