r1362 - topia/trunk/topia-persistence/src/main/java/org/codelutin/topia/generator
Author: tchemit Date: 2009-02-12 00:15:30 +0000 (Thu, 12 Feb 2009) New Revision: 1362 Modified: topia/trunk/topia-persistence/src/main/java/org/codelutin/topia/generator/DAOHelperGenerator.java Log: reformat + javadoc Modified: topia/trunk/topia-persistence/src/main/java/org/codelutin/topia/generator/DAOHelperGenerator.java =================================================================== --- topia/trunk/topia-persistence/src/main/java/org/codelutin/topia/generator/DAOHelperGenerator.java 2009-02-12 00:03:21 UTC (rev 1361) +++ topia/trunk/topia-persistence/src/main/java/org/codelutin/topia/generator/DAOHelperGenerator.java 2009-02-12 00:15:30 UTC (rev 1362) @@ -99,7 +99,8 @@ }*/ List<ObjectModelClass> classes = TopiaGeneratorUtil.getEntityClasses(model,true); /*{ /** - *) + * no instance for this helper + *) protected <%=daoClazzName%>() { } }*/ @@ -109,8 +110,8 @@ String clazzName = clazz.getName(); /*{ public static <%=clazzFQN%>DAO get<%=clazzName%>DAO(TopiaContext context) throws TopiaException { - TopiaContextImplementor ci = (TopiaContextImplementor)context; - <%=clazzFQN%>DAO result = (<%=clazzFQN%>DAO)ci.getDAO(<%=clazzFQN%>.class); + TopiaContextImplementor ci = (TopiaContextImplementor) context; + <%=clazzFQN%>DAO result = (<%=clazzFQN%>DAO) ci.getDAO(<%=clazzFQN%>.class); return result; } }*/ @@ -118,7 +119,7 @@ /*{ @SuppressWarnings({"unchecked"}) public static <T extends TopiaEntity, D extends TopiaDAO<? super T>> D getDAO(TopiaContext context, Class<T> klass) throws TopiaException { - TopiaContextImplementor ci = (TopiaContextImplementor)context; + TopiaContextImplementor ci = (TopiaContextImplementor) context; <%=entityEnumName%> constant = <%=entityEnumName%>.valueOf(klass); D dao = (D) ci.getDAO(constant.getContractClass()); return dao; @@ -173,7 +174,7 @@ } /* - * Enumeration of all types of entitties dealed by this helper. + * Enumeration of all types of entities managed by this helper. *) public enum <%=entityEnumName%> { }*/ @@ -214,7 +215,7 @@ try { implementationClass = (Class<? extends TopiaEntity>) Class.forName(implementationFQN); } catch (ClassNotFoundException e) { - throw new RuntimeException("could not find class "+implementationFQN); + throw new RuntimeException("could not find class " + implementationFQN); } } return implementationClass; @@ -249,8 +250,10 @@ } else { /*{ /** - * @eprecated (prefer use {@link #getImplementationClassesAsString()} - *) + * use {@link #getImplementationClassesAsString()} + * + * @deprecated (will be removed soon). + *) public static final String entitiesList = "" + }*/
participants (1)
-
tchemit@users.labs.libre-entreprise.org