|
||||||||||
| 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 |
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 |
java.util.List<Document> |
loadFromSpaceId(int nSpaceId)
Returns documents by space id |
Document |
loadLastModifiedAttributes(int nDocumentId)
Load document type and date last modification for HTTP GET conditional request ("If-Modified-Since") |
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 |
Document |
loadWithoutBinaries(int nDocumentId)
Returns an instance of a document whose identifier is specified in parameter |
int |
newPrimaryKey()
Generates a new primary key |
java.util.List<Document> |
selectAll()
Gets all documents |
java.util.Collection<java.lang.Integer> |
selectAllPrimaryKeys()
Gets all documents id |
java.util.List<Document> |
selectByFilter(DocumentFilter filter)
Load the list of documents |
java.util.List<Document> |
selectByRelatedCategories(Document document)
Load the list of published documents in relation with categories of specified document |
java.util.Collection<java.lang.Integer> |
selectPrimaryKeysByFilter(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
Document loadWithoutBinaries(int nDocumentId)
nDocumentId - The Primary key of the document
java.util.List<Document> loadFromSpaceId(int nSpaceId)
nSpaceId - The space Id
DocumentResource loadResource(int nDocumentId)
nDocumentId - The Document Id
DocumentResource loadSpecificResource(int nDocumentId,
int nAttributeId)
nDocumentId - The Document IdnAttributeId - The Attribute Id
java.util.Collection<java.lang.Integer> selectAllPrimaryKeys()
java.util.List<Document> selectAll()
java.util.Collection<java.lang.Integer> selectPrimaryKeysByFilter(DocumentFilter filter)
filter - The DocumentFilter Object
java.util.List<Document> selectByFilter(DocumentFilter filter)
filter - The DocumentFilter Object
java.util.List<Document> selectByRelatedCategories(Document document)
document - The document with the categories
void store(Document document,
boolean bUpdateContent)
document - The reference of documentbUpdateContent - the booleanvoid loadAttributes(Document document)
document - the reference of the documentjava.lang.String getPageTemplateDocumentPath(int IdPageTemplateDocument)
IdPageTemplateDocument - the Id page template identifierDocument loadLastModifiedAttributes(int nDocumentId)
nDocumentId -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||