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

java.lang.Object
  extended by fr.paris.lutece.plugins.adminsql.business.DataDAO
All Implemented Interfaces:
IDataDAO

public class DataDAO
extends java.lang.Object
implements IDataDAO

Creates a new instance of DataDAO


Constructor Summary
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 in a table
 java.util.List<java.util.List<java.lang.String>> findResultOfUserRequest(java.lang.String strUserRequest, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
          Result of 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 data in table
 void insertWithUserRequest(java.lang.String strUserRequest, fr.paris.lutece.portal.service.database.PluginConnectionService connectionService, java.lang.String strPoolName)
          Insert the data 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 the list of data of 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 all 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)
          Selects and loads into the Data object all the data from the database in user request
 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 data in tha table in a database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataDAO

public DataDAO()
Method Detail

selectDataList

public 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

Specified by:
selectDataList in interface IDataDAO
Parameters:
strTableName - the name of the table
connectionService - PluginConnectionService Object
Returns:
list of data

selectDataListUserRequest

public 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)
Selects and loads into the Data object all the data from the database in user request

Specified by:
selectDataListUserRequest in interface IDataDAO
Parameters:
strPoolName - the name of the pool
strUserRequest - user request
connectionService - PluginConnectionService Object
Returns:
list of data

insert

public 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 data in table

Specified by:
insert in interface IDataDAO
Parameters:
strPoolName - the name of the pool
strTableName - the name of the table
listData - the list of data
listFieldsNames - list of fields names
connectionService - PluginConnectionService object

store

public 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 data in tha table in a database

Specified by:
store in interface IDataDAO
Parameters:
strPoolName - the name of the pool
strTableName - the name of the table
listFieldValues - the list fields values
connectionService - PluginConnectionService object

delete

public 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 in a table

Specified by:
delete in interface IDataDAO
Parameters:
strPoolName - the name of the pool
strTableName - the name of the table
listConcatFieldNameAndData - the list of concatenation of fields name and data
connectionService - PluginConnectionService object

insertWithUserRequest

public void insertWithUserRequest(java.lang.String strUserRequest,
                                  fr.paris.lutece.portal.service.database.PluginConnectionService connectionService,
                                  java.lang.String strPoolName)
Insert the data with user request

Specified by:
insertWithUserRequest in interface IDataDAO
Parameters:
strUserRequest - user request
connectionService - PluginConnectionService object
strPoolName - the name of the pool

load

public 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 the list of data of a table

Specified by:
load in interface IDataDAO
Parameters:
strTableName - the name of the table
strContatFieldNameAndData - the list of concatenation of fields name and data
listFields - list of fields
connectionService - PluginConnectionService object
Returns:
list of the data

findResultOfUserRequest

public java.util.List<java.util.List<java.lang.String>> findResultOfUserRequest(java.lang.String strUserRequest,
                                                                                fr.paris.lutece.portal.service.database.PluginConnectionService connectionService)
Result of user request

Specified by:
findResultOfUserRequest in interface IDataDAO
Parameters:
strUserRequest - user request
connectionService - PluginConnectionService object
Returns:
result of user request

selectColumnNames

public 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 all columns

Specified by:
selectColumnNames in interface IDataDAO
Parameters:
strUserRequest - user request
connectionService - PluginConnectionService object
strPoolName - the name of the pool
Returns:
list of all names of the columns


Copyright © 2010 Mairie de Paris. All Rights Reserved.