hepdata is hosted by Hepforge, IPPP Durham

cedar.hepdata.model
Class Author

java.lang.Object
  extended by cedar.hepdata.model.Author
All Implemented Interfaces:
HDPersistable

public class Author
extends java.lang.Object
implements HDPersistable

The Principle Author on a Paper

Version:
$Date: 2006-02-02 16:35:56 +0000 (Thu, 02 Feb 2006) $ $Revision: 500 $
Author:
S Butterworth

Field Summary
static int MAXLENGTH
           
 
Constructor Summary
Author(int id)
          builds an author from an id
Author(java.lang.String description)
          Build an Author from the DB.
 
Method Summary
 java.lang.String getDescription()
           
 int getId()
          Return the author ID
 void setDescription(java.lang.String s)
           
 void setId(int id)
          Set the internal ID code
 java.lang.String toString()
          Produce a string representation of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAXLENGTH

public static final int MAXLENGTH
See Also:
Constant Field Values
Constructor Detail

Author

public Author(int id)
       throws HDException
builds an author from an id

Throws:
HDException


Author

public Author(java.lang.String description)
       throws HDException
Build an Author from the DB.

Parameters:
description - of author
Throws:
HDException

Method Detail

getId

public int getId()
Return the author ID

Specified by:
getId in interface HDPersistable
Returns:
authorId


setId

public void setId(int id)
Description copied from interface: HDPersistable
Set the internal ID code

Specified by:
setId in interface HDPersistable
Parameters:
id - internal ID used to define (part of) the


getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String s)

toString

public java.lang.String toString()
Description copied from interface: HDPersistable
Produce a string representation of the object

Specified by:
toString in interface HDPersistable
Overrides:
toString in class java.lang.Object


Generated 20060512 1623

HEPData