DEPRECATED
Object
A helper class which can cleanup a reference implementation database.
Related Topics
RefCleanupHelper.cleanup(Connection, String, boolean)
Object
RefCleanupHelper
Field Summary |
public static final |
|
public static final |
|
public static final |
|
public static final |
|
public static final |
|
public static final |
|
public static final |
|
Constructor Summary |
Method Summary |
public static void |
|
public static void |
|
public static void |
|
public static void |
|
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String
addEmptyDocSql
public static final String
DEF_MIME_TYPE
public static final String
DOC_MD_TABLE
Related Topics
public static final String
DOC_TABLE
Related Topics
public static final String
getDocsSql
public static final String
missingDocSql
public static final String
updateDocSql
Constructor Detail |
public RefCleanupHelper()
Method Detail |
public static void cleanup(Clean up a reference implementation document and document_metadata table based only upon what's in the database.Connection
con,String
docBase, boolean deleteMissing)
throwsSQLException
This will not investigate the contents of the docBase except to gather file information about a file already in the database.
SQLException
Related Topics
RefCleanupHelper.fixMissingDocs(Connection)
RefCleanupHelper.cleanupDocs(Connection, String, boolean)
public static void cleanupDocs(Cleans up the document table.Connection
con,String
docBase, boolean deleteMissing)
throwsSQLException
This will update the document_size based upon the files under docBase and update the modified_date to now. Additionally, this will attempt to fix up invalid or empty mimeTypes.
SQLException
public static void deleteDoc(Connection
con,String
path)
throwsSQLException
SQLException
public static void fixMissingDocs(Cleanup the document table based upon what's in the document_metadata table.Connection
con)
throwsSQLException
This will add entries in the document table that don't exist from those in the document_metadata table.
SQLException