Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code LNG204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.

IMediaBrolDao.cs

Description du code

IMediaBrolDao.cs est un fichier du projet BiblioBrol.
Ce fichier est situé dans /var/www/bin/sniplets/bibliobrol/src/.

Projet BiblioBrol :

Gestion de media en CSharp.

Pour plus d'infos, vous pouvez consulter la brève analyse.

Code source ou contenu du fichier

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Data;
  5. using be.gaudry.observer;
  6.  
  7. namespace be.gaudry.bibliobrol.model.dao
  8. {
  9. public interface IMediaBrolDao : IObservable
  10. {
  11.  
  12. #region mediabrol
  13. /// <summary>
  14. /// Insert a mediabrol into the persistant layer
  15. /// </summary>
  16. /// <param name="brol">(MediaBrol) mediabrol to insert</param>
  17. /// <returns>(int) new mediabrol id</returns>
  18. int insertMediaBrol(MediaBrol mediabrol);
  19. /// <summary>
  20. /// Load a mediabrol with the selected id from the persistant layer.
  21. /// If this mediabrol shoud be modified, editing bool arg is true
  22. /// to avoid concurent modifications (nobody else can save this mediabrol).
  23. /// </summary>
  24. /// <param name="id">(int) Id of the selected bool</param>
  25. /// <param name="editing">(bool) Shoud be modified or not</param>
  26. /// <returns>Selected bool, or a new bool if _ found</returns>
  27. MediaBrol loadMediaBrol(int id, bool editing);
  28. /// <summary>
  29. /// Load all mediabrols for a brol from the persistant layer.
  30. /// </summary>
  31. /// <param name="brol"></param>
  32. /// <param name="fields">list of fields to load</param>
  33. /// <returns>(DataTable) table with selected columns</returns>
  34. DataTable loadMediaBrols(Brol brol, List<DAOUtils.MEDIABROL_FIELD> fields);
  35. /// <summary>
  36. /// Load all available medias for a type from the persistant layer.
  37. /// i.e. for a film : DVD, VHS, CD, etc.
  38. /// </summary>
  39. /// <param name="typeId">(int) selected type (film, book, etc.)</param>
  40. /// <returns>List of Qualities</returns>
  41. List<Media> loadMedias(int typeId);
  42. /// <summary>
  43. /// Load all available qualities for a mediabrol from the persistant layer.
  44. /// i.e. for a film : sound(DTS), sound(7.1) codec(VOB), etc.
  45. /// </summary>
  46. /// <param name="typeId">(int) selected mediabrol</param>
  47. /// <returns>List of Qualities</returns>
  48. List<Quality> loadQualities(int itemBiblioId);
  49. /// <summary>
  50. /// Load all available qualities for a type from the persistant layer.
  51. /// i.e. for a film : sound(DTS), sound(7.1) codec(VOB), etc.
  52. /// </summary>
  53. /// <param name="typeId">(BrolType) selected type (film, book, etc.)</param>
  54. /// <returns>List of Qualities</returns>
  55. List<Quality> loadQualities(BrolType brolType);
  56. /// <summary>
  57. /// Load brols value objects (only selected fields) for a type from the persistant layer.
  58. /// </summary>
  59. /// <param name="fields">List of fields to load for the mediabrols</param>
  60. /// <param name="typeId">
  61. /// (int) selected type (film, book, etc.)
  62. /// 0 allow to load all types
  63. /// </param>
  64. /// <returns>DataTable with selected fields for mediabrols</returns>
  65. DataTable loadDataTableVos(List<DAOUtils.MEDIABROL_FIELD> fields, int typeId);
  66. /// <summary>
  67. /// Load brols value objects (only selected fields) for a type from the persistant layer.
  68. /// </summary>
  69. /// <param name="fields">List of fields to load for the mediabrols</param>
  70. /// <param name="typeId">
  71. /// (int) selected type (film, book, etc.)
  72. /// 0 allow to load all types
  73. /// </param>
  74. /// <param name="categories">List of categories to match</param>
  75. /// <returns>DataTable with selected fields for mediabrols</returns>
  76. DataTable loadDataTableVos(List<DAOUtils.MEDIABROL_FIELD> fields, int typeId, List<BrolCategory> categories);
  77. /// <summary>
  78. /// Load brols value objects (only selected fields) for a type from the persistant layer.
  79. /// </summary>
  80. /// <param name="fields">List of fields to load for the mediabrols</param>
  81. /// <param name="typeId">
  82. /// (int) selected type (film, book, etc.)
  83. /// 0 allow to load all types
  84. /// </param>
  85. /// <param name="categories">List of categories to match</param>
  86. /// <param name="mediaId">media to match</param>
  87. /// <returns>DataTable with selected fields for mediabrols</returns>
  88. DataTable loadDataTableVos(List<DAOUtils.MEDIABROL_FIELD> fields, int typeId, List<BrolCategory> categories, int mediaId);
  89. /// <summary>
  90. /// Load brols value objects (only selected fields) for a type from the persistant layer.
  91. /// </summary>
  92. /// <param name="fields">List of fields to load for the mediabrols</param>
  93. /// <param name="typeId">
  94. /// (int) selected type (film, book, etc.)
  95. /// 0 allow to load all types
  96. /// </param>
  97. /// <param name="categories">List of categories to match</param>
  98. /// <param name="mediaId">media to match</param>
  99. /// <param name="title">(String) string to find into brol's title</param>
  100. /// <returns>DataTable with selected fields for mediabrols</returns>
  101. DataTable loadDataTableVos(List<DAOUtils.MEDIABROL_FIELD> fields, int typeId, List<BrolCategory> categories, int mediaId, string title);
  102. /// <summary>
  103. /// Store new values for a mediabrol.
  104. /// </summary>
  105. /// <param name="mediaBrol">(MediaBrol) mediaBrol with new values to store</param>
  106. /// <returns>(bool) true if update is done</returns>
  107. bool updateMediaBrol(MediaBrol mediaBrol);
  108. /// <summary>
  109. /// Lock mediaBrol to avoid concurent modifications.
  110. /// </summary>
  111. /// <param name="id">(int) mediaBrol's id to lock</param>
  112. /// <returns>(bool) false if a problem occurs (todo : if already locked)</returns>
  113. bool lockMediaBrol(int id);
  114. /// <summary>
  115. /// unlock mediaBrol to allow modifications.
  116. /// </summary>
  117. /// <param name="id">(int) mediaBrol's id to unlock</param>
  118. void unlockMediaBrol(int id);
  119. /// <summary>
  120. /// If no currents borrows,
  121. /// delete a mediaBrol from the persistant layer all associated borrows,
  122. /// and all qualities relations
  123. /// </summary>
  124. /// <param name="mediaBrol">(Brol) mediaBrol to delete</param>
  125. /// <returns>(bool) true if deleted</returns>
  126. bool deleteMediaBrol(MediaBrol mediaBrol);
  127. /// <summary>
  128. /// If no currents borrows,
  129. /// delete a mediaBrol from the persistant layer all associated borrows,
  130. /// and all qualities relations
  131. /// </summary>
  132. /// <param name="mediabrolId"></param>
  133. /// <param name="title"></param>
  134. /// <param name="deleteBrol">Set true to delete associated brol</param>
  135. /// <returns></returns>
  136. bool deleteMediaBrol(int mediabrolId, String title, bool deleteBrol);
  137. #endregion
  138.  
  139. #region borrows
  140. /// <summary>
  141. /// Insert today new borrow for a mediabrol and a person
  142. /// </summary>
  143. /// <param name="mediabrolId">(int) identifier of a mediabrol object</param>
  144. /// <param name="borrower">(int) identifier of a person</param>
  145. /// <returns>(bool) true if started</returns>
  146. bool startBorrow(int mediabrolId, int borrowerId);
  147. /// <summary>
  148. /// Update borrow, set endDate to now
  149. /// </summary>
  150. /// <param name="borrowId"></param>
  151. /// <returns>(bool) true if stopped</returns>
  152. bool stopBorrow(int borrowId);
  153. /// <summary>
  154. /// Update borrow, set endDate to now
  155. /// </summary>
  156. /// <param name="mediabrol">(MediaBrol) borrowed mediabrol</param>
  157. /// <returns>(bool) true if stopped</returns>
  158. bool stopBorrow(MediaBrol mediabrol);
  159. /// <summary>
  160. /// Delete all borrows for a mediabrol
  161. /// </summary>
  162. /// <param name="mediabrolId">(int) mediabrol identifier</param>
  163. /// <param name="forceDelete">(bool) set true to force delete a borrow which is not closed</param>
  164. /// <returns>(int) -1 if forceDelete = false and a borrow is not closed; number of borrows deleted otherwise</returns>
  165. int cleanBorrows(int mediabrolId, bool forceDelete);
  166. /// <summary>
  167. /// Delete selected borrow
  168. /// </summary>
  169. /// <param name="selectedBorrowId">(int) borrow identifier</param>
  170. void cleanBorrow(int selectedBorrowId);
  171. /// <summary>
  172. /// Update a borrow
  173. /// </summary>
  174. /// <param name="borrow"></param>
  175. bool updateBorrow(Borrow borrow);
  176. /// <summary>
  177. /// Load borrows for a person
  178. /// </summary>
  179. /// <param name="person"></param>
  180. /// <returns></returns>
  181. List<Borrow> loadBorrows(Person person);
  182. /// <summary>
  183. /// Load borrows and fill a DataTable.
  184. /// If mediabrolId equals 0, all borrows are loaded.
  185. /// </summary>
  186. /// <param name="mediabrolId">(int) Selected mediabrol id</param>
  187. /// <param name="borrowFields">List of fields to load for the borrows</param>
  188. /// <param name="typeId">
  189. /// (int) selected type (film, book, etc.)
  190. /// 0 allow to load all types
  191. /// </param>
  192. /// <param name="closed">set true to load closed borrows, false to load only current borrows</param>
  193. /// <param name="title">(String) string to find into brol's title</param>
  194. /// <returns>(DataTable) DataTable with borrows</returns>
  195. DataTable loadBorrows(int mediabrolId, List<DAOUtils.BORROW_FIELD> borrowFields, int typeId, bool closed, string title);
  196. /// <summary>
  197. /// Load selected borrow
  198. /// </summary>
  199. /// <param name="mediabrol"></param>
  200. /// <returns></returns>
  201. Borrow loadBorrow(int borrowId);
  202. #endregion
  203. }
  204. }

Structure et Fichiers du projet

Afficher/masquer...


Répertoires contenus dans /var/www/bin/sniplets/bibliobrol/src/model/dao/ 
IcôneNomTailleModification
IcôneNomTailleModification
| _ Répertoire parent0 octets1719823264 01/07/2024 10:41:04
| _msaccess0 octets1541007197 31/10/2018 18:33:17
| _config0 octets1541007197 31/10/2018 18:33:17
| _mysql0 octets1541007198 31/10/2018 18:33:18
Fichiers contenus dans /var/www/bin/sniplets/bibliobrol/src/model/dao/ 
IcôneNomTailleModificationAction
IcôneNomTailleModificationAction
Afficher le fichier .cs|.csIExporterDao.cs1.98 Ko31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csIBrolDao.cs6.25 Ko31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csIImporterDao.cs686 octets31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csITaskDao.cs351 octets31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csDAOFactory.cs2.58 Ko31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csIMediaBrolDao.cs9.86 Ko31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csIStatsDao.cs431 octets31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csIPersonDao.cs4.87 Ko31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csDAOUtils.cs2.18 Ko31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csISerieDao.cs362 octets31/10/2018 18:32:54-refusé-
Afficher le fichier .cs|.csIConfigDao.cs705 octets31/10/2018 18:32:54-refusé-

Utilisation de l'explorateur de code

  • Navigation :
    • Un clic sur une icône de répertoire ouvre ce répertoire pour en afficher les fichiers.
    • Lorsque le répertoire en cours ne contient pas de sous-répertoires il est possible de remonter vers le répertoire parent.
    • La structure de répertoires en treetable (tableau en forme d'arborescence) n'est plus possibledans cette version.
    • Un clic sur une icône de fichier ouvre ce fichier pour en afficher le code avec la coloration syntaxique adaptée en fonction du langage principal utilisé dans le fichier.
  • Affichage :
    • Il est possible de trier les répertoires ou les fichiers selon certains critères (nom, taille, date).
  • Actions :
    • Les actions possible sur les fichiers dépendent de vos droits d'utilisateur sur le site. Veuillez activer le mode utilisateur pour activer les actions.

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 16/10/2009, zuletzt geändert 26/10/2018
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/cs-bibliobrol-source-rf-model/dao//IMediaBrolDao.cs.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.