org.apache.openejb.jee.jpa
Class Id

java.lang.Object
  extended by org.apache.openejb.jee.jpa.Id
All Implemented Interfaces:
Field, Keyable

public class Id
extends Object
implements Field


Field Summary
protected  Column column
           
protected  GeneratedValue generatedValue
           
protected  String name
           
protected  SequenceGenerator sequenceGenerator
           
protected  TableGenerator tableGenerator
           
protected  TemporalType temporal
           
 
Constructor Summary
Id()
           
Id(String name)
           
Id(String name, String columnName)
           
 
Method Summary
 Column getColumn()
          Gets the value of the column property.
 GeneratedValue getGeneratedValue()
          Gets the value of the generatedValue property.
 Object getKey()
          Gets the immutable key for this object.
 String getName()
          Gets the value of the name property.
 SequenceGenerator getSequenceGenerator()
          Gets the value of the sequenceGenerator property.
 TableGenerator getTableGenerator()
          Gets the value of the tableGenerator property.
 TemporalType getTemporal()
          Gets the value of the temporal property.
 void setColumn(Column value)
          Sets the value of the column property.
 void setGeneratedValue(GeneratedValue value)
          Sets the value of the generatedValue property.
 void setName(String value)
          Sets the value of the name property.
 void setSequenceGenerator(SequenceGenerator value)
          Sets the value of the sequenceGenerator property.
 void setTableGenerator(TableGenerator value)
          Sets the value of the tableGenerator property.
 void setTemporal(TemporalType value)
          Sets the value of the temporal property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

column

protected Column column

generatedValue

protected GeneratedValue generatedValue

temporal

protected TemporalType temporal

tableGenerator

protected TableGenerator tableGenerator

sequenceGenerator

protected SequenceGenerator sequenceGenerator

name

protected String name
Constructor Detail

Id

public Id()

Id

public Id(String name)

Id

public Id(String name,
          String columnName)
Method Detail

getColumn

public Column getColumn()
Gets the value of the column property.

Specified by:
getColumn in interface Field
Returns:
possible object is Column

setColumn

public void setColumn(Column value)
Sets the value of the column property.

Specified by:
setColumn in interface Field
Parameters:
value - allowed object is Column

getGeneratedValue

public GeneratedValue getGeneratedValue()
Gets the value of the generatedValue property.

Returns:
possible object is GeneratedValue

setGeneratedValue

public void setGeneratedValue(GeneratedValue value)
Sets the value of the generatedValue property.

Parameters:
value - allowed object is GeneratedValue

getTemporal

public TemporalType getTemporal()
Gets the value of the temporal property.

Returns:
possible object is TemporalType

setTemporal

public void setTemporal(TemporalType value)
Sets the value of the temporal property.

Parameters:
value - allowed object is TemporalType

getTableGenerator

public TableGenerator getTableGenerator()
Gets the value of the tableGenerator property.

Returns:
possible object is TableGenerator

setTableGenerator

public void setTableGenerator(TableGenerator value)
Sets the value of the tableGenerator property.

Parameters:
value - allowed object is TableGenerator

getSequenceGenerator

public SequenceGenerator getSequenceGenerator()
Gets the value of the sequenceGenerator property.

Returns:
possible object is SequenceGenerator

setSequenceGenerator

public void setSequenceGenerator(SequenceGenerator value)
Sets the value of the sequenceGenerator property.

Parameters:
value - allowed object is SequenceGenerator

getName

public String getName()
Gets the value of the name property.

Specified by:
getName in interface Field
Returns:
possible object is String

setName

public void setName(String value)
Sets the value of the name property.

Specified by:
setName in interface Field
Parameters:
value - allowed object is String

getKey

public Object getKey()
Description copied from interface: Keyable
Gets the immutable key for this object.

Specified by:
getKey in interface Keyable
Returns:
gets the immutable key for this object


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