Package org.apache.cayenne.map

# Class EmbeddedResult

java.lang.Object
org.apache.cayenne.map.EmbeddedResult

public class EmbeddedResult extends Object
A metadata object that provides mapping of a set of result columns to an Embeddable object. Used by `SQLResult`. Note that fields in the EmbeddedResult are not required to follow the order of columns in the actual query, and can be added in the arbitrary order.

Since:
  4.2

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `EmbeddedResult(Embeddable embeddable, int size)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addAttribute(ObjAttribute attr)`
  `Embeddable`
  `getEmbeddable()`
  `Map<String,String>`
  `getFields()`

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

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

- ## Constructor Details

  - ### EmbeddedResult

    public EmbeddedResult(Embeddable embeddable, int size)

- ## Method Details

  - ### addAttribute

    public void addAttribute(ObjAttribute attr)

  - ### getFields

    public Map<String,String> getFields()

  - ### getEmbeddable

    public Embeddable getEmbeddable()