public class OfflineDBProjectSettings extends HashStructureAdapter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_SET_KEY |
static java.lang.String |
CONTENT_SET_LOCAL_KEY |
static java.lang.String |
DATABASE_SETTINGS_KEY
Key to use for storage of the modeler project specific settings
|
static java.lang.String |
DATATYPE_SETTINGS_KEY |
static java.lang.String |
DEFAULT_SCHEMA_NAME |
static java.lang.String |
SCHEMA_KEY |
_hash
Modifier and Type | Method and Description |
---|---|
OfflineDBProjectSettings |
createCopy()
Returns a copy of this project settings object.
|
static OfflineDBProjectSettings |
createDatabaseSettings(Project proj)
Create default settings on the given project.
|
static OfflineDBProjectSettings |
createDatabaseSettings(Project proj,
boolean userSettings,
boolean defaultProject)
Creates offline database settings for the given project and sets them
in the common data appropriately.
|
static void |
ensureContentSetDefaults(ContentSet contentSet,
Project proj) |
ContentSet |
getContentSet()
Returns the ContentSet for these OfflineDBProjectSettings.
|
static OfflineDBProjectSettings |
getDatabaseSettings(Project project)
Given a project, returns the offline database settings stored for that
project.
|
static OfflineDBProjectSettings |
getDatabaseSettings(Project proj,
HashStructure props)
Given a PropertyStorage object, returns the offline database settings.
|
static java.lang.String |
getDefaultDatabasePath()
Returns the default database path settings for the IDE.
|
static java.net.URL |
getDefaultDatabasePath(Locatable proj)
Given a project this creates a default database path relative the project's
base URL and returns the URL of the new directory.
|
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals
public static final java.lang.String DATABASE_SETTINGS_KEY
public static final java.lang.String CONTENT_SET_LOCAL_KEY
public static final java.lang.String CONTENT_SET_KEY
public static final java.lang.String DATATYPE_SETTINGS_KEY
public static final java.lang.String SCHEMA_KEY
public static final java.lang.String DEFAULT_SCHEMA_NAME
public OfflineDBProjectSettings createCopy()
public ContentSet getContentSet()
public static OfflineDBProjectSettings getDatabaseSettings(Project project)
public static OfflineDBProjectSettings getDatabaseSettings(Project proj, HashStructure props)
null
if the object contains no offline db settings.public static java.net.URL getDefaultDatabasePath(Locatable proj)
public static java.lang.String getDefaultDatabasePath()
public static OfflineDBProjectSettings createDatabaseSettings(Project proj)
public static OfflineDBProjectSettings createDatabaseSettings(Project proj, boolean userSettings, boolean defaultProject)
proj
- the project to create the settings forpropertydata
- the data container for the settingsuserSettings
- whether this is the user specific settingsdefaultProject
- whether this is the default projectpublic static void ensureContentSetDefaults(ContentSet contentSet, Project proj)