|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.connector.store.jpa.model.basic.ReferenceEntity
public class ReferenceEntity
A record of a reference from one node to another.
Constructor Summary | |
---|---|
ReferenceEntity()
|
|
ReferenceEntity(ReferenceId id)
|
Method Summary | |
---|---|
static int |
countAllReferencesResolved(Long workspaceId,
javax.persistence.EntityManager manager)
Delete all references that start from nodes that do not support enforced referential integrity. |
static int |
deleteReferencesFrom(Long workspaceId,
String uuid,
javax.persistence.EntityManager manager)
Delete all references that start from the node with the supplied UUID. |
static int |
deleteUnenforcedReferences(Long workspaceId,
javax.persistence.EntityManager manager)
Delete all references (in all workspaces) that start from nodes that do not require enforced referential integrity. |
boolean |
equals(Object obj)
|
ReferenceId |
getId()
|
int |
hashCode()
|
void |
setId(ReferenceId id)
|
String |
toString()
|
static List<ReferenceEntity> |
verifyAllReferencesResolved(Long workspaceId,
javax.persistence.EntityManager manager)
Delete all references that start from nodes that do not support enforced referential integrity. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReferenceEntity()
public ReferenceEntity(ReferenceId id)
id
- the idMethod Detail |
---|
public ReferenceId getId()
public void setId(ReferenceId id)
id
- Sets id 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 int deleteReferencesFrom(Long workspaceId, String uuid, javax.persistence.EntityManager manager)
workspaceId
- the ID of the workspace; may not be nulluuid
- the UUID of the node from which the references startmanager
- the manager; may not be null
public static int deleteUnenforcedReferences(Long workspaceId, javax.persistence.EntityManager manager)
workspaceId
- the ID of the workspace; may not be nullmanager
- the manager; may not be null
public static int countAllReferencesResolved(Long workspaceId, javax.persistence.EntityManager manager)
workspaceId
- the ID of the workspace; may not be nullmanager
- the manager; may not be null
public static List<ReferenceEntity> verifyAllReferencesResolved(Long workspaceId, javax.persistence.EntityManager manager)
workspaceId
- the ID of the workspace; may not be nullmanager
- the manager; may not be null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |