java.lang.Object
st.orm.template.impl.RefFactoryImpl
- All Implemented Interfaces:
RefFactory
Implementation of
RefFactory.- Since:
- 1.3
-
Constructor Summary
ConstructorsConstructorDescriptionRefFactoryImpl(QueryFactory factory, ModelBuilder modelBuilder, Predicate<? super Provider> providerFilter) RefFactoryImpl(QueryTemplate template) -
Method Summary
-
Constructor Details
-
RefFactoryImpl
public RefFactoryImpl(@Nonnull QueryFactory factory, @Nonnull ModelBuilder modelBuilder, @Nullable Predicate<? super Provider> providerFilter) -
RefFactoryImpl
-
-
Method Details
-
create
Creates a ref instance for the specified recordtypeandpk. This method can be used to generate ref instances for entities, projections and regular records.- Specified by:
createin interfaceRefFactory- Type Parameters:
T- record type.ID- primary key type.- Parameters:
type- record type.pk- primary key.- Returns:
- ref instance.
-
create
Creates a ref instance for the specifiedrecord,typeandpk. This method can be used to generate ref instances for entities, projections and regular records. The object returned by this method already contains the fetched record.- Specified by:
createin interfaceRefFactory- Type Parameters:
T- record type.ID- primary key type.- Parameters:
pk- primary key.- Returns:
- ref instance.
-