
**Inheritance:**
java.lang.Object, [com.aspose.tasks.DbSettings](../../com.aspose.tasks/dbsettings)
```
public class PrimaveraDbSettings extends DbSettings
```

Allows to set necessary options to read project data from Primavera database.
## Constructors

| Constructor | Description |
| --- | --- |
| [PrimaveraDbSettings(String connectionString, int projectId)](#PrimaveraDbSettings-java.lang.String-int-) | Initializes a new instance of the [PrimaveraDbSettings](../../com.aspose.tasks/primaveradbsettings) class. |
## Methods

| Method | Description |
| --- | --- |
| [getProjectId()](#getProjectId--) | Gets id of the project to read. |
### PrimaveraDbSettings(String connectionString, int projectId) {#PrimaveraDbSettings-java.lang.String-int-}
```
public PrimaveraDbSettings(String connectionString, int projectId)
```


Initializes a new instance of the [PrimaveraDbSettings](../../com.aspose.tasks/primaveradbsettings) class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| connectionString | java.lang.String | the specified connection string. |
| projectId | int | the specified id of a project to read. |

### getProjectId() {#getProjectId--}
```
public final int getProjectId()
```


Gets id of the project to read.

**Returns:**
int - id of the project to read.
