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 TypeMethodDescriptionvoid
Use this method to abort current and pending DB write operations, if any.void
close()
void
close
(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 thestate
property.boolean
boolean
isIdle()
void
Sometimes it is easier to implement thread-safe stream supplier instead of directly providing thread-safe stream.void
Note that specified stream should be thread-safe.void
void
final 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
state
property - See Also:
-
getState
Gets the value of thestate
property.- Property description:
- Returns:
- the value of the
state
property - 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)
-