com.facetmap.sql
Class CompoundIndexedHeading
java.lang.Object
com.facetmap.simple.SimpleHeading
com.facetmap.simple.SimpleCompoundHeading
com.facetmap.sql.CompoundIndexedHeading
- All Implemented Interfaces:
- CompoundHeading, Heading, SqlHeading
public class CompoundIndexedHeading
- extends SimpleCompoundHeading
- implements SqlHeading
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
compoundLinearFacet
protected final CompoundLinearFacet compoundLinearFacet
CompoundIndexedHeading
public CompoundIndexedHeading(CompoundLinearFacet compoundLinearFacet,
java.util.List headings)
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