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

Author:
Pavel Ponec

Constructor Summary
TableWrapperImpl(MetaTable table, String alias)
           
 
Method Summary
 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
 boolean isView()
          Is the instance a database relation model?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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


Copyright © 2012. All Rights Reserved.