biz.hammurapi.web.mda.db.model
Class Table

java.lang.Object
  extended bybiz.hammurapi.sql.DatabaseObject
      extended bybiz.hammurapi.web.metadata.DbmTableImpl
          extended bybiz.hammurapi.web.mda.db.model.Table
All Implemented Interfaces:
biz.hammurapi.util.Attributable, java.lang.Cloneable, biz.hammurapi.sql.columns.ColumnChangeListener, biz.hammurapi.config.Context, biz.hammurapi.config.ContextConfigurable, biz.hammurapi.sql.DataAccessObject, biz.hammurapi.web.metadata.Dbm, biz.hammurapi.web.metadata.DbmTable, biz.hammurapi.config.DomConfigurable, biz.hammurapi.xml.dom.DomSerializable, biz.hammurapi.sql.IDatabaseObject, biz.hammurapi.util.Observable, java.io.Serializable, biz.hammurapi.util.Versioned, biz.hammurapi.util.Visitable

public class Table
extends biz.hammurapi.web.metadata.DbmTableImpl
implements biz.hammurapi.util.Visitable, biz.hammurapi.sql.DataAccessObject

This class represents database table for the purposes of MDA transformations. The class combines metadata retrieved from JDBC interfaces with info from DBM_TABLE table.

Author:
Pavel
See Also:
Serialized Form

Field Summary
 
Fields inherited from class biz.hammurapi.web.metadata.DbmTableImpl
AnalysisTermId, Description, Id, JavaName, Label, Name, PropertySetId, SchemaId, TableType
 
Fields inherited from class biz.hammurapi.sql.DatabaseObject
columns, objectVersion, originalVersion
 
Constructor Summary
Table()
           
Table(boolean force)
           
Table(org.w3c.dom.Element holder, boolean force)
           
Table(org.w3c.dom.Element holder, java.util.Properties nameMap, org.apache.xpath.CachedXPathAPI cxpa, boolean force)
           
Table(java.sql.ResultSet rs)
           
 
Method Summary
 boolean accept(biz.hammurapi.util.Visitor visitor)
           
 java.util.List getColumns()
           
 java.util.List getExportedKeys()
           
 java.lang.String getFullName()
           
 java.util.List getImportedKeys()
           
 java.util.List getIndices()
           
 InteractionInstance getInteractionInstance()
           
 java.lang.String getJavaName()
           
 java.lang.String getLabel()
           
 java.lang.Object getMetaValue(java.lang.String name)
           
 Schema getOwner()
           
 java.util.List getPrimaryKeys()
           
 java.util.List getViewColumns(java.lang.String viewName)
           
 boolean hasView(java.lang.String viewName)
           
 void setInteractionInstance(InteractionInstance interactionInstance)
           
 void setSQLProcessor(biz.hammurapi.sql.SQLProcessor processor)
          Loads columns, indices, keys
 void toDom(org.w3c.dom.Element holder)
           
 
Methods inherited from class biz.hammurapi.web.metadata.DbmTableImpl
clone, getAnalysisTermId, getDescription, getId, getName, getPropertySetId, getSchemaId, getTableType, project, project, setAnalysisTermId, setDescription, setId, setJavaName, setLabel, setName, setPropertySetId, setSchemaId, setTableType
 
Methods inherited from class biz.hammurapi.sql.DatabaseObject
addColumn, addObserver, addRelationship, clear, configure, configure, copy, delete, equals, fromDom, fromDom, get, getAttribute, getColumn, getColumnAttribute, getObjectVersion, getRelationship, getSqlType, hashCode, insert, isDeleted, isModified, loadRelationships, onChange, removeAttribute, removeColumnAttribute, removeObserver, setAttribute, setColumnAttribute, setOriginal, toDom, toString, update
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Table

public Table()

Table

public Table(boolean force)

Table

public Table(org.w3c.dom.Element holder,
             boolean force)
      throws biz.hammurapi.config.ConfigurationException

Table

public Table(org.w3c.dom.Element holder,
             java.util.Properties nameMap,
             org.apache.xpath.CachedXPathAPI cxpa,
             boolean force)
      throws biz.hammurapi.config.ConfigurationException

Table

public Table(java.sql.ResultSet rs)
      throws java.sql.SQLException
Method Detail

getColumns

public java.util.List getColumns()

getImportedKeys

public java.util.List getImportedKeys()

getIndices

public java.util.List getIndices()

getExportedKeys

public java.util.List getExportedKeys()

getPrimaryKeys

public java.util.List getPrimaryKeys()

accept

public boolean accept(biz.hammurapi.util.Visitor visitor)
Specified by:
accept in interface biz.hammurapi.util.Visitable

setSQLProcessor

public void setSQLProcessor(biz.hammurapi.sql.SQLProcessor processor)
                     throws java.sql.SQLException
Loads columns, indices, keys

Specified by:
setSQLProcessor in interface biz.hammurapi.sql.DataAccessObject
Throws:
java.sql.SQLException

getOwner

public Schema getOwner()

getMetaValue

public java.lang.Object getMetaValue(java.lang.String name)

toDom

public void toDom(org.w3c.dom.Element holder)
Specified by:
toDom in interface biz.hammurapi.xml.dom.DomSerializable

getJavaName

public java.lang.String getJavaName()
Specified by:
getJavaName in interface biz.hammurapi.web.metadata.DbmTable

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface biz.hammurapi.web.metadata.DbmTable

setInteractionInstance

public void setInteractionInstance(InteractionInstance interactionInstance)

getInteractionInstance

public InteractionInstance getInteractionInstance()

hasView

public boolean hasView(java.lang.String viewName)
                throws java.sql.SQLException
Parameters:
viewName -
Returns:
true if given view was selected for generation in the interaction.
Throws:
java.sql.SQLException

getViewColumns

public java.util.List getViewColumns(java.lang.String viewName)
                              throws java.sql.SQLException
Parameters:
viewName -
Returns:
Ordered list of columns for given view.
Throws:
java.sql.SQLException

getFullName

public java.lang.String getFullName()


Copyright © 2006 Hammurapi Group. All Rights Reserved.