public interface Table extends DatabaseObject
DatabaseObject.DbObjectStatus, DatabaseObject.DbObjectType
Modifier and Type | Method | Description |
---|---|---|
long |
count() |
Query the number of rows in this table.
|
DeleteStatement |
delete() |
Create a new delete statement.
|
InsertStatement |
insert() |
Create an insert statement using the list of all columns in the table.
|
InsertStatement |
insert(Map<String,Object> fieldsAndValues) |
Create an insert statement using the given key/value pairs.
|
InsertStatement |
insert(String... projection) |
Create an insert statement using the given list columns.
|
boolean |
isView() |
Check if the underlying object is a view or not.
|
SelectStatement |
select(String... projections) |
Create a new select statement using the given projections.
|
UpdateStatement |
update() |
Create a new update statement.
|
existsInDatabase, getName, getSchema, getSession
InsertStatement insert()
InsertStatement
InsertStatement insert(String... projection)
projection
- one or more projection expressionsInsertStatement
InsertStatement insert(Map<String,Object> fieldsAndValues)
fieldsAndValues
- table name-value pairsInsertStatement
SelectStatement select(String... projections)
projections
- one or more projection expressionsSelectStatement
UpdateStatement update()
UpdateStatement
DeleteStatement delete()
DeleteStatement
long count()
boolean isView()