Module net.sf.jsqlparser
Interface DatabaseMetaDataValidation
-
- All Superinterfaces:
ValidationCapability
- All Known Implementing Classes:
AbstractDatabaseMetaDataCapability
,JdbcDatabaseMetaDataCapability
public interface DatabaseMetaDataValidation extends ValidationCapability
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
-
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 java.lang.String
getName()
default ValidationException
getUnexpectedErrorMessage(Named named, java.lang.Exception cause)
default void
validate(ValidationContext context, java.util.function.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 java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
default void validate(ValidationContext context, java.util.function.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 PersistenceExceptionjava.lang.UnsupportedOperationException
- - 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, java.lang.Exception cause)
- Parameters:
named
-cause
-- Returns:
- a new
ValidationException
-
getName
default java.lang.String getName()
- Specified by:
getName
in interfaceValidationCapability
- Returns:
- a name of this
ValidationCapability
-
-