|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.storage.sql.Node
public class Node
A Node
implementation. The actual data is stored in contained objects
that are Fragment
s.
Method Summary | |
---|---|
boolean |
addMixinType(String mixin)
Adds a mixin. |
boolean |
equals(Object other)
|
Set<String> |
getAllMixinTypes()
Gets the mixins. |
CollectionProperty |
getCollectionProperty(String name)
Gets a collection property from the node, given its name. |
Serializable |
getId()
Gets the node unique id, usually a Long or a String. |
String[] |
getMixinTypes()
Gets the instance mixins. |
String |
getName()
|
String |
getParentId()
|
String |
getPath()
Gets the path that was assigned at Node construction time. |
String |
getPrimaryType()
|
BaseProperty |
getProperty(String name)
|
SimpleProperty |
getSimpleProperty(String name)
Gets a simple property from the node, given its name. |
int |
hashCode()
|
boolean |
hasMixinType(String mixin)
Checks the mixins. |
boolean |
isProxy()
|
boolean |
isVersion()
|
boolean |
removeMixinType(String mixin)
Removes a mixin. |
void |
setCollectionProperty(String name,
Serializable[] value)
|
void |
setSimpleProperty(String name,
Serializable value)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Serializable getId()
public String getName()
public String getPrimaryType()
public String getParentId()
public String getPath()
Node
construction time. Then
it's reset to null
. Should only be used once.
null
for unknownpublic boolean isVersion()
public boolean isProxy()
public String[] getMixinTypes()
Never returns null
.
public Set<String> getAllMixinTypes()
public boolean hasMixinType(String mixin)
public boolean addMixinType(String mixin)
public boolean removeMixinType(String mixin)
public SimpleProperty getSimpleProperty(String name) throws StorageException
name
- the property name
IllegalArgumentException
- if the name is invalid
StorageException
public CollectionProperty getCollectionProperty(String name) throws StorageException
name
- the property name
IllegalArgumentException
- if the name is invalid
StorageException
public BaseProperty getProperty(String name) throws StorageException
StorageException
public void setSimpleProperty(String name, Serializable value) throws StorageException
StorageException
public void setCollectionProperty(String name, Serializable[] value) throws StorageException
StorageException
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |