org.mentabean.sql
Class Sentence

java.lang.Object
  extended by org.mentabean.sql.Sentence
All Implemented Interfaces:
Condition, Function, HasParams

public class Sentence
extends Object
implements Function, Condition


Constructor Summary
Sentence(Function function)
           
Sentence(Param param)
           
Sentence(QueryBuilder.Query query)
           
 
Method Summary
 String build()
           
 Sentence fromProperty(Object property)
          Specify the property of FROM alias that will be populated with this sentence
 String getName()
           
 Param[] getParams()
           
 String getProperty()
           
 DBType<?> getReturnType()
           
<T> T
getValue(ResultSet rset)
           
 Sentence name(String name)
           
 Sentence returnType(DBType<?> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sentence

public Sentence(Param param)

Sentence

public Sentence(QueryBuilder.Query query)

Sentence

public Sentence(Function function)
Method Detail

fromProperty

public Sentence fromProperty(Object property)
Specify the property of FROM alias that will be populated with this sentence

Parameters:
property -
Returns:
this

name

public Sentence name(String name)

returnType

public Sentence returnType(DBType<?> type)

getValue

public <T> T getValue(ResultSet rset)
           throws SQLException
Throws:
SQLException

getReturnType

public DBType<?> getReturnType()

getProperty

public String getProperty()

getName

public String getName()

getParams

public Param[] getParams()
Specified by:
getParams in interface HasParams

build

public String build()
Specified by:
build in interface HasParams


Copyright © 2013. All Rights Reserved.