|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.prepro.TableNamingInfo
public class TableNamingInfo
A store for Table Name information extracted from the DSD.
Field Summary | |
---|---|
boolean |
hidden
Does this Table have the same name as another table "lower down" in our hierarchy. |
boolean |
hidesOther
Does this Table have the same name as another table "higher up" in our hierarchy (that is a table already dealt with by DSD). |
String |
packageName
This package eg org.melati.example.contacts . |
TableNamingInfo |
superclass
The TableNamingInfo of this Table's superclass (or null if extends Persistent or Table). |
String |
tableFQName
The fully qualified name of the table (e.g. |
String |
tableShortName
The last part of the FQName of the table (e.g. |
Constructor Summary | |
---|---|
TableNamingInfo(String packageNameIn,
String projectNameIn,
String name)
Constructor. |
Method Summary | |
---|---|
protected TableNamingInfo |
getRootSameNamedSuperclass()
Find the top-most superclass of this table which has the same (short) name |
String |
mainClassFQName()
|
String |
mainClassRootReturnClass()
We need to make sure that this is the same class as that returned by the root superclass of the same name because you cannot override a function and change its return type. |
String |
mainClassShortName()
|
String |
mainClassUnambiguous()
|
String |
superclassMainFQName()
Calculate the full type for the superclass of the Persistent. |
String |
superclassMainShortName()
Calculate the name of the superclass of the Persistent. |
String |
superclassMainUnambiguous()
Calculate the type for objects in this Table. |
String |
superclassTableFQName()
Calculate the full type for the superclass of this Table. |
String |
superclassTableShortName()
Calculate the type for the superclass of this Table. |
String |
superclassTableUnambiguous()
Calculate the type for this Table. |
String |
tableMainClassRootReturnClass()
Find the return type we should use when calling getXxxxObject(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String packageName
public String tableFQName
public String tableShortName
public TableNamingInfo superclass
public boolean hidesOther
public boolean hidden
Constructor Detail |
---|
public TableNamingInfo(String packageNameIn, String projectNameIn, String name)
packageNameIn
- the fully qualified java name of this packageprojectNameIn
- the name of this projectname
- the name of this tableMethod Detail |
---|
public String superclassMainUnambiguous()
public String superclassMainFQName()
public String superclassMainShortName()
public String superclassTableUnambiguous()
public String superclassTableFQName()
public String superclassTableShortName()
public String mainClassFQName()
public String mainClassShortName()
public String mainClassUnambiguous()
public String mainClassRootReturnClass()
public String tableMainClassRootReturnClass()
NB if the superclass is abstract then we
protected TableNamingInfo getRootSameNamedSuperclass()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |