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 DbReader
    28   
    29  	@description :
    30  	Requête SQL en lecture.
    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 : 04/02/05
    38  			- Portage en actionscript 2 pour le
    39  			compile time type checking
    40   -------------------------------------------
    41   */
    42  
    43  import org.omus.db.DbTransactionPart;
    44  
    45  /**
    46   *	Cette classe dère la lecture pour les éléments de requête SQL.
    47   *
    48   *	@author Jens Halm copyright http://www.spicefactory.org/
    49   *	@author erixtekila copyleft http://www.v-i-a.net 
    50   *	@version 1.2.0
    51   */
    52  class org.omus.db.DbReader extends DbTransactionPart
    53  {
    54  	//--------------------
    55  	// PROPRIETES
    56  	//--------------------
    57  	
    58  	//--------------------
    59  	// CONSTRUCTEUR
    60  	//--------------------
    61  	/**
    62  	 *	TODO
    63  	 *
    64  	 *	@param configID		TODO
    65  	 *	@param	resultID	Identifiant pour l'objet dbResult.
    66  	 */
    67  	public function DbReader (configID:String, resultID:String)
    68  	{
    69  		super(configID, resultID);
    70  		
    71  		// Propriétés
    72  		obj.isWriter = false;
    73  		
    74  		// trace(this+ " installé.");
    75  	}
    76  	
    77  	//--------------------
    78  	// METHODES PUBLIQUES
    79  	//--------------------
    80  	/**
    81  	 *	Utilisé dans un contexte littéral
    82  	 *	@return	Une chaine définissant l'objet
    83  	 */
    84  	public function toString():String
    85  	{
    86  		var s = "[Objet DbReader]";
    87  		s += "\norg.omus.DbReader: \nconfigID = " + obj.configID;
    88  		s += "resultID = " + obj.resultID;
    89  		s += "parameters = " + org.omus.util.Log.formatObject(obj.params, 1);
    90  		return s;
    91  	}
    92  	
    93  	//--------------------
    94  	// METHODES PRIVEES
    95  	//--------------------
    96  	
    97  	
    98  	//--------------------
    99  	// METHODES STATIQUES
   100  	//--------------------
   101  	/**
   102  	 *	Utilisé dans un contexte littéral
   103  	 *
   104  	 *	@return Une chaine définissant l'objet.
   105  	 */
   106  	public static function toLog():String
   107  	{
   108  		return "[Objet DbReader]";
   109  	}
   110  }