CLOUDSTACK-8592: adding corresponding DAOs with stubs

This commit is contained in:
Abhinandan Prateek 2015-07-07 11:21:47 +05:30 committed by Rohit Yadav
parent 6c4dea7bb8
commit d160da07cf
2 changed files with 34 additions and 21 deletions

View File

@ -32,18 +32,6 @@ import org.apache.cloudstack.api.InternalIdentity;
@Table(name = "quota_balance")
public class QuotaBalanceVO implements InternalIdentity {
public QuotaBalanceVO(Long accountId, Long domainId,
BigDecimal creditBalance, Date updatedOn, Long previousUpdateId,
Date previousUpdateOn) {
super();
this.accountId = accountId;
this.domainId = domainId;
this.creditBalance = creditBalance;
this.updatedOn = updatedOn;
this.previousUpdateId = previousUpdateId;
this.previousUpdateOn = previousUpdateOn;
}
private static final long serialVersionUID = -7112846845287653210L;
@Id
@ -73,6 +61,18 @@ public class QuotaBalanceVO implements InternalIdentity {
public QuotaBalanceVO() {
}
public QuotaBalanceVO(Long accountId, Long domainId,
BigDecimal creditBalance, Date updatedOn, Long previousUpdateId,
Date previousUpdateOn) {
super();
this.accountId = accountId;
this.domainId = domainId;
this.creditBalance = creditBalance;
this.updatedOn = updatedOn;
this.previousUpdateId = previousUpdateId;
this.previousUpdateOn = previousUpdateOn;
}
@Override
public long getId() {
return id;

View File

@ -31,15 +31,6 @@ import org.apache.cloudstack.api.InternalIdentity;
@Table(name = "quota_email_templates")
public class QuotaEmailTemplatesVO implements InternalIdentity {
public QuotaEmailTemplatesVO(String templateName, String templateText,
String locale, Integer version) {
super();
this.templateName = templateName;
this.templateText = templateText;
this.locale = locale;
this.version = version;
}
private static final long serialVersionUID = -7117933842834553210L;
@Id
@ -52,6 +43,10 @@ public class QuotaEmailTemplatesVO implements InternalIdentity {
@Column(name = "template_text")
private String templateText;
@Column(name = "category")
private Integer category;
@Column(name = "last_updated")
@Temporal(value = TemporalType.TIMESTAMP)
private Date lastUpdated = null;
@ -65,6 +60,15 @@ public class QuotaEmailTemplatesVO implements InternalIdentity {
public QuotaEmailTemplatesVO() {
}
public QuotaEmailTemplatesVO(String templateName, String templateText,
String locale, Integer version) {
super();
this.templateName = templateName;
this.templateText = templateText;
this.locale = locale;
this.version = version;
}
@Override
public long getId() {
// TODO Auto-generated method stub
@ -87,6 +91,15 @@ public class QuotaEmailTemplatesVO implements InternalIdentity {
this.templateText = templateText;
}
public Integer getCategory() {
return category;
}
public void setCategory(Integer version) {
this.category = category;
}
public Date getLastUpdated() {
return lastUpdated;
}