下面列出了怎么用org.omg.CORBA.TRANSIENT的API类实例代码及写法,或者点击链接到github查看源代码。
public TRANSIENT poaDiscarding( CompletionStatus cs, Throwable t ) {
TRANSIENT exc = new TRANSIENT( POA_DISCARDING, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.FINE )) {
Object[] parameters = null ;
doLog( Level.FINE, "POA.poaDiscarding",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public TRANSIENT poaRequestDiscard( CompletionStatus cs, Throwable t ) {
TRANSIENT exc = new TRANSIENT( POA_REQUEST_DISCARD, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "OMG.poaRequestDiscard",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
public TRANSIENT noUsableProfile3( CompletionStatus cs, Throwable t ) {
TRANSIENT exc = new TRANSIENT( NO_USABLE_PROFILE_3, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "OMG.noUsableProfile3",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
public TRANSIENT requestCancelled( CompletionStatus cs, Throwable t ) {
TRANSIENT exc = new TRANSIENT( REQUEST_CANCELLED, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "OMG.requestCancelled",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
public TRANSIENT poaDestroyed( CompletionStatus cs, Throwable t ) {
TRANSIENT exc = new TRANSIENT( POA_DESTROYED, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "OMG.poaDestroyed",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
public TRANSIENT poaDiscarding( CompletionStatus cs, Throwable t ) {
TRANSIENT exc = new TRANSIENT( POA_DISCARDING, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.FINE )) {
Object[] parameters = null ;
doLog( Level.FINE, "POA.poaDiscarding",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public TRANSIENT poaRequestDiscard( CompletionStatus cs, Throwable t ) {
TRANSIENT exc = new TRANSIENT( POA_REQUEST_DISCARD, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "OMG.poaRequestDiscard",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
public TRANSIENT noUsableProfile3( CompletionStatus cs, Throwable t ) {
TRANSIENT exc = new TRANSIENT( NO_USABLE_PROFILE_3, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "OMG.noUsableProfile3",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
public TRANSIENT requestCancelled( CompletionStatus cs, Throwable t ) {
TRANSIENT exc = new TRANSIENT( REQUEST_CANCELLED, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "OMG.requestCancelled",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
public TRANSIENT poaDestroyed( CompletionStatus cs, Throwable t ) {
TRANSIENT exc = new TRANSIENT( POA_DESTROYED, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "OMG.poaDestroyed",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
public TRANSIENT poaDiscarding( CompletionStatus cs ) {
return poaDiscarding( cs, null ) ;
}
public TRANSIENT poaDiscarding( Throwable t ) {
return poaDiscarding( CompletionStatus.COMPLETED_NO, t ) ;
}
public TRANSIENT poaDiscarding( ) {
return poaDiscarding( CompletionStatus.COMPLETED_NO, null ) ;
}
public TRANSIENT poaRequestDiscard( CompletionStatus cs ) {
return poaRequestDiscard( cs, null ) ;
}
public TRANSIENT poaRequestDiscard( Throwable t ) {
return poaRequestDiscard( CompletionStatus.COMPLETED_NO, t ) ;
}
public TRANSIENT poaRequestDiscard( ) {
return poaRequestDiscard( CompletionStatus.COMPLETED_NO, null ) ;
}
public TRANSIENT noUsableProfile3( CompletionStatus cs ) {
return noUsableProfile3( cs, null ) ;
}
public TRANSIENT noUsableProfile3( Throwable t ) {
return noUsableProfile3( CompletionStatus.COMPLETED_NO, t ) ;
}
public TRANSIENT noUsableProfile3( ) {
return noUsableProfile3( CompletionStatus.COMPLETED_NO, null ) ;
}
public TRANSIENT requestCancelled( CompletionStatus cs ) {
return requestCancelled( cs, null ) ;
}
public TRANSIENT requestCancelled( Throwable t ) {
return requestCancelled( CompletionStatus.COMPLETED_NO, t ) ;
}
public TRANSIENT requestCancelled( ) {
return requestCancelled( CompletionStatus.COMPLETED_NO, null ) ;
}
public TRANSIENT poaDestroyed( CompletionStatus cs ) {
return poaDestroyed( cs, null ) ;
}
public TRANSIENT poaDestroyed( Throwable t ) {
return poaDestroyed( CompletionStatus.COMPLETED_NO, t ) ;
}
public TRANSIENT poaDestroyed( ) {
return poaDestroyed( CompletionStatus.COMPLETED_NO, null ) ;
}
public TRANSIENT poaDiscarding( CompletionStatus cs ) {
return poaDiscarding( cs, null ) ;
}
public TRANSIENT poaDiscarding( Throwable t ) {
return poaDiscarding( CompletionStatus.COMPLETED_NO, t ) ;
}
public TRANSIENT poaDiscarding( ) {
return poaDiscarding( CompletionStatus.COMPLETED_NO, null ) ;
}
public TRANSIENT poaRequestDiscard( CompletionStatus cs ) {
return poaRequestDiscard( cs, null ) ;
}
public TRANSIENT poaRequestDiscard( Throwable t ) {
return poaRequestDiscard( CompletionStatus.COMPLETED_NO, t ) ;
}