Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.storage.sql
Class Node

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.Node

public class Node
extends java.lang.Object

A Node implementation. The actual data is stored in contained objects that are Fragments.


Method Summary
 boolean equals(java.lang.Object other)
           
 CollectionProperty getCollectionProperty(java.lang.String name)
          Gets a collection property from the node, given its name.
 java.io.Serializable getId()
          Gets the node unique id, usually a Long or a String.
 java.lang.String getName()
           
 java.lang.String getParentId()
           
 java.lang.String getPrimaryType()
           
 BaseProperty getProperty(java.lang.String name)
           
 SimpleProperty getSimpleProperty(java.lang.String name)
          Gets a simple property from the node, given its name.
 int hashCode()
           
 boolean isProxy()
           
 boolean isVersion()
           
 void setCollectionProperty(java.lang.String name, java.io.Serializable[] value)
           
 void setSingleProperty(java.lang.String name, java.io.Serializable value)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public java.io.Serializable getId()
Gets the node unique id, usually a Long or a String.

Returns:
the node id

getName

public java.lang.String getName()

getPrimaryType

public java.lang.String getPrimaryType()

getParentId

public java.lang.String getParentId()

isVersion

public boolean isVersion()

isProxy

public boolean isProxy()

getSimpleProperty

public SimpleProperty getSimpleProperty(java.lang.String name)
                                 throws StorageException
Gets a simple property from the node, given its name.

Parameters:
name - the property name
Returns:
the property
Throws:
java.lang.IllegalArgumentException - if the name is invalid
StorageException

getCollectionProperty

public CollectionProperty getCollectionProperty(java.lang.String name)
                                         throws StorageException
Gets a collection property from the node, given its name.

Parameters:
name - the property name
Returns:
the property
Throws:
java.lang.IllegalArgumentException - if the name is invalid
StorageException

getProperty

public BaseProperty getProperty(java.lang.String name)
                         throws StorageException
Throws:
StorageException

setSingleProperty

public void setSingleProperty(java.lang.String name,
                              java.io.Serializable value)
                       throws StorageException
Throws:
StorageException

setCollectionProperty

public void setCollectionProperty(java.lang.String name,
                                  java.io.Serializable[] value)
                           throws StorageException
Throws:
StorageException

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.