Package de.elo.ix.jscript
Class FindSordsByObjKeys
java.lang.Object
de.elo.ix.jscript.FindObjects
de.elo.ix.jscript.FindSordsByObjKeys
This class allows to select Sord objects by index field values when searching for objects with
FindByRegisteredFunction.
- See Also:
-
Field Summary
Fields inherited from class de.elo.ix.jscript.FindObjects
FROM_OBJ_KEYS, FROM_SORDS, WHERE_OBJ_KEY_DATA, WHERE_OBJ_KEY_DATA_LIKE, WHERE_SORD_GUID, WHERE_SORD_ID
-
Constructor Summary
ConstructorsConstructorDescriptionFindSordsByObjKeys
(Object jsOkeyNameAndValues) ConstructorFindSordsByObjKeys
(String okeyName, Object jsOkeyValues) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
bindParams
(PreparedStatement pstmt, int startCol) Submit parameters for the JDBC Statement.getAlias()
Get alias table name for the Sords (objekte) table.Get information about the current position.getFrom()
Get the table name or a comma separated list of table names to select from.getWhere()
Where clause.boolean
next()
Move to next object.Methods inherited from class de.elo.ix.jscript.FindObjects
close
-
Constructor Details
-
FindSordsByObjKeys
Constructor- Parameters:
okeyName
- An index field group name.jsOkeyValues
- Index field values. Either one value, an array of values or a table of values whereby the first column contains the index field values.
-
FindSordsByObjKeys
Constructor- Parameters:
jsOkeyNameAndValues
- A table of values whereby the first column contains the index field (group) name and the second column contains the values.
-
-
Method Details
-
getAlias
Description copied from class:FindObjects
Get alias table name for the Sords (objekte) table. Optional. This alias must be used in the where clause for every column name of the Sords table. This function is only called for the first object.- Overrides:
getAlias
in classFindObjects
- Returns:
- alias name
-
bindParams
Description copied from class:FindObjects
Submit parameters for the JDBC Statement. The calling function creates a PreparedStatement based on the return values of getAlias, getFrom and getWhere. With a call to this function, all parameters conatined in the Prepared statement should be bound.- Overrides:
bindParams
in classFindObjects
- Throws:
SQLException
-
getFrom
Description copied from class:FindObjects
Get the table name or a comma separated list of table names to select from. E. g. to select from Sords and document versions return "objekte,dochistory". This function is only called for the first object.
If an alias for the Sords table should be used, the alias must follow the table name. E.g. getAlias()="o", getFormat()="objekte o, dochistory d", getWhere()="o.objid=d.objectid and ..."- Overrides:
getFrom
in classFindObjects
- Returns:
- table name(s)
-
getWhere
Description copied from class:FindObjects
Where clause. This function is only called for the first object. Use PreparedStatement placeholders for the Sord ID and other parameters (if there are any).
If an alias for the Sords table should be used, the alias must prefix the column names. E.g. getAlias()="o", getFormat()="objekte o, dochistory d", getWhere()="o.objid=d.objectid and ..."- Overrides:
getWhere
in classFindObjects
- Returns:
- where clause
-
next
Description copied from class:FindObjects
Move to next object.- Overrides:
next
in classFindObjects
- Returns:
- false, if no more objects available
- Throws:
SQLException
-
getCurrentPosAsString
Description copied from class:FindObjects
Get information about the current position. E. g. return the parameters set into the PreparedStatement in the bindParams function.- Overrides:
getCurrentPosAsString
in classFindObjects
- Returns:
- Information string
-