com.sleepycat.je.sync
Class SyncDatabase

java.lang.Object
  extended by com.sleepycat.je.sync.SyncDatabase
All Implemented Interfaces:
Serializable

public class SyncDatabase
extends Object
implements Serializable

Defines a synchronized database as a mapping between external table/view name and local JE database name, and includes a RecordConverter for converting between local and external record data.

See Also:
Serialized Form

Constructor Summary
SyncDatabase(String externalName, String localName, RecordConverter converter)
          Creates a synchronized database definition.
 
Method Summary
 RecordConverter getConverter()
          Returns the record converter.
 String getExternalName()
          Returns the name of the external table/view.
 String getLocalName()
          Returns the name of the local JE Database, or null if a default local name is to be used but has not yet been assigned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncDatabase

public SyncDatabase(String externalName,
                    String localName,
                    RecordConverter converter)
Creates a synchronized database definition.

Method Detail

getExternalName

public String getExternalName()
Returns the name of the external table/view.


getLocalName

public String getLocalName()
Returns the name of the local JE Database, or null if a default local name is to be used but has not yet been assigned.


getConverter

public RecordConverter getConverter()
Returns the record converter. Note that this may be a RecordMapping, which implements the RecordConverter interface.



Copyright (c) 2004-2012 Oracle. All rights reserved.