Constructor and Description |
---|
TableDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(String strTableName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a table from a database
|
int |
findFieldKeyIdbyLabel(String strLabelKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strPoolName)
Find the field id key by label key from adminsql database
|
String |
findFieldKeyLabelbyId(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strPoolName)
Find the field id key by label key from adminsql database
|
int |
findFieldNullIdbyLabel(String strLabelNull,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strPoolName)
Find the field id null by label null from adminsql database
|
String |
findFieldNullLabelbyId(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strPoolName)
Find the field id null by label null from adminsql database
|
int |
findFieldTypeIdbyLabel(String strLabelType,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strPoolName)
Find the field id type by label type from adminsql database
|
String |
findFieldTypeLabelbyId(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin,
String strPoolName)
Find the field label type by id type from adminsql database
|
void |
insert(String strPoolName,
Table table,
Field field,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a table into a database
|
Table |
load(String strPoolName,
String strTableName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load a table from a database
|
fr.paris.lutece.util.ReferenceList |
selectFieldKeyList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
lists the field list possiblilities to create or modify fields form
|
fr.paris.lutece.util.ReferenceList |
selectFieldNullList(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(fr.paris.lutece.portal.service.plugin.Plugin plugin)
lists the field list possiblilities to create or modify fields form
|
List<Table> |
selectTableList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the list of the tables on a database
|
List<Table> |
selectTableListByPool(String strPoolName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the list of the tables on a database
|
void |
store(String strTableNameToModify,
Table table)
Store a table into a database
|
public Table load(String strPoolName, String strTableName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void insert(String strPoolName, Table table, Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void delete(String strTableName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public List<Table> selectTableList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTableList
in interface ITableDAO
plugin
- Plugin adminsqlpublic List<Table> selectTableListByPool(String strPoolName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTableListByPool
in interface ITableDAO
strPoolName
- the name of the poolplugin
- Plugin adminsqlpublic fr.paris.lutece.util.ReferenceList selectFieldTypeList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- plugin adminsqlpublic fr.paris.lutece.util.ReferenceList selectFieldKeyList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- Plugin adminsqlpublic fr.paris.lutece.util.ReferenceList selectFieldNullList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- Plugin adminsqlpublic int findFieldTypeIdbyLabel(String strLabelType, fr.paris.lutece.portal.service.plugin.Plugin plugin, String strPoolName)
strLabelType
- the name of the type that user chooseplugin
- Plugin adminsqlstrPoolName
- the name of the poolpublic String findFieldTypeLabelbyId(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin, String strPoolName)
nId
- the id of type labelplugin
- Plugin adminsqlstrPoolName
- name of the poolpublic int findFieldNullIdbyLabel(String strLabelNull, fr.paris.lutece.portal.service.plugin.Plugin plugin, String strPoolName)
strLabelNull
- the label of the null valueplugin
- Plugin adminsqlstrPoolName
- the name of the poolpublic String findFieldNullLabelbyId(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin, String strPoolName)
nId
- the id of the null valueplugin
- Plugin adminsqlstrPoolName
- the name of the poolpublic int findFieldKeyIdbyLabel(String strLabelKey, fr.paris.lutece.portal.service.plugin.Plugin plugin, String strPoolName)
strLabelKey
- the label key of the fieldplugin
- Plugin adminsqlstrPoolName
- the name of the poolpublic String findFieldKeyLabelbyId(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin, String strPoolName)
nId
- the id of the keyplugin
- Plugin adminsqlstrPoolName
- the name of the poolCopyright © 2018 City of Paris. All rights reserved.