com.rapidtransform.part.dao
Interface PartDAO

All Superinterfaces:
DAO, GenericDAO<Part,java.lang.Long>
All Known Implementing Classes:
PartDAOHibernate

public interface PartDAO
extends GenericDAO<Part,java.lang.Long>

Author:
Steve

Method Summary
 Part getPart(java.lang.Long partId)
          Returns the part with the given Part Id.
 java.util.List getParts()
          Returns all Parts in the database.
 void removePart(java.lang.Long partId)
          Removes the part with the given Id from the database.
 void savePart(Part part)
          Saves the given part.
 
Methods inherited from interface com.rapidtransform.core.dao.GenericDAO
findAll, findById, findByType, remove, save
 

Method Detail

getPart

Part getPart(java.lang.Long partId)
Returns the part with the given Part Id.

Parameters:
userId -
Returns:

getParts

java.util.List getParts()
Returns all Parts in the database.

Returns:

savePart

void savePart(Part part)
Saves the given part.

Parameters:
part -

removePart

void removePart(java.lang.Long partId)
Removes the part with the given Id from the database.

Parameters:
partId -