public class PersistenceUnitRef extends java.lang.Object implements ObjectProxy
Constructor and Description |
---|
PersistenceUnitRef() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createObject(java.util.Hashtable env)
Creates the object from the proxy.
|
java.lang.String |
getMappedName()
Returns the name.
|
java.lang.String |
getPersistenceUnitName()
Returns the name.
|
java.lang.String |
getPersistenceUnitRefName()
Returns the name.
|
protected java.lang.String |
getTagName() |
void |
init() |
void |
setConfigLocation(java.lang.String location) |
void |
setDescription(java.lang.String description) |
void |
setDisplayName(java.lang.String displayName) |
void |
setId(java.lang.String id) |
void |
setMappedName(java.lang.String name)
Sets the mapped-name
|
void |
setPersistenceUnitName(java.lang.String name)
Sets the name from the persistence.xml
|
void |
setPersistenceUnitRefName(java.lang.String name)
Sets the name to use in the local jndi context.
|
java.lang.String |
toString() |
public void setConfigLocation(java.lang.String location)
protected java.lang.String getTagName()
public void setId(java.lang.String id)
public void setDescription(java.lang.String description)
public void setDisplayName(java.lang.String displayName)
public void setPersistenceUnitRefName(java.lang.String name)
persistence/Gryffindor ... (new InitialContext()).lookup("java:comp/env/ejb/Gryffindor");
public java.lang.String getPersistenceUnitRefName()
public void setPersistenceUnitName(java.lang.String name)
public java.lang.String getPersistenceUnitName()
public void setMappedName(java.lang.String name)
public java.lang.String getMappedName()
@PostConstruct public void init() throws java.lang.Exception
java.lang.Exception
public java.lang.Object createObject(java.util.Hashtable env) throws javax.naming.NamingException
createObject
in interface ObjectProxy
javax.naming.NamingException
public java.lang.String toString()
toString
in class java.lang.Object