public static < T > DatabaseTableConfig < T > fromClass ( DatabaseType databaseType , Class < T > clazz ) throws SQLException { String tableName = extractTableName ( databaseType , clazz ) ; if ( databaseType . isEntityNamesMustBeUpCase ( ) ) { tableName = databaseType . upCaseEntityName ( tableName ) ; } return new DatabaseTableConfig < T > ( databaseType , clazz , tableName , extractFieldTypes ( databaseType , clazz , tableName ) ) ; }
Extract the DatabaseTableConfig for a particular class by looking for class and field annotations . This is used by internal classes to configure a class .