net.sourceforge.fixagora.basis.shared.model.persistence
Class AbstractBusinessObject

java.lang.Object
  extended by net.sourceforge.fixagora.basis.shared.model.persistence.AbstractBusinessObject
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<java.lang.Object>, PersistenceInterface
Direct Known Subclasses:
AbstractBusinessComponent, BankCalendar, BankCalendarGroup, BusinessSection, BuySideBookGroup, BuySideQuotePage, Counterparty, CounterpartyGroup, ExcelTradeCaptureGroup, FIXAcceptorGroup, FIXInitiatorGroup, FRole, FRoleGroup, FSecurity, FSecurityGroup, FUser, FUserGroup, SAPTradeCaptureGroup, SellSideBookGroup, SellSideQuotePage, SpreadSheetGroup, TradeCaptureGroup, Trader

@Entity
public abstract class AbstractBusinessObject
extends java.lang.Object
implements java.io.Serializable, PersistenceInterface

The Class AbstractBusinessObject.

See Also:
Serialized Form

Constructor Summary
AbstractBusinessObject()
           
 
Method Summary
 int compareTo(java.lang.Object object)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAdditionalTreeText()
          Gets the additional tree text.
 java.awt.Color getAdditionalTreeTextColor()
          Gets the additional tree text color.
abstract  java.lang.String getBusinessObjectName()
          Gets the business object name.
 java.util.Set<FRole> getExecuteRoles()
          Gets the execute roles.
 java.lang.String getIcon()
          Gets the icon.
 long getId()
          Gets the id.
 java.lang.String getLargeIcon()
          Gets the large icon.
 java.util.Date getModificationDate()
          Gets the modification date.
 FUser getModificationUser()
          Gets the modification user.
 java.lang.String getName()
          Gets the name.
 AbstractBusinessObject getParent()
          Gets the parent.
 double getPosition()
          Gets the position.
 java.util.Set<FRole> getReadRoles()
          Gets the read roles.
 java.util.Set<FRole> getWriteRoles()
          Gets the write roles.
 int hashCode()
           
 boolean isAffectedBy(AbstractBusinessObject abstractBusinessObject)
          Checks if is affected by.
 boolean isEditable()
          Checks if is editable.
 boolean isMovable()
          Checks if is movable.
 void makeEager()
          Make eager.
 void setExecuteRoles(java.util.Set<FRole> executeRoles)
          Sets the execute roles.
 void setId(long id)
          Sets the id.
 void setModificationDate(java.util.Date modificationDate)
          Sets the modification date.
 void setModificationUser(FUser modificationUser)
          Sets the modification user.
 void setName(java.lang.String name)
          Sets the name.
 void setParent(AbstractBusinessObject parent)
          Sets the parent.
 void setReadRoles(java.util.Set<FRole> readRoles)
          Sets the read roles.
 void setTransientValues(TransientValueSetter transientValueSetter)
          Sets the transient values.
 void setWriteRoles(java.util.Set<FRole> writeRoles)
          Sets the write roles.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractBusinessObject

public AbstractBusinessObject()
Method Detail

getAdditionalTreeTextColor

public java.awt.Color getAdditionalTreeTextColor()
Gets the additional tree text color.

Returns:
the additional tree text color

getAdditionalTreeText

public java.lang.String getAdditionalTreeText()
Gets the additional tree text.

Returns:
the additional tree text

getId

public long getId()
Gets the id.

Returns:
the id

setId

public void setId(long id)
Sets the id.

Parameters:
id - the new id

getName

public java.lang.String getName()
Gets the name.

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - the new name

getParent

public AbstractBusinessObject getParent()
Gets the parent.

Returns:
the parent

setParent

public void setParent(AbstractBusinessObject parent)
Sets the parent.

Parameters:
parent - the new parent

getReadRoles

public java.util.Set<FRole> getReadRoles()
Description copied from interface: PersistenceInterface
Gets the read roles.

Specified by:
getReadRoles in interface PersistenceInterface
Returns:
the read roles

setReadRoles

public void setReadRoles(java.util.Set<FRole> readRoles)
Sets the read roles.

Parameters:
readRoles - the new read roles

getWriteRoles

public java.util.Set<FRole> getWriteRoles()
Description copied from interface: PersistenceInterface
Gets the write roles.

Specified by:
getWriteRoles in interface PersistenceInterface
Returns:
the write roles

setWriteRoles

public void setWriteRoles(java.util.Set<FRole> writeRoles)
Sets the write roles.

Parameters:
writeRoles - the new write roles

getExecuteRoles

public java.util.Set<FRole> getExecuteRoles()
Description copied from interface: PersistenceInterface
Gets the execute roles.

Specified by:
getExecuteRoles in interface PersistenceInterface
Returns:
the execute roles

setExecuteRoles

public void setExecuteRoles(java.util.Set<FRole> executeRoles)
Sets the execute roles.

Parameters:
executeRoles - the new execute roles

getPosition

public double getPosition()
Gets the position.

Returns:
the position

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getIcon

public java.lang.String getIcon()
Gets the icon.

Returns:
the icon

getLargeIcon

public java.lang.String getLargeIcon()
Gets the large icon.

Returns:
the large icon

compareTo

public int compareTo(java.lang.Object object)
Specified by:
compareTo in interface java.lang.Comparable<java.lang.Object>

getModificationDate

public java.util.Date getModificationDate()
Gets the modification date.

Returns:
the modification date

setModificationDate

public void setModificationDate(java.util.Date modificationDate)
Sets the modification date.

Parameters:
modificationDate - the new modification date

getModificationUser

public FUser getModificationUser()
Gets the modification user.

Returns:
the modification user

setModificationUser

public void setModificationUser(FUser modificationUser)
Sets the modification user.

Parameters:
modificationUser - the new modification user

makeEager

public void makeEager()
Description copied from interface: PersistenceInterface
Make eager.

Specified by:
makeEager in interface PersistenceInterface

getBusinessObjectName

public abstract java.lang.String getBusinessObjectName()
Gets the business object name.

Returns:
the business object name

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

setTransientValues

public void setTransientValues(TransientValueSetter transientValueSetter)
Description copied from interface: PersistenceInterface
Sets the transient values.

Specified by:
setTransientValues in interface PersistenceInterface
Parameters:
transientValueSetter - the new transient values

isAffectedBy

public boolean isAffectedBy(AbstractBusinessObject abstractBusinessObject)
Checks if is affected by.

Parameters:
abstractBusinessObject - the abstract business object
Returns:
true, if is affected by

isEditable

public boolean isEditable()
Checks if is editable.

Returns:
true, if is editable

isMovable

public boolean isMovable()
Checks if is movable.

Returns:
true, if is movable