Examples of findOrCreate()


Examples of com.alvazan.orm.impl.meta.data.MetaClassInheritance.findOrCreate()

    if(theSuperclass != null) {
      //we need to swap the classMeta to the more specific class meta which may have not been
      //created yet, oh joy...so we findOrCreate and the shell will be filled in when processing
      //that @NoSqlEntity when it scans the subclasses.
      MetaClassInheritance meta = (MetaClassInheritance) classMeta;
      classMeta = meta.findOrCreate(field.getType(), theSuperclass);
    }
   
    metaField.setup(t, field, colName, classMeta, isIndexed, isPartitionedBy);
    return metaField;
  }
View Full Code Here

Examples of org.bukkit.craftbukkit.CraftTravelAgent.findOrCreate()

  public static Location findSpawnLocation(Location startLocation, boolean createPortals) {
    WorldServer ws = CommonNMS.getNative(startLocation.getWorld());
    // Use a new travel agent to designate a proper position
    CraftTravelAgent travelAgent = new CraftTravelAgent(ws);
    travelAgent.setCanCreatePortal(createPortals);
    Location exit = travelAgent.findOrCreate(startLocation);
    // Adjust the exit to make it suitable for players
    // Note: this will raise an NPE while trying to fire the PortalExit event
    // This is expected behavior
    try {
      travelAgent.adjustExit((Entity) findSpawnDummyEntity, exit, new Vector(0, 0, 0));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.