GigaSpaces XAP 10.0.1 API

org.openspaces.core.config
Class SQLQueryFactoryBean

java.lang.Object
  extended by org.openspaces.core.config.SQLQueryFactoryBean
All Implemented Interfaces:
FactoryBean, InitializingBean

public class SQLQueryFactoryBean
extends Object
implements FactoryBean, InitializingBean

A helper factory beans for SQLQuery so namespace based configuration will be simpler.

Author:
kimchy

Constructor Summary
SQLQueryFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  String getClassName()
           
 Object getObject()
           
 Class<SQLQuery> getObjectType()
           
 String getProjections()
           
protected  Object getTemplate()
           
protected  Class<Object> getType()
           
protected  String getWhere()
           
 boolean isSingleton()
           
 void setClassName(String className)
           
 void setProjections(String projections)
           
 void setTemplate(Object template)
           
 void setType(Class<Object> clazz)
           
 void setWhere(String where)
           
protected  void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLQueryFactoryBean

public SQLQueryFactoryBean()
Method Detail

setWhere

public void setWhere(String where)

getWhere

protected String getWhere()

setTemplate

public void setTemplate(Object template)

getTemplate

protected Object getTemplate()

setType

public void setType(Class<Object> clazz)

getType

protected Class<Object> getType()

setClassName

public void setClassName(String className)

getClassName

protected String getClassName()

getProjections

public String getProjections()

setProjections

public void setProjections(String projections)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

validate

protected void validate()
                 throws IllegalArgumentException
Throws:
IllegalArgumentException

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface FactoryBean
Throws:
Exception

getObjectType

public Class<SQLQuery> getObjectType()
Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.