本文整理了Java中org.datanucleus.ExecutionContext.getBooleanProperty()
方法的一些代码示例,展示了ExecutionContext.getBooleanProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ExecutionContext.getBooleanProperty()
方法的具体详情如下:
包路径:org.datanucleus.ExecutionContext
类名称:ExecutionContext
方法名:getBooleanProperty
暂无
代码示例来源:origin: org.datanucleus/datanucleus-api-jdo
/**
* Accessor for whether to ignore the cache.
* @return Whether to ignore the cache.
*/
public boolean getIgnoreCache()
{
assertIsOpen();
return ec.getBooleanProperty(PropertyNames.PROPERTY_IGNORE_CACHE);
}
代码示例来源:origin: org.datanucleus/datanucleus-api-jdo
/**
* Accessor for whether the Persistence Manager is multithreaded.
* @return Whether to run multithreaded.
*/
public boolean getMultithreaded()
{
assertIsOpen();
return ec.getBooleanProperty(PropertyNames.PROPERTY_MULTITHREADED);
}
代码示例来源:origin: org.datanucleus/datanucleus-api-jdo
/**
* Accessor for whether to detach all objects on commit of the transaction.
* @return Whether to detach all on commit.
*/
public boolean getDetachAllOnCommit()
{
assertIsOpen();
return ec.getBooleanProperty(PropertyNames.PROPERTY_DETACH_ALL_ON_COMMIT);
}
代码示例来源:origin: org.datanucleus/datanucleus-api-jdo
/**
* Accessor for whether to copy objects on attaching.
* @return Whether to copy objects on attaching.
*/
public boolean getCopyOnAttach()
{
assertIsOpen();
return ec.getBooleanProperty(PropertyNames.PROPERTY_COPY_ON_ATTACH);
}
代码示例来源:origin: org.datanucleus/datanucleus-api-jdo
@Override
public void close() throws IOException
{
if (closed)
{
return;
}
closeAll();
Boolean closeableQuery = ec.getBooleanProperty(JDOQuery.PROPERTY_CLOSEABLE_QUERY);
if (closeableQuery == Boolean.TRUE)
{
// User has requested a closeable Query, so release connection to PM and underlying query etc
if (this.fetchPlan != null)
{
this.fetchPlan.clearGroups();
this.fetchPlan = null;
}
this.parameterExprByName = null;
this.parameterValuesByName = null;
this.ec = null;
this.pm = null;
this.internalQueries = null;
this.subqueries = null;
this.closed = true;
}
}
代码示例来源:origin: org.datanucleus/datanucleus-api-jdo
public void close()
{
if (closed)
{
return;
}
this.closeAll();
Boolean closeableQuery = extent.getExecutionContext().getBooleanProperty(JDOQuery.PROPERTY_CLOSEABLE_QUERY);
if (closeableQuery == Boolean.TRUE)
{
// User has requested a closeable Query, so release connection to PM and underlying query etc
this.fetchPlan.clearGroups();
this.fetchPlan = null;
this.extent = null;
this.pm = null;
this.closed = true;
}
}
代码示例来源:origin: org.datanucleus/datanucleus-api-jdo
public void close()
{
if (closed)
{
return;
}
closeAll();
Boolean closeableQuery = query.getExecutionContext().getBooleanProperty(PROPERTY_CLOSEABLE_QUERY);
if (closeableQuery == Boolean.TRUE)
{
// User has requested a closeable Query, so release connection to PM and underlying query etc
if (this.fetchPlan != null)
{
this.fetchPlan.clearGroups();
this.fetchPlan = null;
}
this.parameterValueByName = null;
this.parameterValues = null;
this.pm = null;
this.query = null;
this.closed = true;
}
}
代码示例来源:origin: org.datanucleus/datanucleus-rdbms
if (ec.getProperty(PropertyNames.PROPERTY_QUERY_SQL_ALLOWALL) != null)
allowAllSyntax = ec.getBooleanProperty(PropertyNames.PROPERTY_QUERY_SQL_ALLOWALL);
代码示例来源:origin: org.datanucleus/datanucleus-rdbms
boolean readOnly = ec != null ? ec.getBooleanProperty(PropertyNames.PROPERTY_DATASTORE_READONLY) : storeMgr.getBooleanProperty(PropertyNames.PROPERTY_DATASTORE_READONLY);
if (dba != null)
代码示例来源:origin: org.datanucleus/datanucleus-rdbms
if (!ec.getBooleanProperty(PropertyNames.PROPERTY_ATTACH_SAME_DATASTORE))
内容来源于网络,如有侵权,请联系作者删除!