Changeset 3957


Ignore:
Timestamp:
Nov 13, 2007, 2:31:55 PM (14 years ago)
Author:
Martin Svensson
Message:

References #823 Info classes implement Serializable-interface.
Added missing fields to ProjectInfo? and set them in Project.toInfo(..).

Location:
trunk/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/Project.java

    r3956 r3957  
    585585  {
    586586    super.toInfo(info);
     587    info.setDescription(this.getDescription());
     588    info.setName(this.getName());
    587589    return info;
    588590  }
  • trunk/src/info/net/sf/basedb/info/ArrayDesignInfo.java

    r3956 r3957  
    2424package net.sf.basedb.info;
    2525
     26import java.io.Serializable;
     27
    2628
    2729/**
     
    3537public class ArrayDesignInfo
    3638  extends AnnotatedItemInfo
     39    implements Serializable
    3740{
    3841  private int numDbFeatures = 0;
  • trunk/src/info/net/sf/basedb/info/BasicItemInfo.java

    r3956 r3957  
    2626
    2727/**
    28  
    2928    @author Martin
    3029    @version 2.5
  • trunk/src/info/net/sf/basedb/info/BioAssaySetInfo.java

    r3956 r3957  
    2424package net.sf.basedb.info;
    2525
     26import java.io.Serializable;
     27
    2628
    2729/**
     
    3537public class BioAssaySetInfo
    3638  extends BasicItemInfo
    37     implements NameableInfo
     39    implements NameableInfo, Serializable
    3840{
    3941  private String name;
  • trunk/src/info/net/sf/basedb/info/DataFileTypeInfo.java

    r3956 r3957  
    2424package net.sf.basedb.info;
    2525
     26import java.io.Serializable;
     27
    2628
    2729/**
     
    3638public class DataFileTypeInfo
    3739  extends BasicItemInfo
    38     implements NameableInfo
     40    implements NameableInfo, Serializable
    3941{
    4042  private String externalId = null;
  • trunk/src/info/net/sf/basedb/info/ExperimentInfo.java

    r3956 r3957  
    2626
    2727
     28import java.io.Serializable;
    2829import java.util.Date;
    2930
     
    3940public class ExperimentInfo
    4041  extends CommonItemInfo
     42    implements Serializable
    4143{
    4244  private String abstractText = null;
  • trunk/src/info/net/sf/basedb/info/ProjectInfo.java

    r3956 r3957  
    2424package net.sf.basedb.info;
    2525
     26import java.io.Serializable;
     27
    2628
    2729/**
     
    3537public class ProjectInfo
    3638  extends OwnedItemInfo
     39  implements Serializable, NameableInfo
    3740{
     41  private String description;
     42  private String name;
     43 
    3844  /**
    3945    Creates a new empty info object
     
    4349    super();
    4450  }
     51
     52  public String getDescription()
     53  {
     54    return description;
     55  }
     56
     57  public String getName()
     58  {
     59    return name;
     60  }
     61
     62  public void setDescription(String description)
     63  {
     64    this.description = description;
     65  }
     66
     67  public void setName(String name)
     68  {
     69    this.name = name;
     70  }
    4571}
  • trunk/src/info/net/sf/basedb/info/RawBioAssayInfo.java

    r3956 r3957  
    2424package net.sf.basedb.info;
    2525
     26import java.io.Serializable;
     27
    2628
    2729/**
     
    3537public class RawBioAssayInfo
    3638  extends AnnotatedItemInfo
     39    implements Serializable
    3740{
    3841
Note: See TracChangeset for help on using the changeset viewer.