Record Class CaseCategory
java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.truefiling.ecfcodes.CaseCategory
- All Implemented Interfaces:
NameAndCode
public record CaseCategory(String code, String description, EcfCaseTypes ecfCaseType)
extends Record
implements NameAndCode
Heavily based on
CaseCategory, but replacing name
with description.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCaseCategory(String code, String description, EcfCaseTypes ecfCaseType) Creates an instance of aCaseCategoryrecord class.CaseCategory(String code, String description, String ecfCaseType) -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.static StringReturns the value of thedescriptionrecord component.Returns the value of theecfCaseTyperecord component.final booleanIndicates whether some other object is "equal to" this one.static Stringstatic Stringstatic Stringstatic Stringfinal inthashCode()Returns a hash code value for this object.name()static Stringstatic Stringfinal StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.suffolk.litlab.efsp.ecfcodes.NameAndCode
getCode, getName
-
Field Details
-
TABLE_NAME
- See Also:
-
columns
-
CREATE_QUERY
- See Also:
-
INSERT_QUERY
- See Also:
-
DELETE_FROM_QUERY
- See Also:
-
DELETE_ALL_COURTS_FROM_QUERY
- See Also:
-
-
Constructor Details
-
CaseCategory
-
CaseCategory
- Throws:
SQLException
-
CaseCategory
Creates an instance of aCaseCategoryrecord class.- Parameters:
code- the value for thecoderecord componentdescription- the value for thedescriptionrecord componentecfCaseType- the value for theecfCaseTyperecord component
-
-
Method Details
-
name
- Specified by:
namein interfaceNameAndCode
-
code
Returns the value of thecoderecord component.- Specified by:
codein interfaceNameAndCode- Returns:
- the value of the
coderecord component
-
searchCaseCategories
-
courtCoverageCaseCategories
-
retrieveCaseCategoryForName
-
getCaseCategoriesForLoc
-
getFileableCaseCategoryForLoc
-
getFileableCaseCategoryForTiming
-
getCaseCategoryWithCode
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
ecfCaseType
Returns the value of theecfCaseTyperecord component.- Returns:
- the value of the
ecfCaseTyperecord component
-