Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/jbpm/workflow/delegation/impl/ClassFileImpl.java


1   package org.jbpm.workflow.delegation.impl;
2   
3   import org.jbpm.workflow.definition.*;
4   
5   /**
6    * @hibernate.class table="JBPM_CLASSFILE"
7    */
8   public class ClassFileImpl {
9     
10    /**
11     * @hibernate.id column="id" type="long" unsaved-value="null" 
12     *  generator-class="org.jbpm.util.db.IdGenerator"
13     */ 
14    public Long getId() { return id; }
15    public void setId ( Long id ) { this.id = id; }
16    
17    /**
18     * @hibernate.property type="string" column="className"
19     */
20    public String getClassName() { return className; }
21    public void setClassName ( String className ) { this.className = className; }
22    
23    /**
24     * @hibernate.property type="binary" column="bytes"
25     */
26    public byte[] getBytes() { return bytes; }
27    public void setBytes ( byte[] bytes ) { this.bytes = bytes; }
28    
29    /**
30     * @hibernate.many-to-one class="org.jbpm.workflow.definition.impl.ProcessDefinitionImpl"
31     */
32    public ProcessDefinition getProcessDefinition() { return processDefinition; }
33    public void setProcessDefinition ( ProcessDefinition processDefinition ) { this.processDefinition = processDefinition; }
34    
35    public String toString() {
36      return "classFile[" + id + "|" + className + "|" + processDefinition.getId() + "]";
37    }
38  
39    private Long id = null;
40    private String className = null;
41    private byte[] bytes = null;
42    private ProcessDefinition processDefinition = null;
43  }