FileDocCategorySizeDatePackage
Document.javaAPI DocHibernate 3.2.51808Fri Aug 05 18:03:46 BST 2005org.hibernate.test.lazycache

Document

public class Document extends Object
author
Gavin King

Fields Summary
private Long
id
private String
name
private String
upperCaseName
private String
summary
private String
text
private Date
lastTextModification
Constructors Summary
public Document(String name, String summary, String text)

		lastTextModification = new Date();
		this.name = name;
		upperCaseName = name.toUpperCase();
		this.summary = summary;
		this.text = text;
	
Document()

Methods Summary
public java.lang.LonggetId()

return
Returns the id.

		return id;
	
public java.util.DategetLastTextModification()

		return lastTextModification;
	
public java.lang.StringgetName()

return
Returns the name.

		return name;
	
public java.lang.StringgetSummary()

return
Returns the summary.

		return summary;
	
public java.lang.StringgetText()

return
Returns the text.

		return text;
	
public java.lang.StringgetUpperCaseName()

return
Returns the upperCaseName.

		return upperCaseName;
	
public voidsetId(java.lang.Long id)

param
id The id to set.

		this.id = id;
	
public voidsetName(java.lang.String name)

param
name The name to set.

		this.name = name;
	
public voidsetSummary(java.lang.String summary)

param
summary The summary to set.

		this.summary = summary;
	
private voidsetText(java.lang.String text)

param
text The text to set.

		this.text = text;
	
public voidsetUpperCaseName(java.lang.String upperCaseName)

param
upperCaseName The upperCaseName to set.

		this.upperCaseName = upperCaseName;
	
public voidupdateText(java.lang.String newText)

		if ( !newText.equals(text) ) {
			this.text = newText;
			lastTextModification = new Date();
		}