|
Jive Forums API (5.5.20.2-oracle) 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 Watch
public long getObjectID()
Watch
getObjectID
in interface Watch
public int getObjectType()
Watch
getObjectType
in interface Watch
public int getWatchType()
Watch
getWatchType
in interface Watch
public void setWatchType(int watchType)
Watch
setWatchType
in interface Watch
watchType
- the type of watch this should be.public boolean isExpirable()
Watch
isExpirable
in interface Watch
public void setExpirable(boolean expirable)
Watch
setExpirable
in interface Watch
expirable
- 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.ExternalizableLite
java.io.IOException
public void writeExternal(java.io.DataOutput out) throws java.io.IOException
writeExternal
in interface com.tangosol.io.ExternalizableLite
java.io.IOException
protected 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 |