C# 클래스 ActivEarth.DAO.GroupDAO

파일 보기 프로젝트 열기: mlcamilli/ActivEarth

공개 메소드들

메소드 설명
CreateNewGroup ( Group group ) : int

Creates a Group as a new entry in the DB.

DeleteGroup ( int groupId ) : bool

Removes an existing Group from the DB.

GetAllGroups ( ) : List

Retrieves all currently created Groups.

GetAllGroupsByHashTag ( string hashtag ) : List

Retrieves all currently created Groups that are tagged with the given hashtag.

GetAllGroupsByName ( string partialName ) : List

Retrieves all currently created Groups that have a name containing the given string.

GetAllGroupsByOwner ( User owner ) : List

Retrieves all currently created Groups that have a given Owner.

GetGroupFromGroupId ( int groupId ) : Group

Retrieves a Group from the DB based on its ID.

GetGroupFromName ( string name ) : Group

Retrieves a Group with the given name.

GetGroupsByUser ( int userID ) : List

Retrieves all Groups that a given user is a part of.

UpdateGroup ( Group group ) : bool

Updates an existing Group in the DB.

메소드 상세

CreateNewGroup() 공개 정적인 메소드

Creates a Group as a new entry in the DB.
public static CreateNewGroup ( Group group ) : int
group ActivEarth.Objects.Groups.Group Group object to add to the DB.
리턴 int

DeleteGroup() 공개 정적인 메소드

Removes an existing Group from the DB.
public static DeleteGroup ( int groupId ) : bool
groupId int ID of Group whose information needs to be deleted.
리턴 bool

GetAllGroups() 공개 정적인 메소드

Retrieves all currently created Groups.
public static GetAllGroups ( ) : List
리턴 List

GetAllGroupsByHashTag() 공개 정적인 메소드

Retrieves all currently created Groups that are tagged with the given hashtag.
public static GetAllGroupsByHashTag ( string hashtag ) : List
hashtag string A desired string tag
리턴 List

GetAllGroupsByName() 공개 정적인 메소드

Retrieves all currently created Groups that have a name containing the given string.
public static GetAllGroupsByName ( string partialName ) : List
partialName string A string desired to be contained within the Group name
리턴 List

GetAllGroupsByOwner() 공개 정적인 메소드

Retrieves all currently created Groups that have a given Owner.
public static GetAllGroupsByOwner ( User owner ) : List
owner ActivEarth.Objects.Profile.User
리턴 List

GetGroupFromGroupId() 공개 정적인 메소드

Retrieves a Group from the DB based on its ID.
public static GetGroupFromGroupId ( int groupId ) : Group
groupId int Identifier of the Group to retrieve.
리턴 ActivEarth.Objects.Groups.Group

GetGroupFromName() 공개 정적인 메소드

Retrieves a Group with the given name.
public static GetGroupFromName ( string name ) : Group
name string
리턴 ActivEarth.Objects.Groups.Group

GetGroupsByUser() 공개 정적인 메소드

Retrieves all Groups that a given user is a part of.
public static GetGroupsByUser ( int userID ) : List
userID int UserID of the desired User
리턴 List

UpdateGroup() 공개 정적인 메소드

Updates an existing Group in the DB.
public static UpdateGroup ( Group group ) : bool
group ActivEarth.Objects.Groups.Group Group whose information needs to be updated.
리턴 bool