com.facetmap.sql
Class CompoundIndexedHeading

java.lang.Object
  extended by com.facetmap.simple.SimpleHeading
      extended by com.facetmap.simple.SimpleCompoundHeading
          extended by com.facetmap.sql.CompoundIndexedHeading
All Implemented Interfaces:
CompoundHeading, Heading, SqlHeading

public class CompoundIndexedHeading
extends SimpleCompoundHeading
implements SqlHeading


Field Summary
protected  CompoundLinearFacet compoundLinearFacet
           
 
Fields inherited from class com.facetmap.simple.SimpleCompoundHeading
compoundFacet, headings
 
Fields inherited from class com.facetmap.simple.SimpleHeading
id, title
 
Constructor Summary
CompoundIndexedHeading(CompoundLinearFacet compoundLinearFacet, java.util.List headings)
           
 
Method Summary
 java.lang.String sqlFilterClause(java.util.Properties properties)
          Return a WHERE clause (without the "WHERE" or "AND" string) that selects resources in this heading.
 void sqlMap(java.sql.Connection connection, SqlResource resource)
          Create the SQL representation of the mapping between a Resource and this Heading.
 void sqlUnmap(java.sql.Connection connection, SqlResource resource)
           
 
Methods inherited from class com.facetmap.simple.SimpleCompoundHeading
getBackwardHeading, getFacet, getForwardHeadings, getHeadings, isRoot, matches, popHeading, setTitle, toString
 
Methods inherited from class com.facetmap.simple.SimpleHeading
getId, getTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.facetmap.Heading
getId, getTitle
 

Field Detail

compoundLinearFacet

protected final CompoundLinearFacet compoundLinearFacet
Constructor Detail

CompoundIndexedHeading

public CompoundIndexedHeading(CompoundLinearFacet compoundLinearFacet,
                              java.util.List headings)
Method Detail

sqlFilterClause

public java.lang.String sqlFilterClause(java.util.Properties properties)
Description copied from interface: SqlHeading
Return a WHERE clause (without the "WHERE" or "AND" string) that selects resources in this heading. vendor argument specifies the vendor dialect of SQL to return, and can be ignored for vanilla SQL.

Method may also return null, to indicate no filtering should be done (i.e. this heading selects all resources).

Default is to filter nothing (i.e. select everything).

Specified by:
sqlFilterClause in interface SqlHeading

sqlMap

public void sqlMap(java.sql.Connection connection,
                   SqlResource resource)
            throws java.sql.SQLException
Description copied from interface: SqlHeading
Create the SQL representation of the mapping between a Resource and this Heading. REVISIT argument list.

Specified by:
sqlMap in interface SqlHeading
Throws:
java.sql.SQLException

sqlUnmap

public void sqlUnmap(java.sql.Connection connection,
                     SqlResource resource)
              throws java.sql.SQLException
Specified by:
sqlUnmap in interface SqlHeading
Throws:
java.sql.SQLException