本文整理了Java中org.apache.openjpa.kernel.Broker.getFetchConfiguration()
方法的一些代码示例,展示了Broker.getFetchConfiguration()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Broker.getFetchConfiguration()
方法的具体详情如下:
包路径:org.apache.openjpa.kernel.Broker
类名称:Broker
方法名:getFetchConfiguration
暂无
代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel
public FetchConfiguration getFetchConfiguration() {
try {
return _broker.getFetchConfiguration();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
public FetchConfiguration getFetchConfiguration() {
try {
return _broker.getFetchConfiguration();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
public FetchConfiguration getFetchConfiguration() {
try {
return _broker.getFetchConfiguration();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
public FetchConfiguration getFetchConfiguration() {
try {
return _broker.getFetchConfiguration();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openjpa/openjpa-kernel
public FetchConfiguration getFetchConfiguration() {
try {
return _broker.getFetchConfiguration();
} catch (RuntimeException re) {
throw translate(re);
}
}
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
/**
* Create a bit set for the fields in the current fetch groups.
*/
private static void setFetchGroupFields(Broker broker,
StateManagerImpl sm, BitSet idxs) {
FetchConfiguration fetch = broker.getFetchConfiguration();
FieldMetaData[] fmds = sm.getMetaData().getFields();
for (int i = 0; i < fmds.length; i++) {
if (fmds[i].isPrimaryKey() || fetch.requiresFetch(fmds[i])
!= FetchConfiguration.FETCH_NONE)
idxs.set(i);
}
}
代码示例来源:origin: org.apache.openjpa/openjpa-kernel
/**
* Create a bit set for the fields in the current fetch groups.
*/
private static void setFetchGroupFields(Broker broker,
StateManagerImpl sm, BitSet idxs) {
FetchConfiguration fetch = broker.getFetchConfiguration();
FieldMetaData[] fmds = sm.getMetaData().getFields();
for (int i = 0; i < fmds.length; i++) {
if (fmds[i].isPrimaryKey() || fetch.requiresFetch(fmds[i])
!= FetchConfiguration.FETCH_NONE)
idxs.set(i);
}
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
/**
* Create a bit set for the fields in the current fetch groups.
*/
private static void setFetchGroupFields(Broker broker,
StateManagerImpl sm, BitSet idxs) {
FetchConfiguration fetch = broker.getFetchConfiguration();
FieldMetaData[] fmds = sm.getMetaData().getFields();
for (int i = 0; i < fmds.length; i++) {
if (fmds[i].isPrimaryKey() || fetch.requiresFetch(fmds[i])
!= FetchConfiguration.FETCH_NONE)
idxs.set(i);
}
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
/**
* Create a bit set for the fields in the current fetch groups.
*/
private static void setFetchGroupFields(Broker broker,
StateManagerImpl sm, BitSet idxs) {
FetchConfiguration fetch = broker.getFetchConfiguration();
FieldMetaData[] fmds = sm.getMetaData().getFields();
for (int i = 0; i < fmds.length; i++) {
if (fmds[i].isPrimaryKey() || fetch.requiresFetch(fmds[i])
!= FetchConfiguration.FETCH_NONE)
idxs.set(i);
}
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel
/**
* Create a bit set for the fields in the current fetch groups.
*/
private static void setFetchGroupFields(Broker broker,
StateManagerImpl sm, BitSet idxs) {
FetchConfiguration fetch = broker.getFetchConfiguration();
FieldMetaData[] fmds = sm.getMetaData().getFields();
for (int i = 0; i < fmds.length; i++) {
if (fmds[i].isPrimaryKey() || fetch.requiresFetch(fmds[i])
!= FetchConfiguration.FETCH_NONE)
idxs.set(i);
}
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
/**
* Constructor.
*
* @param broker the owning broker
* @param type the candidate class
* @param subs whether subclasses are included in the extent
*/
ExtentImpl(Broker broker, Class<T> type, boolean subs,
FetchConfiguration fetch) {
_broker = broker;
_type = type;
_subs = subs;
if (fetch != null)
_fc = fetch;
else
_fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
_ignore = broker.getIgnoreChanges();
if (broker.getMultithreaded())
_lock = new ReentrantLock();
else
_lock = null;
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel
/**
* Constructor.
*
* @param broker the owning broker
* @param type the candidate class
* @param subs whether subclasses are included in the extent
*/
ExtentImpl(Broker broker, Class<T> type, boolean subs,
FetchConfiguration fetch) {
_broker = broker;
_type = type;
_subs = subs;
if (fetch != null)
_fc = fetch;
else
_fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
_ignore = broker.getIgnoreChanges();
if (broker.getMultithreaded())
_lock = new ReentrantLock();
else
_lock = null;
}
代码示例来源:origin: org.apache.openjpa/openjpa-kernel
/**
* Constructor.
*
* @param broker the owning broker
* @param type the candidate class
* @param subs whether subclasses are included in the extent
*/
ExtentImpl(Broker broker, Class<T> type, boolean subs,
FetchConfiguration fetch) {
_broker = broker;
_type = type;
_subs = subs;
if (fetch != null)
_fc = fetch;
else
_fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
_ignore = broker.getIgnoreChanges();
if (broker.getMultithreaded())
_lock = new ReentrantLock();
else
_lock = null;
}
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
/**
* Constructor.
*
* @param broker the owning broker
* @param type the candidate class
* @param subs whether subclasses are included in the extent
*/
ExtentImpl(Broker broker, Class type, boolean subs,
FetchConfiguration fetch) {
_broker = broker;
_type = type;
_subs = subs;
if (fetch != null)
_fc = fetch;
else
_fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
_ignore = broker.getIgnoreChanges();
if (broker.getMultithreaded())
_lock = new ReentrantLock();
else
_lock = null;
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
/**
* Constructor.
*
* @param broker the owning broker
* @param type the candidate class
* @param subs whether subclasses are included in the extent
*/
ExtentImpl(Broker broker, Class<T> type, boolean subs,
FetchConfiguration fetch) {
_broker = broker;
_type = type;
_subs = subs;
if (fetch != null)
_fc = fetch;
else
_fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
_ignore = broker.getIgnoreChanges();
if (broker.getMultithreaded())
_lock = new ReentrantLock();
else
_lock = null;
}
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
/**
* Construct a query managed by the given broker.
*/
public QueryImpl(Broker broker, String language, StoreQuery storeQuery) {
_broker = (BrokerImpl) broker;
_language = language;
_storeQuery = storeQuery;
_fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
_log = broker.getConfiguration().getLog(OpenJPAConfiguration.LOG_QUERY);
_storeQuery.setContext(this);
if (_broker != null && _broker.getMultithreaded())
_lock = new ReentrantLock();
else
_lock = null;
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel
/**
* Construct a query managed by the given broker.
*/
public QueryImpl(Broker broker, String language, StoreQuery storeQuery) {
_broker = (BrokerImpl) broker;
_language = language;
_storeQuery = storeQuery;
_fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
_log = broker.getConfiguration().getLog(OpenJPAConfiguration.LOG_QUERY);
_storeQuery.setContext(this);
_printParameters = _broker.getPrintParameters();
if (_broker != null && _broker.getMultithreaded())
_lock = new ReentrantLock();
}
代码示例来源:origin: org.apache.openjpa/openjpa-kernel
/**
* Construct a query managed by the given broker.
*/
public QueryImpl(Broker broker, String language, StoreQuery storeQuery) {
_broker = (BrokerImpl) broker;
_language = language;
_storeQuery = storeQuery;
_fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
_log = broker.getConfiguration().getLog(OpenJPAConfiguration.LOG_QUERY);
_storeQuery.setContext(this);
_printParameters = _broker.getPrintParameters();
if (_broker != null && _broker.getMultithreaded())
_lock = new ReentrantLock();
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
/**
* Construct a query managed by the given broker.
*/
public QueryImpl(Broker broker, String language, StoreQuery storeQuery) {
_broker = (BrokerImpl) broker;
_language = language;
_storeQuery = storeQuery;
_fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
_log = broker.getConfiguration().getLog(OpenJPAConfiguration.LOG_QUERY);
_storeQuery.setContext(this);
_printParameters = _broker.getPrintParameters();
if (_broker != null && _broker.getMultithreaded())
_lock = new ReentrantLock();
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
/**
* Construct a query managed by the given broker.
*/
public QueryImpl(Broker broker, String language, StoreQuery storeQuery) {
_broker = (BrokerImpl) broker;
_language = language;
_storeQuery = storeQuery;
_fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
_log = broker.getConfiguration().getLog(OpenJPAConfiguration.LOG_QUERY);
_storeQuery.setContext(this);
_printParameters = _broker.getPrintParameters();
if (_broker != null && _broker.getMultithreaded())
_lock = new ReentrantLock();
}
内容来源于网络,如有侵权,请联系作者删除!