KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > pentaho > repository > content > BackgroundExecutedContentId


1 /*
2  * Copyright 2006 Pentaho Corporation. All rights reserved.
3  * This software was developed by Pentaho Corporation and is provided under the terms
4  * of the Mozilla Public License, Version 1.1, or any later version. You may not use
5  * this file except in compliance with the license. If you need a copy of the license,
6  * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
7  * BI Platform. The Initial Developer is Pentaho Corporation.
8  *
9  * Software distributed under the Mozilla Public License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
11  * the license for the specific language governing your rights and limitations.
12 */

13 package org.pentaho.repository.content;
14
15 import org.pentaho.core.repository.IBackgroundExecutedContentId;
16
17 public class BackgroundExecutedContentId implements
18     IBackgroundExecutedContentId {
19
20   private static final long serialVersionUID = -6839129181355560217L;
21
22   public static final int ClassVersionNumber = 1;
23   
24   private String JavaDoc id;
25   private String JavaDoc userName;
26   private int revision = -1; // Hibernate Revision
27

28   protected BackgroundExecutedContentId() {
29     // Default empty constructor for Hibernate
30
}
31
32   protected BackgroundExecutedContentId(String JavaDoc userName, String JavaDoc id) {
33     this.userName = userName;
34     this.id = id;
35   }
36   
37   public String JavaDoc getId() {
38     return id;
39   }
40
41   public String JavaDoc getUserName() {
42     return userName;
43   }
44
45   public void setId(String JavaDoc id) {
46     this.id = id;
47   }
48
49   public void setUserName(String JavaDoc userName) {
50     this.userName = userName;
51   }
52
53   public int getRevision() {
54     return this.revision;
55   }
56   
57   public void setRevision(int revision) {
58     this.revision = revision;
59   }
60   
61 }
62
Popular Tags