接口 Table
-
- 所有超级接口:
DatabaseObject
- 所有已知实现类:
TableImpl
public interface Table extends DatabaseObject
A client-side representation of a database table. Provides access to the table through standard INSERT/SELECT/UPDATE/DELETE statements.
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.mysql.cj.xdevapi.DatabaseObject
DatabaseObject.DbObjectStatus, DatabaseObject.DbObjectType
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 longcount()Query the number of rows in this table.DeleteStatementdelete()Create a new delete statement.InsertStatementinsert()Create an insert statement using the list of all columns in the table.InsertStatementinsert(String... projection)Create an insert statement using the given list columns.InsertStatementinsert(Map<String,Object> fieldsAndValues)Create an insert statement using the given key/value pairs.booleanisView()Check if the underlying object is a view or not.SelectStatementselect(String... projections)Create a new select statement using the given projections.UpdateStatementupdate()Create a new update statement.-
从接口继承的方法 com.mysql.cj.xdevapi.DatabaseObject
existsInDatabase, getName, getSchema, getSession
-
-
-
-
方法详细资料
-
insert
InsertStatement insert()
Create an insert statement using the list of all columns in the table.- 返回:
InsertStatement
-
insert
InsertStatement insert(String... projection)
Create an insert statement using the given list columns.- 参数:
projection- one or more projection expressions- 返回:
InsertStatement
-
insert
InsertStatement insert(Map<String,Object> fieldsAndValues)
Create an insert statement using the given key/value pairs.- 参数:
fieldsAndValues- table name-value pairs- 返回:
InsertStatement
-
select
SelectStatement select(String... projections)
Create a new select statement using the given projections.- 参数:
projections- one or more projection expressions- 返回:
SelectStatement
-
update
UpdateStatement update()
Create a new update statement.- 返回:
UpdateStatement
-
delete
DeleteStatement delete()
Create a new delete statement.- 返回:
DeleteStatement
-
count
long count()
Query the number of rows in this table.- 返回:
- Number of rows in this table
-
isView
boolean isView()
Check if the underlying object is a view or not.- 返回:
- true if this Table is a View
-
-