- java.lang.Object
-
- org.jooq.TableOptions
-
- All Implemented Interfaces:
Serializable
public final class TableOptions extends Object implements Serializable
A description of various additionalTable
options to describe the table runtime meta model.- Author:
- Lukas Eder
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TableOptions.OnCommit
TheON COMMIT
flag forTableOptions.TableType.TEMPORARY
tables.static class
TableOptions.TableType
A description of the type of aTable
.
-
Method Summary
-
-
-
Method Detail
-
of
public static final TableOptions of(TableOptions.TableType tableType)
Get a newTableOptions
object for a given table type.
-
table
public static final TableOptions table()
Create a newTableOptions
object for aTableOptions.TableType.TABLE
.
-
temporaryTable
public static final TableOptions temporaryTable()
Create a newTableOptions
object for aTableOptions.TableType.TEMPORARY
.
-
temporaryTable
public static final TableOptions temporaryTable(TableOptions.OnCommit onCommit)
Create a newTableOptions
object for aTableOptions.TableType.TEMPORARY
.
-
view
public static final TableOptions view()
Create a newTableOptions
object for aTableOptions.TableType.VIEW
of unknown content.
-
view
public static final TableOptions view(Select<?> select)
Create a newTableOptions
object for aTableOptions.TableType.VIEW
.
-
view
public static final TableOptions view(String source)
Create a newTableOptions
object for aTableOptions.TableType.VIEW
.
-
materializedView
public static final TableOptions materializedView()
Create a newTableOptions
object for aTableOptions.TableType.MATERIALIZED_VIEW
of unknown content.
-
materializedView
public static final TableOptions materializedView(Select<?> select)
Create a newTableOptions
object for aTableOptions.TableType.MATERIALIZED_VIEW
.
-
expression
public static final TableOptions expression()
Create a newTableOptions
object for aTableOptions.TableType.EXPRESSION
.
-
function
public static final TableOptions function()
Create a newTableOptions
object for aTableOptions.TableType.FUNCTION
.
-
type
public final TableOptions.TableType type()
The table type.This is never
null
.
-
onCommit
public final TableOptions.OnCommit onCommit()
TheON COMMIT
flag forTableOptions.TableType.TEMPORARY
tables.This may be
null
, if it is undefined, or unknown, or if the table is not aTableOptions.TableType.TEMPORARY
table.
-
select
public final Select<?> select()
TheSELECT
statement defining thisTableOptions.TableType.VIEW
orTableOptions.TableType.MATERIALIZED_VIEW
.This may be
null
, if it is undefined, or unknown, or if the table is not a view.
-
source
public final String source()
TheSELECT
statement defining thisTableOptions.TableType.VIEW
orTableOptions.TableType.MATERIALIZED_VIEW
, in source form.This may be
null
, if it is undefined, or unknown, or if the table is not a view.
-
-