de.infoasset.platform.services.asset
Class Role<To extends Asset>
java.lang.Object
de.infoasset.platform.services.asset.ModelProperty
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
|
Constructor Summary |
Role()
|
| 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 |
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
Role
public Role()
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