KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > mapping > KeyValue


1 //$Id: KeyValue.java,v 1.8 2005/04/26 06:37:53 oneovthafew Exp $
2
package org.hibernate.mapping;
3
4 import org.hibernate.MappingException;
5 import org.hibernate.dialect.Dialect;
6 import org.hibernate.id.IdentifierGenerator;
7
8 /**
9  * Represents an identifying key of a table: the value for primary key
10  * of an entity, or a foreign key of a collection or join table or
11  * joined subclass table.
12  * @author Gavin King
13  */

14 public interface KeyValue extends Value {
15     
16     public void createForeignKeyOfEntity(String JavaDoc entityName);
17     
18     public boolean isCascadeDeleteEnabled();
19     
20     public boolean isIdentityColumn(Dialect dialect);
21     
22     public String JavaDoc getNullValue();
23     
24     public boolean isUpdateable();
25
26     public IdentifierGenerator createIdentifierGenerator(
27             Dialect dialect,
28             String JavaDoc defaultCatalog,
29             String JavaDoc defaultSchema,
30             RootClass rootClass) throws MappingException;
31 }
32
Popular Tags