Package org.hibernate.loader.plan.spi
Interface Fetch
-
- All Known Subinterfaces:
AnyAttributeFetch
,AttributeFetch
,CollectionAttributeFetch
,CompositeAttributeFetch
,CompositeFetch
,EntityFetch
public interface Fetch
Contract for associations that are being fetched. NOTE : can represent components/embeddables
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAdditionalJoinConditions()
Type
getFetchedType()
Get the Hibernate Type that describes the fetched attributeFetchStrategy
getFetchStrategy()
Gets the fetch strategy for this fetch.PropertyPath
getPropertyPath()
Get the property path to this fetchFetchSource
getSource()
Obtain the owner of this fetch.boolean
isNullable()
Is this fetch nullable?java.lang.String[]
toSqlSelectFragments(java.lang.String alias)
Generates the SQL select fragments for this fetch.
-
-
-
Method Detail
-
getSource
FetchSource getSource()
Obtain the owner of this fetch.- Returns:
- The fetch owner.
-
getPropertyPath
PropertyPath getPropertyPath()
Get the property path to this fetch- Returns:
- The property path
-
getFetchStrategy
FetchStrategy getFetchStrategy()
Gets the fetch strategy for this fetch.- Returns:
- the fetch strategy for this fetch.
-
getFetchedType
Type getFetchedType()
Get the Hibernate Type that describes the fetched attribute- Returns:
- The Type of the fetched attribute
-
isNullable
boolean isNullable()
Is this fetch nullable?- Returns:
- true, if this fetch is nullable; false, otherwise.
-
getAdditionalJoinConditions
java.lang.String getAdditionalJoinConditions()
-
toSqlSelectFragments
java.lang.String[] toSqlSelectFragments(java.lang.String alias)
Generates the SQL select fragments for this fetch. A select fragment is the column and formula references.- Returns:
- the select fragments
-
-