All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mule.example.bookstore.Book Maven / Gradle / Ivy

/*
 * $$Id: Book.java 13643 2008-12-15 21:16:15Z aperepel $$
 * --------------------------------------------------------------------------------------
 * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 *
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */

package org.mule.example.bookstore;

/**
 * Simple class which represents a Book in the catalog of the bookstore.
 */
public class Book 
{
    private long id;
    private String author;
    private String title;
    double price;

    public Book()
    {
        // empty constructor
    }
    
    public Book(String author, String title, double price)
    {
        this.author = author;
        this.title = title;
        this.price = price;
    }
    
    public long getId()
    {
        return id;
    }
    
    public void setId(long id)
    {
        this.id = id;
    }
    
    public String getAuthor()
    {
        return author;
    }
    
    public void setAuthor(String author)
    {
        this.author = author;
    }
    
    public String getTitle()
    {
        return title;
    }
    
    public void setTitle(String title)
    {
        this.title = title;
    }

    public double getPrice()
    {
        return price;
    }

    public void setPrice(double price)
    {
        this.price = price;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy