com.facetmap.sql
Class CompoundLinearFacet

java.lang.Object
  extended by com.facetmap.simple.SimpleCompoundHeadingFacet
      extended by com.facetmap.sql.CompoundLinearFacet
All Implemented Interfaces:
CompoundHeadingFacet, Facet, SqlFacet

public class CompoundLinearFacet
extends SimpleCompoundHeadingFacet
implements SqlFacet


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.facetmap.Facet
Facet.Util
 
Nested classes/interfaces inherited from interface com.facetmap.CompoundHeadingFacet
CompoundHeadingFacet.Util
 
Field Summary
protected  int facetIndex
           
protected  LinearFacet linearFacet
           
protected  SqlFacetSpace sqlFacetSpace
           
protected  java.lang.String tagTableAlias
           
protected  java.lang.String tagTableName
           
 
Fields inherited from class com.facetmap.simple.SimpleCompoundHeadingFacet
facet, rootHeading
 
Constructor Summary
CompoundLinearFacet(LinearFacet sourceFacet)
           
 
Method Summary
 CompoundHeading getCompoundHeading(java.util.List headingList)
          This is the base factory method in CompoundFacet.
 SqlFacetSpace getSqlFacetSpace()
           
 Heading getSqlHeading(Heading sourceHeading)
          Returns the Heading from this SqlFacet that corresponds to the input sourceHeading.
 java.lang.String getTagTableAlias()
           
 java.lang.String getTagTableName()
           
 void setSqlFacetSpace(SqlFacetSpace sqlFacetSpace)
           
 void setTagTableAlias(java.lang.String tagTableAlias)
           
 void setTagTableName(java.lang.String tagTableName)
           
 void sqlCreate(java.sql.Connection connection, java.lang.String vendor)
           
 
Methods inherited from class com.facetmap.simple.SimpleCompoundHeadingFacet
getCompoundHeading, getCompoundHeading, getHeading, getId, getRootHeading, getTitle, getUnderlyingFacet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.facetmap.Facet
getHeading, getId, getRootHeading, getTitle
 

Field Detail

linearFacet

protected final LinearFacet linearFacet

facetIndex

protected int facetIndex

sqlFacetSpace

protected SqlFacetSpace sqlFacetSpace

tagTableName

protected java.lang.String tagTableName

tagTableAlias

protected java.lang.String tagTableAlias
Constructor Detail

CompoundLinearFacet

public CompoundLinearFacet(LinearFacet sourceFacet)
Method Detail

getCompoundHeading

public CompoundHeading getCompoundHeading(java.util.List headingList)
Description copied from class: SimpleCompoundHeadingFacet
This is the base factory method in CompoundFacet. It instantiates a new CompoundHeading. Other factory methods delegate to this one.

Overrides:
getCompoundHeading in class SimpleCompoundHeadingFacet

sqlCreate

public void sqlCreate(java.sql.Connection connection,
                      java.lang.String vendor)
               throws java.sql.SQLException
Specified by:
sqlCreate in interface SqlFacet
Throws:
java.sql.SQLException

getSqlFacetSpace

public SqlFacetSpace getSqlFacetSpace()
Specified by:
getSqlFacetSpace in interface SqlFacet

setSqlFacetSpace

public void setSqlFacetSpace(SqlFacetSpace sqlFacetSpace)
Specified by:
setSqlFacetSpace in interface SqlFacet

getSqlHeading

public Heading getSqlHeading(Heading sourceHeading)
                      throws UnknownReferenceException
Description copied from interface: SqlFacet
Returns the Heading from this SqlFacet that corresponds to the input sourceHeading. This is used to rapidly translate true resource headings to SQL-based resource headings.

If no such heading exists in this SqlFacet (and if it is not correct behavior to create it), then this method returns null. This method may throw UnknownReferenceException if the sourceHeading contains references which do not resolve correctly.

Specified by:
getSqlHeading in interface SqlFacet
Throws:
UnknownReferenceException

getTagTableName

public java.lang.String getTagTableName()

setTagTableName

public void setTagTableName(java.lang.String tagTableName)

getTagTableAlias

public java.lang.String getTagTableAlias()

setTagTableAlias

public void setTagTableAlias(java.lang.String tagTableAlias)