本文整理了Java中javax.persistence.Query.getParameterValue
方法的一些代码示例,展示了Query.getParameterValue
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getParameterValue
方法的具体详情如下:
包路径:javax.persistence.Query
类名称:Query
方法名:getParameterValue
[英]Return the input value bound to the positional parameter. (Note that OUT parameters are unbound.)
[中]返回绑定到位置参数的输入值。(请注意,OUT参数未绑定。)
代码示例来源:origin: Impetus/Kundera
@Override
public Object getParameterValue(int arg0)
{
return query.getParameterValue(arg0);
}
代码示例来源:origin: Impetus/Kundera
@Override
public <T> T getParameterValue(Parameter<T> arg0)
{
return query.getParameterValue(arg0);
}
代码示例来源:origin: Impetus/Kundera
@Override
public Object getParameterValue(String arg0)
{
return query.getParameterValue(arg0);
}
代码示例来源:origin: my2iu/Jinq
private void logQuery(String queryString, Query q)
{
if (hints.queryLogger == null) return;
Map<Integer, Object> positionParams = new HashMap<Integer, Object>();
Map<String, Object> namedParams = new HashMap<String, Object>();
for (Parameter<?> param: q.getParameters())
{
if (param.getName() != null)
namedParams.put(param.getName(), q.getParameterValue(param));
if (param.getPosition() != null)
positionParams.put(param.getPosition(), q.getParameterValue(param));
}
hints.queryLogger.logQuery(queryString, positionParams, namedParams);
}
代码示例来源:origin: org.evolvis.bsi/kolab-ws
@Override
public Object
getParameterValue(String name)
{
return delegate.getParameterValue(name);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-persistence
/** {@inheritDoc} */
@Override
public <E> E getParameterValue(Parameter<E> param) {
return query.getParameterValue(param);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-persistence
/** {@inheritDoc} */
@Override
public Object getParameterValue(String name) {
return query.getParameterValue(name);
}
代码示例来源:origin: de.mhus.lib/mhu-lib-persistence
/** {@inheritDoc} */
@Override
public Object getParameterValue(int position) {
return query.getParameterValue(position);
}
代码示例来源:origin: org.evolvis.bsi/kolab-ws
@Override
public Object
getParameterValue(int position)
{
return delegate.getParameterValue(position);
}
代码示例来源:origin: org.jboss.eap/wildfly-jpa
@Override
public Object getParameterValue(String name) {
return underlyingQuery.getParameterValue(name);
}
代码示例来源:origin: com.kumuluz.ee/kumuluzee-jpa-common
@Override
public <T> T getParameterValue(Parameter<T> param) {
return query.getParameterValue(param);
}
代码示例来源:origin: com.kumuluz.ee/kumuluzee-jpa-common
@Override
public Object getParameterValue(int position) {
return query.getParameterValue(position);
}
代码示例来源:origin: kumuluz/kumuluzee
@Override
public Object getParameterValue(int position) {
return query.getParameterValue(position);
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-persistence-jpa20
@Override
public Object getParameterValue(int position) {
return query.getParameterValue(position);
}
代码示例来源:origin: Blazebit/blaze-persistence
@Override
public Object getParameterValue(String name) {
Query query = parameterToQuery.get(name).getQuery(countQuery, idQuery, objectQuery);
return query.getParameterValue(name);
}
代码示例来源:origin: org.glassfish.main.common/container-common
public Object getParameterValue(String name) {
try {
if(callFlowAgent.isEnabled()) {
callFlowAgent.entityManagerQueryStart(EntityManagerQueryMethod.GET_PARAMETER_VALUE_STRING);
}
return queryDelegate.getParameterValue(name);
} finally {
if(callFlowAgent.isEnabled()) {
callFlowAgent.entityManagerQueryEnd();
}
}
}
代码示例来源:origin: org.glassfish.main.common/container-common
public <T> T getParameterValue(Parameter<T> param) {
try {
if(callFlowAgent.isEnabled()) {
callFlowAgent.entityManagerQueryStart(EntityManagerQueryMethod.GET_PARAMETER_VALUE_PARAMETER);
}
return queryDelegate.getParameterValue(param);
} finally {
if(callFlowAgent.isEnabled()) {
callFlowAgent.entityManagerQueryEnd();
}
}
}
代码示例来源:origin: apache/oozie
public void testGetQuery() throws Exception {
EntityManager em = jpaService.getEntityManager();
SLASummaryBean bean = addRecordToSLASummaryTable("test-sla-summary", SLAStatus.IN_PROCESS);
// GET_SLA_SUMMARY
Query query = SLASummaryQueryExecutor.getInstance().getSelectQuery(SLASummaryQuery.GET_SLA_SUMMARY, em,
bean.getId());
assertEquals(query.getParameterValue("id"), bean.getId());
// GET_SLA_SUMMARY_EVENTPROCESSED
query = SLASummaryQueryExecutor.getInstance().getSelectQuery(SLASummaryQuery.GET_SLA_SUMMARY_EVENTPROCESSED,
em, bean.getId());
assertEquals(query.getParameterValue("id"), bean.getId());
}
代码示例来源:origin: apache/oozie
public void testGetSelectQuery() throws Exception {
EntityManager em = jpaService.getEntityManager();
SLARegistrationBean bean = addRecordToSLARegistrationTable("test-application", SLAStatus.MET);
// GET_SLA_REG_ALL
Query query = SLARegistrationQueryExecutor.getInstance().getSelectQuery(SLARegQuery.GET_SLA_REG_ALL, em,
bean.getId());
assertEquals(query.getParameterValue("id"), bean.getId());
// GET_WORKFLOW_SUSPEND
query = SLARegistrationQueryExecutor.getInstance().getSelectQuery(SLARegQuery.GET_SLA_REG_ON_RESTART, em,
bean.getId());
assertEquals(query.getParameterValue("id"), bean.getId());
}
代码示例来源:origin: apache/oozie
public void testGetSelectQuery() throws Exception {
EntityManager em = jpaService.getEntityManager();
WorkflowJobBean bean = addRecordToWfJobTable(WorkflowJob.Status.PREP, WorkflowInstance.Status.PREP);
// GET_WORKFLOW
Query query = WorkflowJobQueryExecutor.getInstance().getSelectQuery(WorkflowJobQuery.GET_WORKFLOW, em, bean.getId());
assertEquals(query.getParameterValue("id"), bean.getId());
// GET_WORKFLOW_SUSPEND
query = WorkflowJobQueryExecutor.getInstance().getSelectQuery(WorkflowJobQuery.GET_WORKFLOW_SUSPEND, em, bean.getId());
assertEquals(query.getParameterValue("id"), bean.getId());
}
内容来源于网络,如有侵权,请联系作者删除!