org.gbanga.api
Class EntitiesFromMemory

java.lang.Object
  extended by org.gbanga.api.EntitiesFromMemory

public class EntitiesFromMemory
extends java.lang.Object

Helper structure representing the entities resulting from a query to the memory DB.

Details about JSON serialization

For the JSON object serialization, the field names are used. Eg.

 {
   gbangoos: [
               { id: 2382 },
               { id: 2343 }
             ]
 }
 

Fields annotated with PrimaryKey are used, if not the whole object is sent. HideIfNull indicates that the field is not sent at all, if the value is not set.

Author:
Agustin

Field Summary
 Cell[] cells
          List with Cells containing the key
 Gbangoo[] gbangoos
          List with Gbangoos
 Infrastructure[] infrastructures
          List of Infrastructures
 Player[] players
          List of Players
 
Constructor Summary
EntitiesFromMemory()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cells

@HideIfNull
public Cell[] cells
List with Cells containing the key


gbangoos

@HideIfNull
public Gbangoo[] gbangoos
List with Gbangoos


infrastructures

@HideIfNull
public Infrastructure[] infrastructures
List of Infrastructures


players

@HideIfNull
public Player[] players
List of Players

Constructor Detail

EntitiesFromMemory

public EntitiesFromMemory()