public class BaseView extends java.lang.Object implements View, java.io.Serializable
| Constructor and Description |
|---|
BaseView(ViewOperations ops,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
ViewVersion |
currentVersion()
Get the current version for this view, or null if there are no versions.
|
java.util.List<ViewHistoryEntry> |
history()
Get the version history of this table.
|
java.lang.String |
location()
Return the view's base location.
|
java.lang.String |
name() |
ViewOperations |
operations() |
java.util.Map<java.lang.String,java.lang.String> |
properties()
Return a map of string properties for this view.
|
ReplaceViewVersion |
replaceVersion()
Create a new
ReplaceViewVersion to replace the view's current version. |
Schema |
schema()
Return the
schema for this view. |
java.util.Map<java.lang.Integer,Schema> |
schemas()
Return a map of
schema for this view. |
SQLViewRepresentation |
sqlFor(java.lang.String dialect)
This implementation of sqlFor will resolve what is considered the "closest" dialect.
|
UpdateLocation |
updateLocation()
Create a new
UpdateLocation to set the view's location. |
UpdateViewProperties |
updateProperties()
Create a new
UpdateViewProperties to update view properties. |
java.util.UUID |
uuid()
Returns the view's UUID
|
ViewVersion |
version(int versionId)
Get a version in this view by ID.
|
java.lang.Iterable<ViewVersion> |
versions()
Get the versions of this view.
|
public BaseView(ViewOperations ops, java.lang.String name)
public ViewOperations operations()
public Schema schema()
Viewschema for this view.public java.util.Map<java.lang.Integer,Schema> schemas()
Viewschema for this view.public ViewVersion currentVersion()
ViewcurrentVersion in interface Viewpublic java.lang.Iterable<ViewVersion> versions()
Viewpublic ViewVersion version(int versionId)
Viewpublic java.util.List<ViewHistoryEntry> history()
Viewhistory in interface ViewViewHistoryEntrypublic java.util.Map<java.lang.String,java.lang.String> properties()
Viewproperties in interface Viewpublic java.lang.String location()
Viewpublic UpdateViewProperties updateProperties()
ViewUpdateViewProperties to update view properties.updateProperties in interface ViewUpdateViewPropertiespublic ReplaceViewVersion replaceVersion()
ViewReplaceViewVersion to replace the view's current version.replaceVersion in interface ViewReplaceViewVersionpublic UpdateLocation updateLocation()
ViewUpdateLocation to set the view's location.updateLocation in interface ViewUpdateLocationpublic java.util.UUID uuid()
Viewpublic SQLViewRepresentation sqlFor(java.lang.String dialect)