Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

what is the differnece between read(template) and read(sqlquery)

I am eager to know the difference between the two methods provided in reading the object(s) from gigasapces.

  1. gigaSpace.read(SQLQuery)
  2. gigaSpace.read(template)

For ex: Employee template= new Employee(); template.setFirstName("John"); Employee emp = gigaSpace.read(template);

I have the below entries from gigasapce:

Employee _Firstname Lastname_ John Smith John William John Marry

What will happen if more matching entries in the gigasapces. Which one will return what is the order?

Edited by: Gopinathan Mani on May 3, 2013 12:37 AM

what is the differnece between read(template) and read(sqlquery)

I am eager to know the difference between the two methods provided in reading the object(s) from gigasapces.

  1. gigaSpace.read(SQLQuery)
  2. gigaSpace.read(template)

For ex: Employee template= new Employee(); template.setFirstName("John"); Employee emp = gigaSpace.read(template);

I have the below entries from gigasapce:

Employee _Firstname Lastname_ John Smith John William John Marry

What will happen if more matching entries in the gigasapces. Which one will return what is the order?

Edited by: Gopinathan Mani on May 3, 2013 12:37 AM