1  //!-- UTF8
     2  /*
     3  Oregano Multiuser Server - Version 1.2.0 - January 4th, 2005
     4   
     5  	Web:  www.oregano-server.org
     6  	Mail: info@oregano-server.org
     7   
     8  	Copyright 2003 - 2004 - 2004 Jens Halm / Cologne, Germany
     9   
    10   This library is free software; you can redistribute it and/or
    11   modify it under the terms of the GNU Lesser General Public
    12   License as published by the Free Software Foundation; either
    13   version 2.1 of the License, or (at your option) any later version.
    14   
    15   This library is distributed in the hope that it will be useful,
    16   but WITHOUT ANY WARRANTY; without even the implied warranty of
    17   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    18   Lesser General Public License for more details.
    19   
    20   You should have received a copy of the GNU Lesser General Public
    21   License along with this library; if not, write to the Free Software
    22   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    23   */
    24  
    25  /*
    26  -------------------------------------------
    27  	Classe ClearTable
    28  
    29  	@description :
    30  	Gère la mise à jour des données d'une Table.
    31  
    32  
    33  	@author Jens Halm copyright http://www.spicefactory.org/
    34  	@author erixtekila copyleft http://www.v-i-a.net  
    35  -------------------------------------------
    36  	version history :
    37  	1.2.0 : 17/01/05
    38  			- Portage en actionscript 2 pour le
    39  			compile time type checking
    40  -------------------------------------------
    41  */
    42  
    43  import org.omus.data.Table;
    44  
    45  /**
    46   *	Portion de UpdateSequence.
    47   *
    48   *	@see org.omus.data.UpdateSequence
    49   *
    50   *	@author Jens Halm copyright http://www.spicefactory.org/
    51   *	@author erixtekila copyleft http://www.v-i-a.net 
    52   *	@version 1.2.0
    53   */
    54  class org.omus.data.ClearTable
    55  {
    56  	//--------------------
    57  	// PROPRIETES
    58  	//--------------------
    59  
    60  	
    61  	//--------------------
    62  	// CONSTRUCTEUR
    63  	//--------------------
    64  	/**
    65  	 *	
    66  	 */
    67  	public function ClearTable(rowID:Number, row:Object)
    68  	{
    69  		// trace(this+ " installé.");
    70  	}
    71  	
    72  	//--------------------
    73  	// METHODES PUBLIQUES
    74  	//--------------------
    75  	/**
    76  	 *	Utilisé dans un contexte littéral
    77  	 *	@return	Une chaine définissant l'objet
    78  	 */
    79  	public function toString ():String
    80  	{
    81  		return "[Object ClearTable]";
    82  	}
    83  	
    84  	/**
    85  	 *	Initialisation des valeurs à mettre à jour.
    86  	 *
    87  	 *	@param table		Une référence à la Table à mettre à jour.
    88  	 *	@param clientReq	true si c'est le client qui effectue la requette, false si cela vient d'un autre utilisateur.
    89  	 */
    90  	public function execute (table:Table, clientReq:Boolean):Void
    91  	{
    92  		table.removeAllEvent(clientReq);
    93  	}
    94  	
    95  	/**
    96  	 *	Encodage.
    97  	 *
    98  	 *	@return		Une chaîne encodée.
    99  	 */
   100  	public function getMarshalledSequence ():String
   101  	{
   102  		// TODO : Passer la constante dans cette classe. 
   103  		return "#p" + org.omus.data.UpdateSequence.CLEAR_TABLE + "#x#z";
   104  	}
   105  	
   106  	//--------------------
   107  	// METHODES PRIVEES
   108  	//--------------------
   109  	/**
   110  	 *	Formatage d'une chaine d'informations sur cet objet.
   111  	 *
   112  	 *	@return				Une chaine formatée.
   113  	 */
   114  	private function format ():String
   115  	{
   116  		return "[Object ClearTable]";
   117  	}
   118  	
   119  	//--------------------
   120  	// METHODES STATIQUES
   121  	//--------------------
   122  	/**
   123  	 *	Utilisé dans un contexte littéral
   124  	 *	@return	Une chaine définissant l'objet
   125  	 */
   126  	public static function toLog():String
   127  	{
   128  		return "[Object ClearTable]";
   129  	}
   130  }