javax.persistence.EntityManager.getLockMode()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(161)

本文整理了Java中javax.persistence.EntityManager.getLockMode()方法的一些代码示例,展示了EntityManager.getLockMode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EntityManager.getLockMode()方法的具体详情如下:
包路径:javax.persistence.EntityManager
类名称:EntityManager
方法名:getLockMode

EntityManager.getLockMode介绍

[英]Get the current lock mode for the entity instance.
[中]获取实体实例的当前锁定模式。

代码示例

代码示例来源:origin: rapidoid/rapidoid

@Override
public LockModeType getLockMode(Object entity) {
  return em.getLockMode(entity);
}

代码示例来源:origin: rapidoid/rapidoid

@Override
public LockModeType getLockMode(Object entity) {
  return em().getLockMode(entity);
}

代码示例来源:origin: Impetus/Kundera

em.getLockMode(null);
Assert.fail("Should have gone to catch block!");

代码示例来源:origin: org.evolvis.bsi/kolab-ws

@Override
public LockModeType
getLockMode(Object entity)
{
  return delegate.getLockMode(entity);
}

代码示例来源:origin: org.apache.openejb/openejb-core

@Override
public LockModeType getLockMode(final Object entity) {
  return delegate.getLockMode(entity);
}

代码示例来源:origin: kumuluz/kumuluzee

@Override
public LockModeType getLockMode(Object entity) {
  return em.getLockMode(entity);
}

代码示例来源:origin: org.apache.tomee/openejb-core

@Override
public LockModeType getLockMode(final Object entity) {
  return delegate.getLockMode(entity);
}

代码示例来源:origin: org.wildfly/wildfly-jpa

@Override
public LockModeType getLockMode(Object entity) {
  return entityManager.getLockMode(entity);
}

代码示例来源:origin: org.jboss.eap/wildfly-jpa

@Override
public LockModeType getLockMode(Object entity) {
  return entityManager.getLockMode(entity);
}

代码示例来源:origin: org.apache.geronimo.modules/geronimo-persistence-jpa20

@Override
public LockModeType getLockMode(Object entity) {
  return entityManager.getLockMode(entity);
}

代码示例来源:origin: com.phloc/phloc-db

public LockModeType getLockMode (final Object entity)
{
 return m_aEntityMgr.getLockMode (entity);
}

代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-data-module-impl

@Override
public LockModeType getLockMode(E entity)
{
  return entityManager().getLockMode(entity);
}

代码示例来源:origin: de.mhus.lib/mhu-lib-persistence

/** {@inheritDoc} */
@Override
public LockModeType getLockMode(Object entity) {
  injectObject(entity);
  return entityManager.getLockMode(entity);
}

代码示例来源:origin: kumuluz/kumuluzee

@Override
public LockModeType getLockMode(Object entity) {
  return getEntityManager().getLockMode(entity);
}

代码示例来源:origin: org.apache.geronimo.modules/geronimo-persistence-jpa20

@Override
public LockModeType getLockMode(Object entity) {
  return getEntityManager().getLockMode(entity);
}

代码示例来源:origin: org.codehaus.fabric3/fabric3-jpa-hibernate

public LockModeType getLockMode(Object o) {
  initEntityManager();
  return em.getLockMode(o);
}

代码示例来源:origin: com.kumuluz.ee/kumuluzee-jpa-common

@Override
public LockModeType getLockMode(Object entity) {
  return getEntityManager().getLockMode(entity);
}

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core

public LockModeType getLockMode(Object entity) {
  EntityManager entityManager = getEntityManager();
  try {
    return entityManager.getLockMode(entity);
  } finally {
    closeIfNoTx(entityManager);
  }
}
/* (non-Javadoc)

代码示例来源:origin: org.apache.openejb/openejb-core

public LockModeType getLockMode(final Object entity) {
  assertTransactionActive();
  final Timer timer = Op.getLockMode.start(this);
  try {
    return getEntityManager().getLockMode(entity);
  } finally {
    timer.stop();
  }
}

代码示例来源:origin: org.apache.tomee/openejb-core

public LockModeType getLockMode(final Object entity) {
  assertTransactionActive();
  final Timer timer = Op.getLockMode.start(this.timer, this);
  try {
    return getEntityManager().getLockMode(entity);
  } finally {
    timer.stop();
  }
}

相关文章