public Result < DATA > create ( TRANS trans , DATA data ) { if ( createPS == null ) { Result . err ( Result . ERR_NotImplemented , "Create is disabled for %s" , getClass ( ) . getSimpleName ( ) ) ; } if ( async ) /*ResultSetFuture */ { Result < ResultSetFuture > rs = createPS . execAsync ( trans , C_TEXT , data ) ; if ( rs . notOK ( ) ) { return Result . err ( rs ) ; } } else { Result < ResultSet > rs = createPS . exec ( trans , C_TEXT , data ) ; if ( rs . notOK ( ) ) { return Result . err ( rs ) ; } } wasModified ( trans , CRUD . create , data ) ; return Result . ok ( data ) ; }
Given a DATA object extract the individual elements from the Data into an Object Array for the execute element .