org.sql.generation.implementation.grammar.factories
Class DefaultLiteralFactory

java.lang.Object
  extended by org.sql.generation.implementation.grammar.common.SQLFactoryBase
      extended by org.sql.generation.implementation.grammar.factories.DefaultLiteralFactory
All Implemented Interfaces:
LiteralFactory

public class DefaultLiteralFactory
extends SQLFactoryBase
implements LiteralFactory

Author:
Stanislav Muhametsin

Constructor Summary
DefaultLiteralFactory(SQLVendor vendor, SQLProcessorAggregator processor)
           
 
Method Summary
 TimestampTimeLiteral dt(Timestamp date)
           
 SQLFunctionLiteral func(String name, ValueExpression... parameters)
           
 DirectLiteral l(String literalContents)
           
 NumericLiteral n(Number number)
           
 DirectLiteral param()
           
 StringLiteral s(String literal)
           
 
Methods inherited from class org.sql.generation.implementation.grammar.common.SQLFactoryBase
getProcessor, getVendor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLiteralFactory

public DefaultLiteralFactory(SQLVendor vendor,
                             SQLProcessorAggregator processor)
Method Detail

l

public DirectLiteral l(String literalContents)
Specified by:
l in interface LiteralFactory

param

public DirectLiteral param()
Specified by:
param in interface LiteralFactory

s

public StringLiteral s(String literal)
Specified by:
s in interface LiteralFactory

dt

public TimestampTimeLiteral dt(Timestamp date)
Specified by:
dt in interface LiteralFactory

n

public NumericLiteral n(Number number)
Specified by:
n in interface LiteralFactory

func

public SQLFunctionLiteral func(String name,
                               ValueExpression... parameters)
Specified by:
func in interface LiteralFactory


Copyright © 2010-2012. All Rights Reserved.