net.sf.hibernate.tool.hbm2java
Interface Renderer

All Known Implementing Classes:
AbstractRenderer, BasicRenderer, FinderRenderer, SLSBperEntityRenderer, VelocityRenderer

public interface Renderer


Method Summary
 void configure(Properties properties)
          Called with the optional list of properties from config.xml
 String getSaveToClassName(ClassMapping classMapping)
          Called by the generator to determine the class name of the rendered class.
 String getSaveToPackage(ClassMapping classMapping)
          Called by the generator to determine the package name of the rendered class.
 void render(String savedToPackage, String savedToClass, ClassMapping classMapping, Map class2classmap, PrintWriter writer)
           
 

Method Detail

configure

void configure(Properties properties)
Called with the optional list of properties from config.xml


render

void render(String savedToPackage,
            String savedToClass,
            ClassMapping classMapping,
            Map class2classmap,
            PrintWriter writer)
            throws Exception
Parameters:
savedToPackage - what package is this class placed in
savedToClass - what classname does it really get
classMapping - what classmapping is this for
class2classmap - A complete map from classname to the classmapping
writer - where we want the output
Throws:
Exception

getSaveToPackage

String getSaveToPackage(ClassMapping classMapping)
Called by the generator to determine the package name of the rendered class.

Parameters:
classMapping - The class mapping of the generated class
Returns:
the package name the class should be saved to

getSaveToClassName

String getSaveToClassName(ClassMapping classMapping)
Called by the generator to determine the class name of the rendered class.

Parameters:
classMapping - The class mapping of the generated class
Returns:
the class name the class should be saved to