/** * PUBLIC: * To set the class indicator field name. * This is the name of the field in the table that stores what type of object this is. */ public void setClassIndicatorFieldName(String fieldName) { if (fieldName == null) { setClassIndicatorField(null); } else { setClassIndicatorField(new DatabaseField(fieldName)); } }
/** * INTERNAL: */ public void setClassIndicatorField(DatabaseField field) { m_descriptor.getInheritancePolicy().setClassIndicatorField(field); }
/** * INTERNAL: * Clone the policy */ public Object clone() { InheritancePolicy clone = null; try { clone = (InheritancePolicy)super.clone(); if (hasClassIndicator()) { clone.setClassIndicatorField((DatabaseField)clone.getClassIndicatorField().clone()); } } catch (Exception exception) { throw new InternalError("clone failed"); } return clone; }
setClassIndicatorField(getParentDescriptor().getInheritancePolicy().getClassIndicatorField());