|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Table
A Table is a data table in a database.
| Method Summary | |
|---|---|
int |
delete(FieldValue[] fields)
Delete a record from the table. |
int |
delete(java.lang.String whereClause)
Delete records from the table. |
Fields |
fields()
Retrieves the fields container of this table. |
Field |
fields(int index)
Gets the Field that specified by index. |
Field |
fields(java.lang.String fieldName)
Gets the Field that specified by name. |
Database |
getDatabase()
Retrieves Database of this table. |
java.lang.String |
getExternalDataPath(FieldValue[] fields)
Gets the external data path of a record. |
boolean |
hasExternalData()
Return whether the table has external data. |
int |
insert(FieldValue[] fields)
Insert a record to the table |
int |
insert(java.util.List records)
Insert multiple records to the table |
Recordset |
query(Field[] fields,
java.lang.String whereClause,
boolean distinct)
Return a linked record set by specified columns and conditions. |
Recordset |
query(Field[] fields,
java.lang.String whereClause,
boolean distinct,
int setType)
Return a linked or a cached record set by specified columns and conditions. |
java.lang.Number |
queryAvgValue(java.lang.String field,
java.lang.String whereClause,
boolean distinct)
Equals to "SELECT AVG (colName) FROM table WHERE.." |
int |
queryCountValue(java.lang.String field,
java.lang.String whereClause,
boolean distinct)
Equals to "SELECT COUNT (colName) FROM table WHERE.." |
java.lang.Number |
queryMaxValue(java.lang.String field,
java.lang.String whereClause,
boolean distinct)
Equals to "SELECT MAX (colName) FROM table WHERE.." |
java.lang.Number |
queryMinValue(java.lang.String field,
java.lang.String whereClause,
boolean distinct)
Equals to "SELECT MIN (colName) FROM table WHERE.." |
java.lang.Number |
querySumValue(java.lang.String field,
java.lang.String whereClause,
boolean distinct)
Equals to "SELECT SUM (colName) FROM table WHERE.." |
Uniques |
uniques()
Retrieves the Unique container of this table. |
Unique |
uniques(int index)
Retrieves the Unique that specified by the index. |
Unique |
uniques(java.lang.String unqName)
Retrieves the Unique that specified by the name. |
int |
update(FieldValue[] fields,
java.lang.String whereClause)
Update records of the table. |
| Methods inherited from interface jet.server.api.db.DBObject |
|---|
getName, getProperties, getProperty, getProperty, getUCName, setProperty |
| Method Detail |
|---|
Database getDatabase()
Database of this table.
Database instance.Fields fields()
Fields instance.FieldsField fields(int index)
Field that specified by index.
index - the field index.
Field instance.Field fields(java.lang.String fieldName)
Field that specified by name.
fieldName - the field name.
Field instance.
Recordset query(Field[] fields,
java.lang.String whereClause,
boolean distinct)
throws java.sql.SQLException
fields - the columns want to retrieve.whereClause - the sql where clausedistinct - the sql distinct
Recordset instance.
java.sql.SQLException
Recordset query(Field[] fields,
java.lang.String whereClause,
boolean distinct,
int setType)
throws java.sql.SQLException
fields - the columns want to retrieve.whereClause - the sql where clausedistinct - the sql distinctsetType - record set type, it should be one of
jet.server.api.db.Recordset.LINKED or
jet.server.api.db.Recordset.CACHED
Recordset instance.
java.sql.SQLException
int queryCountValue(java.lang.String field,
java.lang.String whereClause,
boolean distinct)
throws java.sql.SQLException
field - whereClause - distinct -
java.sql.SQLException
java.lang.Number querySumValue(java.lang.String field,
java.lang.String whereClause,
boolean distinct)
throws java.sql.SQLException
field - whereClause - distinct -
java.sql.SQLException
java.lang.Number queryAvgValue(java.lang.String field,
java.lang.String whereClause,
boolean distinct)
throws java.sql.SQLException
field - whereClause - distinct -
java.sql.SQLException
java.lang.Number queryMaxValue(java.lang.String field,
java.lang.String whereClause,
boolean distinct)
throws java.sql.SQLException
field - whereClause - distinct -
java.sql.SQLException
java.lang.Number queryMinValue(java.lang.String field,
java.lang.String whereClause,
boolean distinct)
throws java.sql.SQLException
field - whereClause - distinct -
java.sql.SQLException
int insert(FieldValue[] fields)
throws java.sql.SQLException
fields -
java.sql.SQLException
int insert(java.util.List records)
throws java.sql.SQLException
records -
java.sql.SQLException
int update(FieldValue[] fields,
java.lang.String whereClause)
throws java.sql.SQLException
fields - whereClause -
java.sql.SQLException
int delete(java.lang.String whereClause)
throws java.sql.SQLException
whereClause -
java.sql.SQLException
int delete(FieldValue[] fields)
throws java.sql.SQLException
fields -
java.sql.SQLExceptionboolean hasExternalData()
java.lang.String getExternalDataPath(FieldValue[] fields)
fields -
Uniques uniques()
Unique container of this table.
UniquesUniquesUnique uniques(int index)
Unique that specified by the index.
index -
UniqueUnique uniques(java.lang.String unqName)
Unique that specified by the name.
unqName -
Unique
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||