Class TagFactory
- java.lang.Object
-
- net.sf.jkniv.sqlegance.builder.xml.TagFactory
-
public class TagFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description TagFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AutoGeneratedKeynewAutoGeneratedKey(String type, String columns, String props, String text)Build a newwheretag.static DeletablenewDelete(String id, LanguageType languageType)static DeletablenewDelete(String id, LanguageType languageType, SqlDialect sqlDialect)static DeletablenewDelete(String id, LanguageType languageType, Isolation isolation, int timeout, ValidateType validateType, Statistical stats)static InsertablenewInsert(String id, LanguageType languageType)static InsertablenewInsert(String id, LanguageType languageType, SqlDialect sqlDialect)static InsertablenewInsert(String id, LanguageType languageType, Isolation isolation, int timeout, ValidateType validateType, Statistical stats)static net.sf.jkniv.sqlegance.builder.xml.OneToManyTagnewOneToMany(String property, String typeOf, String impl)static SelectablenewSelect(String id, LanguageType languageType)static SelectablenewSelect(String id, LanguageType languageType, SqlDialect sqlDialect)static SelectablenewSelect(String id, LanguageType languageType, Isolation isolation, int timeout, String cache, ResultSetType resultSetType, ResultSetConcurrency resultSetConcurrency, ResultSetHoldability resultSetHoldability, String returnType, String groupBy, ValidateType validateType, Statistical stats)Build a newselecttag from XML file.static UpdateablenewUpdate(String id, LanguageType languageType)static UpdateablenewUpdate(String id, LanguageType languageType, SqlDialect sqlDialect)static UpdateablenewUpdate(String id, LanguageType languageType, Isolation isolation, int timeout, ValidateType validateType, Statistical stats)
-
-
-
Method Detail
-
newOneToMany
public static net.sf.jkniv.sqlegance.builder.xml.OneToManyTag newOneToMany(String property, String typeOf, String impl)
-
newSelect
public static Selectable newSelect(String id, LanguageType languageType)
-
newSelect
public static Selectable newSelect(String id, LanguageType languageType, SqlDialect sqlDialect)
-
newSelect
public static Selectable newSelect(String id, LanguageType languageType, Isolation isolation, int timeout, String cache, ResultSetType resultSetType, ResultSetConcurrency resultSetConcurrency, ResultSetHoldability resultSetHoldability, String returnType, String groupBy, ValidateType validateType, Statistical stats)
Build a newselecttag from XML file.- Parameters:
id- Name/Identify from tag.languageType- type of language from tag.isolation- Retrieves the current transaction isolation level for the query.timeout- Retrieves the number of seconds the repository will wait for a Query object to execute.cache- Indicate if must keep SQL result in cacheresultSetType- TODO javadocresultSetConcurrency- TODO javadocresultSetHoldability- holdability fromResultSetreturnType- type of object must be returnedgroupBy- columns name to group the result of query (columns name separated by comma)validateType- validation to apply before execute SQL.stats- sql statistical- Returns:
- select tag
-
newInsert
public static Insertable newInsert(String id, LanguageType languageType)
-
newInsert
public static Insertable newInsert(String id, LanguageType languageType, SqlDialect sqlDialect)
-
newInsert
public static Insertable newInsert(String id, LanguageType languageType, Isolation isolation, int timeout, ValidateType validateType, Statistical stats)
-
newAutoGeneratedKey
public static AutoGeneratedKey newAutoGeneratedKey(String type, String columns, String props, String text)
Build a newwheretag.- Parameters:
type- generator strategycolumns- columns namesprops- properties nametext- value from tag- Returns:
- tag for auto generate key
-
newUpdate
public static Updateable newUpdate(String id, LanguageType languageType)
-
newUpdate
public static Updateable newUpdate(String id, LanguageType languageType, SqlDialect sqlDialect)
-
newUpdate
public static Updateable newUpdate(String id, LanguageType languageType, Isolation isolation, int timeout, ValidateType validateType, Statistical stats)
-
newDelete
public static Deletable newDelete(String id, LanguageType languageType)
-
newDelete
public static Deletable newDelete(String id, LanguageType languageType, SqlDialect sqlDialect)
-
newDelete
public static Deletable newDelete(String id, LanguageType languageType, Isolation isolation, int timeout, ValidateType validateType, Statistical stats)
-
-