本文整理匯總了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." );
}
示例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;
}
}
示例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);
}
}
示例4: resolveClassicResultTransformer
import org.hibernate.transform.AliasToBeanConstructorResultTransformer; //導入依賴的package包/類
static public ResultTransformer resolveClassicResultTransformer(
Constructor constructor,
ResultTransformer transformer) {
return constructor != null ? new AliasToBeanConstructorResultTransformer( constructor ) : transformer;
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}