|
||||||||||
| 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 |
java.lang.String |
getPageTemplateDocumentPath(int nIdPageTemplateDocument)
Load the path of page template |
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 the attributes of Document from the table |
java.util.List<Document> |
loadFromSpaceId(int nSpaceId)
Load from space id. |
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()
Deprecated. |
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 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 |
| 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 java.util.List<Document> loadFromSpaceId(int nSpaceId)
loadFromSpaceId in interface IDocumentDAOnSpaceId -
public void loadAttributes(Document document)
loadAttributes in interface IDocumentDAOdocument - Document objectpublic 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.Collection<java.lang.Integer> selectPrimaryKeysByFilter(DocumentFilter filter)
selectPrimaryKeysByFilter in interface IDocumentDAOfilter - The DocumentFilter Object
public java.util.List<Document> selectByFilter(DocumentFilter filter)
selectByFilter in interface IDocumentDAOfilter - The DocumentFilter Object
public java.util.List<Document> selectByRelatedCategories(Document document)
selectByRelatedCategories in interface IDocumentDAOdocument - The document with the categories
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.Collection<java.lang.Integer> selectAllPrimaryKeys()
selectAllPrimaryKeys in interface IDocumentDAOpublic java.util.List<Document> selectAll()
selectAll in interface IDocumentDAOpublic java.lang.String getPageTemplateDocumentPath(int nIdPageTemplateDocument)
getPageTemplateDocumentPath in interface IDocumentDAOnIdPageTemplateDocument - The identifier of page template
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||