|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 MappingField s that constitute the key in the 'From'-table. |
java.lang.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. |
java.lang.Object |
getNewPK(DatastoreTransaction ta)
Returns a new primary key generated by the associated IdGenerator . |
MappingField[] |
getToFields()
Returns the MappingField s that constitute the key in the 'To'-table. |
java.lang.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. |
java.lang.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 java.lang.String getFromTable()
public java.lang.String getToTable()
public MappingField[] getFromFields()
MappingField
s that constitute the key in the 'From'-table.
public MappingField[] getToFields()
MappingField
s 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 java.lang.Object getNewPK(DatastoreTransaction ta) throws IdGenerationException
IdGenerator
.
ta
-
IdGenerationException
public java.lang.String toString()
toString
in class java.lang.Object
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org