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()
View
schema
for this view.public java.util.Map<java.lang.Integer,Schema> schemas()
View
schema
for this view.public ViewVersion currentVersion()
View
currentVersion
in interface View
public java.lang.Iterable<ViewVersion> versions()
View
public ViewVersion version(int versionId)
View
public java.util.List<ViewHistoryEntry> history()
View
history
in interface View
ViewHistoryEntry
public java.util.Map<java.lang.String,java.lang.String> properties()
View
properties
in interface View
public java.lang.String location()
View
public UpdateViewProperties updateProperties()
View
UpdateViewProperties
to update view properties.updateProperties
in interface View
UpdateViewProperties
public ReplaceViewVersion replaceVersion()
View
ReplaceViewVersion
to replace the view's current version.replaceVersion
in interface View
ReplaceViewVersion
public UpdateLocation updateLocation()
View
UpdateLocation
to set the view's location.updateLocation
in interface View
UpdateLocation
public java.util.UUID uuid()
View
public SQLViewRepresentation sqlFor(java.lang.String dialect)