📄 propertyholderbuilder.java
字号:
//$Id: PropertyHolderBuilder.java,v 1.2 2004/12/11 14:36:11 epbernard Exp $package org.hibernate.cfg;import org.hibernate.mapping.PersistentClass;import org.hibernate.mapping.Component;import javax.ejb.Column;import java.util.Map;/** * This factory is here ot build a PropertyHolder and prevent .mapping interface adding * * @author Emmanuel Bernard */public final class PropertyHolderBuilder { private PropertyHolderBuilder() {} public static PropertyHolder buildPropertyHolder(PersistentClass persistentClass) { return (PropertyHolder) new ClassPropertyHolder(persistentClass); } /** * build a component proeprty holder * * @param component component to wrap * @param path component path * @return PropertyHolder */ public static PropertyHolder buildPropertyHolder(Component component, String path, Map<String, Column[]> columnOverride) { return (PropertyHolder) new ComponentPropertyHolder(component, path, columnOverride); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -