11/**
22 The MIT License (MIT)
33
4- Copyright (c) 2010-2019 head systems, ltd
4+ Copyright (c) 2010-2020 head systems, ltd
55
66 Permission is hereby granted, free of charge, to any person obtaining a copy of
77 this software and associated documentation files (the "Software"), to deal in
@@ -32,7 +32,7 @@ this software and associated documentation files (the "Software"), to deal in
3232import javax .persistence .*;
3333import java .io .Serializable ;
3434import java .lang .reflect .Modifier ;
35- import java .net . MalformedURLException ;
35+ import java .util . List ;
3636
3737/**
3838 * @author Yuriy Glotanov
@@ -87,7 +87,7 @@ public class Cursor implements Serializable {
8787 @ Transient
8888 private SQLSelect sqlStmt ;
8989 @ Transient
90- private String resultTargetName ;
90+ private List < String > resultTargetNames ;
9191 @ Transient
9292 private Session session ;
9393 @ Transient
@@ -101,22 +101,21 @@ public Cursor() {
101101 this .state = STATE_IDLE ;
102102 }
103103
104- public Cursor (String sql , String resultTargetName , int type ) {
104+ public Cursor (String sql , List < String > resultTargetNames , int type ) {
105105 this .state = STATE_IDLE ;
106106 this .sql = sql ;
107- this .resultTargetName = resultTargetName ;
107+ this .resultTargetNames = resultTargetNames ;
108108 this .type = type ;
109109 }
110110
111111 public Cursor (String sql , int type ) {
112112 this .state = STATE_IDLE ;
113- this .cursorId = cursorId ;
114113 this .sql = sql ;
115114 this .type = type ;
116115 }
117116
118117 //constructor for low-level storage function (initial first-time load table descriptions from datafile)
119- public Cursor (DataChunk chunk ) throws IllegalAccessException , ClassNotFoundException , InternalException , MalformedURLException {
118+ public Cursor (DataChunk chunk ) throws IllegalAccessException , InternalException {
120119 final Object [] dcs = chunk .getDcs ().getValueSet ();
121120 final Class c = this .getClass ();
122121 final java .lang .reflect .Field [] f = c .getDeclaredFields ();
@@ -174,8 +173,8 @@ public void setSqlStmt(SQLSelect sqlStmt) {
174173 this .sqlStmt = sqlStmt ;
175174 }
176175
177- public String getResultTargetName () {
178- return resultTargetName ;
176+ public List < String > getResultTargetNames () {
177+ return resultTargetNames ;
179178 }
180179
181180 public Session getSession () {
0 commit comments