|
||||||||||
| 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 IDocumentDAOpublic void insert(Document document)
insert in interface IDocumentDAOdocument - The document objectpublic Document load(int nDocumentId)
load in interface IDocumentDAOnDocumentId - The identifier of Document
public void delete(int nDocumentId)
delete in interface IDocumentDAOnDocumentId - the document identifier
public void store(Document document,
boolean bUpdateContent)
store in interface IDocumentDAOdocument - The reference of documentbUpdateContent - the booleanpublic java.util.List<Document> selectByFilter(DocumentFilter filter)
selectByFilter in interface IDocumentDAOfilter - The DocumentFilter Object
public DocumentResource loadResource(int nDocumentId)
loadResource in interface IDocumentDAOnDocumentId - The Document Id
public DocumentResource loadSpecificResource(int nDocumentId,
int nAttributeId)
loadSpecificResource in interface IDocumentDAOnDocumentId - 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 | |||||||||