public class FavoriteParamsDao extends PlatformDataAccessObject
限定符和类型 | 方法和说明 |
---|---|
boolean |
deleteByID(long id) |
boolean |
deleteByTemplateID(java.lang.String templateId) |
java.util.List<FavoriteParams> |
findAll() |
FavoriteParams |
findByTemplateIdAndUsername(java.lang.String templateId,
java.lang.String username) |
static FavoriteParamsDao |
getInstance() |
void |
save(FavoriteParams favoriteParams) |
boolean |
saveOrUpdate(FavoriteParams favoriteParams) |
closeSession, createSession, createSession, rollbackSession
public static FavoriteParamsDao getInstance()
public void save(FavoriteParams favoriteParams) throws java.lang.Exception
java.lang.Exception
public boolean saveOrUpdate(FavoriteParams favoriteParams) throws java.lang.Exception
java.lang.Exception
public boolean deleteByID(long id) throws java.lang.Exception
java.lang.Exception
public boolean deleteByTemplateID(java.lang.String templateId) throws java.lang.Exception
java.lang.Exception
public FavoriteParams findByTemplateIdAndUsername(java.lang.String templateId, java.lang.String username) throws java.lang.Exception
java.lang.Exception
public java.util.List<FavoriteParams> findAll() throws java.lang.Exception
java.lang.Exception