Class PartnerInfo
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.DatabaseBlobBean
org.deltava.beans.ImageBean
org.deltava.beans.PartnerInfo
- All Implemented Interfaces:
Serializable, Cloneable, Comparable<Object>, Auditable, IDBean, Cacheable
-
Nested Class Summary
Nested classes/interfaces inherited from class ImageBean
ImageBean.ImageFormat -
Field Summary
Fields inherited from class DatabaseBlobBean
_buffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the object ID for this auditable object.Returns the partner description text.Returns the database image type.Returns the time of the last partner referral.getName()Returns the partner name.intReturns the partner priority.intReturns the partner referral count.getURL()Returns the partner URL.voidsetDescription(String desc) Updates the partner description text.voidsetLastRefer(Instant dt) Updates the time of the last partner referral.voidUpdates the partner name.voidsetPriority(int p) Updates the partner priority.voidsetReferCount(int cnt) Updates the partner referral count.voidUpdates the partner URL.Methods inherited from class ImageBean
checkParam, getFormat, getHasImage, getHeight, getSize, getWidth, load, load, setFormat, setHeight, setSize, setWidthModifier and TypeMethodDescriptionprotected static voidcheckParam(int param, String msg) Helper method to check for negative numeric parameters.Returns the type of image.booleanQueries if the bean has an associated Image.intReturns the height of the image.intgetSize()Returns the size of the image.intgetWidth()Returns the width of the image.final voidload(byte[] buffer) Updates the image buffer.final voidload(InputStream is) Loads an image into the buffer.voidUpdates the image format.voidsetHeight(int y) Updates the height of this image.voidsetSize(int newSize) Updates the size of this image.voidsetWidth(int x) Updates the width of this image.Methods inherited from class DatabaseBlobBean
clear, getInputStream, isLoadedMethods inherited from class DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Auditable
getAuditType, isCrossAppModifier and TypeMethodDescriptiondefault StringReturns the audit type for this auditable object.default booleanReturns whether this object is within multiple web applications.
-
Constructor Details
-
PartnerInfo
-
-
Method Details
-
getAuditID
Description copied from interface:AuditableReturns the object ID for this auditable object.- Specified by:
getAuditIDin interfaceAuditable- Returns:
- the ID
-
getImageType
Description copied from class:ImageBeanReturns the database image type.- Specified by:
getImageTypein classImageBean- Returns:
- an ImageType
-
getName
-
getURL
-
getDescription
-
getReferCount
public int getReferCount()Returns the partner referral count.- Returns:
- the count
-
getLastRefer
Returns the time of the last partner referral.- Returns:
- the date/time of the last link out
-
getPriority
public int getPriority()Returns the partner priority.- Returns:
- the priority
-
setName
-
setURL
-
setDescription
Updates the partner description text.- Parameters:
desc- the description
-
setReferCount
public void setReferCount(int cnt) Updates the partner referral count.- Parameters:
cnt- the referral count
-
setLastRefer
Updates the time of the last partner referral.- Parameters:
dt- the date/time of the last link out
-
setPriority
public void setPriority(int p) Updates the partner priority.- Parameters:
p- the priority
-