|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectFairCom.CtreeDb.CTBase
FairCom.CtreeDb.CTField
public class CTField
The CTField class deals with the field concept. The field is the basic component of the table. Any table may be composed of as many fields as one needs. It uses CTBase as the base class, and implements the constructor/destructor allocating/freeing memory to the field operations.
CTBase,
CTTable,
CTRecord,
CTIndex,
CTSegment| Field Summary |
|---|
| Fields inherited from class FairCom.CtreeDb.CTBase |
|---|
m_handle |
| Constructor Summary | |
|---|---|
CTField()
Creates a new CTField Object |
|
CTField(CTField Field)
Creates a new CTField Object |
|
| Method Summary | |
|---|---|
void |
ClearFieldDefaultValue()
Clear the default value associalted with a field. |
void |
CTFieldSetFieldDefaultDateTimeType()
Set the default field value date and time type to be used when converting CT_DATE, CT_TIME and CT_TIMES String values. |
int |
GetCTType()
|
int |
GetFieldDefaultDateType()
Retrieve the default value date type used when converting strings to dates. |
int |
GetFieldDefaultTimeType()
Retrieve the default value time type used when converting String to time. |
java.lang.String |
GetFieldDefaultValue()
Retrieve the current field default value. |
int |
GetLength()
Retrieve the field length |
java.lang.String |
GetName()
Retrieve the field name |
boolean |
GetNullFlag()
Retrieve the field nul flag |
int |
GetNumber()
Retrieve the field position index in the table field list |
int |
GetPrecision()
Retrieve the field precision |
int |
GetScale()
Retrieve the field scale |
int |
GetStatus()
Retrieve the status of a field handle. |
int |
GetType()
Retrieve the field type. |
boolean |
IsFieldDefaultValueSet()
Check if a field default value has been set or not. |
boolean |
IsNumeric()
Indicate if the field represents a numeric value |
void |
SetFieldDefaultDateTimeType(int DateType,
int TimeType)
Set the default field value date and time type to be used when converting CT_DATE, CT_TIME and CT_TIMES String values. |
void |
SetFieldDefaultValue(java.lang.String Value)
Set the field default value. |
void |
SetLength(int FieldLength)
Set Field length |
void |
SetName(java.lang.String FieldName)
Set the field name |
void |
SetNullFlag(boolean flag)
Set Nul Flag |
void |
SetPrecision(int precision)
Set the field precision |
void |
SetScale(int scale)
Set the field scale value |
void |
SetType(int FieldType,
int FieldLength)
Set the field type |
| 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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CTField()
public CTField(CTField Field)
| Method Detail |
|---|
public java.lang.String GetName()
SetName(java.lang.String),
GetType(),
GetLength()public int GetType()
SetType(int, int),
GetName(),
GetLength()public int GetCTType()
public int GetLength()
SetLength(int),
GetPrecision(),
GetScale(),
GetName(),
GetType()
public void SetName(java.lang.String FieldName)
throws CTException
FieldName - The new name for the Field
CTExceptionGetName(),
SetType(int, int),
SetLength(int)
public void SetType(int FieldType,
int FieldLength)
throws CTException
FieldType - The new type for the FieldFieldLength - The new length for the Field
CTExceptionGetType(),
SetName(java.lang.String),
SetLength(int)
public void SetLength(int FieldLength)
throws CTException
FieldLength - The new length for the Field
CTExceptionGetLength(),
SetPrecision(int),
SetScale(int),
SetName(java.lang.String),
SetType(int, int)
public int GetNumber()
throws CTException
CTExceptionGetName(),
GetName()public boolean GetNullFlag()
GetNumber(),
GetName()public int GetPrecision()
SetPrecision(int),
GetLength(),
GetScale()public int GetScale()
SetPrecision(int),
GetLength(),
GetPrecision()
public void SetNullFlag(boolean flag)
throws CTException
flag - new null flag value
CTExceptionGetNullFlag(),
SetPrecision(int),
SetScale(int),
SetName(java.lang.String),
SetType(int, int)
public void SetPrecision(int precision)
throws CTException
precision - precision value
CTExceptionGetPrecision(),
SetNullFlag(boolean),
SetScale(int),
SetName(java.lang.String),
SetType(int, int)
public void SetScale(int scale)
throws CTException
scale - Field scale value
CTExceptionSetScale(int),
SetNullFlag(boolean),
SetPrecision(int),
SetName(java.lang.String),
SetType(int, int)public boolean IsNumeric()
GetType(),
GetLength()
public void SetFieldDefaultValue(java.lang.String Value)
throws CTException
Value - new Field default value
CTExceptionGetFieldDefaultValue(),
ClearFieldDefaultValue(),
SetFieldDefaultDateTimeType(int, int)public java.lang.String GetFieldDefaultValue()
SetFieldDefaultValue(java.lang.String),
ClearFieldDefaultValue(),
SetFieldDefaultDateTimeType(int, int)
public void ClearFieldDefaultValue()
throws CTException
CTExceptionSetFieldDefaultValue(java.lang.String),
ClearFieldDefaultValue(),
SetFieldDefaultDateTimeType(int, int)
public void CTFieldSetFieldDefaultDateTimeType()
throws CTException
CTExceptionSetFieldDefaultValue(java.lang.String),
ClearFieldDefaultValue(),
SetFieldDefaultDateTimeType(int, int)
public void SetFieldDefaultDateTimeType(int DateType,
int TimeType)
throws CTException
DateType - The date type to be used for converting values between
dates and strings. The possible values are:
CTDATE_MDCY - Date format is mm/dd/ccyy
CTDATE_MDY - Date format is mm/dd/yy
CTDATE_DMCY - Date format is dd/mm/ccy
CTDATE_DMY - Date format is dd/mm/yy
CTDATE_CYMD - Date format is ccyymmdd
CTDATE_YMD - Date format is yymmdd
timeType [IN]
The time type to be used for converting values between
time and strings. The possible values are:
CTTIME_HMSP - Time format is hh:mm:ss am or pm
CTTIME_HMP - Time format is hh:mm am or pm
CTTIME_HMS - Time format is hh:mm:ss (24 hour)
CTTIME_HM - Time format is hh:mm (24 hour)
CTTIME_MIL - Time format is hhmm (military)
CTExceptionSetFieldDefaultValue(java.lang.String),
ClearFieldDefaultValue(),
SetFieldDefaultDateTimeType(int, int)public boolean IsFieldDefaultValueSet()
GetFieldDefaultValue(),
ClearFieldDefaultValue(),
SetFieldDefaultDateTimeType(int, int)public int GetFieldDefaultDateType()
GetFieldDefaultTimeType(),
GetFieldDefaultValue(),
ClearFieldDefaultValue(),
SetFieldDefaultValue(java.lang.String)public int GetFieldDefaultTimeType()
GetFieldDefaultDateType(),
GetFieldDefaultValue(),
ClearFieldDefaultValue(),
SetFieldDefaultValue(java.lang.String)public int GetStatus()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||