net.sourceforge.toscanaj.model.database
Class DatabaseRetrievedObject

java.lang.Object
  extended bynet.sourceforge.toscanaj.model.database.DatabaseRetrievedObject
All Implemented Interfaces:
FCAElement

public class DatabaseRetrievedObject
extends java.lang.Object
implements FCAElement

To do:
drop distinctions between objects with or without keys and with or without special clauses. The object should have only one clause attached which gives whatever this object represents, the clause for the full object set of a label should not be part of instances of this class. Probably it is a good idea if aggregates just return null as their clause -- they just don't have any clause specific for them. This change needs first dropping the distinction between different viewers in the DatabaseViewerManager.

Constructor Summary
DatabaseRetrievedObject(java.lang.String queryWhereClause, java.lang.String displayString)
           
 
Method Summary
 int getContextPosition()
          Return the position in a context if available.
 java.lang.Object getData()
          Returns the data stored in this FCAElement.
 org.jdom.Element getDescription()
          Returns the description of the FCAElement.
 java.lang.String getDisplayString()
           
 java.lang.Object getKey()
           
 java.lang.String getQueryWhereClause()
           
 java.lang.String getSpecialWhereClause()
           
 boolean hasKey()
           
 boolean hasSpecialWhereClause()
           
 void setKey(java.lang.Object key)
           
 void setSpecialWhereClause(java.lang.String specialWhereClause)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseRetrievedObject

public DatabaseRetrievedObject(java.lang.String queryWhereClause,
                               java.lang.String displayString)
Method Detail

hasKey

public boolean hasKey()

getKey

public java.lang.Object getKey()

setKey

public void setKey(java.lang.Object key)

hasSpecialWhereClause

public boolean hasSpecialWhereClause()

getSpecialWhereClause

public java.lang.String getSpecialWhereClause()

setSpecialWhereClause

public void setSpecialWhereClause(java.lang.String specialWhereClause)

getQueryWhereClause

public java.lang.String getQueryWhereClause()

getDisplayString

public java.lang.String getDisplayString()

toString

public java.lang.String toString()

getData

public java.lang.Object getData()
Description copied from interface: FCAElement
Returns the data stored in this FCAElement. This is not allowed to be null.

Specified by:
getData in interface FCAElement

getDescription

public org.jdom.Element getDescription()
Description copied from interface: FCAElement
Returns the description of the FCAElement. The return value of this method can be null.

Specified by:
getDescription in interface FCAElement

getContextPosition

public int getContextPosition()
Description copied from interface: FCAElement
Return the position in a context if available. The return value is either the position in the according context (i.e. in the list of objects or attributes, depending on the usage of this element), or -1 if no position in a context is known.

Specified by:
getContextPosition in interface FCAElement


The ToscanaJ project