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.

IBrolDao.cs

Description du code

IBrolDao.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 IBrolDao : IObservable
  10. {
  11.  
  12. /// <summary>
  13. /// Load all roles
  14. /// </summary>
  15. /// <returns></returns>
  16. List<ActorRole> loadRoles();
  17. /// <summary>
  18. /// Load roles for a person
  19. /// </summary>
  20. /// <param name="person"></param>
  21. /// <returns></returns>
  22. List<ActorRole> loadRoles(Person person);
  23. /// <summary>
  24. /// Load the default role for a person
  25. /// </summary>
  26. /// <param name="person"></param>
  27. /// <returns></returns>
  28. ActorRole loadDefaultRole(Person person);
  29. /// <summary>
  30. /// set the default role for a person
  31. /// </summary>
  32. /// <param name="person"></param>
  33. /// <param name="role"></param>
  34. void setDefaultRole(Person person, ActorRole role);
  35. /// <summary>
  36. /// Load person's roles for the selected type
  37. /// </summary>
  38. /// <param name="brolType"></param>
  39. /// <returns>List of roles strings</returns>
  40. List<ActorRole> loadRoles(BrolType brolType);
  41. /// <summary>
  42. /// get a roles with the id
  43. /// </summary>
  44. /// <param name="roleId">(int) id of the requested role</param>
  45. /// <returns>l(ActorRole) requested role</returns>
  46. ActorRole loadRole(int roleId);
  47. /// <summary>
  48. /// get a roles with the name
  49. /// </summary>
  50. /// <param name="roleName">(string) name of the requested role</param>
  51. /// <returns>(ActorRole) requested role</returns>
  52. ActorRole loadRole(string roleName);
  53. /// <summary>
  54. /// get a list of roles with the same name
  55. /// </summary>
  56. /// <param name="roleName">(string) name of the requested roles</param>
  57. /// <returns>(List of ActorRole) requested roles</returns>
  58. List<ActorRole> loadRoles(string roleName);
  59. /// <summary>
  60. /// Insert a new role. Don't check if the role name exists in the db. You must do it before.
  61. /// </summary>
  62. /// <param name="actor">(ActorRole) role to add</param>
  63. /// <returns></returns>
  64. bool insertRole(ActorRole role);
  65. /// <summary>
  66. /// Insert a brol (i.e. a film) into the Access database
  67. /// </summary>
  68. /// <param name="brol">(Brol) brol to insert</param>
  69. /// <returns>(int) new brol id</returns>
  70. int insertBrol(Brol brol);
  71. int insertBrols(List<Brol> brols, bool insertMediabrol);
  72. /// <summary>
  73. /// Load a brol with the selected id from the Access database.
  74. /// If this brol shoud be modified, editing bool arg is true
  75. /// to avoid concurent modifications (nobody else can save this brol).
  76. /// </summary>
  77. /// <param name="id">(int) Id of the selected bool</param>
  78. /// <param name="editing">(bool) Shoud be modified or not</param>
  79. /// <returns>Selected bool, or a new bool if _ found</returns>
  80. Brol loadBrol(int id, bool editing);
  81. /// <summary>
  82. /// Load all brols for a type from the persistant layer.
  83. /// i.e. films, books, etc.
  84. /// typeId 0 allow to load all types
  85. /// </summary>
  86. /// <returns>List of Brols</returns>
  87. List<Brol> loadBrols(int typeId);
  88. /// <summary>
  89. /// Load all brols for a serie from the persistant layer.
  90. /// </summary>
  91. /// <param name="serie"></param>
  92. /// <returns>List of Brols</returns>
  93. List<Brol> loadBrols(Serie serie);
  94. /// <summary>
  95. /// Load all available categories for a type from the Access database.
  96. /// i.e. for a film : Science-fiction, Horror, etc.
  97. /// </summary>
  98. /// <param name="typeId">(int) selected type (film, book, etc.) negative value to load all</param>
  99. /// <returns>List of BrolCategories</returns>
  100. List<BrolCategory> loadCategories(int typeId);
  101. /// <summary>
  102. /// Load brols value objects (only selected fields) for a type from the Access database.
  103. /// </summary>
  104. /// <param name="fields">List of fields to load for the brols</param>
  105. /// <param name="typeId">
  106. /// (int) selected type (film, book, etc.)
  107. /// 0 allow to load all types
  108. /// </param>
  109. /// <returns>DataTable with selected fields for Brols</returns>
  110. DataTable loadDataTableVos(List<DAOUtils.BROL_FIELD> fields, int typeId);
  111. /// <summary>
  112. /// Store new values for a brol.
  113. /// Verify if some categories or actors had been deleted, and delete it from the persistant layer.
  114. /// Add new categories or actors if exists.
  115. /// Update existing categories or actors.
  116. /// </summary>
  117. /// <param name="person">(Brol) brol with new values to store</param>
  118. /// <returns>(bool) true if update is done</returns>
  119. bool updateBrol(Brol brol);
  120. /// <summary>
  121. /// Lock brol to avoid concurent modifications.
  122. /// </summary>
  123. /// <param name="id">(int) brol's id to lock</param>
  124. /// <returns>(bool) false if a problem occurs (todo : if already locked)</returns>
  125. bool lockBrol(int id);
  126. /// <summary>
  127. /// unlock brol to allow modifications.
  128. /// </summary>
  129. /// <param name="id">(int) brol's id to unlock</param>
  130. void unlockBrol(int id);
  131. /// <summary>
  132. /// Delete a brol from the Access database,
  133. /// and delete all associated actors and categories
  134. /// </summary>
  135. /// <param name="p">(Brol) brol to delete</param>
  136. /// <returns>(bool) true if deleted</returns>
  137. bool deleteBrol(Brol brol);
  138. /// <summary>
  139. /// Insert brols from a batch file (batch filePath is stored into application properties file)
  140. /// </summary>
  141. /// <param name="insertMediabrol">(bool) True if a mediabrol must be inserted for each brol</param>
  142. /// <returns>(int) Number of inserted brols</returns>
  143. int executeBatch(bool insertMediabrol);
  144. }
  145. }

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 octets1719636278 29/06/2024 06:44:38
| _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/IBrolDao.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.