|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.forum.database.DbWatch
public class DbWatch
Database implementation of the Watch interface.
| Field Summary |
|---|
| Fields inherited from interface com.jivesoftware.forum.Watch |
|---|
BATCH_EMAIL_WATCH, EMAIL_WATCH, NORMAL_WATCH |
| Constructor Summary | |
|---|---|
DbWatch()
Constructor for internal use only. |
|
DbWatch(long userID,
int objectType,
long objectID,
int watchType,
boolean expirable)
|
|
| Method Summary | |
|---|---|
protected void |
deleteFromDb()
|
void |
deleteFromDb(java.sql.Connection con)
|
int |
getCachedSize()
Returns the approximate size of the Object in bytes. |
long |
getObjectID()
Returns the object ID of the object being watched. |
int |
getObjectType()
Returns the object type of the object being watched. |
User |
getUser()
Returns the user who is associated with this watch. |
int |
getWatchType()
Returns the type of the watch. |
protected void |
insertIntoDb()
|
boolean |
isExpirable()
Returns whether this watch is expirable or not. |
void |
readExternal(java.io.DataInput in)
|
void |
setExpirable(boolean expirable)
Sets whether this watch is expirable or not. |
void |
setWatchType(int watchType)
Sets the watch type. |
void |
writeExternal(java.io.DataOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbWatch(long userID,
int objectType,
long objectID,
int watchType,
boolean expirable)
public DbWatch()
| Method Detail |
|---|
public User getUser()
Watch
getUser in interface Watchpublic long getObjectID()
Watch
getObjectID in interface Watchpublic int getObjectType()
Watch
getObjectType in interface Watchpublic int getWatchType()
Watch
getWatchType in interface Watchpublic void setWatchType(int watchType)
Watch
setWatchType in interface WatchwatchType - the type of watch this should be.public boolean isExpirable()
Watch
isExpirable in interface Watchpublic void setExpirable(boolean expirable)
Watch
setExpirable in interface Watchexpirable - true if the watch is expirable, false if not.public int getCachedSize()
Cacheable
getCachedSize in interface Cacheable
public void readExternal(java.io.DataInput in)
throws java.io.IOException
readExternal in interface com.tangosol.io.ExternalizableLitejava.io.IOException
public void writeExternal(java.io.DataOutput out)
throws java.io.IOException
writeExternal in interface com.tangosol.io.ExternalizableLitejava.io.IOExceptionprotected void insertIntoDb()
protected void deleteFromDb()
public void deleteFromDb(java.sql.Connection con)
throws java.sql.SQLException
java.sql.SQLException
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||