Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2005-2013 The Kuali Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.opensource.org/licenses/ecl2.php Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package org.kuali.rice.kew.engine.node;
 
 
A route node definition configuration parameter. RouteNodeConfigParameters are extracted when the route node is parsed, and depend on route node implementation. (well, they actually depend on the route node parser because the parser is what will parse them, but the parser is not specialized per-node-type at this point)

Author(s):
Kuali Rice Team (rice.collab@kuali.org)
 
 @Table(name="KREW_RTE_NODE_CFG_PARM_T")
 @AttributeOverrides({@AttributeOverride(name="key", column=@Column(name="KEY_CD")), @AttributeOverride(name="value", column=@Column(name="VAL"))})
     private static final long serialVersionUID = 5592421070149273014L;

    
Primary key
  
     @Id
 	@Column(name="RTE_NODE_CFG_PARM_ID")
 	@GeneratedValue(generator="KREW_RTE_NODE_CFG_PARM_S")
 	@GenericGenerator(name="KREW_RTE_NODE_CFG_PARM_S",strategy="org.hibernate.id.enhanced.SequenceStyleGenerator",parameters={
 			@Parameter(name="sequence_name",value="KREW_RTE_NODE_CFG_PARM_S"),
 			@Parameter(name="value_column",value="id")
 	})
     //@SequenceGenerator(name="KREW_RTE_NODE_CFG_PARM_SEQ_GEN", sequenceName="KREW_RTE_NODE_CFG_PARM_S")	
 	private String id;
 	private String key;
     private String value;
    
Foreign key to routenode table
 
     @ManyToOne(fetch=.)
 	@JoinColumn(name="RTE_NODE_ID")
 	private RouteNode routeNode;
 
     public RouteNodeConfigParam() {}
 
     public RouteNodeConfigParam(RouteNode routeNodeString keyString value) {
     	this. = key;
     	this. = value;
         this. = routeNode;
     }

    

Returns:
the id
 
     @Override
     public String getId() {
 		return this.;
     }
    

Parameters:
id the id to set
 
     public void setId(String id) {
         this. = id;
     }
    

Returns:
the routeNode
 
     public RouteNode getRouteNode() {
         return this.;
     }
    

Parameters:
routeNode the routeNode to set
 
    public void setRouteNode(RouteNode routeNode) {
        this. = routeNode;
    }
    
    @Override
    public String getKey() {
    	return ;
    }
    
    @Override
    public String getValue() {
    	return ;
    }
    
    public void setKey(String key) {
		this. = key;
	}
	public void setValue(String value) {
		this. = value;
	}
    @Override
    public String getRouteNodeId() {
        if ( == null || .getRouteNodeId() == null) {
            return null;
        }
        return .getRouteNodeId().toString();
    }
New to GrepCode? Check out our FAQ X