public class HibernateUtil extends Object
Modifier and Type | Field and Description |
---|---|
static short |
FIELDTYPE_COLLECTION |
static short |
FIELDTYPE_COLUMN |
static short |
FIELDTYPE_ID |
static short |
FIELDTYPE_RELATION |
static short |
FIELDTYPE_TIMESTAMP |
static short |
FIELDTYPE_VERSION |
Constructor and Description |
---|
HibernateUtil() |
Modifier and Type | Method and Description |
---|---|
static Struct |
checkTable(DatasourceConnection dc,
String tableName,
SessionFactoryData data) |
static String |
convertColumnName(SessionFactoryData data,
String columnName) |
static String |
convertTableName(SessionFactoryData data,
String tableName) |
static Property[] |
createPropertiesFromTable(DatasourceConnection dc,
String tableName) |
static long |
getCompileTime(PageContext pc,
PageSource ps) |
static Property[] |
getIDProperties(Component c,
boolean onlyPeristent,
boolean includeBaseProperties) |
static Object |
getMetaStructItem(Component cfc,
Collection.Key name) |
static HibernateORMEngine |
getORMEngine(PageContext pc) |
static HibernateORMSession |
getORMSession(PageContext pc,
boolean create) |
static Property[] |
getProperties(Component component,
int fieldType,
Property[] defaultValue) |
static org.hibernate.type.Type |
getPropertyType(org.hibernate.metadata.ClassMetadata metaData,
String name) |
static org.hibernate.type.Type |
getPropertyType(org.hibernate.metadata.ClassMetadata metaData,
String name,
org.hibernate.type.Type defaultValue) |
static String |
id(String id) |
static boolean |
isEntity(ORMConfiguration ormConf,
Component cfc,
String cfcName,
String name) |
static boolean |
isKeyword(String word) |
static String |
validateColumnName(org.hibernate.metadata.ClassMetadata metaData,
String name) |
static String |
validateColumnName(org.hibernate.metadata.ClassMetadata metaData,
String name,
String defaultValue) |
public static final short FIELDTYPE_ID
public static final short FIELDTYPE_COLUMN
public static final short FIELDTYPE_TIMESTAMP
public static final short FIELDTYPE_RELATION
public static final short FIELDTYPE_VERSION
public static final short FIELDTYPE_COLLECTION
public HibernateUtil()
public static org.hibernate.type.Type getPropertyType(org.hibernate.metadata.ClassMetadata metaData, String name) throws org.hibernate.HibernateException
org.hibernate.HibernateException
public static org.hibernate.type.Type getPropertyType(org.hibernate.metadata.ClassMetadata metaData, String name, org.hibernate.type.Type defaultValue)
public static String validateColumnName(org.hibernate.metadata.ClassMetadata metaData, String name) throws PageException
PageException
public static String validateColumnName(org.hibernate.metadata.ClassMetadata metaData, String name, String defaultValue)
public static Property[] createPropertiesFromTable(DatasourceConnection dc, String tableName)
public static Property[] getProperties(Component component, int fieldType, Property[] defaultValue)
public static String convertTableName(SessionFactoryData data, String tableName) throws PageException
PageException
public static String convertColumnName(SessionFactoryData data, String columnName) throws PageException
PageException
public static boolean isEntity(ORMConfiguration ormConf, Component cfc, String cfcName, String name)
public static Struct checkTable(DatasourceConnection dc, String tableName, SessionFactoryData data) throws PageException
PageException
public static HibernateORMEngine getORMEngine(PageContext pc) throws PageException
PageException
public static HibernateORMSession getORMSession(PageContext pc, boolean create) throws PageException
PageException
public static Property[] getIDProperties(Component c, boolean onlyPeristent, boolean includeBaseProperties)
public static long getCompileTime(PageContext pc, PageSource ps) throws PageException
PageException
public static Object getMetaStructItem(Component cfc, Collection.Key name)
Copyright © 2015 Lucee