Skip to content

Commit

Permalink
IDBSchema not designed for case-sensitive databases #19
Browse files Browse the repository at this point in the history
  • Loading branch information
estepper committed Oct 28, 2023
1 parent 4a5679d commit 790acde
Show file tree
Hide file tree
Showing 66 changed files with 3,374 additions and 2,090 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public interface Handler
}

/**
* Thrown if a {@link LockArea lock area} is spcified that does not exist in a CDO {@link CDOCommonRepository
* Thrown if a {@link LockArea lock area} is specified that does not exist in a CDO {@link CDOCommonRepository
* repository}.
*
* @author Eike Stepper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,31 @@ public class Element_store
* <p>
* Specifies, if the store is a DBStore, the name of the DB schema to use for the repository.
* If omitted the {@link IDBAdapter#getDefaultSchemaName(Connection) default schema name} of the repository's
* {@link IDBAdapter DB adapter} is used as the schema name. If that is <code>null</code> the name of the
* repository is used as the schema name.
* {@link IDBAdapter DB adapter} is used as the schema name.
*/
public class Property_schemaName
{
}

/**
* Property prependSchemaName
* <p>
* Specifies, if the store is a DBStore, whether to qualify table names with the {@link Property_schemaName schema name}.
*/
public class Property_prependSchemaName
{
}

/**
* Property createSchemaIfNeeded
* <p>
* Specifies, if the store is a DBStore, whether to create the schema with the specified {@link #Property_schemaName name}
* at startup time, if it does not exist.
*/
public class Property_createSchemaIfNeeded
{
}

/**
* Property connectionKeepAlivePeriod
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,17 @@
-->

<store type="db">
<!-- The name of the DB schema to use for the repository.
If omitted the default schema name of the repository's DB adapter is used as the schema name.
If that is null the name of the repository is used as the schema name. -->
<property name="schemaName" value="public"/>
<!-- The name of the DB schema to use for the repository. If omitted the default schema name of the repository's DB adapter is used as the schema name.
<property name="schemaName" value="PUBLIC"/>
-->

<!-- Whether to qualify table names with the schema name.
<property name="prependSchemaName" value="true"/>
-->

<!-- Whether to create the schema with the specified name at startup time, if it does not exist.
<property name="createSchemaIfNeeded" value="true"/>
-->

<!-- Example http://bugs.eclipse.org/396379 (if idGenerationLocation == CLIENT)
<property name="idColumnLength" value="34"/>
Expand Down
15 changes: 11 additions & 4 deletions plugins/org.eclipse.emf.cdo.examples.master/config/cdo-server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,17 @@
-->

<store type="db">
<!-- The name of the DB schema to use for the repository.
If omitted the default schema name of the repository's DB adapter is used as the schema name.
If that is null the name of the repository is used as the schema name. -->
<property name="schemaName" value="public"/>
<!-- The name of the DB schema to use for the repository. If omitted the default schema name of the repository's DB adapter is used as the schema name.
<property name="schemaName" value="PUBLIC"/>
-->

<!-- Whether to qualify table names with the schema name.
<property name="prependSchemaName" value="true"/>
-->

<!-- Whether to create the schema with the specified name at startup time, if it does not exist.
<property name="createSchemaIfNeeded" value="true"/>
-->

<!-- Example http://bugs.eclipse.org/396379 (if idGenerationLocation == CLIENT)
<property name="idColumnLength" value="34"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,26 @@ public interface Props
/**
* The name of the DB schema to use for the repository.
* If omitted the {@link IDBAdapter#getDefaultSchemaName(Connection) default schema name} of the repository's
* {@link IDBAdapter DB adapter} is used as the schema name. If that is <code>null</code> the name of the
* repository is used as the schema name.
* {@link IDBAdapter DB adapter} is used as the schema name.
*
* @since 4.13
*/
public static final String SCHEMA_NAME = "schemaName"; //$NON-NLS-1$

/**
* Whether to qualify table names with the {@link #SCHEMA_NAME schema name}.
*
* @since 4.13
*/
public static final String PREPEND_SCHEMA_NAME = "prependSchemaName"; //$NON-NLS-1$

/**
* Whether to create the schema with the specified {@link #SCHEMA_NAME name} at startup time, if it does not exist.
*
* @since 4.13
*/
public static final String CREATE_SCHEMA_IF_NEEDED = "createSchemaIfNeeded"; //$NON-NLS-1$

/**
* Period at which to execute an SQL statement to keep DB connection alive, in minutes.
*/
Expand Down

This file was deleted.

Loading

0 comments on commit 790acde

Please sign in to comment.