public class AccessionNumber
extends java.lang.Object
Constructor and Description |
---|
AccessionNumber(java.lang.String accnum,
java.lang.String action)
NEW - WHEN CLIENT ALWAYS PROVIDE ACCESSION NUMBER INCLUDING REV IN IT
Construct an AccessionNumber
|
Modifier and Type | Method and Description |
---|---|
static boolean |
accNumberUsed(java.lang.String accNumber)
check for existence of Accesssion Number xml_acc_numbers table
|
java.lang.String |
getDocid()
returns the docid encoded in this accession number
|
java.lang.String |
getRev()
returns the revision number encoded in this accession number
|
public AccessionNumber(java.lang.String accnum, java.lang.String action) throws AccessionNumberException, java.sql.SQLException, java.lang.NumberFormatException
conn
- the db connection to read Accession number fromaccnum
- the accession number to be checked for validnessAccessionNumberException
java.sql.SQLException
java.lang.NumberFormatException
public static boolean accNumberUsed(java.lang.String accNumber) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getDocid()
public java.lang.String getRev()
Copyright © 2020 Regents of the University of California. All Rights Reserved.