Top Fields Constructors Methods
org.jooq.impl

pack-priv final Class CreateViewImpl<R extends org.jooq.Record>

extends AbstractDDLQuery
implements CreateViewAsStep<R extends Record>, CreateViewFinalStep, QOM.CreateView<R extends Record>
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.CreateView, org.jooq.DDLQuery, org.jooq.RowCountQuery, org.jooq.Publisher, java.util.concurrent.Flow.Publisher, org.reactivestreams.Publisher, org.jooq.Query, org.jooq.AttachableQueryPart, org.jooq.QueryPart, java.io.Serializable, org.jooq.Attachable, org.jooq.Statement, org.jooq.CreateViewFinalStep, org.jooq.CreateViewAsStep
Static Imports
org.jooq.Clause.CREATE_VIEW, .Clause.CREATE_VIEW_AS, .Clause.CREATE_VIEW_NAME, .SQLDialect.DERBY, .SQLDialect.FIREBIRD, .SQLDialect.MYSQL, .SQLDialect.POSTGRES, .SQLDialect.YUGABYTEDB, org.jooq.conf.ParamType.INLINED, org.jooq.impl.DSL.name, .DSL.selectFrom, .Keywords.K_ALTER, .Keywords.K_AS, .Keywords.K_CREATE, .Keywords.K_IF_NOT_EXISTS, .Keywords.K_OR, .Keywords.K_REPLACE, .Keywords.K_VIEW, .QueryPartListView.wrap, .Tools.EMPTY_FIELD, .Tools.map, .Tools.tryCatch

Deprecated

as a consequence of CreateViewFinalStep being deprecated. See corresponding docs for further information.

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private static final Clause[]
CLAUSES

Deprecated as a consequence of Clause being deprecated.
private final BiFunction<? super Field<?>, ? super Integer, ? extends Field<?>>
private Field<?>[]
fields

Deprecated as a consequence of Field being deprecated.
private final boolean
private static final Set<SQLDialect>
private final boolean
private transient Select<?>
private ResultQuery<?>
private final Table<?>

Constructor Summary

AccessConstructor and Description
pack-priv
CreateViewImpl(Configuration configuration, Table<?> view, Field<?>[] fields, boolean ifNotExists, boolean orReplace)

Deprecated as a consequence of Field being deprecated.
pack-priv
CreateViewImpl(Configuration configuration, Table<?> view, BiFunction<? super Field<?>, ? super Integer, ? extends Field<?>> fieldNameFunction, boolean ifNotExists, boolean orReplace)

Method Summary

Modifier and TypeMethod and Description
public final QOM.UnmodifiableList<? extends Field<?>>
public final boolean
public final boolean
public final ResultQuery<R>
pack-priv final Select<?>
public final Table<?>
public final void
accept(Context<?> ctx)

Implements org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.
private final void
accept0(Context<?> ctx)

public final CreateViewFinalStep
as(Select<? extends R> s)

Implements org.jooq.CreateViewAsStep.as.

Deprecated as a consequence of CreateViewFinalStep being deprecated.
Add an AS clause to the CREATE VIEW statement.
public final CreateViewFinalStep
as(SQL
The SQL
sql
)

Implements org.jooq.CreateViewAsStep.as.

Deprecated as a consequence of CreateViewFinalStep being deprecated.
Add an AS clause to the CREATE VIEW statement.
public final CreateViewFinalStep
as(String
The SQL
sql
)

Implements org.jooq.CreateViewAsStep.as.

Deprecated as a consequence of CreateViewFinalStep being deprecated.
Add an AS clause to the CREATE VIEW statement.
public final CreateViewFinalStep
as(String
The SQL
sql
,
Object... bindings)

Implements org.jooq.CreateViewAsStep.as.

Deprecated as a consequence of CreateViewFinalStep being deprecated.
Add an AS clause to the CREATE VIEW statement.
public final CreateViewFinalStep
as(String
The SQL
sql
,
QueryPart... parts)

Implements org.jooq.CreateViewAsStep.as.

Deprecated as a consequence of CreateViewFinalStep being deprecated.
Add an AS clause to the CREATE VIEW statement.
public final Clause[]
clauses(Context<?> ctx)

Overrides org.jooq.impl.AbstractQueryPart.clauses.

Implements org.jooq.QueryPartInternal.clauses.

Deprecated as a consequence of Clause being deprecated.
The Clauses that are represented by this query part.
private final Select<?>
private final boolean
Inherited from org.jooq.impl.AbstractDDLQuery:
acceptCascade

Field Detail

CLAUSESback to summary
private static final Clause[] CLAUSES

Deprecated

as a consequence of Clause being deprecated. See corresponding docs for further information.

fieldNameFunctionback to summary
private final BiFunction<? super Field<?>, ? super Integer, ? extends Field<?>> fieldNameFunction
fieldsback to summary
private Field<?>[] fields

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

ifNotExistsback to summary
private final boolean ifNotExists
NO_SUPPORT_IF_NOT_EXISTSback to summary
private static final Set<SQLDialect> NO_SUPPORT_IF_NOT_EXISTS
orReplaceback to summary
private final boolean orReplace
parsedback to summary
private transient Select<?> parsed
selectback to summary
private ResultQuery<?> select
viewback to summary
private final Table<?> view

Constructor Detail

CreateViewImplback to summary
pack-priv CreateViewImpl(Configuration configuration, Table<?> view, Field<?>[] fields, boolean ifNotExists, boolean orReplace)

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

CreateViewImplback to summary
pack-priv CreateViewImpl(Configuration configuration, Table<?> view, BiFunction<? super Field<?>, ? super Integer, ? extends Field<?>> fieldNameFunction, boolean ifNotExists, boolean orReplace)

Method Detail

$fieldsback to summary
public final QOM.UnmodifiableList<? extends Field<?>> $fields()

Implements org.jooq.impl.QOM.CreateView.$fields.

Annotations
@Override
$ifNotExistsback to summary
public final boolean $ifNotExists()

Implements org.jooq.impl.QOM.CreateView.$ifNotExists.

Annotations
@Override
$orReplaceback to summary
public final boolean $orReplace()

Implements org.jooq.impl.QOM.CreateView.$orReplace.

Annotations
@Override
$queryback to summary
public final ResultQuery<R> $query()

Implements org.jooq.impl.QOM.CreateView.$query.

Annotations
@Override
$selectback to summary
pack-priv final Select<?> $select()
$viewback to summary
public final Table<?> $view()

Implements org.jooq.impl.QOM.CreateView.$view.

Annotations
@Override
acceptback to summary
public final void accept(Context<?> ctx)

Implements org.jooq.QueryPartInternal.accept.

Doc from org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.

Annotations
@Override
accept0back to summary
private final void accept0(Context<?> ctx)
asback to summary
public final CreateViewFinalStep as(Select<? extends R> s)

Implements org.jooq.CreateViewAsStep.as.

Doc from org.jooq.CreateViewAsStep.as.

Deprecated

as a consequence of CreateViewFinalStep being deprecated. See corresponding docs for further information.

Add an AS clause to the CREATE VIEW statement.

Annotations
@Override
asback to summary
public final CreateViewFinalStep as(SQL sql)

Implements org.jooq.CreateViewAsStep.as.

Doc from org.jooq.CreateViewAsStep.as.

Deprecated

as a consequence of CreateViewFinalStep being deprecated. See corresponding docs for further information.

Add an AS clause to the CREATE VIEW statement.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:SQL

The SQL

Annotations
@Override
asback to summary
public final CreateViewFinalStep as(String sql)

Implements org.jooq.CreateViewAsStep.as.

Doc from org.jooq.CreateViewAsStep.as.

Deprecated

as a consequence of CreateViewFinalStep being deprecated. See corresponding docs for further information.

Add an AS clause to the CREATE VIEW statement.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:String

The SQL

Annotations
@Override
asback to summary
public final CreateViewFinalStep as(String sql, Object... bindings)

Implements org.jooq.CreateViewAsStep.as.

Doc from org.jooq.CreateViewAsStep.as.

Deprecated

as a consequence of CreateViewFinalStep being deprecated. See corresponding docs for further information.

Add an AS clause to the CREATE VIEW statement.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:String

The SQL

Annotations
@Override
asback to summary
public final CreateViewFinalStep as(String sql, QueryPart... parts)

Implements org.jooq.CreateViewAsStep.as.

Doc from org.jooq.CreateViewAsStep.as.

Deprecated

as a consequence of CreateViewFinalStep being deprecated. See corresponding docs for further information.

Add an AS clause to the CREATE VIEW statement.

Note

When inserting plain SQL into jOOQ objects, you must guarantee syntax integrity. You may also create the possibility of malicious SQL injection. Be sure to properly use bind variables and/or escape literals when concatenated into SQL clauses!

Parameters
sql:String

The SQL

Annotations
@Override
clausesback to summary
public final Clause[] clauses(Context<?> ctx)

Overrides org.jooq.impl.AbstractQueryPart.clauses.

Implements org.jooq.QueryPartInternal.clauses.

Doc from org.jooq.QueryPartInternal.clauses.

Deprecated

as a consequence of Clause being deprecated. See corresponding docs for further information.

The Clauses that are represented by this query part.

QueryParts can specify several Clauses for which an event will be emitted before (in forward order) and after (in reverse order) visiting the the query part through Context#visit(QueryPart)

This method is for JOOQ INTERNAL USE only. Do not reference directly

Returns:Clause[]

The Clauses represented by this query part or null or an empty array if this query part does not represent a clause.

Annotations
@Override
parsedback to summary
private final Select<?> parsed()
supportsIfNotExistsback to summary
private final boolean supportsIfNotExists(Context<?> ctx)