Package net.sf.jkniv.sqlegance.builder
Class SqlContextFactory
- java.lang.Object
-
- net.sf.jkniv.sqlegance.builder.SqlContextFactory
-
public class SqlContextFactory extends Object
Load the SQL sentences from XML file build a new context to the queries- Since:
- 0.6.0
- Author:
- Alisson Gomes
-
-
Constructor Summary
Constructors Constructor Description SqlContextFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SqlContextnewInstance(String resourceName)Build a new context from SQL sentencesstatic SqlContextnewInstance(String resourceName, String repositoryConfigName)Build a new context from SQL sentencesstatic SqlContextnewInstance(String resourceName, Properties props)Build a new context from SQL sentences
-
-
-
Method Detail
-
newInstance
public static SqlContext newInstance(String resourceName)
Build a new context from SQL sentences- Parameters:
resourceName- Initial XML file with SQL sentences- Returns:
- SQL sentences that belong to repository (like database)
-
newInstance
public static SqlContext newInstance(String resourceName, Properties props)
Build a new context from SQL sentences- Parameters:
resourceName- Initial XML file with SQL sentencesprops- customized properties to SQL context, seeRepositoryPropertyenumeration- Returns:
- SQL sentences that belong to repository (like database)
-
newInstance
public static SqlContext newInstance(String resourceName, String repositoryConfigName)
Build a new context from SQL sentences- Parameters:
resourceName- Initial XML file with SQL sentencesrepositoryConfigName- name of repository- Returns:
- SQL sentences that belong to repository (like database)
-
-