Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.5.0)

E10653-06


oracle.adfinternal.model.adapter.bean
Class BeanStructureDefinitionBuilder

java.lang.Object
  extended by oracle.adfinternal.model.adapter.bean.BeanStructureDefinitionBuilder

Direct Known Subclasses:
BeanHandler

public class BeanStructureDefinitionBuilder
extends java.lang.Object

Bean structure definition builder

This class generates structures according to the JSR 227 specification from a bean class.

Data controls that deals with JavaBean data can use this class to generate data and structure.

Since:
11.1.2

Constructor Summary
BeanStructureDefinitionBuilder()
           
BeanStructureDefinitionBuilder(java.lang.String beanClass, boolean recursive)
           

 

Method Summary
protected  void addReadOnlyCollectionOperations(AccessorDef accessorDef)
          Adds read-only ADF Collection operations to an AccessorDefinition.
protected  void addReadOnlyCollectionOperations(MethodReturnDef returnDef)
          Adds read-only ADF Collection operations to an MethodDefinition's return definition.
protected  void addSingleValueReadOnlyOperations(AccessorDef accessorDef)
          Adds create and remove operations to a non-Collection type AccessorDef.
protected  void addSingleValueReadOnlyOperations(MethodReturnDef returnDef)
          Adds create and remove operations to a non-Collection type AccessorDef.
protected  void addSingleValueUpdateableOperations(AccessorDef accessorDef)
          Adds create and remove operations to a non-Collection type AccessorDef.
protected  void addTransactionalOperations(StructureDef rootDCDef)
          Adds default ADF Transactional operations to data control's StructureDefinition.
protected  void addUpdateableCollectionOperations(AccessorDef accessorDef)
          Adds editable ADF Collection operations to an AccessorDefinition.
protected  void addUpdateableCollectionOperations(MethodReturnDef returnDef)
          Adds editable ADF Collection operations to an MethodDefinition's return definition.
static StructureDefinition buildRecursiveStructureDefinition(java.lang.String beanClass)
           
 StructureDefinition buildStructure()
          Builder structureDef
 StructureDefinition buildStructure(java.lang.String beanClass)
          Builder structureDef from beanClass
 StructureDefinition buildStructure(StructureDef dcDef, java.lang.String beanClass)
          Add to dcDef
static StructureDefinition buildStructureDefinition(java.lang.String beanClass)
          Builds the StructureDef that describes the structure of this data control.
 boolean generateCollectionOperations()
           
 java.lang.String getBeanClass()
           
protected  java.util.Set getIgnoredClasses()
          Set of classes which should not be traversed during method lookup.
 StructureDefinition getStructure(java.lang.String beanClass)
           
 void setBeanClass(java.lang.String beanClass)
           
 void setGenerateCollectionOperations(boolean bSet)
           
protected  void setIgnoredClass(java.lang.String className)
          Set ignore this className
 void setRecursive(boolean recursive)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

BeanStructureDefinitionBuilder

public BeanStructureDefinitionBuilder()

BeanStructureDefinitionBuilder

public BeanStructureDefinitionBuilder(java.lang.String beanClass,
                                      boolean recursive)

Method Detail

buildStructureDefinition

public static StructureDefinition buildStructureDefinition(java.lang.String beanClass)
Builds the StructureDef that describes the structure of this data control.

buildRecursiveStructureDefinition

public static StructureDefinition buildRecursiveStructureDefinition(java.lang.String beanClass)

setBeanClass

public void setBeanClass(java.lang.String beanClass)

getBeanClass

public java.lang.String getBeanClass()

setRecursive

public void setRecursive(boolean recursive)

setGenerateCollectionOperations

public void setGenerateCollectionOperations(boolean bSet)

generateCollectionOperations

public boolean generateCollectionOperations()

addUpdateableCollectionOperations

protected void addUpdateableCollectionOperations(AccessorDef accessorDef)
Adds editable ADF Collection operations to an AccessorDefinition.

addReadOnlyCollectionOperations

protected void addReadOnlyCollectionOperations(AccessorDef accessorDef)
Adds read-only ADF Collection operations to an AccessorDefinition.

addUpdateableCollectionOperations

protected void addUpdateableCollectionOperations(MethodReturnDef returnDef)
Adds editable ADF Collection operations to an MethodDefinition's return definition.

addReadOnlyCollectionOperations

protected void addReadOnlyCollectionOperations(MethodReturnDef returnDef)
Adds read-only ADF Collection operations to an MethodDefinition's return definition.

addSingleValueUpdateableOperations

protected void addSingleValueUpdateableOperations(AccessorDef accessorDef)
Adds create and remove operations to a non-Collection type AccessorDef.

addSingleValueReadOnlyOperations

protected void addSingleValueReadOnlyOperations(AccessorDef accessorDef)
Adds create and remove operations to a non-Collection type AccessorDef.

addSingleValueReadOnlyOperations

protected void addSingleValueReadOnlyOperations(MethodReturnDef returnDef)
Adds create and remove operations to a non-Collection type AccessorDef.

addTransactionalOperations

protected void addTransactionalOperations(StructureDef rootDCDef)
Adds default ADF Transactional operations to data control's StructureDefinition.

setIgnoredClass

protected void setIgnoredClass(java.lang.String className)
Set ignore this className
Parameters:
className -

buildStructure

public StructureDefinition buildStructure()
Builder structureDef
Returns:
StructureDefinition

buildStructure

public StructureDefinition buildStructure(java.lang.String beanClass)
Builder structureDef from beanClass
Parameters:
beanClass -
Returns:
StructureDefinition

buildStructure

public StructureDefinition buildStructure(StructureDef dcDef,
                                          java.lang.String beanClass)
Add to dcDef
Parameters:
dcDef -
beanClass -
Returns:
the structure definition of beanClass

getStructure

public StructureDefinition getStructure(java.lang.String beanClass)
Returns:
null if it is not in the map

getIgnoredClasses

protected java.util.Set getIgnoredClasses()
Set of classes which should not be traversed during method lookup. By default, java.lang.Object is the only class whose methods will not be returned.
Returns:
a set of fully qualified class name Strings

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.5.0)

E10653-06


Copyright © 1997, 2011, Oracle. All rights reserved.