Package migratedb.v1.core.internal.jdbc
Class WarningImpl
java.lang.Object
migratedb.v1.core.internal.jdbc.WarningImpl
- All Implemented Interfaces:
Warning
-
Constructor Summary
ConstructorsConstructorDescriptionWarningImpl(int code, String state, String message) An warning that occurred while executing a statement. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()getState()booleanChecks whether this warning has already been handled.voidsetHandled(boolean handled) Sets whether this warning has already been handled.
-
Constructor Details
-
WarningImpl
An warning that occurred while executing a statement.- Parameters:
code- The warning code.state- The warning state.message- The warning message.
-
-
Method Details
-
getCode
public int getCode() -
getState
-
getMessage
- Specified by:
getMessagein interfaceWarning- Returns:
- The warning message.
-
isHandled
public boolean isHandled()Description copied from interface:WarningChecks whether this warning has already been handled. -
setHandled
public void setHandled(boolean handled) Description copied from interface:WarningSets whether this warning has already been handled.- Specified by:
setHandledin interfaceWarning- Parameters:
handled-trueif this warning has already be handled orfalseif it should flow via the default warning handler.
-