private String tableName(Class<?> clazz) { String tableName = clazz.getSimpleName(); if (tableNameStyle == TableNameStyle.UP) { tableName = tableName.toUpperCase(); } else if (tableNameStyle == TableNameStyle.LOWER) { tableName = tableName.toLowerCase(); } else { tableName = StringKit.firstCharToLowerCase(tableName); } return tableName; }
public Controller keepModelWithGroup(String group, Class modelClass) { String modelName = StringKit.firstCharToLowerCase(modelClass.getSimpleName()); keepModelWithGroup(group, modelClass, modelName); return this; }