fr.paris.lutece.plugins.adminsql.business
Interface IDataDAO

All Known Implementing Classes:
DataDAO

public interface IDataDAO

Lists all methods which are in DataDAO


Method Summary
 void delete(java.lang.String strPoolName, java.lang.String strTableName, java.util.List<java.lang.String> listConcatFieldNameAndData, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
          Delete a row
 java.util.List<java.util.List<java.lang.String>> findResultOfUserRequest(java.lang.String strUserRequest, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
          Find all data from user request
 void insert(java.lang.String strPoolName, java.lang.String strTableName, java.util.List<java.lang.String> listData, java.util.List<java.lang.String> listFieldsNames, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
          Insert into a table of a database
 void insertWithUserRequest(java.lang.String strUserRequest, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService, java.lang.String strPoolName)
          Insert into a table of a database with user request
 java.util.List<java.util.List<java.lang.String>> load(java.lang.String strTableName, java.lang.String strContatFieldNameAndData, java.util.List<Field> listFields, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
          Find all data in a table
 java.util.List<java.lang.String> selectColumnNames(java.lang.String strUserRequest, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService, java.lang.String strPoolName)
          Find the names of the columns
 java.util.List<java.util.List<java.lang.String>> selectDataList(java.lang.String strTableName, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
          Selects and loads into the Data object all the data from the database
 java.util.List<java.util.List<java.lang.String>> selectDataListUserRequest(java.lang.String strPoolName, java.lang.String strUserRequest, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
          Creates a new instance of IDataDAO
 void store(java.lang.String strPoolName, java.lang.String strTableName, java.util.List<FieldValues> listFieldValues, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
          Store the row modified
 

Method Detail

selectDataList

java.util.List<java.util.List<java.lang.String>> selectDataList(java.lang.String strTableName,
                                                                fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Selects and loads into the Data object all the data from the database

Parameters:
strTableName - the name of the table
connectionService - PluginConnectionService object
Returns:
the list of data

selectDataListUserRequest

java.util.List<java.util.List<java.lang.String>> selectDataListUserRequest(java.lang.String strPoolName,
                                                                           java.lang.String strUserRequest,
                                                                           fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Creates a new instance of IDataDAO

Parameters:
strPoolName - the name of the pool
strUserRequest - user request
connectionService - PluginConnectionService object
Returns:
the list of data from user request

insert

void insert(java.lang.String strPoolName,
            java.lang.String strTableName,
            java.util.List<java.lang.String> listData,
            java.util.List<java.lang.String> listFieldsNames,
            fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Insert into a table of a database

Parameters:
strPoolName - the name of the pool
strTableName - the name of the table
listData - the list of data
listFieldsNames - the list of field names
connectionService - PluginConnectionService object

insertWithUserRequest

void insertWithUserRequest(java.lang.String strUserRequest,
                           fr.paris.lutece.portal.service.database.PluginConnectionService connectionService,
                           java.lang.String strPoolName)
Insert into a table of a database with user request

Parameters:
strUserRequest - user request
connectionService - PluginConnectionService object
strPoolName - the name of the pool

load

java.util.List<java.util.List<java.lang.String>> load(java.lang.String strTableName,
                                                      java.lang.String strContatFieldNameAndData,
                                                      java.util.List<Field> listFields,
                                                      fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Find all data in a table

Parameters:
strTableName - the name of the table
strContatFieldNameAndData - the concatenation of the field name and the data
listFields - the list of the fields
connectionService - PluginConnectionService object
Returns:
the list of all data in a table

findResultOfUserRequest

java.util.List<java.util.List<java.lang.String>> findResultOfUserRequest(java.lang.String strUserRequest,
                                                                         fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Find all data from user request

Parameters:
strUserRequest - user request
connectionService - PluginConnectionService object
Returns:
list of data from user request

selectColumnNames

java.util.List<java.lang.String> selectColumnNames(java.lang.String strUserRequest,
                                                   fr.paris.lutece.portal.service.database.PluginConnectionService connectionService,
                                                   java.lang.String strPoolName)
Find the names of the columns

Parameters:
strUserRequest - user request
connectionService - PluginConnectionService object
strPoolName - the name of the pool
Returns:
all names of the columns

store

void store(java.lang.String strPoolName,
           java.lang.String strTableName,
           java.util.List<FieldValues> listFieldValues,
           fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Store the row modified

Parameters:
strPoolName - the name of the pool
strTableName - the name of the table
listFieldValues - list of the fields values
connectionService - PluginConnectionService object

delete

void delete(java.lang.String strPoolName,
            java.lang.String strTableName,
            java.util.List<java.lang.String> listConcatFieldNameAndData,
            fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Delete a row

Parameters:
strPoolName - the name of the pool
strTableName - the name of the table
listConcatFieldNameAndData - the concatenation of the field name and the data
connectionService - PluginConnectionService object


Copyright © 2010 Mairie de Paris. All Rights Reserved.