org.objectweb.easybeans.deployment.annotations.impl
Class JavaxPersistenceContext

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.impl.JavaxPersistenceContext

public class JavaxPersistenceContext
extends java.lang.Object

This class allow to set informations on javax.persistence.PersistenceContext annotation.

Author:
Florent Benoit

Field Summary
private  java.lang.String name
          Name of this persistence context.
private  PersistenceContextType type
          Type of persistence context.
private  java.lang.String unitName
          Unit name of this persistence context.
 
Constructor Summary
JavaxPersistenceContext()
          Build new object with default values.
 
Method Summary
 java.lang.String getName()
           
 PersistenceContextType getType()
           
 java.lang.String getUnitName()
           
 void setName(java.lang.String name)
          sets the name of this persistence context.
 void setType(PersistenceContextType type)
          Sets the persistence context type.
 void setUnitName(java.lang.String unitName)
          sets the unit name of this persistence context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Name of this persistence context.


unitName

private java.lang.String unitName
Unit name of this persistence context.


type

private PersistenceContextType type
Type of persistence context.

Constructor Detail

JavaxPersistenceContext

public JavaxPersistenceContext()
Build new object with default values.

Method Detail

getType

public PersistenceContextType getType()
Returns:
the type of persistence context.

setType

public void setType(PersistenceContextType type)
Sets the persistence context type.

Parameters:
type - given type.

getUnitName

public java.lang.String getUnitName()
Returns:
the unit name used by this persistence context.

setUnitName

public void setUnitName(java.lang.String unitName)
sets the unit name of this persistence context.

Parameters:
unitName - the name of the persistence unit

getName

public java.lang.String getName()
Returns:
the unit name used by this persistence context.

setName

public void setName(java.lang.String name)
sets the name of this persistence context.

Parameters:
name - the name of the persistence context