org.ow2.util.ee.metadata.common.api.struct
Interface IJavaxPersistenceContext

All Superinterfaces:
Serializable

public interface IJavaxPersistenceContext
extends Serializable

Manages Persistence context annotation.

Author:
Florent BENOIT

Method Summary
 String getName()
           
 javax.persistence.PersistenceContextType getType()
           
 String getUnitName()
           
 void setName(String name)
          sets the name of this persistence context.
 void setType(javax.persistence.PersistenceContextType type)
          Sets the persistence context type.
 void setUnitName(String unitName)
          sets the unit name of this persistence context.
 

Method Detail

getType

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

setType

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

Parameters:
type - given type.

getUnitName

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

setUnitName

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

Parameters:
unitName - the name of the persistence unit

getName

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

setName

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

Parameters:
name - the name of the persistence context


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.