com.ning.billing.subscription.events
Class EventBase

java.lang.Object
  extended by com.ning.billing.subscription.events.EventBase
All Implemented Interfaces:
SubscriptionBaseEvent, Entity, Comparable<SubscriptionBaseEvent>
Direct Known Subclasses:
ApiEventBase, PhaseEventData

public abstract class EventBase
extends Object
implements SubscriptionBaseEvent


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ning.billing.subscription.events.SubscriptionBaseEvent
SubscriptionBaseEvent.EventType
 
Constructor Summary
EventBase(EventBaseBuilder<?> builder)
           
 
Method Summary
 int compareTo(SubscriptionBaseEvent other)
           
 void deactivate()
           
 boolean equals(Object other)
           
 long getActiveVersion()
           
 org.joda.time.DateTime getCreatedDate()
           
 org.joda.time.DateTime getEffectiveDate()
           
 UUID getId()
           
 org.joda.time.DateTime getProcessedDate()
           
 org.joda.time.DateTime getRequestedDate()
           
 UUID getSubscriptionId()
           
 long getTotalOrdering()
           
abstract  SubscriptionBaseEvent.EventType getType()
           
 org.joda.time.DateTime getUpdatedDate()
           
 boolean isActive()
           
 void reactivate()
           
 void setActiveVersion(long activeVersion)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventBase

public EventBase(EventBaseBuilder<?> builder)
Method Detail

getRequestedDate

public org.joda.time.DateTime getRequestedDate()
Specified by:
getRequestedDate in interface SubscriptionBaseEvent

getEffectiveDate

public org.joda.time.DateTime getEffectiveDate()
Specified by:
getEffectiveDate in interface SubscriptionBaseEvent

getProcessedDate

public org.joda.time.DateTime getProcessedDate()
Specified by:
getProcessedDate in interface SubscriptionBaseEvent

getSubscriptionId

public UUID getSubscriptionId()
Specified by:
getSubscriptionId in interface SubscriptionBaseEvent

getTotalOrdering

public long getTotalOrdering()
Specified by:
getTotalOrdering in interface SubscriptionBaseEvent

getId

public UUID getId()
Specified by:
getId in interface Entity

getCreatedDate

public org.joda.time.DateTime getCreatedDate()
Specified by:
getCreatedDate in interface Entity

getUpdatedDate

public org.joda.time.DateTime getUpdatedDate()
Specified by:
getUpdatedDate in interface Entity

getActiveVersion

public long getActiveVersion()
Specified by:
getActiveVersion in interface SubscriptionBaseEvent

setActiveVersion

public void setActiveVersion(long activeVersion)
Specified by:
setActiveVersion in interface SubscriptionBaseEvent

isActive

public boolean isActive()
Specified by:
isActive in interface SubscriptionBaseEvent

deactivate

public void deactivate()
Specified by:
deactivate in interface SubscriptionBaseEvent

reactivate

public void reactivate()
Specified by:
reactivate in interface SubscriptionBaseEvent

compareTo

public int compareTo(SubscriptionBaseEvent other)
Specified by:
compareTo in interface Comparable<SubscriptionBaseEvent>

equals

public boolean equals(Object other)
Overrides:
equals in class Object

getType

public abstract SubscriptionBaseEvent.EventType getType()
Specified by:
getType in interface SubscriptionBaseEvent


Copyright © 2010-2013. All Rights Reserved.