@Entity
public class Location
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
checkPath()
Makes sure this location points to a readable directory
that actually exists.
|
boolean |
equals(java.lang.Object object) |
java.lang.String |
getFilepath()
The absolute file path correctly identifying the location on the filesystem.
|
java.lang.Long |
getId()
Unique identified/primary key.
|
int |
hashCode() |
void |
setFilepath(java.lang.String filepath)
Sets the file path.
|
void |
setId(java.lang.Long id)
Sets the unique identifier/primary key.
|
java.lang.String |
toString() |
public java.lang.Long getId()
public void setId(java.lang.Long id)
id
- the new primary key.public java.lang.String getFilepath()
public void setFilepath(java.lang.String filepath)
filepath
- the new filepath.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public void checkPath() throws GalleryException
GalleryException
- thrown when one of the requirements
fails.public java.lang.String toString()
toString
in class java.lang.Object