public interface DatabaseMetaDataValidation extends ValidationCapability
Modifier and Type | Method and Description |
---|---|
boolean |
exists(Named named) |
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 add
ValidationException 's to given consumer. |
toError, toError
static final String NAME
default void validate(ValidationContext context, Consumer<ValidationException> errorConsumer)
ValidationCapability
ValidationException
's to given consumer.validate
in interface ValidationCapability
context
- errorConsumer
- ValidationException
boolean exists(Named named)
named
- true
, if the object exists, false
otherwise.ValidationException
- - on specific errors like
DatabaseException
on
database-errors wrapping a
SQLException
or
PersistenceExceptionUnsupportedOperationException
- - if testing of given
NamedObject
is not supported.default ValidationException getErrorMessage(Named named, boolean checkForExists)
named
- checkForExists
- ValidationException
default ValidationException getUnexpectedErrorMessage(Named named, Exception cause)
named
- cause
- ValidationException
default String getName()
getName
in interface ValidationCapability
ValidationCapability
Copyright © 2004–2022 JSQLParser. All rights reserved.