Project

General

Profile

« Previous | Next » 

Revision 1582

Added by Jing Tao about 21 years ago

Change a method from private to public and it can be shared by other class.

View differences:

DocumentImpl.java
2474 2474
    * The return value is integer because we want compare it to there new one
2475 2475
    * @param docid <sitecode>.<uniqueid> part of Accession Number
2476 2476
    */
2477
  private static int getLatestRevisionNumber(String docId)
2477
  public static int getLatestRevisionNumber(String docId)
2478 2478
                                      throws SQLException
2479 2479
  {
2480 2480
    int rev = 1;
2481 2481
    PreparedStatement pStmt = null;
2482 2482
    DBConnection dbConn = null;
2483 2483
    int serialNumber = -1;
2484
    
2484
    // get rid of rev
2485
    docId = MetaCatUtil.getDocIdFromString(docId);
2485 2486
    try
2486 2487
    {
2487 2488
      //check out DBConnection

Also available in: Unified diff