KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > tuple > VersionProperty


1 // $Id: VersionProperty.java,v 1.3 2005/06/05 04:31:34 oneovthafew Exp $
2
package org.hibernate.tuple;
3
4 import org.hibernate.engine.CascadeStyle;
5 import org.hibernate.engine.VersionValue;
6 import org.hibernate.type.Type;
7
8 /**
9  * Represents a version property within the Hibernate runtime-metamodel.
10  *
11  * @author Steve Ebersole
12  */

13 public class VersionProperty extends StandardProperty {
14
15     private VersionValue unsavedValue;
16
17     /**
18      * Constructs VersionProperty instances.
19      *
20      * @param name The name by which the property can be referenced within
21      * its owner.
22      * @param node The node name to use for XML-based representation of this
23      * property.
24      * @param type The Hibernate Type of this property.
25      * @param lazy Should this property be handled lazily?
26      * @param insertable Is this property an insertable value?
27      * @param updateable Is this property an updateable value?
28      * @param nullable Is this property a nullable value?
29      * @param checkable Is this property a checkable value?
30      * @param versionable Is this property a versionable value?
31      * @param cascadeStyle The cascade style for this property's value.
32      * @param unsavedValue The value which, if found as the value of
33      * this (i.e., the version) property, represents new (i.e., un-saved)
34      * instances of the owning entity.
35      */

36     public VersionProperty(
37             String JavaDoc name,
38             String JavaDoc node,
39             Type type,
40             boolean lazy,
41             boolean insertable,
42             boolean updateable,
43             boolean nullable,
44             boolean checkable,
45             boolean versionable,
46             CascadeStyle cascadeStyle,
47             VersionValue unsavedValue) {
48         super(name, node, type, lazy, insertable, updateable, nullable, checkable, versionable, cascadeStyle);
49         this.unsavedValue = unsavedValue;
50     }
51
52     public VersionValue getUnsavedValue() {
53         return unsavedValue;
54     }
55 }
56
Popular Tags