| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Object[] | |
| private boolean | |
| private boolean | |
| private int[] | |
| private Object | |
| private EntityEntry | |
| private boolean | |
| private int | |
| private Object[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object[] | |
| public int[] | |
| public Object | |
| public EntityEntry | |
| public int | |
| public Object[] | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | resetAndReuseEventInstance(Object
same as constructor parameter entity, EntityEntry same as constructor parameter entry)This is a terrible anti-pattern, but particular circumstances call for being able to reuse the same event instance: this is otherwise allocated in hot loops and since each event is escaping the scope it's actually causing allocation issues. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| allowedToReuse | back to summary |
|---|---|
| private boolean allowedToReuse | |
| databaseSnapshot | back to summary |
|---|---|
| private Object[] databaseSnapshot | |
| dirtyCheckHandledByInterceptor | back to summary |
|---|---|
| private boolean dirtyCheckHandledByInterceptor | |
| dirtyCheckPossible | back to summary |
|---|---|
| private boolean dirtyCheckPossible | |
| dirtyProperties | back to summary |
|---|---|
| private int[] dirtyProperties | |
| entity | back to summary |
|---|---|
| private Object entity | |
| entityEntry | back to summary |
|---|---|
| private EntityEntry entityEntry | |
| hasDirtyCollection | back to summary |
|---|---|
| private boolean hasDirtyCollection | |
| instanceGenerationId | back to summary |
|---|---|
| private int instanceGenerationId | |
| propertyValues | back to summary |
|---|---|
| private Object[] propertyValues | |
| FlushEntityEvent | back to summary |
|---|---|
| public FlushEntityEvent(EventSource source, Object entity, EntityEntry entry) | |
| getDatabaseSnapshot | back to summary |
|---|---|
| public Object[] getDatabaseSnapshot() | |
| getDirtyProperties | back to summary |
|---|---|
| public int[] getDirtyProperties() | |
| getEntity | back to summary |
|---|---|
| public Object getEntity() | |
| getEntityEntry | back to summary |
|---|---|
| public EntityEntry getEntityEntry() | |
| getInstanceGenerationId | back to summary |
|---|---|
| public int getInstanceGenerationId() | |
| getPropertyValues | back to summary |
|---|---|
| public Object[] getPropertyValues() | |
| hasDatabaseSnapshot | back to summary |
|---|---|
| public boolean hasDatabaseSnapshot() | |
| hasDirtyCollection | back to summary |
|---|---|
| public boolean hasDirtyCollection() | |
| hasDirtyProperties | back to summary |
|---|---|
| public boolean hasDirtyProperties() | |
| isAllowedToReuse | back to summary |
|---|---|
| public boolean isAllowedToReuse() | |
| isDirtyCheckHandledByInterceptor | back to summary |
|---|---|
| public boolean isDirtyCheckHandledByInterceptor() | |
| isDirtyCheckPossible | back to summary |
|---|---|
| public boolean isDirtyCheckPossible() | |
| resetAndReuseEventInstance | back to summary |
|---|---|
| public void resetAndReuseEventInstance(Object entity, EntityEntry entry) This is a terrible anti-pattern, but particular circumstances call for being able to reuse the same event instance: this is otherwise allocated in hot loops and since each event is escaping the scope it's actually causing allocation issues. The flush event does not appear to be used recursively so this is currently safe to do, nevertheless we add an allowedToReuse flag to ensure only instances whose purpose has completed are being reused. N.B. two out of three parameters from the constructor are reset: the same EventSource is implied on reuse.
| |
| setAllowedToReuse | back to summary |
|---|---|
| public void setAllowedToReuse(final boolean allowedToReuse) | |
| setDatabaseSnapshot | back to summary |
|---|---|
| public void setDatabaseSnapshot(Object[] databaseSnapshot) | |
| setDirtyCheckHandledByInterceptor | back to summary |
|---|---|
| public void setDirtyCheckHandledByInterceptor(boolean dirtyCheckHandledByInterceptor) | |
| setDirtyCheckPossible | back to summary |
|---|---|
| public void setDirtyCheckPossible(boolean dirtyCheckPossible) | |
| setDirtyProperties | back to summary |
|---|---|
| public void setDirtyProperties(int[] dirtyProperties) | |
| setHasDirtyCollection | back to summary |
|---|---|
| public void setHasDirtyCollection(boolean hasDirtyCollection) | |
| setInstanceGenerationId | back to summary |
|---|---|
| public void setInstanceGenerationId(final int instanceGenerationId) | |
| setPropertyValues | back to summary |
|---|---|
| public void setPropertyValues(Object[] propertyValues) | |