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

java.lang.Object
  extended bybiz.hammurapi.sql.DatabaseObject
      extended bybiz.hammurapi.web.metadata.DbmColumnImpl
          extended bybiz.hammurapi.web.mda.db.model.Column
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.web.metadata.Dbm, biz.hammurapi.web.metadata.DbmColumn, biz.hammurapi.web.metadata.DbmImportedKey, biz.hammurapi.config.DomConfigurable, biz.hammurapi.xml.dom.DomSerializable, biz.hammurapi.sql.IDatabaseObject, biz.hammurapi.util.Observable, java.io.Serializable, biz.hammurapi.util.Versioned

public class Column
extends biz.hammurapi.web.metadata.DbmColumnImpl

See Also:
Serialized Form

Nested Class Summary
static interface Column.PresentationParametersHelper
          Helper interface.
 
Field Summary
 
Fields inherited from class biz.hammurapi.web.metadata.DbmColumnImpl
AnalysisTermId, Description, Id, JavaName, Label, Name, PropertySetId, TableId
 
Fields inherited from class biz.hammurapi.sql.DatabaseObject
columns, objectVersion, originalVersion
 
Constructor Summary
Column()
           
Column(boolean force)
           
Column(org.w3c.dom.Element holder, boolean force)
           
Column(org.w3c.dom.Element holder, java.util.Properties nameMap, org.apache.xpath.CachedXPathAPI cxpa, boolean force)
           
Column(java.sql.ResultSet rs)
           
 
Method Summary
 java.lang.String generate(java.lang.String viewName)
          Generates code from template specified for given column for given view
 java.lang.String getJavaName()
           
 java.lang.String getLabel()
           
 java.lang.Object getMetaValue(java.lang.String name)
           
 Table getOwner()
           
 Template getTemplate(java.lang.String viewName)
          Generates code from template specified for given column for given view
 boolean isPrimaryKey()
           
 void toDom(org.w3c.dom.Element holder)
           
 
Methods inherited from class biz.hammurapi.web.metadata.DbmColumnImpl
clone, getAnalysisTermId, getDescription, getId, getName, getPropertySetId, getTableId, project, project, setAnalysisTermId, setDescription, setId, setJavaName, setLabel, setName, setPropertySetId, setTableId
 
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

Column

public Column()

Column

public Column(boolean force)

Column

public Column(java.sql.ResultSet rs)
       throws java.sql.SQLException

Column

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

Column

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

getOwner

public Table getOwner()

getMetaValue

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

toDom

public void toDom(org.w3c.dom.Element holder)

getJavaName

public java.lang.String getJavaName()

getLabel

public java.lang.String getLabel()

generate

public java.lang.String generate(java.lang.String viewName)
                          throws java.sql.SQLException,
                                 HammurapiWebException
Generates code from template specified for given column for given view

Parameters:
viewName -
Returns:
Throws:
java.sql.SQLException
HammurapiWebException

getTemplate

public Template getTemplate(java.lang.String viewName)
                     throws java.sql.SQLException,
                            HammurapiWebException
Generates code from template specified for given column for given view

Parameters:
viewName -
Returns:
Throws:
java.sql.SQLException
HammurapiWebException

isPrimaryKey

public boolean isPrimaryKey()


Copyright © 2006 Hammurapi Group. All Rights Reserved.