org.sandev.generator
Class MySQLStructMapper

java.lang.Object
  extended by org.sandev.generator.DefaultSQLStructMapper
      extended by org.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)
          Return the corresponding 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 class: DefaultSQLStructMapper
Return the corresponding type for the field.

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