Class ViewPoliticianRiskSummary
java.lang.Object
com.hack23.cia.model.internal.application.data.politician.impl.ViewPoliticianRiskSummary
- All Implemented Interfaces:
java.io.Serializable
@Entity(name="ViewPoliticianRiskSummary")
public class ViewPoliticianRiskSummary
extends java.lang.Object
implements java.io.Serializable
JPA entity for view_politician_risk_summary database view.
Intelligence Purpose: Aggregated politician risk indicators combining violations,
voting behavior, and productivity metrics to generate a comprehensive risk score.
Enables risk-based monitoring and early warning for performance issues.
Created by: Database schema v1.39+ (Fixed materialized view dependency)
Risk Rules Supported: P-01 through P-24 (All politician risk rules)
Risk scoring algorithm considers:
- Rule violations (weighted by count)
- Absence rate (last 2 years)
- Rebel rate (party discipline)
- Document productivity (last year)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new view politician risk summary. -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(java.lang.Object obj) java.lang.LongGets the absenteeism violations.java.math.BigDecimalGets the annual absence rate.java.math.BigDecimalGets the annual rebel rate.java.lang.LongGets the annual vote count.java.lang.LongGets the collaboration violations.java.lang.LongGets the discipline violations.java.lang.LongGets the documents last year.java.lang.LongGets the effectiveness violations.java.lang.StringGets the first name.java.lang.StringGets the last name.java.util.DateGets the latest violation date.java.lang.StringgetParty()Gets the party.java.lang.StringGets the person id.java.lang.LongGets the productivity violations.java.lang.StringGets the risk assessment.java.lang.StringGets the risk level.java.math.BigDecimalGets the risk score.java.lang.StringGets the status.java.lang.LongGets the total violations.inthashCode()voidsetAbsenteeismViolations(java.lang.Long absenteeismViolations) Sets the absenteeism violations.voidsetAnnualAbsenceRate(java.math.BigDecimal annualAbsenceRate) Sets the annual absence rate.voidsetAnnualRebelRate(java.math.BigDecimal annualRebelRate) Sets the annual rebel rate.voidsetAnnualVoteCount(java.lang.Long annualVoteCount) Sets the annual vote count.voidsetCollaborationViolations(java.lang.Long collaborationViolations) Sets the collaboration violations.voidsetDisciplineViolations(java.lang.Long disciplineViolations) Sets the discipline violations.voidsetDocumentsLastYear(java.lang.Long documentsLastYear) Sets the documents last year.voidsetEffectivenessViolations(java.lang.Long effectivenessViolations) Sets the effectiveness violations.voidsetFirstName(java.lang.String firstName) Sets the first name.voidsetLastName(java.lang.String lastName) Sets the last name.voidsetLatestViolationDate(java.util.Date latestViolationDate) Sets the latest violation date.voidsetParty(java.lang.String party) Sets the party.voidsetPersonId(java.lang.String personId) Sets the person id.voidsetProductivityViolations(java.lang.Long productivityViolations) Sets the productivity violations.voidsetRiskAssessment(java.lang.String riskAssessment) Sets the risk assessment.voidsetRiskLevel(java.lang.String riskLevel) Sets the risk level.voidsetRiskScore(java.math.BigDecimal riskScore) Sets the risk score.voidsetStatus(java.lang.String status) Sets the status.voidsetTotalViolations(java.lang.Long totalViolations) Sets the total violations.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ViewPoliticianRiskSummary
public ViewPoliticianRiskSummary()Instantiates a new view politician risk summary.
-
-
Method Details
-
getPersonId
public java.lang.String getPersonId()Gets the person id.- Returns:
- the person id
-
setPersonId
public void setPersonId(java.lang.String personId) Sets the person id.- Parameters:
personId- the new person id
-
getFirstName
public java.lang.String getFirstName()Gets the first name.- Returns:
- the first name
-
setFirstName
public void setFirstName(java.lang.String firstName) Sets the first name.- Parameters:
firstName- the new first name
-
getLastName
public java.lang.String getLastName()Gets the last name.- Returns:
- the last name
-
setLastName
public void setLastName(java.lang.String lastName) Sets the last name.- Parameters:
lastName- the new last name
-
getParty
public java.lang.String getParty()Gets the party.- Returns:
- the party
-
setParty
public void setParty(java.lang.String party) Sets the party.- Parameters:
party- the new party
-
getStatus
public java.lang.String getStatus()Gets the status.- Returns:
- the status
-
setStatus
public void setStatus(java.lang.String status) Sets the status.- Parameters:
status- the new status
-
getTotalViolations
public java.lang.Long getTotalViolations()Gets the total violations.- Returns:
- the total violations
-
setTotalViolations
public void setTotalViolations(java.lang.Long totalViolations) Sets the total violations.- Parameters:
totalViolations- the new total violations
-
getLatestViolationDate
public java.util.Date getLatestViolationDate()Gets the latest violation date.- Returns:
- the latest violation date
-
setLatestViolationDate
public void setLatestViolationDate(java.util.Date latestViolationDate) Sets the latest violation date.- Parameters:
latestViolationDate- the new latest violation date
-
getAbsenteeismViolations
public java.lang.Long getAbsenteeismViolations()Gets the absenteeism violations.- Returns:
- the absenteeism violations
-
setAbsenteeismViolations
public void setAbsenteeismViolations(java.lang.Long absenteeismViolations) Sets the absenteeism violations.- Parameters:
absenteeismViolations- the new absenteeism violations
-
getEffectivenessViolations
public java.lang.Long getEffectivenessViolations()Gets the effectiveness violations.- Returns:
- the effectiveness violations
-
setEffectivenessViolations
public void setEffectivenessViolations(java.lang.Long effectivenessViolations) Sets the effectiveness violations.- Parameters:
effectivenessViolations- the new effectiveness violations
-
getDisciplineViolations
public java.lang.Long getDisciplineViolations()Gets the discipline violations.- Returns:
- the discipline violations
-
setDisciplineViolations
public void setDisciplineViolations(java.lang.Long disciplineViolations) Sets the discipline violations.- Parameters:
disciplineViolations- the new discipline violations
-
getProductivityViolations
public java.lang.Long getProductivityViolations()Gets the productivity violations.- Returns:
- the productivity violations
-
setProductivityViolations
public void setProductivityViolations(java.lang.Long productivityViolations) Sets the productivity violations.- Parameters:
productivityViolations- the new productivity violations
-
getCollaborationViolations
public java.lang.Long getCollaborationViolations()Gets the collaboration violations.- Returns:
- the collaboration violations
-
setCollaborationViolations
public void setCollaborationViolations(java.lang.Long collaborationViolations) Sets the collaboration violations.- Parameters:
collaborationViolations- the new collaboration violations
-
getAnnualAbsenceRate
public java.math.BigDecimal getAnnualAbsenceRate()Gets the annual absence rate.- Returns:
- the annual absence rate
-
setAnnualAbsenceRate
public void setAnnualAbsenceRate(java.math.BigDecimal annualAbsenceRate) Sets the annual absence rate.- Parameters:
annualAbsenceRate- the new annual absence rate
-
getAnnualRebelRate
public java.math.BigDecimal getAnnualRebelRate()Gets the annual rebel rate.- Returns:
- the annual rebel rate
-
setAnnualRebelRate
public void setAnnualRebelRate(java.math.BigDecimal annualRebelRate) Sets the annual rebel rate.- Parameters:
annualRebelRate- the new annual rebel rate
-
getAnnualVoteCount
public java.lang.Long getAnnualVoteCount()Gets the annual vote count.- Returns:
- the annual vote count
-
setAnnualVoteCount
public void setAnnualVoteCount(java.lang.Long annualVoteCount) Sets the annual vote count.- Parameters:
annualVoteCount- the new annual vote count
-
getDocumentsLastYear
public java.lang.Long getDocumentsLastYear()Gets the documents last year.- Returns:
- the documents last year
-
setDocumentsLastYear
public void setDocumentsLastYear(java.lang.Long documentsLastYear) Sets the documents last year.- Parameters:
documentsLastYear- the new documents last year
-
getRiskScore
public java.math.BigDecimal getRiskScore()Gets the risk score.- Returns:
- the risk score
-
setRiskScore
public void setRiskScore(java.math.BigDecimal riskScore) Sets the risk score.- Parameters:
riskScore- the new risk score
-
getRiskLevel
public java.lang.String getRiskLevel()Gets the risk level.- Returns:
- the risk level
-
setRiskLevel
public void setRiskLevel(java.lang.String riskLevel) Sets the risk level.- Parameters:
riskLevel- the new risk level
-
getRiskAssessment
public java.lang.String getRiskAssessment()Gets the risk assessment.- Returns:
- the risk assessment
-
setRiskAssessment
public void setRiskAssessment(java.lang.String riskAssessment) Sets the risk assessment.- Parameters:
riskAssessment- the new risk assessment
-
equals
public boolean equals(java.lang.Object obj) - Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-