|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IClassMapping
Basic interface for class mappings.
| Method Summary | |
|---|---|
java.sql.PreparedStatement |
createObjectIdStatement(IDBStoreAccessor accessor)
Create a prepared statement which returns all IDs of instances of the corresponding class. |
java.sql.PreparedStatement |
createResourceQueryStatement(IDBStoreAccessor accessor,
CDOID folderId,
java.lang.String name,
boolean exactMatch,
long timeStamp)
Create a prepared statement which returns all IDs of instances of the corresponding class. |
void |
detachObject(IDBStoreAccessor dbStoreAccessor,
CDOID id,
long revised,
org.eclipse.net4j.util.om.monitor.OMMonitor monitor)
Removes an object from the database. |
java.util.Collection<org.eclipse.net4j.db.ddl.IDBTable> |
getDBTables()
Returns all DB tables which are used by this class and all its contained features. |
IListMapping |
getListMapping(org.eclipse.emf.ecore.EStructuralFeature feature)
Get the mapping of the many-valued feature. |
boolean |
readRevision(IDBStoreAccessor dbStoreAccessor,
InternalCDORevision revision,
int listChunk)
Read the current version of a revision. |
void |
writeRevision(IDBStoreAccessor dbStoreAccessor,
InternalCDORevision revision,
org.eclipse.net4j.util.om.monitor.OMMonitor monitor)
Write the revision data to the database. |
| Method Detail |
|---|
java.util.Collection<org.eclipse.net4j.db.ddl.IDBTable> getDBTables()
IListMapping getListMapping(org.eclipse.emf.ecore.EStructuralFeature feature)
feature - the feature for which the mapping should be returned. feature.isMany() has to be
true.
boolean readRevision(IDBStoreAccessor dbStoreAccessor,
InternalCDORevision revision,
int listChunk)
dbStoreAccessor - the accessor to use.revision - the revision object into which the data should be read. The revision has to be have its ID set to the
requested object's ID. The version is ignored, as the version parameter is used to determine the version
to be read.listChunk - the chunk size to read attribute lists.
true, if the revision has been found and read correctly. false if the revision
could not be found. In this case, the content of revision is undefined.
void writeRevision(IDBStoreAccessor dbStoreAccessor,
InternalCDORevision revision,
org.eclipse.net4j.util.om.monitor.OMMonitor monitor)
dbStoreAccessor - the accessor to use.revision - the revision to write.monitor - the monitor to indicate progress.
void detachObject(IDBStoreAccessor dbStoreAccessor,
CDOID id,
long revised,
org.eclipse.net4j.util.om.monitor.OMMonitor monitor)
dbStoreAccessor - the accessor to use.id - the ID of the object to remove.revised - the timeStamp when this object became detached.monitor - the monitor to indicate progress.java.sql.PreparedStatement createObjectIdStatement(IDBStoreAccessor accessor)
accessor - the accessor to use to create the statement
result.executeQuery().
java.sql.PreparedStatement createResourceQueryStatement(IDBStoreAccessor accessor,
CDOID folderId,
java.lang.String name,
boolean exactMatch,
long timeStamp)
accessor - the accessor to use to create the statementfolderId - the ID of the containing folder. 0 means none.name - the name of the resource node to look upexactMatch - if true, name must match exactly, otherwise all resource nodes starting with
name are returned.timeStamp - a timestamp in the past if past versions should be looked up. In case of no audit support, this must be
CDORevision.UNSPECIFIED_DATE.
result.executeQuery().
org.eclipse.net4j.util.ImplementationError - if called on a mapping which does not map an EClass instanceof CDOResourceNode.
|
Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||