|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Field
A Field is column of a table.
| Field Summary | |
|---|---|
static int |
CALC_AVG
The constant indicates whether the field has AVG calculating mode. |
static int |
CALC_COUNT
The constant indicates whether the field has COUNT calculating mode. |
static int |
CALC_MAX
The constant indicates whether the field has MAX calculating mode. |
static int |
CALC_MIN
The constant indicates whether the field has MIN calculating mode. |
static int |
CALC_NONE
The constant indicates whether the field has a calculating mode. |
static int |
CALC_SUM
The constant indicates whether the field has SUM calculating mode. |
static int |
DefaultAttributes
The constant indicates the default attributes of a Field. |
static int |
ForeignKey
The constant indicates whether the field is a foreign key. |
static int |
Identity
The constant indicates whether the field is an identity field. |
static int |
NotNull
The constant indicates whether the field accepts a NULL value. |
static int |
PrimaryKey
The constant indicates whether the field is a primary key. |
static int |
Truncated
The constant indicates whether the field value will be truncated when it is assigned to a value exceeding its declared maximum column length. |
static int |
Unique
The constant indicates whether the field is unique. |
| Method Summary | |
|---|---|
Field |
createClone()
Clones a Field. |
FieldValue |
createFieldValue()
Creates a FieldValue object and fills it with default value. |
int |
getCalculating()
Gets the calculating mode of a field. |
java.lang.String |
getDispName()
Gets the field's suggested title for display. |
java.lang.String |
getForeignTableName()
Gets the name of the table which is referenced by the foreign key. |
java.lang.String |
getFullyQualifiedName()
Gets the table name plus field name. |
JDBCType |
getJDBCType()
Gets the JDBC type of the field. |
Table |
getParentTable()
Gets the parent table of this field. |
int |
getSize()
Gets the field's string size. |
java.lang.String |
getTableName()
Gets the name of the table containing the field. |
boolean |
isForeignKey()
Judges whether the field is a foreign key. |
boolean |
isIdentity()
Judges whether the field is an identity field. |
boolean |
isNotNull()
Judges whether the field can accept a NULL value. |
boolean |
isPrimaryKey()
Judges whether the field is a primary key. |
boolean |
isTruncated()
Judges whether the field value will be truncated before it was written into database, if the length of the field value exceeds the max length. |
boolean |
isUnique()
Judge whether the field is a unique field. |
| Methods inherited from interface jet.server.api.db.DBObject |
|---|
getName, getProperties, getProperty, getProperty, getUCName, setProperty |
| Field Detail |
|---|
static final int DefaultAttributes
static final int NotNull
NULL value.
static final int Identity
static final int Unique
static final int PrimaryKey
static final int Truncated
jet#server#db#core#FileValueImpl#setValue(),
Constant Field Valuesstatic final int ForeignKey
static final int CALC_NONE
static final int CALC_COUNT
static final int CALC_SUM
static final int CALC_AVG
static final int CALC_MAX
static final int CALC_MIN
| Method Detail |
|---|
Table getParentTable()
JDBCType getJDBCType()
int getSize()
boolean isNotNull()
NULL value.
true if can accept, otherwise return false.boolean isIdentity()
true if it is, otherwise return false.boolean isUnique()
true if it is, otherwise return false.boolean isPrimaryKey()
true if it is, otherwise return false.boolean isTruncated()
true if it will be truncated, otherwise return false.boolean isForeignKey()
true if it is, otherwise return false.int getCalculating()
int which indicates the calculating mode of the field.FieldValue createFieldValue()
FieldValue object and fills it with default value.
FieldValue object.java.lang.String getTableName()
java.lang.String getDispName()
java.lang.String getFullyQualifiedName()
java.lang.String getForeignTableName()
Field createClone()
Field.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||