<?php
#### START AUTOCODE
################################################################################
#  Lumine - Database Mapping for PHP
#  Copyright (C) 2005  Hugo Ferreira da Silva
#  
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#  
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#  
#  You should have received a copy of the GNU General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>
################################################################################
/**
 * Classe generada para a tabela "parCatLink"
 * in 2013-05-16
 * @author Hugo Ferreira da Silva
 * @link http://www.hufersil.com.br/lumine
 * @package Domain
 *
 */

class Parcatlink extends Lumine_Base {

    // sobrecarga
    protected $_tablename = 'parCatLink';
    protected $_package   = 'Domain';
    
    
    public $parcatid;
    public $parceriacategoriaid;
    public $parceriaid;
    
    
    /**
     * get parcatid
     *
     */
    public function getParcatid() {
    	return $this->parcatid;
    }
    
    /**
     * set parcatid
     * @param Type $value
     *
     */
    public function setParcatid($value) {
    	$this->parcatid = $value;
    }
    /**
     * get parceriacategoriaid
     *
     */
    public function getParceriacategoriaid() {
    	return $this->parceriacategoriaid;
    }
    
    /**
     * set parceriacategoriaid
     * @param Type $value
     *
     */
    public function setParceriacategoriaid($value) {
    	$this->parceriacategoriaid = $value;
    }
    /**
     * get parceriaid
     *
     */
    public function getParceriaid() {
    	return $this->parceriaid;
    }
    
    /**
     * set parceriaid
     * @param Type $value
     *
     */
    public function setParceriaid($value) {
    	$this->parceriaid = $value;
    }
    
    /**
     * Inicia os valores da classe
     * @author Hugo Ferreira da Silva
     * @return void
     */
    protected function _initialize()
    {
        
        
        # nome_do_membro, nome_da_coluna, tipo, comprimento, opcoes
        
        $this->_addField("parcatid", "parcatid", "int", 11, array('primary' => true, 'notnull' => true, 'autoincrement' => true));
        $this->_addField("parceriacategoriaid", "parceriacategoriaid", "int", 11, array('notnull' => true, 'foreign' => '1', 'onUpdate' => 'RESTRICT', 'onDelete' => 'RESTRICT', 'linkOn' => 'parceriacategoriaid', 'class' => 'Parceriacategoria'));
        $this->_addField("parceriaid", "parceriaid", "int", 11, array('notnull' => true, 'foreign' => '1', 'onUpdate' => 'RESTRICT', 'onDelete' => 'RESTRICT', 'linkOn' => 'parceriaid', 'class' => 'Parceria'));

        
    }

    /**
     * Recupera um objeto estaticamente
     * @author Hugo Ferreira da Silva
     * @return Parcatlink
     */
    public static function staticGet($pk, $pkValue = null)
    {
        $obj = new Parcatlink;
        $obj->get($pk, $pkValue);
        return $obj;
    }

	/**
	 * chama o destrutor pai
	 *
	 */
	function __destruct()
	{
		parent::__destruct();
	}
	
    #------------------------------------------------------#
    # Coloque todos os metodos personalizados abaixo de    #
    # END AUTOCODE                                         #
    #------------------------------------------------------#
    #### END AUTOCODE


}
