installDDL() function?

Discussion in 'Plugin Development' started by Wundark, Jan 28, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Wundark

    I was looking through bukkit and its weird and wonderful functions. I stumbled across the installDDL() function.

    I have no idea what it does. Any help?

    From the Java Docs it gives this function.
    PHP:
    protected void installDDL() {
        
    SpiEbeanServer serv = (SpiEbeanServergetDatabase();
        
    DdlGenerator gen serv.getDdlGenerator();
     
        
    gen.runScript(falsegen.generateCreateDdl());
    }
     
  2. Offline

    Evangon

    I suggest don't even ask how to use any function that isn't commonly know. This looks like it's for CraftBukkit, not for regular end-users.
     
  3. It's used by the Ebean database stuff, look into Bukkit's home plugin, you'll see how installDLL() fits there (it might not be called directly but by another bukkit method tough)
     
  4. Offline

    masteroftime

    DDL stands for Data Definition Language and is a subset of SQL which is responsible for the definition and manipulation of tables (the create, alter, drop, etc. statements). Install DDL is responsible for installing the data structures for your plugin which are used by the persistence API.
     
Thread Status:
Not open for further replies.

Share This Page