macaw.persistenceLayer.production
Class SQLSupportingDocumentsManager
java.lang.Object
macaw.persistenceLayer.production.SQLCurationConceptManager
macaw.persistenceLayer.production.SQLSupportingDocumentsManager
public class SQLSupportingDocumentsManager
- extends SQLCurationConceptManager
Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
Method Summary |
void |
addSupportingDocument(java.sql.Connection connection,
User user,
SupportingDocument supportingDocument)
|
void |
checkSupportingDocumentExists(java.sql.Connection connection,
SupportingDocument targetSupportingDocument)
|
void |
clear(java.sql.Connection connection)
|
void |
createTable(java.sql.Connection connection)
|
void |
deleteSupportingDocuments(java.sql.Connection connection,
User user,
java.util.ArrayList<SupportingDocument> supportingDocumentsToDelete)
|
java.util.ArrayList<SupportingDocument> |
getAllSupportingDocuments(java.sql.Connection connection,
User user)
|
SupportingDocument |
getOriginalSupportingDocument(java.sql.Connection connection,
SupportingDocument targetSupportingDocument)
|
int |
getSupportingDocumentIdentifier(java.sql.Connection connection,
SupportingDocument supportingDocument)
|
void |
updateSupportingDocument(java.sql.Connection connection,
User user,
SupportingDocument revisedSupportingDocument)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLSupportingDocumentsManager
public SQLSupportingDocumentsManager(SQLChangeEventManager changeEventManager)
createTable
public void createTable(java.sql.Connection connection)
throws MacawException
- Throws:
MacawException
getAllSupportingDocuments
public java.util.ArrayList<SupportingDocument> getAllSupportingDocuments(java.sql.Connection connection,
User user)
throws MacawException
- Throws:
MacawException
addSupportingDocument
public void addSupportingDocument(java.sql.Connection connection,
User user,
SupportingDocument supportingDocument)
throws MacawException
- Throws:
MacawException
updateSupportingDocument
public void updateSupportingDocument(java.sql.Connection connection,
User user,
SupportingDocument revisedSupportingDocument)
throws MacawException
- Throws:
MacawException
deleteSupportingDocuments
public void deleteSupportingDocuments(java.sql.Connection connection,
User user,
java.util.ArrayList<SupportingDocument> supportingDocumentsToDelete)
throws MacawException
- Throws:
MacawException
getSupportingDocumentIdentifier
public int getSupportingDocumentIdentifier(java.sql.Connection connection,
SupportingDocument supportingDocument)
throws MacawException
- Throws:
MacawException
clear
public void clear(java.sql.Connection connection)
throws MacawException
- Throws:
MacawException
checkSupportingDocumentExists
public void checkSupportingDocumentExists(java.sql.Connection connection,
SupportingDocument targetSupportingDocument)
throws MacawException
- Throws:
MacawException
getOriginalSupportingDocument
public SupportingDocument getOriginalSupportingDocument(java.sql.Connection connection,
SupportingDocument targetSupportingDocument)
throws MacawException
- Throws:
MacawException