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

java.lang.Object
  extended by fr.paris.lutece.plugins.adminsql.business.FieldHome

public final class FieldHome
extends java.lang.Object

The class calling the business objects


Constructor Summary
FieldHome()
           
 
Method Summary
static Field create(java.lang.String strPoolName, java.lang.String strTableName, Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create an intance of a field
static java.util.List<Field> findAll(java.lang.String strPoolName, java.lang.String strTableName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find the list of all fields of a table
static Field findByPrimaryKey(java.lang.String strPoolName, java.lang.String strTableName, java.lang.String strFieldName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find the structure of a field
static fr.paris.lutece.util.ReferenceList findFieldKey(java.lang.String strPoolName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find the key of the field in adminsql database if exists
static fr.paris.lutece.util.ReferenceList findFieldNull(java.lang.String strPoolName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find the null value of the field in adminsql database if exists
static fr.paris.lutece.util.ReferenceList findFieldType(java.lang.String strPoolName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find the type label of the field in adminsql database
static void remove(java.lang.String strTableName, java.lang.String strFieldName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a field in a table
static Field update(java.lang.String strPoolName, java.lang.String strTableName, Field field, java.lang.String strFieldNameToModify, int nIdOldFieldKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update a field structure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldHome

public FieldHome()
Method Detail

findAll

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

Parameters:
strPoolName - the name of the pool
strTableName - the name of the table
plugin - Plugin objet
Returns:
list of all the fields

findByPrimaryKey

public static Field findByPrimaryKey(java.lang.String strPoolName,
                                     java.lang.String strTableName,
                                     java.lang.String strFieldName,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the structure of a field

Parameters:
strPoolName - the name of the pool
strTableName - the name of the table
strFieldName - the name of the field
plugin - Plugin object
Returns:
the structure of a field

findFieldType

public static fr.paris.lutece.util.ReferenceList findFieldType(java.lang.String strPoolName,
                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the type label of the field in adminsql database

Parameters:
strPoolName - the name of the pool
plugin - Plugin adminsq
Returns:
the type label of the field in adminsql database

findFieldKey

public static fr.paris.lutece.util.ReferenceList findFieldKey(java.lang.String strPoolName,
                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the key of the field in adminsql database if exists

Parameters:
strPoolName - the name of the pool
plugin - Plugin adminsq
Returns:
the key of the field in adminsql database if exists

findFieldNull

public static fr.paris.lutece.util.ReferenceList findFieldNull(java.lang.String strPoolName,
                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the null value of the field in adminsql database if exists

Parameters:
strPoolName - the name of the pool
plugin - Plugin adminsq
Returns:
the null value of the field in adminsql database if exists

create

public static Field create(java.lang.String strPoolName,
                           java.lang.String strTableName,
                           Field field,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an intance of a field

Parameters:
strPoolName - the name of the pool
strTableName - the name of the table
field - Field object
plugin - Plugin adminsql
Returns:
list of fields

remove

public static void remove(java.lang.String strTableName,
                          java.lang.String strFieldName,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a field in a table

Parameters:
strTableName - the name of the table
strFieldName - the name of the field
plugin - Plugin adminsql

update

public static Field update(java.lang.String strPoolName,
                           java.lang.String strTableName,
                           Field field,
                           java.lang.String strFieldNameToModify,
                           int nIdOldFieldKey,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a field structure

Parameters:
strPoolName - the name of the pool
strTableName - the name of the table
field - Field object
strFieldNameToModify - the name of the field before modification for the request
nIdOldFieldKey - keep the key of the field
plugin - Plugin adminsql
Returns:
list of fields


Copyright © 2010 Mairie de Paris. All Rights Reserved.