當前位置: 首頁>>代碼示例>>Java>>正文


Java AliasToBeanConstructorResultTransformer類代碼示例

本文整理匯總了Java中org.hibernate.transform.AliasToBeanConstructorResultTransformer的典型用法代碼示例。如果您正苦於以下問題:Java AliasToBeanConstructorResultTransformer類的具體用法?Java AliasToBeanConstructorResultTransformer怎麽用?Java AliasToBeanConstructorResultTransformer使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AliasToBeanConstructorResultTransformer類屬於org.hibernate.transform包,在下文中一共展示了AliasToBeanConstructorResultTransformer類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getResultTransformer

import org.hibernate.transform.AliasToBeanConstructorResultTransformer; //導入依賴的package包/類
@Override
public ResultTransformer getResultTransformer() {
	if ( constructor != null ) {
		return new AliasToBeanConstructorResultTransformer( constructor );
	}
	else if ( isMap ) {
		return Transformers.ALIAS_TO_ENTITY_MAP;
	}
	else if ( isList ) {
		return Transformers.TO_LIST;
	}
	throw new QueryException( "Unable to determine proper dynamic-instantiation tranformer to use." );
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:14,代碼來源:ConstructorNode.java

示例2: createSelectNewTransformer

import org.hibernate.transform.AliasToBeanConstructorResultTransformer; //導入依賴的package包/類
public static ResultTransformer createSelectNewTransformer(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;
	}
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:15,代碼來源:HolderInstantiator.java

示例3: createClassicHolderInstantiator

import org.hibernate.transform.AliasToBeanConstructorResultTransformer; //導入依賴的package包/類
static public HolderInstantiator createClassicHolderInstantiator(Constructor constructor, 
		ResultTransformer transformer) {
	if ( constructor != null ) {
		return new HolderInstantiator(new AliasToBeanConstructorResultTransformer(constructor), null);
	}
	else {
		return new HolderInstantiator(transformer, null);
	}
}
 
開發者ID:cacheonix,項目名稱:cacheonix-core,代碼行數:10,代碼來源:HolderInstantiator.java

示例4: resolveClassicResultTransformer

import org.hibernate.transform.AliasToBeanConstructorResultTransformer; //導入依賴的package包/類
static public ResultTransformer resolveClassicResultTransformer(
		Constructor constructor,
		ResultTransformer transformer) {
	return constructor != null ? new AliasToBeanConstructorResultTransformer( constructor ) : transformer;
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:6,代碼來源:HolderInstantiator.java

示例5: getTransactionCategorySummaries

import org.hibernate.transform.AliasToBeanConstructorResultTransformer; //導入依賴的package包/類
@SuppressWarnings("unchecked")
public List<TransactionCategorySummary> getTransactionCategorySummaries() {
    return getSession().getNamedQuery(TransactionCategory.SUMMARY_QUERY)
        .setResultTransformer(new AliasToBeanConstructorResultTransformer(getSummaryConstructor()))
        .list();
}
 
開發者ID:jonestimd,項目名稱:finances,代碼行數:7,代碼來源:TransactionCategoryDaoImpl.java

示例6: getPayeeSummaries

import org.hibernate.transform.AliasToBeanConstructorResultTransformer; //導入依賴的package包/類
@SuppressWarnings("unchecked")
public List<PayeeSummary> getPayeeSummaries() {
    return getSession().getNamedQuery(Payee.SUMMARY_QUERY)
        .setResultTransformer(new AliasToBeanConstructorResultTransformer(getPayeeSummaryConstructor()))
        .list();
}
 
開發者ID:jonestimd,項目名稱:finances,代碼行數:7,代碼來源:PayeeDaoImpl.java

示例7: getTransactionGroupSummaries

import org.hibernate.transform.AliasToBeanConstructorResultTransformer; //導入依賴的package包/類
@SuppressWarnings("unchecked")
public List<TransactionGroupSummary> getTransactionGroupSummaries() {
    return getSession().getNamedQuery(TransactionGroup.SUMMARY_QUERY)
        .setResultTransformer(new AliasToBeanConstructorResultTransformer(getSummaryConstructor()))
        .list();
}
 
開發者ID:jonestimd,項目名稱:finances,代碼行數:7,代碼來源:TransactionGroupDaoImpl.java

示例8: getAccountSummaries

import org.hibernate.transform.AliasToBeanConstructorResultTransformer; //導入依賴的package包/類
@SuppressWarnings("unchecked")
public List<AccountSummary> getAccountSummaries() {
    return getSession().getNamedQuery(Account.SUMMARY_QUERY)
        .setResultTransformer(new AliasToBeanConstructorResultTransformer(getAccountSummaryConstructor()))
        .list();
}
 
開發者ID:jonestimd,項目名稱:finances,代碼行數:7,代碼來源:AccountDaoImpl.java


注:本文中的org.hibernate.transform.AliasToBeanConstructorResultTransformer類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。