Changeset 3544


Ignore:
Timestamp:
Jul 2, 2007, 9:41:49 AM (14 years ago)
Author:
Martin Svensson
Message:

Fixes #191. Updating schema version and added since(javadoc) to new methods

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

Legend:

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

    r3528 r3544  
    101101    method.
    102102  */
    103   public static final int NEW_SCHEMA_VERSION = Integer.valueOf(36).intValue();
     103  public static final int NEW_SCHEMA_VERSION = Integer.valueOf(37).intValue();
    104104 
    105105  public static synchronized void createTables(boolean update, final ProgressReporter progress)
  • trunk/src/core/net/sf/basedb/core/Update.java

    r3530 r3544  
    429429    </td>
    430430  </tr>
     431 
     432  <tr>
     433    <td>37</td>
     434    <td>
     435      <ul>
     436        <li>Implement {@link net.sf.basedb.core.data.ExtendableData} to {@link net.sf.basedb.core.data.UserData}</li>
     437      </ul>
     438      Only the schemaVersion number is increased in this class, the real update work is done when the database is re-build.
     439    </td>
     440  </tr>
    431441
    432442  </table>
     
    613623      }
    614624     
    615       /*
     625     
    616626      if (schemaVersion < 37)
    617627      {
    618628        if (progress != null) progress.display((int)(36*progress_factor), "--Updating schema version: " + schemaVersion + " -> 37...");
    619629        schemaVersion = setSchemaVersionInTransaction(session, 37);
     630      }
     631     
     632      /*
     633      if (schemaVersion < 38)
     634      {
     635        if (progress != null) progress.display((int)(37*progress_factor), "--Updating schema version: " + schemaVersion + " -> 38...");
     636        schemaVersion = setSchemaVersionInTransaction(session, 38);
    620637        - or -
    621         schemaVersion = updateToSchemaVersion37(session);
     638        schemaVersion = updateToSchemaVersion38(session);
    622639      }
    623640      ... etc...
  • trunk/src/core/net/sf/basedb/core/User.java

    r3535 r3544  
    710710    @return An Object or
    711711      null if no extended property exists with the name
     712    @since 2.4
    712713  */
    713714  public Object getExtended(String name)
     
    721722    @throws PermissionDeniedException If the logged in user doesn't
    722723      have @link {Permission#WRITE} permission for the user.
     724    @since 2.4
    723725  */
    724726  public void setExtended(String name, Object value)
  • trunk/src/core/net/sf/basedb/core/data/UserData.java

    r3535 r3544  
    120120  */
    121121  private Map<String, Object> extendedProperties;
     122  /**
     123    @since 2.4
     124  */
    122125  public Object getExtended(String name)
    123126  {
    124127    return extendedProperties == null ? null : extendedProperties.get(name);
    125128  }
     129  /**
     130    @since 2.4
     131  */
    126132  public void setExtended(String name, Object value)
    127133  {
Note: See TracChangeset for help on using the changeset viewer.