public String getAbstractSchemaName() {
return metadata.getAbstractSchemaName();
}
public FieldBridge getFieldByName(String fieldName) {
FieldBridge field;
for (int i = 0; i < pkFields.length; ++i) {
field = pkFields[i];
if (field.getFieldName().equals(fieldName)) {
return field;
}
}
for (int i = 0; i < cmpFields.length; ++i) {
field = cmpFields[i];
if (field.getFieldName().equals(fieldName)) {
return field;
}
}
for (int i = 0; i < cmrFields.length; ++i) {
field = cmrFields[i];
if (field.getFieldName().equals(fieldName)) {
return field;
}
}
throw new IllegalStateException("Field " + fieldName + " not found in entity " + getEntityName());