org.d2rq.db.op.util
Class OpUtil

java.lang.Object
  extended by org.d2rq.db.op.util.OpUtil

public class OpUtil
extends Object

Various utility functions for working with DatabaseOp instances.

Author:
Richard Cyganiak (richard@cyganiak.de)

Method Summary
 boolean isDerivedColumn(DatabaseOp op, ColumnName column)
           
static boolean isEmpty(DatabaseOp tabular)
           
static boolean isTrivial(DatabaseOp tabular)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isEmpty

public static boolean isEmpty(DatabaseOp tabular)
Returns:
true if the table is known to have zero rows

isTrivial

public static boolean isTrivial(DatabaseOp tabular)
Returns:
true if the table has one row with no columns

isDerivedColumn

public boolean isDerivedColumn(DatabaseOp op,
                               ColumnName column)