类 ScanEntityAndSqlResource
- java.lang.Object
-
- org.sagacity.sqltoy.config.ScanEntityAndSqlResource
-
public class ScanEntityAndSqlResource extends Object
- 版本:
- v1.0,Date:2012-6-10
- 作者:
- zhongxuchen
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static org.slf4j.Loggerlogger定义日志
-
构造器概要
构造器 构造器 说明 ScanEntityAndSqlResource()
-
方法概要
所有方法 静态方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static voidaddEntitiesInPackage(String packageName, String packagePath, boolean recursive, Set<Class<?>> entities)已过时。static Set<Class<?>>getPackageEntities(String pack, boolean recursive, String charset)已过时。static Enumeration<URL>getResourceUrls(String resource, boolean startClasspath)static ListgetSqlResources(String resourceDir, List<String> mappingResources)static booleanisSqlToyEntity(Class entityClass)
-
-
-
方法详细资料
-
getPackageEntities
@Deprecated public static Set<Class<?>> getPackageEntities(String pack, boolean recursive, String charset)
已过时。- 参数:
pack-recursive- 是否递归往下钻取charset-- 返回:
-
addEntitiesInPackage
@Deprecated public static void addEntitiesInPackage(String packageName, String packagePath, boolean recursive, Set<Class<?>> entities)
已过时。- 参数:
packageName- 类似com.xxx.xx 格式packagePath-recursive-entities-
-
isSqlToyEntity
public static boolean isSqlToyEntity(Class entityClass)
- 参数:
entityClass-- 返回:
-
getSqlResources
public static List getSqlResources(String resourceDir, List<String> mappingResources) throws Exception
- 参数:
resourceDir-mappingResources-- 返回:
- 抛出:
Exception
-
getResourceUrls
public static Enumeration<URL> getResourceUrls(String resource, boolean startClasspath) throws Exception
- 参数:
resource-startClasspath-- 返回:
- 抛出:
Exception
-
-