uk.ac.ebi.intact.model
Class IntactObjectImpl

java.lang.Object
  |
  +--uk.ac.ebi.intact.model.IntactObjectImpl
All Implemented Interfaces:
IntactObject, java.io.Serializable
Direct Known Subclasses:
BasicObjectImpl, Institution

public abstract class IntactObjectImpl
extends java.lang.Object
implements IntactObject, java.io.Serializable

This is the top level class for all intact model object.

Version:
$Id: IntactObjectImpl.java,v 1.1 2004/01/31 11:31:41 skerrien Exp $
Author:
intact team
See Also:
Serialized Form

Field Summary
protected  java.lang.String ac
          The unique accession number of an object.
protected  java.lang.String NEW_LINE
          This is used in toString() in order to be platform compatible.
 
Constructor Summary
protected IntactObjectImpl()
          Protected constructor for use by subclasses - used to set the creation data for instances
 
Method Summary
 java.lang.String getAc()
           
 java.sql.Timestamp getCreated()
           
 java.sql.Timestamp getUpdated()
           
 void setAc(java.lang.String ac)
          Deprecated. No replacement - should not be used by applications
 void setCreated(java.util.Date created)
           
 void setUpdated(java.util.Date updated)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NEW_LINE

protected final java.lang.String NEW_LINE
This is used in toString() in order to be platform compatible.


ac

protected java.lang.String ac
The unique accession number of an object. This is defined as protected to allow concrete subclasses to generate copies if required.

Constructor Detail

IntactObjectImpl

protected IntactObjectImpl()
Protected constructor for use by subclasses - used to set the creation data for instances

Method Detail

getAc

public java.lang.String getAc()
Specified by:
getAc in interface IntactObject

setAc

public void setAc(java.lang.String ac)
Deprecated. No replacement - should not be used by applications

This method should not be used by applications, as the AC is a primary key which is auto-generated. If we move to an application server it may then be needed.

Specified by:
setAc in interface IntactObject
Parameters:
ac -

getCreated

public java.sql.Timestamp getCreated()
Specified by:
getCreated in interface IntactObject

setCreated

public void setCreated(java.util.Date created)
Specified by:
setCreated in interface IntactObject

getUpdated

public java.sql.Timestamp getUpdated()
Specified by:
getUpdated in interface IntactObject

setUpdated

public void setUpdated(java.util.Date updated)
Specified by:
setUpdated in interface IntactObject

toString

public java.lang.String toString()
Specified by:
toString in interface IntactObject
Overrides:
toString in class java.lang.Object


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk