|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trendmicro.grid.acl.ds.jpa.util.FileQueryConfigurator<T>
T
- The type of the expected result.public class FileQueryConfigurator<T>
Is a helper class that configures and caches queries that fetch results by FileIdentifier.
Note: Instanes of this class are meant to be short lived for the time of a single transaction.
Constructor Summary | |
---|---|
FileQueryConfigurator(javax.persistence.EntityManager em,
Class<T> resultType,
String queryBaseName)
Creates a new configurator. |
|
FileQueryConfigurator(javax.persistence.EntityManager em,
Class<T> resultType,
String md5QueryName,
String sha1QueryName,
String fullQueryName)
Creates a new configurator. |
Method Summary | |
---|---|
javax.persistence.TypedQuery<T> |
getQuery(com.trendmicro.grid.acl.l0.datatypes.FileIdentifier file)
Returns the configured query. |
javax.persistence.Query |
getUntypedQuery(com.trendmicro.grid.acl.l0.datatypes.FileIdentifier file)
Returns the configured query. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileQueryConfigurator(javax.persistence.EntityManager em, Class<T> resultType, String queryBaseName)
em
- the entitymanager to use for retrieving the queries.resultType
- the result type of the queries.queryBaseName
- the common base name for both queries.public FileQueryConfigurator(javax.persistence.EntityManager em, Class<T> resultType, String md5QueryName, String sha1QueryName, String fullQueryName)
em
- the entitymanager to use for retrieving the queries.resultType
- the result type of the queries.sha1QueryName
- the name of the named sha1-only queryfullQueryName
- the name of the named sha1+md5 query.Method Detail |
---|
public javax.persistence.TypedQuery<T> getQuery(com.trendmicro.grid.acl.l0.datatypes.FileIdentifier file)
file
- the identifier specifying the file to ask for.
public javax.persistence.Query getUntypedQuery(com.trendmicro.grid.acl.l0.datatypes.FileIdentifier file)
file
- the identifier specifying the file to ask for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |