| java.lang.Object simpleorm.core.SRecordFinder
SRecordFinder | class SRecordFinder (Code) | | Overflow of SRecordMeta code to retrieve records
|
Method Summary | |
static SRecordInstance | findOrCreate(SRecordMeta meta, Object key, long sqy_bitSet, SFieldMeta[] selectList) | static void | retrieveRecord(SRecordInstance instance, SFieldMeta[] selectList, ResultSet rs, boolean readOnly, boolean optimistic, boolean checkPrimaryKey) Called from SRecordMeta and SResultSet to acutally retrieve the
record. | static void | setPrimaryKeys(SRecordInstance inst, Object pkey) Sets just the primary key fields, used to lookup
transactionCache. | static void | validatePrimaryKeys(SRecordInstance inst) Map SRecordInstance.validateField for all primary keys. |
retrieveRecord | static void retrieveRecord(SRecordInstance instance, SFieldMeta[] selectList, ResultSet rs, boolean readOnly, boolean optimistic, boolean checkPrimaryKey)(Code) | | Called from SRecordMeta and SResultSet to acutally retrieve the
record. selectList includes primary key fields.
Calls SField*.queryVieldValue to actually
retrieve the values.
|
setPrimaryKeys | static void setPrimaryKeys(SRecordInstance inst, Object pkey)(Code) | | Sets just the primary key fields, used to lookup
transactionCache. See equals().
For foreign keys, pkeys only contains the reference
object, not the foreign keys themselves.
Primary keys are not set dirty.
|
validatePrimaryKeys | static void validatePrimaryKeys(SRecordInstance inst)(Code) | | Map SRecordInstance.validateField for all primary keys.
This is only called for newly created records, not for each find,
which is why it needs to be done in a different pass.
|
|
|