org.tynamo.descriptor
Class CollectionDescriptor

java.lang.Object
  extended by org.tynamo.descriptor.TynamoDescriptor
      extended by org.tynamo.descriptor.TynamoPropertyDescriptorImpl
          extended by 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.slf4j.Logger logger
           
 
Fields inherited from class org.tynamo.descriptor.TynamoDescriptor
beanType
 
Fields inherited from interface org.tynamo.descriptor.TynamoPropertyDescriptor
DEFAULT_LENGTH
 
Constructor Summary
CollectionDescriptor(Class beanType, CollectionDescriptor collectionDescriptor)
           
CollectionDescriptor(Class beanType, String name, Class type)
           
CollectionDescriptor(Class beanType, TynamoPropertyDescriptor descriptor)
           
 
Method Summary
 Object clone()
           
 String getAddExpression()
           
 Class getElementType()
           
 String getInverseProperty()
           
 String getRemoveExpression()
           
 String getSwapExpression()
           
 boolean isAllowRemove()
           
 boolean isChildRelationship()
           
 boolean isCollection()
          (non-Javadoc)
 boolean isOneToMany()
          Is this a OneToMany collection? or a ManyToMany collection?
 void setAddExpression(String addExpression)
           
 void setAllowRemove(boolean allowRemove)
           
 void setChildRelationship(boolean childRelationship)
           
 void setElementType(Class elementType)
           
 void setInverseProperty(String inverseProperty)
           
 void setOneToMany(boolean oneToMany)
           
 void setRemoveExpression(String removeExpression)
           
 void setSwapExpression(String swapExpression)
           
 
Methods inherited from class org.tynamo.descriptor.TynamoPropertyDescriptorImpl
copyFrom, equals, getFormat, getLength, getName, getPropertyType, hashCode, isBoolean, isDate, isEmbedded, isIdentifier, isLarge, isNumeric, isObjectReference, isReadOnly, isRequired, isRichText, isSearchable, isString, setFormat, setLarge, setLength, setName, setPropertyType, setReadOnly, setRequired, setRichText, setSearchable
 
Methods inherited from class org.tynamo.descriptor.TynamoDescriptor
addExtension, addExtension, copyExtensionsFrom, getBeanType, getExtension, getExtension, getExtensions, getType, isNonVisual, removeExtension, removeExtension, setBeanType, setExtensions, setNonVisual, supportsExtension, supportsExtension
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tynamo.descriptor.TynamoPropertyDescriptor
getBeanType, setBeanType
 
Methods inherited from interface org.tynamo.descriptor.Descriptor
isNonVisual, setNonVisual
 
Methods inherited from interface org.tynamo.descriptor.extension.Extensible
addExtension, addExtension, getExtension, getExtension, getExtensions, removeExtension, removeExtension, supportsExtension, supportsExtension
 

Field Detail

logger

protected static final org.slf4j.Logger logger
Constructor Detail

CollectionDescriptor

public CollectionDescriptor(Class beanType,
                            TynamoPropertyDescriptor descriptor)

CollectionDescriptor

public CollectionDescriptor(Class beanType,
                            CollectionDescriptor collectionDescriptor)

CollectionDescriptor

public CollectionDescriptor(Class beanType,
                            String name,
                            Class type)
Method Detail

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-2012. All Rights Reserved.