Package org.persvr.data

Examples of org.persvr.data.ObjectId


  public void recordPropertyRemoval(String objectId, String name) throws Exception {
    if (objectId == null)
      DataSourceManager.deleteSource(name);
    else {
      ObjectId configId = sourceToConfigObject.get(objectId);
      if(configId != null){
        Transaction.addAffectedSource((WritableDataSource) configId.source);
 
        ((WritableDataSource) configId.source).recordPropertyRemoval(configId.subObjectId, name);
      }
View Full Code Here


  private ObjectId getPersistableBackerId(String objectId) throws Exception {
    return sourceToConfigObject.get(objectId);
  }
  private Map<String,Object> getPersistableBacker(String objectId) throws Exception {
    MapInitializer initializer = new MapInitializer();
    ObjectId configId = sourceToConfigObject.get(objectId);
    configId.source.mapObject(initializer, configId.subObjectId);
    //DataSourceManager.baseObjectSource.mapObject(initializer,getPersistableBackerId(objectId));
    return initializer.getMap();
  }
View Full Code Here

    //DataSourceManager.baseObjectSource.mapObject(initializer,getPersistableBackerId(objectId));
    return initializer.getMap();
  }
  public void mapObject(PersistableInitializer initializer, String objectId) throws Exception {
    if (!("".equals(objectId) || "schemaProperties".equals(objectId) || "root".equals(objectId))) {
      ObjectId configId = sourceToConfigObject.get(objectId);
      if(configId == null)
        throw new ObjectNotFoundException(this,objectId);
      configId.source.mapObject(initializer,configId.subObjectId);
      DataSource source = DataSourceManager.getSource(objectId);
      initializer.setProperty("instances", ObjectId.idForObject(source, ""));
View Full Code Here

TOP

Related Classes of org.persvr.data.ObjectId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.