org.mentabean.sql
Class TableAlias<E>

java.lang.Object
  extended by org.mentabean.sql.TableAlias<E>
Type Parameters:
E -

public class TableAlias<E>
extends Object

This class encapsulates a proxy to help construct queries that are fully refactorable.

Author:
Sergio Oliveira Jr.

Constructor Summary
TableAlias(BeanSession session, BeanConfig config, Class<? extends E> beanClass)
           
TableAlias(BeanSession session, BeanConfig config, Class<? extends E> beanClass, String prefix)
           
 
Method Summary
 Class<? extends E> beanClass()
           
 String column(Object prop)
          Return the db column name for this bean property.
 String columns()
          Return the db columns of a select statements.
 String prefix()
           
 E pxy()
           
 String tableName()
          Return the table name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableAlias

public TableAlias(BeanSession session,
                  BeanConfig config,
                  Class<? extends E> beanClass)

TableAlias

public TableAlias(BeanSession session,
                  BeanConfig config,
                  Class<? extends E> beanClass,
                  String prefix)
Method Detail

columns

public String columns()
Return the db columns of a select statements.

Returns:
the columns to build a select statement

tableName

public String tableName()
Return the table name.

Returns:
the table name

column

public String column(Object prop)
Return the db column name for this bean property.

Parameters:
prop - this is a filler parameter because a proxy call will be performed!
Returns:
the db column name of this property

pxy

public E pxy()

prefix

public String prefix()

beanClass

public Class<? extends E> beanClass()


Copyright © 2013. All Rights Reserved.