public static void generateSubjectNext ( SQLiteEntity entity , MethodSpec . Builder methodBuilder , SubjectType subjectType , String value ) { String subInsertType = "" ; if ( subjectType == SubjectType . INSERT ) { if ( entity . getPrimaryKey ( ) . isType ( String . class ) ) { subInsertType = "WithUid" ; } else { subInsertType = "WithId" ; } } methodBuilder . beginControlFlow ( "if (result>0)" ) ; methodBuilder . addComment ( "rx management " ) ; methodBuilder . addStatement ( "subject.onNext($T.create$L$L($L))" , SQLiteEvent . class , subjectType . value ( ) , subInsertType , value ) ; methodBuilder . endControlFlow ( ) ; }
Generate subject next .