|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclarion.clarion.util.FileState
public class FileState
Model state of JDBC Connection. This same object is used for current state and saved states
| Nested Class Summary | |
|---|---|
static class |
FileState.Global
|
static class |
FileState.Mode
Read mode/state of the connection NONE - no reading occurring RESET - file/key is positioned but no reading yet FORWARD - we are reading forward BACK - we are reading backwards RESTORED - we have been restored file that was previously - either in Forward or Back mode, but we have not yet fully restored iterator position (iterator restore is lazy) USER - user defined SQL was executed |
| Field Summary | |
|---|---|
boolean[] |
changed
catalog of buffer columns that have been modified |
int |
currentLimit
|
boolean |
disableBinding
|
ClarionObject[] |
fields
|
FileState.Global |
global
|
boolean |
ignoreChange
Ignore changes made to parameters as these are being done by internal ClarionFile object |
boolean |
isBounded
|
boolean[] |
isnull
catalog of buffer columns that have been flagged as null |
boolean |
keyBinding
Key binding. |
int |
limit
Limits - when scanning very large files say 10,000s of records in a browse, user usually only wants to see the first 20 or so. |
ClarionMemoryChangeListener[] |
listeners
|
FileState.Mode |
mode
|
int |
offset
|
SharedOutputStream |
position
Current scan position |
ClarionKey |
primaryKey
Primary key and position |
ClarionObject[] |
primaryKeyFields
|
boolean |
quickScan
Quick scan has a comparable in original clarion. |
ClarionObject |
quickScanBuffer
|
boolean |
quickScanResetActivated
|
int |
readCount
|
java.sql.ResultSet |
result
|
org.jclarion.clarion.util.FileState.ResultSetCount |
resultSetCount
|
ClarionObject[] |
scanFields
|
ClarionKey |
scanKey
Current scan key (if any) |
java.lang.StringBuilder |
select
|
java.sql.PreparedStatement |
statement
Current Result Set/etc |
boolean |
watchArmed
is watch armed. |
ClarionObject[] |
watchBuffer
Run following SQL before PUT() if expression fails then fail PUT(). |
| Constructor Summary | |
|---|---|
FileState()
|
|
FileState(FileState.Global global)
|
|
FileState(FileState base)
|
|
| Method Summary | |
|---|---|
void |
closeCursor()
|
void |
closeCursor(boolean clearKeyAndPosition)
|
void |
closeCursor(boolean clearKeyAndPosition,
boolean clearMode)
|
void |
free()
|
int |
getFieldIndex(ClarionObject o)
|
void |
restore(FileState save)
|
FileState |
save()
|
void |
saveBuffer(SharedOutputStream target)
|
void |
setKeyBinding(boolean b)
|
void |
setLimit(int limit)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public FileState.Global global
public FileState.Mode mode
public ClarionObject[] fields
public boolean[] changed
public boolean[] isnull
public java.sql.PreparedStatement statement
public java.sql.ResultSet result
public org.jclarion.clarion.util.FileState.ResultSetCount resultSetCount
public ClarionKey scanKey
public ClarionObject[] scanFields
public ClarionObject quickScanBuffer
public ClarionKey primaryKey
public ClarionObject[] primaryKeyFields
public SharedOutputStream position
public boolean ignoreChange
public ClarionObject[] watchBuffer
public boolean watchArmed
public ClarionMemoryChangeListener[] listeners
public java.lang.StringBuilder select
public int limit
public int currentLimit
public int readCount
public int offset
public boolean keyBinding
public boolean isBounded
public boolean disableBinding
public boolean quickScan
public boolean quickScanResetActivated
| Constructor Detail |
|---|
public FileState(FileState base)
public FileState()
public FileState(FileState.Global global)
| Method Detail |
|---|
public void closeCursor()
public void closeCursor(boolean clearKeyAndPosition)
public void closeCursor(boolean clearKeyAndPosition,
boolean clearMode)
public void free()
public FileState save()
public void saveBuffer(SharedOutputStream target)
public void restore(FileState save)
public void setLimit(int limit)
public void setKeyBinding(boolean b)
public int getFieldIndex(ClarionObject o)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||