Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * #%L
   * Service Activity Monitoring :: Common
   * %%
   * Copyright (C) 2011 - 2012 Talend Inc.
   * %%
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  * 
  *      http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * #L%
  */
 package org.talend.esb.sam.common.event;
 
 import java.util.Date;
 import java.util.Map;
 
 
 //@Table(name = "EVENTS")
 //@Entity
 //@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
The Class Event.
 
 public class Event implements Serializable {
     // TODO Filename, line number for logging events
 
     //@Transient
     private static final long serialVersionUID = 1697021887985284206L;
 
     // @GeneratedValue(strategy = GenerationType.IDENTITY)
     //@GeneratedValue(strategy = GenerationType.TABLE, generator = "EVENT_SEQ")
     //@TableGenerator(name = "EVENT_SEQ", table = "SEQUENCE", pkColumnName = "SEQ_NAME",
     //    valueColumnName = "SEQ_COUNT", pkColumnValue = "EVENT_SEQ", allocationSize = 1000)
     //@Column(name = "ID")
     private Long persistedId;
 
     //@Basic(optional = false)
     //@Temporal(TemporalType.TIMESTAMP)
     //@Column(name = "EI_TIMESTAMP")
     private Date timestamp;
 
     //@Basic(optional = false)
     //@Enumerated(EnumType.STRING)
     //@Column(name = "EI_EVENT_TYPE")
     private EventTypeEnum eventType;
 
     //@Embedded
     private Originator originator;
 
     //@Embedded
     private MessageInfo messageInfo;
     
     private boolean isContentCut;
 
     //@Lob
     //@Column(name = "MESSAGE_CONTENT")
     private String content;
 
     private Map<StringStringcustomInfo = new HashMap<StringString>();

    
Instantiates a new event.
 
     public Event() {
         super();
     }

    
Gets the persisted id.

Returns:
the persisted id
 
     public Long getPersistedId() {
         return ;
     }

    
Sets the persisted id.

Parameters:
persistedId the new persisted id
 
     public void setPersistedId(Long persistedId) {
         this. = persistedId;
     }

    
Gets the timestamp.

Returns:
the timestamp
    public Date getTimestamp() {
        return ;
    }

    
Sets the timestamp.

Parameters:
timestamp the new timestamp
    public void setTimestamp(Date timestamp) {
        this. = timestamp;
    }

    
Gets the event type.

Returns:
the event type
    public EventTypeEnum getEventType() {
        return ;
    }

    
Sets the event type.

Parameters:
eventType the new event type
    public void setEventType(EventTypeEnum eventType) {
        this. = eventType;
    }

    
Gets the originator.

Returns:
the originator
    public Originator getOriginator() {
        return ;
    }

    
Sets the originator.

Parameters:
originator the new originator
    public void setOriginator(Originator originator) {
        this. = originator;
    }

    
Gets the message info.

Returns:
the message info
    public MessageInfo getMessageInfo() {
        return ;
    }

    
Sets the message info.

Parameters:
messageInfo the new message info
    public void setMessageInfo(MessageInfo messageInfo) {
        this. = messageInfo;
    }

    
Sets the content cut.

Parameters:
contentCut the new content cut
    public void setContentCut(boolean contentCut) {
         = contentCut;
    }

    
Checks if is content cut.

Returns:
true, if is content cut
    public boolean isContentCut() {
        return ;
    }

    
Gets the content.

Returns:
the content
    public String getContent() {
        return ;
    }

    
Sets the content.

Parameters:
content the new content
    public void setContent(String content) {
        this. = content;
    }

    
Gets the custom info.

Returns:
the custom info
    public Map<StringStringgetCustomInfo() {
        return ;
    }
    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this.);
    }
New to GrepCode? Check out our FAQ X