Constructor and Description |
---|
KeylessValidator() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
findErrors(Connection connection,
KeylessDaoDescriptor daoDescriptor) |
static void |
validate(Connection connection,
KeylessDaoDescriptor daoDescriptor)
Calling this method will attempt to check to make sure that certain basics of the
KeylessDao definition correctly match the database schema. |
public static void validate(Connection connection, KeylessDaoDescriptor daoDescriptor)
KeylessDao
definition correctly match the database schema. The following will
be checked.
If a problem is found, an HrormException
will be thrown
describing the issue.
This is no substitute for testing.
connection
- A connection to the database with the schema for the passed KeylessDaoDescriptor
daoDescriptor
- The definition of the Dao
to be checkedHrormException
- if a problem is discoveredpublic static List<String> findErrors(Connection connection, KeylessDaoDescriptor daoDescriptor)
Copyright © 2019. All rights reserved.