org.d2rq.db.op
Class DatabaseOp.Wrapper
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseOp.Wrapper
public DatabaseOp.Wrapper(DatabaseOp wrapped)
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