public class SelectUtilities extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SelectUtilities.BatchedStatement
Represents selected IDs.
|
Modifier and Type | Method and Description |
---|---|
static AttributeValue |
getValueFromResultSet(ResultSet rset,
int position,
int dataType)
Gets the value from a ResultSet.
|
static AttributeValue |
getValueFromResultSet(ResultSet rset,
int position,
int dataType,
Long attrId,
long objectId,
Long priClassId)
Gets the value from a ResultSet - for complex data types.
|
static void |
setValueInStatement(LibrarySessionInterface session,
IfsPreparedStatement stmt,
AttributeValue av,
int position)
Set bind values in the specified statement.
|
public static void setValueInStatement(LibrarySessionInterface session, IfsPreparedStatement stmt, AttributeValue av, int position) throws IfsException, SQLException
session
- the session contextstmt
- the statementav
- the valueposition
- the position in the statementIfsException
- if operation failsSQLException
- if operation failspublic static AttributeValue getValueFromResultSet(ResultSet rset, int position, int dataType) throws IfsException, SQLException
This variant can be used for all scalar types except for SimpleObject. For non-scalar types and for SimpleObject types, use the full variant.
rset
- the result setposition
- the position in the resultSetdataType
- the column's data typeIfsException
- if operation failsSQLException
- if operation failspublic static AttributeValue getValueFromResultSet(ResultSet rset, int position, int dataType, Long attrId, long objectId, Long priClassId) throws IfsException, SQLException
This variant must be used for array types and for SimpleObject types.
rset
- the result setposition
- the position in the resultSetdataType
- the column's data typeattrId
- if this AttributeValue represents the value
of a LibraryObject's Attribute, this is the
id of that AttributeobjectId
- the objectId associated with this resultSetpriClassId
- the class ID reflecting a ClassDomain settingIfsException
- if operation failsSQLException
- if operation failsCopyright © 2023. All rights reserved.