Constructor and Description |
---|
StateDao() |
Modifier and Type | Method and Description |
---|---|
Long |
add(String name)
adds a new State to the state table with no short name and code
|
Long |
add(String name,
String shortName,
int code)
adds a new State to the state table
|
List<State> |
get()
Get all state-Object
|
State |
get(long id)
selects a state by its id
|
State |
get(String name)
selects a state by its name
|
public Long add(String name)
name
- public Long add(String name, String shortName, int code)
name
- the name of the countryshortName
- the short name of the countrycode
- the code of the countrypublic State get(long id)
id
- public State get(String name)
name
- Copyright © 2012–2016 Apache Software Foundation. All rights reserved.