org.sandev.generator
Class MySQLStructMapper

java.lang.Object
  extended byorg.sandev.generator.DefaultSQLStructMapper
      extended byorg.sandev.generator.MySQLStructMapper
All Implemented Interfaces:
StructMapper

public class MySQLStructMapper
extends DefaultSQLStructMapper
implements StructMapper

A StructMapper for mySQL database tables. This addresses the following issues that make mySQL different from the DefaultSQLStructMapper:

Rather than reimplementing methods that are the same, this class extends the default.


Constructor Summary
MySQLStructMapper()
           
 
Method Summary
 java.lang.String getMappedFieldType(com.sun.javadoc.ClassDoc struct, com.sun.javadoc.FieldDoc field)
          Returns the mapped type for the field.
 
Methods inherited from class org.sandev.generator.DefaultSQLStructMapper
getMappedFieldName, getMappedFieldRelation, getMappedFieldRelationChild, getMappedFieldRelationIndex, getMappedFieldRelationParent, getMappedStructName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sandev.generator.StructMapper
getMappedFieldName, getMappedFieldRelation, getMappedFieldRelationChild, getMappedFieldRelationIndex, getMappedFieldRelationParent, getMappedStructName
 

Constructor Detail

MySQLStructMapper

public MySQLStructMapper()
Method Detail

getMappedFieldType

public java.lang.String getMappedFieldType(com.sun.javadoc.ClassDoc struct,
                                           com.sun.javadoc.FieldDoc field)
Description copied from interface: StructMapper
Returns the mapped type for the field.

Specified by:
getMappedFieldType in interface StructMapper
Overrides:
getMappedFieldType in class DefaultSQLStructMapper