com.googlecode.jdbw.metadata
Class View

java.lang.Object
  extended by com.googlecode.jdbw.metadata.View
All Implemented Interfaces:
Comparable<View>

public class View
extends Object
implements Comparable<View>

A View in the database world is a kind of virtual table, defined by a SELECT statement that is being run every time you select from the view. Using views, you can make very complicated data models easier to read and access, providing joins and restrictions under the cover, so that users not familiar with the data model can still use it.

Author:
Martin Berglund
See Also:
Schema

Constructor Summary
View(Catalog catalog, Schema schema, String name)
           
 
Method Summary
 int compareTo(View o)
           
 Catalog getCatalog()
           
 String getName()
           
 Schema getSchema()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

View

public View(Catalog catalog,
            Schema schema,
            String name)
Method Detail

getName

public String getName()
Returns:
Name of the view

getSchema

public Schema getSchema()
Returns:
Schema owning this view

getCatalog

public Catalog getCatalog()
Returns:
Catalog this view is sorted under, i.e. the owner of the view's Schema.

compareTo

public int compareTo(View o)
Specified by:
compareTo in interface Comparable<View>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.