| Constructor and Description |
|---|
SolrBrowseDAO(Context context) |
| Modifier and Type | Method and Description |
|---|---|
int |
doCountQuery()
This executes a query which will count the number of results for the
parameters you set.
|
int |
doDistinctOffsetQuery(String column,
String value,
boolean isAscending)
This executes a query which returns the offset where the value (or nearest greater
equivalent) can be found in the specified table ordered by the column.
|
String |
doMaxQuery(String column,
String table,
int itemID)
This executes a query which returns the value of the "highest" (max) value
in the given table's column for the given item id.
|
int |
doOffsetQuery(String column,
String value,
boolean isAscending)
This executes a query which returns the offset where the value (or nearest greater
equivalent) can be found in the specified table ordered by the column.
|
List |
doQuery()
This executes a query which returns a List object containing BrowseItem objects
representing the results of a full item browse.
|
List |
doValueQuery()
This executes a query which returns a List object containing String
values which represent the results of a single value browse (for
example, the list of all subject headings).
|
String |
getAuthorityValue() |
int |
getContainerID()
Get the database ID of the container object.
|
String |
getContainerIDField()
get the name of the field in which to look for the container id.
|
String |
getContainerTable()
Get the name of the container table that is being used to map items to distinct
values when in a container constrained browse
|
String[] |
getCountValues()
Get the array of fields that we will be counting on.
|
String |
getFilterValue()
Get the value which we are constraining all our browse results to contain.
|
String |
getFilterValueField()
Get the name of the field in which the value to constrain results is
contained
|
String |
getJumpToField()
Get the field in which we will match a focus value from which to start
the browse.
|
String |
getJumpToValue()
Get the value at which the browse will start.
|
int |
getLimit()
get the integer number which is the limit of the results that will be returned
by any query.
|
int |
getOffset()
Get the offset from the first result from which to return results.
|
String |
getOrderField()
Get the database field which will be used to do the sorting of result sets on.
|
String[] |
getSelectValues()
Get the array of values that we will be selecting on.
|
String |
getTable()
get the name of the table that we are querying
|
boolean |
isAscending()
Is the sort order ascending or descending?
Default value is true
|
boolean |
isDistinct()
Is this a distinct value browse?
|
boolean |
isEnableBrowseFrequencies() |
void |
setAscending(boolean ascending)
Set whether the results should be sorted in ascending order (on the given sort column)
or descending order.
|
void |
setAuthorityValue(String value) |
void |
setContainerID(int containerID)
Set the database id of the container object.
|
void |
setContainerIDField(String containerIDField)
set the name of the field in which to look for the container id.
|
void |
setContainerTable(String containerTable)
If we have specified a container id and container field, we must also specify
a container table.
|
void |
setCountValues(String[] fields)
Set the array of columns that we will be counting over.
|
void |
setDistinct(boolean bool)
Set whether this is a distinct value browse or not
|
void |
setEnableBrowseFrequencies(boolean enableBrowseFrequencies) |
void |
setEqualsComparator(boolean equalsComparator)
Set whether the query should use an equals comparator when doing less than or
greater than comparisons.
|
void |
setFilterMappingTables(String tableDis,
String tableMap)
Set the name of the mapping tables to use for filtering
|
void |
setFilterValue(String value)
Set the value to which all our browse results should be constrained.
|
void |
setFilterValueField(String valueField)
Set he name of the field in which the value to constrain results is
contained
|
void |
setFilterValuePartial(boolean part)
Sets whether we will treat the filter value as partial (like match), or exact
|
void |
setJumpToField(String focusField)
Set the focus field upon which we will match a value from which to start
the browse.
|
void |
setJumpToValue(String focusValue)
Set the value upon which to start the browse from.
|
void |
setLimit(int limit)
Set the limit for how many results should be returned.
|
void |
setOffset(int offset)
Get the offset from the first result from which to return results.
|
void |
setOrderField(String orderField)
Set the database field which will be used to sort result sets on
|
void |
setSelectValues(String[] selectValues)
Set the array of values to select on.
|
void |
setTable(String table)
Set the name of the table to query
|
boolean |
useEqualsComparator()
Does the query use the equals comparator when doing less than or greater than
comparisons.
|
public SolrBrowseDAO(Context context)
public int doCountQuery()
throws BrowseException
BrowseDAOdoCountQuery in interface BrowseDAOBrowseExceptionpublic List doValueQuery() throws BrowseException
BrowseDAOdoValueQuery in interface BrowseDAOBrowseExceptionpublic List doQuery() throws BrowseException
BrowseDAOdoQuery in interface BrowseDAOBrowseExceptionpublic String doMaxQuery(String column, String table, int itemID) throws BrowseException
BrowseDAOdoMaxQuery in interface BrowseDAOcolumn - the column to interrogatetable - the table to queryitemID - the item idBrowseExceptionpublic int doOffsetQuery(String column, String value, boolean isAscending) throws BrowseException
BrowseDAOdoOffsetQuery in interface BrowseDAOcolumn - the column to interrogatevalue - the item idisAscending - browsing in ascending or descending orderBrowseExceptionpublic int doDistinctOffsetQuery(String column, String value, boolean isAscending) throws BrowseException
BrowseDAOdoDistinctOffsetQuery in interface BrowseDAOcolumn - the column to interrogatevalue - the item idisAscending - browsing in ascending or descending orderBrowseExceptionpublic boolean isEnableBrowseFrequencies()
isEnableBrowseFrequencies in interface BrowseDAOpublic void setEnableBrowseFrequencies(boolean enableBrowseFrequencies)
setEnableBrowseFrequencies in interface BrowseDAOpublic int getContainerID()
BrowseDAOgetContainerID in interface BrowseDAOpublic String getContainerIDField()
BrowseDAOgetContainerIDField in interface BrowseDAOpublic String getContainerTable()
BrowseDAOgetContainerTable in interface BrowseDAOpublic String[] getCountValues()
BrowseDAOgetCountValues in interface BrowseDAOpublic String getJumpToField()
BrowseDAOgetJumpToField in interface BrowseDAOpublic String getJumpToValue()
BrowseDAOgetJumpToValue in interface BrowseDAOpublic int getLimit()
BrowseDAOpublic int getOffset()
BrowseDAOpublic String getOrderField()
BrowseDAOgetOrderField in interface BrowseDAOpublic String[] getSelectValues()
BrowseDAOgetSelectValues in interface BrowseDAOpublic String getTable()
BrowseDAOpublic String getFilterValue()
BrowseDAOgetFilterValue in interface BrowseDAOpublic String getFilterValueField()
BrowseDAOgetFilterValueField in interface BrowseDAOpublic boolean isAscending()
BrowseDAOisAscending in interface BrowseDAOpublic boolean isDistinct()
BrowseDAOisDistinct in interface BrowseDAOpublic void setAscending(boolean ascending)
BrowseDAOsetAscending in interface BrowseDAOascending - true to ascend, false to descendpublic void setContainerID(int containerID)
BrowseDAOsetContainerID in interface BrowseDAOpublic void setContainerIDField(String containerIDField)
BrowseDAOsetContainerIDField in interface BrowseDAOcontainerIDField - the name of the container id field.
For example "collection_id" or "community_id"public void setContainerTable(String containerTable)
BrowseDAOsetContainerTable in interface BrowseDAOcontainerTable - the name of the container table mappingpublic void setCountValues(String[] fields)
BrowseDAOsetCountValues in interface BrowseDAOfields - an array of fields to be counted overpublic void setDistinct(boolean bool)
BrowseDAOsetDistinct in interface BrowseDAObool - true if distinct value, false if notpublic void setEqualsComparator(boolean equalsComparator)
BrowseDAOsetEqualsComparator in interface BrowseDAOequalsComparator - true to use, false to not.public void setJumpToField(String focusField)
BrowseDAOsetJumpToField in interface BrowseDAOpublic void setJumpToValue(String focusValue)
BrowseDAOsetJumpToValue in interface BrowseDAOfocusValue - the value in the focus field on which to start browsingpublic void setLimit(int limit)
BrowseDAOpublic void setOffset(int offset)
BrowseDAOpublic void setOrderField(String orderField)
BrowseDAOsetOrderField in interface BrowseDAOorderField - the field by which results will be sortedpublic void setSelectValues(String[] selectValues)
BrowseDAOsetSelectValues in interface BrowseDAOselectValues - the values to select onpublic void setTable(String table)
BrowseDAOpublic void setFilterMappingTables(String tableDis, String tableMap)
BrowseDAOsetFilterMappingTables in interface BrowseDAOtableDis - the name of the table holding the distinct valuestableMap - the name of the table holding the mappingspublic void setFilterValue(String value)
BrowseDAOsetFilterValue in interface BrowseDAOvalue - the value to which to constrain resultspublic void setFilterValuePartial(boolean part)
BrowseDAOsetFilterValuePartial in interface BrowseDAOpart - true if partial, false if exactpublic void setFilterValueField(String valueField)
BrowseDAOsetFilterValueField in interface BrowseDAOvalueField - the name of the fieldpublic boolean useEqualsComparator()
BrowseDAOuseEqualsComparator in interface BrowseDAOpublic String getAuthorityValue()
getAuthorityValue in interface BrowseDAOpublic void setAuthorityValue(String value)
setAuthorityValue in interface BrowseDAOCopyright © 2014 DuraSpace. All Rights Reserved.