DLV
Class OutputDescriptorItem

java.lang.Object
  extended byDLV.OutputDescriptorItem
Direct Known Subclasses:
ODIFilePredicate, ODIJDBCPredicate, ODIPredicate

public abstract class OutputDescriptorItem
extends java.lang.Object

Each OutputDescriptorItem instance allows to specify how to build a specified Predicate object during DLV output handling process. This is an abstrct class, you can only build derived classes associated with a given storage device.
For example:
- if you use an ODIFilePredicate data will be stored in text file handled by a FilePredicate obejct.
- if you use an ODIJDBCPredicate data will be stored in a realtional database table handled by a JDBCPredicate object.
- if you use an ODIPredicate data will be stored in memory handled by a Predicate object.
This allows to deal with DLV output by using Predicates interface without directcly deal with storage devices.


Constructor Summary
OutputDescriptorItem()
           
 
Method Summary
abstract  Predicate buildPredicate(java.lang.String name, int arity, Model m, int modelNumber)
           
abstract  void flushAndClean()
           
 boolean getReplace()
          Gets the replace option flag value.
 boolean multipleModelAllowed()
          Returns true if this OutputDescriptorItem supports multiple model generation, false otherwise.
 void setReplace(boolean replace)
          Sets the replace option flag value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputDescriptorItem

public OutputDescriptorItem()
Method Detail

getReplace

public boolean getReplace()
Gets the replace option flag value.

Returns:
The replace option flag value.

setReplace

public void setReplace(boolean replace)
Sets the replace option flag value. If the replace option flag value is set to true and the underlying implementation supports this feature, old predicated stored in the specified storage devices are removed before exporting new data.


multipleModelAllowed

public boolean multipleModelAllowed()
Returns true if this OutputDescriptorItem supports multiple model generation, false otherwise. Predicate and in most cases FilePredicate supports multiple models in output, but obviously JDBCPredicate does not allow to export more than one model.

Returns:
true if this OutputDescriptor supports multiple model generation, false otherwise.
See Also:
OutputDescriptorItem

buildPredicate

public abstract Predicate buildPredicate(java.lang.String name,
                                         int arity,
                                         Model m,
                                         int modelNumber)

flushAndClean

public abstract void flushAndClean()