org.apache.cayenne.reflect

## Class FieldEmbeddableDescriptor

- java.lang.Object
- - org.apache.cayenne.reflect.FieldEmbeddableDescriptor

- All Implemented Interfaces:
    EmbeddableDescriptor

      public class FieldEmbeddableDescriptor
      extends Object
      implements EmbeddableDescriptor

  A default POJO embeddable descriptor.
  Since:
    3.0

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Embeddable` | `embeddable`
    `protected Class<?>` | `embeddableClass`
    `protected Accessor` | `embeddedPropertyAccessor`
    `protected Accessor` | `ownerAccessor`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `FieldEmbeddableDescriptor(Embeddable embeddable, String ownerProperty, String embeddedPropertyProperty)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `createObject(Object owner, String embeddedProperty)` Creates a new instance of an embeddable class described by this object.
    `Embeddable` | `getEmbeddable()` Returns a metadata object for this descriptor.
    `Class<?>` | `getObjectClass()` Returns an embeddable class mapped by this descriptor.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### embeddableClass

          protected Class<?> embeddableClass

    - #### embeddable

          protected Embeddable embeddable

    - #### ownerAccessor

          protected Accessor ownerAccessor

    - #### embeddedPropertyAccessor

          protected Accessor embeddedPropertyAccessor

  - ### Constructor Detail

    - #### FieldEmbeddableDescriptor

          public FieldEmbeddableDescriptor(Embeddable embeddable,
                                   String ownerProperty,
                                   String embeddedPropertyProperty)

  - ### Method Detail

    - #### createObject

          public Object createObject(Object owner,
                            String embeddedProperty)

      Description copied from interface: `EmbeddableDescriptor`
      Creates a new instance of an embeddable class described by this object.
      Specified by:
        `createObject` in interface `EmbeddableDescriptor`

    - #### getEmbeddable

          public Embeddable getEmbeddable()

      Description copied from interface: `EmbeddableDescriptor`
      Returns a metadata object for this descriptor.
      Specified by:
        `getEmbeddable` in interface `EmbeddableDescriptor`

    - #### getObjectClass

          public Class<?> getObjectClass()

      Description copied from interface: `EmbeddableDescriptor`
      Returns an embeddable class mapped by this descriptor.
      Specified by:
        `getObjectClass` in interface `EmbeddableDescriptor`

Copyright © 2001–2014 Apache Cayenne. All rights reserved.