Implementation Note
All entity-mappings within the hierarchy share the same EntityDiscriminatorMapping instance.
jakarta.persistence.DiscriminatorColumn , jakarta.persistence.DiscriminatorValue
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public BasicFetch | generateFetch(FetchParent
The parent of the Fetch we are generating fetchParent, NavigablePath The overall path within the graph fetchablePath, FetchTiming The requested fetch timing fetchTiming, boolean selected, String resultVariable, DomainResultCreationState creationState)Redeclares org. |
| public default int | getFetchableKey()
Implements org. FetchableContainer.
|
| public default String | getFetchableName()
Implements org. |
| public default FetchOptions | getMappedFetchOptions()
Implements org. |
| public default String | getPartName()
Implements org. |
| public default FetchStyle | |
| public default FetchTiming | |
| public boolean | |
| public static boolean | |
| public DiscriminatorValueDetails | |
| public Expression | resolveSqlExpression(NavigablePath navigablePath, JdbcMapping
The JDBC mapping to use. This allows opting between
the "domain result type" (aka Class) and the "underlying type" (Integer, String, etc) jdbcMappingToUse, TableGroup tableGroup, SqlAstCreationState creationState)Redeclares org. |
| DISCRIMINATOR_ROLE_NAME | back to summary |
|---|---|
| public static final String DISCRIMINATOR_ROLE_NAME | |
| LEGACY_DISCRIMINATOR_NAME | back to summary |
|---|---|
| public static final String LEGACY_DISCRIMINATOR_NAME | |
| generateFetch | back to summary |
|---|---|
| public BasicFetch Redeclares org. Doc from org. Generates a Fetch of this fetchable
| |
| getFetchableKey | back to summary |
|---|---|
| public default int getFetchableKey() Implements org. Doc from org. The key that identifies this Fetchable within a
The main intent of this key is to index e.g.
| |
| getFetchableName | back to summary |
|---|---|
| public default String getFetchableName() Implements org. Doc from org. The name of the fetchable. This is the part's "local name".
| |
| getMappedFetchOptions | back to summary |
|---|---|
| public default FetchOptions getMappedFetchOptions() Implements org. Doc from org. The configured fetch timing and style
| |
| getPartName | back to summary |
|---|---|
| public default String getPartName() Implements org. Doc from org. The local part name, which is generally the unqualified role name
| |
| getStyle | back to summary |
|---|---|
| public default FetchStyle getStyle() Implements org.
| |
| getTiming | back to summary |
|---|---|
| public default FetchTiming getTiming() Implements org.
| |
| hasPhysicalColumn | back to summary |
|---|---|
| public boolean hasPhysicalColumn() Is the discriminator defined by a physical column? | |
| matchesRoleName | back to summary |
|---|---|
| public static boolean matchesRoleName(String name) | |
| resolveDiscriminatorValue | back to summary |
|---|---|
| public DiscriminatorValueDetails resolveDiscriminatorValue(Object value) Retrieve the details for a particular discriminator value.
Returns | |
| resolveSqlExpression | back to summary |
|---|---|
| public Expression resolveSqlExpression(NavigablePath navigablePath, JdbcMapping jdbcMappingToUse, TableGroup tableGroup, SqlAstCreationState creationState) Redeclares org. Create the appropriate SQL expression for this discriminator
| |