一个数据访问层Torque3.1的生成器的源代码

源代码在线查看: multiextendobject.vm

软件大小: 241 K
上传用户: xiaochonghan
关键词: Torque 3.1 数据访问 生成器
下载地址: 免注册下载 普通下载 VIP

相关代码

				package $package;								import java.util.*;				import org.apache.torque.om.BaseObject;				import org.apache.torque.util.BasePeer;				import org.apache.torque.util.Criteria;								#if ($child.Ancestor)				  #set ($parent = $child.Ancestor)				#else				  #set ($parent = $table.JavaName)				#end								/**				#if ($addTimeStamp)				 * The skeleton for this class was autogenerated by Torque on:				 *				 * [$now]				 *				#end				 * You should add additional methods to this class to meet the				 * application requirements.  This class will only be generated as				 * long as it does not already exist in the output directory.				 */				public class $child.ClassName extends $parent				{				    public ${child.ClassName}()				    {				#set ($col = $child.Column)				#set ( $cfc=$col.JavaName )				#set ($table = $col.Table)				        set${cfc}(${table.JavaName}Peer.CLASSKEY_$child.Key.toUpperCase());				    }				}							

相关资源