|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.connector.store.jpa.model.common.NamespaceEntity
@Entity public class NamespaceEntity
A NamespaceEntity represents a namespace that has been used in the store. NamespaceEntity records are immutable and shared by one or more entities.
Constructor Summary | |
---|---|
NamespaceEntity()
|
|
NamespaceEntity(String uri)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
static NamespaceEntity |
findByUri(javax.persistence.EntityManager manager,
String uri)
Find an existing namespace by its URI, or create and return one if it does not already exist. |
static NamespaceEntity |
findByUri(javax.persistence.EntityManager manager,
String uri,
boolean createIfRequired)
Find an existing namespace by its URI. |
Long |
getId()
|
String |
getUri()
|
int |
hashCode()
|
void |
setId(Long id)
|
void |
setUri(String uri)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NamespaceEntity()
public NamespaceEntity(String uri)
uri
- the namespace URIMethod Detail |
---|
public Long getId()
public void setId(Long id)
id
- Sets id to the specified value.public String getUri()
public void setUri(String uri)
uri
- Sets uri to the specified value.public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
public static NamespaceEntity findByUri(javax.persistence.EntityManager manager, String uri)
manager
- the entity manageruri
- the URI
IllegalArgumentException
- if the manager or URI are nullpublic static NamespaceEntity findByUri(javax.persistence.EntityManager manager, String uri, boolean createIfRequired)
manager
- the entity manageruri
- the URIcreateIfRequired
- if the namespace should be persisted if it does not yet exist
IllegalArgumentException
- if the manager or URI are null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |