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 booleanexists(Named named)default ValidationExceptiongetErrorMessage(Named named, boolean checkForExists)default StringgetName()default ValidationExceptiongetUnexpectedErrorMessage(Named named, Exception cause)default voidvalidate(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:ValidationCapabilityValidate and addValidationException's to given consumer.- Specified by:
validatein interfaceValidationCapability- Parameters:
context-errorConsumer-- Throws:
ValidationException
-
exists
boolean exists(Named named)
- Parameters:
named-- Returns:
true, if the object exists,falseotherwise.- Throws:
ValidationException- - on specific errors likeDatabaseExceptionon database-errors wrapping aSQLExceptionor PersistenceExceptionUnsupportedOperationException- - if testing of givenNamedObjectis 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:
getNamein interfaceValidationCapability- Returns:
- a name of this
ValidationCapability
-
-