org.modeshape.connector.meta.jdbc
Class JdbcMetadataRepository
java.lang.Object
org.modeshape.graph.connector.base.Repository<PathNode,org.modeshape.connector.meta.jdbc.JdbcMetadataWorkspace>
org.modeshape.connector.meta.jdbc.JdbcMetadataRepository
@ThreadSafe
public class JdbcMetadataRepository
- extends Repository<PathNode,org.modeshape.connector.meta.jdbc.JdbcMetadataWorkspace>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TABLES_SEGMENT_NAME
public static final String TABLES_SEGMENT_NAME
- See Also:
- Constant Field Values
PROCEDURES_SEGMENT_NAME
public static final String PROCEDURES_SEGMENT_NAME
- See Also:
- Constant Field Values
JdbcMetadataRepository
public JdbcMetadataRepository(JdbcMetadataSource source)
initialize
protected void initialize()
- Description copied from class:
Repository
- Initializes the repository by creating the default workspace.
Due to the ordering restrictions on constructor chaining, this method cannot be called until the repository is fully
initialized. This method MUST be called at the end of the constructor by any class that implements MapRepository
.
- Overrides:
initialize
in class Repository<PathNode,org.modeshape.connector.meta.jdbc.JdbcMetadataWorkspace>
startTransaction
public JdbcMetadataRepository.JdbcMetadataTransaction startTransaction(ExecutionContext context,
boolean readonly)
- Description copied from class:
Repository
- Begin a transaction, hinting whether the transaction will be used only to read the content. If this is called, then the
transaction must be either
committed
or rolled back
.
- Specified by:
startTransaction
in class Repository<PathNode,org.modeshape.connector.meta.jdbc.JdbcMetadataWorkspace>
- Parameters:
context
- the context in which the transaction is to be performed; may not be nullreadonly
- true if the transaction will not modify any content, or false if changes are to be made
- Returns:
- the transaction; never null
- See Also:
Transaction.commit()
,
Transaction.rollback()
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.