public final class FieldHome extends Object
Constructor and Description |
---|
FieldHome() |
Modifier and Type | Method and Description |
---|---|
static Field |
create(String strPoolName,
String strTableName,
Field field,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an intance of a field
|
static List<Field> |
findAll(String strPoolName,
String strTableName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the list of all fields of a table
|
static Field |
findByPrimaryKey(String strPoolName,
String strTableName,
String strFieldName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the structure of a field
|
static fr.paris.lutece.util.ReferenceList |
findFieldKey(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(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(String strPoolName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the type label of the field in adminsql database
|
static void |
remove(String strTableName,
String strFieldName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a field in a table
|
static Field |
update(String strPoolName,
String strTableName,
Field field,
String strFieldNameToModify,
int nIdOldFieldKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a field structure
|
public static List<Field> findAll(String strPoolName, String strTableName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strPoolName
- the name of the poolstrTableName
- the name of the tableplugin
- Plugin objetpublic static Field findByPrimaryKey(String strPoolName, String strTableName, String strFieldName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strPoolName
- the name of the poolstrTableName
- the name of the tablestrFieldName
- the name of the fieldplugin
- Plugin objectpublic static fr.paris.lutece.util.ReferenceList findFieldType(String strPoolName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strPoolName
- the name of the poolplugin
- Plugin adminsqpublic static fr.paris.lutece.util.ReferenceList findFieldKey(String strPoolName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strPoolName
- the name of the poolplugin
- Plugin adminsqpublic static fr.paris.lutece.util.ReferenceList findFieldNull(String strPoolName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strPoolName
- the name of the poolplugin
- Plugin adminsqpublic static Field create(String strPoolName, String strTableName, Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strPoolName
- the name of the poolstrTableName
- the name of the tablefield
- Field objectplugin
- Plugin adminsqlpublic static void remove(String strTableName, String strFieldName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strTableName
- the name of the tablestrFieldName
- the name of the fieldplugin
- Plugin adminsqlpublic static Field update(String strPoolName, String strTableName, Field field, String strFieldNameToModify, int nIdOldFieldKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strPoolName
- the name of the poolstrTableName
- the name of the tablefield
- Field objectstrFieldNameToModify
- the name of the field before modification for the requestnIdOldFieldKey
- keep the key of the fieldplugin
- Plugin adminsqlCopyright © 2018 City of Paris. All rights reserved.