Class PrimaryKeyRecognisor
- java.lang.Object
-
- nz.co.gregs.dbvolution.generation.PrimaryKeyRecognisor
-
- Direct Known Subclasses:
UIDBasedPKRecognisor
public class PrimaryKeyRecognisor extends java.lang.ObjectA Helper class to capture naming conventions of databases.While databases have a mechanism to identify Primary Keys, some don't use it.
However there is often a naming convention that makes it obvious that a column is a PK.
Extend the methods of this class to help DBvolution automatically recognize the PKs within your schema.
Support DBvolution at Patreon
- Author:
- Gregory Graham
-
-
Constructor Summary
Constructors Constructor Description PrimaryKeyRecognisor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPrimaryKeyColumn(java.lang.String tableName, java.lang.String columnName)Default implementation, returns FALSE
-
-
-
Method Detail
-
isPrimaryKeyColumn
public boolean isPrimaryKeyColumn(java.lang.String tableName, java.lang.String columnName)Default implementation, returns FALSE- Parameters:
tableName- tableNamecolumnName- columnNameSupport DBvolution at Patreon
- Returns:
- TRUE if the column is a PRimary Key, otherwise FALSE.
-
-