|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.io.datastore.schema.TableRelation
public class TableRelation
Describes a relation (join condition) between two database tables.
| Nested Class Summary | |
|---|---|
static class |
TableRelation.FK_INFO
Used to represent the foreign key position. |
| Constructor Summary | |
|---|---|
TableRelation(MappingField[] fromFields,
MappingField[] toFields,
TableRelation.FK_INFO fkInfo,
IdGenerator idGenerator)
Initializes a newly created TableRelation instance with the given
parameters. |
|
| Method Summary | |
|---|---|
TableRelation.FK_INFO |
getFKInfo()
Returns the foreign key position. |
MappingField[] |
getFromFields()
Returns the MappingFields that constitute the key in the 'From'-table. |
String |
getFromTable()
Returns the name of the table where the relation starts ('From'-table). |
IdGenerator |
getIdGenerator()
Returns the IdGenerator instance that may be used to generate new primary keys. |
Object |
getNewPK(DatastoreTransaction ta)
Returns a new primary key generated by the associated IdGenerator. |
MappingField[] |
getToFields()
Returns the MappingFields that constitute the key in the 'To'-table. |
String |
getToTable()
Returns the name of the table where the relation ends ('To'-table). |
boolean |
isFromFK()
Returns whether the foreign key is stored in the 'From'-table. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TableRelation(MappingField[] fromFields,
MappingField[] toFields,
TableRelation.FK_INFO fkInfo,
IdGenerator idGenerator)
TableRelation instance with the given
parameters.
fromFields - toFields - fkInfo - idGenerator - | Method Detail |
|---|
public String getFromTable()
public String getToTable()
public MappingField[] getFromFields()
MappingFields that constitute the key in the 'From'-table.
public MappingField[] getToFields()
MappingFields that constitute the key in the 'To'-table.
public TableRelation.FK_INFO getFKInfo()
public boolean isFromFK()
public IdGenerator getIdGenerator()
IdGenerator instance that may be used to generate new primary keys.
public Object getNewPK(DatastoreTransaction ta)
throws IdGenerationException
IdGenerator.
ta -
IdGenerationExceptionpublic String toString()
toString in class Object
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net