|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.document.business.DocumentDAO
public final class DocumentDAO
This class provides Data Access methods for Document objects
Constructor Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentDAO()
Method Detail |
---|
public int newPrimaryKey()
newPrimaryKey
in interface IDocumentDAO
public void insert(Document document)
insert
in interface IDocumentDAO
document
- The document objectpublic Document load(int nDocumentId)
load
in interface IDocumentDAO
nDocumentId
- The identifier of Document
public void delete(int nDocumentId)
delete
in interface IDocumentDAO
nDocumentId
- the document identifierpublic void store(Document document, boolean bUpdateContent)
store
in interface IDocumentDAO
document
- The reference of documentbUpdateContent
- the booleanpublic java.util.List<Document> selectByFilter(DocumentFilter filter)
selectByFilter
in interface IDocumentDAO
filter
- The DocumentFilter Object
public DocumentResource loadResource(int nDocumentId)
loadResource
in interface IDocumentDAO
nDocumentId
- The Document Id
public DocumentResource loadSpecificResource(int nDocumentId, int nAttributeId)
loadSpecificResource
in interface IDocumentDAO
nDocumentId
- The Document IdnAttributeId
- The Attribute Id
public java.util.List<Document> selectAll()
selectAll
in interface IDocumentDAO
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |