|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.dna.connector.store.jpa.model.basic.ChildEntity
public class ChildEntity
An entity representing the parent-child relationship between two nodes. In addition to the references to the parent and child
nodes, this entity also maintains the indexInParent of the indexInParent within the parent node's list of all children, the
child's name ( local part
and namespace
), and the same-name-sibling
indexInParent (if there is one).
Constructor Summary | |
---|---|
ChildEntity()
|
|
ChildEntity(ChildId id,
String parentUuidString,
int indexInParent,
NamespaceEntity ns,
String name)
|
|
ChildEntity(ChildId id,
String parentUuidString,
int indexInParent,
NamespaceEntity ns,
String name,
int sameNameSiblingIndex)
|
Method Summary | |
---|---|
static int |
adjustSnsIndexesAndIndexes(javax.persistence.EntityManager entities,
Long workspaceId,
String uuidParent,
int afterIndex,
int untilIndex,
long childNamespaceIndex,
String childName,
int modifier)
|
static void |
adjustSnsIndexesAndIndexesAfterRemoving(javax.persistence.EntityManager entities,
Long workspaceId,
String uuidParent,
String childName,
long childNamespaceIndex,
int childIndex)
|
boolean |
equals(Object obj)
|
boolean |
getAllowsSameNameChildren()
|
String |
getChildName()
|
NamespaceEntity |
getChildNamespace()
|
ChildId |
getId()
|
int |
getIndexInParent()
Get the zero-based index of this child within the parent's list of children |
String |
getParentUuidString()
Returns the parent UUID string |
int |
getSameNameSiblingIndex()
|
int |
hashCode()
|
void |
setAllowsSameNameChildren(boolean allowsSameNameChildren)
|
void |
setChildName(String childName)
|
void |
setChildNamespace(NamespaceEntity childNamespace)
|
void |
setId(ChildId childId)
|
void |
setIndexInParent(int index)
|
void |
setParentUuidString(String parentUuidString)
Sets the parent UUID string |
void |
setSameNameSiblingIndex(int sameNameSiblingIndex)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChildEntity()
public ChildEntity(ChildId id, String parentUuidString, int indexInParent, NamespaceEntity ns, String name)
public ChildEntity(ChildId id, String parentUuidString, int indexInParent, NamespaceEntity ns, String name, int sameNameSiblingIndex)
Method Detail |
---|
public ChildId getId()
public void setId(ChildId childId)
childId
- Sets parent to the specified value.public String getParentUuidString()
public void setParentUuidString(String parentUuidString)
parentUuidString
- the parent UUID stringpublic int getIndexInParent()
public void setIndexInParent(int index)
index
- Sets indexInParent to the specified value.public String getChildName()
public void setChildName(String childName)
childName
- Sets childName to the specified value.public NamespaceEntity getChildNamespace()
public void setChildNamespace(NamespaceEntity childNamespace)
childNamespace
- Sets childNamespace to the specified value.public int getSameNameSiblingIndex()
public void setSameNameSiblingIndex(int sameNameSiblingIndex)
sameNameSiblingIndex
- Sets sameNameSiblingIndex to the specified value.public boolean getAllowsSameNameChildren()
public void setAllowsSameNameChildren(boolean allowsSameNameChildren)
allowsSameNameChildren
- Sets allowsSameNameChildren 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 void adjustSnsIndexesAndIndexesAfterRemoving(javax.persistence.EntityManager entities, Long workspaceId, String uuidParent, String childName, long childNamespaceIndex, int childIndex)
public static int adjustSnsIndexesAndIndexes(javax.persistence.EntityManager entities, Long workspaceId, String uuidParent, int afterIndex, int untilIndex, long childNamespaceIndex, String childName, int modifier)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |