org.fuchss.objectcasket.tablemodule.impl.CompareObjectImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of object-casket Show documentation
Show all versions of object-casket Show documentation
Object Casket is a simple O/R mapper that can be used together with the Java Persistence API (JPA). The aim is to provide a simple solution for small projects to store multi-related
entities in a simple manner.
package org.fuchss.objectcasket.tablemodule.impl;
import org.fuchss.objectcasket.sqlconnector.port.SqlArg;
import org.fuchss.objectcasket.sqlconnector.port.SqlObject;
import org.fuchss.objectcasket.tablemodule.port.Table;
import java.util.EnumMap;
import java.util.Map;
class CompareObjectImpl {
static Map map = new EnumMap<>(Table.TabCMP.class);
static {
map.put(Table.TabCMP.LESS, SqlArg.CMP.LESS);
map.put(Table.TabCMP.GREATER, SqlArg.CMP.GREATER);
map.put(Table.TabCMP.EQUAL, SqlArg.CMP.EQUAL);
map.put(Table.TabCMP.LESSEQ, SqlArg.CMP.LESSEQ);
map.put(Table.TabCMP.GREATEREQ, SqlArg.CMP.GREATEREQ);
map.put(Table.TabCMP.UNEQUAL, SqlArg.CMP.UNEQUAL);
}
SqlObject sqlObj;
SqlArg sqlArg;
TableImpl table;
String column;
CompareObjectImpl(TableImpl table, String column, SqlArg sqlArg, SqlObject sqlObj) {
this.table = table;
this.column = column;
this.sqlArg = sqlArg;
this.sqlObj = sqlObj;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy