alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Spring Framework example source code file (PetService.java)

This example Spring Framework source code file (PetService.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Spring Framework tags/keywords

date, date, default_date_format, mm/dd/yyyy, pet, pet, petservice, sortedset, sortedset, string, string, util

The Spring Framework PetService.java source code

package org.springframework.samples.petportal.service;

import java.util.Date;
import java.util.SortedSet;

import org.springframework.samples.petportal.domain.Pet;

/**
 * The PetService interface.
 * 
 * @author John A. Lewis
 * @author Mark Fisher
 * @author Juergen Hoeller
 */
public interface PetService {
	
	public final static String DEFAULT_DATE_FORMAT = "MM/dd/yyyy";

	public Pet getPet(Integer key);

	public Pet getPet(int key);

	public int getPetCount();

	public SortedSet getAllPets();

	public int addPet(Pet pet);

	public int addPet(String species, String breed, String name, Date birthdate);

	public void savePet(Pet pet);

	public void deletePet(Integer key);

	public void deletePet(Pet pet);

	public void deletePet(int key);
	
}

Other Spring Framework examples (source code examples)

Here is a short list of links related to this Spring Framework PetService.java source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.