Interface DatabaseMetaDataValidation
- All Superinterfaces:
ValidationCapability
- All Known Implementing Classes:
AbstractDatabaseMetaDataCapability
,JdbcDatabaseMetaDataCapability
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
default ValidationException
getErrorMessage
(Named named, boolean checkForExists) default String
getName()
default ValidationException
getUnexpectedErrorMessage
(Named named, Exception cause) default void
validate
(ValidationContext context, Consumer<ValidationException> errorConsumer) Validate and addValidationException
's to given consumer.Methods inherited from interface net.sf.jsqlparser.util.validation.ValidationCapability
toError, toError
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
validate
Description copied from interface:ValidationCapability
Validate and addValidationException
's to given consumer.- Specified by:
validate
in interfaceValidationCapability
- Parameters:
context
-errorConsumer
-- Throws:
ValidationException
-
exists
- Parameters:
named
-- Returns:
true
, if the object exists,false
otherwise.- Throws:
ValidationException
- - on specific errors likeDatabaseException
on database-errors wrapping aSQLException
or PersistenceExceptionUnsupportedOperationException
- - if testing of givenNamedObject
is not supported.
-
getErrorMessage
- Parameters:
named
-checkForExists
-- Returns:
- a new
ValidationException
-
getUnexpectedErrorMessage
- Parameters:
named
-cause
-- Returns:
- a new
ValidationException
-
getName
- Specified by:
getName
in interfaceValidationCapability
- Returns:
- a name of this
ValidationCapability
-