Class SpeciesRepository
- java.lang.Object
-
- de.narimo.georepo.server.api.species.SpeciesRepository
-
public class SpeciesRepository extends Object
-
-
Constructor Summary
Constructors Constructor Description SpeciesRepository()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckSpeciesTableExists(int layerId)static voidcreateSpeciesTable(int layerId)static List<Species>getSpecies(int layerId)Should we return all available species?static voidinsertSpecies(int layerId, Integer userId, Species species)
-
-
-
Method Detail
-
checkSpeciesTableExists
public static boolean checkSpeciesTableExists(int layerId) throws SQLException- Throws:
SQLException
-
getSpecies
public static List<Species> getSpecies(int layerId) throws SQLException
Should we return all available species?- Parameters:
layerId-- Returns:
- Throws:
SQLException
-
insertSpecies
public static void insertSpecies(int layerId, Integer userId, Species species) throws SQLException- Throws:
SQLException
-
createSpeciesTable
public static void createSpeciesTable(int layerId) throws SQLException- Throws:
SQLException
-
-