format 74
"Table" // default::Nette::Database::Table
  revision 1
  modified_by 127 "neo"
  // class settings
  //class diagram settings
  draw_all_relations default hide_attributes default hide_operations default hide_getset_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_members_context default show_members_multiplicity default show_members_initialization default show_attribute_modifiers default member_max_width 0 show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_relation_modifiers default show_relation_visibility default show_infonote default shadow default show_stereotype_properties default
  //use case diagram settings
  package_name_in_tab default show_context default auto_label_position default draw_all_relations default class_drawing_mode default shadow default show_stereotype_properties default
  //sequence diagram settings
  show_full_operations_definition default write_horizontally default class_drawing_mode default drawing_language default draw_all_relations default shadow default show_stereotype_properties default show_class_context_mode default show_msg_context_mode default
  //collaboration diagram settings
  show_full_operations_definition default show_hierarchical_rank default write_horizontally default drawing_language default package_name_in_tab default show_context default show_msg_context default draw_all_relations default shadow default show_stereotype_properties default
  //object diagram settings
   write_horizontally default package_name_in_tab default show_context default auto_label_position default draw_all_relations default shadow default show_stereotype_properties default
  //component diagram settings
  package_name_in_tab default show_context default auto_label_position default draw_all_relations default shadow default
  draw_component_as_icon default show_component_req_prov default show_component_rea default show_stereotype_properties default
  //deployment diagram settings
  package_name_in_tab default show_context default write_horizontally default auto_label_position default draw_all_relations default shadow default
  draw_component_as_icon default show_component_req_prov default show_component_rea default show_stereotype_properties default
  //state diagram settings
  package_name_in_tab default show_context default auto_label_position default write_trans_label_horizontally default show_trans_definition default draw_all_relations default shadow default
  show_activities default region_horizontally default drawing_language default show_stereotype_properties default
  //activity diagram settings
  package_name_in_tab default show_context default show_opaque_action_definition default auto_label_position default write_flow_label_horizontally default draw_all_relations default shadow default
  show_infonote default drawing_language default show_stereotype_properties default
  
  comment "This file is part of the Nette Framework (http://nette.org) 
Copyright (c) 2004 David Grudl (http://davidgrudl.com) 
For the full copyright and license information, please view the file license.txt that was distributed with this source code."
  classview 132863 "Class View"
    //class diagram settings
    draw_all_relations default hide_attributes default hide_operations default hide_getset_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_members_context default show_members_multiplicity default show_members_initialization default show_attribute_modifiers default member_max_width 0 show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_relation_modifiers default show_relation_visibility default show_infonote default shadow default show_stereotype_properties default
    //collaboration diagram settings
    show_full_operations_definition default show_hierarchical_rank default write_horizontally default drawing_language default package_name_in_tab default show_context default show_msg_context default draw_all_relations default shadow default show_stereotype_properties default
    //object diagram settings
     write_horizontally default package_name_in_tab default show_context default auto_label_position default draw_all_relations default shadow default show_stereotype_properties default
    //sequence diagram settings
    show_full_operations_definition default write_horizontally default class_drawing_mode default drawing_language default draw_all_relations default shadow default show_stereotype_properties default show_class_context_mode default show_msg_context_mode default
    //state diagram settings
    package_name_in_tab default show_context default auto_label_position default write_trans_label_horizontally default show_trans_definition default draw_all_relations default shadow default
    show_activities default region_horizontally default drawing_language default show_stereotype_properties default
    //class settings
    //activity diagram settings
    package_name_in_tab default show_context default show_opaque_action_definition default auto_label_position default write_flow_label_horizontally default draw_all_relations default shadow default
    show_infonote default drawing_language default show_stereotype_properties default
    class 156927 "ActiveRow"
      visibility package 
      cpp_decl ""
      java_decl ""
      php_decl "${comment}${final}${visibility}${abstract}class ${name}${extends}${implements} {
${members}}
"
      python_2_2 python_decl ""
      idl_decl ""
      explicit_switch_type ""
      
      comment "Single row representation.
ActiveRow is based on the great library NotORM http://www.notorm.com written by Jakub Vrana."
      classrelation 148991 // <generalisation>
	relation 148991 ---|>
	  a public
	    php "${type}"
	    classrelation_ref 148991 // <generalisation>
	  b parent class_ref 142335 // Object
      end

      attribute 204671 "_table"
	private explicit_type ""
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 204799 "_data"
	private explicit_type "array"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 204927 "_dataRefreshed"
	private explicit_type "bool"
	init_value "FALSE"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 205055 "_modified"
	private explicit_type "array"
	init_value "array()"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      operation 295807 "__construct"
	public explicit_return_type "void"
	nparams 2
	  param in name "$data" explicit_type "array"
	  param in name "$table" explicit_type ""
	
	
	php_def "  ${comment}${final}${visibility}${abstract}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 295935 "__toString"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 296063 "toArray"
	public explicit_return_type "array"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 296191 "getPrimary"
	public explicit_return_type "mixed"
	nparams 1
	  param in name "$need" explicit_type "mixed"
	    defaultvalue "TRUE"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns primary key value."
      end

      operation 296319 "getSignature"
	public explicit_return_type "string"
	nparams 1
	  param in name "$need" explicit_type "mixed"
	    defaultvalue "TRUE"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns row signature (composition of primary keys)"
      end

      operation 296447 "ref"
	public return_type class_ref 156927 // ActiveRow
	nparams 2
	  param in name "$key" explicit_type "mixed"
	  param in name "$throughColumn" explicit_type "mixed"
	    defaultvalue "NULL"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns referenced row."
      end

      operation 296575 "related"
	public explicit_return_type ""
	nparams 2
	  param in name "$key" explicit_type "mixed"
	  param in name "$throughColumn" explicit_type "mixed"
	    defaultvalue "NULL"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns referencing rows."
      end

      operation 296703 "update"
	public explicit_return_type "int"
	nparams 1
	  param in name "$data" explicit_type "mixed"
	    defaultvalue "NULL"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Updates row."
      end

      operation 296831 "delete"
	public explicit_return_type "int"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Deletes row."
      end

      operation 296959 "getIterator"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 297087 "offsetSet"
	public explicit_return_type "void"
	nparams 2
	  param in name "$key" explicit_type "mixed"
	  param in name "$value" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Stores value in column."
      end

      operation 297215 "offsetGet"
	public explicit_return_type "string"
	nparams 1
	  param in name "$key" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns value of column."
      end

      operation 297343 "offsetExists"
	public explicit_return_type "bool"
	nparams 1
	  param in name "$key" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Tests if column exists."
      end

      operation 297471 "offsetUnset"
	public explicit_return_type "void"
	nparams 1
	  param in name "$key" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Removes column from data."
      end

      operation 297599 "__set"
	public explicit_return_type "void"
	nparams 2
	  param in name "$key" explicit_type "mixed"
	  param in name "$value" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 297727 "__get"
	public explicit_return_type "void"
	nparams 1
	  param in name "$key" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 297855 "__isset"
	public explicit_return_type "void"
	nparams 1
	  param in name "$key" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 297983 "__unset"
	public explicit_return_type "void"
	nparams 1
	  param in name "$key" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 298111 "accessColumn"
	protected explicit_return_type "void"
	nparams 2
	  param in name "$key" explicit_type "mixed"
	  param in name "$selectColumn" explicit_type "mixed"
	    defaultvalue "TRUE"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 298239 "removeAccessColumn"
	protected explicit_return_type "void"
	nparams 1
	  param in name "$key" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 298367 "getReference"
	protected explicit_return_type "void"
	nparams 2
	  param in name "$table" explicit_type "mixed"
	  param in name "$column" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end
    end

    class 157055 "SqlBuilder"
      visibility package 
      cpp_decl ""
      java_decl ""
      php_decl "${comment}${final}${visibility}${abstract}class ${name}${extends}${implements} {
${members}}
"
      python_2_2 python_decl ""
      idl_decl ""
      explicit_switch_type ""
      
      comment "Builds SQL query.
SqlBuilder is based on great library NotORM http://www.notorm.com written by Jakub Vrana."
      classrelation 149119 // <generalisation>
	relation 149119 ---|>
	  a public
	    php "${type}"
	    classrelation_ref 149119 // <generalisation>
	  b parent class_ref 142335 // Object
      end

      attribute 205183 "_driver"
	private type class_ref 155007 // ISupplementalDriver
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 205311 "_driverName"
	private explicit_type "string"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 205439 "_tableName"
	protected explicit_type "string"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 205567 "_databaseReflection"
	protected explicit_type ""
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 205695 "_delimitedTable"
	protected explicit_type "string"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 205823 "_select"
	protected explicit_type "array"
	init_value "array()"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 205951 "_where"
	protected explicit_type "array"
	init_value "array()"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 206079 "_conditions"
	protected explicit_type "array"
	init_value "array()"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 206207 "_parameters"
	protected explicit_type "array"
	init_value "array()"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 206335 "_order"
	protected explicit_type "array"
	init_value "array()"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 206463 "_limit"
	protected explicit_type "int"
	init_value "NULL"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 206591 "_offset"
	protected explicit_type "int"
	init_value "NULL"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 206719 "_group"
	protected explicit_type "string"
	init_value "''"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 206847 "_having"
	protected explicit_type "string"
	init_value "''"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      operation 298495 "__construct"
	public explicit_return_type "void"
	nparams 3
	  param in name "$tableName" explicit_type "mixed"
	  param in name "$connection" type class_ref 154367 // Connection
	  param in name "$reflection" type class_ref 154623 // IReflection
	
	
	php_def "  ${comment}${final}${visibility}${abstract}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 298623 "buildInsertQuery"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 298751 "buildUpdateQuery"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 298879 "buildDeleteQuery"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 299007 "importConditions"
	public explicit_return_type "void"
	nparams 1
	  param in name "$builder" type class_ref 157055 // SqlBuilder
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 299135 "addSelect"
	public explicit_return_type "void"
	nparams 1
	  param in name "$columns" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 299263 "getSelect"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 299391 "addWhere"
	public explicit_return_type "void"
	nparams 2
	  param in name "$condition" explicit_type "mixed"
	  param in name "$parameters" explicit_type "array"
	    defaultvalue "array()"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 299519 "getConditions"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 299647 "addOrder"
	public explicit_return_type "void"
	nparams 1
	  param in name "$columns" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 299775 "getOrder"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 299903 "setLimit"
	public explicit_return_type "void"
	nparams 2
	  param in name "$limit" explicit_type "mixed"
	  param in name "$offset" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 300031 "getLimit"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 300159 "getOffset"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 300287 "setGroup"
	public explicit_return_type "void"
	nparams 2
	  param in name "$columns" explicit_type "mixed"
	  param in name "$having" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 300415 "getGroup"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 300543 "getHaving"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 300671 "buildSelectQuery"
	public explicit_return_type "string"
	nparams 1
	  param in name "$columns" explicit_type "mixed"
	    defaultvalue "NULL"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns SQL query."
      end

      operation 300799 "getParameters"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 300927 "buildJoins"
	protected explicit_return_type "void"
	nparams 2
	  param in name "$val" explicit_type "mixed"
	  param in name "$inner" explicit_type "mixed"
	    defaultvalue "FALSE"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 301055 "buildConditions"
	protected explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 301183 "buildTopClause"
	protected explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 301311 "tryDelimite"
	protected explicit_return_type "void"
	nparams 1
	  param in name "$s" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 301439 "removeExtraTables"
	protected explicit_return_type "void"
	nparams 1
	  param in name "$expression" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end
    end

    class 157183 "Selection"
      visibility package 
      cpp_decl ""
      java_decl ""
      php_decl "${comment}${final}${visibility}${abstract}class ${name}${extends}${implements} {
${members}}
"
      python_2_2 python_decl ""
      idl_decl ""
      explicit_switch_type ""
      
      comment "Filtered table representation.
Selection is based on the great library NotORM http://www.notorm.com written by Jakub Vrana."
      classrelation 149247 // <generalisation>
	relation 149247 ---|>
	  a public
	    php "${type}"
	    classrelation_ref 149247 // <generalisation>
	  b parent class_ref 142335 // Object
      end

      attribute 206975 "_connection"
	protected type class_ref 154367 // Connection
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 207103 "_cache"
	protected type class_ref 149887 // Cache
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 207231 "_sqlBuilder"
	protected type class_ref 157055 // SqlBuilder
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 207359 "_name"
	protected explicit_type "string"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 207487 "_primary"
	protected explicit_type "string"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 207615 "_primarySequence"
	protected explicit_type ""
	init_value "FALSE"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 207743 "_rows"
	protected explicit_type ""
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 207871 "_data"
	protected explicit_type ""
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 207999 "_dataRefreshed"
	protected explicit_type "bool"
	init_value "FALSE"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 208127 "_referenced"
	protected explicit_type "array"
	init_value "array()"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 208255 "_referencing"
	protected explicit_type "array"
	init_value "array()"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 208383 "_referencingPrototype"
	protected explicit_type "array"
	init_value "array()"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 208511 "_aggregation"
	protected explicit_type "array"
	init_value "array()"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 208639 "_accessedColumns"
	protected explicit_type "array"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 208767 "_previousAccessedColumns"
	protected explicit_type "array"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 208895 "_observeCache"
	protected explicit_type "bool"
	init_value "FALSE"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 209023 "_checkReferenced"
	protected explicit_type "bool"
	init_value "FALSE"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 209151 "_keys"
	protected explicit_type "array"
	init_value "array()"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      operation 301567 "__construct"
	public explicit_return_type "void"
	nparams 2
	  param in name "$table" explicit_type "mixed"
	  param in name "$connection" type class_ref 154367 // Connection
	
	
	php_def "  ${comment}${final}${visibility}${abstract}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Creates filtered table representation."
      end

      operation 301695 "__destruct"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 301823 "__clone"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 301951 "getConnection"
	public return_type class_ref 154367 // Connection
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 302079 "getName"
	public explicit_return_type "string"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 302207 "getPrimary"
	public explicit_return_type ""
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 302335 "getPrimarySequence"
	public explicit_return_type "string"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 302463 "setPrimarySequence"
	public return_type class_ref 157183 // Selection
	nparams 1
	  param in name "$sequence" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 302591 "getSql"
	public explicit_return_type "string"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 302719 "get"
	public return_type class_ref 156927 // ActiveRow
	nparams 1
	  param in name "$key" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns row specified by primary key."
      end

      operation 302847 "fetch"
	public return_type class_ref 156927 // ActiveRow
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns next row of result."
      end

      operation 302975 "fetchPairs"
	public explicit_return_type "array"
	nparams 2
	  param in name "$key" explicit_type "mixed"
	  param in name "$value" explicit_type "mixed"
	    defaultvalue "NULL"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns all rows as associative array."
      end

      operation 303103 "select"
	public return_type class_ref 157183 // Selection
	nparams 1
	  param in name "$columns" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Adds select clause, more calls appends to the end."
      end

      operation 303231 "find"
	public return_type class_ref 157183 // Selection
	nparams 1
	  param in name "$key" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Method is deprecated, use wherePrimary() instead."
      end

      operation 303359 "wherePrimary"
	public return_type class_ref 157183 // Selection
	nparams 1
	  param in name "$key" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Adds condition for primary key."
      end

      operation 303487 "where"
	public return_type class_ref 157183 // Selection
	nparams 2
	  param in name "$condition" explicit_type "mixed"
	  param in name "$parameters" explicit_type "array"
	    defaultvalue "array()"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Adds where condition, more calls appends with AND."
      end

      operation 303615 "order"
	public return_type class_ref 157183 // Selection
	nparams 1
	  param in name "$columns" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Adds order clause, more calls appends to the end."
      end

      operation 303743 "limit"
	public return_type class_ref 157183 // Selection
	nparams 2
	  param in name "$limit" explicit_type "mixed"
	  param in name "$offset" explicit_type "mixed"
	    defaultvalue "NULL"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Sets limit clause, more calls rewrite old values."
      end

      operation 303871 "page"
	public return_type class_ref 157183 // Selection
	nparams 2
	  param in name "$page" explicit_type "mixed"
	  param in name "$itemsPerPage" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Sets offset using page number, more calls rewrite old values."
      end

      operation 303999 "group"
	public return_type class_ref 157183 // Selection
	nparams 2
	  param in name "$columns" explicit_type "mixed"
	  param in name "$having" explicit_type "mixed"
	    defaultvalue "NULL"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Sets group clause, more calls rewrite old values."
      end

      operation 304127 "aggregation"
	public explicit_return_type "string"
	nparams 1
	  param in name "$function" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Executes aggregation function."
      end

      operation 304255 "count"
	public explicit_return_type "int"
	nparams 1
	  param in name "$column" explicit_type "mixed"
	    defaultvalue "NULL"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Counts number of rows."
      end

      operation 304383 "min"
	public explicit_return_type "int"
	nparams 1
	  param in name "$column" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns minimum value from a column."
      end

      operation 304511 "max"
	public explicit_return_type "int"
	nparams 1
	  param in name "$column" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns maximum value from a column."
      end

      operation 304639 "sum"
	public explicit_return_type "int"
	nparams 1
	  param in name "$column" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns sum of values in a column."
      end

      operation 304767 "execute"
	protected explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 304895 "createRow"
	protected explicit_return_type "void"
	nparams 1
	  param in name "$row" explicit_type "array"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 305023 "createSelectionInstance"
	protected explicit_return_type "void"
	nparams 1
	  param in name "$table" explicit_type "mixed"
	    defaultvalue "NULL"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 305151 "createGroupedSelectionInstance"
	protected explicit_return_type "void"
	nparams 2
	  param in name "$table" explicit_type "mixed"
	  param in name "$column" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 305279 "query"
	protected explicit_return_type "void"
	nparams 1
	  param in name "$query" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 305407 "emptyResultSet"
	protected explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 305535 "saveCacheState"
	protected explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 305663 "getRefTable"
	protected return_type class_ref 157183 // Selection
	nparams 1
	  param inout name "$refPath" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns Selection parent for caching."
      end

      operation 305791 "getDataRefreshed"
	public explicit_return_type "bool"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns if selection requeried for more columns."
      end

      operation 305919 "insert"
	public return_type class_ref 156927 // ActiveRow
	nparams 1
	  param in name "$data" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Inserts row in a table."
      end

      operation 306047 "update"
	public explicit_return_type "int"
	nparams 1
	  param in name "$data" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Updates all rows in result set.
Joins in UPDATE are supported only in MySQL"
      end

      operation 306175 "delete"
	public explicit_return_type "int"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Deletes all rows in result set."
      end

      operation 306303 "getReferencedTable"
	public return_type class_ref 157183 // Selection
	nparams 3
	  param in name "$table" explicit_type "mixed"
	  param in name "$column" explicit_type "mixed"
	  param in name "$checkReferenced" explicit_type "mixed"
	    defaultvalue "FALSE"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns referenced row."
      end

      operation 306431 "getReferencingTable"
	public explicit_return_type ""
	nparams 3
	  param in name "$table" explicit_type "mixed"
	  param in name "$column" explicit_type "mixed"
	  param in name "$active" explicit_type "mixed"
	    defaultvalue "NULL"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns referencing rows."
      end

      operation 306559 "rewind"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 306687 "current"
	public return_type class_ref 156927 // ActiveRow
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 306815 "key"
	public explicit_return_type "string"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 306943 "next"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 307071 "valid"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 307199 "offsetSet"
	public explicit_return_type "null"
	nparams 2
	  param in name "$key" explicit_type "mixed"
	  param in name "$value" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Mimic row."
      end

      operation 307327 "offsetGet"
	public return_type class_ref 156927 // ActiveRow
	nparams 1
	  param in name "$key" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Returns specified row."
      end

      operation 307455 "offsetExists"
	public explicit_return_type "bool"
	nparams 1
	  param in name "$key" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Tests if row exists."
      end

      operation 307583 "offsetUnset"
	public explicit_return_type "null"
	nparams 1
	  param in name "$key" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Removes row from result set."
      end

      classrelation 149375 // <realization>
	relation 149375 -_-|>
	  a public
	    php "${type}"
	    classrelation_ref 149375 // <realization>
	  b parent class_ref 128255 // Iterator
      end

      classrelation 149503 // <realization>
	relation 149503 -_-|>
	  a public
	    php "${type}"
	    classrelation_ref 149503 // <realization>
	  b parent class_ref 128383 // Countable
      end
    end

    class 157311 "GroupedSelection"
      visibility package 
      cpp_decl ""
      java_decl ""
      php_decl "${comment}${final}${visibility}${abstract}class ${name}${extends}${implements} {
${members}}
"
      python_2_2 python_decl ""
      idl_decl ""
      explicit_switch_type ""
      
      comment "Representation of filtered table grouped by some column.
GroupedSelection is based on the great library NotORM http://www.notorm.com written by Jakub Vrana."
      classrelation 149631 // <generalisation>
	relation 149631 ---|>
	  a public
	    php "${type}"
	    classrelation_ref 149631 // <generalisation>
	  b parent class_ref 157183 // Selection
      end

      attribute 209279 "_refTable"
	protected type class_ref 157183 // Selection
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 209407 "_column"
	protected explicit_type "string"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      attribute 209535 "_active"
	protected explicit_type "int"
	cpp_decl ""
	java_decl ""
	php_decl "  ${comment}${visibility}${const}${static}${var}${name}${value};
"
	python_decl ""
	idl_decl ""
      end

      operation 307711 "__construct"
	public explicit_return_type "void"
	nparams 3
	  param in name "$refTable" type class_ref 157183 // Selection
	  param in name "$table" explicit_type "mixed"
	  param in name "$column" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}function ${name}${(}${)}
{
  ${body}}
"
	
	
	comment "Creates filtered and grouped table representation."
      end

      operation 307839 "through"
	public explicit_return_type "void"
	nparams 1
	  param in name "$column" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 307967 "select"
	public explicit_return_type "void"
	nparams 1
	  param in name "$columns" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 308095 "order"
	public explicit_return_type "void"
	nparams 1
	  param in name "$columns" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 308223 "aggregation"
	public explicit_return_type "void"
	nparams 1
	  param in name "$function" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 308351 "count"
	public explicit_return_type "void"
	nparams 1
	  param in name "$column" explicit_type "mixed"
	    defaultvalue "NULL"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 308479 "execute"
	protected explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 308607 "getRefTable"
	protected explicit_return_type "void"
	nparams 1
	  param inout name "$refPath" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 308735 "insert"
	public explicit_return_type "void"
	nparams 1
	  param in name "$data" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 308863 "update"
	public explicit_return_type "void"
	nparams 1
	  param in name "$data" explicit_type "mixed"
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end

      operation 308991 "delete"
	public explicit_return_type "void"
	nparams 0
	
	
	php_def "  ${comment}${final}${visibility}${abstract}${static}function ${name}${(}${)}
{
  ${body}}
"
	
	
      end
    end
  end
end
