Changeset 6737


Ignore:
Timestamp:
2004-02-05T12:06:23+13:00 (20 years ago)
Author:
cs025
Message:

Minor adjustments to support date of accession.

Location:
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes/AbstractDocument.java

    r6697 r6737  
    1010import java.sql.SQLException;
    1111import java.sql.ResultSet;
    12 //import java.sql.Date;
     12import java.sql.Timestamp;
    1313
    1414import java.net.URL;
     
    4444  boolean            isModified;
    4545  StructureIdentifierFactory structureIdFactory;
    46   java.sql.Date      firstDate;
    47   java.sql.Date      indexDate;
     46  java.sql.Timestamp firstDate;
     47  java.sql.Timestamp indexDate;
    4848
    4949  /**
     
    6363
    6464    java.util.Date thisDate = new java.util.Date();
    65     this.firstDate = new java.sql.Date(thisDate.getTime());
    66     this.indexDate = new java.sql.Date(thisDate.getTime());
     65    this.firstDate = new java.sql.Timestamp(thisDate.getTime());
     66    this.indexDate = new java.sql.Timestamp(thisDate.getTime());
    6767  }
    6868 
     
    8282
    8383    java.util.Date thisDate = new java.util.Date();
    84     this.firstDate = new java.sql.Date(thisDate.getTime());
    85     this.indexDate = new java.sql.Date(thisDate.getTime());
     84    this.firstDate = new java.sql.Timestamp(thisDate.getTime());
     85    this.indexDate = new java.sql.Timestamp(thisDate.getTime());
    8686
    8787    METSStructure structure = new METSStructure("All", "All", "Whole Document");
     
    248248
    249249  /**
     250   *  @see DocumentInterface:removeDocumentMetadata
     251   */
     252  public void removeDocumentMetadata(String namespace, String label)
     253  { this.metadata.removeMetadata("default", namespace, label);
     254    this.isModified = true;
     255  }
     256
     257  /**
     258   *
     259   */
     260  public void removeAllMetadata(String namespace, String label)
     261  { this.metadata.removeAllMetadata(namespace, label);
     262    this.isModified = true;
     263  }
     264
     265  /**
    250266   *  Post metadata to a file in this document - the appropriate changes
    251267   *  should be made...
     
    393409
    394410      // Append the document date information
    395       document.indexDate = sqlResult.getDate("IndexedDate");
    396       document.firstDate = sqlResult.getDate("AccessionDate");
     411      document.indexDate = sqlResult.getTimestamp("IndexedDate");
     412      document.firstDate = sqlResult.getTimestamp("AccessionDate");
    397413
    398414      // Get the individual components of the document
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes/DocumentInterface.java

    r6697 r6737  
    170170
    171171  /**
     172   *  Facilitate the removal of document metadata.
     173   *
     174   *  @param <code>String</code> namespace of the metadata
     175   *  @param <code>String</code> label of the metadata, with a '.' to deliminate
     176   *                             sub-component structures
     177   */
     178  public void removeDocumentMetadata(String namespace, String label);
     179 
     180  /**
     181   *  Facilitate the removal of all metadata of a given label from the document.
     182   *
     183   *  @param <code>String</code> namespace of the metadata
     184   *  @param <code>String</code> label of the metadata, with a '.' to deliminate
     185   *                             sub-component structures
     186   */
     187  public void removeAllMetadata(String namespace, String label);
     188 
     189  /**
    172190   *  Post metadata to a file in this document - the appropriate changes
    173191   *  should be made...
Note: See TracChangeset for help on using the changeset viewer.