|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectFairCom.CtreeDb.CTBase
FairCom.CtreeDb.CTTable
public class CTTable
Objects of the CTTable class are used to manage tables. One table may belong to several databases, and a database may have multiple tables. The table may have any number of fields. It uses CTBase as the base class, and implements the constructor/destructor allocating/freeing memory to the table operations.
CTBase,
CTSession,
CTDatabase,
CTRecord| Field Summary |
|---|
| Fields inherited from class FairCom.CtreeDb.CTBase |
|---|
m_handle |
| Constructor Summary | |
|---|---|
CTTable(CTDatabase Handle)
Creates a new CTTable object |
|
CTTable(CTSession Handle)
Creates a new CTTable object |
|
| Method Summary | |
|---|---|
CTField |
AddField(java.lang.String Name,
int Type,
int Length)
Adds a new field to table |
CTIndex |
AddIndex(java.lang.String Name,
int KeyType,
boolean AllowDuplicates,
boolean NullFlag)
Add a new index to the table |
CTSegment |
AddSegment(CTIndex Index,
CTField Field,
int SegMode)
Add a new segment to an index |
CTSegment |
AddSegment(CTIndex Index,
int FieldNumber,
int SegMode)
Add a new segment to an index |
CTSegment |
AddSegment(CTIndex Index,
int offset,
int length,
int SegMode)
Add a new segment to an index |
CTSegment |
AddSegment(CTIndex pIndex,
java.lang.String FieldName,
int SegMode)
Add a new segment to an index |
CTSegment |
AddSegment(int IndexNbr,
CTField Field,
int SegMode)
Add index segment |
CTSegment |
AddSegment(int IndexNbr,
int FieldNbr,
int SegMode)
Add a new segment to an index |
CTSegment |
AddSegment(int IndexNbr,
java.lang.String FieldName,
int SegMode)
Add a new segment to an index |
CTSegment |
AddSegment(java.lang.String IndexName,
CTField Field,
int SegMode)
Add index segment |
CTSegment |
AddSegment(java.lang.String IndexName,
int FieldNumber,
int SegMode)
Add index segment |
CTSegment |
AddSegment(java.lang.String IndexName,
java.lang.String FieldName,
int SegMode)
Add index segment |
void |
Alter(int Action)
Perform alter table functions |
void |
ClearAllFieldDefaultValue()
Clear the default value associated with all fields in a table. |
void |
Close()
Closes a table |
void |
Create(java.lang.String Name,
int CreateMode)
Creates a new table |
void |
DeleteField(int FieldNumber)
Deletes a field from the table |
void |
DeleteField(java.lang.String FieldName)
Deletes a field from the table |
void |
DelIndex(int IndexNumber)
Delete an index from a table |
void |
DelIndex(java.lang.String IndexName)
Delete an index from a table |
void |
DelSegment(int IndexNumber,
int SegNumber)
Delete an existing segment |
void |
DelSegment(java.lang.String IndexName,
int SegNumber)
Delete index segment |
void |
FilterRecord(java.lang.String cndexpr)
Set or clear record filter condition. |
void |
finalize()
Destroy an allocated CTTable object |
java.lang.String |
GetCndxIndex(int Indexnbr)
Retrieve the conditional index String |
java.lang.String |
GetCndxIndex(java.lang.String indexname)
Retrieve the conditional index String |
int |
GetCreateMode()
Retrieves the table create mode |
int |
GetDataDefaultExtentSize()
Retrieves the c-tree data file default extent size |
java.lang.String |
GetDataExtension()
Gets the data file name extension. |
int |
GetDatno()
Retrieve the table datno. |
char |
GetDlmChar()
Retrieve the table field delimiter characters. |
CTField |
GetField(int FieldNumber)
Retrieves a field by its number |
CTField |
GetField(java.lang.String FieldName)
Retrieves a field by its name |
int |
GetFieldCount()
Retrieves the number of fields in the table |
int |
GetFieldNumber(java.lang.String FieldName)
Retrieves the field number from a table, given its field name. |
java.lang.String |
GetFilter()
retrieves the current filter expression for the table |
java.lang.String |
GetGroupid()
Retrieves the table group id |
int |
GetIdxno(int Index)
Retrieve the index file number given the index c-treeDB number. |
int |
GetIdxno(java.lang.String IndexName)
Retrieve the index file number given the index name. |
CTIndex |
GetIndex(int IndexNumber)
Retrieve an index handle |
CTIndex |
GetIndex(java.lang.String name)
Retrieve the index given its name |
CTIndex |
GetIndexByUID(int uid)
Retrieve an index object given its UID |
int |
GetIndexCount()
Retrieves the number of table indices |
int |
GetIndexDefaultExtentSize()
Retrieves the c-tree index file default extent size |
java.lang.String |
GetIndexExtension()
Gets the index file name extension. |
java.lang.String |
GetIndexFilename(int IndexNumber)
Retrieve the index name |
java.lang.String |
GetIndexFilename(java.lang.String IndexName)
Retrieve the index file name |
java.lang.String |
GetName()
Gets the table name, without the name extension |
int |
GetOpenMode()
Retrieves the table open mode |
java.lang.String |
GetOwner()
Retrieve the table owner. |
char |
GetPadChar()
Retrieve the table pad character. |
java.lang.String |
GetPassword()
Retrieves the table password |
java.lang.String |
GetPath()
Gets the table path |
int |
GetPermission()
Retrieves the table permission mask. |
CTSegment |
GetSegment(CTIndex Index,
int SegNumber)
Get an index segment handle |
int |
GetStatus()
Retrieve table status. |
boolean |
HasDelField()
Indicate if a table has the $DELFLD$ internal field. |
boolean |
HasNullFieldSupport()
Indicates if a table has null field support |
boolean |
HasRecbyt()
Indicate if a table was created with recbyt index |
boolean |
HasRowid()
Indicate if a table was created with rowid index |
CTField |
InsertField(int BeforeField,
java.lang.String Name,
int Type,
int Length)
Inserts a new field into the table, in the specified position |
CTField |
InsertField(java.lang.String BeforeField,
java.lang.String Name,
int Type,
int Length)
Inserts a new field into the table, in the specified position |
CTSegment |
InsertSegment(CTIndex Index,
int BeforeSegment,
CTField Field,
int SegMode)
Insert a new segment |
CTSegment |
InsertSegment(CTIndex Index,
int BeforeSegment,
int FieldNumber,
int SegMode)
Insert a new segment |
CTSegment |
InsertSegment(CTIndex Index,
int BeforeSegment,
int offset,
int length,
int SegMode)
Insert a new segment |
CTSegment |
InsertSegment(CTIndex Index,
int BeforeSegment,
java.lang.String FieldName,
int SegMode)
Insert a new segment |
CTSegment |
InsertSegment(int IndexNbr,
int BeforeSegment,
CTField Field,
int SegMode)
Insert a new segment |
CTSegment |
InsertSegment(int IndexNbr,
int BeforeSegment,
int FieldNumber,
int SegMode)
Insert a new segment |
CTSegment |
InsertSegment(int IndexNbr,
int BeforeSegment,
java.lang.String FieldName,
int SegMode)
Insert a new segment |
CTSegment |
InsertSegment(java.lang.String IndexName,
int BeforeSegment,
CTField Field,
int SegMode)
Insert a new segment |
CTSegment |
InsertSegment(java.lang.String IndexName,
int BeforeSegment,
int FieldNumber,
int SegMode)
Insert a new segment |
CTSegment |
InsertSegment(java.lang.String IndexName,
int BeforeSegment,
java.lang.String FieldName,
int SegMode)
Insert a new segment |
boolean |
IsActive()
Check if a table is active. |
boolean |
IsFilteredRecord()
Check if a table has a record filter active. |
void |
MoveField(int FieldNumber,
int newNumber)
Moves the field from one position to another position in the same table |
void |
MoveField(java.lang.String FieldName,
int newNumber)
Moves the field from one position to another position in the same table |
void |
MoveSegment(CTIndex hIndex,
int segNumber,
int newIndex)
Move a segment to another location. |
void |
MoveSegment(int indexNumber,
int segNumber,
int newIndex)
Move a segment to another location. |
void |
MoveSegment(java.lang.String indexName,
int segNumber,
int newIndex)
Move a segment to another location. |
long |
NumberOfKeyEntries(int index)
Retrieve the number of key entries in a index file. |
long |
NumberOfKeyEntries(java.lang.String indexName)
Retrieve the number of key entries in a index file. |
void |
Open(java.lang.String Name,
int OpenMode)
Opens an existing table |
int |
PartAdminByName(java.lang.String PartName,
int PartMode)
Perform a partition operation on the partition specified by name |
int |
PartAdminByNumber(int Prawno,
int PartMode)
Perform a partition operation on the partition specified by raw partition number |
void |
Rebuild(int Mode)
Build data and index files. |
void |
Remove()
Delete a table. |
void |
ResetAll()
Reset all active record buffers associated with table |
void |
SetDataDefaultExtentSize(int size)
Sets the c-tree data file default extent size |
void |
SetDataExtension(java.lang.String Ext)
Sets the table data extesion |
void |
SetGroupid(java.lang.String Groupid)
Sets the table group id |
void |
SetIdentityField(java.lang.String FieldName,
long Seed,
long Increment)
Sets the identity field |
void |
SetIndexDefaultExtentSize(int size)
Sets the c-tree index file default extent size |
void |
SetIndexExtension(java.lang.String Ext)
Sets the table index extesion |
void |
SetIndexFilename(int IndexNumber,
java.lang.String Path,
java.lang.String Filename)
Set the index filename. |
void |
SetIndexFilename(java.lang.String IndexName,
java.lang.String Path,
java.lang.String Filename)
Set the index file name |
void |
SetOwner(java.lang.String owner)
Set the table owner. |
void |
SetPadChar(char Padchar,
char Dlmchar)
Set the table pad and field delimiter characters in the table handle. |
void |
SetPassword(java.lang.String Password)
Sets the table password |
void |
SetPath(java.lang.String Path)
Sets the table path |
void |
SetPermission(int Permmask)
Sets the table permission mask |
void |
UnlockTable()
Release all record locks, obtained with LockRecord(), associated with the table. |
void |
UpdateCndxIndex(int indexnbr,
java.lang.String cndexpr)
Add, modify or delete conditional index. |
void |
UpdateCndxIndex(java.lang.String Indexname,
java.lang.String Cndexpr)
Add, modify or delete conditional index. |
void |
UpdateCreateMode(int mode)
Update the table create mode |
void |
UpdatePadChar(char Padchar,
char Dmlchar,
boolean Rebuild)
Update the table pad and delimiter character resource. |
| Methods inherited from class FairCom.CtreeDb.CTBase |
|---|
Abort, Begin, Commit, GetAutoCommit, GetHandle, GetKeepLock, GetLockMode, GetOperation, GetTransactionMode, IsLockActive, IsTransActive, IsUnicodeLib, Lock, RestoreSavePoint, SetAutoCommit, SetHandle, SetKeepLock, SetOperation, SetSavePoint, SetTransactionMode, Unlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CTTable(CTDatabase Handle)
throws CTException
This is the constructor for the CTTable class
Handle - Database handle for wich the CTTable is created
CTExceptionfinalize()
public CTTable(CTSession Handle)
throws CTException
This is the constructor for the CTTable class
Handle - Database handle for wich the CTTable is created
CTExceptionfinalize()| Method Detail |
|---|
public void finalize()
This method should be called in order to avoid memory leaks. Release all resources associated with a table
finalize in class java.lang.Object
public void Open(java.lang.String Name,
int OpenMode)
throws CTException
Name - Table nameOpenMode - Open table mode. Valid values:
OPEN_MODE.NORMAL
OPEN_MODE.EXCLUSIVE
OPEN_MODE.PERMANENT
OPEN_MODE.CORRUPT
OPEN_MODE.CHECKLOCK
OPEN_MODE.CHECKREAD
OPEN_MODE.READONLY
OPEN_MODE.DATAONLY
CTExceptionGetOpenMode(),
Create(java.lang.String, int),
Close()
public void Close()
throws CTException
CTExceptionOpen(java.lang.String, int)public boolean IsActive()
Open(java.lang.String, int)
public java.lang.String GetName()
throws CTException
CTExceptionGetPath(),
GetOpenMode(),
GetPassword(),
GetPermission()public java.lang.String GetPath()
SetPath(java.lang.String)
public java.lang.String GetDataExtension()
throws CTException
CTExceptionSetDataExtension(java.lang.String),
GetIndexExtension()
public java.lang.String GetIndexExtension()
throws CTException
CTExceptionSetIndexExtension(java.lang.String),
GetDataExtension()public int GetOpenMode()
Open(java.lang.String, int),
GetOpenMode(),
Create(java.lang.String, int)public int GetCreateMode()
Create(java.lang.String, int),
Open(java.lang.String, int)public int GetDataDefaultExtentSize()
SetIndexDefaultExtentSize(int),
GetDataDefaultExtentSize()public int GetIndexDefaultExtentSize()
SetIndexDefaultExtentSize(int),
GetDataDefaultExtentSize()public java.lang.String GetPassword()
SetPassword(java.lang.String),
GetName(),
GetPath(),
GetGroupid(),
GetPermission()public java.lang.String GetGroupid()
SetPassword(java.lang.String),
GetName(),
GetPath(),
GetGroupid(),
GetPermission()public int GetPermission()
SetPassword(java.lang.String),
GetName(),
GetPath(),
GetGroupid(),
GetPassword()
public void SetPath(java.lang.String Path)
throws CTException
Path - New table path value
CTExceptionGetPath(),
SetDataExtension(java.lang.String),
SetIndexExtension(java.lang.String)
public void SetDataExtension(java.lang.String Ext)
throws CTException
Ext - New table data extesion
CTExceptionGetDataExtension(),
SetIndexExtension(java.lang.String),
GetPath()
public void SetIndexExtension(java.lang.String Ext)
throws CTException
Ext - New index data extesion
CTExceptionGetIndexExtension(),
SetPath(java.lang.String),
SetDataExtension(java.lang.String)
public void SetDataDefaultExtentSize(int size)
throws CTException
Each time the data file needs to be extended, it will use this value to extent the file. If not changed by SetDataDefaultExtentSize(), this value is 8192 bytes
size - New default data extent size
CTExceptionGetDataDefaultExtentSize(),
SetIndexDefaultExtentSize(int)
public void SetIndexDefaultExtentSize(int size)
throws CTException
Each time the index file needs to be extended, it will use this value to extent the file. If not changed by SetDataDefaultExtentSize(), this value is 8192 bytes
size - New default index extent size
CTExceptionGetIndexDefaultExtentSize(),
SetDataDefaultExtentSize(int)
public void SetPassword(java.lang.String Password)
throws CTException
Password - New table password
CTExceptionGetPassword(),
SetGroupid(java.lang.String),
SetPermission(int)
public void SetGroupid(java.lang.String Groupid)
throws CTException
Groupid - New table group id
CTExceptionGetGroupid(),
SetPassword(java.lang.String),
SetPermission(int)
public void SetPermission(int Permmask)
throws CTException
Permmask - New table permission mask
CTExceptionGetPermission(),
SetPassword(java.lang.String),
SetGroupid(java.lang.String)
public void Create(java.lang.String Name,
int CreateMode)
throws CTException
Before the table creation, it must be defined with AddField(), and optionally with AddIndex() and AddSegment()
Name - Table nameCreateMode - Create table mode. Valid values:
CREATE_MODE.NORMAL
CREATE_MODE.PREIMG
CREATE_MODE.TRNLOG
CREATE_MODE.WRITETHRU
CREATE_MODE.CHECKLOCK
CREATE_MODE.VRLEN
CREATE_MODE.NORECBYT
CREATE_MODE.NOROWID
CREATE_MODE.CHECKREAD
CREATE_MODE.HUGEFILE
CREATE_MODE.NODELFLD
CREATE_MODE.NONULFLD
Use the static members of CREATE_MODE to pass the values
CTExceptionAddField(java.lang.String, int, int),
GetCreateMode(),
Open(java.lang.String, int)public int GetFieldCount()
AddField(java.lang.String, int, int),
DeleteField(java.lang.String),
InsertField(java.lang.String, java.lang.String, int, int),
GetFieldNumber(java.lang.String),
GetIndexCount()
public CTField AddField(java.lang.String Name,
int Type,
int Length)
throws CTException
Name - New field nameType - New field typeLength - New field length
CTExceptionInsertField(java.lang.String, java.lang.String, int, int),
DeleteField(java.lang.String),
GetField(java.lang.String),
AddIndex(java.lang.String, int, boolean, boolean)
public CTField InsertField(int BeforeField,
java.lang.String Name,
int Type,
int Length)
throws CTException
BeforeField - Insert the new field before this field numberName - New field nameType - New field type use the static members of FIELD_TYPE classLength - New field length
CTExceptionAddField(java.lang.String, int, int),
DeleteField(java.lang.String),
GetField(java.lang.String),
GetFieldNumber(java.lang.String)
public CTField InsertField(java.lang.String BeforeField,
java.lang.String Name,
int Type,
int Length)
throws CTException
BeforeField - Insert the new field before this field nameName - New field nameType - New field type use the static members of FIELD_TYPE classLength - New field length
CTExceptionAddField(java.lang.String, int, int),
DeleteField(java.lang.String),
GetField(java.lang.String),
GetFieldNumber(java.lang.String)
public void DeleteField(int FieldNumber)
throws CTException
FieldNumber - Field number to be deleted
CTExceptionAddField(java.lang.String, int, int),
InsertField(java.lang.String, java.lang.String, int, int),
GetField(java.lang.String),
GetFieldNumber(java.lang.String)
public void DeleteField(java.lang.String FieldName)
throws CTException
FieldName - Field name to be deleted
CTExceptionAddField(java.lang.String, int, int),
InsertField(java.lang.String, java.lang.String, int, int),
GetField(java.lang.String),
GetFieldNumber(java.lang.String)
public void MoveField(int FieldNumber,
int newNumber)
throws CTException
FieldNumber - Field number to be movednewNumber - New field number in the table
CTExceptionAddField(java.lang.String, int, int),
InsertField(java.lang.String, java.lang.String, int, int),
GetField(java.lang.String),
DeleteField(java.lang.String)
public void MoveField(java.lang.String FieldName,
int newNumber)
throws CTException
FieldName - Field name to be movednewNumber - New field number in the table
CTExceptionAddField(java.lang.String, int, int),
InsertField(java.lang.String, java.lang.String, int, int),
GetField(java.lang.String),
DeleteField(java.lang.String)
public CTField GetField(int FieldNumber)
throws CTException
FieldNumber - Field number to be retrieved
CTExceptionAddField(java.lang.String, int, int),
InsertField(java.lang.String, java.lang.String, int, int),
GetFieldNumber(java.lang.String),
DeleteField(java.lang.String)
public CTField GetField(java.lang.String FieldName)
throws CTException
FieldName - Field name to be retrieved
CTExceptionAddField(java.lang.String, int, int),
InsertField(java.lang.String, java.lang.String, int, int),
GetFieldNumber(java.lang.String),
DeleteField(java.lang.String)
public int GetFieldNumber(java.lang.String FieldName)
throws CTException
FieldName - Field name to be retrieved
CTExceptionAddField(java.lang.String, int, int),
InsertField(java.lang.String, java.lang.String, int, int),
GetFieldNumber(java.lang.String),
DeleteField(java.lang.String)public int GetIndexCount()
AddIndex(java.lang.String, int, boolean, boolean),
GetFieldCount()
public CTIndex AddIndex(java.lang.String Name,
int KeyType,
boolean AllowDuplicates,
boolean NullFlag)
throws CTException
KeyType - the key type, sue the static mebers of KEY_TYPE classAllowDuplicates - boolean indicating if index allow duplicate keysNullFlag - boolean indicating if index allow null keys
CTException
public void DelIndex(int IndexNumber)
throws CTException
IndexNumber - The number of the index to delete
CTException
public void DelIndex(java.lang.String IndexName)
throws CTException
IndexName - The name of the index to delete
CTException
public CTIndex GetIndex(int IndexNumber)
throws CTException
IndexNumber - the number of the index in the table
CTException
public CTIndex GetIndex(java.lang.String name)
throws CTException
name - Index name
CTException
public CTSegment AddSegment(CTIndex Index,
CTField Field,
int SegMode)
throws CTException
Index - Index class pointerField - Field to compose the index segmentSegMode - Segment mode
CTException
public CTSegment AddSegment(CTIndex pIndex,
java.lang.String FieldName,
int SegMode)
throws CTException
pIndex - Index class pointerFieldName - Name of field to compose the index segmentSegMode - Segment mode
CTException
public CTSegment AddSegment(CTIndex Index,
int FieldNumber,
int SegMode)
throws CTException
Index - Index class pointerFieldNumber - Number of field to compose the index segmentSegMode - Segment mode
CTException
public CTSegment AddSegment(CTIndex Index,
int offset,
int length,
int SegMode)
throws CTException
Index - Index class pointeroffset - Absolute byte offsetlength - Segment length in bytesSegMode - Segment mode
CTException
public CTSegment AddSegment(int IndexNbr,
int FieldNbr,
int SegMode)
throws CTException
IndexNbr - Index numberFieldNbr - Field numberSegMode - Segment mode
CTException
public CTSegment AddSegment(int IndexNbr,
java.lang.String FieldName,
int SegMode)
throws CTException
IndexNbr - Index numberFieldName - Field nameSegMode - Segment mode
CTException
public CTSegment InsertSegment(CTIndex Index,
int BeforeSegment,
CTField Field,
int SegMode)
throws CTException
Index - Index handle returned by AddIndex.BeforeSegment - Insert the segment before this segmentField - Field classSegMode - Segment mode
CTException
public CTSegment InsertSegment(CTIndex Index,
int BeforeSegment,
java.lang.String FieldName,
int SegMode)
throws CTException
Index - Index handle returned by AddIndex.BeforeSegment - Insert the segment before this segmentFieldName - Field nameSegMode - Segment mode
CTException
public CTSegment InsertSegment(CTIndex Index,
int BeforeSegment,
int FieldNumber,
int SegMode)
throws CTException
Index - Index handle returned by AddIndex.BeforeSegment - Insert the segment before this segmentFieldNumber - Field numberSegMode - Segment mode
CTException
public CTSegment InsertSegment(CTIndex Index,
int BeforeSegment,
int offset,
int length,
int SegMode)
throws CTException
Index - Index handle returned by AddIndex.BeforeSegment - Insert the segment before this segmentoffset - Segment absolute offsetlength - Segment length in bytesSegMode - Segment mode
CTException
public CTSegment InsertSegment(int IndexNbr,
int BeforeSegment,
int FieldNumber,
int SegMode)
throws CTException
IndexNbr - Index numberBeforeSegment - Insert the segment before this segmentFieldNumber - Field numberSegMode - Segment mode
CTException
public CTSegment InsertSegment(int IndexNbr,
int BeforeSegment,
java.lang.String FieldName,
int SegMode)
throws CTException
IndexNbr - Index numberBeforeSegment - Insert the segment before this segmentFieldName - Field nameSegMode - Segment mode
CTException
public void DelSegment(int IndexNumber,
int SegNumber)
throws CTException
IndexNumber - The number of the index to changeSegNumber - The number of the segment to delete
Returns: none
CTException
public CTSegment GetSegment(CTIndex Index,
int SegNumber)
throws CTException
Index - Index handle pointerSegNumber - Segment number
CTException
public void Alter(int Action)
throws CTException
Action - The alter table action to take, use the ALTER_TABLE static members
CTException
public void ResetAll()
throws CTException
CTExceptionpublic boolean HasNullFieldSupport()
public CTIndex GetIndexByUID(int uid)
throws CTException
uid - Index uid
CTException
public CTSegment AddSegment(int IndexNbr,
CTField Field,
int SegMode)
throws CTException
IndexNbr - Index numberField - Field objectSegMode - Segment mode
CTException
public CTSegment AddSegment(java.lang.String IndexName,
java.lang.String FieldName,
int SegMode)
throws CTException
IndexName - Index nameFieldName - Field nameSegMode - Segment mode
CTException
public CTSegment AddSegment(java.lang.String IndexName,
int FieldNumber,
int SegMode)
throws CTException
IndexName - Index NameFieldNumber - Field NameSegMode - Segment Mode
CTException
public CTSegment AddSegment(java.lang.String IndexName,
CTField Field,
int SegMode)
throws CTException
IndexName - Index nameField - The field objectSegMode - Segment Mode
CTException
public CTSegment InsertSegment(java.lang.String IndexName,
int BeforeSegment,
java.lang.String FieldName,
int SegMode)
throws CTException
IndexName - The name of the index.BeforeSegment - Insert the segment before this segmentFieldName - Field nameSegMode - Segment mode
CTException
public CTSegment InsertSegment(java.lang.String IndexName,
int BeforeSegment,
int FieldNumber,
int SegMode)
throws CTException
IndexName - The name of the index.BeforeSegment - Insert the segment before this segmentFieldNumber - Field numberSegMode - Segment mode
CTException
public CTSegment InsertSegment(java.lang.String IndexName,
int BeforeSegment,
CTField Field,
int SegMode)
throws CTException
IndexName - The name of the index.BeforeSegment - Insert the segment before this segmentField - Field classSegMode - Segment mode
CTException
public CTSegment InsertSegment(int IndexNbr,
int BeforeSegment,
CTField Field,
int SegMode)
throws CTException
IndexNbr - Index numberBeforeSegment - Insert the segment before this segmentField - Field classSegMode - Segment mode
CTException
public void DelSegment(java.lang.String IndexName,
int SegNumber)
throws CTException
IndexName - The name of the indexSegNumber - Segment number
CTExceptionpublic boolean HasRecbyt()
: none
public boolean HasRowid()
public void UnlockTable()
throws CTException
CTException
public void UpdateCndxIndex(int indexnbr,
java.lang.String cndexpr)
throws CTException
indexnbr - The number of the indexcndexpr - index conditional expression
CTException
public void UpdateCndxIndex(java.lang.String Indexname,
java.lang.String Cndexpr)
throws CTException
Indexname - The name of the indexCndexpr - index conditional expression
CTException
public java.lang.String GetCndxIndex(int Indexnbr)
throws CTException
Indexnbr - index number
CTException
public java.lang.String GetCndxIndex(java.lang.String indexname)
throws CTException
indexname - index name
CTException
public void FilterRecord(java.lang.String cndexpr)
throws CTException
cndexpr - Conditional expression used to filter the records. Pass an
empty String to switch off the filter state.
CTException
public boolean IsFilteredRecord()
throws CTException
CTExceptionFilterRecord(java.lang.String)
public java.lang.String GetFilter()
throws CTException
CTException
public void UpdateCreateMode(int mode)
throws CTException
mode - New table create mode
CREATE_MODE.NORMAL
CREATE_MODE.PREIMG
CREATE_MODE.TRNLOG
CREATE_MODE.WRITETHRU
CREATE_MODE.CHECKLOCK
CREATE_MODE.VRLEN
CREATE_MODE.NORECBYT
CREATE_MODE.NOROWID
CREATE_MODE.CHECKREAD
CREATE_MODE.HUGEFILE
CREATE_MODE.NODELFLD
CREATE_MODE.NONULFLD
Mapped in the static members of CREATE_MODE class.
CTExceptionCreate(java.lang.String, int),
GetOpenMode()
public char GetPadChar()
throws CTException
CTException
public char GetDlmChar()
throws CTException
CTException
public void SetPadChar(char Padchar,
char Dlmchar)
throws CTException
Padchar - Pad characterDlmchar - Field delimiter character
CTException
public void UpdatePadChar(char Padchar,
char Dmlchar,
boolean Rebuild)
throws CTException
Padchar - New pad characterDmlchar - New field delimiter characterRebuild - Indicate if the table should be rebuild. If rebuild is set to
true, every record is read and the fixed String fields
(CT_FSTRING) are padded according to new padding strategy.
CTExceptionpublic boolean HasDelField()
public void SetIndexFilename(int IndexNumber,
java.lang.String Path,
java.lang.String Filename)
throws CTException
IndexNumber - Number of index to set the namePath - Index path. If NULL use the table path.Filename - index file name. If NULL use the table name.
CTException
public void SetIndexFilename(java.lang.String IndexName,
java.lang.String Path,
java.lang.String Filename)
throws CTException
IndexName - Name of indexPath - Index path. If NULL use the table path.Filename - index file name. If NULL use the table name.
CTException
public java.lang.String GetIndexFilename(int IndexNumber)
throws CTException
IndexNumber - Index number
CTException
public java.lang.String GetIndexFilename(java.lang.String IndexName)
throws CTException
IndexName - Index Name
CTException
public int GetDatno()
throws CTException
CTException
public int GetIdxno(int Index)
throws CTException
Index - c-treeDB index number. The first index number is zero.
CTException
public int GetIdxno(java.lang.String IndexName)
throws CTException
IndexName - Index name.
CTException
public void Remove()
throws CTException
CTException
public void ClearAllFieldDefaultValue()
throws CTException
CTExceptionpublic int GetStatus()
public java.lang.String GetOwner()
public void SetOwner(java.lang.String owner)
throws CTException
owner - table owner. If owner is an empty string the table owner will
be cleared.
Returns: none
CTException
public void Rebuild(int Mode)
throws CTException
Mode - Use one of the static members of REBUILD_MODE class to
indicate the rebuild mode.
CTException
public void MoveSegment(CTIndex hIndex,
int segNumber,
int newIndex)
throws CTException
hIndex - Index object representing whose segment is being moved.segNumber - Number of segment being movednewIndex - New index position where the segment is to be moved to.
.
CTException
public void MoveSegment(int indexNumber,
int segNumber,
int newIndex)
throws CTException
indexNumber - Number of index whose segment is being moved.segNumber - Number of segment being movednewIndex - New index position where the segment is to be moved to.
.
CTException
public void MoveSegment(java.lang.String indexName,
int segNumber,
int newIndex)
throws CTException
indexName - Name of index whose segment is being moved.segNumber - Number of segment being movednewIndex - New index position where the segment is to be moved to.
.
CTException
public int PartAdminByName(java.lang.String PartName,
int PartMode)
throws CTException
PartName - the name of the partitionPartMode - the partition mode indicating the operation to perform
CTException
public int PartAdminByNumber(int Prawno,
int PartMode)
throws CTException
Prawno - the raw number of the partitionPartMode - the partition mode indicating the operation to perform
CTException
public void SetIdentityField(java.lang.String FieldName,
long Seed,
long Increment)
throws CTException
FieldName - Field name to be changed to identitySeed - Identity seed valueIncrement - Identity increment value
CTException
public long NumberOfKeyEntries(int index)
throws CTException
index - the index number. The first index number is zero.
CTException
public long NumberOfKeyEntries(java.lang.String indexName)
throws CTException
indexName - the index name that will be used to retrieve the number of key
entries.
CTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||