Methods Summary |
---|
public static org.hibernate.hql.HolderInstantiator | createClassicHolderInstantiator(java.lang.reflect.Constructor constructor, org.hibernate.transform.ResultTransformer transformer)
if ( constructor != null ) {
return new HolderInstantiator(new AliasToBeanConstructorResultTransformer(constructor), null);
}
else {
return new HolderInstantiator(transformer, null);
}
|
public static org.hibernate.transform.ResultTransformer | createSelectNewTransformer(java.lang.reflect.Constructor constructor, boolean returnMaps, boolean returnLists)
if ( constructor != null ) {
return new AliasToBeanConstructorResultTransformer(constructor);
}
else if ( returnMaps ) {
return Transformers.ALIAS_TO_ENTITY_MAP;
}
else if ( returnLists ) {
return Transformers.TO_LIST;
}
else {
return null;
}
|
public static org.hibernate.hql.HolderInstantiator | getHolderInstantiator(org.hibernate.transform.ResultTransformer selectNewTransformer, org.hibernate.transform.ResultTransformer customTransformer, java.lang.String[] queryReturnAliases)
if(selectNewTransformer!=null) {
return new HolderInstantiator(selectNewTransformer, queryReturnAliases);
} else {
return new HolderInstantiator(customTransformer, queryReturnAliases);
}
|
public java.lang.String[] | getQueryReturnAliases()
return queryReturnAliases;
|
public org.hibernate.transform.ResultTransformer | getResultTransformer()
return transformer;
|
public java.lang.Object | instantiate(java.lang.Object[] row)
if(transformer==null) {
return row;
} else {
return transformer.transformTuple(row, queryReturnAliases);
}
|
public boolean | isRequired()
return transformer!=null;
|