public class BaseDao<T extends com.tinkerpop.frames.VertexFrame> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Class<T> |
type |
protected String |
typeValue |
| Modifier and Type | Method and Description |
|---|---|
T |
castToType(com.tinkerpop.blueprints.Vertex vertex) |
T |
castToType(com.tinkerpop.frames.VertexFrame v) |
void |
commit() |
long |
count(Iterable<?> obj) |
T |
create() |
T |
create(Object id) |
void |
delete(T obj) |
Iterable<T> |
findValueMatchingRegex(String key,
String... regex) |
Iterable<T> |
getAll() |
T |
getById(Object id) |
Iterable<T> |
getByProperty(String key,
Object value) |
T |
getByUniqueProperty(String property,
Object value) |
GraphContext |
getContext() |
Iterable<T> |
hasAllProperties(String[] keys,
String[] vals) |
com.thinkaurelius.titan.core.TitanTransaction |
newTransaction() |
protected final String typeValue
public GraphContext getContext()
public void delete(T obj)
public T create()
public com.thinkaurelius.titan.core.TitanTransaction newTransaction()
public long count(Iterable<?> obj)
public T getByUniqueProperty(String property, Object value) throws NonUniqueResultException
NonUniqueResultExceptionpublic T castToType(com.tinkerpop.frames.VertexFrame v)
public T castToType(com.tinkerpop.blueprints.Vertex vertex)
public void commit()
Copyright © 2014 JBoss by Red Hat. All rights reserved.