butler.sql.metadata
Class VirtualTable

java.lang.Object
  extended by butler.util.BaseGroovyObjectSupport
      extended by butler.sql.metadata.Table
          extended by butler.sql.metadata.VirtualTable
All Implemented Interfaces:
groovy.lang.GroovyObject

public abstract class VirtualTable
extends Table

Author:
Fredrik Bertilsson

Field Summary
 
Fields inherited from class butler.sql.metadata.Table
_fks, _name, DUMMY
 
Constructor Summary
VirtualTable(java.lang.String name, Schema schema)
           
 
Method Summary
 void addVirtualColumn(java.lang.String name, Datatype datatype)
           
 void addVirtualColumn(java.lang.String name, java.lang.String caption, Datatype datatype)
           
 Query createQuery()
          Creates a query with this table as the main table.
protected  void load()
           
protected  void loadAll()
           
abstract  void virtualDelete(Record rec)
           
abstract  RecordList virtualRun(QueryInstance qi)
           
abstract  void virtualSave(Record rec)
           
 
Methods inherited from class butler.sql.metadata.Table
addForeignKey, addIndex, addRecord, addRecordListener, addRelation, copy, create, createColumn, createColumn, createColumn, createColumn, createColumn, createColumn, createDeleteQuery, createRecord, drop, equals, equals, exists, findAll, findByPK, findByPK, findByPK0, findByPKIfExists, findByPKIfExists, getAuthorizator, getCaption, getColumn, getColumns, getDatabase, getDataColumns, getExportedForeignKeys, getForeignKey, getForeignKey, getForeignKeyNames, getForeignKeys, getImportedForeignKeys, getIndex, getIndexes, getLocalizedCaption, getLogicalColumns, getName, getPath, getPhysicalColumns, getPhysicalName, getPrimaryKeyColumns, getProperty, getQualifiedName, getQuery, getRecordComparator, getRecordListeners, getRelation, getSchema, getTable, getTable, getValidator, hashCode, invokeMethod, isDummy, loadFKs, newRecord, registerColumn, registerQuery, setAuthorizator, setRecordComparator, setSchema, setValidator, toXML, unload, upgrade
 
Methods inherited from class butler.util.BaseGroovyObjectSupport
getMetaClass, setMetaClass, setProperty
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualTable

public VirtualTable(java.lang.String name,
                    Schema schema)
Method Detail

addVirtualColumn

public void addVirtualColumn(java.lang.String name,
                             Datatype datatype)
                      throws java.lang.Exception
Throws:
java.lang.Exception

addVirtualColumn

public void addVirtualColumn(java.lang.String name,
                             java.lang.String caption,
                             Datatype datatype)
                      throws java.lang.Exception
Throws:
java.lang.Exception

virtualSave

public abstract void virtualSave(Record rec)
                          throws java.lang.Exception
Throws:
java.lang.Exception

virtualDelete

public abstract void virtualDelete(Record rec)
                            throws java.lang.Exception
Throws:
java.lang.Exception

virtualRun

public abstract RecordList virtualRun(QueryInstance qi)
                               throws java.lang.Exception
Throws:
java.lang.Exception

createQuery

public Query createQuery()
                  throws java.lang.Exception
Description copied from class: Table
Creates a query with this table as the main table.

Overrides:
createQuery in class Table
Throws:
java.lang.Exception

load

protected void load()
Overrides:
load in class Table

loadAll

protected void loadAll()
Overrides:
loadAll in class Table