org.sciplore.resources
Class Institution
java.lang.Object
org.sciplore.resources.Resource
org.sciplore.resources.Institution
@Entity
public class Institution
- extends Resource
Methods inherited from class org.sciplore.resources.Resource |
save |
INSTITUTION_TYPE_UNIVERSITY
public static final short INSTITUTION_TYPE_UNIVERSITY
- See Also:
- Constant Field Values
INSTITUTION_TYPE_PUBLISHER
public static final short INSTITUTION_TYPE_PUBLISHER
- See Also:
- Constant Field Values
INSTITUTION_TYPE_SCHOOL
public static final short INSTITUTION_TYPE_SCHOOL
- See Also:
- Constant Field Values
INSTITUTION_TYPE_MISC
public static final short INSTITUTION_TYPE_MISC
- See Also:
- Constant Field Values
Institution
public Institution()
Institution
public Institution(Integer id)
Institution
public Institution(String name)
Institution
public Institution(String name,
Short type)
getInstitution
public static Institution getInstitution(Institution i)
getInstitution
public static Institution getInstitution(String name)
sync
public static Institution sync(Institution i)
getId
public Integer getId()
- Returns:
- the id
setId
public Institution setId(Integer id)
- Parameters:
id
- the id to set
getName
public String getName()
- Returns:
- the name
setName
public Institution setName(String name)
- Parameters:
name
- the name to set
getType
public Short getType()
- Returns:
- the type
setType
public Institution setType(Short type)
- Parameters:
type
- the type to set
getUrl
public String getUrl()
- Returns:
- the url
setUrl
public Institution setUrl(String url)
- Parameters:
url
- the url to set
getCountry
public String getCountry()
- Returns:
- the country
setCountry
public Institution setCountry(String country)
- Parameters:
country
- the country to set
getState
public String getState()
- Returns:
- the state
setState
public Institution setState(String state)
- Parameters:
state
- the state to set
getCity
public String getCity()
- Returns:
- the city
setCity
public Institution setCity(String city)
- Parameters:
city
- the city to set
getPostalcode
public String getPostalcode()
- Returns:
- the postalcode
setPostalcode
public Institution setPostalcode(String postalcode)
- Parameters:
postalcode
- the postalcode to set
getAddress
public String getAddress()
- Returns:
- the adress
setAddress
public Institution setAddress(String address)
- Parameters:
adress
- the adress to set
getValid
public Short getValid()
- Returns:
- the valid
setValid
public Institution setValid(Short valid)
- Parameters:
valid
- the valid to set
getParent
public Institution getParent()
- Returns:
- the parent
setParent
public Institution setParent(Institution parent)
- Parameters:
parent
- the parent to set
toString
public String toString()
- Overrides:
toString
in class Object
getChildren
public Set<Institution> getChildren()
- Returns:
- the children
setChildren
public void setChildren(Set<Institution> children)
- Parameters:
children
- the children to set
getDocuments
public Set<Document> getDocuments()
- Returns:
- the documents
setDocuments
public void setDocuments(Set<Document> documents)
- Parameters:
documents
- the documents to set