|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.services.mmd.Query
public class Query
Provides access to the meta-metadata database.
Sample test program:
###
| Field Summary | |
|---|---|
static int |
QUERY_BOTH
The queryType parameter for the findDups method: return all results. |
static int |
QUERY_OTHER
The queryType parameter for the findDups method: only return results not from the collection collKey. |
static int |
QUERY_SAME
The queryType parameter for the findDups method: only return results from the collection collKey. |
| Constructor Summary | |
|---|---|
Query(int bugs,
String dbUrl)
Constructor: Makes the connection to the database. |
|
| Method Summary | |
|---|---|
void |
closeDb()
Closes the database connection. |
MmdRec[] |
findDups(int queryType,
String collKey,
String id,
String exc)
Returns an array of MmdRec representing ids in other collections that appear identical to the specified (collKey, id). |
String |
getCollectionName(String collKey)
Returns the collection name associated with a collection key, or null if none found. |
String |
getDirectory(String collKey)
Returns the directory containing the XML records of the given collection key, or null if none found. |
MmdRec |
getMmdRec(String collKey,
String id)
Returns the MmdRec specified, or null if none found. |
static void |
reloadIdExclusionDocument()
|
void |
setStatus(String collKey,
String id,
String newStatus)
Updates the status of a single record. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int QUERY_SAME
public static final int QUERY_OTHER
public static final int QUERY_BOTH
| Constructor Detail |
|---|
public Query(int bugs,
String dbUrl)
throws MmdException
bugs - DESCRIPTIONdbUrl - DESCRIPTION
MmdException - DESCRIPTION| Method Detail |
|---|
public void closeDb()
throws MmdException
MmdException - DESCRIPTION
public String getCollectionName(String collKey)
throws MmdException
collKey - DESCRIPTION
MmdException - DESCRIPTION
public String getDirectory(String collKey)
throws MmdException
collKey - DESCRIPTION
MmdException - DESCRIPTION
public MmdRec getMmdRec(String collKey,
String id)
throws MmdException
id - The id of the recordcollKey - DESCRIPTION
MmdException - DESCRIPTION
public void setStatus(String collKey,
String id,
String newStatus)
throws MmdException
MmdRecord.
collKey - The collection key.id - The id of the recordnewStatus - The new status value
MmdException - DESCRIPTIONpublic static void reloadIdExclusionDocument()
public MmdRec[] findDups(int queryType,
String collKey,
String id,
String exc)
throws MmdException
queryType - One of:
collKey - The collection key.id - The id to search for
MmdException - DESCRIPTION
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||