com.facetmap.sql
Interface SqlFacet

All Superinterfaces:
Facet
All Known Implementing Classes:
CompoundLinearFacet, DateImpl, LinearFacet, ResourceIdFacet, SpectrumImpl, TaxonomyImpl

public interface SqlFacet
extends Facet

Provides methods used by the SQL compilation of facet and resource data.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.facetmap.Facet
Facet.Util
 
Method Summary
 SqlFacetSpace getSqlFacetSpace()
           
 Heading getSqlHeading(Heading sourceHeading)
          Returns the Heading from this SqlFacet that corresponds to the input sourceHeading.
 void setSqlFacetSpace(SqlFacetSpace sqlFacetSpace)
           
 void sqlCreate(java.sql.Connection connection, java.lang.String vendor)
           
 
Methods inherited from interface com.facetmap.Facet
getHeading, getId, getRootHeading, getTitle
 

Method Detail

sqlCreate

void sqlCreate(java.sql.Connection connection,
               java.lang.String vendor)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

getSqlFacetSpace

SqlFacetSpace getSqlFacetSpace()

setSqlFacetSpace

void setSqlFacetSpace(SqlFacetSpace sqlFacetSpace)

getSqlHeading

Heading getSqlHeading(Heading sourceHeading)
                      throws UnknownReferenceException
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.

Throws:
UnknownReferenceException