associationtype.java

来自「用Java实现的23个常用设计模式源代码」· Java 代码 · 共 47 行

JAVA
47
字号
//$Id: AssociationType.java,v 1.5.2.5 2003/10/30 12:56:48 oneovthafew Exp $package net.sf.hibernate.type;import net.sf.hibernate.MappingException;import net.sf.hibernate.engine.SessionFactoryImplementor;import net.sf.hibernate.persister.Joinable;/** * A type that represents some kind of association between entities. * @see net.sf.hibernate.engine.Cascades * @author Gavin King */public interface AssociationType extends Type {		/**	 * Get the foreign key directionality of this association	 */	public ForeignKeyDirection getForeignKeyDirection();		//TODO: move these to a new JoinableType abstract class, 	//extended by EntityType and PersistentCollectionType:		/**	 * Is the foreign key the primary key of the table?	 */	public boolean usePrimaryKeyAsForeignKey();		/**	 * Get the "persister" for this association - a class or 	 * collection persister	 */	public Joinable getJoinable(SessionFactoryImplementor factory) throws MappingException;		/**	 * Get the columns referenced by this association.	 */	public String[] getReferencedColumns(SessionFactoryImplementor factory) throws MappingException;		public Class getAssociatedClass(SessionFactoryImplementor factory) throws MappingException;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?