Class EQueryTransaction

  • All Implemented Interfaces:
    io.ebean.Transaction, io.ebeaninternal.api.SpiTransaction, AutoCloseable

    public class EQueryTransaction
    extends Object
    implements io.ebeaninternal.api.SpiTransaction
    • Method Detail

      • translate

        public javax.persistence.PersistenceException translate​(String message,
                                                                SQLException cause)
        Specified by:
        translate in interface io.ebeaninternal.api.SpiTransaction
      • setTenantId

        public void setTenantId​(Object tenantId)
        Specified by:
        setTenantId in interface io.ebeaninternal.api.SpiTransaction
      • getTenantId

        public Object getTenantId()
        Specified by:
        getTenantId in interface io.ebeaninternal.api.SpiTransaction
      • profileOffset

        public long profileOffset()
        Specified by:
        profileOffset in interface io.ebeaninternal.api.SpiTransaction
      • getLabel

        public String getLabel()
        Specified by:
        getLabel in interface io.ebeaninternal.api.SpiTransaction
      • setLabel

        public void setLabel​(String label)
        Specified by:
        setLabel in interface io.ebean.Transaction
      • setProfileStream

        public void setProfileStream​(io.ebeaninternal.server.transaction.ProfileStream profileStream)
        Specified by:
        setProfileStream in interface io.ebeaninternal.api.SpiTransaction
      • setProfileLocation

        public void setProfileLocation​(io.ebean.ProfileLocation profileLocation)
        Specified by:
        setProfileLocation in interface io.ebeaninternal.api.SpiTransaction
      • getProfileLocation

        public io.ebean.ProfileLocation getProfileLocation()
        Specified by:
        getProfileLocation in interface io.ebeaninternal.api.SpiTransaction
      • profileEvent

        public void profileEvent​(io.ebeaninternal.api.SpiProfileTransactionEvent event)
        Specified by:
        profileEvent in interface io.ebeaninternal.api.SpiTransaction
      • profileStream

        public io.ebeaninternal.server.transaction.ProfileStream profileStream()
        Specified by:
        profileStream in interface io.ebeaninternal.api.SpiTransaction
      • getLogPrefix

        public String getLogPrefix()
        Specified by:
        getLogPrefix in interface io.ebeaninternal.api.SpiTransaction
      • isLogSql

        public boolean isLogSql()
        Specified by:
        isLogSql in interface io.ebeaninternal.api.SpiTransaction
      • isLogSummary

        public boolean isLogSummary()
        Specified by:
        isLogSummary in interface io.ebeaninternal.api.SpiTransaction
      • logSql

        public void logSql​(String msg)
        Specified by:
        logSql in interface io.ebeaninternal.api.SpiTransaction
      • logSummary

        public void logSummary​(String msg)
        Specified by:
        logSummary in interface io.ebeaninternal.api.SpiTransaction
      • getStartNanoTime

        public long getStartNanoTime()
        Specified by:
        getStartNanoTime in interface io.ebeaninternal.api.SpiTransaction
      • isBatchThisRequest

        public boolean isBatchThisRequest()
        Specified by:
        isBatchThisRequest in interface io.ebeaninternal.api.SpiTransaction
      • isNestedUseSavepoint

        public boolean isNestedUseSavepoint()
        Specified by:
        isNestedUseSavepoint in interface io.ebeaninternal.api.SpiTransaction
      • setNestedUseSavepoint

        public void setNestedUseSavepoint()
        Specified by:
        setNestedUseSavepoint in interface io.ebean.Transaction
      • isBatchMode

        public boolean isBatchMode()
        Specified by:
        isBatchMode in interface io.ebean.Transaction
      • setBatchOnCascade

        public void setBatchOnCascade​(boolean batchMode)
        Specified by:
        setBatchOnCascade in interface io.ebean.Transaction
      • isBatchOnCascade

        public boolean isBatchOnCascade()
        Specified by:
        isBatchOnCascade in interface io.ebean.Transaction
      • registerDeferred

        public void registerDeferred​(io.ebeaninternal.server.core.PersistDeferredRelationship derived)
        Specified by:
        registerDeferred in interface io.ebeaninternal.api.SpiTransaction
      • registerDeleteBean

        public void registerDeleteBean​(Integer hash)
        Specified by:
        registerDeleteBean in interface io.ebeaninternal.api.SpiTransaction
      • isRegisteredDeleteBean

        public boolean isRegisteredDeleteBean​(Integer hash)
        Specified by:
        isRegisteredDeleteBean in interface io.ebeaninternal.api.SpiTransaction
      • unregisterBeans

        public void unregisterBeans()
        Specified by:
        unregisterBeans in interface io.ebeaninternal.api.SpiTransaction
      • isRegisteredBean

        public boolean isRegisteredBean​(Object bean)
        Specified by:
        isRegisteredBean in interface io.ebeaninternal.api.SpiTransaction
      • getId

        public String getId()
        Specified by:
        getId in interface io.ebeaninternal.api.SpiTransaction
      • getDocStoreMode

        public io.ebean.annotation.DocStoreMode getDocStoreMode()
        Specified by:
        getDocStoreMode in interface io.ebeaninternal.api.SpiTransaction
      • getDocStoreBatchSize

        public int getDocStoreBatchSize()
        Specified by:
        getDocStoreBatchSize in interface io.ebeaninternal.api.SpiTransaction
      • getBatchSize

        public int getBatchSize()
        Specified by:
        getBatchSize in interface io.ebeaninternal.api.SpiTransaction
        Specified by:
        getBatchSize in interface io.ebean.Transaction
      • setGetGeneratedKeys

        public void setGetGeneratedKeys​(boolean getGeneratedKeys)
        Specified by:
        setGetGeneratedKeys in interface io.ebean.Transaction
      • setBatchGetGeneratedKeys

        public void setBatchGetGeneratedKeys​(boolean getGeneratedKeys)
        Specified by:
        setBatchGetGeneratedKeys in interface io.ebean.Transaction
      • setFlushOnMixed

        public void setFlushOnMixed​(boolean batchFlushOnMixed)
        Specified by:
        setFlushOnMixed in interface io.ebean.Transaction
      • setBatchFlushOnMixed

        public void setBatchFlushOnMixed​(boolean batchFlushOnMixed)
        Specified by:
        setBatchFlushOnMixed in interface io.ebean.Transaction
      • setFlushOnQuery

        public void setFlushOnQuery​(boolean batchFlushOnQuery)
        Specified by:
        setFlushOnQuery in interface io.ebean.Transaction
      • setBatchFlushOnQuery

        public void setBatchFlushOnQuery​(boolean batchFlushOnQuery)
        Specified by:
        setBatchFlushOnQuery in interface io.ebean.Transaction
      • isFlushOnQuery

        public boolean isFlushOnQuery()
        Specified by:
        isFlushOnQuery in interface io.ebean.Transaction
      • isBatchFlushOnQuery

        public boolean isBatchFlushOnQuery()
        Specified by:
        isBatchFlushOnQuery in interface io.ebean.Transaction
      • flushBatch

        public void flushBatch()
                        throws javax.persistence.PersistenceException
        Specified by:
        flushBatch in interface io.ebean.Transaction
        Throws:
        javax.persistence.PersistenceException
      • flush

        public void flush()
                   throws javax.persistence.PersistenceException
        Specified by:
        flush in interface io.ebean.Transaction
        Throws:
        javax.persistence.PersistenceException
      • getConnection

        public Connection getConnection()
        Specified by:
        getConnection in interface io.ebean.Transaction
      • addModification

        public void addModification​(String tableName,
                                    boolean inserts,
                                    boolean updates,
                                    boolean deletes)
        Specified by:
        addModification in interface io.ebean.Transaction
      • putUserObject

        public void putUserObject​(String name,
                                  Object value)
        Specified by:
        putUserObject in interface io.ebean.Transaction
      • getUserObject

        public Object getUserObject​(String name)
        Specified by:
        getUserObject in interface io.ebean.Transaction
      • getBatchGetGeneratedKeys

        public Boolean getBatchGetGeneratedKeys()
        Specified by:
        getBatchGetGeneratedKeys in interface io.ebeaninternal.api.SpiTransaction
      • depth

        public void depth​(int diff)
        Specified by:
        depth in interface io.ebeaninternal.api.SpiTransaction
      • depth

        public int depth()
        Specified by:
        depth in interface io.ebeaninternal.api.SpiTransaction
      • isExplicit

        public boolean isExplicit()
        Specified by:
        isExplicit in interface io.ebeaninternal.api.SpiTransaction
      • getEvent

        public io.ebeaninternal.api.TransactionEvent getEvent()
        Specified by:
        getEvent in interface io.ebeaninternal.api.SpiTransaction
      • isPersistCascade

        public boolean isPersistCascade()
        Specified by:
        isPersistCascade in interface io.ebeaninternal.api.SpiTransaction
      • getBatchControl

        public io.ebeaninternal.server.persist.BatchControl getBatchControl()
        Specified by:
        getBatchControl in interface io.ebeaninternal.api.SpiTransaction
      • setBatchControl

        public void setBatchControl​(io.ebeaninternal.server.persist.BatchControl control)
        Specified by:
        setBatchControl in interface io.ebeaninternal.api.SpiTransaction
      • getPersistenceContext

        public io.ebean.bean.PersistenceContext getPersistenceContext()
        Specified by:
        getPersistenceContext in interface io.ebeaninternal.api.SpiTransaction
      • setPersistenceContext

        public void setPersistenceContext​(io.ebean.bean.PersistenceContext context)
        Specified by:
        setPersistenceContext in interface io.ebeaninternal.api.SpiTransaction
      • isSaveAssocManyIntersection

        public boolean isSaveAssocManyIntersection​(String intersectionTable,
                                                   String beanName)
        Specified by:
        isSaveAssocManyIntersection in interface io.ebeaninternal.api.SpiTransaction
      • checkBatchEscalationOnCascade

        public boolean checkBatchEscalationOnCascade​(io.ebeaninternal.server.core.PersistRequestBean<?> request)
        Specified by:
        checkBatchEscalationOnCascade in interface io.ebeaninternal.api.SpiTransaction
      • flushBatchOnCascade

        public void flushBatchOnCascade()
        Specified by:
        flushBatchOnCascade in interface io.ebeaninternal.api.SpiTransaction
      • flushBatchOnRollback

        public void flushBatchOnRollback()
        Specified by:
        flushBatchOnRollback in interface io.ebeaninternal.api.SpiTransaction
      • markNotQueryOnly

        public void markNotQueryOnly()
        Specified by:
        markNotQueryOnly in interface io.ebeaninternal.api.SpiTransaction
      • checkBatchEscalationOnCollection

        public void checkBatchEscalationOnCollection()
        Specified by:
        checkBatchEscalationOnCollection in interface io.ebeaninternal.api.SpiTransaction
      • flushBatchOnCollection

        public void flushBatchOnCollection()
        Specified by:
        flushBatchOnCollection in interface io.ebeaninternal.api.SpiTransaction
      • addBeanChange

        public void addBeanChange​(io.ebean.event.changelog.BeanChange beanChange)
        Specified by:
        addBeanChange in interface io.ebeaninternal.api.SpiTransaction
      • sendChangeLog

        public void sendChangeLog​(io.ebean.event.changelog.ChangeSet changeSet)
        Specified by:
        sendChangeLog in interface io.ebeaninternal.api.SpiTransaction
      • getDocStoreTransaction

        public io.ebeanservice.docstore.api.DocStoreTransaction getDocStoreTransaction()
        Specified by:
        getDocStoreTransaction in interface io.ebeaninternal.api.SpiTransaction
      • register

        public void register​(io.ebean.TransactionCallback callback)
        Specified by:
        register in interface io.ebean.Transaction
      • isReadOnly

        public boolean isReadOnly()
        Specified by:
        isReadOnly in interface io.ebean.Transaction
      • setReadOnly

        public void setReadOnly​(boolean readOnly)
        Specified by:
        setReadOnly in interface io.ebean.Transaction
      • commitAndContinue

        public void commitAndContinue()
                               throws javax.persistence.RollbackException
        Specified by:
        commitAndContinue in interface io.ebean.Transaction
        Throws:
        javax.persistence.RollbackException
      • commit

        public void commit()
                    throws javax.persistence.RollbackException
        Specified by:
        commit in interface io.ebean.Transaction
        Throws:
        javax.persistence.RollbackException
      • rollback

        public void rollback()
                      throws javax.persistence.PersistenceException
        Specified by:
        rollback in interface io.ebean.Transaction
        Throws:
        javax.persistence.PersistenceException
      • rollback

        public void rollback​(Throwable e)
                      throws javax.persistence.PersistenceException
        Specified by:
        rollback in interface io.ebean.Transaction
        Throws:
        javax.persistence.PersistenceException
      • setRollbackOnly

        public void setRollbackOnly()
        Specified by:
        setRollbackOnly in interface io.ebean.Transaction
      • isRollbackOnly

        public boolean isRollbackOnly()
        Specified by:
        isRollbackOnly in interface io.ebean.Transaction
      • end

        public void end()
                 throws javax.persistence.PersistenceException
        Specified by:
        end in interface io.ebean.Transaction
        Throws:
        javax.persistence.PersistenceException
      • isActive

        public boolean isActive()
        Specified by:
        isActive in interface io.ebean.Transaction
      • setDocStoreMode

        public void setDocStoreMode​(io.ebean.annotation.DocStoreMode mode)
        Specified by:
        setDocStoreMode in interface io.ebean.Transaction
      • setDocStoreBatchSize

        public void setDocStoreBatchSize​(int batchSize)
        Specified by:
        setDocStoreBatchSize in interface io.ebean.Transaction
      • setPersistCascade

        public void setPersistCascade​(boolean persistCascade)
        Specified by:
        setPersistCascade in interface io.ebean.Transaction
      • setUpdateAllLoadedProperties

        public void setUpdateAllLoadedProperties​(boolean updateAllLoadedProperties)
        Specified by:
        setUpdateAllLoadedProperties in interface io.ebean.Transaction
      • setSkipCache

        public void setSkipCache​(boolean skipCache)
        Specified by:
        setSkipCache in interface io.ebean.Transaction
      • isSkipCache

        public boolean isSkipCache()
        Specified by:
        isSkipCache in interface io.ebean.Transaction
      • setBatchMode

        public void setBatchMode​(boolean useBatch)
        Specified by:
        setBatchMode in interface io.ebean.Transaction
      • setBatchSize

        public void setBatchSize​(int batchSize)
        Specified by:
        setBatchSize in interface io.ebean.Transaction
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface io.ebean.Transaction