org.apache.portals.graffito.jcr.mapper.model
Class BeanDescriptor

java.lang.Object
  extended by org.apache.portals.graffito.jcr.mapper.model.BeanDescriptor

public class BeanDescriptor
extends java.lang.Object

BeanDescriptor is used by the mapper to read general information on a bean field

Author:
Lombart Christophe , Alexandru Popescu

Constructor Summary
BeanDescriptor()
           
 
Method Summary
 ClassDescriptor getClassDescriptor()
           
 java.lang.String getConverter()
          Get the BeanConverter fully qualified name or null if none specified by the bean descriptor.
 java.lang.String getFieldName()
           
 java.lang.String getJcrName()
           
 java.lang.String getJcrNodeType()
          Getter for property jcrNodeType.
 java.lang.String getJcrOnParentVersion()
          Getter for property jcrOnParentVersion.
 boolean isAutoInsert()
           
 boolean isAutoRetrieve()
           
 boolean isAutoUpdate()
           
 boolean isInline()
          Are the current bean properties inlined in the parent
 boolean isJcrAutoCreated()
          Getter for property jcrAutoCreated.
 boolean isJcrMandatory()
          Getter for property jcrMandatory.
 boolean isJcrProtected()
          Getter for property jcrProtected.
 boolean isJcrSameNameSiblings()
          Getter for property jcrSameNameSiblings.
 boolean isProxy()
           
 void setAutoInsert(boolean autoInsert)
           
 void setAutoRetrieve(boolean autoRetrieve)
           
 void setAutoUpdate(boolean autoUpdate)
           
 void setClassDescriptor(ClassDescriptor descriptor)
           
 void setConverter(java.lang.String converterClass)
          Sets the fully qualified name of a BeanConverter to be used.
 void setFieldName(java.lang.String fieldName)
           
 void setInline(boolean flag)
          Sets if the bean's properties should be inlined in the parent instead of being persisted on a subnode
 void setJcrAutoCreated(boolean value)
          Setter for property jcrAutoCreated.
 void setJcrMandatory(boolean value)
          Setter for property jcrMandatory.
 void setJcrName(java.lang.String jcrName)
           
 void setJcrNodeType(java.lang.String value)
          Setter for property jcrNodeType.
 void setJcrOnParentVersion(java.lang.String value)
          Setter for property jcrOnParentVersion.
 void setJcrProtected(boolean value)
          Setter for property jcrProtected.
 void setJcrSameNameSiblings(boolean value)
          Setter for property jcrSameNameSiblings.
 void setProxy(boolean proxy)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanDescriptor

public BeanDescriptor()
Method Detail

getFieldName

public java.lang.String getFieldName()
Returns:
Returns the fieldName.

setFieldName

public void setFieldName(java.lang.String fieldName)
Parameters:
fieldName - The fieldName to set.

getJcrName

public java.lang.String getJcrName()
Returns:
Returns the jcrName.

setJcrName

public void setJcrName(java.lang.String jcrName)
Parameters:
jcrName - The jcrName to set.

isProxy

public boolean isProxy()
Returns:
Returns the proxy.

setProxy

public void setProxy(boolean proxy)
Parameters:
proxy - The proxy to set.

isAutoInsert

public boolean isAutoInsert()

setAutoInsert

public void setAutoInsert(boolean autoInsert)

isAutoRetrieve

public boolean isAutoRetrieve()

setAutoRetrieve

public void setAutoRetrieve(boolean autoRetrieve)

isAutoUpdate

public boolean isAutoUpdate()

setAutoUpdate

public void setAutoUpdate(boolean autoUpdate)

isInline

public boolean isInline()
Are the current bean properties inlined in the parent

Returns:
true if bean's properties are inlined in the parent node

setInline

public void setInline(boolean flag)
Sets if the bean's properties should be inlined in the parent instead of being persisted on a subnode

Parameters:
flag - true if the bean properties should be inlined

getConverter

public java.lang.String getConverter()
Get the BeanConverter fully qualified name or null if none specified by the bean descriptor.

Returns:
fully qualified class name or null

setConverter

public void setConverter(java.lang.String converterClass)
Sets the fully qualified name of a BeanConverter to be used.

Parameters:
converterClass - a fully qualified class name

getJcrNodeType

public java.lang.String getJcrNodeType()
Getter for property jcrNodeType.

Returns:
jcrNodeType

setJcrNodeType

public void setJcrNodeType(java.lang.String value)
Setter for property jcrNodeType.

Parameters:
value - jcrNodeType

isJcrAutoCreated

public boolean isJcrAutoCreated()
Getter for property jcrAutoCreated.

Returns:
jcrAutoCreated

setJcrAutoCreated

public void setJcrAutoCreated(boolean value)
Setter for property jcrAutoCreated.

Parameters:
value - jcrAutoCreated

isJcrMandatory

public boolean isJcrMandatory()
Getter for property jcrMandatory.

Returns:
jcrMandatory

setJcrMandatory

public void setJcrMandatory(boolean value)
Setter for property jcrMandatory.

Parameters:
value - jcrMandatory

getJcrOnParentVersion

public java.lang.String getJcrOnParentVersion()
Getter for property jcrOnParentVersion.

Returns:
jcrOnParentVersion

setJcrOnParentVersion

public void setJcrOnParentVersion(java.lang.String value)
Setter for property jcrOnParentVersion.

Parameters:
value - jcrOnParentVersion

isJcrProtected

public boolean isJcrProtected()
Getter for property jcrProtected.

Returns:
jcrProtected

setJcrProtected

public void setJcrProtected(boolean value)
Setter for property jcrProtected.

Parameters:
value - jcrProtected

isJcrSameNameSiblings

public boolean isJcrSameNameSiblings()
Getter for property jcrSameNameSiblings.

Returns:
jcrSameNameSiblings

setJcrSameNameSiblings

public void setJcrSameNameSiblings(boolean value)
Setter for property jcrSameNameSiblings.

Parameters:
value - jcrSameNameSiblings

setClassDescriptor

public void setClassDescriptor(ClassDescriptor descriptor)
Parameters:
descriptor -

getClassDescriptor

public ClassDescriptor getClassDescriptor()
Returns:
Returns the classDescriptor.

toString

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


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.