# Programming Examples

> The sample application code in the examples provided below demonstrates basic eXtremeDB operations: creating and connecting to a database, dictionary methods, and simple database writes and reads. Typically, eXtremeDB-based applications use the following scenarios to implement database access:

> ### Write

> > Create a database and connect to it. The result is a database handle.

> > Open a “write” transaction—obtain a transaction handle.

> > Using the transaction handle, “new” a new object—get a class handle.

> > Using the class handle, assign application values to object fields via different flavors of “put” methods.

> > Finish (commit or rollback) the transaction.

> ### Read

> > Connect to a database. The result is a database handle.

> > Open a “read” transaction—obtain a transaction handle.

> > Using the transaction handle, call one of the search methods: list, hash, tree or oid based. If the search was successful, obtain a class handle.

> > Using “get” methods, assign stored values to application variables.

> > Commit or rollback the transaction.

> The actual techniques for implementing this logic depends on the programming language used. Please use the links below to view examples for your development environment:

> C | Application examples in C
> C++ | Application examples in C++
> Java | Application examples in Java
> C# | Application examples in C#
> Python | Application examples in Python