org.d2rq.db.op
Class DatabaseOp.Wrapper

java.lang.Object
  extended by org.d2rq.db.op.DatabaseOp.Wrapper
All Implemented Interfaces:
DatabaseOp
Direct Known Subclasses:
AssertUniqueKeyOp, DistinctOp, EmptyOp, LimitOp, OrderOp, ProjectOp, SelectOp
Enclosing interface:
DatabaseOp

public abstract static class DatabaseOp.Wrapper
extends Object
implements DatabaseOp


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.d2rq.db.op.DatabaseOp
DatabaseOp.Wrapper
 
Field Summary
 
Fields inherited from interface org.d2rq.db.op.DatabaseOp
TRUE
 
Constructor Summary
DatabaseOp.Wrapper(DatabaseOp wrapped)
           
 
Method Summary
 List<ColumnName> getColumns()
           
 DataType getColumnType(ColumnName column)
           
 TableName getTableName()
           
 Collection<Key> getUniqueKeys()
           
 DatabaseOp getWrapped()
           
 boolean hasColumn(ColumnName column)
           
 boolean isNullable(ColumnName column)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.d2rq.db.op.DatabaseOp
accept
 

Constructor Detail

DatabaseOp.Wrapper

public DatabaseOp.Wrapper(DatabaseOp wrapped)
Method Detail

getWrapped

public DatabaseOp getWrapped()

getTableName

public TableName getTableName()
Specified by:
getTableName in interface DatabaseOp
Returns:
Name in [[CATALOG.]SCHEMA.]TABLE notation, possibly null

hasColumn

public boolean hasColumn(ColumnName column)
Specified by:
hasColumn in interface DatabaseOp
Parameters:
column - A qualified or unqualified column name
Returns:
false for ambiguous unqualified names

getColumns

public List<ColumnName> getColumns()
Specified by:
getColumns in interface DatabaseOp
Returns:
Fully qualified column names if possible, no duplicates

isNullable

public boolean isNullable(ColumnName column)
Specified by:
isNullable in interface DatabaseOp

getColumnType

public DataType getColumnType(ColumnName column)
Specified by:
getColumnType in interface DatabaseOp

getUniqueKeys

public Collection<Key> getUniqueKeys()
Specified by:
getUniqueKeys in interface DatabaseOp