fr.paris.lutece.plugins.dbpage.business.section
Class DbPageSection

java.lang.Object
  extended by fr.paris.lutece.plugins.dbpage.business.section.DbPageSection
All Implemented Interfaces:
IDbPageSection, java.lang.Cloneable
Direct Known Subclasses:
DbPageSectionForm, DbPageSectionSelect, DbPageSectionTable

public abstract class DbPageSection
extends java.lang.Object
implements IDbPageSection, java.lang.Cloneable

This class represents business object DbPageSection


Constructor Summary
DbPageSection()
           
 
Method Summary
 java.util.List<java.lang.String> getColumnNames()
          Returns the ColumnNames
 fr.paris.lutece.portal.service.database.PluginConnectionService getConnectionService(java.lang.String strPoolName)
          Get a connection service corresponding to the given poolname.
 java.lang.String getDbPool()
          Returns the DbPool of the section
 DbPageSection getDbSection()
          A DbPageSection object is produced
 java.lang.String getDescType()
          The type of the section
 long getIdTypeSignature()
          Gets the signature of the section
 java.lang.String getRole()
          Returns the Role of the section
 java.lang.String getSql()
          Returns the sql request of the section
 java.lang.String getTemplatePath()
          Returns the template path
 java.lang.String getTitle()
          Returns the title of the section
 java.lang.String getType()
          Returns the type of this DbPageSection.
protected  java.lang.String getValuatedQuery(java.util.List listValues)
          Returns the SQL query associated to the section filled by extra values
 void setColumnNames(java.util.List listColumnNames)
          Sets the listColumnNames
 void setDbPool(java.lang.String strDbPool)
          Sets the DbPool
 void setDescType(java.lang.String strDescType)
          Sets the type of the section
 void setIdTypeSignature(long lIdType)
          Sets the signature of the section
 void setRole(java.lang.String strRole)
          Sets the Role
 void setSql(java.lang.String strSql)
          Sets the SQL request
 void setTemplatePath(java.lang.String strTemplatePath)
          Sets the template path of the DbPageSection to the specified string.
 void setTitle(java.lang.String strTitle)
          Sets the title of the section
 void setType(java.lang.String strType)
          Sets the type of the DbPageSection to the specified string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.paris.lutece.plugins.dbpage.business.section.IDbPageSection
getCreationTemplate, getHtmlSection, getIdType, getMarkMap, getModificationTemplate, getTypeDescription
 

Constructor Detail

DbPageSection

public DbPageSection()
Method Detail

getType

public java.lang.String getType()
Returns the type of this DbPageSection.

Returns:
the DbPageSection type

setType

public void setType(java.lang.String strType)
Sets the type of the DbPageSection to the specified string.

Parameters:
strType - the new type

getTemplatePath

public java.lang.String getTemplatePath()
Returns the template path

Returns:
the relative path of the template

setTemplatePath

public void setTemplatePath(java.lang.String strTemplatePath)
Sets the template path of the DbPageSection to the specified string.

Parameters:
strTemplatePath - The new template path

getColumnNames

public java.util.List<java.lang.String> getColumnNames()
Returns the ColumnNames

Returns:
The list of the Columns' name

setColumnNames

public void setColumnNames(java.util.List listColumnNames)
Sets the listColumnNames

Parameters:
listColumnNames - the list of columns names

getTitle

public java.lang.String getTitle()
Returns the title of the section

Returns:
The title

setTitle

public void setTitle(java.lang.String strTitle)
Sets the title of the section

Parameters:
strTitle - The new title

getSql

public java.lang.String getSql()
Returns the sql request of the section

Returns:
The SQL request

setSql

public void setSql(java.lang.String strSql)
Sets the SQL request

Parameters:
strSql - The SQL request

getDbPool

public java.lang.String getDbPool()
Returns the DbPool of the section

Returns:
The DbPool

setDbPool

public void setDbPool(java.lang.String strDbPool)
Sets the DbPool

Parameters:
strDbPool - The DbPool

getConnectionService

public fr.paris.lutece.portal.service.database.PluginConnectionService getConnectionService(java.lang.String strPoolName)
Get a connection service corresponding to the given poolname. If the pool name is empty, the default connection service of the current plugin is returned

Parameters:
strPoolName - The Poolname
Returns:
A Connection Service

getValuatedQuery

protected java.lang.String getValuatedQuery(java.util.List listValues)
Returns the SQL query associated to the section filled by extra values

Parameters:
listValues - A list of extra values to substitute in the query
Returns:
The SQL query

getRole

public java.lang.String getRole()
Returns the Role of the section

Returns:
The Role

setRole

public void setRole(java.lang.String strRole)
Sets the Role

Parameters:
strRole - The Role

getDbSection

public DbPageSection getDbSection()
A DbPageSection object is produced

Returns:
Gets a section

setIdTypeSignature

public void setIdTypeSignature(long lIdType)
Sets the signature of the section

Parameters:
lIdType - The type of the section id

getIdTypeSignature

public long getIdTypeSignature()
Gets the signature of the section

Returns:
The long value representing the type of the section

setDescType

public void setDescType(java.lang.String strDescType)
Sets the type of the section

Parameters:
strDescType - The description of the type of the section

getDescType

public java.lang.String getDescType()
The type of the section

Returns:
The description of the type of the section


Copyright © 2010 Mairie de Paris. All Rights Reserved.