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

org.xillium.data.persistence.crud.CrudConfiguration Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package org.xillium.data.persistence.crud;

import java.util.*;
import java.sql.*;
import javassist.*;
import javassist.bytecode.*;
import javassist.bytecode.annotation.MemberValue;
import javassist.bytecode.annotation.IntegerMemberValue;
import org.xillium.base.beans.Strings;
import org.xillium.data.*;
import org.xillium.data.persistence.*;


/**
 * The global configuration for CRUD operations generated from database schema.
 */
public class CrudConfiguration {
    public static final Map> aliases = new HashMap>();
    public static final Map icve = new HashMap();

    /**
     * Defines alias mapping for a table.
     */
    public CrudConfiguration(String table, Map alias) throws Exception {
        aliases.put(table, alias);
    }

    /**
     * Defines a mapping from the name of a constraint to an appropriate message when that constraint is violated.
     */
    public CrudConfiguration(Map messages) throws Exception {
        icve.putAll(messages);
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy