public static class ExtendedMetadata.Locks extends Object
hasSubtypes(int)
is
true, special logic must be implemented to retrieve the proper values.Modifier and Type | Method and Description |
---|---|
void |
fillRelationships(org.hibernate.engine.SessionFactoryImplementor sfi,
Map<String,ExtendedMetadata.Relationship> value)
For each of the fields contained in this
ExtendedMetadata.Locks object, parse
out the type and the field name and store those as the key and value
in the "value" argument. |
String[][] |
getLockCandidateChecks(boolean onlyWithGroups) |
IObject[] |
getLockCandidates(IObject o) |
Object |
getSubtypeValue(int i,
int j,
Object o)
uses the
ClassMetadata for this ExtendedMetadata.Locks tp retrieve the
component value. |
boolean |
hasSubtypes(int i)
returns true if this offset points to a field which is an embedded
component.
|
boolean |
include(int i)
returns true if this offset points to a field which may contain an
IObject instance |
int |
numberOfSubtypes(int i)
returns the number of subtypes for iterating over this secondary array.
|
int |
size()
the total number of fields for this entity.
|
boolean |
subtypeEquals(int i,
int j,
String klass)
returns true is the indexed subtype returns the same class type as the
klass argument.
|
String |
subtypeName(int i,
int j)
retrieves the full Hibernate path for this component field.
|
int |
total()
as opposed to
size() , the returns the actual number of fields
that will need to be checked. |
public void fillRelationships(org.hibernate.engine.SessionFactoryImplementor sfi, Map<String,ExtendedMetadata.Relationship> value)
ExtendedMetadata.Locks
object, parse
out the type and the field name and store those as the key and value
in the "value" argument.public String[][] getLockCandidateChecks(boolean onlyWithGroups)
public int size()
IObject
instances may vary since (1) some fields (like embedded
components) can possibly point to multiple instances. See
total()
for the final size and (2) some fields do not need to be
examined (Integers, e.g.). See include
public int total()
size()
, the returns the actual number of fields
that will need to be checked.public boolean include(int i)
IObject
instancepublic boolean hasSubtypes(int i)
public int numberOfSubtypes(int i)
hasSubtypes(int)
to differentiate the two situations.public Object getSubtypeValue(int i, int j, Object o)
ClassMetadata
for this ExtendedMetadata.Locks
tp retrieve the
component value.public boolean subtypeEquals(int i, int j, String klass)
public String subtypeName(int i, int j)
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.