com.ning.billing.subscription.engine.dao.model
Class SubscriptionModelDao

java.lang.Object
  extended by com.ning.billing.util.entity.EntityBase
      extended by com.ning.billing.subscription.engine.dao.model.SubscriptionModelDao
All Implemented Interfaces:
EntityModelDao<SubscriptionBase>, Entity

public class SubscriptionModelDao
extends EntityBase
implements EntityModelDao<SubscriptionBase>


Field Summary
 
Fields inherited from class com.ning.billing.util.entity.EntityBase
createdDate, id, updatedDate
 
Constructor Summary
SubscriptionModelDao()
           
SubscriptionModelDao(DefaultSubscriptionBase src)
           
SubscriptionModelDao(UUID id, UUID bundleId, ProductCategory category, org.joda.time.DateTime startDate, org.joda.time.DateTime bundleStartDate, long activeVersion, org.joda.time.DateTime chargedThroughDate, org.joda.time.DateTime paidThroughDate, org.joda.time.DateTime createdDate, org.joda.time.DateTime updateDate)
           
 
Method Summary
 boolean equals(Object o)
           
 long getActiveVersion()
           
 UUID getBundleId()
           
 org.joda.time.DateTime getBundleStartDate()
           
 ProductCategory getCategory()
           
 org.joda.time.DateTime getChargedThroughDate()
           
 TableName getHistoryTableName()
           
 org.joda.time.DateTime getPaidThroughDate()
           
 org.joda.time.DateTime getStartDate()
           
 TableName getTableName()
           
 int hashCode()
           
 String toString()
           
static SubscriptionBase toSubscription(SubscriptionModelDao src)
           
 
Methods inherited from class com.ning.billing.util.entity.EntityBase
getCreatedDate, getId, getUpdatedDate, safeCompareTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ning.billing.util.entity.Entity
getCreatedDate, getId, getUpdatedDate
 

Constructor Detail

SubscriptionModelDao

public SubscriptionModelDao()

SubscriptionModelDao

public SubscriptionModelDao(UUID id,
                            UUID bundleId,
                            ProductCategory category,
                            org.joda.time.DateTime startDate,
                            org.joda.time.DateTime bundleStartDate,
                            long activeVersion,
                            org.joda.time.DateTime chargedThroughDate,
                            org.joda.time.DateTime paidThroughDate,
                            org.joda.time.DateTime createdDate,
                            org.joda.time.DateTime updateDate)

SubscriptionModelDao

public SubscriptionModelDao(DefaultSubscriptionBase src)
Method Detail

getBundleId

public UUID getBundleId()

getCategory

public ProductCategory getCategory()

getStartDate

public org.joda.time.DateTime getStartDate()

getBundleStartDate

public org.joda.time.DateTime getBundleStartDate()

getActiveVersion

public long getActiveVersion()

getChargedThroughDate

public org.joda.time.DateTime getChargedThroughDate()

getPaidThroughDate

public org.joda.time.DateTime getPaidThroughDate()

toSubscription

public static SubscriptionBase toSubscription(SubscriptionModelDao src)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class EntityBase

hashCode

public int hashCode()
Overrides:
hashCode in class EntityBase

getTableName

public TableName getTableName()
Specified by:
getTableName in interface EntityModelDao<SubscriptionBase>

getHistoryTableName

public TableName getHistoryTableName()
Specified by:
getHistoryTableName in interface EntityModelDao<SubscriptionBase>


Copyright © 2010-2013. All Rights Reserved.