org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced
Class Resource

java.lang.Object
  extended by org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.DataModel
      extended by org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.Resource

public class Resource
extends DataModel


Constructor Summary
Resource(org.gcube_system.namespaces.application.aquamaps.types.Resource toLoad)
           
Resource(ResourceType type, int searchId)
           
Resource(ResultSet rs)
           
 
Method Summary
 void addSource(Resource toAdd)
           
 boolean equals(Object obj)
           
 AlgorithmType getAlgorithm()
           
 String getAuthor()
           
static AlgorithmType getDefaultAlgorithmType()
           
 Boolean getDefaultSource()
           
 String getDescription()
           
 String getDisclaimer()
           
 Field getField(MetaSourceFields fieldName)
           
 Long getGenerationTime()
           
 ArrayList<Field> getParameters()
           
 String getProvenance()
           
 Long getRowCount()
           
 int getSearchId()
           
 ArrayList<Integer> getSourceHCAFIds()
           
 ArrayList<String> getSourceHCAFTables()
           
 ArrayList<Integer> getSourceHSPECIds()
           
 ArrayList<String> getSourceHSPECTables()
           
 ArrayList<Integer> getSourceHSPENIds()
           
 ArrayList<String> getSourceHSPENTables()
           
 ArrayList<Integer> getSourceOccurrenceCellsIds()
           
 ArrayList<String> getSourceOccurrenceCellsTables()
           
 ResourceStatus getStatus()
           
 String getTableName()
           
 String getTitle()
           
 ResourceType getType()
           
 int hashCode()
           
static List<Resource> load(org.gcube_system.namespaces.application.aquamaps.types.ResourceArray toLoad)
           
 void removeSource(Resource toRemove)
           
 void removeSourceId(Integer id)
           
 void removeSourceTableName(String tableName)
           
 void setAlgorithm(AlgorithmType algorithm)
           
 void setAuthor(String author)
           
 void setDefaultSource(Boolean defaultSource)
           
 void setDescription(String description)
           
 void setDisclaimer(String disclaimer)
           
 boolean setField(Field f)
           
 void setGenerationTime(Long generationTime)
           
 void setParameters(ArrayList<Field> parameters)
           
 void setProvenance(String provenance)
           
 void setRowCount(Long rowCount)
           
 void setSearchId(int searchId)
           
 void setSourceHCAFIds(ArrayList<Integer> sourceHCAFIds)
           
 void setSourceHCAFTables(ArrayList<String> sourceHCAFTables)
           
 void setSourceHSPECIds(ArrayList<Integer> sourceHSPECIds)
           
 void setSourceHSPECTables(ArrayList<String> sourceHSPECTables)
           
 void setSourceHSPENIds(ArrayList<Integer> sourceHSPENIds)
           
 void setSourceHSPENTables(ArrayList<String> sourceHSPENTables)
           
 void setSourceOccurrenceCellsIds(ArrayList<Integer> sourceOccurrenceCellsIds)
           
 void setSourceOccurrenceCellsTables(ArrayList<String> sourceOccurrenceCellsTables)
           
 void setStatus(ResourceStatus status)
           
 void setTableName(String tableName)
           
 void setTitle(String title)
           
 void setType(ResourceType type)
           
 List<Field> toRow()
           
 String toString()
           
 org.gcube_system.namespaces.application.aquamaps.types.Resource toStubsVersion()
           
static org.gcube_system.namespaces.application.aquamaps.types.ResourceArray toStubsVersion(List<Resource> toConvert)
           
 
Methods inherited from class org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.DataModel
fromXML, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Resource

public Resource(ResourceType type,
                int searchId)

Resource

public Resource(org.gcube_system.namespaces.application.aquamaps.types.Resource toLoad)

Resource

public Resource(ResultSet rs)
         throws Exception
Throws:
Exception
Method Detail

toStubsVersion

public org.gcube_system.namespaces.application.aquamaps.types.Resource toStubsVersion()
                                                                               throws JSONException
Throws:
JSONException

load

public static List<Resource> load(org.gcube_system.namespaces.application.aquamaps.types.ResourceArray toLoad)

toStubsVersion

public static org.gcube_system.namespaces.application.aquamaps.types.ResourceArray toStubsVersion(List<Resource> toConvert)
                                                                                           throws JSONException
Throws:
JSONException

setField

public boolean setField(Field f)
                 throws JSONException
Throws:
JSONException

getField

public Field getField(MetaSourceFields fieldName)
               throws JSONException
Throws:
JSONException

toRow

public List<Field> toRow()
                  throws JSONException
Throws:
JSONException

getType

public ResourceType getType()

setType

public void setType(ResourceType type)

getSearchId

public int getSearchId()

setSearchId

public void setSearchId(int searchId)

getTitle

public String getTitle()

setTitle

public void setTitle(String title)

getTableName

public String getTableName()

setTableName

public void setTableName(String tableName)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getAuthor

public String getAuthor()

setAuthor

public void setAuthor(String author)

getDisclaimer

public String getDisclaimer()

setDisclaimer

public void setDisclaimer(String disclaimer)

getProvenance

public String getProvenance()

setProvenance

public void setProvenance(String provenance)

getGenerationTime

public Long getGenerationTime()

setGenerationTime

public void setGenerationTime(Long generationTime)

getSourceHCAFIds

public ArrayList<Integer> getSourceHCAFIds()

setSourceHCAFIds

public void setSourceHCAFIds(ArrayList<Integer> sourceHCAFIds)

getSourceHSPECIds

public ArrayList<Integer> getSourceHSPECIds()

setSourceHSPECIds

public void setSourceHSPECIds(ArrayList<Integer> sourceHSPECIds)

getParameters

public ArrayList<Field> getParameters()

setParameters

public void setParameters(ArrayList<Field> parameters)

getStatus

public ResourceStatus getStatus()

setStatus

public void setStatus(ResourceStatus status)

getAlgorithm

public AlgorithmType getAlgorithm()

setAlgorithm

public void setAlgorithm(AlgorithmType algorithm)

getDefaultSource

public Boolean getDefaultSource()

setDefaultSource

public void setDefaultSource(Boolean defaultSource)

getRowCount

public Long getRowCount()

setRowCount

public void setRowCount(Long rowCount)

getDefaultAlgorithmType

public static AlgorithmType getDefaultAlgorithmType()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getSourceHSPENIds

public ArrayList<Integer> getSourceHSPENIds()

setSourceHSPENIds

public void setSourceHSPENIds(ArrayList<Integer> sourceHSPENIds)

getSourceOccurrenceCellsIds

public ArrayList<Integer> getSourceOccurrenceCellsIds()

setSourceOccurrenceCellsIds

public void setSourceOccurrenceCellsIds(ArrayList<Integer> sourceOccurrenceCellsIds)

getSourceHSPECTables

public ArrayList<String> getSourceHSPECTables()

setSourceHSPECTables

public void setSourceHSPECTables(ArrayList<String> sourceHSPECTables)

getSourceHSPENTables

public ArrayList<String> getSourceHSPENTables()

setSourceHSPENTables

public void setSourceHSPENTables(ArrayList<String> sourceHSPENTables)

getSourceHCAFTables

public ArrayList<String> getSourceHCAFTables()

setSourceHCAFTables

public void setSourceHCAFTables(ArrayList<String> sourceHCAFTables)

getSourceOccurrenceCellsTables

public ArrayList<String> getSourceOccurrenceCellsTables()

setSourceOccurrenceCellsTables

public void setSourceOccurrenceCellsTables(ArrayList<String> sourceOccurrenceCellsTables)

addSource

public void addSource(Resource toAdd)

removeSource

public void removeSource(Resource toRemove)

removeSourceId

public void removeSourceId(Integer id)

removeSourceTableName

public void removeSourceTableName(String tableName)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.