private String buildInsertNameTypeQuery ( final String finalFieldName , final IClassContainer container ) { final Class < ? > exportFieldType = container . getField ( finalFieldName ) . getType ( ) ; switch ( container . getContainer ( finalFieldName ) . getType ( ) ) { case ARRAY : case COLLECTION : final Class < ? > type = exportFieldType . getComponentType ( ) ; return finalFieldName + "\t" + translateJavaTypeToSqlType ( type ) + "[]" ; case ARRAY_2D : final Class < ? > type2D = exportFieldType . getComponentType ( ) . getComponentType ( ) ; return finalFieldName + "\t" + translateJavaTypeToSqlType ( type2D ) + "[][]" ; default : return finalFieldName + "\t" + translateJavaTypeToSqlType ( exportFieldType ) ; } }
Creates String of Create Table Insert Quert