com.bm.introspectors
Class PrimaryKeyInfo

java.lang.Object
  extended by com.bm.introspectors.PrimaryKeyInfo

public class PrimaryKeyInfo
extends java.lang.Object

This class represents informations about PK fields.

Author:
Daniel Wiese

Constructor Summary
PrimaryKeyInfo(javax.persistence.EmbeddedId id)
          Default constructor.
PrimaryKeyInfo(javax.persistence.Id id)
          Default constructor.
 
Method Summary
 javax.persistence.EmbeddedId getEmbeddedIDValue()
          Returns the embeddedIDValue.
 javax.persistence.GeneratedValue getGenValue()
          Returns the genType.
 javax.persistence.Id getIDValue()
          Returns the id.
 void setGenValue(javax.persistence.GeneratedValue genValue)
          Sets the gen value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimaryKeyInfo

public PrimaryKeyInfo(javax.persistence.Id id)
Default constructor.

Parameters:
id - - the generator type

PrimaryKeyInfo

public PrimaryKeyInfo(javax.persistence.EmbeddedId id)
Default constructor.

Parameters:
id - - the generator type
Method Detail

getGenValue

public javax.persistence.GeneratedValue getGenValue()
Returns the genType.

Returns:
Returns the genType.

getIDValue

public javax.persistence.Id getIDValue()
Returns the id.

Returns:
the id

setGenValue

public void setGenValue(javax.persistence.GeneratedValue genValue)
Sets the gen value.

Parameters:
genValue - - the gen value.

getEmbeddedIDValue

public javax.persistence.EmbeddedId getEmbeddedIDValue()
Returns the embeddedIDValue.

Returns:
Returns the embeddedIDValue.


Copyright © 2008. All Rights Reserved.