public class MimeTypeDAO extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static long | create(MimeType mt)Create | 
| static void | delete(long mtId)Delete | 
| static void | deleteAll()Delete all | 
| static List<MimeType> | findAll(String sort)Find by pk | 
| static MimeType | findByName(String name)Find by name | 
| static MimeType | findByPk(long mtId)Find by pk | 
| static List<MimeType> | findBySearch()Find by search. | 
| static void | update(MimeType mt)Update | 
public static long create(MimeType mt) throws DatabaseException
DatabaseExceptionpublic static void update(MimeType mt) throws DatabaseException
DatabaseExceptionpublic static void delete(long mtId)
                   throws DatabaseException
DatabaseExceptionpublic static void deleteAll()
                      throws DatabaseException
DatabaseExceptionpublic static MimeType findByPk(long mtId) throws DatabaseException
DatabaseExceptionpublic static List<MimeType> findAll(String sort) throws DatabaseException
sort - Can be "mt.id" or "mt.name".DatabaseExceptionpublic static List<MimeType> findBySearch() throws DatabaseException
DatabaseExceptionpublic static MimeType findByName(String name) throws DatabaseException
DatabaseExceptionCopyright © 2015. All Rights Reserved.