private void writeClass ( ) { if ( writingAssocBean ) { writer . append ( "/**" ) . eol ( ) ; writer . append ( " * Association query bean for %s." , shortName ) . eol ( ) ; writer . append ( " * " ) . eol ( ) ; writer . append ( " * THIS IS A GENERATED OBJECT, DO NOT MODIFY THIS CLASS." ) . eol ( ) ; writer . append ( " */" ) . eol ( ) ; if ( processingContext . isGeneratedAvailable ( ) ) { writer . append ( AT_GENERATED ) . eol ( ) ; } writer . append ( AT_TYPEQUERYBEAN ) . eol ( ) ; writer . append ( "public class Q%s<R> extends TQAssocBean<%s,R> {" , shortName , origShortName ) . eol ( ) ; } else { writer . append ( "/**" ) . eol ( ) ; writer . append ( " * Query bean for %s." , shortName ) . eol ( ) ; writer . append ( " * " ) . eol ( ) ; writer . append ( " * THIS IS A GENERATED OBJECT, DO NOT MODIFY THIS CLASS." ) . eol ( ) ; writer . append ( " */" ) . eol ( ) ; if ( processingContext . isGeneratedAvailable ( ) ) { writer . append ( AT_GENERATED ) . eol ( ) ; } writer . append ( AT_TYPEQUERYBEAN ) . eol ( ) ; writer . append ( "public class Q%s extends TQRootBean<%1$s,Q%1$s> {" , shortName ) . eol ( ) ; } writer . eol ( ) ; }
Write the class definition .