fr.paris.lutece.plugins.document.business.attributes
Class DocumentAttributeDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.document.business.attributes.DocumentAttributeDAO
All Implemented Interfaces:
IDocumentAttributeDAO

public final class DocumentAttributeDAO
extends java.lang.Object
implements IDocumentAttributeDAO

This class provides Data Access methods for DocumentAttribute objects


Constructor Summary
DocumentAttributeDAO()
           
 
Method Summary
 void delete(int nAttributeId)
          Delete a record from the table
 java.lang.String getAttributeParameterValue(int nAttributeId, java.lang.String strParameterName)
          Returns the parameter value of an attribute
 void insert(DocumentAttribute documentAttribute)
          Insert a new record in the table.
 DocumentAttribute load(int nAttributeId)
          Load the data of DocumentAttribute from the table
 java.util.List<AttributeTypeParameter> selectAttributeParametersValues(int nAttributeId)
          Gets Attribute parameters values
 void selectAttributesByDocumentType(DocumentType documentType)
          Add attributes to a document
 void store(DocumentAttribute documentAttribute)
          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

DocumentAttributeDAO

public DocumentAttributeDAO()
Method Detail

insert

public void insert(DocumentAttribute documentAttribute)
Insert a new record in the table.

Specified by:
insert in interface IDocumentAttributeDAO
Parameters:
documentAttribute - The documentAttribute object

load

public DocumentAttribute load(int nAttributeId)
Load the data of DocumentAttribute from the table

Specified by:
load in interface IDocumentAttributeDAO
Parameters:
nAttributeId - The attribute Id
Returns:
the instance of the DocumentAttribute

delete

public void delete(int nAttributeId)
Delete a record from the table

Specified by:
delete in interface IDocumentAttributeDAO
Parameters:
nAttributeId - The DocumentAttribute Id

store

public void store(DocumentAttribute documentAttribute)
Update the record in the table

Specified by:
store in interface IDocumentAttributeDAO
Parameters:
documentAttribute - The document attribute

selectAttributesByDocumentType

public void selectAttributesByDocumentType(DocumentType documentType)
Add attributes to a document

Specified by:
selectAttributesByDocumentType in interface IDocumentAttributeDAO
Parameters:
documentType - The document Type

selectAttributeParametersValues

public java.util.List<AttributeTypeParameter> selectAttributeParametersValues(int nAttributeId)
Gets Attribute parameters values

Specified by:
selectAttributeParametersValues in interface IDocumentAttributeDAO
Parameters:
nAttributeId - The attribute Id
Returns:
List of attribute parameters values

getAttributeParameterValue

public java.lang.String getAttributeParameterValue(int nAttributeId,
                                                   java.lang.String strParameterName)
Returns the parameter value of an attribute

Specified by:
getAttributeParameterValue in interface IDocumentAttributeDAO
Parameters:
nAttributeId - The attribute Id
strParameterName - The parameter name
Returns:
The parameter value of an attribute


Copyright © 2007 Mairie de Paris. All Rights Reserved.