/* * The Kuali Financial System, a comprehensive financial management system for higher education. * * Copyright 2005-2014 The Kuali Foundation * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.kuali.kfs.module.ld.businessobject; import java.math.BigDecimal; import java.sql.Date; import java.sql.Timestamp; import org.kuali.kfs.gl.businessobject.LedgerEntryHistory; import org.kuali.rice.core.api.util.type.KualiDecimal; /** * Labor business object for LedgerEntryHistory */ public class LaborEntryHistory extends LedgerEntry implements LedgerEntryHistory { private Integer rowCount; /** * Default constructor. */ public LaborEntryHistory() { super(); this.setTransactionLedgerEntryAmount(KualiDecimal.ZERO); this.setRowCount(0); } /** * Constructs a LedgerBalance.java. * * @param transaction */ public LaborEntryHistory(LaborOriginEntry laborOriginEntry) { this(); this.setUniversityFiscalYear(laborOriginEntry.getUniversityFiscalYear()); this.setChartOfAccountsCode(laborOriginEntry.getChartOfAccountsCode()); this.setFinancialObjectCode(laborOriginEntry.getFinancialObjectCode()); this.setFinancialBalanceTypeCode(laborOriginEntry.getFinancialBalanceTypeCode()); this.setUniversityFiscalPeriodCode(laborOriginEntry.getUniversityFiscalPeriodCode()); this.setTransactionDebitCreditCode(laborOriginEntry.getTransactionDebitCreditCode()); } /** * Adds a transactionLedgerEntryAmount and increments the rowCount. * * @param transactionLedgerEntryAmount */ public void addAmount(KualiDecimal transactionLedgerEntryAmount) { this.setTransactionLedgerEntryAmount(this.getTransactionLedgerEntryAmount().add(transactionLedgerEntryAmount)); rowCount++; } /** * Gets the rowCount * * @return Returns the rowCount */ public Integer getRowCount() { return rowCount; } /** * Sets the rowCount * * @param rowCount The rowCount to set. */ public void setRowCount(Integer rowCount) { this.rowCount = rowCount; } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getAccountNumber() */ @Override public String getAccountNumber() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setAccountNumber(java.lang.String) */ @Override public void setAccountNumber(String accountNumber) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getSubAccountNumber() */ @Override public String getSubAccountNumber() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setSubAccountNumber(java.lang.String) */ @Override public void setSubAccountNumber(String subAccountNumber) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getFinancialSubObjectCode() */ @Override public String getFinancialSubObjectCode() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setFinancialSubObjectCode(java.lang.String) */ @Override public void setFinancialSubObjectCode(String financialSubObjectCode) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getFinancialObjectTypeCode() */ @Override public String getFinancialObjectTypeCode() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setFinancialObjectTypeCode(java.lang.String) */ @Override public void setFinancialObjectTypeCode(String financialObjectTypeCode) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getFinancialDocumentTypeCode() */ @Override public String getFinancialDocumentTypeCode() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getFinancialSystemOriginationCode() */ @Override public String getFinancialSystemOriginationCode() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setFinancialSystemOriginationCode(java.lang.String) */ @Override public void setFinancialSystemOriginationCode(String financialSystemOriginationCode) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setFinancialDocumentTypeCode(java.lang.String) */ @Override public void setFinancialDocumentTypeCode(String financialDocumentTypeCode) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getDocumentNumber() */ @Override public String getDocumentNumber() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setDocumentNumber(java.lang.String) */ @Override public void setDocumentNumber(String documentNumber) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getTransactionLedgerEntrySequenceNumber() */ @Override public Integer getTransactionLedgerEntrySequenceNumber() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setTransactionLedgerEntrySequenceNumber(java.lang.Integer) */ @Override public void setTransactionLedgerEntrySequenceNumber(Integer transactionLedgerEntrySequenceNumber) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getPositionNumber() */ @Override public String getPositionNumber() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setPositionNumber(java.lang.String) */ @Override public void setPositionNumber(String positionNumber) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getProjectCode() */ @Override public String getProjectCode() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setProjectCode(java.lang.String) */ @Override public void setProjectCode(String projectCode) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getTransactionLedgerEntryDescription() */ @Override public String getTransactionLedgerEntryDescription() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setTransactionLedgerEntryDescription(java.lang.String) */ @Override public void setTransactionLedgerEntryDescription(String transactionLedgerEntryDescription) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getTransactionDate() */ @Override public Date getTransactionDate() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setTransactionDate(java.sql.Date) */ @Override public void setTransactionDate(Date transactionDate) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getOrganizationDocumentNumber() */ @Override public String getOrganizationDocumentNumber() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setOrganizationDocumentNumber(java.lang.String) */ @Override public void setOrganizationDocumentNumber(String organizationDocumentNumber) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getOrganizationReferenceId() */ @Override public String getOrganizationReferenceId() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setOrganizationReferenceId(java.lang.String) */ @Override public void setOrganizationReferenceId(String organizationReferenceId) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getReferenceFinancialDocumentTypeCode() */ @Override public String getReferenceFinancialDocumentTypeCode() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setReferenceFinancialDocumentTypeCode(java.lang.String) */ @Override public void setReferenceFinancialDocumentTypeCode(String referenceFinancialDocumentTypeCode) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getReferenceFinancialSystemOriginationCode() */ @Override public String getReferenceFinancialSystemOriginationCode() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setReferenceFinancialSystemOriginationCode(java.lang.String) */ @Override public void setReferenceFinancialSystemOriginationCode(String referenceFinancialSystemOriginationCode) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getReferenceFinancialDocumentNumber() */ @Override public String getReferenceFinancialDocumentNumber() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setReferenceFinancialDocumentNumber(java.lang.String) */ @Override public void setReferenceFinancialDocumentNumber(String referenceFinancialDocumentNumber) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getFinancialDocumentReversalDate() */ @Override public Date getFinancialDocumentReversalDate() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setFinancialDocumentReversalDate(java.sql.Date) */ @Override public void setFinancialDocumentReversalDate(Date financialDocumentReversalDate) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getTransactionEncumbranceUpdateCode() */ @Override public String getTransactionEncumbranceUpdateCode() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setTransactionEncumbranceUpdateCode(java.lang.String) */ @Override public void setTransactionEncumbranceUpdateCode(String transactionEncumbranceUpdateCode) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getTransactionPostingDate() */ @Override public Date getTransactionPostingDate() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setTransactionPostingDate(java.sql.Date) */ @Override public void setTransactionPostingDate(Date transactionPostingDate) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getPayPeriodEndDate() */ @Override public Date getPayPeriodEndDate() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setPayPeriodEndDate(java.sql.Date) */ @Override public void setPayPeriodEndDate(Date payPeriodEndDate) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getTransactionTotalHours() */ @Override public BigDecimal getTransactionTotalHours() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setTransactionTotalHours(java.math.BigDecimal) */ @Override public void setTransactionTotalHours(BigDecimal transactionTotalHours) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getPayrollEndDateFiscalYear() */ @Override public Integer getPayrollEndDateFiscalYear() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setPayrollEndDateFiscalYear(java.lang.Integer) */ @Override public void setPayrollEndDateFiscalYear(Integer payrollEndDateFiscalYear) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getPayrollEndDateFiscalPeriodCode() */ @Override public String getPayrollEndDateFiscalPeriodCode() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setPayrollEndDateFiscalPeriodCode(java.lang.String) */ @Override public void setPayrollEndDateFiscalPeriodCode(String payrollEndDateFiscalPeriodCode) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getEmplid() */ @Override public String getEmplid() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setEmplid(java.lang.String) */ @Override public void setEmplid(String emplid) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getEmployeeRecord() */ @Override public Integer getEmployeeRecord() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setEmployeeRecord(java.lang.Integer) */ @Override public void setEmployeeRecord(Integer employeeRecord) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getEarnCode() */ @Override public String getEarnCode() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setEarnCode(java.lang.String) */ @Override public void setEarnCode(String earnCode) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getPayGroup() */ @Override public String getPayGroup() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setPayGroup(java.lang.String) */ @Override public void setPayGroup(String payGroup) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getSalaryAdministrationPlan() */ @Override public String getSalaryAdministrationPlan() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setSalaryAdministrationPlan(java.lang.String) */ @Override public void setSalaryAdministrationPlan(String salaryAdministrationPlan) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getGrade() */ @Override public String getGrade() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setGrade(java.lang.String) */ @Override public void setGrade(String grade) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getRunIdentifier() */ @Override public String getRunIdentifier() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setRunIdentifier(java.lang.String) */ @Override public void setRunIdentifier(String runIdentifier) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getLaborLedgerOriginalChartOfAccountsCode() */ @Override public String getLaborLedgerOriginalChartOfAccountsCode() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setLaborLedgerOriginalChartOfAccountsCode(java.lang.String) */ @Override public void setLaborLedgerOriginalChartOfAccountsCode(String laborLedgerOriginalChartOfAccountsCode) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getLaborLedgerOriginalAccountNumber() */ @Override public String getLaborLedgerOriginalAccountNumber() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setLaborLedgerOriginalAccountNumber(java.lang.String) */ @Override public void setLaborLedgerOriginalAccountNumber(String laborLedgerOriginalAccountNumber) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getLaborLedgerOriginalSubAccountNumber() */ @Override public String getLaborLedgerOriginalSubAccountNumber() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setLaborLedgerOriginalSubAccountNumber(java.lang.String) */ @Override public void setLaborLedgerOriginalSubAccountNumber(String laborLedgerOriginalSubAccountNumber) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getLaborLedgerOriginalFinancialObjectCode() */ @Override public String getLaborLedgerOriginalFinancialObjectCode() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setLaborLedgerOriginalFinancialObjectCode(java.lang.String) */ @Override public void setLaborLedgerOriginalFinancialObjectCode(String laborLedgerOriginalFinancialObjectCode) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getLaborLedgerOriginalFinancialSubObjectCode() */ @Override public String getLaborLedgerOriginalFinancialSubObjectCode() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setLaborLedgerOriginalFinancialSubObjectCode(java.lang.String) */ @Override public void setLaborLedgerOriginalFinancialSubObjectCode(String laborLedgerOriginalFinancialSubObjectCode) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getHrmsCompany() */ @Override public String getHrmsCompany() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setHrmsCompany(java.lang.String) */ @Override public void setHrmsCompany(String hrmsCompany) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getSetid() */ @Override public String getSetid() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setSetid(java.lang.String) */ @Override public void setSetid(String setid) { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#getTransactionDateTimeStamp() */ @Override public Timestamp getTransactionDateTimeStamp() { throw new UnsupportedOperationException(); } /** * History does not track this field. * @see org.kuali.kfs.module.ld.businessobject.LedgerEntry#setTransactionDateTimeStamp(java.sql.Timestamp) */ @Override public void setTransactionDateTimeStamp(Timestamp transactionDateTimeStamp) { throw new UnsupportedOperationException(); } }