Spring Data Graph

org.springframework.data.graph.neo4j.jpa
Class Neo4JQuery<T>

java.lang.Object
  extended by org.springframework.data.graph.neo4j.jpa.Neo4JQuery<T>
All Implemented Interfaces:
javax.persistence.Query, javax.persistence.TypedQuery<T>

public class Neo4JQuery<T>
extends Object
implements javax.persistence.TypedQuery<T>

Since:
29.08.2010
Author:
Michael Hunger

Field Summary
protected  String qlString
           
protected  Class<T> resultClass
           
 
Constructor Summary
Neo4JQuery(String qlString, FinderFactory finderFactory, javax.persistence.spi.PersistenceUnitInfo info, Class<T> resultClass)
           
 
Method Summary
 int executeUpdate()
           
 int getFirstResult()
           
 javax.persistence.FlushModeType getFlushMode()
           
 Map<String,Object> getHints()
           
 javax.persistence.LockModeType getLockMode()
           
 int getMaxResults()
           
 javax.persistence.Parameter<?> getParameter(int index)
           
<T> javax.persistence.Parameter<T>
getParameter(int index, Class<T> type)
           
 javax.persistence.Parameter<?> getParameter(String name)
           
<T> javax.persistence.Parameter<T>
getParameter(String name, Class<T> type)
           
 Set<javax.persistence.Parameter<?>> getParameters()
           
 Object getParameterValue(int index)
           
<T> T
getParameterValue(javax.persistence.Parameter<T> parameter)
           
 Object getParameterValue(String name)
           
 List<T> getResultList()
           
 T getSingleResult()
           
 boolean isBound(javax.persistence.Parameter<?> parameter)
           
 javax.persistence.TypedQuery<T> setFirstResult(int startPosition)
           
 javax.persistence.TypedQuery<T> setFlushMode(javax.persistence.FlushModeType flushMode)
           
 javax.persistence.TypedQuery<T> setHint(String hintName, Object value)
           
 javax.persistence.TypedQuery<T> setLockMode(javax.persistence.LockModeType lockModeType)
           
 javax.persistence.TypedQuery<T> setMaxResults(int maxResult)
           
 javax.persistence.TypedQuery<T> setParameter(int position, Calendar value, javax.persistence.TemporalType temporalType)
           
 javax.persistence.TypedQuery<T> setParameter(int position, Date value, javax.persistence.TemporalType temporalType)
           
 javax.persistence.TypedQuery<T> setParameter(int position, Object value)
           
 javax.persistence.TypedQuery<T> setParameter(javax.persistence.Parameter<Calendar> parameter, Calendar calendar, javax.persistence.TemporalType temporalType)
           
 javax.persistence.TypedQuery<T> setParameter(javax.persistence.Parameter<Date> parameter, Date date, javax.persistence.TemporalType temporalType)
           
<P> javax.persistence.TypedQuery<T>
setParameter(javax.persistence.Parameter<P> parameter, P value)
           
 javax.persistence.TypedQuery<T> setParameter(String name, Calendar value, javax.persistence.TemporalType temporalType)
           
 javax.persistence.TypedQuery<T> setParameter(String name, Date value, javax.persistence.TemporalType temporalType)
           
 javax.persistence.TypedQuery<T> setParameter(String name, Object value)
           
<T> T
unwrap(Class<T> tClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultClass

protected final Class<T> resultClass

qlString

protected final String qlString
Constructor Detail

Neo4JQuery

public Neo4JQuery(String qlString,
                  FinderFactory finderFactory,
                  javax.persistence.spi.PersistenceUnitInfo info,
                  Class<T> resultClass)
Method Detail

getResultList

public List<T> getResultList()
Specified by:
getResultList in interface javax.persistence.Query
Specified by:
getResultList in interface javax.persistence.TypedQuery<T>

getSingleResult

public T getSingleResult()
Specified by:
getSingleResult in interface javax.persistence.Query
Specified by:
getSingleResult in interface javax.persistence.TypedQuery<T>

executeUpdate

public int executeUpdate()
Specified by:
executeUpdate in interface javax.persistence.Query

setMaxResults

public javax.persistence.TypedQuery<T> setMaxResults(int maxResult)
Specified by:
setMaxResults in interface javax.persistence.Query
Specified by:
setMaxResults in interface javax.persistence.TypedQuery<T>

getMaxResults

public int getMaxResults()
Specified by:
getMaxResults in interface javax.persistence.Query

setFirstResult

public javax.persistence.TypedQuery<T> setFirstResult(int startPosition)
Specified by:
setFirstResult in interface javax.persistence.Query
Specified by:
setFirstResult in interface javax.persistence.TypedQuery<T>

getFirstResult

public int getFirstResult()
Specified by:
getFirstResult in interface javax.persistence.Query

setHint

public javax.persistence.TypedQuery<T> setHint(String hintName,
                                               Object value)
Specified by:
setHint in interface javax.persistence.Query
Specified by:
setHint in interface javax.persistence.TypedQuery<T>

getHints

public Map<String,Object> getHints()
Specified by:
getHints in interface javax.persistence.Query

setParameter

public <P> javax.persistence.TypedQuery<T> setParameter(javax.persistence.Parameter<P> parameter,
                                                        P value)
Specified by:
setParameter in interface javax.persistence.Query
Specified by:
setParameter in interface javax.persistence.TypedQuery<T>

setParameter

public javax.persistence.TypedQuery<T> setParameter(javax.persistence.Parameter<Calendar> parameter,
                                                    Calendar calendar,
                                                    javax.persistence.TemporalType temporalType)
Specified by:
setParameter in interface javax.persistence.Query
Specified by:
setParameter in interface javax.persistence.TypedQuery<T>

setParameter

public javax.persistence.TypedQuery<T> setParameter(javax.persistence.Parameter<Date> parameter,
                                                    Date date,
                                                    javax.persistence.TemporalType temporalType)
Specified by:
setParameter in interface javax.persistence.Query
Specified by:
setParameter in interface javax.persistence.TypedQuery<T>

setParameter

public javax.persistence.TypedQuery<T> setParameter(String name,
                                                    Object value)
Specified by:
setParameter in interface javax.persistence.Query
Specified by:
setParameter in interface javax.persistence.TypedQuery<T>

setParameter

public javax.persistence.TypedQuery<T> setParameter(String name,
                                                    Date value,
                                                    javax.persistence.TemporalType temporalType)
Specified by:
setParameter in interface javax.persistence.Query
Specified by:
setParameter in interface javax.persistence.TypedQuery<T>

setParameter

public javax.persistence.TypedQuery<T> setParameter(String name,
                                                    Calendar value,
                                                    javax.persistence.TemporalType temporalType)
Specified by:
setParameter in interface javax.persistence.Query
Specified by:
setParameter in interface javax.persistence.TypedQuery<T>

setParameter

public javax.persistence.TypedQuery<T> setParameter(int position,
                                                    Object value)
Specified by:
setParameter in interface javax.persistence.Query
Specified by:
setParameter in interface javax.persistence.TypedQuery<T>

setParameter

public javax.persistence.TypedQuery<T> setParameter(int position,
                                                    Date value,
                                                    javax.persistence.TemporalType temporalType)
Specified by:
setParameter in interface javax.persistence.Query
Specified by:
setParameter in interface javax.persistence.TypedQuery<T>

getParameters

public Set<javax.persistence.Parameter<?>> getParameters()
Specified by:
getParameters in interface javax.persistence.Query

getParameter

public javax.persistence.Parameter<?> getParameter(String name)
Specified by:
getParameter in interface javax.persistence.Query

getParameter

public <T> javax.persistence.Parameter<T> getParameter(String name,
                                                       Class<T> type)
Specified by:
getParameter in interface javax.persistence.Query

getParameter

public javax.persistence.Parameter<?> getParameter(int index)
Specified by:
getParameter in interface javax.persistence.Query

getParameter

public <T> javax.persistence.Parameter<T> getParameter(int index,
                                                       Class<T> type)
Specified by:
getParameter in interface javax.persistence.Query

isBound

public boolean isBound(javax.persistence.Parameter<?> parameter)
Specified by:
isBound in interface javax.persistence.Query

getParameterValue

public <T> T getParameterValue(javax.persistence.Parameter<T> parameter)
Specified by:
getParameterValue in interface javax.persistence.Query

getParameterValue

public Object getParameterValue(String name)
Specified by:
getParameterValue in interface javax.persistence.Query

getParameterValue

public Object getParameterValue(int index)
Specified by:
getParameterValue in interface javax.persistence.Query

setParameter

public javax.persistence.TypedQuery<T> setParameter(int position,
                                                    Calendar value,
                                                    javax.persistence.TemporalType temporalType)
Specified by:
setParameter in interface javax.persistence.Query
Specified by:
setParameter in interface javax.persistence.TypedQuery<T>

setFlushMode

public javax.persistence.TypedQuery<T> setFlushMode(javax.persistence.FlushModeType flushMode)
Specified by:
setFlushMode in interface javax.persistence.Query
Specified by:
setFlushMode in interface javax.persistence.TypedQuery<T>

getFlushMode

public javax.persistence.FlushModeType getFlushMode()
Specified by:
getFlushMode in interface javax.persistence.Query

setLockMode

public javax.persistence.TypedQuery<T> setLockMode(javax.persistence.LockModeType lockModeType)
Specified by:
setLockMode in interface javax.persistence.Query
Specified by:
setLockMode in interface javax.persistence.TypedQuery<T>

getLockMode

public javax.persistence.LockModeType getLockMode()
Specified by:
getLockMode in interface javax.persistence.Query

unwrap

public <T> T unwrap(Class<T> tClass)
Specified by:
unwrap in interface javax.persistence.Query

Spring Data Graph

Copyright © 2011. All Rights Reserved.