|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.facetmap.sql.ResourceIdHeading
public class ResourceIdHeading
| Field Summary | |
|---|---|
protected java.lang.String |
id
|
protected ResourceIdFacet |
resourceIdFacet
|
protected int[] |
resourceIds
|
protected java.lang.String |
title
|
| Constructor Summary | |
|---|---|
ResourceIdHeading(java.lang.String id,
java.lang.String title,
int[] resourceIds,
ResourceIdFacet resourceIdFacet)
This is the preferred method for directly creating a ResourceIdHeading with a set of Resource IDs. |
|
| Method Summary | |
|---|---|
Heading |
getBackwardHeading()
See Facet for the definition of a backward heading. |
Facet |
getFacet()
Facet to which this Heading belongs. |
java.util.Iterator |
getForwardHeadings()
See Facet for the definition of a forward heading. |
java.lang.String |
getId()
Unique identifier of a predefined Heading. |
int[] |
getResourceIds()
|
java.lang.String |
getTitle()
The descriptive name of this Heading, for display to users. |
boolean |
isRoot()
Returns true if this Heading is the root, the starting Heading, of its Facet. |
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, toString, wait, wait, wait |
| Field Detail |
|---|
protected int[] resourceIds
protected java.lang.String id
protected java.lang.String title
protected ResourceIdFacet resourceIdFacet
| Constructor Detail |
|---|
public ResourceIdHeading(java.lang.String id,
java.lang.String title,
int[] resourceIds,
ResourceIdFacet resourceIdFacet)
A ResourceIdHeading created with a null or empty resourceId array
is equivalent to the facet's root heading
(i.e. equivalent to resourceIdFacet.getRootHeading() ).
| Method Detail |
|---|
public int[] getResourceIds()
public java.lang.String sqlFilterClause(java.util.Properties properties)
SqlHeadingvendor 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).
sqlFilterClause in interface SqlHeading
public void sqlMap(java.sql.Connection connection,
SqlResource resource)
throws java.sql.SQLException
SqlHeading
sqlMap in interface SqlHeadingjava.sql.SQLException
public void sqlUnmap(java.sql.Connection connection,
SqlResource resource)
throws java.sql.SQLException
sqlUnmap in interface SqlHeadingjava.sql.SQLExceptionpublic Heading getBackwardHeading()
HeadingFacet for the definition of a backward heading.
This method returns null if the Heading has no backward heading.
getBackwardHeading in interface Headingpublic Facet getFacet()
Heading
getFacet in interface Headingpublic java.util.Iterator getForwardHeadings()
HeadingFacet for the definition of a forward heading.
This method returns an empty Iterator if the Heading has no
forward headings.
getForwardHeadings in interface Headingpublic java.lang.String getId()
Heading
getId in interface Headingpublic java.lang.String getTitle()
Heading
getTitle in interface Headingpublic boolean isRoot()
Heading
isRoot in interface HeadingFacet.getRootHeading()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||