org.granite.client.tide.collections.javafx
Class AbstractJavaFXManagedPersistentAssociation
java.lang.Object
org.granite.client.tide.collections.javafx.AbstractJavaFXManagedPersistentAssociation
- All Implemented Interfaces:
- LazyableCollection, ManagedPersistentAssociation, Wrapper, PropertyHolder
- Direct Known Subclasses:
- JavaFXManagedPersistentCollection, JavaFXManagedPersistentMap
public abstract class AbstractJavaFXManagedPersistentAssociation
- extends Object
- implements ManagedPersistentAssociation, PropertyHolder, Wrapper
Internal implementation of persistent collection handling automatic lazy loading.
Used for wrapping persistent collections received from the server.
Should not be used directly.
- Author:
- William DRAI
AbstractJavaFXManagedPersistentAssociation
protected AbstractJavaFXManagedPersistentAssociation(Identifiable entity,
String propertyName)
getOwner
public Identifiable getOwner()
- Specified by:
getOwner in interface ManagedPersistentAssociation
getPropertyName
public String getPropertyName()
- Specified by:
getPropertyName in interface ManagedPersistentAssociation
setServerSession
public void setServerSession(ServerSession serverSession)
- Specified by:
setServerSession in interface ManagedPersistentAssociation
getServerSession
public ServerSession getServerSession()
getWrappedObject
public Object getWrappedObject()
- Specified by:
getWrappedObject in interface Wrapper
propertyResultHandler
public void propertyResultHandler(String propName,
ResultEvent event)
setProperty
public void setProperty(String propertyName,
Object value)
- Specified by:
setProperty in interface PropertyHolder
isInitialized
public boolean isInitialized()
- Specified by:
isInitialized in interface LazyableCollection
isInitializing
public boolean isInitializing()
initializing
public void initializing()
- Specified by:
initializing in interface LazyableCollection
addListener
public void addListener(ManagedPersistentAssociation.InitializationListener listener)
- Specified by:
addListener in interface ManagedPersistentAssociation
removeListener
public void removeListener(ManagedPersistentAssociation.InitializationListener listener)
checkForRead
protected boolean checkForRead()
checkForRead
protected boolean checkForRead(boolean requestInitialization)
checkForWrite
protected void checkForWrite()
initialize
public void initialize()
- Specified by:
initialize in interface LazyableCollection
uninitialize
public void uninitialize()
- Specified by:
uninitialize in interface LazyableCollection
withInitialized
public void withInitialized(ManagedPersistentAssociation.InitializationCallback callback)
- Specified by:
withInitialized in interface ManagedPersistentAssociation
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object