org.ujorm.orm.impl
Class TableWrapperImpl

java.lang.Object
  extended by org.ujorm.orm.impl.TableWrapperImpl
All Implemented Interfaces:
TableWrapper

public class TableWrapperImpl
extends Object
implements TableWrapper

Wrapper for a MetaTable


Constructor Summary
TableWrapperImpl(MetaTable table, String alias)
           
 
Method Summary
 boolean equals(Object obj)
          Table model and alias must be the same
 String getAlias()
          Returns a unique table name in the one SQL statement.
 List<? extends ColumnWrapper> getColumns()
          Get all table columns
 MetaTable getModel()
          Returns a meta-tablemodel
 int hashCode()
          Table model and alias must be the same
 boolean isView()
          Is the instance a database relation model?
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableWrapperImpl

public TableWrapperImpl(MetaTable table,
                        String alias)
Method Detail

getModel

public MetaTable getModel()
Description copied from interface: TableWrapper
Returns a meta-tablemodel

Specified by:
getModel in interface TableWrapper

getAlias

public String getAlias()
Description copied from interface: TableWrapper
Returns a unique table name in the one SQL statement.

Specified by:
getAlias in interface TableWrapper

isView

public boolean isView()
Description copied from interface: TableWrapper
Is the instance a database relation model?

Specified by:
isView in interface TableWrapper

getColumns

public List<? extends ColumnWrapper> getColumns()
Description copied from interface: TableWrapper
Get all table columns

Specified by:
getColumns in interface TableWrapper

hashCode

public int hashCode()
Table model and alias must be the same

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Table model and alias must be the same

Overrides:
equals in class Object


Copyright 2013, Pavel Ponec