com.googlecode.jdbw.metadata
Class View
java.lang.Object
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
View
public View(Catalog catalog,
Schema schema,
String name)
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.