Class BaseView

  • All Implemented Interfaces:
    java.io.Serializable, View

    public class BaseView
    extends java.lang.Object
    implements View, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • BaseView

        public BaseView​(ViewOperations ops,
                        java.lang.String name)
    • Method Detail

      • name

        public java.lang.String name()
        Specified by:
        name in interface View
      • schema

        public Schema schema()
        Description copied from interface: View
        Return the schema for this view.
        Specified by:
        schema in interface View
        Returns:
        this table's schema
      • schemas

        public java.util.Map<java.lang.Integer,​Schema> schemas()
        Description copied from interface: View
        Return a map of schema for this view.
        Specified by:
        schemas in interface View
        Returns:
        this table's schema map
      • currentVersion

        public ViewVersion currentVersion()
        Description copied from interface: View
        Get the current version for this view, or null if there are no versions.
        Specified by:
        currentVersion in interface View
        Returns:
        the current view version.
      • versions

        public java.lang.Iterable<ViewVersion> versions()
        Description copied from interface: View
        Get the versions of this view.
        Specified by:
        versions in interface View
        Returns:
        an Iterable of versions of this view.
      • version

        public ViewVersion version​(int versionId)
        Description copied from interface: View
        Get a version in this view by ID.
        Specified by:
        version in interface View
        Parameters:
        versionId - version ID
        Returns:
        a version, or null if the ID cannot be found
      • properties

        public java.util.Map<java.lang.String,​java.lang.String> properties()
        Description copied from interface: View
        Return a map of string properties for this view.
        Specified by:
        properties in interface View
        Returns:
        this view's properties map
      • location

        public java.lang.String location()
        Description copied from interface: View
        Return the view's base location.
        Specified by:
        location in interface View
        Returns:
        this view's location
      • uuid

        public java.util.UUID uuid()
        Description copied from interface: View
        Returns the view's UUID
        Specified by:
        uuid in interface View
        Returns:
        the view's UUID
      • sqlFor

        public SQLViewRepresentation sqlFor​(java.lang.String dialect)
        This implementation of sqlFor will resolve what is considered the "closest" dialect. If an exact match is found, then that is returned. Otherwise, the first representation would be returned. If no SQL representation is found, null is returned.
        Specified by:
        sqlFor in interface View
        Returns:
        the view representation for the given SQL dialect, or null if no representation could be resolved