public class Pic
extends java.lang.Object
Constructor and Description |
---|
Pic()
Bean constructor
|
Pic(boolean importPic,
java.lang.String name)
Create a Pic with this importPic attribute and name
|
Modifier and Type | Method and Description |
---|---|
int |
getCacheDir()
Fetch the cache subdirectory that this pic was written to.
|
java.util.Date |
getDate() |
int |
getHeight() |
java.lang.String |
getLocation()
Get the relative directory of this pic
|
long |
getMd5()
Get the md5 checksum for this pic
|
java.lang.String |
getName() |
int |
getPid() |
int |
getRid()
Get the Root id for where this pic is stored
|
int |
getWidth() |
boolean |
isImportPic() |
void |
setCacheDir(int cacheDir)
Set which cache subdirectory this pic is written to.
|
void |
setHeight(int height) |
void |
setImportPic(boolean importPic)
If this is an importPic, then set this flag
|
void |
setLocation(java.lang.String location)
Set the relative directory of this pic
|
void |
setMd5(long md5)
Set the md5 checksum for this pic
|
void |
setName(java.lang.String name) |
void |
setPid(int pid)
Set the Picture Id
|
void |
setRid(int rid)
Set the Root id for where this pic is stored
|
void |
setWidth(int width) |
public Pic()
public Pic(boolean importPic, java.lang.String name)
importPic
- true if this is an importPic.name
- The filename of the pic to be importedpublic void setPid(int pid)
pid
- public int getPid()
public void setName(java.lang.String name)
public java.lang.String getName()
public void setWidth(int width)
public int getWidth()
public void setHeight(int height)
public int getHeight()
public void setLocation(java.lang.String location)
location
- public java.lang.String getLocation()
public java.util.Date getDate()
public int getRid()
public void setRid(int rid)
rid
- the rid to setpublic boolean isImportPic()
public void setImportPic(boolean importPic)
importPic
- the importPic to setpublic int getCacheDir()
public void setCacheDir(int cacheDir)
cacheDir
- the cacheDir to setpublic long getMd5()
public void setMd5(long md5)
md5
- the md5 to set