All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.teamapps.pojo.template.EntityViewInterface.txt Maven / Gradle / Ivy

There is a newer version: 0.6.20
Show newest version
package {package};

import org.teamapps.universaldb.context.*;
import org.teamapps.universaldb.pojo.*;
import org.teamapps.universaldb.record.*;
import org.teamapps.universaldb.index.file.FileValue;
import org.teamapps.universaldb.index.translation.*;
import java.util.*;
import java.time.*;
import java.io.*;
import java.util.function.Supplier;
{imports}

public interface {type} extends Entity<{type}> {

{staticFieldNames}

    static {type} getById(int id) {
        return new {udbType}(id, false);
    }

    static EntityBuilder<{type}> getBuilder() {
        return new {udbType}(0, false);
    }

{methods}
    static List<{type}> getAll() {
        return {udbType}.getAll();
    }

    static List<{type}> sort(List<{type}> list, String sortFieldName, boolean ascending, UserContext userContext, String ... path) {
        return {udbType}.sort(list, sortFieldName, ascending, userContext, path);
    }

    static int getCount() {
        return {udbType}.getCount();
    }

    static {query} filter() {
        return new {udbQuery}();
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy