public class TableNamingInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
capitalisedShortName
The last part of the FQName of the persistent (e.g.
|
TableNamingInfo |
extended |
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 |
objectFQName
The fully qualified name of the table persistent (e.g.
|
String |
packageName
This package eg org.melati.example.contacts .
|
String |
projectName |
TableNamingInfo |
superclass
The TableNamingInfo of this Table's superclass
(or null if this extends Persistent or Table).
|
| Constructor and Description |
|---|
TableNamingInfo(String packageNameIn,
String projectNameIn,
String nameFromDsd)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected TableNamingInfo |
getRootSameNamedSuperclass()
Find the top-most superclass of this table which has the same (short) name.
|
String |
leafTableAccessorName() |
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().
|
public String packageName
public String objectFQName
public String capitalisedShortName
public TableNamingInfo superclass
public boolean hidesOther
public boolean hidden
public String projectName
public TableNamingInfo extended
public TableNamingInfo(String packageNameIn, String projectNameIn, String nameFromDsd)
packageNameIn - the fully qualified java name of this packageprojectNameIn - the name of this projectnameFromDsd - the name of this table in the db and the dsd, not necessarily with initial capitalpublic 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
public String leafTableAccessorName()
protected TableNamingInfo getRootSameNamedSuperclass()
Copyright © 2000–2021 PanEris. All rights reserved.