public class SpringHibernateUtils extends Object
Constructor and Description |
---|
SpringHibernateUtils() |
Modifier and Type | Method and Description |
---|---|
String |
getBasePackage()
Gets the appropriate hibernate package name for the given
version . |
String |
getCriterionPackage()
Gets the appropriate hibernate criterion package name for the given
version . |
String |
getDisjunctionClassName()
Retrieves the fully qualified name of the class that retrieves the Hibernate
disjunction instance.
|
String |
getEagerFetchMode()
Retrieves the appropriate package for Hibernate user types given
the version defined within this class.
|
String |
getEntityBasePackage(Collection<Entity> entities)
Gets the appropriate hibernate criterion package name for the given
version . |
String |
getRestrictionClass()
Gets the appropriate hibernate Restrictions/Expression fully qualified class name for the given
version . |
String |
getSpringHibernatePackage()
Gets the appropriate Spring Hibernate package based on the given
version . |
boolean |
isMapSubclassesInSeparateFile() |
boolean |
isVersion2()
Indicates whether or not version 2 is the one that is currently being used.
|
static boolean |
isVersion2(String hibernateVersionPropertyValue) |
boolean |
isVersion3()
Indicates whether or not version 3 is the one that is currently being used.
|
static boolean |
isVersion3(String hibernateVersionPropertyValue) |
boolean |
isVersion4()
Indicates whether or not version 4 is the one that is currently being used.
|
static boolean |
isVersion4(String hibernateVersionPropertyValue) |
boolean |
isXmlPersistenceActive() |
static boolean |
isXmlPersistenceActive(String hibernateVersionPropertyValue,
String hibernateXMLPersistencePropertyValue) |
static boolean |
mapSubclassesInSeparateFile(String hibernateMappingStrategyIn) |
void |
setHibernateMappingStrategy(String hibernateMappingStrategyIn) |
void |
setHibernateVersion(String hibernateVersionIn)
Sets the version of Hibernate we're generating for.
|
void |
setHibernateXMLPersistence(String hibernateXmlPersistenceIn) |
public SpringHibernateUtils()
public void setHibernateVersion(String hibernateVersionIn)
hibernateVersionIn
- the Hibernate version.public String getBasePackage()
version
.public String getCriterionPackage()
version
.public String getEntityBasePackage(Collection<Entity> entities)
version
.entities
- public String getRestrictionClass()
version
.public String getSpringHibernatePackage()
version
.public String getEagerFetchMode()
public String getDisjunctionClassName()
public boolean isVersion2()
public boolean isVersion3()
public boolean isVersion4()
public static boolean isVersion2(String hibernateVersionPropertyValue)
hibernateVersionPropertyValue
- public static boolean isVersion3(String hibernateVersionPropertyValue)
hibernateVersionPropertyValue
- public static boolean isVersion4(String hibernateVersionPropertyValue)
hibernateVersionPropertyValue
- public void setHibernateXMLPersistence(String hibernateXmlPersistenceIn)
hibernateXmlPersistenceIn
- true
when you to make use of Hibernate 3 XML persistence support,
false
otherwisepublic boolean isXmlPersistenceActive()
public static boolean isXmlPersistenceActive(String hibernateVersionPropertyValue, String hibernateXMLPersistencePropertyValue)
hibernateVersionPropertyValue
- hibernateXMLPersistencePropertyValue
- public void setHibernateMappingStrategy(String hibernateMappingStrategyIn)
hibernateMappingStrategyIn
- public boolean isMapSubclassesInSeparateFile()
public static boolean mapSubclassesInSeparateFile(String hibernateMappingStrategyIn)
hibernateMappingStrategyIn
- Copyright © 2003–2014 AndroMDA.org. All rights reserved.