abstractcomponenttype.java
来自「用Java实现的23个常用设计模式源代码」· Java 代码 · 共 40 行
JAVA
40 行
//$Id: AbstractComponentType.java,v 1.8.2.1 2003/11/12 09:02:43 oneovthafew Exp $package net.sf.hibernate.type;import net.sf.hibernate.HibernateException;import net.sf.hibernate.engine.Cascades;import net.sf.hibernate.engine.SessionImplementor;/** * Enables other Component-like types to hold collections and have cascades, etc. * * @see ComponentType * @see DynaBeanType * @see ObjectType * @author Gavin King */public interface AbstractComponentType extends Type { public Type[] getSubtypes(); public String[] getPropertyNames(); public Object[] getPropertyValues(Object component, SessionImplementor session) throws HibernateException; /** * Optional operation */ public Object[] getPropertyValues(Object component) throws HibernateException; /** * Optional operation */ public void setPropertyValues(Object component, Object[] values) throws HibernateException; public Object getPropertyValue(Object component, int i, SessionImplementor session) throws HibernateException; //public Object instantiate(Object parent, SessionImplementor session) throws HibernateException; public Cascades.CascadeStyle cascade(int i); public int enableJoinedFetch(int i);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?