Changeset 3959


Ignore:
Timestamp:
Nov 13, 2007, 4:30:19 PM (14 years ago)
Author:
Martin Svensson
Message:

References #823 Added a serialVersionUID to the info classes that implements serializable.
Added two new methods, getVersion and getSchemaVersion, to SessionService?

Location:
trunk/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/info/net/sf/basedb/info/ArrayDesignInfo.java

    r3957 r3959  
    3939    implements Serializable
    4040{
     41  private static final long serialVersionUID = 5869031159593261755L;
    4142  private int numDbFeatures = 0;
    4243  private int numFileFeatures = 0;
  • trunk/src/info/net/sf/basedb/info/BioAssaySetInfo.java

    r3957 r3959  
    3939    implements NameableInfo, Serializable
    4040{
     41  private static final long serialVersionUID = -1192040975292178464L;
    4142  private String name;
    4243  private String description;
  • trunk/src/info/net/sf/basedb/info/DataFileTypeInfo.java

    r3957 r3959  
    4040    implements NameableInfo, Serializable
    4141{
     42  private static final long serialVersionUID = 4331580958109079719L;
    4243  private String externalId = null;
    4344  private String extension = null;
  • trunk/src/info/net/sf/basedb/info/ExperimentInfo.java

    r3957 r3959  
    4242    implements Serializable
    4343{
     44  private static final long serialVersionUID = 7973320584668351841L;
    4445  private String abstractText = null;
    4546  private String affiliations = null;
  • trunk/src/info/net/sf/basedb/info/ProjectInfo.java

    r3957 r3959  
    3939  implements Serializable, NameableInfo
    4040{
     41  private static final long serialVersionUID = -4415516272028020474L;
    4142  private String description;
    4243  private String name;
  • trunk/src/info/net/sf/basedb/info/RawBioAssayInfo.java

    r3957 r3959  
    4040{
    4141
     42  private static final long serialVersionUID = 2573863131262198133L;
    4243  private int arrayDesignId = 0;
    4344  private int platformId = 0;
  • trunk/src/webservices/client/java/net/sf/basedb/ws/client/SessionClient.java

    r3876 r3959  
    129129    invokeBlocking("refreshSession", ID);
    130130  }
     131 
     132  /**   
     133      @return schema version as an int
     134      @throws AxisFault
     135   */
     136  public int getSchemaVersion()
     137    throws AxisFault
     138  {
     139    return invokeBlocking("getSchemaVersion", Integer.class);
     140  }
     141 
     142  /**
     143      @return An string array with length of 4
     144      @throws AxisFault
     145   */
     146  public String[] getVersion()
     147    throws AxisFault
     148  {
     149    return invokeBlocking("getVersion", String[].class);
     150  }
    131151}
  • trunk/src/webservices/server/net/sf/basedb/ws/server/SessionService.java

    r3908 r3959  
    2626import net.sf.basedb.core.Application;
    2727import net.sf.basedb.core.SessionControl;
     28import net.sf.basedb.core.Version;
    2829
    2930/**
     
    107108    sc.updateLastAccess();
    108109  }
     110 
     111  /**
     112    Gets the current schema version of the database
     113    on the Base server.
     114      @return SchemaVersion as an integer.
     115   */
     116  public int getSchemaVersion()
     117  {
     118    return Application.getSchemaVersion();
     119  }
     120 
     121  /**
     122    Return information about which Base version is in use.
     123    The returned array has 4 strings,
     124    <ol>
     125      <li>Major version.</li>
     126      <li>Minor version.</li>
     127      <li>MaintenanceVersion.</li>
     128      <li>Build number</li>
     129    </ol>
     130      @return An array with version information.
     131   */
     132  public String[] getVersion()
     133  {
     134    String[] version = new String[4];
     135    version[0] = Application.getMajorVersion();
     136    version[1] = Application.getMinorVersion();
     137    version[2] = Application.getMaintenanceVersion();
     138    version[3] = Integer.toString(Application.getBuild());
     139    return version;
     140  }
    109141}
Note: See TracChangeset for help on using the changeset viewer.