Changeset 4082


Ignore:
Timestamp:
Jan 15, 2008, 3:38:03 PM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #879: Add column holding the filename of last file used for updating reporter annotations

Location:
trunk/src/core/net/sf/basedb/core
Files:
3 edited

Legend:

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

    r4076 r4082  
    269269    for last update source will be set to n/a.       
    270270    @param source The source to be set. The format of the source string
    271       should be like: "[item_type]:[item_name]"   
     271      should be like: "[item_type]:[item_name]" 
     272    @throws StringTooLongException If the source is longer that
     273      {@link ReporterData#MAX_LAST_SOURCE_LENGTH}
    272274   */
    273275  public void setUpdateSource(String source)
    274276  {
    275     this.updateSource = source;
     277    this.updateSource = StringUtil.setNullableString(source, "source", ReporterData.MAX_LAST_SOURCE_LENGTH);
    276278  }
    277279}
  • trunk/src/core/net/sf/basedb/core/Update.java

    r4080 r4082  
    553553    </td>
    554554  </tr>
    555 
     555  <tr>
     556    <td>48</td>
     557    <td>
     558      <ul>
     559      <li>Added {@link net.sf.basedb.core.data.ReporterData#getLastSource()}.
     560      </ul>
     561      No special database update is needed. Only increase the schema version.
     562    </td>
     563  </tr>
    556564  <tr>
    557565    <td>49</td>
  • trunk/src/core/net/sf/basedb/core/data/ReporterData.java

    r4075 r4082  
    119119 
    120120  /**
     121    The maximum length of the last source that can be stored in the
     122    database.
     123  */
     124  public static final int MAX_LAST_SOURCE_LENGTH = 255;
     125  /**
    121126    The source of the last update
    122127   */
     
    126131    was last updated.
    127132    @return A <code>String</code> object
    128     @hibernate.property column="`last_source`" type="string" not-null="false"
     133    @hibernate.property column="`last_source`" type="string" not-null="false" length="255"
    129134   */
    130135  public String getLastSource()
Note: See TracChangeset for help on using the changeset viewer.