Package rife.database.queries
Class CreateView
java.lang.Object
rife.database.queries.CreateView
Object representation of a SQL "CREATE VIEW" query.
This object may be used to dynamically construct a SQL statement in a
database-independent fashion. After it is finished, it may be executed using
DbQueryManager.executeUpdate().
You provide the view definition either as a Select query, which
makes the construction of the view just as database-independent as the
query builders themselves, or as a literal SQL string. A select query that
has parameters can't define a view, since views don't have placeholders.
- Since:
- 1.10
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
datasource_
-
sql_
-
excludeUnsupportedCapabilities_
protected boolean excludeUnsupportedCapabilities_
-
-
Constructor Details
-
CreateView
-
-
Method Details
-
clear
public void clear() -
getCapabilities
public rife.database.capabilities.Capabilities getCapabilities()- Specified by:
getCapabilitiesin interfaceQuery
-
getView
-
isReplace
public boolean isReplace() -
getColumns
-
getSelect
-
getDefinition
-
view
-
replace
-
columns
-
as
-
as
-
getSql
- Specified by:
getSqlin interfaceQuery- Throws:
DbQueryException
-
clone
-
getDatasource
-
getParameters
- Specified by:
getParametersin interfaceQuery
-
setExcludeUnsupportedCapabilities
public void setExcludeUnsupportedCapabilities(boolean flag) - Specified by:
setExcludeUnsupportedCapabilitiesin interfaceQuery
-
clearGenerated
protected void clearGenerated() -
toString
-