Package io.ebeaninternal.server.deploy
Class BeanTable
- java.lang.Object
-
- io.ebeaninternal.server.deploy.BeanTable
-
public class BeanTable extends Object
Used for associated beans in place of a BeanDescriptor. This is done to avoid recursion issues due to the potentially bi-directional and circular relationships between beans.It holds the main deployment information and not all the detail that is held in a BeanDescriptor.
-
-
Constructor Summary
Constructors Constructor Description BeanTable(BeanDescriptorMap owner, String tableName, Class<?> beanType)
Construct for element collection.BeanTable(DeployBeanTable mutable, BeanDescriptorMap owner)
Create the BeanTable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createJoinColumn(String foreignKeyPrefix, DeployTableJoin join, boolean reverse, String sqlFormulaSelect)
String
getBaseTable()
Return the base table for this BeanTable.Class<?>
getBeanType()
Return the class for this beanTable.String
getIdColumn()
Return the primary key DB column.BeanProperty
getIdProperty()
Return the Id properties.String
getUnqualifiedBaseTable()
Gets the unqualified base table.String
toString()
-
-
-
Constructor Detail
-
BeanTable
public BeanTable(DeployBeanTable mutable, BeanDescriptorMap owner)
Create the BeanTable.
-
BeanTable
public BeanTable(BeanDescriptorMap owner, String tableName, Class<?> beanType)
Construct for element collection.
-
-
Method Detail
-
getBaseTable
public String getBaseTable()
Return the base table for this BeanTable. This is used to determine the join information for associations.
-
getUnqualifiedBaseTable
public String getUnqualifiedBaseTable()
Gets the unqualified base table.- Returns:
- the unqualified base table
-
getIdProperty
public BeanProperty getIdProperty()
Return the Id properties.
-
getBeanType
public Class<?> getBeanType()
Return the class for this beanTable.
-
createJoinColumn
public void createJoinColumn(String foreignKeyPrefix, DeployTableJoin join, boolean reverse, String sqlFormulaSelect)
-
getIdColumn
public String getIdColumn()
Return the primary key DB column.
-
-