JFormDesigner 5.0.4 Annotations

com.jformdesigner.annotations
Annotation Type PropertyDesc.ExtraPersistenceDelegate


@Retention(value=RUNTIME)
public static @interface PropertyDesc.ExtraPersistenceDelegate

This annotation can be used to specify extra persistence delegates. Use the attribute PropertyDesc.persistenceDelegate() to specify a persistence delegate for a property value. Use extra persistence delegates for classes that are referenced by a property value. E.g. if a property value references classes MyClass1 and MyClass2:

 @PropertyDesc(
     extraPersistenceDelegates={
         @ExtraPersistenceDelegate(cls=MyClass1.class, delegate=MyClass1PersistenceDelegate.class),
         @ExtraPersistenceDelegate(cls=MyClass2.class, delegate=MyClass2PersistenceDelegate.class)
     }
 )
 public MyComplexClass getSomething() {
     return something;
 }
 

Since:
5.0
See Also:
PropertyDesc.extraPersistenceDelegates()

Required Element Summary
 Class<?> cls
          The class for which the persistence delegate should be used.
 Class<? extends PersistenceDelegate> delegate
          Persistence delegate that should be used to persist an instance the class specified in cls().
 

Element Detail

cls

public abstract Class<?> cls
The class for which the persistence delegate should be used.


delegate

public abstract Class<? extends PersistenceDelegate> delegate
Persistence delegate that should be used to persist an instance the class specified in cls().


JFormDesigner 5.0.4 Annotations

Copyright (C) 2004-2012 FormDev Software GmbH. All rights reserved.