railo.runtime.orm.hibernate
Class HibernateCaster
java.lang.Object
railo.runtime.orm.hibernate.HibernateCaster
public class HibernateCaster
- extends Object
Method Summary |
static int |
cascade(HibernateORMEngine engine,
String cascade)
|
static int |
cascade(String cascade,
int defaultValue)
|
static int |
collectionType(HibernateORMEngine engine,
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(HibernateORMEngine engine,
String type)
|
static String |
toHibernateType(int type,
int size,
String defaultValue)
|
static String |
toHibernateType(String type,
String defaultValue)
|
static Query |
toQuery(PageContext pc,
HibernateORMSession session,
Object obj,
String name)
|
static Object |
toSQL(HibernateORMEngine engine,
ColumnInfo ci,
Object value,
RefBoolean isArray)
translate CFMl specific types to Hibernate/SQL specific types |
static Object |
toSQL(HibernateORMEngine engine,
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)
|
HibernateCaster
public HibernateCaster()
toCFML
public static Object toCFML(Object src)
toCFML
public static Array toCFML(List src)
getEntityName
public static String getEntityName(Component cfc)
cascade
public static int cascade(HibernateORMEngine engine,
String cascade)
throws ORMException
- Throws:
ORMException
cascade
public static int cascade(String cascade,
int defaultValue)
collectionType
public static int collectionType(HibernateORMEngine engine,
String strCollectionType)
throws ORMException
- Throws:
ORMException
collectionType
public static int collectionType(String strCollectionType,
int defaultValue)
toHibernateType
public static String toHibernateType(ColumnInfo info,
String type,
String defaultValue)
toSQLType
public static int toSQLType(String type,
int defaultValue)
toHibernateType
public static String toHibernateType(ColumnInfo info,
String defaultValue)
toHibernateType
public static String toHibernateType(int type,
int size,
String defaultValue)
toHibernateType
public static String toHibernateType(HibernateORMEngine engine,
String type)
throws ORMException
- Throws:
ORMException
toHibernateType
public static String toHibernateType(String type,
String defaultValue)
toSQL
public static Object toSQL(HibernateORMEngine engine,
ColumnInfo ci,
Object value,
RefBoolean isArray)
throws PageException
- translate CFMl specific types to Hibernate/SQL specific types
- Parameters:
engine
- ci
- value
-
- Returns:
-
- Throws:
PageException
toSQL
public static Object toSQL(HibernateORMEngine engine,
org.hibernate.type.Type type,
Object value,
RefBoolean isArray)
throws PageException
- translate CFMl specific types to Hibernate/SQL specific types
- Parameters:
engine
- type
- value
-
- Returns:
-
- Throws:
PageException
toQuery
public static Query toQuery(PageContext pc,
HibernateORMSession session,
Object obj,
String name)
throws PageException
- Throws:
PageException
toComponentName
public static String toComponentName(Component cfc)
- return the full name (package and name) of a component
- Parameters:
cfc
-
- Returns:
toComponent
public static Component toComponent(Object obj)
throws PageException
- Throws:
PageException
Copyright © 2012 Railo