org.tynamo.descriptor
Class CollectionDescriptor
java.lang.Object
org.tynamo.descriptor.TynamoDescriptor
org.tynamo.descriptor.TynamoPropertyDescriptorImpl
org.tynamo.descriptor.CollectionDescriptor
- All Implemented Interfaces:
- Serializable, Cloneable, Descriptor, Extensible, TynamoPropertyDescriptor
public class CollectionDescriptor
- extends TynamoPropertyDescriptorImpl
- See Also:
- Serialized Form
|
Field Summary |
protected static org.apache.commons.logging.Log |
LOG
|
| Methods inherited from class org.tynamo.descriptor.TynamoPropertyDescriptorImpl |
copyFrom, equals, getBeanType, getFormat, getIndex, getLength, getName, getPropertyType, isBoolean, isDate, isEmbedded, isIdentifier, isLarge, isNumeric, isObjectReference, isReadOnly, isRequired, isRichText, isSearchable, isString, isSummary, setBeanType, setFormat, setIndex, setLarge, setLength, setName, setReadOnly, setRequired, setRichText, setSearchable, setSummary |
| Methods inherited from class org.tynamo.descriptor.TynamoDescriptor |
addExtension, addExtension, copyExtensionsFrom, getExtension, getExtension, getExtensions, getType, isHidden, removeExtension, removeExtension, setExtensions, setHidden, setType, supportsExtension, supportsExtension |
LOG
protected static final org.apache.commons.logging.Log LOG
CollectionDescriptor
public CollectionDescriptor(Class beanType,
TynamoPropertyDescriptor descriptor)
CollectionDescriptor
public CollectionDescriptor(Class beanType,
CollectionDescriptor collectionDescriptor)
CollectionDescriptor
public CollectionDescriptor(Class beanType,
String name,
Class type)
isCollection
public boolean isCollection()
- (non-Javadoc)
- Specified by:
isCollection in interface TynamoPropertyDescriptor- Overrides:
isCollection in class TynamoPropertyDescriptorImpl
- Returns:
- Returns the collection.
- See Also:
TynamoPropertyDescriptorImpl.isCollection()
getElementType
public Class getElementType()
- Returns:
- Returns the elementType.
setElementType
public void setElementType(Class elementType)
- Parameters:
elementType - The elementType to set.
getInverseProperty
public String getInverseProperty()
setInverseProperty
public void setInverseProperty(String inverseProperty)
isOneToMany
public boolean isOneToMany()
- Is this a OneToMany collection? or a ManyToMany collection?
setOneToMany
public void setOneToMany(boolean oneToMany)
isChildRelationship
public boolean isChildRelationship()
- Returns:
- Returns the childRelationship.
setChildRelationship
public void setChildRelationship(boolean childRelationship)
- Parameters:
childRelationship - The childRelationship to set.
getAddExpression
public String getAddExpression()
setAddExpression
public void setAddExpression(String addExpression)
getRemoveExpression
public String getRemoveExpression()
setRemoveExpression
public void setRemoveExpression(String removeExpression)
getSwapExpression
public String getSwapExpression()
setSwapExpression
public void setSwapExpression(String swapExpression)
isAllowRemove
public boolean isAllowRemove()
setAllowRemove
public void setAllowRemove(boolean allowRemove)
clone
public Object clone()
- Specified by:
clone in interface Descriptor- Overrides:
clone in class TynamoPropertyDescriptorImpl
Copyright © 2004-2009. All Rights Reserved.