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

java.lang.Object
  extended by fr.paris.lutece.plugins.adminsql.business.TableHome

public final class TableHome
extends java.lang.Object

The class calling the business objects


Constructor Summary
TableHome()
           
 
Method Summary
static void create(java.lang.String strPoolName, Table table, Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create an intance of a field
static java.util.List<Table> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find the tables list of a pool
static java.util.List<Table> findAllByPool(java.lang.String strPoolName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find the tables list of a pool
static Table findByPrimaryKey(java.lang.String strPoolName, java.lang.String strTableName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find table in tables list
static void remove(java.lang.String strTableName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a table
static void update(java.lang.String strTableNameToModify, Table table)
          Update a table on a database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableHome

public TableHome()
Method Detail

findAll

public static java.util.List<Table> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the tables list of a pool

Parameters:
plugin - Plugin adminsq
Returns:
list of tables

findAllByPool

public static java.util.List<Table> findAllByPool(java.lang.String strPoolName,
                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the tables list of a pool

Parameters:
strPoolName - the name of the pool
plugin - Plugin adminsq
Returns:
list of tables

findByPrimaryKey

public static Table findByPrimaryKey(java.lang.String strPoolName,
                                     java.lang.String strTableName,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find table in tables list

Parameters:
strPoolName - the name of the pool
strTableName - the name of the table
plugin - Plugin adminsql
Returns:
table in tables list

create

public static void create(java.lang.String strPoolName,
                          Table table,
                          Field field,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an intance of a field

Parameters:
strPoolName - the name of the pool
table - Table object
field - field object
plugin - Plugin adminsql

remove

public static void remove(java.lang.String strTableName,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a table

Parameters:
strTableName - the name of the table
plugin - Plugin adminsql

update

public static void update(java.lang.String strTableNameToModify,
                          Table table)
Update a table on a database

Parameters:
strTableNameToModify -
table - Table object


Copyright © 2010 Mairie de Paris. All Rights Reserved.