org.apache.openejb.jee.jpa
Class GeneratedValue

java.lang.Object
  extended by org.apache.openejb.jee.jpa.GeneratedValue

public class GeneratedValue
extends java.lang.Object


Field Summary
protected  java.lang.String generator
           
protected  GenerationType strategy
           
 
Constructor Summary
GeneratedValue()
           
GeneratedValue(GenerationType strategy)
           
GeneratedValue(GenerationType strategy, java.lang.String generator)
           
 
Method Summary
 java.lang.String getGenerator()
          Gets the value of the generator property.
 GenerationType getStrategy()
          Gets the value of the strategy property.
 void setGenerator(java.lang.String value)
          Sets the value of the generator property.
 void setStrategy(GenerationType value)
          Sets the value of the strategy property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

generator

protected java.lang.String generator

strategy

protected GenerationType strategy
Constructor Detail

GeneratedValue

public GeneratedValue()

GeneratedValue

public GeneratedValue(GenerationType strategy)

GeneratedValue

public GeneratedValue(GenerationType strategy,
                      java.lang.String generator)
Method Detail

getGenerator

public java.lang.String getGenerator()
Gets the value of the generator property.

Returns:
possible object is String

setGenerator

public void setGenerator(java.lang.String value)
Sets the value of the generator property.

Parameters:
value - allowed object is String

getStrategy

public GenerationType getStrategy()
Gets the value of the strategy property.

Returns:
possible object is GenerationType

setStrategy

public void setStrategy(GenerationType value)
Sets the value of the strategy property.

Parameters:
value - allowed object is GenerationType


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.