|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.drda.PiggyBackedSessionData
class PiggyBackedSessionData
Tracks the most recently piggy-backed session attributes, and provides methods to determine if they have been modified and need to be re-sent to the client.
Field Summary | |
---|---|
private EngineConnection |
conn_
|
private int |
iso_
|
private boolean |
isoMod_
|
private java.lang.String |
schema_
|
private boolean |
schemaMod_
|
Constructor Summary | |
---|---|
private |
PiggyBackedSessionData(EngineConnection conn)
Constructs a new instance with an associated EngineConnection. |
Method Summary | |
---|---|
static PiggyBackedSessionData |
getInstance(PiggyBackedSessionData existing,
EngineConnection conn,
boolean createOnDemand)
Get a reference (handle) to the PiggyBackedSessionData object. |
int |
getIso()
|
java.lang.String |
getSchema()
|
boolean |
isIsoModified()
|
boolean |
isModified()
|
boolean |
isSchemaModified()
|
void |
refresh()
Refresh with the latest session attribute values from the connection. |
void |
setUnmodified()
Clear the modified status. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int iso_
private boolean isoMod_
private java.lang.String schema_
private boolean schemaMod_
private final EngineConnection conn_
Constructor Detail |
---|
private PiggyBackedSessionData(EngineConnection conn) throws java.sql.SQLException
conn
- the connection to obtain data from
java.sql.SQLException
Method Detail |
---|
public static PiggyBackedSessionData getInstance(PiggyBackedSessionData existing, EngineConnection conn, boolean createOnDemand) throws java.sql.SQLException
existing
- the PBSD object from the previous piggybacking or null if
none has yet taken placeconn
- the current EngineConnectioncreateOnDemand
- if true; create the instance when needed
java.sql.SQLException
public void refresh() throws java.sql.SQLException
java.sql.SQLException
public void setUnmodified()
public boolean isIsoModified()
public boolean isSchemaModified()
public boolean isModified()
public int getIso()
public java.lang.String getSchema()
public java.lang.String toString()
toString
in class java.lang.Object
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |