public class KittyAnnoTableConfigurationUtil
extends java.lang.Object
KittyTableConfiguration from Class extends KittyModel Model
annotated with KITTY_TABLE
| Constructor and Description |
|---|
KittyAnnoTableConfigurationUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends KittyModel> |
generateTableConfiguration(java.lang.Class<T> modelClass,
java.lang.String schemaName)
Returns instance of
KittyTableConfiguration from Class extends KittyModel Model
annotated with KITTY_TABLE
Returns Null if provided class not annotated with KITTY_TABLE annotation May throw KittyRuntimeException if more than one PK declaration found or no columns defined in modelClass
Also may throw KittyRuntimeException with reasons related with KittyAnnoColumnConfigurationUtil.generateAMColumnConfiguration(Field, Class, String, String) |
public static final <T extends KittyModel> KittyTableConfiguration generateTableConfiguration(java.lang.Class<T> modelClass, java.lang.String schemaName) throws java.lang.NoSuchMethodException
KittyTableConfiguration from Class extends KittyModel Model
annotated with KITTY_TABLE
KittyRuntimeException if more than one PK declaration found or no columns defined in modelClass
KittyRuntimeException with reasons related with KittyAnnoColumnConfigurationUtil.generateAMColumnConfiguration(Field, Class, String, String)T - schemaName - databaseClass name for this modelClassmodelClass - modelClass classjava.lang.NoSuchMethodException - - may be thrown on KittyAnnoColumnConfigurationUtil.generateAMColumnConfiguration(Field, Class, String, String)