本文整理了Java中com.arjuna.ats.txoj.Lock.get_uid()
方法的一些代码示例,展示了Lock.get_uid()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Lock.get_uid()
方法的具体详情如下:
包路径:com.arjuna.ats.txoj.Lock
类名称:Lock
方法名:get_uid
暂无
代码示例来源:origin: org.jboss.jbossts.arjunacore/arjunacore
/**
* Overrides Object.toString()
*/
public String toString ()
{
StringWriter strm = new StringWriter();
strm.write("Lock object : \n");
strm.write("\tunique id is : " + get_uid() + "\n");
strm.write("\tcurrent_status : "
+ LockStatus.printString(currentStatus));
strm.write("\n\tMode : " + LockMode.stringForm(lMode));
strm.write("\n\tOwner List : \n");
owners.print(new PrintWriter(strm));
return strm.toString();
}
代码示例来源:origin: org.jboss.jbossts/jbossjta
/**
* Overrides Object.toString()
*/
public String toString ()
{
StringWriter strm = new StringWriter();
strm.write("Lock object : \n");
strm.write("\tunique id is : " + get_uid() + "\n");
strm.write("\tcurrent_status : "
+ LockStatus.printString(currentStatus));
strm.write("\n\tMode : " + LockMode.stringForm(lMode));
strm.write("\n\tOwner List : \n");
owners.print(new PrintWriter(strm));
return strm.toString();
}
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
/**
* Overrides Object.toString()
*/
public String toString ()
{
StringWriter strm = new StringWriter();
strm.write("Lock object : \n");
strm.write("\tunique id is : " + get_uid() + "\n");
strm.write("\tcurrent_status : "
+ LockStatus.printString(currentStatus));
strm.write("\n\tMode : " + LockMode.stringForm(lMode));
strm.write("\n\tOwner List : \n");
owners.print(new PrintWriter(strm));
return strm.toString();
}
代码示例来源:origin: org.jboss.jbossts.arjunacore/txoj
/**
* Overrides Object.toString()
*/
public String toString ()
{
StringWriter strm = new StringWriter();
strm.write("Lock object : \n");
strm.write("\tunique id is : " + get_uid() + "\n");
strm.write("\tcurrent_status : "
+ LockStatus.printString(currentStatus));
strm.write("\n\tMode : " + LockMode.stringForm(lMode));
strm.write("\n\tOwner List : \n");
owners.print(new PrintWriter(strm));
return strm.toString();
}
代码示例来源:origin: jboss.jbossts/jbossjts
/**
* Overrides Object.toString()
*/
public String toString ()
{
StringWriter strm = new StringWriter();
strm.write("Lock object : \n");
strm.write("\tunique id is : " + get_uid() + "\n");
strm.write("\tcurrent_status : "
+ LockStatus.printString(currentStatus));
strm.write("\n\tMode : " + LockMode.stringForm(lMode));
strm.write("\n\tOwner List : \n");
owners.print(new PrintWriter(strm));
return strm.toString();
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
/**
* Overrides Object.toString()
*/
public String toString ()
{
StringWriter strm = new StringWriter();
strm.write("Lock object : \n");
strm.write("\ttype : "+type()+ "\n");
strm.write("\tunique id is : " + get_uid() + "\n");
strm.write("\tcurrent_status : "
+ LockStatus.printString(currentStatus));
strm.write("\n\tMode : " + LockMode.stringForm(lMode));
strm.write("\n\tOwner List : \n");
owners.print(new PrintWriter(strm));
return strm.toString();
}
代码示例来源:origin: jbosstm/narayana
/**
* Overrides Object.toString()
*/
public String toString ()
{
StringWriter strm = new StringWriter();
strm.write("Lock object : \n");
strm.write("\ttype : "+type()+ "\n");
strm.write("\tunique id is : " + get_uid() + "\n");
strm.write("\tcurrent_status : "
+ LockStatus.printString(currentStatus));
strm.write("\n\tMode : " + LockMode.stringForm(lMode));
strm.write("\n\tOwner List : \n");
owners.print(new PrintWriter(strm));
return strm.toString();
}
代码示例来源:origin: jbosstm/narayana
/**
* Overrides Object.toString()
*/
public String toString ()
{
StringWriter strm = new StringWriter();
strm.write("Lock object : \n");
strm.write("\ttype : "+type()+ "\n");
strm.write("\tunique id is : " + get_uid() + "\n");
strm.write("\tcurrent_status : "
+ LockStatus.printString(currentStatus));
strm.write("\n\tMode : " + LockMode.stringForm(lMode));
strm.write("\n\tOwner List : \n");
owners.print(new PrintWriter(strm));
return strm.toString();
}
代码示例来源:origin: org.jboss.narayana.arjunacore/arjunacore
/**
* Overrides Object.toString()
*/
public String toString ()
{
StringWriter strm = new StringWriter();
strm.write("Lock object : \n");
strm.write("\ttype : "+type()+ "\n");
strm.write("\tunique id is : " + get_uid() + "\n");
strm.write("\tcurrent_status : "
+ LockStatus.printString(currentStatus));
strm.write("\n\tMode : " + LockMode.stringForm(lMode));
strm.write("\n\tOwner List : \n");
owners.print(new PrintWriter(strm));
return strm.toString();
}
代码示例来源:origin: jbosstm/narayana
/**
* Overrides Object.toString()
*/
public String toString ()
{
StringWriter strm = new StringWriter();
strm.write("Lock object : \n");
strm.write("\ttype : "+type()+ "\n");
strm.write("\tunique id is : " + get_uid() + "\n");
strm.write("\tcurrent_status : "
+ LockStatus.printString(currentStatus));
strm.write("\n\tMode : " + LockMode.stringForm(lMode));
strm.write("\n\tOwner List : \n");
owners.print(new PrintWriter(strm));
return strm.toString();
}
代码示例来源:origin: org.jboss.jbossts.arjunacore/arjunacore
protected final int lockConflict (Lock otherLock)
{
if (txojLogger.logger.isTraceEnabled()) {
txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")");
}
boolean matching = false;
Lock heldLock = null;
LockListIterator next = new LockListIterator(locksHeld);
while ((heldLock = next.iterate()) != null)
{
if (heldLock.conflictsWith(otherLock))
{
if (LockManager.nestedLocking)
{
if (!isAncestorOf(heldLock)) /* not quite Moss's rules */
return ConflictType.CONFLICT;
}
else
return ConflictType.CONFLICT;
}
else
{
if (heldLock.equals(otherLock))
matching = true;
}
}
return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE);
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
protected final int lockConflict (Lock otherLock)
{
if (txojLogger.logger.isTraceEnabled()) {
txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")");
}
boolean matching = false;
Lock heldLock = null;
LockListIterator next = new LockListIterator(locksHeld);
while ((heldLock = next.iterate()) != null)
{
if (heldLock.conflictsWith(otherLock))
{
if (LockManager.nestedLocking)
{
if (!isAncestorOf(heldLock)) /* not quite Moss's rules */
return ConflictType.CONFLICT;
}
else
return ConflictType.CONFLICT;
}
else
{
if (heldLock.equals(otherLock))
matching = true;
}
}
return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE);
}
代码示例来源:origin: org.jboss.narayana.arjunacore/arjunacore
protected final int lockConflict (Lock otherLock)
{
if (txojLogger.logger.isTraceEnabled()) {
txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")");
}
boolean matching = false;
Lock heldLock = null;
LockListIterator next = new LockListIterator(locksHeld);
while ((heldLock = next.iterate()) != null)
{
if (heldLock.conflictsWith(otherLock))
{
if (LockManager.nestedLocking)
{
if (!isAncestorOf(heldLock)) /* not quite Moss's rules */
return ConflictType.CONFLICT;
}
else
return ConflictType.CONFLICT;
}
else
{
if (heldLock.equals(otherLock))
matching = true;
}
}
return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE);
}
代码示例来源:origin: jbosstm/narayana
protected final int lockConflict (Lock otherLock)
{
if (txojLogger.logger.isTraceEnabled()) {
txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")");
}
boolean matching = false;
Lock heldLock = null;
LockListIterator next = new LockListIterator(locksHeld);
while ((heldLock = next.iterate()) != null)
{
if (heldLock.conflictsWith(otherLock))
{
if (LockManager.nestedLocking)
{
if (!isAncestorOf(heldLock)) /* not quite Moss's rules */
return ConflictType.CONFLICT;
}
else
return ConflictType.CONFLICT;
}
else
{
if (heldLock.equals(otherLock))
matching = true;
}
}
return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE);
}
代码示例来源:origin: org.jboss.jbossts.arjunacore/txoj
protected final int lockConflict (Lock otherLock)
{
if (txojLogger.logger.isTraceEnabled()) {
txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")");
}
boolean matching = false;
Lock heldLock = null;
LockListIterator next = new LockListIterator(locksHeld);
while ((heldLock = next.iterate()) != null)
{
if (heldLock.conflictsWith(otherLock))
{
if (LockManager.nestedLocking)
{
if (!isAncestorOf(heldLock)) /* not quite Moss's rules */
return ConflictType.CONFLICT;
}
else
return ConflictType.CONFLICT;
}
else
{
if (heldLock.equals(otherLock))
matching = true;
}
}
return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE);
}
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
protected final int lockConflict (Lock otherLock)
{
if (txojLogger.logger.isTraceEnabled()) {
txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")");
}
boolean matching = false;
Lock heldLock = null;
LockListIterator next = new LockListIterator(locksHeld);
while ((heldLock = next.iterate()) != null)
{
if (heldLock.conflictsWith(otherLock))
{
if (LockManager.nestedLocking)
{
if (!isAncestorOf(heldLock)) /* not quite Moss's rules */
return ConflictType.CONFLICT;
}
else
return ConflictType.CONFLICT;
}
else
{
if (heldLock.equals(otherLock))
matching = true;
}
}
return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE);
}
代码示例来源:origin: jbosstm/narayana
protected final int lockConflict (Lock otherLock)
{
if (txojLogger.logger.isTraceEnabled()) {
txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")");
}
boolean matching = false;
Lock heldLock = null;
LockListIterator next = new LockListIterator(locksHeld);
while ((heldLock = next.iterate()) != null)
{
if (heldLock.conflictsWith(otherLock))
{
if (LockManager.nestedLocking)
{
if (!isAncestorOf(heldLock)) /* not quite Moss's rules */
return ConflictType.CONFLICT;
}
else
return ConflictType.CONFLICT;
}
else
{
if (heldLock.equals(otherLock))
matching = true;
}
}
return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE);
}
代码示例来源:origin: jbosstm/narayana
protected final int lockConflict (Lock otherLock)
{
if (txojLogger.logger.isTraceEnabled()) {
txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")");
}
boolean matching = false;
Lock heldLock = null;
LockListIterator next = new LockListIterator(locksHeld);
while ((heldLock = next.iterate()) != null)
{
if (heldLock.conflictsWith(otherLock))
{
if (LockManager.nestedLocking)
{
if (!isAncestorOf(heldLock)) /* not quite Moss's rules */
return ConflictType.CONFLICT;
}
else
return ConflictType.CONFLICT;
}
else
{
if (heldLock.equals(otherLock))
matching = true;
}
}
return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE);
}
代码示例来源:origin: org.jboss.jbossts/jbossjta
private final int lockConflict (Lock otherLock)
{
if (txojLogger.logger.isTraceEnabled()) {
txojLogger.logger.trace("LockManager::lockConflict(" + otherLock.get_uid() + ")");
}
boolean matching = false;
Lock heldLock = null;
LockListIterator next = new LockListIterator(locksHeld);
while ((heldLock = next.iterate()) != null)
{
if (heldLock.conflictsWith(otherLock))
{
if (LockManager.nestedLocking)
{
if (!isAncestorOf(heldLock)) /* not quite Moss's rules */
{
return ConflictType.CONFLICT;
}
}
else
return ConflictType.CONFLICT;
}
else
{
if (heldLock.equals(otherLock))
matching = true;
}
}
return (matching ? ConflictType.PRESENT : ConflictType.COMPATIBLE);
}
代码示例来源:origin: jboss.jbossts/jbossjts
VisibilityLevel.VIS_PRIVATE,
FacilityCode.FAC_CONCURRENCY_CONTROL,
"LockManager::lockConflict(" + otherLock.get_uid() + ")");
内容来源于网络,如有侵权,请联系作者删除!