ProductGroup.java :  » XML » six-util » jp » go » aist » six » test » util » castor » example » myapp » Java Open Source

Java Open Source » XML » six util 
six util » jp » go » aist » six » test » util » castor » example » myapp » ProductGroup.java
package jp.go.aist.six.test.util.castor.example.myapp;

import jp.go.aist.six.util.persist.Persistable;


public class ProductGroup
implements Persistable<Integer>
{


    private int       _id;


    private String    _name;


    public int getId()
    {
        return _id;
    }


    public void setId( int id )
    {
        _id = id;
    }


    public String getName()
    {
        return _name;
    }


    public void setName( String name )
    {
        _name = name;
    }


    public String toString()
    {
        return "<id: " + _id + " name: " + _name + ">";
    }



    public void setPersistentID(
                    final Integer id
                    )
    {
        if (id != null) {
            setId( id.intValue() );
        }
    }


    public Integer getPersistentID()
    {
        return (new Integer( getId() ));
    }

}

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.