fr.paris.lutece.plugins.adminsql.business
Class FieldDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.adminsql.business.FieldDAO
All Implemented Interfaces:
IFieldDAO

public class FieldDAO
extends java.lang.Object
implements IFieldDAO

Creates a new instance of DataDAO


Constructor Summary
FieldDAO()
           
 
Method Summary
 void delete(java.lang.String strTableName, java.lang.String strFieldName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a field from the table
 int findFieldKeyIdbyLabel(java.lang.String strLabelKey, fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String strPoolName)
          Find the field id key by label key from adminsql database
 java.lang.String findFieldKeyLabelbyId(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String strPoolName)
          Find the field id key by label key from adminsql database
 int findFieldNullIdbyLabel(java.lang.String strLabelNull, fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String strPoolName)
          Find the field id null by label null from adminsql database
 java.lang.String findFieldNullLabelbyId(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String strPoolName)
          Find the field id null by label null from adminsql database
 int findFieldTypeIdbyLabel(java.lang.String strLabelType, fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String strPoolName)
          Find the field id type by label type from adminsql database
 java.lang.String findFieldTypeLabelbyId(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String strPoolName)
          Find the field label type by id type from adminsql database
 void insert(java.lang.String strPoolName, java.lang.String strTableName, Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a field in the table
 Field load(java.lang.String strPoolName, java.lang.String strTableName, java.lang.String strFieldName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load a field from the table
 fr.paris.lutece.util.ReferenceList selectFieldKeyList(java.lang.String strPoolName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          lists the field list possiblilities to create or modify fields form
 java.util.List<Field> selectFieldList(java.lang.String strPoolName, java.lang.String strTableName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find the list of fields from a table
 fr.paris.lutece.util.ReferenceList selectFieldNullList(java.lang.String strPoolName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          lists the field list possiblilities to create or modify fields form
 fr.paris.lutece.util.ReferenceList selectFieldTypeList(java.lang.String strPoolName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          lists the field list possiblilities to create or modify fields form
 void store(java.lang.String strPoolName, java.lang.String strTableName, Field field, java.lang.String strFieldNameToModify, int nIdOldFieldKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Store a field in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldDAO

public FieldDAO()
Method Detail

load

public Field load(java.lang.String strPoolName,
                  java.lang.String strTableName,
                  java.lang.String strFieldName,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load a field from the table

Specified by:
load in interface IFieldDAO
Parameters:
strTableName - the name of the table
strFieldName - the name of the field
plugin - adminsql plugin
strPoolName - the name of the pool
Returns:
a field object

store

public void store(java.lang.String strPoolName,
                  java.lang.String strTableName,
                  Field field,
                  java.lang.String strFieldNameToModify,
                  int nIdOldFieldKey,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Store a field in the table

Specified by:
store in interface IFieldDAO
Parameters:
strTableName - the name of the table
strFieldNameToModify - the name of the field to modify
field - Field object
plugin - adminsql plugin
strPoolName - the name of the pool
nIdOldFieldKey - find the key of the field if exists

insert

public void insert(java.lang.String strPoolName,
                   java.lang.String strTableName,
                   Field field,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a field in the table

Specified by:
insert in interface IFieldDAO
Parameters:
strPoolName - the name of the pool
field - Field object
strTableName - the name of the table
plugin - adminsql plugin

delete

public void delete(java.lang.String strTableName,
                   java.lang.String strFieldName,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a field from the table

Specified by:
delete in interface IFieldDAO
Parameters:
strTableName - the name of the table
strFieldName - the name of the field
plugin - adminsql plugin

selectFieldList

public java.util.List<Field> selectFieldList(java.lang.String strPoolName,
                                             java.lang.String strTableName,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the list of fields from a table

Specified by:
selectFieldList in interface IFieldDAO
Parameters:
strPoolName - the name of the pool
strTableName - the name of the table
plugin - Plugin adminsql
Returns:
list of fields

selectFieldTypeList

public fr.paris.lutece.util.ReferenceList selectFieldTypeList(java.lang.String strPoolName,
                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
lists the field list possiblilities to create or modify fields form

Specified by:
selectFieldTypeList in interface IFieldDAO
Parameters:
strPoolName - the name of the pool
plugin - plugin adminsql
Returns:
Field list

selectFieldKeyList

public fr.paris.lutece.util.ReferenceList selectFieldKeyList(java.lang.String strPoolName,
                                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
lists the field list possiblilities to create or modify fields form

Specified by:
selectFieldKeyList in interface IFieldDAO
Parameters:
strPoolName - the name of the pool
plugin - Plugin adminsql
Returns:
the keys choice adminsql database

selectFieldNullList

public fr.paris.lutece.util.ReferenceList selectFieldNullList(java.lang.String strPoolName,
                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
lists the field list possiblilities to create or modify fields form

Specified by:
selectFieldNullList in interface IFieldDAO
Parameters:
strPoolName - the name of the pool
plugin - Plugin adminsql
Returns:
the null value choice adminsql database

findFieldTypeIdbyLabel

public int findFieldTypeIdbyLabel(java.lang.String strLabelType,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                  java.lang.String strPoolName)
Find the field id type by label type from adminsql database

Parameters:
strLabelType - the name of the type that user choose
plugin - Plugin adminsql
strPoolName - the name of the pool
Returns:
id type from label type

findFieldTypeLabelbyId

public java.lang.String findFieldTypeLabelbyId(int nId,
                                               fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                               java.lang.String strPoolName)
Find the field label type by id type from adminsql database

Parameters:
nId - the id of type label
plugin - Plugin adminsql
strPoolName - name of the pool
Returns:
the label of the type by id

findFieldNullIdbyLabel

public int findFieldNullIdbyLabel(java.lang.String strLabelNull,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                  java.lang.String strPoolName)
Find the field id null by label null from adminsql database

Parameters:
strLabelNull - the label of the null value
plugin - Plugin adminsql
strPoolName - the name of the pool
Returns:
id null from null type

findFieldNullLabelbyId

public java.lang.String findFieldNullLabelbyId(int nId,
                                               fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                               java.lang.String strPoolName)
Find the field id null by label null from adminsql database

Parameters:
nId - the id of the null value
plugin - Plugin adminsql
strPoolName - the name of the pool
Returns:
the label of null value by id

findFieldKeyIdbyLabel

public int findFieldKeyIdbyLabel(java.lang.String strLabelKey,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                 java.lang.String strPoolName)
Find the field id key by label key from adminsql database

Parameters:
strLabelKey - the label key of the field
plugin - Plugin adminsql
strPoolName - the name of the pool
Returns:
id key from label key

findFieldKeyLabelbyId

public java.lang.String findFieldKeyLabelbyId(int nId,
                                              fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                              java.lang.String strPoolName)
Find the field id key by label key from adminsql database

Parameters:
nId - the id of the key
plugin - Plugin adminsql
strPoolName - the name of the pool
Returns:
the label of key by id


Copyright © 2010 Mairie de Paris. All Rights Reserved.