com.groupdocs.annotation.data.constructor
Class CollaboratorConstructor<T extends ICollaborator>

java.lang.Object
  extended by com.groupdocs.annotation.data.constructor.CollaboratorConstructor<T>

public class CollaboratorConstructor<T extends ICollaborator>
extends Object

Constructor for create ICollaborator object

Author:
Aleksey Permyakov (08.10.2014)

Method Summary
static CollaboratorConstructor create()
          Create empty constructor with collaborator object
static
<P extends ICollaborator>
CollaboratorConstructor<ICollaborator>
create(P obj)
          Create collaborator constructor with provided collaborator object
 T end()
          Get result entity object
 CollaboratorConstructor insert()
          Inset entity to database
 ICollaborator select()
          Select entity from database by guid
static void setConstructor(IConstructor<ICollaborator> constructor)
          Setter for property 'constructor'.
 CollaboratorConstructor withAccessRights(int accessRights)
          Set accessRights to collaborator object
 CollaboratorConstructor withAnnotationSessionId(int annotationSessionId)
          Set ID to collaborator object
 CollaboratorConstructor withColor(int color)
          Set ID to collaborator object
 CollaboratorConstructor withGuid(String guid)
          Set guid to collaborator object
 CollaboratorConstructor withId(int id)
          Set ID to collaborator object
 CollaboratorConstructor withJoinedOn(Date joinedOn)
          Set ID to collaborator object
 CollaboratorConstructor withUserId(int userId)
          Set user id to collaborator object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static CollaboratorConstructor create()
Create empty constructor with collaborator object

Returns:
collaborator constructor

create

public static <P extends ICollaborator> CollaboratorConstructor<ICollaborator> create(P obj)
Create collaborator constructor with provided collaborator object

Returns:
collaborator constructor

setConstructor

public static void setConstructor(IConstructor<ICollaborator> constructor)
Setter for property 'constructor'.

Parameters:
constructor - Value to set for property 'constructor'.

withId

public CollaboratorConstructor withId(int id)
Set ID to collaborator object

Parameters:
id - ID to set
Returns:
collaborator constructor

withAccessRights

public CollaboratorConstructor withAccessRights(int accessRights)
Set accessRights to collaborator object

Parameters:
accessRights - access rights
Returns:
collaborator constructor

withAnnotationSessionId

public CollaboratorConstructor withAnnotationSessionId(int annotationSessionId)
Set ID to collaborator object

Parameters:
annotationSessionId - annotation session id to set
Returns:
collaborator constructor

withColor

public CollaboratorConstructor withColor(int color)
Set ID to collaborator object

Parameters:
color - color to set
Returns:
collaborator constructor

withJoinedOn

public CollaboratorConstructor withJoinedOn(Date joinedOn)
Set ID to collaborator object

Parameters:
joinedOn - joined on date to set
Returns:
collaborator constructor

withUserId

public CollaboratorConstructor withUserId(int userId)
Set user id to collaborator object

Parameters:
userId - user id to set
Returns:
collaborator constructor

withGuid

public CollaboratorConstructor withGuid(String guid)
Set guid to collaborator object

Parameters:
guid - guid to set
Returns:
collaborator constructor

end

public T end()
Get result entity object

Returns:
result entity object

insert

public CollaboratorConstructor insert()
                               throws AnnotationException
Inset entity to database

Returns:
entity constructor
Throws:
AnnotationException

select

public ICollaborator select()
                     throws AnnotationException
Select entity from database by guid

Returns:
selected entity
Throws:
AnnotationException


Copyright © 2014. All rights reserved.