edu.mit.stellar.hibernate
Class AbstractItem

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

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

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

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
AbstractItem()
          Simple constructor of AbstractItem instances.
AbstractItem(java.lang.String id)
          Constructor of AbstractItem 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.util.Set getCourseCollectionItemSet()
          Return the value of the ITEM_ID collection.
 java.util.Date getCreatedOn()
          Return the value of the CREATED_ON column.
 java.util.Date getCreationPeriod()
          Return the value of the CREATION_PERIOD column.
 java.lang.String getCreator()
          Return the value of the CREATOR column.
 java.lang.String getDescription()
          Return the value of the DESCRIPTION column.
 java.lang.String getId()
          Return the simple primary key value that identifies this object.
 java.lang.String getImageLicense()
          Return the value of the IMAGE_LICENSE column.
 java.lang.String getImageSource()
          Return the value of the IMAGE_SOURCE column.
 java.lang.String getKeywords()
          Return the value of the KEYWORDS column.
 java.lang.String getLargeImageUri()
          Return the value of the LARGE_IMAGE_URI column.
 java.lang.String getMediumImageUri()
          Return the value of the MEDIUM_IMAGE_URI column.
 java.lang.String getMimeType()
          Return the value of the MIME_TYPE column.
 java.lang.String getThumbnailUri()
          Return the value of the THUMBNAIL_URI column.
 java.lang.String getTitle()
          Return the value of the TITLE 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 setCourseCollectionItemSet(java.util.Set courseCollectionItemSet)
          Set the value of the ITEM_ID collection.
 void setCreatedOn(java.util.Date createdOn)
          Set the value of the CREATED_ON column.
 void setCreationPeriod(java.util.Date creationPeriod)
          Set the value of the CREATION_PERIOD column.
 void setCreator(java.lang.String creator)
          Set the value of the CREATOR column.
 void setDescription(java.lang.String description)
          Set the value of the DESCRIPTION column.
 void setId(java.lang.String id)
          Set the simple primary key value that identifies this object.
 void setImageLicense(java.lang.String imageLicense)
          Set the value of the IMAGE_LICENSE column.
 void setImageSource(java.lang.String imageSource)
          Set the value of the IMAGE_SOURCE column.
 void setKeywords(java.lang.String keywords)
          Set the value of the KEYWORDS column.
 void setLargeImageUri(java.lang.String largeImageUri)
          Set the value of the LARGE_IMAGE_URI column.
 void setMediumImageUri(java.lang.String mediumImageUri)
          Set the value of the MEDIUM_IMAGE_URI column.
 void setMimeType(java.lang.String mimeType)
          Set the value of the MIME_TYPE column.
 void setThumbnailUri(java.lang.String thumbnailUri)
          Set the value of the THUMBNAIL_URI column.
 void setTitle(java.lang.String title)
          Set the value of the TITLE column.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractItem

public AbstractItem()
Simple constructor of AbstractItem instances.


AbstractItem

public AbstractItem(java.lang.String id)
Constructor of AbstractItem instances given a simple primary key.

Parameters:
id -
Method Detail

getId

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

Returns:
java.lang.String

setId

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

Parameters:
id -

getMimeType

public java.lang.String getMimeType()
Return the value of the MIME_TYPE column.

Returns:
java.lang.String

setMimeType

public void setMimeType(java.lang.String mimeType)
Set the value of the MIME_TYPE column.

Parameters:
mimeType -

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 -

getDescription

public java.lang.String getDescription()
Return the value of the DESCRIPTION column.

Returns:
java.lang.String

setDescription

public void setDescription(java.lang.String description)
Set the value of the DESCRIPTION column.

Parameters:
description -

getKeywords

public java.lang.String getKeywords()
Return the value of the KEYWORDS column.

Returns:
java.lang.String

setKeywords

public void setKeywords(java.lang.String keywords)
Set the value of the KEYWORDS column.

Parameters:
keywords -

getImageLicense

public java.lang.String getImageLicense()
Return the value of the IMAGE_LICENSE column.

Returns:
java.lang.String

setImageLicense

public void setImageLicense(java.lang.String imageLicense)
Set the value of the IMAGE_LICENSE column.

Parameters:
imageLicense -

getImageSource

public java.lang.String getImageSource()
Return the value of the IMAGE_SOURCE column.

Returns:
java.lang.String

setImageSource

public void setImageSource(java.lang.String imageSource)
Set the value of the IMAGE_SOURCE column.

Parameters:
imageSource -

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 -

getCreator

public java.lang.String getCreator()
Return the value of the CREATOR column.

Returns:
java.lang.String

setCreator

public void setCreator(java.lang.String creator)
Set the value of the CREATOR column.

Parameters:
creator -

getCreationPeriod

public java.util.Date getCreationPeriod()
Return the value of the CREATION_PERIOD column.

Returns:
java.util.Date

setCreationPeriod

public void setCreationPeriod(java.util.Date creationPeriod)
Set the value of the CREATION_PERIOD column.

Parameters:
creationPeriod -

getThumbnailUri

public java.lang.String getThumbnailUri()
Return the value of the THUMBNAIL_URI column.

Returns:
java.lang.String

setThumbnailUri

public void setThumbnailUri(java.lang.String thumbnailUri)
Set the value of the THUMBNAIL_URI column.

Parameters:
thumbnailUri -

getMediumImageUri

public java.lang.String getMediumImageUri()
Return the value of the MEDIUM_IMAGE_URI column.

Returns:
java.lang.String

setMediumImageUri

public void setMediumImageUri(java.lang.String mediumImageUri)
Set the value of the MEDIUM_IMAGE_URI column.

Parameters:
mediumImageUri -

getLargeImageUri

public java.lang.String getLargeImageUri()
Return the value of the LARGE_IMAGE_URI column.

Returns:
java.lang.String

setLargeImageUri

public void setLargeImageUri(java.lang.String largeImageUri)
Set the value of the LARGE_IMAGE_URI column.

Parameters:
largeImageUri -

getCourseCollectionItemSet

public java.util.Set getCourseCollectionItemSet()
Return the value of the ITEM_ID collection.

Returns:
CourseCollectionItem

setCourseCollectionItemSet

public void setCourseCollectionItemSet(java.util.Set courseCollectionItemSet)
Set the value of the ITEM_ID collection.

Parameters:
courseCollectionItemSet -

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.