Examples of entityManagerQueryStart()


Examples of com.sun.enterprise.admin.monitor.callflow.Agent.entityManagerQueryStart()

    public List getResultList() {
        Agent callFlowAgent = Switch.getSwitch().getCallFlowAgent();
        try {
            if(callFlowAgent.isEnabled()) {
                callFlowAgent.entityManagerQueryStart(EntityManagerQueryMethod.GET_RESULT_LIST);
            }
            Query delegate = getQueryDelegate();
            return delegate.getResultList();
        } finally {
            clearDelegates();
View Full Code Here

Examples of com.sun.enterprise.admin.monitor.callflow.Agent.entityManagerQueryStart()

    public Object getSingleResult() {
        Agent callFlowAgent = Switch.getSwitch().getCallFlowAgent();
        try {
            if(callFlowAgent.isEnabled()) {
                callFlowAgent.entityManagerQueryStart(EntityManagerQueryMethod.GET_SINGLE_RESULT);
            }
            Query delegate = getQueryDelegate();
            return delegate.getSingleResult();

        } finally {
View Full Code Here

Examples of com.sun.enterprise.admin.monitor.callflow.Agent.entityManagerQueryStart()

    }

    public int executeUpdate() {
        Agent callFlowAgent = Switch.getSwitch().getCallFlowAgent();
        if(callFlowAgent.isEnabled()) {
            callFlowAgent.entityManagerQueryStart(EntityManagerQueryMethod.EXECUTE_UPDATE);
            callFlowAgent.entityManagerQueryEnd();
        }
        throw new TransactionRequiredException("executeUpdate is not supported for a Query object obtained through non-transactional access of a container-managed transactional EntityManager");
    }
View Full Code Here

Examples of com.sun.enterprise.admin.monitor.callflow.Agent.entityManagerQueryStart()

    public Query setMaxResults(int maxResults) {
        Agent callFlowAgent = Switch.getSwitch().getCallFlowAgent();
       
        try {
            if(callFlowAgent.isEnabled()) {
                callFlowAgent.entityManagerQueryStart(EntityManagerQueryMethod.SET_MAX_RESULTS);
            }
            if( maxResults < 0 ) {
                throw new IllegalArgumentException("maxResult cannot be negative");
            }
           
View Full Code Here

Examples of com.sun.enterprise.admin.monitor.callflow.Agent.entityManagerQueryStart()

    public Query setFirstResult(int startPosition) {
        Agent callFlowAgent = Switch.getSwitch().getCallFlowAgent();
       
        try {
            if(callFlowAgent.isEnabled()) {
                callFlowAgent.entityManagerQueryStart(EntityManagerQueryMethod.SET_FIRST_RESULT);
            }
            if( startPosition < 0 ) {
                throw new IllegalArgumentException
                        ("startPosition cannot be negative");
            }
View Full Code Here

Examples of com.sun.enterprise.admin.monitor.callflow.Agent.entityManagerQueryStart()

    public Query setHint(String hintName, Object value) {
        Agent callFlowAgent = Switch.getSwitch().getCallFlowAgent();
       
        try {
            if(callFlowAgent.isEnabled()) {
                callFlowAgent.entityManagerQueryStart(EntityManagerQueryMethod.SET_HINT);
            }
            Query delegate = getQueryDelegate();
            delegate.setHint(hintName, value);
           
            SetterData setterData = SetterData.createHint(hintName, value);
View Full Code Here

Examples of com.sun.enterprise.admin.monitor.callflow.Agent.entityManagerQueryStart()

    public Query setParameter(String name, Object value) {
        Agent callFlowAgent = Switch.getSwitch().getCallFlowAgent();
       
        try {
            if(callFlowAgent.isEnabled()) {
                callFlowAgent.entityManagerQueryStart(EntityManagerQueryMethod.SET_PARAMETER_STRING_OBJECT);
            }
            Query delegate = getQueryDelegate();
            delegate.setParameter(name, value);
           
            SetterData setterData = SetterData.createParameter(name, value);
View Full Code Here

Examples of com.sun.enterprise.admin.monitor.callflow.Agent.entityManagerQueryStart()

                              TemporalType temporalType) {
        Agent callFlowAgent = Switch.getSwitch().getCallFlowAgent();
       
        try {
            if(callFlowAgent.isEnabled()) {
                callFlowAgent.entityManagerQueryStart(EntityManagerQueryMethod.SET_PARAMETER_STRING_DATE_TEMPORAL_TYPE);
            }
            Query delegate = getQueryDelegate();
            delegate.setParameter(name, value, temporalType);
           
            SetterData setterData = SetterData.createParameter(name, value,
View Full Code Here

Examples of com.sun.enterprise.admin.monitor.callflow.Agent.entityManagerQueryStart()

    public Query setParameter(String name, Calendar value,
                              TemporalType temporalType) {
        Agent callFlowAgent = Switch.getSwitch().getCallFlowAgent();
        try {
            if(callFlowAgent.isEnabled()) {
                callFlowAgent.entityManagerQueryStart(EntityManagerQueryMethod.SET_PARAMETER_STRING_CALENDAR_TEMPORAL_TYPE);
            }
            Query delegate = getQueryDelegate();
            delegate.setParameter(name, value, temporalType);
           
            SetterData setterData = SetterData.createParameter(name, value,
View Full Code Here

Examples of com.sun.enterprise.admin.monitor.callflow.Agent.entityManagerQueryStart()

    public Query setParameter(int position, Object value) {
        Agent callFlowAgent = Switch.getSwitch().getCallFlowAgent();
       
        try {
            if(callFlowAgent.isEnabled()) {
                callFlowAgent.entityManagerQueryStart(EntityManagerQueryMethod.SET_PARAMETER_INT_OBJECT);
            }
        Query delegate = getQueryDelegate();
        delegate.setParameter(position, value);

        SetterData setterData = SetterData.createParameter(position, value);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.