Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » UltraLiteJ » Using UltraLiteJ » Tutorial: Build a BlackBerry application » Code listing for tutorial

 

NameRow.java

/*
 * NameRow.java
 *
 * © <your company here>, 2003-2005
 * Confidential and proprietary.
 */

package myapp;




/**
 * Hold a row of the Name table as an object
 */
class NameRow {
    
    public NameRow( String nameID, String name ) {  
        _nameID = nameID;
        _name = name;
    }
    
    public String getNameID(){
        return _nameID;
    }
    
    public String getName(){
        return _name;
    }
    
    
    /**
     * Required for use by the ObjectListField in HomeScreen
     * 
     * @return The Name as a string
     */
    public String toString(){
        return _name;
    }
    
    private String _nameID;
    private String _name;
    
}