org.datanucleus.ExecutionContext.getLockManager()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(82)

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

ExecutionContext.getLockManager介绍

暂无

代码示例

代码示例来源:origin: org.datanucleus/datanucleus-rdbms

AbstractClassMetaData cmd = ops[0].getClassMetaData();
boolean locked = ec.getSerializeReadForClass(cmd.getFullClassName());
LockMode lockType = ec.getLockManager().getLockMode(ops[0].getInternalObjectId());
if (lockType != LockMode.LOCK_NONE)

代码示例来源:origin: org.datanucleus/datanucleus-hbase

if (vermd != null)
  Object nextVersion = ec.getLockManager().getNextVersion(vermd, null);
  op.setTransactionalVersion(nextVersion);
  if (NucleusLogger.DATASTORE.isDebugEnabled())

代码示例来源:origin: org.datanucleus/datanucleus-hbase

Object datastoreVersion = HBaseUtils.getVersionForObject(cmd, result, ec, table, storeMgr);
VersionMetaData vermd = cmd.getVersionMetaDataForClass();
ec.getLockManager().performOptimisticVersionCheck(op, vermd!=null ? vermd.getVersionStrategy() : null, datastoreVersion);
Object nextVersion = ec.getLockManager().getNextVersion(vermd, op.getTransactionalVersion());
op.setTransactionalVersion(nextVersion);

代码示例来源:origin: org.datanucleus/datanucleus-excel

nextVersion = ec.getLockManager().getNextVersion(vermd, currentVersion);
if (vermd.getFieldName() != null)

代码示例来源:origin: org.datanucleus/datanucleus-json

nextVersion = ec.getLockManager().getNextVersion(vermd, currentVersion);
if (verMmd.getType() == Integer.class || verMmd.getType() == int.class)
nextVersion = ec.getLockManager().getNextVersion(vermd, currentVersion);

代码示例来源:origin: org.datanucleus/datanucleus-odf

nextVersion = ec.getLockManager().getNextVersion(vermd, currentVersion);

代码示例来源:origin: org.datanucleus/datanucleus-rdbms

Object newVersion = ec.getLockManager().getNextVersion(vermd, null);
JavaTypeMapping valMapping = exprFactory.getMappingForType(newVersion.getClass(), false);
SQLExpression valExpr = new TemporalLiteral(stmt, valMapping, newVersion, null);

代码示例来源:origin: org.datanucleus/datanucleus-excel

Object nextVersion = ec.getLockManager().getNextVersion(vermd, null);
op.setTransactionalVersion(nextVersion);
if (nextVersion instanceof Long)

代码示例来源:origin: org.datanucleus/datanucleus-rdbms

RDBMSStoreManager storeMgr = table.getStoreManager();
boolean locked = ec.getSerializeReadForClass(op.getClassMetaData().getFullClassName());
LockMode lockType = ec.getLockManager().getLockMode(op.getInternalObjectId());
if (lockType != LockMode.LOCK_NONE)

代码示例来源:origin: org.datanucleus/datanucleus-rdbms

nextVersion = ec.getLockManager().getNextVersion(versionMetaData, currentVersion);
if (verfmd.getType() == Integer.class || verfmd.getType() == int.class)
nextVersion = ec.getLockManager().getNextVersion(versionMetaData, currentVersion);

代码示例来源:origin: org.datanucleus/datanucleus-mongodb

Object nextVersion = ec.getLockManager().getNextVersion(vermd, currentVersion);
op.setTransactionalVersion(nextVersion);

代码示例来源:origin: org.datanucleus/datanucleus-rdbms

RDBMSStoreManager storeMgr = table.getStoreManager();
boolean locked = ec.getSerializeReadForClass(op.getClassMetaData().getFullClassName());
LockMode lockType = ec.getLockManager().getLockMode(op.getInternalObjectId());
if (lockType != LockMode.LOCK_NONE)

代码示例来源:origin: org.datanucleus/datanucleus-neo4j

Object nextVersion = ec.getLockManager().getNextVersion(vermd, currentVersion);
op.setTransactionalVersion(nextVersion);

代码示例来源:origin: org.datanucleus/datanucleus-mongodb

if (vermd != null)
  Object versionValue = ec.getLockManager().getNextVersion(vermd, null);
  if (vermd.getFieldName() != null)

代码示例来源:origin: org.datanucleus/datanucleus-hbase

Object datastoreVersion = HBaseUtils.getVersionForObject(cmd, result, ec, table, storeMgr);
VersionMetaData vermd = cmd.getVersionMetaDataForClass();
ec.getLockManager().performOptimisticVersionCheck(op, vermd!=null ? vermd.getVersionStrategy() : null, datastoreVersion);

代码示例来源:origin: org.datanucleus/datanucleus-odf

if (vermd != null)
  Object nextVersion = ec.getLockManager().getNextVersion(vermd, null);
  if (vermd.getFieldName() != null)

代码示例来源:origin: org.datanucleus/datanucleus-rdbms

Object nextOptimisticVersion = ec.getLockManager().getNextVersion(vermd, currentVersion);
if (verfmd.getType() == Integer.class || verfmd.getType() == int.class)
    Object nextOptimisticVersion = ec.getLockManager().getNextVersion(vermd, currentVersion);
    for (int k=0;k<versionStmtMapping.getNumberOfParameterOccurrences();k++)
    Object nextOptimisticVersion = ec.getLockManager().getNextVersion(vermd, currentVersion);
    op.setTransactionalVersion(nextOptimisticVersion);

相关文章