/** * Rehash any maps based on fields. * This is used to clone descriptors for aggregates, which hammer field names, * it is probably better not to hammer the field name and this should be refactored. */ public void rehashFieldDependancies(AbstractSession session) { setMappingsByField(Helper.rehashMap(getMappingsByField())); setReadOnlyMappingsByField(Helper.rehashMap(getReadOnlyMappingsByField())); setFieldsMap(Helper.rehashMap(getFieldsMap())); setPrimaryKeyMappings(new ArrayList(2)); setNonPrimaryKeyMappings(new ArrayList(2)); initializePrimaryKey(session); }
/** * Rehash any maps based on fields. * This is used to clone descriptors for aggregates, which hammer field names, * it is probably better not to hammer the field name and this should be refactored. */ public void rehashFieldDependancies(AbstractSession session) { setMappingsByField(Helper.rehashMap(getMappingsByField())); setReadOnlyMappingsByField(Helper.rehashMap(getReadOnlyMappingsByField())); setFieldsMap(Helper.rehashMap(getFieldsMap())); setPrimaryKeyMappings(new ArrayList(2)); setNonPrimaryKeyMappings(new ArrayList(2)); initializePrimaryKey(session); }
/** * Rehash any maps based on fields. * This is used to clone descriptors for aggregates, which hammer field names, * it is probably better not to hammer the field name and this should be refactored. */ public void rehashFieldDependancies(AbstractSession session) { setMappingsByField(Helper.rehashMap(getMappingsByField())); setReadOnlyMappingsByField(Helper.rehashMap(getReadOnlyMappingsByField())); setFieldsMap(Helper.rehashMap(getFieldsMap())); setPrimaryKeyMappings(new ArrayList(2)); setNonPrimaryKeyMappings(new ArrayList(2)); initializePrimaryKey(session); }
public void initializeDescriptor(XMLDescriptor descriptor){ AbstractSession theSession = (AbstractSession)getXmlContext().getSession(); //do initialization for new descriptor; descriptor.preInitialize(theSession); descriptor.initialize(theSession); descriptor.postInitialize(theSession); descriptor.getObjectBuilder().initializePrimaryKey(theSession); getXmlContext().storeXMLDescriptorByQName(descriptor); }
public void initializeDescriptor(XMLDescriptor descriptor){ AbstractSession theSession = (AbstractSession)getXmlContext().getSession(); //do initialization for new descriptor; descriptor.preInitialize(theSession); descriptor.initialize(theSession); descriptor.postInitialize(theSession); descriptor.getObjectBuilder().initializePrimaryKey(theSession); getXmlContext().storeXMLDescriptorByQName(descriptor); }
initializePrimaryKey(session); initializeJoinedAttributes();
initializePrimaryKey(session); initializeJoinedAttributes(); initializeBatchFetchedAttributes();
initializePrimaryKey(session); initializeJoinedAttributes(); initializeBatchFetchedAttributes();