net.sf.shineframework.server.dal.dao
Interface NamedDao<T extends DalObject>

All Superinterfaces:
Dao<T>
All Known Implementing Classes:
BaseNamedDao

public interface NamedDao<T extends DalObject>
extends Dao<T>

Author:
amirk

Method Summary
 java.util.Collection<T> getAllOrdered()
          retrieves all objects order by name
 java.util.Collection<T> getByName(java.lang.String name)
          retrieves objects from the database by thier name
 T getUniqueByName(java.lang.String name)
          retrieves a unique instance of the object in the database
 java.util.Collection<T> matchByName(java.lang.String name)
          retrieves objects from the database based on their name with the "like" operator
 
Methods inherited from interface net.sf.shineframework.server.dal.dao.Dao
delete, getAll, getByBusinessKey, getByPk, getByProperties, getByUniqueProperties, merge, save
 

Method Detail

getByName

java.util.Collection<T> getByName(java.lang.String name)
                                                    throws org.springframework.dao.DataAccessException
retrieves objects from the database by thier name

Parameters:
name - object name
Returns:
the objects (or null when no match found)
Throws:
org.springframework.dao.DataAccessException

matchByName

java.util.Collection<T> matchByName(java.lang.String name)
                                                      throws org.springframework.dao.DataAccessException
retrieves objects from the database based on their name with the "like" operator

Parameters:
name - object name
Returns:
the objects (or null when no match found)
Throws:
org.springframework.dao.DataAccessException

getUniqueByName

T getUniqueByName(java.lang.String name)
                                    throws org.springframework.dao.DataAccessException
retrieves a unique instance of the object in the database

Parameters:
name - object name
Returns:
the object (or null when no match found)
Throws:
org.springframework.dao.DataAccessException - when there's an error and where the result is non-unique

getAllOrdered

java.util.Collection<T> getAllOrdered()
                                                        throws org.springframework.dao.DataAccessException
retrieves all objects order by name

Returns:
all objects
Throws:
org.springframework.dao.DataAccessException


Copyright © 2007 sourceforge.net. All Rights Reserved.