public class JoinColumn extends AbstractColumn
BasicColumns.| Constructor and Description |
|---|
JoinColumn(JdbcAdaptor jdbcAdaptor,
AssociationMapping<?,?,?> mapping,
BasicMapping<?,?> idMapping)
Constructor with no metadata.
|
JoinColumn(JdbcAdaptor jdbcAdaptor,
EntityTable table,
BasicMapping<?,?> idMapping)
Constructor for inheritance and secondary table joins.
|
JoinColumn(JdbcAdaptor jdbcAdaptor,
JoinColumnMetadata metadata)
Constructor with metadata.
|
JoinColumn(JdbcAdaptor jdbcAdaptor,
PrimaryKeyJoinColumnMetadata metadata,
SecondaryTable table,
BasicMapping<?,?> idMapping)
Constructor for secondary table join column with metadata.
|
JoinColumn(JdbcAdaptor jdbcAdaptor,
SecondaryTable table,
BasicMapping<?,?> idMapping)
Constructor for inheritance and secondary table joins.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnDefinition()
Returns the columnDefinition of the JoinColumn.
|
int |
getLength()
Returns the length of the column.
|
AbstractLocator |
getLocator()
Returns the locator of the JoinColumn.
|
Mapping<?,?,?> |
getMapping()
Returns the mapping of the BasicColumn.
|
String |
getMappingName()
Returns the mapping name of the column.
|
String |
getName()
Returns the name of the JoinColumn.
|
int |
getPrecision()
Returns the precision of the column.
|
String |
getReferencedColumnName()
Returns the name of the referenced column of the join column.
|
BasicMapping<?,?> |
getReferencedMapping()
Returns the referencedMapping of the JoinColumn.
|
AbstractTable |
getReferencedTable()
Returns the referenced table.
|
int |
getScale()
Returns the scale of the column.
|
int |
getSqlType()
Returns the SQL Type of the column.
|
AbstractTable |
getTable()
Returns the table of the column
|
String |
getTableName()
Returns the table name of the column.
|
Object |
getValue(Object instance)
Returns the value for the column
|
boolean |
isInsertable()
Returns the insertable of the JoinColumn.
|
boolean |
isNullable()
Returns the nullable of the JoinColumn.
|
boolean |
isPrimaryKey()
Returns if the column is a primary key column.
|
boolean |
isUnique()
Returns the unique of the JoinColumn.
|
boolean |
isUpdatable()
Returns the updatable of the JoinColumn.
|
void |
setColumnProperties(AssociationMapping<?,?,?> mapping,
BasicMapping<?,?> referencedMapping)
Sets the column definition.
|
void |
setTable(AbstractTable table)
Sets the table of the column.
|
void |
setValue(Object instance,
Object value)
Sets the value for the instance
|
toStringpublic JoinColumn(JdbcAdaptor jdbcAdaptor, AssociationMapping<?,?,?> mapping, BasicMapping<?,?> idMapping)
jdbcAdaptor - the JDBC Adaptormapping - the mappingidMapping - the referenced mappingpublic JoinColumn(JdbcAdaptor jdbcAdaptor, EntityTable table, BasicMapping<?,?> idMapping)
jdbcAdaptor - the JDBC Adaptortable - the tableidMapping - the referenced id mappingpublic JoinColumn(JdbcAdaptor jdbcAdaptor, JoinColumnMetadata metadata)
jdbcAdaptor - the JDBC adaptormetadata - the metadata for the joinpublic JoinColumn(JdbcAdaptor jdbcAdaptor, PrimaryKeyJoinColumnMetadata metadata, SecondaryTable table, BasicMapping<?,?> idMapping)
jdbcAdaptor - the JDBC Adaptormetadata - the metadata for the jointable - the secondary tableidMapping - the id mappingpublic JoinColumn(JdbcAdaptor jdbcAdaptor, SecondaryTable table, BasicMapping<?,?> idMapping)
jdbcAdaptor - the JDBC Adaptortable - the tableidMapping - the referenced id mappingpublic String getColumnDefinition()
getColumnDefinition in class AbstractColumnpublic int getLength()
getLength in class AbstractColumnpublic AbstractLocator getLocator()
getLocator in class AbstractColumnpublic Mapping<?,?,?> getMapping()
getMapping in class AbstractColumnpublic String getMappingName()
getMappingName in class AbstractColumnpublic String getName()
getName in class AbstractColumnpublic int getPrecision()
getPrecision in class AbstractColumnpublic String getReferencedColumnName()
public BasicMapping<?,?> getReferencedMapping()
public AbstractTable getReferencedTable()
public int getScale()
getScale in class AbstractColumnpublic int getSqlType()
getSqlType in class AbstractColumnpublic AbstractTable getTable()
getTable in class AbstractColumnpublic String getTableName()
getTableName in class AbstractColumnpublic Object getValue(Object instance)
getValue in class AbstractColumninstance - the instancepublic boolean isInsertable()
isInsertable in class AbstractColumnpublic boolean isNullable()
isNullable in class AbstractColumnpublic boolean isPrimaryKey()
isPrimaryKey in class AbstractColumnpublic boolean isUnique()
isUnique in class AbstractColumnpublic boolean isUpdatable()
isUpdatable in class AbstractColumnpublic void setColumnProperties(AssociationMapping<?,?,?> mapping, BasicMapping<?,?> referencedMapping)
mapping - the owner mappingreferencedMapping - the referenced primary key Columnpublic void setTable(AbstractTable table)
setTable in class AbstractColumntable - the owning tablepublic void setValue(Object instance, Object value)
setValue in class AbstractColumninstance - the instance of which to set valuevalue - the value to setCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.