de.infoasset.platform.services.asset
Class Role<To extends Asset>

java.lang.Object
  extended by de.infoasset.platform.services.asset.ModelProperty
      extended by de.infoasset.platform.services.asset.Role<To>
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
ManyRole, OneRole

public abstract class Role<To extends Asset>
extends ModelProperty
implements java.lang.Cloneable


Nested Class Summary
static class Role.Multiplicity
           
 
Nested classes/interfaces inherited from class de.infoasset.platform.services.asset.ModelProperty
ModelProperty.ApplyEvent
 
Field Summary
static java.lang.String OTHER_MULTIPLICITY
           
static java.lang.reflect.Method OTHER_ROLE_METHOD
           
static java.lang.String OTHER_ROLE_STRING
           
protected  RoleImp<To> roleImp
           
 
Fields inherited from class de.infoasset.platform.services.asset.ModelProperty
UNDERSCORE, validators
 
Constructor Summary
Role()
           
 
Method Summary
 void changed()
           
 void changed(To t)
           
protected  void changedHook()
           
 boolean exists(To t)
           
 StringAttribute getAttributeSignature()
          See "How to Formulate Joins" in QueryingDoc.
protected  net.sf.ehcache.Element getCached()
           
protected  java.lang.String getCacheKey()
           
 java.util.Iterator<Asset> getIterator()
           
abstract  Role.Multiplicity getMultiplicity()
           
 java.lang.String getNameHint()
           
 java.lang.Class<? extends Asset> getOtherClass()
           
 java.lang.String getOtherKind()
           
 Asset getOtherPrototype()
           
protected  Role getOtherPrototypeRole()
           
 java.lang.String getOtherRoleName()
           
 Query getQuery(To t)
           
protected static net.sf.ehcache.Cache getRoleCache()
           
 void invalidateCache()
           
 boolean isAnonymous()
           
 boolean isCached()
           
 boolean isCascadeDelete()
           
 boolean isDynamicProperty()
           
 boolean notNull()
           
 boolean otherIsCompoundValue()
           
protected  Role.Multiplicity otherMultiplicity()
           
protected  Role otherRole()
           
protected  void setRoleImp(RoleImp<To> roleImp)
           
 java.lang.String toString()
           
 java.lang.String validationMessage()
           
 
Methods inherited from class de.infoasset.platform.services.asset.ModelProperty
applyWhen, checkName, containsValidator, getAttributeName, getChoices, getFullyQualifiedName, getLabel, getListeners, getLongHelp, getName, getOrdinalNumber, getOwnerAsset, getParameterName, getParameterNameIdSafe, getPropertyName, getPropertyNameFromParameterName, getShortHelp, getUid, getValidators, init, isCloneable, isValid, isVersionable, isWatchable, putValidators, setName, showInGenericViews
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

roleImp

protected RoleImp<To extends Asset> roleImp

OTHER_ROLE_METHOD

public static final java.lang.reflect.Method OTHER_ROLE_METHOD

OTHER_ROLE_STRING

public static final java.lang.String OTHER_ROLE_STRING

OTHER_MULTIPLICITY

public static final java.lang.String OTHER_MULTIPLICITY
Constructor Detail

Role

public Role()
Method Detail

getOtherClass

public java.lang.Class<? extends Asset> getOtherClass()

setRoleImp

protected void setRoleImp(RoleImp<To> roleImp)

getOtherPrototypeRole

protected final Role getOtherPrototypeRole()

getCacheKey

protected java.lang.String getCacheKey()

getRoleCache

protected static net.sf.ehcache.Cache getRoleCache()

invalidateCache

public void invalidateCache()

getCached

protected net.sf.ehcache.Element getCached()

exists

public final boolean exists(To t)

changedHook

protected void changedHook()

changed

public final void changed(To t)

changed

public final void changed()

getQuery

public final Query getQuery(To t)

isCascadeDelete

public boolean isCascadeDelete()

otherRole

protected Role otherRole()

getMultiplicity

public abstract Role.Multiplicity getMultiplicity()

otherMultiplicity

protected Role.Multiplicity otherMultiplicity()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getOtherKind

public java.lang.String getOtherKind()

getOtherRoleName

public java.lang.String getOtherRoleName()

getOtherPrototype

public Asset getOtherPrototype()

otherIsCompoundValue

public boolean otherIsCompoundValue()

validationMessage

public final java.lang.String validationMessage()
Specified by:
validationMessage in class ModelProperty

getIterator

public java.util.Iterator<Asset> getIterator()

getNameHint

public java.lang.String getNameHint()

getAttributeSignature

public StringAttribute getAttributeSignature()
See "How to Formulate Joins" in QueryingDoc.


isAnonymous

public boolean isAnonymous()

notNull

public boolean notNull()

isCached

public boolean isCached()

isDynamicProperty

public boolean isDynamicProperty()
Overrides:
isDynamicProperty in class ModelProperty