类 ScanEntityAndSqlResource


  • public class ScanEntityAndSqlResource
    extends Object
    版本:
    v1.0,Date:2012-6-10
    作者:
    zhongxuchen
    • 字段详细资料

      • logger

        protected static final org.slf4j.Logger logger
        定义日志
    • 构造器详细资料

      • ScanEntityAndSqlResource

        public ScanEntityAndSqlResource()
    • 方法详细资料

      • 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