public class TableRelation
extends java.lang.Object
Constructor and Description |
---|
TableRelation(DatabaseDescriptor dbd,
TableDescriptor from,
java.lang.String javaPropertyName,
java.lang.Class<?> refToClass,
ColumnConstraintType columnConstraint,
Relation relationInfo,
int i)
Constructor
|
Modifier and Type | Method and Description |
---|---|
ColumnConstraintType |
getColumnConstraintType() |
java.lang.String |
getJavaPropertyName() |
TableDescriptor |
getNMRelationTable() |
TableDescriptor |
getRefFrom() |
java.lang.Class<?> |
getRefFromClass() |
TableDescriptor |
getRefTo() |
java.lang.Class<?> |
getRefToClass() |
Relation |
getRelationInfo() |
void |
setColumnConstraintType(ColumnConstraintType columnConstraint)
Set the column constraint type
|
void |
setNMRelationTable(TableDescriptor nmTable) |
void |
setRefTo(TableDescriptor toTD) |
java.lang.String |
toString() |
public TableRelation(DatabaseDescriptor dbd, TableDescriptor from, java.lang.String javaPropertyName, java.lang.Class<?> refToClass, ColumnConstraintType columnConstraint, Relation relationInfo, int i)
dbd
- from
- javaPropertyName
- refToClass
- columnConstraint
- relationInfo
- public java.lang.Class<?> getRefToClass()
public java.lang.Class<?> getRefFromClass()
public TableDescriptor getRefFrom()
public TableDescriptor getRefTo()
public void setRefTo(TableDescriptor toTD)
toTD
- the toTD to setpublic ColumnConstraintType getColumnConstraintType()
public void setColumnConstraintType(ColumnConstraintType columnConstraint)
columnConstraint
- public java.lang.String getJavaPropertyName()
public Relation getRelationInfo()
public TableDescriptor getNMRelationTable()
public void setNMRelationTable(TableDescriptor nmTable)
nmTable
- the n:m rleation map tablepublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2014 The Resoa Project, resoa.org.