Vector *AttributeAdaptor_fetchAllByTranslation(AttributeAdaptor *ata, Translation *translation, char *code) { Vector *result = NULL; if (translation == NULL) { fprintf(stderr,"Error: NULL Translation in AttributeAdaptor_fetchAllByTranslation\n"); } else { char *type = "translation"; char *table = "translation"; IDType id = Translation_getDbID(translation); result = AttributeAdaptor_doFetchAllByTypeAndTableAndID(ata, type, table, id, code); } return result; }
Vector *DBEntryAdaptor_fetchAllByTranslation(DBEntryAdaptor *dbea, Translation *trans) { Vector *translatLinks = DBEntryAdaptor_fetchByObjectType(dbea, Translation_getDbID(trans),"Translation"); return translatLinks; }