|
||||||||||
| 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.ClarionBasicFile
public class ClarionBasicFile
| 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 | |
|---|---|
ClarionBasicFile()
|
|
| 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 |
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 akey)
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)
|
int |
getState()
Save state of file to be restored later. |
void |
lock()
Lock file |
void |
next()
Get next record in current sequence |
void |
open(int mode)
Open file in particular mode. |
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. |
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 pos)
Set sequentual record processing starting at position |
void |
setNulls(ClarionString nulls)
Restore encoding of status of nulls used by SQL files |
void |
stream()
Set output write caching on a file. |
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, duplicateCheck, functionCalled, functionDone, getBytes, getFileProperty, getFileState, getKey, getKey, getKeys, getName, getPosition, getPrimaryKey, getPrimaryKeyPosition, getProperty, getProperty, getProperty, getProperty, getSQLType, initThread, isPositionMatches, logout, open, reget, registerCallback, removeKey, removeKeys, reset, rollback, set, setClonedProperty, setClonedProperty, setCreate, setFileProperty, setName, setName, setNoMemo, setNull, setPrimaryKeyPosition, 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 ClarionBasicFile()
| Method Detail |
|---|
public void add()
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 create()
ClarionFile
create 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 void get(ClarionKey akey)
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 etc
public void get(ClarionNumber position,
java.lang.Integer len)
get in class ClarionFilepublic 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 open(int mode)
ClarionFile
open in class ClarionFilepublic void previous()
ClarionFile
previous in class ClarionFilepublic 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 set(int pos)
ClarionFile
set in class ClarionFilepos - position - as returned by position methodpublic 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 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 ClarionFileprotected java.lang.String getDriver()
getDriver in class ClarionFilepublic void add(int size)
ClarionFile
add in class ClarionFile
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||