Class SQLResult


  • public class SQLResult
    extends Object
    A metadata object that defines how a row in a result set can be converted to result objects. SQLResult can be mapped to a single scalar, a single entity or a mix of scalars and entities that is represented as an Object[].
    Since:
    3.0
    • Field Detail

      • resultDescriptors

        protected List<Object> resultDescriptors
    • Constructor Detail

      • SQLResult

        public SQLResult()
        Creates an unnamed SQLResultSet.
      • SQLResult

        public SQLResult​(String name)
        Creates a named SQLResultSet.
    • Method Detail

      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • addEntityResult

        public void addEntityResult​(EntityResult entityResult)
      • addColumnResult

        public void addColumnResult​(String column)
        Adds a result set column name to the mapping.