类 TableImpl
- java.lang.Object
-
- com.mysql.cj.xdevapi.TableImpl
-
- 所有已实现的接口:
DatabaseObject,Table
public class TableImpl extends Object implements Table
Tableimplementation
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.mysql.cj.xdevapi.DatabaseObject
DatabaseObject.DbObjectStatus, DatabaseObject.DbObjectType
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 longcount()Query the number of rows in this table.DeleteStatementdelete()Create a new delete statement.booleanequals(Object other)DatabaseObject.DbObjectStatusexistsInDatabase()Query the existence of this database object.StringgetName()Retrieve the name of the database object represented by the Java object.SchemagetSchema()Retrieve the schema owning this database object.SessiongetSession()Retrieve the session owning the given schema object.inthashCode()InsertStatementinsert()Create an insert statement using the list of all columns in the table.InsertStatementinsert(String... fields)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... projection)Create a new select statement using the given projections.voidsetView(boolean isView)Set flag indicating if the underlying object is a view.StringtoString()UpdateStatementupdate()Create a new update statement.
-
-
-
方法详细资料
-
getSession
public Session getSession()
从接口复制的说明:DatabaseObjectRetrieve the session owning the given schema object.- 指定者:
getSession在接口中DatabaseObject- 返回:
Session
-
getSchema
public Schema getSchema()
从接口复制的说明:DatabaseObjectRetrieve the schema owning this database object.- 指定者:
getSchema在接口中DatabaseObject- 返回:
Schema
-
getName
public String getName()
从接口复制的说明:DatabaseObjectRetrieve the name of the database object represented by the Java object.- 指定者:
getName在接口中DatabaseObject- 返回:
- name
-
existsInDatabase
public DatabaseObject.DbObjectStatus existsInDatabase()
从接口复制的说明:DatabaseObjectQuery the existence of this database object.- 指定者:
existsInDatabase在接口中DatabaseObject- 返回:
DatabaseObject.DbObjectStatus
-
insert
public InsertStatement insert()
从接口复制的说明:TableCreate an insert statement using the list of all columns in the table.- 指定者:
insert在接口中Table- 返回:
InsertStatement
-
insert
public InsertStatement insert(String... fields)
从接口复制的说明:TableCreate an insert statement using the given list columns.- 指定者:
insert在接口中Table- 参数:
fields- one or more projection expressions- 返回:
InsertStatement
-
insert
public InsertStatement insert(Map<String,Object> fieldsAndValues)
从接口复制的说明:TableCreate an insert statement using the given key/value pairs.- 指定者:
insert在接口中Table- 参数:
fieldsAndValues- table name-value pairs- 返回:
InsertStatement
-
select
public SelectStatement select(String... projection)
从接口复制的说明:TableCreate a new select statement using the given projections.- 指定者:
select在接口中Table- 参数:
projection- one or more projection expressions- 返回:
SelectStatement
-
update
public UpdateStatement update()
从接口复制的说明:TableCreate a new update statement.- 指定者:
update在接口中Table- 返回:
UpdateStatement
-
delete
public DeleteStatement delete()
从接口复制的说明:TableCreate a new delete statement.- 指定者:
delete在接口中Table- 返回:
DeleteStatement
-
count
public long count()
从接口复制的说明:TableQuery the number of rows in this table.
-
isView
public boolean isView()
从接口复制的说明:TableCheck if the underlying object is a view or not.
-
setView
public void setView(boolean isView)
Set flag indicating if the underlying object is a view.- 参数:
isView- true if it is a View
-
-