public interface BrowseDAO
| 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(java.lang.String column,
java.lang.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.
|
java.lang.String |
doMaxQuery(java.lang.String column,
java.lang.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(java.lang.String column,
java.lang.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.
|
java.util.List<BrowseItem> |
doQuery()
This executes a query which returns a List object containing BrowseItem objects
representing the results of a full item browse.
|
java.util.List<java.lang.String[]> |
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).
|
java.lang.String |
getAuthorityValue() |
int |
getContainerID()
Get the database ID of the container object.
|
java.lang.String |
getContainerIDField()
get the name of the field in which to look for the container id.
|
java.lang.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
|
java.lang.String[] |
getCountValues()
Get the array of fields that we will be counting on.
|
java.lang.String |
getFilterValue()
Get the value which we are constraining all our browse results to contain.
|
java.lang.String |
getFilterValueField()
Get the name of the field in which the value to constrain results is
contained
|
java.lang.String |
getJumpToField()
Get the field in which we will match a focus value from which to start
the browse.
|
java.lang.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.
|
java.lang.String |
getOrderField()
Get the database field which will be used to do the sorting of result sets on.
|
java.lang.String[] |
getSelectValues()
Get the array of values that we will be selecting on.
|
java.lang.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(java.lang.String value) |
void |
setContainerID(int containerID)
Set the database id of the container object.
|
void |
setContainerIDField(java.lang.String containerIDField)
set the name of the field in which to look for the container id.
|
void |
setContainerTable(java.lang.String containerTable)
If we have specified a container id and container field, we must also specify
a container table.
|
void |
setCountValues(java.lang.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(java.lang.String tableDis,
java.lang.String tableMap)
Set the name of the mapping tables to use for filtering
|
void |
setFilterValue(java.lang.String value)
Set the value to which all our browse results should be constrained.
|
void |
setFilterValueField(java.lang.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(java.lang.String focusField)
Set the focus field upon which we will match a value from which to start
the browse.
|
void |
setJumpToValue(java.lang.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(java.lang.String orderField)
Set the database field which will be used to sort result sets on
|
void |
setSelectValues(java.lang.String[] selectValues)
Set the array of values to select on.
|
void |
setTable(java.lang.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.
|
int doCountQuery()
throws BrowseException
BrowseExceptionjava.util.List<java.lang.String[]> doValueQuery()
throws BrowseException
BrowseExceptionjava.util.List<BrowseItem> doQuery() throws BrowseException
BrowseExceptionjava.lang.String doMaxQuery(java.lang.String column,
java.lang.String table,
int itemID)
throws BrowseException
column - the column to interrogatetable - the table to queryitemID - the item idBrowseExceptionint doOffsetQuery(java.lang.String column,
java.lang.String value,
boolean isAscending)
throws BrowseException
column - the column to interrogatevalue - the item idisAscending - browsing in ascending or descending orderBrowseExceptionint doDistinctOffsetQuery(java.lang.String column,
java.lang.String value,
boolean isAscending)
throws BrowseException
column - the column to interrogatevalue - the item idisAscending - browsing in ascending or descending orderBrowseExceptionboolean useEqualsComparator()
void setEqualsComparator(boolean equalsComparator)
equalsComparator - true to use, false to not.boolean isAscending()
void setAscending(boolean ascending)
ascending - true to ascend, false to descendint getContainerID()
void setContainerID(int containerID)
containerID - java.lang.String getContainerIDField()
void setContainerIDField(java.lang.String containerIDField)
containerIDField - the name of the container id field.
For example "collection_id" or "community_id"java.lang.String getJumpToField()
void setJumpToField(java.lang.String focusField)
java.lang.String getJumpToValue()
void setJumpToValue(java.lang.String focusValue)
focusValue - the value in the focus field on which to start browsingint getLimit()
void setLimit(int limit)
limit - the maximum number of results to return.int getOffset()
void setOffset(int offset)
offset - java.lang.String getOrderField()
void setOrderField(java.lang.String orderField)
orderField - the field by which results will be sortedjava.lang.String[] getSelectValues()
void setSelectValues(java.lang.String[] selectValues)
selectValues - the values to select onjava.lang.String[] getCountValues()
void setCountValues(java.lang.String[] fields)
fields - an array of fields to be counted overjava.lang.String getTable()
void setTable(java.lang.String table)
table - the name of the tablevoid setFilterMappingTables(java.lang.String tableDis,
java.lang.String tableMap)
tableDis - the name of the table holding the distinct valuestableMap - the name of the table holding the mappingsjava.lang.String getFilterValue()
void setFilterValue(java.lang.String value)
value - the value to which to constrain resultsvoid setFilterValuePartial(boolean part)
part - true if partial, false if exactjava.lang.String getFilterValueField()
void setFilterValueField(java.lang.String valueField)
valueField - the name of the fieldvoid setDistinct(boolean bool)
bool - true if distinct value, false if notboolean isDistinct()
void setContainerTable(java.lang.String containerTable)
containerTable - the name of the container table mappingjava.lang.String getContainerTable()
void setAuthorityValue(java.lang.String value)
java.lang.String getAuthorityValue()
boolean isEnableBrowseFrequencies()
void setEnableBrowseFrequencies(boolean enableBrowseFrequencies)
Copyright © 2018 DuraSpace. All Rights Reserved.