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