01: /******************************************************************************
02: * JBoss, a division of Red Hat *
03: * Copyright 2006, Red Hat Middleware, LLC, and individual *
04: * contributors as indicated by the @authors tag. See the *
05: * copyright.txt in the distribution for a full listing of *
06: * individual contributors. *
07: * *
08: * This is free software; you can redistribute it and/or modify it *
09: * under the terms of the GNU Lesser General Public License as *
10: * published by the Free Software Foundation; either version 2.1 of *
11: * the License, or (at your option) any later version. *
12: * *
13: * This software is distributed in the hope that it will be useful, *
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16: * Lesser General Public License for more details. *
17: * *
18: * You should have received a copy of the GNU Lesser General Public *
19: * License along with this software; if not, write to the Free *
20: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
21: * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
22: ******************************************************************************/package org.jboss.portal.cms.hibernate;
23:
24: import java.io.Serializable;
25:
26: /** @author <a href="mailto:roy@jboss.org">Roy Russo</a> */
27: public class VersionEntry implements Serializable {
28: /** The serialVersionUID */
29: private static final long serialVersionUID = -8500299784492212650L;
30:
31: private Integer key;
32: private String path;
33: private String name;
34: private java.sql.Blob data;
35: private long lastmod;
36: private long length;
37:
38: public VersionEntry() {
39: }
40:
41: public VersionEntry(String path, String name, java.sql.Blob data,
42: long lastmod, long length) {
43: this .key = null;
44: this .path = path;
45: this .name = name;
46: this .data = data;
47: this .lastmod = lastmod;
48: this .length = length;
49: }
50:
51: public Integer getKey() {
52: return key;
53: }
54:
55: public void setKey(Integer key) {
56: this .key = key;
57: }
58:
59: public String getPath() {
60: return path;
61: }
62:
63: public void setPath(String path) {
64: this .path = path;
65: }
66:
67: public String getName() {
68: return name;
69: }
70:
71: public void setName(String name) {
72: this .name = name;
73: }
74:
75: public java.sql.Blob getData() {
76: return data;
77: }
78:
79: public void setData(java.sql.Blob data) {
80: this .data = data;
81: }
82:
83: public long getLastmod() {
84: return lastmod;
85: }
86:
87: public void setLastmod(long lastmod) {
88: this .lastmod = lastmod;
89: }
90:
91: public long getLength() {
92: return length;
93: }
94:
95: public void setLength(long length) {
96: this.length = length;
97: }
98: }
|