public interface IDataDAO
Modifier and Type | Method and Description |
---|---|
void |
delete(String strPoolName,
String strTableName,
List<String> listConcatFieldNameAndData,
fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Delete a row
|
List<List<String>> |
findResultOfUserRequest(String strUserRequest,
fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Find all data from user request
|
void |
insert(String strPoolName,
String strTableName,
List<String> listData,
List<String> listFieldsNames,
fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Insert into a table of a database
|
void |
insertWithUserRequest(String strUserRequest,
fr.paris.lutece.portal.service.database.PluginConnectionService connectionService,
String strPoolName)
Insert into a table of a database with user request
|
List<List<String>> |
load(String strTableName,
String strContatFieldNameAndData,
List<Field> listFields,
fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Find all data in a table
|
List<String> |
selectColumnNames(String strUserRequest,
fr.paris.lutece.portal.service.database.PluginConnectionService connectionService,
String strPoolName)
Find the names of the columns
|
List<List<String>> |
selectDataList(String strTableName,
fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Selects and loads into the Data object all the data from the database
|
List<List<String>> |
selectDataListUserRequest(String strPoolName,
String strUserRequest,
fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Creates a new instance of IDataDAO
|
void |
store(String strPoolName,
String strTableName,
List<FieldValues> listFieldValues,
fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Store the row modified
|
List<List<String>> selectDataList(String strTableName, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
strTableName
- the name of the tableconnectionService
- PluginConnectionService objectList<List<String>> selectDataListUserRequest(String strPoolName, String strUserRequest, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
strPoolName
- the name of the poolstrUserRequest
- user requestconnectionService
- PluginConnectionService objectvoid insert(String strPoolName, String strTableName, List<String> listData, List<String> listFieldsNames, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
strPoolName
- the name of the poolstrTableName
- the name of the tablelistData
- the list of datalistFieldsNames
- the list of field namesconnectionService
- PluginConnectionService objectvoid insertWithUserRequest(String strUserRequest, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService, String strPoolName)
strUserRequest
- user requestconnectionService
- PluginConnectionService objectstrPoolName
- the name of the poolList<List<String>> load(String strTableName, String strContatFieldNameAndData, List<Field> listFields, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
strTableName
- the name of the tablestrContatFieldNameAndData
- the concatenation of the field name and the datalistFields
- the list of the fieldsconnectionService
- PluginConnectionService objectList<List<String>> findResultOfUserRequest(String strUserRequest, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
strUserRequest
- user requestconnectionService
- PluginConnectionService objectList<String> selectColumnNames(String strUserRequest, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService, String strPoolName)
strUserRequest
- user requestconnectionService
- PluginConnectionService objectstrPoolName
- the name of the poolvoid store(String strPoolName, String strTableName, List<FieldValues> listFieldValues, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
strPoolName
- the name of the poolstrTableName
- the name of the tablelistFieldValues
- list of the fields valuesconnectionService
- PluginConnectionService objectvoid delete(String strPoolName, String strTableName, List<String> listConcatFieldNameAndData, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
strPoolName
- the name of the poolstrTableName
- the name of the tablelistConcatFieldNameAndData
- the concatenation of the field name and the dataconnectionService
- PluginConnectionService objectCopyright © 2018 City of Paris. All rights reserved.