Class FactorValue
- All Implemented Interfaces:
Securable, SecuredChild, Securable, SecuredChild<ExpressionExperiment>, Identifiable
Hibernate Search 7 mapping: indexed root and embedded contributor to
ExperimentalFactor.getFactorValues(). Pulls each Statement characteristic
(a Characteristic subtype with predicate + object slots) into the EE document.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum length ofgetValue(), in characters: theVALUEcolumn isVARCHAR(255)and the schema isutf8mb4, so MySQL counts code points, not bytes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanImportant note: Two objects with the same class and non-null ID must be considered equal.Collection ofStatementdescribing this factor value.getId()Obtain the identifier of the object.Indicate if this factor value is a "forced" baseline or non-baseline condition.If this is a continuous factor, a measurement representing its value.booleanIndicate if this factor value needs attention.Deprecated.Obtain the security owner of this secured child.getValue()Deprecated.inthashCode()Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.voidsetCharacteristics(Set<Statement> characteristics) voidsetExperimentalFactor(ExperimentalFactor experimentalFactor) voidsetIsBaseline(Boolean isBaseline) voidsetMeasurement(Measurement measurement) voidsetNeedsAttention(boolean troubled) voidsetOldStyleCharacteristics(Set<Characteristic> oldCharacteristics) Deprecated.voidvoidsetSupportingEvidence(String supportingEvidence) voidDeprecated.toString()Methods inherited from class AbstractIdentifiable
setId
-
Field Details
-
MAX_VALUE_LENGTH
public static final int MAX_VALUE_LENGTHMaximum length ofgetValue(), in characters: theVALUEcolumn isVARCHAR(255)and the schema isutf8mb4, so MySQL counts code points, not bytes.- See Also:
-
-
Constructor Details
-
FactorValue
public FactorValue()
-
-
Method Details
-
getId
Description copied from interface:IdentifiableObtain the identifier of the object.- Specified by:
getIdin interfaceIdentifiable- Specified by:
getIdin interfaceSecurable- Overrides:
getIdin classAbstractIdentifiable
-
getExperimentalFactor
-
setExperimentalFactor
-
getIsBaseline
Indicate if this factor value is a "forced" baseline or non-baseline condition.This is ignored if the factor is continuous.
-
setIsBaseline
-
getValue
Deprecated.usegetMeasurement()orgetCharacteristics()to retrieve the value. -
setValue
Deprecated. -
getMeasurement
If this is a continuous factor, a measurement representing its value. -
setMeasurement
-
getCharacteristics
-
setCharacteristics
-
getOldStyleCharacteristics
Deprecated.Old-style characteristics from the 1.30 series.This will be removed when all the characteristics are ported to the new style using
Statement. -
setOldStyleCharacteristics
Deprecated. -
getNeedsAttention
public boolean getNeedsAttention()Indicate if this factor value needs attention.If this is the case, there might be a
FactorValueNeedsAttentionEventevent attached to the owningExpressionExperimentwith additional details. -
setNeedsAttention
public void setNeedsAttention(boolean troubled) -
getSupportingEvidence
-
setSupportingEvidence
-
getSecurityOwner
Description copied from interface:SecuredChildObtain the security owner of this secured child.Secured children should always have an owner in the ACL table, but that relation is not always direct or mapped. A more robust way of checking is to look up the parent via
AclObjectIdentity.getParentObject(). If the security owner cannot be determined, the implementation should define a setter so it can be temporarily assigned for creating the ACL identity.- Specified by:
getSecurityOwnerin interfaceSecuredChild- Specified by:
getSecurityOwnerin interfaceSecuredChild<ExpressionExperiment>- Returns:
- the security owner, or null if not known.
-
setSecurityOwner
-
hashCode
public int hashCode()Description copied from class:AbstractIdentifiableImportant note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.- Specified by:
hashCodein classAbstractIdentifiable
-
equals
Description copied from class:AbstractIdentifiableImportant note: Two objects with the same class and non-null ID must be considered equal. If one or both IDs are nulls, the rest of the state can be used to determine equality.- Specified by:
equalsin classAbstractIdentifiable
-
toString
- Overrides:
toStringin classAbstractIdentifiable
-
getMeasurement()orgetCharacteristics()to retrieve the value.