|
||||||||||
| 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 |
boolean |
documentIsPublished(int nDocumentId)
Tests if an document is published before deleting |
java.lang.String |
getPageTemplateDocumentPath(int IdPageTemplateDocument)
Load document pageTemplatePath |
void |
insert(Document document)
Insert a new record in the table. |
Document |
load(int nDocumentId)
Load the data of Document from the table |
void |
loadAttributes(Document document)
Load document attributes |
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 |
java.util.List<Document> |
selectPublishedByRelatedCategories(Document document)
Load the list of published documents in relation with categories of specified document |
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
java.util.List<Document> selectPublishedByRelatedCategories(Document document)
document - The document with the categories
void store(Document document,
boolean bUpdateContent)
document - The reference of documentbUpdateContent - the booleanboolean documentIsPublished(int nDocumentId)
nDocumentId - The identifier of the document
void loadAttributes(Document document)
document - the reference of the documentjava.lang.String getPageTemplateDocumentPath(int IdPageTemplateDocument)
IdPageTemplateDocument - the Id page template identifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||