Module net.sf.jsqlparser
Interface DatabaseMetaDataValidation
-
- All Superinterfaces:
ValidationCapability
- All Known Implementing Classes:
AbstractDatabaseMetaDataCapability
,JdbcDatabaseMetaDataCapability
public interface DatabaseMetaDataValidation extends ValidationCapability
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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 addValidationException
's to given consumer.-
Methods inherited from interface net.sf.jsqlparser.util.validation.ValidationCapability
toError, toError
-
-
-
-
Field Detail
-
NAME
static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
default void validate(ValidationContext context, Consumer<ValidationException> errorConsumer)
Description copied from interface:ValidationCapability
Validate and addValidationException
's to given consumer.- Specified by:
validate
in interfaceValidationCapability
- Parameters:
context
-errorConsumer
-- Throws:
ValidationException
-
exists
boolean exists(Named named)
- 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
default ValidationException getErrorMessage(Named named, boolean checkForExists)
- Parameters:
named
-checkForExists
-- Returns:
- a new
ValidationException
-
getUnexpectedErrorMessage
default ValidationException getUnexpectedErrorMessage(Named named, Exception cause)
- Parameters:
named
-cause
-- Returns:
- a new
ValidationException
-
getName
default String getName()
- Specified by:
getName
in interfaceValidationCapability
- Returns:
- a name of this
ValidationCapability
-
-