use of org.jkiss.dbeaver.ext.oracle.model.lock.OracleLock in project dbeaver by dbeaver.
the class OracleLockEditor method createLockViewer.
@Override
protected LockManagerViewer createLockViewer(DBCExecutionContext executionContext, Composite parent) {
DBAServerLockManager<DBAServerLock, DBAServerLockItem> lockManager = (DBAServerLockManager) new OracleLockManager((OracleDataSource) executionContext.getDataSource());
return new LockManagerViewer(this, parent, lockManager) {
@Override
protected void contributeToToolbar(DBAServerLockManager<DBAServerLock, DBAServerLockItem> sessionManager, IContributionManager contributionManager) {
contributionManager.add(new Separator());
}
@Override
protected void onLockSelect(final DBAServerLock lock) {
super.onLockSelect(lock);
if (lock != null) {
final OracleLock pLock = (OracleLock) lock;
super.refreshDetail(new HashMap<String, Object>() {
{
put(sidHold, pLock.getHold_sid());
put(sidWait, pLock.getWait_sid());
}
});
}
}
};
}
use of org.jkiss.dbeaver.ext.oracle.model.lock.OracleLock in project dbeaver by serge-rider.
the class OracleLockEditor method createLockViewer.
@Override
protected LockManagerViewer createLockViewer(DBCExecutionContext executionContext, Composite parent) {
DBAServerLockManager<DBAServerLock, DBAServerLockItem> lockManager = (DBAServerLockManager) new OracleLockManager((OracleDataSource) executionContext.getDataSource());
return new LockManagerViewer(this, parent, lockManager) {
@Override
protected void contributeToToolbar(DBAServerLockManager<DBAServerLock, DBAServerLockItem> sessionManager, IContributionManager contributionManager) {
contributionManager.add(new Separator());
}
@Override
protected void onLockSelect(final DBAServerLock lock) {
super.onLockSelect(lock);
if (lock != null) {
final OracleLock pLock = (OracleLock) lock;
super.refreshDetail(new HashMap<String, Object>() {
{
put(OracleLockManager.sidHold, pLock.getHold_sid());
put(OracleLockManager.sidWait, pLock.getWait_sid());
}
});
}
}
};
}
use of org.jkiss.dbeaver.ext.oracle.model.lock.OracleLock in project dbeaver by dbeaver.
the class OracleLockEditor method createLockViewer.
@Override
protected LockManagerViewer createLockViewer(DBCExecutionContext executionContext, Composite parent) {
DBAServerLockManager<DBAServerLock, DBAServerLockItem> lockManager = (DBAServerLockManager) new OracleLockManager((OracleDataSource) executionContext.getDataSource());
return new LockManagerViewer(this, parent, lockManager) {
@Override
protected void contributeToToolbar(DBAServerLockManager<DBAServerLock, DBAServerLockItem> sessionManager, IContributionManager contributionManager) {
contributionManager.add(new Separator());
}
@Override
protected void onLockSelect(final DBAServerLock lock) {
super.onLockSelect(lock);
if (lock != null) {
final OracleLock pLock = (OracleLock) lock;
super.refreshDetail(new HashMap<String, Object>() {
{
put(OracleLockManager.sidHold, pLock.getHold_sid());
put(OracleLockManager.sidWait, pLock.getWait_sid());
}
});
}
}
};
}
Aggregations