fileimpl.java
来自「一个java工作流引擎」· Java 代码 · 共 39 行
JAVA
39 行
package org.jbpm.model.definition.impl;
import org.apache.commons.logging.*;
import org.jbpm.persistence.*;
public class FileImpl {
private static FileMgr fileMgr = null;
private Long id = null;
private String name = null;
private Long definitionId = null;
private byte[] bytes = null;
public FileImpl() {}
public FileImpl(Long definitionId, String name, byte[] bytes) {
this.definitionId = definitionId;
this.name = name;
this.bytes = bytes;
}
public Long getId() { return this.id; }
public void setId(Long id) { this.id = id; }
public String getName() { return this.name; }
public void setName(String name) { this.name = name; }
public Long getDefinitionId() { return this.definitionId; }
public void setDefinitionId(Long definitionId) { this.definitionId = definitionId; }
// this is the property bytes that is used if the file contents is stored in the database
// note that getBytes will return null if the file-system is used to store the contents of the files.
public byte[] getBytes() { return this.bytes; }
public void setBytes(byte[] bytes) { this.bytes = bytes; }
private static Log log = LogFactory.getLog(FileImpl.class);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?