01: //$Id: EntityAliases.java 5699 2005-02-13 11:50:11Z oneovthafew $
02: package org.hibernate.loader;
03:
04: import org.hibernate.persister.entity.Loadable;
05:
06: /**
07: * Metadata describing the SQL result set column aliases
08: * for a particular entity.
09: *
10: * @author Gavin King
11: */
12: public interface EntityAliases {
13: /**
14: * The result set column aliases for the primary key columns
15: */
16: public String[] getSuffixedKeyAliases();
17:
18: /**
19: * The result set column aliases for the discriminator columns
20: */
21: public String getSuffixedDiscriminatorAlias();
22:
23: /**
24: * The result set column aliases for the version columns
25: */
26: public String[] getSuffixedVersionAliases();
27:
28: /**
29: * The result set column aliases for the property columns
30: */
31: public String[][] getSuffixedPropertyAliases();
32:
33: /**
34: * The result set column aliases for the property columns of a subclass
35: */
36: public String[][] getSuffixedPropertyAliases(Loadable persister);
37:
38: /**
39: * The result set column alias for the Oracle row id
40: */
41: public String getRowIdAlias();
42:
43: }
|