IntronSupportingEvidenceAdaptor *IntronSupportingEvidenceAdaptor_new(DBAdaptor *dba) {
  IntronSupportingEvidenceAdaptor *isea;

  if ((isea = (IntronSupportingEvidenceAdaptor *)calloc(1,sizeof(IntronSupportingEvidenceAdaptor))) == NULL) {
    fprintf(stderr, "ERROR: Failed allocating space for IntronSupportingEvidenceAdaptor\n");
    return NULL;
  }
  BaseFeatureAdaptor_init((BaseFeatureAdaptor *)isea, dba, INTRONSUPPORTINGEVIDENCE_ADAPTOR);

  isea->getTables                  = IntronSupportingEvidenceAdaptor_getTables;
  isea->getColumns                 = IntronSupportingEvidenceAdaptor_getColumns;
  isea->store                      = (BaseAdaptor_StoreFunc)IntronSupportingEvidenceAdaptor_store;
  isea->objectsFromStatementHandle = (BaseAdaptor_ObjectsFromStatementHandleFunc)IntronSupportingEvidenceAdaptor_objectsFromStatementHandle;

  return isea;
}
Exemplo n.º 2
0
PredictionTranscriptAdaptor *PredictionTranscriptAdaptor_new(DBAdaptor *dba) {
  PredictionTranscriptAdaptor *pta;

  if ((pta = (PredictionTranscriptAdaptor *)calloc(1,sizeof(PredictionTranscriptAdaptor))) == NULL) {
    fprintf(stderr, "ERROR: Failed allocating space for PredictionTranscriptAdaptor\n");
    return NULL;
  }
  BaseFeatureAdaptor_init((BaseFeatureAdaptor *)pta, dba, PREDICTIONTRANSCRIPT_ADAPTOR);

  pta->getTables = PredictionTranscriptAdaptor_getTables;
  pta->getColumns = PredictionTranscriptAdaptor_getColumns;
  pta->store = (BaseAdaptor_StoreFunc)PredictionTranscriptAdaptor_store;
  pta->objectsFromStatementHandle = (BaseAdaptor_ObjectsFromStatementHandleFunc)PredictionTranscriptAdaptor_objectsFromStatementHandle;

  return pta;
}