|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDocumentDAO
Interface for DocumentDAO
Method Summary | |
---|---|
void |
delete(int nDocumentId)
Delete a record from the table |
void |
insert(Document document)
Insert a new record in the table. |
Document |
load(int nDocumentId)
Load the data of Document from the table |
DocumentResource |
loadResource(int nDocumentId)
Load a resource (image, file, ...) corresponding to an attribute of a Document |
DocumentResource |
loadSpecificResource(int nDocumentId,
int nAttributeId)
Load a resource (image, file, ...) corresponding to an attribute of a Document |
int |
newPrimaryKey()
Generates a new primary key |
java.util.List<Document> |
selectAll()
Gets all documents |
java.util.List<Document> |
selectByFilter(DocumentFilter filter)
Load the list of documents |
void |
store(Document document,
boolean bUpdateContent)
Update the record in the table |
Method Detail |
---|
int newPrimaryKey()
void delete(int nDocumentId)
nDocumentId
- the document identifiervoid insert(Document document)
document
- The document objectDocument load(int nDocumentId)
nDocumentId
- The identifier of Document
DocumentResource loadResource(int nDocumentId)
nDocumentId
- The Document Id
DocumentResource loadSpecificResource(int nDocumentId, int nAttributeId)
nDocumentId
- The Document IdnAttributeId
- The Attribute Id
java.util.List<Document> selectAll()
java.util.List<Document> selectByFilter(DocumentFilter filter)
filter
- The DocumentFilter Object
void store(Document document, boolean bUpdateContent)
document
- The reference of documentbUpdateContent
- the boolean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |