public class RepositoryComponent extends Object
| Constructor and Description |
|---|
RepositoryComponent(Class<?> repoClass,
RepositoryEntity entityClass) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getEntityClass()
Gets the entity class related the Repository.
|
javax.persistence.FlushModeType |
getEntityManagerFlushMode() |
Class<? extends org.apache.deltaspike.data.api.EntityManagerResolver> |
getEntityManagerResolverClass() |
String |
getEntityName() |
String |
getMethodPrefix() |
Class<? extends Serializable> |
getPrimaryKey()
Gets the entity primary key class related the Repository.
|
Class<?> |
getRepositoryClass()
Returns the original Repository class this meta data is related to.
|
boolean |
hasEntityManagerResolver() |
RepositoryMethod |
lookupMethod(Method method)
Looks up method meta data by a Method object.
|
MethodType |
lookupMethodType(Method method)
Looks up the method type by a Method object.
|
public RepositoryComponent(Class<?> repoClass, RepositoryEntity entityClass)
public String getEntityName()
public RepositoryMethod lookupMethod(Method method)
method - The Repository method.public MethodType lookupMethodType(Method method)
method - The Repository method.public Class<?> getEntityClass()
public Class<? extends Serializable> getPrimaryKey()
public Class<?> getRepositoryClass()
public String getMethodPrefix()
public boolean hasEntityManagerResolver()
public Class<? extends org.apache.deltaspike.data.api.EntityManagerResolver> getEntityManagerResolverClass()
public javax.persistence.FlushModeType getEntityManagerFlushMode()
Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.