public class HibernateCaster extends Object
Constructor and Description |
---|
HibernateCaster() |
Modifier and Type | Method and Description |
---|---|
static int |
cascade(ORMSession session,
String cascade) |
static int |
cascade(String cascade,
int defaultValue) |
static int |
collectionType(ORMSession session,
String strCollectionType) |
static int |
collectionType(String strCollectionType,
int defaultValue) |
static String |
getEntityName(Component cfc) |
static Array |
toCFML(List src) |
static Object |
toCFML(Object src) |
static Component |
toComponent(Object obj) |
static String |
toComponentName(Component cfc)
return the full name (package and name) of a component
|
static String |
toHibernateType(ColumnInfo info,
String defaultValue) |
static String |
toHibernateType(ColumnInfo info,
String type,
String defaultValue) |
static String |
toHibernateType(int type,
int size,
String defaultValue) |
static String |
toHibernateType(ORMSession session,
String type) |
static String |
toHibernateType(String type,
String defaultValue) |
static Object |
toHibernateValue(PageContext pc,
Object value,
String type) |
static Query |
toQuery(PageContext pc,
HibernateORMSession session,
Object obj,
String name) |
static Object |
toSQL(ColumnInfo ci,
Object value,
RefBoolean isArray)
translate CFMl specific types to Hibernate/SQL specific types
|
static Object |
toSQL(org.hibernate.type.Type type,
Object value,
RefBoolean isArray)
translate CFMl specific types to Hibernate/SQL specific types
|
static int |
toSQLType(String type,
int defaultValue) |
public HibernateCaster()
public static String getEntityName(Component cfc)
public static int cascade(ORMSession session, String cascade) throws PageException
PageException
public static int collectionType(ORMSession session, String strCollectionType) throws PageException
PageException
public static int collectionType(String strCollectionType, int defaultValue)
public static String toHibernateType(ColumnInfo info, String type, String defaultValue)
public static String toHibernateType(ColumnInfo info, String defaultValue)
public static String toHibernateType(int type, int size, String defaultValue)
public static String toHibernateType(ORMSession session, String type) throws PageException
PageException
public static String toHibernateType(String type, String defaultValue)
public static Object toHibernateValue(PageContext pc, Object value, String type) throws PageException
PageException
public static Object toSQL(ColumnInfo ci, Object value, RefBoolean isArray) throws PageException
engine
- ci
- value
- PageException
public static Object toSQL(org.hibernate.type.Type type, Object value, RefBoolean isArray) throws PageException
engine
- type
- value
- PageException
public static Query toQuery(PageContext pc, HibernateORMSession session, Object obj, String name) throws PageException
PageException
public static String toComponentName(Component cfc)
cfc
- public static Component toComponent(Object obj) throws PageException
PageException
Copyright © 2015 Lucee