diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/CDODBSchema.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/CDODBSchema.java | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/CDODBSchema.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/CDODBSchema.java index 3fa7e2888f..07b8b3e9aa 100644 --- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/CDODBSchema.java +++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/CDODBSchema.java @@ -1,13 +1,14 @@ /** - * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others. + * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * Eike Stepper - initial API and implementation * Stefan Winkler - 271444: [DB] Multiple refactorings https://bugs.eclipse.org/bugs/show_bug.cgi?id=271444 + * Stefan Winkler - 249610: [DB] Support external references (Implementation) * */ package org.eclipse.emf.cdo.server.internal.db; @@ -98,6 +99,23 @@ public class CDODBSchema extends DBSchema PACKAGE_INFOS.addIndex(IDBIndex.Type.NON_UNIQUE, PACKAGE_INFOS_UNIT); /** + * DBTable cdo_external_refs + */ + public static final IDBTable EXTERNAL_REFS = INSTANCE.addTable("cdo_external_refs"); //$NON-NLS-1$ + + public static final IDBField EXTERNAL_ID = // + EXTERNAL_REFS.addField("id", DBType.BIGINT); //$NON-NLS-1$ + + public static final IDBField EXTERNAL_URI = // + EXTERNAL_REFS.addField("uri", DBType.VARCHAR); //$NON-NLS-1$ + + public static final IDBIndex INDEX_EXTERNAL_REFS_ID = // + EXTERNAL_REFS.addIndex(IDBIndex.Type.PRIMARY_KEY, EXTERNAL_ID); + + public static final IDBIndex INDEX_EXTERNAL_REFS_HASH = // + EXTERNAL_REFS.addIndex(IDBIndex.Type.NON_UNIQUE, EXTERNAL_URI); + + /** * Name of object table */ public static final String CDO_OBJECTS = "cdo_objects"; //$NON-NLS-1$ |