java.lang.Object
com.iamsoft.util.ui.javafx.table.JpaLazyLoadingSupport<E>
-
Property Summary
PropertiesTypePropertyDescriptionfinal javafx.beans.property.ReadOnlyObjectProperty<JpaLazyLoadingSupport.State> -
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJpaLazyLoadingSupport(jakarta.persistence.EntityManagerFactory pEntityMgrFactory, Class<E> pEntityClass) JpaLazyLoadingSupport(jakarta.persistence.EntityManagerFactory pEntityMgrFactory, Class<E> pEntityClass, int pMaxEntitiesPerTransaction) -
Method Summary
Modifier and TypeMethodDescriptionvoidUse this method to abort current and pending DB write operations, if any.voidclose()voidclose(javafx.scene.Scene pScene) configureAutoRefresh(long pRefreshRateMillis, Runnable pRefreshItemCountOp, Runnable pRefreshViewOp) Consumer<jakarta.persistence.EntityManagerFactory> Consumer<jakarta.persistence.EntityManagerFactory> createRemoveTask(String pWhereClause, javafx.util.Pair<String, Object>... pParamPairs) getState()Gets the value of thestateproperty.booleanbooleanisIdle()voidSometimes it is easier to implement thread-safe stream supplier instead of directly providing thread-safe stream.voidNote that specified stream should be thread-safe.voidvoidfinal javafx.beans.property.ReadOnlyObjectProperty<JpaLazyLoadingSupport.State>
-
Property Details
-
state
public final javafx.beans.property.ReadOnlyObjectProperty<JpaLazyLoadingSupport.State> stateProperty- See Also:
-
-
Constructor Details
-
JpaLazyLoadingSupport
-
JpaLazyLoadingSupport
-
-
Method Details
-
stateProperty
public final javafx.beans.property.ReadOnlyObjectProperty<JpaLazyLoadingSupport.State> stateProperty()- Returns:
- the
stateproperty - See Also:
-
getState
Gets the value of thestateproperty.- Property description:
- Returns:
- the value of the
stateproperty - See Also:
-
configureAutoRefresh
public Runnable configureAutoRefresh(long pRefreshRateMillis, Runnable pRefreshItemCountOp, Runnable pRefreshViewOp) - Returns:
- a runnable to stop auto-refresh
-
abort
Use this method to abort current and pending DB write operations, if any. -
isAborting
public boolean isAborting() -
isIdle
public boolean isIdle() -
persist
Note that specified stream should be thread-safe. -
persist
Sometimes it is easier to implement thread-safe stream supplier instead of directly providing thread-safe stream. -
removeAll
public void removeAll() -
createRemoveAllTask
-
remove
-
createRemoveTask
-
close
public void close() -
close
public void close(javafx.scene.Scene pScene)
-