Data Model
The CData JDBC Driver for Microsoft Office 365 models Microsoft Office 365 objects as an easy-to-use SQL database, using tables, views, and stored procedures. These are defined in schema files, which are simple, easy-to-read text files that define the structure and organization of data. Because the table definitions are dynamically retrieved, any changes to the remote data are immediately reflected in your queries.
Note: The driver uses the Microsoft Office 365 API to process supported filters. Other filters are processed client-side.
Tables
The Tables section, which details standard SQL tables, and the Views section, which lists read-only SQL tables, contain samples from a sample Office 365 site. Your data model is obtained dynamically based on your user credentials and Office 365 site.
The sample site includes the following tables:
| Table | Description |
| CalendarView | Returns a filtered list of calendar events such as occurrences, exceptions, and single instances, within a specified time range from a user's calendar. |
| Calendars | Provides details about calendars associated with users, including names, time zones, and ownership metadata. Maps dynamically to the API fields. |
| Contacts | Contains user contact records, including names, email addresses, job titles, and business phone numbers synced from Office365. |
| Conversations | Stores threaded conversations from Microsoft 365 Groups, including messages and participants. |
| EventAttachments | Displays attachments related to calendar events, including file metadata and associated event identifiers. |
| EventOccurrences | Provides a flattened view of recurring event instances, enabling analysis of each occurrence individually. |
| Events | Captures core details of calendar events, such as start and end times, locations, organizers, and recurrence rules. Maps dynamically to API fields. |
| Files | Lists files stored in OneDrive or SharePoint, with metadata including file names, locations, last modified times, and sharing status. |
| Groups | Includes metadata about Microsoft 365 Groups, such as group names, descriptions, email aliases, and visibility settings. |
| MessageAttachments | Retrieves email message attachments with metadata like attachment names, sizes, and parent message IDs. |
| Messages | Contains email messages from user mailboxes, including subjects, senders, timestamps, and read status. |
| Plans | Displays task plan data from Microsoft Planner, including plan names, owners, and associated group IDs. |
| Tasks | Lists individual tasks from Microsoft To Do or Planner, with details like titles, due dates, and completion status. |
| Users | Supports reading, creating, updating, and deleting Office365 user accounts. Includes profile and licensing details. |
Stored Procedures
Stored Procedures are SQL scripts that extend beyond standard CRUD operations. They can be used to search, update, and modify information in Office365.