Class PojoTemplate

java.lang.Object
org.teamapps.universaldb.pojo.template.PojoTemplate

public class PojoTemplate
extends java.lang.Object
  • Constructor Details

    • PojoTemplate

      public PojoTemplate​(java.lang.String template)
  • Method Details

    • createSchemaInterface

      public static PojoTemplate createSchemaInterface() throws java.io.IOException
      Throws:
      java.io.IOException
    • createEntityInterface

      public static PojoTemplate createEntityInterface() throws java.io.IOException
      Throws:
      java.io.IOException
    • createUdbEntity

      public static PojoTemplate createUdbEntity() throws java.io.IOException
      Throws:
      java.io.IOException
    • createQueryInterface

      public static PojoTemplate createQueryInterface() throws java.io.IOException
      Throws:
      java.io.IOException
    • createUdbQuery

      public static PojoTemplate createUdbQuery() throws java.io.IOException
      Throws:
      java.io.IOException
    • createEnum

      public static PojoTemplate createEnum() throws java.io.IOException
      Throws:
      java.io.IOException
    • create

      public static PojoTemplate create​(java.lang.String name) throws java.io.IOException
      Throws:
      java.io.IOException
    • setValue

      public void setValue​(java.lang.String name, java.lang.String value)
    • getTemplate

      public java.lang.String getTemplate()
    • addInterfaceGetMethod

      public boolean addInterfaceGetMethod​(Column column, int version)
    • addInterfaceSetMethod

      public boolean addInterfaceSetMethod​(Column column, Table table, int version)
    • addUdbEntityGetMethod

      public boolean addUdbEntityGetMethod​(Column column, int version)
    • addUdbEntitySetMethod

      public boolean addUdbEntitySetMethod​(Column column, Table table, int version)
    • addQueryInterfaceMethod

      public void addQueryInterfaceMethod​(Column column, java.lang.String query, boolean orQuery)
    • addSubQueryInterfaceMethod

      public void addSubQueryInterfaceMethod​(Column column, java.lang.String query)
    • addUdbSubQueryMethod

      public void addUdbSubQueryMethod​(Column column, java.lang.String query, java.lang.String type)
    • addUdbQueryMethod

      public void addUdbQueryMethod​(Column column, java.lang.String query, java.lang.String type, boolean orQuery)
    • addMethod

      public void addMethod​(java.lang.String method)
    • tabs

      public java.lang.String tabs​(int count)
    • nl

      public java.lang.String nl()
    • firstUpper

      public java.lang.String firstUpper​(java.lang.String s)
    • createConstantName

      public java.lang.String createConstantName​(java.lang.String s)
    • getIndexTypeName

      public java.lang.String getIndexTypeName​(ColumnType type)
    • getFilterTypeName

      public java.lang.String getFilterTypeName​(ColumnType type)
    • writeTemplate

      public void writeTemplate​(java.lang.String name, java.io.File dir) throws java.io.IOException
      Throws:
      java.io.IOException