com.arsdigita.search.lucene
Class Document

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.search.lucene.Document

public class Document
extends DomainObject

Document.

Version:
$Revision: #4 $ $Date: 2004/04/07 $
Author:
rhs@mit.edu

Field Summary
static String BASE_DATA_OBJECT_TYPE
           
static String CONTENT
           
static String COUNTRY
           
static String CREATION_DATE
           
static String CREATION_PARTY
           
static String ID
           
static String LANGUAGE
           
static String LAST_MODIFIED_DATE
           
static String LAST_MODIFIED_PARTY
           
static String SUMMARY
           
static String TITLE
           
static String TYPE
           
static String TYPE_SPECIFIC_INFO
           
static String versionId
           
 
Method Summary
protected  void beforeSave()
           
protected static Document create(BigDecimal id)
           
 String getContent()
           
 Date getCreationDate()
           
 BigDecimal getCreationParty()
           
 BigDecimal getID()
           
 Date getLastModifiedDate()
           
 BigDecimal getLastModifiedParty()
           
 Locale getLocale()
           
 String getSummary()
           
 Date getTimestamp()
           
 String getTitle()
           
 String getType()
           
 String getTypeSpecificInfo()
           
 void initialize()
          Called from all of the DomainObject constructors to initalize or validate the new domain object or its encapsulated data object.
 boolean isDeleted()
          Returns true if this persistent object has been deleted from the database.
protected static Document retrieve(BigDecimal id)
           
protected static Document retrieve(DataObject data)
           
 void setContent(String content)
           
 void setCreationDate(Date creationDate)
           
 void setCreationParty(BigDecimal creationParty)
           
 void setDeleted(boolean value)
           
 void setLastModifiedDate(Date lastModifiedDate)
           
 void setLastModifiedParty(BigDecimal lastModifiedParty)
           
 void setLocale(Locale locale)
           
 void setSummary(String summary)
           
 void setTitle(String title)
           
 void setType(String type)
           
 void setTypeSpecificInfo(String info)
           
 
Methods inherited from class com.arsdigita.domain.DomainObject
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, clear, delete, disconnect, equals, get, getBaseDataObjectType, getObjectType, getOID, getSession, hashCode, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

BASE_DATA_OBJECT_TYPE

public static final String BASE_DATA_OBJECT_TYPE
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values

LANGUAGE

public static final String LANGUAGE
See Also:
Constant Field Values

COUNTRY

public static final String COUNTRY
See Also:
Constant Field Values

TYPE

public static final String TYPE
See Also:
Constant Field Values

TYPE_SPECIFIC_INFO

public static final String TYPE_SPECIFIC_INFO
See Also:
Constant Field Values

TITLE

public static final String TITLE
See Also:
Constant Field Values

SUMMARY

public static final String SUMMARY
See Also:
Constant Field Values

CONTENT

public static final String CONTENT
See Also:
Constant Field Values

CREATION_DATE

public static final String CREATION_DATE
See Also:
Constant Field Values

CREATION_PARTY

public static final String CREATION_PARTY
See Also:
Constant Field Values

LAST_MODIFIED_DATE

public static final String LAST_MODIFIED_DATE
See Also:
Constant Field Values

LAST_MODIFIED_PARTY

public static final String LAST_MODIFIED_PARTY
See Also:
Constant Field Values
Method Detail

create

protected static final Document create(BigDecimal id)

retrieve

protected static final Document retrieve(BigDecimal id)

retrieve

protected static final Document retrieve(DataObject data)

initialize

public void initialize()
Description copied from class: DomainObject
Called from all of the DomainObject constructors to initalize or validate the new domain object or its encapsulated data object. This was introduced in order to support efficient validation of the encapsualted data object's type. If the validation is typically performed in class constructors, then redundant validation is performed in superclass constructors. This validation now occurs here.

Overrides:
initialize in class DomainObject

getID

public BigDecimal getID()

setType

public void setType(String type)

getType

public String getType()

setTypeSpecificInfo

public void setTypeSpecificInfo(String info)

getTypeSpecificInfo

public String getTypeSpecificInfo()

getTimestamp

public Date getTimestamp()

setDeleted

public void setDeleted(boolean value)

isDeleted

public boolean isDeleted()
Description copied from class: DomainObject
Returns true if this persistent object has been deleted from the database. This does a database hit to check.

Overrides:
isDeleted in class DomainObject
Returns:
True if the object has been deleted

setLocale

public void setLocale(Locale locale)

getLocale

public Locale getLocale()

setTitle

public void setTitle(String title)

getTitle

public String getTitle()

setSummary

public void setSummary(String summary)

getSummary

public String getSummary()

setContent

public void setContent(String content)

getContent

public String getContent()

setCreationDate

public void setCreationDate(Date creationDate)

getCreationDate

public Date getCreationDate()

setCreationParty

public void setCreationParty(BigDecimal creationParty)

getCreationParty

public BigDecimal getCreationParty()

setLastModifiedDate

public void setLastModifiedDate(Date lastModifiedDate)

getLastModifiedDate

public Date getLastModifiedDate()

setLastModifiedParty

public void setLastModifiedParty(BigDecimal lastModifiedParty)

getLastModifiedParty

public BigDecimal getLastModifiedParty()

beforeSave

protected void beforeSave()
Overrides:
beforeSave in class DomainObject


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC