|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.healthmarketscience.jackcess.Joiner
public class Joiner
Utility for finding rows based on pre-defined, foreign-key table relationships.
| Method Summary | |
|---|---|
static Joiner |
create(Index fromIndex)
Creates a new Joiner based on the given index which backs a foreign-key relationship. |
static Joiner |
create(Table fromTable,
Table toTable)
Creates a new Joiner based on the foreign-key relationship between the given "from"" table and the given "to"" table. |
Joiner |
createReverse()
Creates a new Joiner that is the reverse of this Joiner (the "from" and "to" tables are swapped). |
java.util.Map<java.lang.String,java.lang.Object> |
findFirstRow(java.util.Map<java.lang.String,?> fromRow)
Returns the first row in the "to" table based on the given columns in the "from" table if any, null if there is no matching row. |
java.util.Map<java.lang.String,java.lang.Object> |
findFirstRow(java.util.Map<java.lang.String,?> fromRow,
java.util.Collection<java.lang.String> columnNames)
Returns selected columns from the first row in the "to" table based on the given columns in the "from" table if any, null if there is no matching row. |
java.util.Iterator<java.util.Map<java.lang.String,java.lang.Object>> |
findRows(java.util.Map<java.lang.String,?> fromRow)
Returns an Iterator over all the rows in the "to" table based on the given columns in the "from" table. |
java.util.Iterator<java.util.Map<java.lang.String,java.lang.Object>> |
findRows(java.util.Map<java.lang.String,?> fromRow,
java.util.Collection<java.lang.String> columnNames)
Returns an Iterator with the selected columns over all the rows in the "to" table based on the given columns in the "from" table. |
java.lang.Iterable<java.util.Map<java.lang.String,java.lang.Object>> |
findRowsIterable(java.util.Map<java.lang.String,?> fromRow)
Returns an Iterable whose iterator() method returns the result of a call to findRows(Map) |
java.lang.Iterable<java.util.Map<java.lang.String,java.lang.Object>> |
findRowsIterable(java.util.Map<java.lang.String,?> fromRow,
java.util.Collection<java.lang.String> columnNames)
Returns an Iterable whose iterator() method returns the result of a call to findRows(Map,Collection) |
Index |
getFromIndex()
|
Table |
getFromTable()
|
IndexCursor |
getToCursor()
|
Index |
getToIndex()
|
Table |
getToTable()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Joiner create(Table fromTable,
Table toTable)
throws java.io.IOException
fromTable - the "from" side of the relationshiptoTable - the "to" side of the relationship
java.lang.IllegalArgumentException - if there is no relationship between the given tables
java.io.IOException
public static Joiner create(Index fromIndex)
throws java.io.IOException
fromIndex - the index backing one side of a foreign-key relationship
java.io.IOException
public Joiner createReverse()
throws java.io.IOException
java.io.IOExceptionpublic Table getFromTable()
public Index getFromIndex()
public Table getToTable()
public Index getToIndex()
public IndexCursor getToCursor()
public java.util.Map<java.lang.String,java.lang.Object> findFirstRow(java.util.Map<java.lang.String,?> fromRow)
throws java.io.IOException
null if there is no matching row.
fromRow - row from the "from" table (which must include the relevant columns for this join
relationship)
java.io.IOException
public java.util.Map<java.lang.String,java.lang.Object> findFirstRow(java.util.Map<java.lang.String,?> fromRow,
java.util.Collection<java.lang.String> columnNames)
throws java.io.IOException
null if there is no matching row.
fromRow - row from the "from" table (which must include the relevant columns for this join
relationship)columnNames - desired columns in the from table row
java.io.IOExceptionpublic java.util.Iterator<java.util.Map<java.lang.String,java.lang.Object>> findRows(java.util.Map<java.lang.String,?> fromRow)
fromRow - row from the "from" table (which must include the relevant columns for this join
relationship)
public java.util.Iterator<java.util.Map<java.lang.String,java.lang.Object>> findRows(java.util.Map<java.lang.String,?> fromRow,
java.util.Collection<java.lang.String> columnNames)
fromRow - row from the "from" table (which must include the relevant columns for this join
relationship)columnNames - desired columns in the from table rowpublic java.lang.Iterable<java.util.Map<java.lang.String,java.lang.Object>> findRowsIterable(java.util.Map<java.lang.String,?> fromRow)
findRows(Map)
fromRow - row from the "from" table (which must include the relevant columns for this join
relationship)
java.lang.IllegalStateException - if an IOException is thrown by one of the operations, the actual exception will
be contained within
public java.lang.Iterable<java.util.Map<java.lang.String,java.lang.Object>> findRowsIterable(java.util.Map<java.lang.String,?> fromRow,
java.util.Collection<java.lang.String> columnNames)
findRows(Map,Collection)
fromRow - row from the "from" table (which must include the relevant columns for this join
relationship)columnNames - desired columns in the from table row
java.lang.IllegalStateException - if an IOException is thrown by one of the operations, the actual exception will
be contained within
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||