My Record Listener : Sort Search « J2ME « Java





My Record Listener

/*
J2ME: The Complete Reference

James Keogh

Publisher: McGraw-Hill

ISBN 0072227109

*/
public class MyRecordListener implements RecordListener
{
  public void recordAdded(RecordStore recordstore, int recordid)
  { 
    try
    {
      //do something 
    }
    catch (Exception error)
    {
      //do something
    } 
  } 
  public void recordDeleted(RecordStore recordstore, int recordid)
  {
    try
    {
      //do something
    } 
    catch (Exception error)
    {
      //do something
    }
  }
  public void recordChanged(RecordStore recordstore, int recordid)
  {
    try
    {
      //do something
    } 
    catch (Exception error)
    {
      //do something
    }
  } 
}



           
       










Related examples in the same category

1.A simple class that shows various functionality of RMS.A simple class that shows various functionality of RMS.
2.Sort records that contain multiple Java data types. Sort using String type.Sort records that contain multiple Java data types. Sort using String type.
3.Birthday DatabaseBirthday Database
4.J2ME Data Management: Record Management SystemJ2ME Data Management: Record Management System
5.Write Read ExampleWrite Read Example
6.Demonstrates simple record sorting and filteringDemonstrates simple record sorting and filtering
7.Simple Sort for RMSSimple Sort for RMS
8. Display a Form and TextField for searching records. Each record contains a String object. Display a Form and TextField for searching records. Each record contains a String object.
9.Search StreamsSearch Streams
10.Int SortInt Sort