Record Class CrossReference
java.lang.Object
java.lang.Record
edu.suffolk.litlab.efsp.tyler.ecfcodes.CrossReference
- All Implemented Interfaces:
NameAndCode
-
Constructor Summary
ConstructorsConstructorDescriptionCrossReference(String code, String name, String casetypeid, boolean isdefault, boolean isrequired, Pattern validationregex, String customvalidationfailuremessage, String efspcode, String location) Creates an instance of aCrossReferencerecord class.CrossReference(String code, String name, String casetypeid, String isdefault, String isrequired, String validationregex, String customvalidationfailuremessage, String efspcode, String location) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecasetypeidrecord component.code()Returns the value of thecoderecord component.Returns the value of thecustomvalidationfailuremessagerecord component.efspcode()Returns the value of theefspcoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisdefaultrecord component.booleanReturns the value of theisrequiredrecord component.location()Returns the value of thelocationrecord component.booleanmatchesRegex(String value) name()Returns the value of thenamerecord component.static Stringquery()final StringtoString()Returns a string representation of this record class.Returns the value of thevalidationregexrecord component.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
-
Constructor Details
-
CrossReference
-
CrossReference
- Throws:
SQLException
-
CrossReference
public CrossReference(String code, String name, String casetypeid, boolean isdefault, boolean isrequired, Pattern validationregex, String customvalidationfailuremessage, String efspcode, String location) Creates an instance of aCrossReferencerecord class.- Parameters:
code- the value for thecoderecord componentname- the value for thenamerecord componentcasetypeid- the value for thecasetypeidrecord componentisdefault- the value for theisdefaultrecord componentisrequired- the value for theisrequiredrecord componentvalidationregex- the value for thevalidationregexrecord componentcustomvalidationfailuremessage- the value for thecustomvalidationfailuremessagerecord componentefspcode- the value for theefspcoderecord componentlocation- the value for thelocationrecord component
-
-
Method Details
-
query
-
matchesRegex
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
code
Returns the value of thecoderecord component.- Specified by:
codein interfaceNameAndCode- Returns:
- the value of the
coderecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceNameAndCode- Returns:
- the value of the
namerecord component
-
casetypeid
Returns the value of thecasetypeidrecord component.- Returns:
- the value of the
casetypeidrecord component
-
isdefault
public boolean isdefault()Returns the value of theisdefaultrecord component.- Returns:
- the value of the
isdefaultrecord component
-
isrequired
public boolean isrequired()Returns the value of theisrequiredrecord component.- Returns:
- the value of the
isrequiredrecord component
-
validationregex
Returns the value of thevalidationregexrecord component.- Returns:
- the value of the
validationregexrecord component
-
customvalidationfailuremessage
Returns the value of thecustomvalidationfailuremessagerecord component.- Returns:
- the value of the
customvalidationfailuremessagerecord component
-
efspcode
Returns the value of theefspcoderecord component.- Returns:
- the value of the
efspcoderecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-