public class OfflineDBObjectFactory extends DBObjectFactory
Individual methods, rather than a generic newDBObject() method that uses reflection, are given to give type safety to API user code, and to make it a bit quicker as well.
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
OfflineDBObjectFactory.IDScheme
Deprecated.  
 | 
| Constructor and Description | 
|---|
OfflineDBObjectFactory(OfflineDBObjectProvider pro)
Constructor has package level access as API users should retrieve a factory from the provider, and not instantiate their own. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
ensureID(java.util.Collection<? extends DBObject> objs, Difference rs)
Checks that the given objects have an ID. 
 | 
DBObjectID | 
ensureID(DBObject obj)
Checks that the given object has an ID. 
 | 
DBObjectID | 
ensureID(DBObject obj, boolean deep)
Checks that the given object has an ID. 
 | 
DBObjectID | 
ensureID(DBObject obj, boolean deep, boolean forceNames)
Same as  
ensureID(DBObject,boolean) but optionally specify that this is only a load operation and therefore heavier ID processing (such as updating the name information in the IDs) can be skipped. | 
protected DBObjectID | 
findParentID(DBObjectID parentID)  | 
FKConstraint | 
newFKConstraint(java.lang.String name, Relation parent)
Deprecated. 
 
as of 11.1.1 call  
newObject(FKConstraint.class, parent) instead | 
BaseObjectID | 
newID(DBObject obj)
Creates a new ID for the given object and sets it too. 
 | 
BaseObjectID | 
newID(DBObject obj, DBObjectID parent)
Creates a new ID for the given object and sets it too. 
 | 
IdentifierBasedID | 
newID(java.lang.String type)
Deprecated.  
 | 
DBObjectID | 
newID(java.lang.String type, IdentifierBasedID parent)
Deprecated.  
 | 
PKConstraint | 
newPKConstraint(java.lang.String name, Relation parent)
Deprecated. 
 
as of 11.1.1 call  
newObject(PKConstraint.class, parent) instead | 
UniqueConstraint | 
newUniqueConstraint(java.lang.String name, Relation parent)
Deprecated. 
 
as of 11.1.1 call  
newObject(UniqueConstraint.class, parent) instead | 
createID, ensureBaseInfo, ensureDerivedPropertyBuilder, ensureProvider, ensureSchema, getExternalDefaultValue, getInitialValue, getLogger, getName, getObjectID, getProvider, isValidID, newObject, newObject, newObject, newObject, newObject, newObject, setDerivedPropertyBuilderpublic OfflineDBObjectFactory(OfflineDBObjectProvider pro)
@Deprecated public IdentifierBasedID newID(java.lang.String type)
@Deprecated public DBObjectID newID(java.lang.String type, IdentifierBasedID parent)
public BaseObjectID newID(DBObject obj)
public BaseObjectID newID(DBObject obj, DBObjectID parent)
@Deprecated public UniqueConstraint newUniqueConstraint(java.lang.String name, Relation parent)
newObject(UniqueConstraint.class, parent) instead@Deprecated public FKConstraint newFKConstraint(java.lang.String name, Relation parent)
newObject(FKConstraint.class, parent) instead@Deprecated public PKConstraint newPKConstraint(java.lang.String name, Relation parent)
newObject(PKConstraint.class, parent) insteadpublic DBObjectID ensureID(DBObject obj)
public void ensureID(java.util.Collection<? extends DBObject> objs, Difference rs)
public DBObjectID ensureID(DBObject obj, boolean deep)
public DBObjectID ensureID(DBObject obj, boolean deep, boolean forceNames)
ensureID(DBObject,boolean) but optionally specify that this is only a load operation and therefore heavier ID processing (such as updating the name information in the IDs) can be skipped.ensureID in class DBObjectFactoryobj - the object to ensure has a valid ID for this factory's providerdeep - whether to recurse and process the objects' child objects as wellforceNames - if true this will additionally set the name based information on identifier based IDs. This is a potentially more time consuming operation as it may require dependent objects to be loaded.protected DBObjectID findParentID(DBObjectID parentID)
findParentID in class DBObjectFactory