public void log ( int iUserID , int iUserLogTypeID , String strMessage ) { try { this . addNew ( ) ; this . getField ( UserLog . USER_ID ) . setValue ( iUserID ) ; this . getField ( UserLog . USER_LOG_TYPE_ID ) . setValue ( iUserLogTypeID ) ; this . getField ( UserLog . MESSAGE ) . setString ( strMessage ) ; this . add ( ) ; } catch ( DBException ex ) { ex . printStackTrace ( ) ; } }
Add this log entry .