|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclarion.clarion.ClarionMemoryModel
org.jclarion.clarion.ClarionGroup
org.jclarion.clarion.ClarionFile
org.jclarion.clarion.ClarionSQLFile
public class ClarionSQLFile
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jclarion.clarion.ClarionGroup |
|---|
ClarionGroup.GroupEntry, ClarionGroup.ReferenceVariable |
| Nested classes/interfaces inherited from class org.jclarion.clarion.ClarionMemoryModel |
|---|
ClarionMemoryModel.State |
| Field Summary |
|---|
| Fields inherited from class org.jclarion.clarion.ClarionGroup |
|---|
map |
| Constructor Summary | |
|---|---|
ClarionSQLFile()
|
|
| Method Summary | |
|---|---|
void |
add()
insert new record based on contents of record buffer |
void |
add(int size)
insert new record writing only fixed # of bytes. |
boolean |
bof()
Retrun true if at beginning of file |
void |
buffer(java.lang.Integer pagesize,
java.lang.Integer behind,
java.lang.Integer ahead,
java.lang.Integer timeout)
Set record paging. |
void |
build()
Rebuild key files |
void |
close()
Close a file |
void |
create()
Create new file. |
void |
delete()
Delete current record |
boolean |
duplicateCheck(ClarionKey key)
|
static void |
encodeFilter(FileState fs,
java.lang.StringBuilder target,
java.lang.String name,
int op,
boolean inclusive,
ClarionObject obj,
int type,
java.util.List<java.lang.Object> params,
java.lang.String function)
|
static void |
encodeValue(FileState fs,
java.lang.StringBuilder target,
ClarionObject obj,
int type,
java.util.List<java.lang.Object> params,
java.lang.String function)
|
static void |
encodeValue(java.lang.StringBuilder target,
ClarionObject obj,
int type)
|
boolean |
eof()
Return true if at end of file |
void |
flush()
Flush file buffers. |
void |
freeState(int state)
Free memory held by stored state but do not restore state |
void |
get(ClarionKey key)
Get record based on particular key |
void |
get(ClarionNumber position,
java.lang.Integer len)
|
void |
get(ClarionString pointer,
java.lang.Integer len)
retrieve record based on specified pointer position - previously returned by pointer command. |
protected java.lang.String |
getDriver()
|
ClarionString |
getNulls()
Get encoding of status of nulls used by SQL files |
int |
getPointer()
Get file pointer |
ClarionString |
getPosition(ClarionKey key)
|
ClarionObject[] |
getPrimaryKeyPosition()
|
int |
getState()
Save state of file to be restored later. |
protected boolean |
initWhere(java.lang.StringBuilder sb)
|
void |
iterate(int dir)
|
void |
lock()
Lock file |
void |
next()
Get next record in current sequence |
void |
open(int mode)
Open file in particular mode. |
static void |
optCommit(AbstractJDBCSource source)
|
static void |
optCommit(FileState fs)
|
void |
previous()
Get prior record in current sequence |
void |
put()
Rewrite current record |
int |
records()
Return number of records in file |
void |
reget(ClarionKey key,
ClarionString string)
|
void |
remove()
Delete a file. |
void |
reset(ClarionKey key,
ClarionString string)
|
void |
restoreState(int state)
Restore state. |
boolean |
savePosition(FileState fs,
SharedOutputStream position,
ClarionKey scanKey,
boolean inclusive)
|
boolean |
savePosition(FileState fs,
SharedOutputStream position,
ClarionObject[] obj,
boolean inclusive)
|
void |
send(java.lang.String operator)
Send special command to the file driver |
void |
set(ClarionKey key)
Set key based record processing |
void |
set(int position)
Set sequentual record processing starting at position |
protected void |
setFileProperty(int index,
ClarionObject value)
|
void |
setKeyBinding()
|
void |
setLimit(int limit)
|
void |
setNulls(ClarionString nulls)
Restore encoding of status of nulls used by SQL files |
void |
setPrimaryKeyPosition(ClarionObject[] position)
|
void |
setQuickScan()
|
void |
stream()
Set output write caching on a file. |
boolean |
testWatch()
|
void |
unlock()
Unlock previously locked file |
void |
watch()
Enable optimistic locking. |
| Methods inherited from class org.jclarion.clarion.ClarionFile |
|---|
addKey, clearNull, commit, decodeByteArraySend, decodeCharArraySend, deregisterCallback, disposeFileState, functionCalled, functionDone, getBytes, getFileProperty, getFileState, getKey, getKey, getKeys, getName, getPosition, getPrimaryKey, getProperty, getProperty, getProperty, getProperty, getSQLType, initThread, isPositionMatches, logout, open, reget, registerCallback, removeKey, removeKeys, reset, rollback, set, setClonedProperty, setClonedProperty, setCreate, setName, setName, setNoMemo, setNull, setProperty, setProperty, setProperty, setProperty, setSource, testOpen |
| Methods inherited from class org.jclarion.clarion.ClarionGroup |
|---|
addReference, addVariable, addVariable, clear, clear, deserialize, flatWhat, flatWhere, flatWho, genericLike, getGroupObject, getGroupParam, getGroupParamPosition, getLockedObject, getPrefix, getString, getThread, getVariableCount, merge, serialize, setOver, setOver, setPrefix, setValue, setValue, what, where, who, whoNoPrefix |
| Methods inherited from class org.jclarion.clarion.ClarionMemoryModel |
|---|
addChangeListener, addChangeListener, castTo, getListenerCount, isAnyoneInterestedInChange, isThreaded, lock, notifyChange, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClarionSQLFile()
| Method Detail |
|---|
public void setLimit(int limit)
public void setKeyBinding()
public void add()
ClarionFile
add in class ClarionFilepublic void add(int size)
ClarionFile
add in class ClarionFilepublic boolean bof()
ClarionFile
bof in class ClarionFile
public void buffer(java.lang.Integer pagesize,
java.lang.Integer behind,
java.lang.Integer ahead,
java.lang.Integer timeout)
ClarionFile
buffer in class ClarionFilepublic void build()
ClarionFile
build in class ClarionFilepublic void close()
ClarionFile
close in class ClarionFilepublic void delete()
ClarionFile
delete in class ClarionFilepublic boolean eof()
ClarionFile
eof in class ClarionFilepublic void flush()
ClarionFile
flush in class ClarionFilepublic void freeState(int state)
ClarionFile
freeState in class ClarionFilepublic boolean duplicateCheck(ClarionKey key)
duplicateCheck in class ClarionFilepublic void get(ClarionKey key)
ClarionFile
get in class ClarionFile
public void get(ClarionString pointer,
java.lang.Integer len)
ClarionFile
get in class ClarionFilepointer - - the position to getlen - - the number of bytes to read, for dos drivers etcpublic ClarionString getNulls()
ClarionFile
getNulls in class ClarionFilepublic int getPointer()
ClarionFile
getPointer in class ClarionFilepublic ClarionString getPosition(ClarionKey key)
getPosition in class ClarionFilepublic int getState()
ClarionFile
getState in class ClarionFilepublic void lock()
ClarionFile
lock in class ClarionFilepublic void next()
ClarionFile
next in class ClarionFilepublic void previous()
ClarionFile
previous in class ClarionFilepublic void iterate(int dir)
public ClarionObject[] getPrimaryKeyPosition()
getPrimaryKeyPosition in class ClarionFilepublic void setPrimaryKeyPosition(ClarionObject[] position)
setPrimaryKeyPosition in class ClarionFilepublic void create()
ClarionFile
create in class ClarionFilepublic void open(int mode)
ClarionFile
open in class ClarionFilepublic boolean testWatch()
public void put()
ClarionFile
put in class ClarionFilepublic int records()
ClarionFile
records in class ClarionFile
public void reget(ClarionKey key,
ClarionString string)
reget in class ClarionFilepublic void remove()
ClarionFile
remove in class ClarionFile
public void reset(ClarionKey key,
ClarionString string)
reset in class ClarionFilepublic void restoreState(int state)
ClarionFile
restoreState in class ClarionFilepublic void send(java.lang.String operator)
ClarionFile
send in class ClarionFilepublic void set(ClarionKey key)
ClarionFile
set in class ClarionFilepublic void set(int position)
ClarionFile
set in class ClarionFileposition - position - as returned by position methodpublic void setNulls(ClarionString nulls)
ClarionFile
setNulls in class ClarionFilepublic void stream()
ClarionFile
stream in class ClarionFilepublic void unlock()
ClarionFile
unlock in class ClarionFilepublic void watch()
ClarionFile
watch in class ClarionFile
public static void encodeValue(java.lang.StringBuilder target,
ClarionObject obj,
int type)
public static void encodeFilter(FileState fs,
java.lang.StringBuilder target,
java.lang.String name,
int op,
boolean inclusive,
ClarionObject obj,
int type,
java.util.List<java.lang.Object> params,
java.lang.String function)
public static void encodeValue(FileState fs,
java.lang.StringBuilder target,
ClarionObject obj,
int type,
java.util.List<java.lang.Object> params,
java.lang.String function)
protected boolean initWhere(java.lang.StringBuilder sb)
public boolean savePosition(FileState fs,
SharedOutputStream position,
ClarionKey scanKey,
boolean inclusive)
public boolean savePosition(FileState fs,
SharedOutputStream position,
ClarionObject[] obj,
boolean inclusive)
protected java.lang.String getDriver()
getDriver in class ClarionFile
protected void setFileProperty(int index,
ClarionObject value)
setFileProperty in class ClarionFilepublic void setQuickScan()
public void get(ClarionNumber position,
java.lang.Integer len)
get in class ClarionFilepublic static void optCommit(FileState fs)
public static void optCommit(AbstractJDBCSource source)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||