com.groupdocs.annotation.data.constructor
Class ReplyConstructor<T extends IReply>

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

public class ReplyConstructor<T extends IReply>
extends Object

Constructor for create Reply object

Author:
Aleksey Permyakov (08.10.2014)

Method Summary
static ReplyConstructor create()
          Create empty constructor with entity object
static
<P extends IReply>
ReplyConstructor<IReply>
create(P entity)
          Create entity constructor with provided entity object
 T end()
          Get created reply object
 ReplyConstructor insert()
          Inset entity to database
 IReply select()
          Select entity from database by guid
static void setConstructor(IConstructor<IReply> constructor)
          Setter for property 'constructor'.
 ReplyConstructor withAnnotationId(int annotationId)
          Set annotation id to reply object
 ReplyConstructor withGuid(String guid)
          Set guid to reply object
 ReplyConstructor withId(int id)
          Set ID to reply object
 ReplyConstructor withMessage(String messageText)
          Set message text to reply object
 ReplyConstructor withParentReplyId(int parentReplyId)
          Set parent reply id to reply object
 ReplyConstructor withRepliedOn(Date repliedOn)
          Set replied date to reply object
 ReplyConstructor withUserId(int userId)
          Set user id to reply object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ReplyConstructor create()
Create empty constructor with entity object

Returns:
entity constructor

create

public static <P extends IReply> ReplyConstructor<IReply> create(P entity)
Create entity constructor with provided entity object

Returns:
reply constructor

setConstructor

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

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

withId

public ReplyConstructor withId(int id)
Set ID to reply object

Parameters:
id - ID to set
Returns:
reply constructor

withRepliedOn

public ReplyConstructor withRepliedOn(Date repliedOn)
Set replied date to reply object

Parameters:
repliedOn - reply date
Returns:
reply constructor

withUserId

public ReplyConstructor withUserId(int userId)
Set user id to reply object

Parameters:
userId - user id
Returns:
reply constructor

withAnnotationId

public ReplyConstructor withAnnotationId(int annotationId)
Set annotation id to reply object

Parameters:
annotationId - annotation id
Returns:
reply constructor

withGuid

public ReplyConstructor withGuid(String guid)
Set guid to reply object

Parameters:
guid - guid to set
Returns:
reply constructor

withMessage

public ReplyConstructor withMessage(String messageText)
Set message text to reply object

Parameters:
messageText - message text
Returns:
reply constructor

withParentReplyId

public ReplyConstructor withParentReplyId(int parentReplyId)
Set parent reply id to reply object

Parameters:
parentReplyId - parent reply id
Returns:
reply constructor

end

public T end()
Get created reply object

Returns:
reply object

insert

public ReplyConstructor insert()
                        throws AnnotationException
Inset entity to database

Returns:
entity constructor
Throws:
AnnotationException

select

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

Returns:
selected entity
Throws:
AnnotationException


Copyright © 2014. All rights reserved.