use of com.sun.jdo.spi.persistence.support.sqlstore.StateManager in project Payara by payara.
the class VersionConsistencyCacheImpl method remove.
/**
* @see VersionConsistencyCache#remove
*/
public StateManager remove(Class pcType, Object oid) {
boolean logAtFinest = logger.isLoggable(Logger.FINEST);
if (logAtFinest) {
logger.finest(I18NHelper.getMessage(messages, // NOI18N
"jdo.versionconsistencycacheimpl.remove.entering", new Object[] { pcType, oid }));
}
StateManager rc = null;
synchronized (pcTypeMap) {
VCCache oid2sm = (VCCache) pcTypeMap.get(pcType);
if (null != oid2sm) {
rc = (StateManager) oid2sm.remove(oid);
if (oid2sm.isEmpty()) {
pcTypeMap.remove(pcType);
}
}
}
if (logAtFinest) {
logger.finest(I18NHelper.getMessage(messages, // NOI18N
"jdo.versionconsistencycacheimpl.remove.returning", rc));
}
return rc;
}
Aggregations