edu.mit.stellar.hibernate
Class AbstractItemAnnotation

java.lang.Object
  extended byedu.mit.stellar.hibernate.AbstractItemAnnotation
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ItemAnnotation

public abstract class AbstractItemAnnotation
extends java.lang.Object
implements java.io.Serializable

A class that represents a row in the ITEM_ANNOTATION table. You can customize the behavior of this class by editing the class, ItemAnnotation().

Version:
$Revision: 1385 $, $Date: 2006-08-11 18:43:20 -0400 (Fri, 11 Aug 2006) $
Author:
MIT Stellar team
See Also:
Serialized Form

Constructor Summary
AbstractItemAnnotation()
          Simple constructor of AbstractItemAnnotation instances.
AbstractItemAnnotation(java.lang.Long id)
          Constructor of AbstractItemAnnotation instances given a simple primary key.
 
Method Summary
 boolean equals(java.lang.Object rhs)
          Implementation of the equals comparison on the basis of equality of the primary key values.
 java.lang.String getComments()
          Return the value of the COMMENTS column.
 CourseCollectionItem getCourseCollectionItem()
          Return the value of the COURSE_COLLECTION_ITEM_ID column.
 java.util.Date getCreatedOn()
          Return the value of the CREATED_ON column.
 java.lang.Long getId()
          Return the simple primary key value that identifies this object.
 java.lang.String getTitle()
          Return the value of the TITLE column.
 User getUser()
          Return the value of the CREATED_BY column.
 int hashCode()
          Implementation of the hashCode method conforming to the Bloch pattern with the exception of array properties (these are very unlikely primary key types).
 void setComments(java.lang.String comments)
          Set the value of the COMMENTS column.
 void setCourseCollectionItem(CourseCollectionItem courseCollectionItem)
          Set the value of the COURSE_COLLECTION_ITEM_ID column.
 void setCreatedOn(java.util.Date createdOn)
          Set the value of the CREATED_ON column.
 void setId(java.lang.Long id)
          Set the simple primary key value that identifies this object.
 void setTitle(java.lang.String title)
          Set the value of the TITLE column.
 void setUser(User user)
          Set the value of the CREATED_BY column.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractItemAnnotation

public AbstractItemAnnotation()
Simple constructor of AbstractItemAnnotation instances.


AbstractItemAnnotation

public AbstractItemAnnotation(java.lang.Long id)
Constructor of AbstractItemAnnotation instances given a simple primary key.

Parameters:
id -
Method Detail

getId

public java.lang.Long getId()
Return the simple primary key value that identifies this object.

Returns:
java.lang.Long

setId

public void setId(java.lang.Long id)
Set the simple primary key value that identifies this object.

Parameters:
id -

getCourseCollectionItem

public CourseCollectionItem getCourseCollectionItem()
Return the value of the COURSE_COLLECTION_ITEM_ID column.

Returns:
CourseCollectionItem

setCourseCollectionItem

public void setCourseCollectionItem(CourseCollectionItem courseCollectionItem)
Set the value of the COURSE_COLLECTION_ITEM_ID column.

Parameters:
courseCollectionItem -

getTitle

public java.lang.String getTitle()
Return the value of the TITLE column.

Returns:
java.lang.String

setTitle

public void setTitle(java.lang.String title)
Set the value of the TITLE column.

Parameters:
title -

getUser

public User getUser()
Return the value of the CREATED_BY column.

Returns:
User

setUser

public void setUser(User user)
Set the value of the CREATED_BY column.


getComments

public java.lang.String getComments()
Return the value of the COMMENTS column.

Returns:
java.lang.String

setComments

public void setComments(java.lang.String comments)
Set the value of the COMMENTS column.

Parameters:
comments -

getCreatedOn

public java.util.Date getCreatedOn()
Return the value of the CREATED_ON column.

Returns:
java.util.Date

setCreatedOn

public void setCreatedOn(java.util.Date createdOn)
Set the value of the CREATED_ON column.

Parameters:
createdOn -

equals

public boolean equals(java.lang.Object rhs)
Implementation of the equals comparison on the basis of equality of the primary key values.

Parameters:
rhs -
Returns:
boolean

hashCode

public int hashCode()
Implementation of the hashCode method conforming to the Bloch pattern with the exception of array properties (these are very unlikely primary key types).

Returns:
int


Copyright 2005-2005-2006 MIT AMPS. All Rights Reserved.