head	1.4;
access;
symbols
	TIGRIS_1_1_0RC2:1.3
	TIGRIS_1_1_0RC1:1.3
	TIGRIS_1_1:1.3.0.4
	TIGRIS_1_0_8:1.3
	TIGRIS_1_0_8RC3:1.3
	TIGRIS_1_0_8RC2:1.3
	TIGRIS_1_0_8RC1:1.3
	TIGRIS_1_0_7:1.3
	TIGRIS_1_0_7RC3:1.3
	TIGRIS_1_0_7RC2:1.3
	TIGRIS_1_0_7RC1:1.3
	TIGRIS_1_0_6:1.3
	TIGRIS_1_0_6RC5:1.3
	TIGRIS_1_0_6RC4:1.3
	TIGRIS_1_0_6RC3:1.3
	TIGRIS_1_0_6RC2:1.3
	TIGRIS_1_0_6RC1:1.3
	TIGRIS_1_0_5:1.3
	TIGRIS_1_0_5RC6:1.3
	TIGRIS_1_0_5RC5:1.3
	TIGRIS_1_0_5RC4:1.3
	TIGRIS_1_0_5RC3:1.3
	TIGRIS_1_0_5RC2:1.3
	TIGRIS_1_0_5RC1:1.3
	TIGRIS_1_0_4:1.3
	TIGRIS_1_0_3:1.3
	TIGRIS_1_0_2:1.3
	TIGRIS_1_0_1:1.3
	TIGRIS_1_0:1.3.0.6
	TIGRIS_1_0_0:1.3
	TIGRIS_1_0_0_RC1:1.3.0.2;
locks; strict;
comment	@# @;


1.4
date	2001.08.11.09.08.13;	author dlr;	state dead;
branches;
next	1.3;

1.3
date	2001.03.07.01.17.59;	author lucas;	state Exp;
branches;
next	1.2;

1.2
date	2001.02.28.00.48.58;	author lucas;	state Exp;
branches;
next	1.1;

1.1
date	2001.02.27.01.45.46;	author lucas;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Upgrading to Turbine 3.0-dev, Fulcrum 1.0, and Torque 1.0.
@
text
@#set ($basePath = $generator.OutputPath)
#foreach ($databaseModel in $appData.Databases)
    #if ($databaseModel.Package)
        #set ($package = $databaseModel.Package)   
    #else   
        #set ($package = $defaultPackage)
    #end

    #set ( $pkbase = "${package}" )
    #set ( $pkpeer = "${package}" )
    #set ( $pkmap = "${package}.map" )

    $pkbase
    $pkpeer
    $pkmap

    #set ( $path = $strings.getPackageAsPath($pkpeer) )
    $files.mkdir("$outputDirectory/$path")

    #set ( $path = $strings.getPackageAsPath($pkmap) )
    $files.mkdir("$outputDirectory/$path")

    #set ( $path = $strings.getPackageAsPath($pkbase) )
    $files.mkdir("$outputDirectory/$path")

    #foreach ($tbl in $databaseModel.Tables)
        $tbl.Name

        #set ( $firstcap=$tbl.JavaName )

        #set ( $fname = "$basePrefix${firstcap}Peer.java" )
        #set ( $path = "${strings.getPackageAsPath($pkbase)}$fname" )
        $generator.parse("om/Peer.vm",$path,"table",$tbl)

        #set ( $fname = "${firstcap}MapBuilder.java" )
        #set ( $path = "${strings.getPackageAsPath($pkmap)}$fname" )
        $generator.parse("om/MapBuilder.vm",$path,"table",$tbl)

        #set ( $fname = "${basePrefix}${firstcap}.java" )
        #set ( $path = "${strings.getPackageAsPath($pkbase)}$fname" )
        $generator.parse("om/Object.vm",$path,"table",$tbl)

        #set ( $fname = "${firstcap}.java" )
        #set ( $path = "${strings.getPackageAsPath($package)}$fname" )
        #if (!$files.file($basePath,$path).exists())
            $generator.parse("om/ExtensionObject.vm",$path,"table",$tbl)
        #end

        #set ( $fname = "${firstcap}Peer.java" )
        #set ( $path = "${strings.getPackageAsPath($pkpeer)}$fname" )
        #if (!$files.file($basePath,$path).exists())
            $generator.parse("om/ExtensionPeer.vm",$path,"table",$tbl)
        #end

        #if ($tbl.ChildrenColumn)
            #set ($col = $tbl.ChildrenColumn)
            #if ($col.isEnumeratedClasses())
                #foreach ($child in $col.Children)

#set ( $fname = "${child.ClassName}.java" )
#set ( $path = "${strings.getPackageAsPath($package)}$fname" )
#if (!$files.file($basePath,$path).exists())
    $generator.parse("om/MultiExtendObject.vm",$path,"child",$child)
#end
        
                #end
            #end
        #end
    #end
#end



@


1.3
log
@Updating for latest Torque
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@@


1.2
log
@Latest turbine templates
@
text
@d9 2
a10 2
    #set ( $pkbase = "${package}.base" )
    #set ( $pkpeer = "${package}.peer" )
d31 1
a31 1
        #set ( $fname = "Base${firstcap}Peer.java" )
d39 1
a39 1
        #set ( $fname = "Base${firstcap}.java" )
@


1.1
log
@Added the ability for torque to be called from within the Helm build procedure.  The only major restructure is that the helm-schema.xml file will now live in the sql/schema directory instead of sql/org/tigris/helm.
@
text
@d45 1
a45 1
        #if (!$utils.file($basePath,$path).exists())
d51 1
a51 1
        #if (!$utils.file($basePath,$path).exists())
d62 1
a62 1
#if (!$utils.file($basePath,$path).exists())
@

