|
Préférences
Moteurs de recherche
|
||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.sql.rowset.spi
|
Constructor Summary | |
---|---|
SyncProviderException()
Creates a new SyncProviderException object without a detail message. |
|
SyncProviderException(String msg)
Constructs a SyncProviderException object with the specified
detail message. |
|
SyncProviderException(SyncResolver syncResolver)
Constructs a SyncProviderException object with the specified
SyncResolver instance. |
Method Summary | |
---|---|
SyncResolver |
getSyncResolver()
Retrieves the SyncResolver object that has been set for
this SyncProviderException object, or
if none has been set, an instance of the default SyncResolver
implementation included in the reference implementation. |
void |
setSyncResolver(SyncResolver syncResolver)
Sets the SyncResolver object for this
SyncProviderException object to the one supplied. |
Methods inherited from class java.sql.SQLException |
---|
getErrorCode, getNextException, getSQLState, iterator, setNextException |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SyncProviderException()
SyncProviderException
object without a detail message.
public SyncProviderException(String msg)
SyncProviderException
object with the specified
detail message.
msg
- the detail messagepublic SyncProviderException(SyncResolver syncResolver)
SyncProviderException
object with the specified
SyncResolver
instance.
syncResolver
- the SyncResolver
instance used to
to process the synchronization conflicts
IllegalArgumentException
- if the SyncResolver
object
is null
.Method Detail |
---|
public SyncResolver getSyncResolver()
SyncResolver
object that has been set for
this SyncProviderException
object, or
if none has been set, an instance of the default SyncResolver
implementation included in the reference implementation.
If a SyncProviderException
object is thrown, an application
may use this method to generate a SyncResolver
object
with which to resolve the conflict or conflicts that caused the
exception to be thrown.
SyncResolver
object set for this
SyncProviderException
object or, if none has
been set, an instance of the default SyncResolver
implementation. In addition, the default SyncResolver
implementation is also returned if the SyncResolver()
or
SyncResolver(String)
constructors are used to instantiate
the SyncResolver
instance.public void setSyncResolver(SyncResolver syncResolver)
SyncResolver
object for this
SyncProviderException
object to the one supplied.
If the argument supplied is null
, a call to the method
getSyncResolver
will return the default reference
implementation of the SyncResolver
interface.
syncResolver
- the SyncResolver
object to be set;
cannot be null
IllegalArgumentException
- if the SyncResolver
object
is null
.getSyncResolver()