org.apache.oozie.executor.jpa
Class SLARegistrationQueryExecutor

java.lang.Object
  extended by org.apache.oozie.executor.jpa.QueryExecutor<SLARegistrationBean,SLARegistrationQueryExecutor.SLARegQuery>
      extended by org.apache.oozie.executor.jpa.SLARegistrationQueryExecutor

public class SLARegistrationQueryExecutor
extends QueryExecutor<SLARegistrationBean,SLARegistrationQueryExecutor.SLARegQuery>

Query Executor for SLA Event


Nested Class Summary
static class SLARegistrationQueryExecutor.SLARegQuery
           
 
Method Summary
 int executeUpdate(SLARegistrationQueryExecutor.SLARegQuery namedQuery, SLARegistrationBean jobBean)
           
 SLARegistrationBean get(SLARegistrationQueryExecutor.SLARegQuery namedQuery, Object... parameters)
           
static QueryExecutor<SLARegistrationBean,SLARegistrationQueryExecutor.SLARegQuery> getInstance()
           
 List<SLARegistrationBean> getList(SLARegistrationQueryExecutor.SLARegQuery namedQuery, Object... parameters)
           
 javax.persistence.Query getSelectQuery(SLARegistrationQueryExecutor.SLARegQuery namedQuery, javax.persistence.EntityManager em, Object... parameters)
           
 Object getSingleValue(SLARegistrationQueryExecutor.SLARegQuery namedQuery, Object... parameters)
           
 javax.persistence.Query getUpdateQuery(SLARegistrationQueryExecutor.SLARegQuery namedQuery, SLARegistrationBean bean, javax.persistence.EntityManager em)
           
 
Methods inherited from class org.apache.oozie.executor.jpa.QueryExecutor
insert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static QueryExecutor<SLARegistrationBean,SLARegistrationQueryExecutor.SLARegQuery> getInstance()

getUpdateQuery

public javax.persistence.Query getUpdateQuery(SLARegistrationQueryExecutor.SLARegQuery namedQuery,
                                              SLARegistrationBean bean,
                                              javax.persistence.EntityManager em)
                                       throws JPAExecutorException
Specified by:
getUpdateQuery in class QueryExecutor<SLARegistrationBean,SLARegistrationQueryExecutor.SLARegQuery>
Throws:
JPAExecutorException

getSelectQuery

public javax.persistence.Query getSelectQuery(SLARegistrationQueryExecutor.SLARegQuery namedQuery,
                                              javax.persistence.EntityManager em,
                                              Object... parameters)
                                       throws JPAExecutorException
Specified by:
getSelectQuery in class QueryExecutor<SLARegistrationBean,SLARegistrationQueryExecutor.SLARegQuery>
Throws:
JPAExecutorException

executeUpdate

public int executeUpdate(SLARegistrationQueryExecutor.SLARegQuery namedQuery,
                         SLARegistrationBean jobBean)
                  throws JPAExecutorException
Specified by:
executeUpdate in class QueryExecutor<SLARegistrationBean,SLARegistrationQueryExecutor.SLARegQuery>
Throws:
JPAExecutorException

get

public SLARegistrationBean get(SLARegistrationQueryExecutor.SLARegQuery namedQuery,
                               Object... parameters)
                        throws JPAExecutorException
Specified by:
get in class QueryExecutor<SLARegistrationBean,SLARegistrationQueryExecutor.SLARegQuery>
Throws:
JPAExecutorException

getList

public List<SLARegistrationBean> getList(SLARegistrationQueryExecutor.SLARegQuery namedQuery,
                                         Object... parameters)
                                  throws JPAExecutorException
Specified by:
getList in class QueryExecutor<SLARegistrationBean,SLARegistrationQueryExecutor.SLARegQuery>
Throws:
JPAExecutorException

getSingleValue

public Object getSingleValue(SLARegistrationQueryExecutor.SLARegQuery namedQuery,
                             Object... parameters)
                      throws JPAExecutorException
Specified by:
getSingleValue in class QueryExecutor<SLARegistrationBean,SLARegistrationQueryExecutor.SLARegQuery>
Throws:
JPAExecutorException


Copyright © 2015 Apache Software Foundation. All Rights Reserved.