Class EntityContextFactory
java.lang.Object
de.xima.fc.jpa.context.EntityContextFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IEntityContextstatic IEntityContextstatic IEntityContextnewEntityContext(Benutzer ben) Deprecated.static IEntityContextnewEntityContext(IUser user) static IEntityContextstatic IEntityContextDeprecated.UsenewSystemEntityContext()instead.static IEntityContextstatic IEntityContextreusedEntityContext(IEntityContext toReuse) Wraps anIEntityContextand prevents it from being closed.
-
Field Details
-
FACTORY
-
-
Constructor Details
-
EntityContextFactory
public EntityContextFactory()
-
-
Method Details
-
newEntityContext
-
newEntityContext
-
newEntityContext
-
newAnonymousEntityContext
-
newSystemEntityContext
-
newSetupEntityContext
Deprecated.UsenewSystemEntityContext()instead. -
newEntityContext
Deprecated.UsenewEntityContext(IUser)instead. -
reusedEntityContext
Wraps anIEntityContextand prevents it from being closed. Useful when you want to reuse another entity context, but still use the try-with-resources syntax.- Parameters:
toReuse- The entity context to reuse.- Returns:
- A wrapper that prevents the entity context from being closed.
- Since:
- 8.3.0
-
newEntityContext(IUser)instead.