@Entity
public class Photograph
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Photograph() |
Photograph(java.lang.Long id) |
Photograph(java.lang.Long id,
java.util.Date taken) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
ImageAngle |
getAngle()
Indicates the angle at which the picture was taken.
|
java.lang.String |
getFilename()
The filename and extension of the photograph.
|
java.lang.Long |
getFilesize()
Returns the size of the file in bytes.
|
java.lang.String |
getFullPath()
Provides a full absolute file path to this file.
|
java.lang.String |
getHashstring()
Returns a hash string representing the file.
|
java.lang.Long |
getId()
Identification/Primary Key for Photographs.
|
Location |
getLocation()
Indicates in what location the picture resides (amongst other pictures).
|
java.lang.String |
getRelativepath()
The path to the filename, a relative path based from the Location
|
java.util.Collection<Tag> |
getTagCollection()
Returns the tags associated with this picture.
|
java.util.Date |
getTaken()
Indicates when the picture was taken.
|
int |
hashCode() |
boolean |
hasNoAngle()
Indicates if an angle has been stored in the entity.
|
void |
setAngle(ImageAngle angle)
Sets the angle of the photograph.
|
void |
setFilename(java.lang.String filename)
Sets the appropriate filename of the picture.
|
void |
setFilesize(java.lang.Long filesize)
Sets the filesize of the file in bytes.
|
void |
setHashstring(java.lang.String hashstring)
Sets the hashstring.
|
void |
setId(java.lang.Long id)
Sets the id of this Photograph.
|
void |
setLocation(Location location)
Sets the location.
|
void |
setRelativepath(java.lang.String relativepath)
Sets the relative path.
|
void |
setTagCollection(java.util.Collection<Tag> tagCollection)
Sets the tags collection.
|
void |
setTaken(java.util.Date taken)
Sets the date at which the picture was taken.
|
java.lang.String |
toString() |
public Photograph()
public Photograph(java.lang.Long id)
public Photograph(java.lang.Long id, java.util.Date taken)
public java.lang.Long getId()
public void setId(java.lang.Long id)
id
- new primary key/unique number of this photographpublic java.lang.String getFilename()
public void setFilename(java.lang.String filename)
filename
- String containing the filename without a path.public java.lang.String getRelativepath()
getLocation()
public void setRelativepath(java.lang.String relativepath)
relativepath
- String, for example "vacation/2010"public java.util.Date getTaken()
public void setTaken(java.util.Date taken)
taken
- the new date when the picture was taken.public Location getLocation()
public void setLocation(Location location)
location
- the new location of this photograph.public java.util.Collection<Tag> getTagCollection()
public java.lang.String getFullPath()
public void setTagCollection(java.util.Collection<Tag> tagCollection)
tagCollection
- a new tags collection.public java.lang.Long getFilesize()
public void setFilesize(java.lang.Long filesize)
filesize
- a new filesize.public java.lang.String getHashstring()
public void setHashstring(java.lang.String hashstring)
hashstring
- the new hash string.public boolean hasNoAngle()
public ImageAngle getAngle() throws com.drew.imaging.ImageProcessingException, java.io.IOException, com.drew.metadata.MetadataException
com.drew.imaging.ImageProcessingException
java.io.IOException
com.drew.metadata.MetadataException
public void setAngle(ImageAngle angle)
angle
- the new angle, may be null.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object