|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.histpop.server.objects.ServerObject
org.histpop.server.objects.PersistentObject
org.histpop.ohpr.entities.MasterNumber
public class MasterNumber
Persistent object representing a master number volume item. This object corresponds to a row from the master number database table. Its properties describe an item such as a Census or General Registrar bound volume. The properties are read in from the fields of the SQL table row.
Field Summary | |
---|---|
protected static java.util.Hashtable |
cache
|
static java.lang.String |
FIELD_ABSTRACT
SQL field name for the master number abstract |
static java.lang.String |
FIELD_ALT_TITLE
SQL field name for the alternative (short) title |
static java.lang.String |
FIELD_COMMAND_NO
SQL field name for the command number |
static java.lang.String |
FIELD_COMMENTS
SQL field name for the master number volume comments |
static java.lang.String |
FIELD_FIRST_HIT
SQL field name for the aggregated first hit |
static java.lang.String |
FIELD_FIRST_PAGE_SEQ
SQL field name for the page sequence of the first page |
static java.lang.String |
FIELD_FULL_TITLE
SQL field name for the full title |
static java.lang.String |
FIELD_GEOGRAPHY
SQL field name for the geography |
static java.lang.String |
FIELD_GEOGRAPHY_CODE
SQL field name for the geography codes |
static java.lang.String |
FIELD_GROUP_END_YEAR
SQL field name for the end of the year range |
static java.lang.String |
FIELD_GROUP_START_YEAR
SQL field name for the start of the year range |
static java.lang.String |
FIELD_INCLUDING_DOC_TITLE
SQL field name for the aggregated property 'including_doc_title' |
static java.lang.String |
FIELD_ITEM_COUNT
SQL field name for the items count (an aggregated property for browse tree nodes) |
static java.lang.String |
FIELD_MASTER_NUMBER
SQL field name for the master number |
static java.lang.String |
FIELD_MNO_SEQUENCE
SQL field name for the master number default sequence |
static java.lang.String |
FIELD_NO_TOC
SQL field name for the No ToC flag |
static java.lang.String |
FIELD_PAGE_COUNT
SQL field name for the pages count (an aggregated property for browse tree nodes) |
static java.lang.String |
FIELD_PAGES_COUNT
SQL field name for the aggregated pages count |
static java.lang.String |
FIELD_PP_YEAR
SQL field name for the PP year |
static java.lang.String |
FIELD_QUALITY
SQL field name for the master number quality comments |
static java.lang.String |
FIELD_RELEVANCE_END_YEAR
SQL field name for the end of the year range |
static java.lang.String |
FIELD_RELEVANCE_START_YEAR
SQL field name for the start of the year range |
static java.lang.String |
FIELD_RESOURCE_CODE
SQL field name for the resource code |
static java.lang.String |
FIELD_RESOURCE_CODE_SORT
SQL field name for the resource code sort order |
static java.lang.String |
FIELD_RESOURCE_SORT
SQL field name for the resource sort attribute |
static java.lang.String |
FIELD_RESOURCE_TYPE
SQL field name for the resource type |
static java.lang.String |
FIELD_TITLES_COUNT
SQL field name for the aggregated titles count |
static java.lang.String |
FIELD_VOLUME
SQL field name for the volume |
static java.lang.String |
FIELD_YEAR_RANGE
SQL field name for the year range. |
static java.lang.String |
ORDER_EXPR_1
One of the possible SQL order clauses: resource-type, date, geography |
static java.lang.String |
ORDER_EXPR_2
One of the possible SQL order clauses: resource-type, geography, date |
static java.lang.String |
ORDER_EXPR_3
One of the possible SQL order clauses: geography, resource-type, date |
static java.lang.String |
RESOURCE_CODE_ESSAYS
The resource code for Essays |
static java.lang.String |
RESOURCE_CODE_LEGISLATION
The resource code for Legislation |
static java.lang.String |
RESOURCE_CODE_LEGISLATION_CENSUS
The resource code for Legislation( Census ) |
static java.lang.String |
RESOURCE_CODE_LEGISLATION_REGISTRATION
The resource code for Legislation( Registration ) |
static java.lang.String |
RESOURCE_CODE_TNA
The resource code for The National Archives |
static java.lang.String |
type
|
Fields inherited from class org.histpop.server.objects.ServerObject |
---|
ID, methods, OBJECT, properties |
Constructor Summary | |
---|---|
MasterNumber()
|
|
MasterNumber(java.lang.String id)
|
Method Summary | |
---|---|
static Bag |
browseQuery(java.lang.String queryTemplate)
Perform a DB query returning a collection of persistent objects needed for constructing a browse tree. |
static void |
clearCache()
|
static MasterNumber |
findTitle(java.lang.Integer mno)
Find a persistent object for a given master number. |
static java.util.Hashtable |
getCache()
|
java.lang.String |
getType()
|
static Bag |
searchQuery(java.lang.String[] searchExpr,
java.lang.String filterExpr,
java.lang.String order)
Perform a DB query returning a collection of persistent objects needed for constructing a browse tree for the search results. |
void |
setType(java.lang.String type)
|
static Bag |
titlesQuery(java.lang.String condition,
java.lang.String order)
Perform a DB query returning a collection of persistent objects needed for displaying the master number volume titles. |
static Bag |
titlesQuery2(java.lang.String[] searchExpr,
java.lang.String filterExpr,
java.lang.String order)
Perform a DB query returning a collection of persistent objects needed for listing the search result titles. |
Methods inherited from class org.histpop.server.objects.PersistentObject |
---|
delete, destroy, filter, getBooleanProperty, getFieldList, getID, getIntegerProperty, getPrimaryKey, getPropertyNames, getRepository, getRepository, getStatements, init, insert, list, load, save, setPrimaryKey, setRepository, Update |
Methods inherited from class org.histpop.server.objects.ServerObject |
---|
addMethod, getMethod, getMethodList, getProperties, getProperty, init, isReadOnly, setID, setProperties, setProperty, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String type
protected static java.util.Hashtable cache
public static final java.lang.String FIELD_MASTER_NUMBER
public static final java.lang.String FIELD_FULL_TITLE
public static final java.lang.String FIELD_TITLES_COUNT
public static final java.lang.String FIELD_PAGES_COUNT
public static final java.lang.String FIELD_FIRST_HIT
public static final java.lang.String FIELD_RESOURCE_TYPE
public static final java.lang.String FIELD_RESOURCE_CODE
public static final java.lang.String FIELD_RESOURCE_SORT
public static final java.lang.String FIELD_RESOURCE_CODE_SORT
public static final java.lang.String FIELD_YEAR_RANGE
FIELD_GROUP_START_YEAR
and
FIELD_GROUP_END_YEAR
public static final java.lang.String FIELD_GROUP_START_YEAR
public static final java.lang.String FIELD_GROUP_END_YEAR
public static final java.lang.String FIELD_RELEVANCE_START_YEAR
public static final java.lang.String FIELD_RELEVANCE_END_YEAR
public static final java.lang.String FIELD_GEOGRAPHY
public static final java.lang.String FIELD_GEOGRAPHY_CODE
public static final java.lang.String FIELD_MNO_SEQUENCE
public static final java.lang.String FIELD_ABSTRACT
public static final java.lang.String FIELD_ALT_TITLE
public static final java.lang.String FIELD_VOLUME
public static final java.lang.String FIELD_COMMAND_NO
public static final java.lang.String FIELD_PP_YEAR
public static final java.lang.String FIELD_ITEM_COUNT
public static final java.lang.String FIELD_PAGE_COUNT
public static final java.lang.String FIELD_INCLUDING_DOC_TITLE
public static final java.lang.String FIELD_FIRST_PAGE_SEQ
public static final java.lang.String FIELD_NO_TOC
public static final java.lang.String FIELD_COMMENTS
public static final java.lang.String FIELD_QUALITY
public static final java.lang.String ORDER_EXPR_1
public static final java.lang.String ORDER_EXPR_2
public static final java.lang.String ORDER_EXPR_3
public static final java.lang.String RESOURCE_CODE_ESSAYS
public static final java.lang.String RESOURCE_CODE_LEGISLATION
public static final java.lang.String RESOURCE_CODE_LEGISLATION_CENSUS
public static final java.lang.String RESOURCE_CODE_LEGISLATION_REGISTRATION
public static final java.lang.String RESOURCE_CODE_TNA
Constructor Detail |
---|
public MasterNumber()
public MasterNumber(java.lang.String id)
Method Detail |
---|
public void setType(java.lang.String type)
setType
in class ServerObject
public java.lang.String getType()
getType
in class ServerObject
public static java.util.Hashtable getCache()
public static void clearCache()
public static Bag browseQuery(java.lang.String queryTemplate) throws ServerException
queryTemplate
- The name of a pre-defined SQL query template.
ServerException
public static Bag titlesQuery(java.lang.String condition, java.lang.String order) throws ServerException
condition
- . The SQL condition built from filters and search terms.order
- A comma-separated list of SQL field names by which to order the results.
ServerException
public static Bag searchQuery(java.lang.String[] searchExpr, java.lang.String filterExpr, java.lang.String order) throws ServerException
searchExpr
- The SQL condition built from the search terms.filterExpr
- The SQL condition built from the submitted
resource types, geographies and dates.order
- A comma-separated list of SQL field names by which to order the results.
ServerException
public static Bag titlesQuery2(java.lang.String[] searchExpr, java.lang.String filterExpr, java.lang.String order) throws ServerException
searchExpr
- The SQL condition built from the search terms.filterExpr
- The SQL condition built from the submitted
resource types, geographies and dates.order
- A comma-separated list of SQL field names by which to order the results.
ServerException
public static MasterNumber findTitle(java.lang.Integer mno) throws ServerException
ServerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |