Class AbstractRemotePropertyContainer<S extends AbstractPropertyContainerState>
- java.lang.Object
-
- com.buschmais.xo.neo4j.remote.impl.model.AbstractRemotePropertyContainer<S>
-
- Type Parameters:
S- The state type.
- All Implemented Interfaces:
Neo4jPropertyContainer
- Direct Known Subclasses:
RemoteNode,RemoteRelationship
public abstract class AbstractRemotePropertyContainer<S extends AbstractPropertyContainerState> extends Object implements Neo4jPropertyContainer
Abstract base class for property containers.NOTE: This class and all deriving classes must not override
equals(Object)andhashCode(), equality is defined by reference.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractRemotePropertyContainer(long id, S state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)longgetId()Map<String,Object>getProperties()ObjectgetProperty(String key)SgetState()inthashCode()booleanhasProperty(String key)voidremoveProperty(String name)voidsetProperty(String key, Object value)voidupdateId(Long id)
-
-
-
Constructor Detail
-
AbstractRemotePropertyContainer
protected AbstractRemotePropertyContainer(long id, S state)
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getIdin interfaceNeo4jPropertyContainer
-
updateId
public void updateId(Long id)
-
getState
public S getState()
-
hasProperty
public boolean hasProperty(String key)
- Specified by:
hasPropertyin interfaceNeo4jPropertyContainer
-
getProperty
public Object getProperty(String key)
- Specified by:
getPropertyin interfaceNeo4jPropertyContainer
-
getProperties
public Map<String,Object> getProperties()
- Specified by:
getPropertiesin interfaceNeo4jPropertyContainer
-
removeProperty
public void removeProperty(String name)
-
-