text
stringlengths
10
2.72M
package GUI; import javax.swing.JFrame; import javax.swing.JOptionPane; import net.miginfocom.swing.MigLayout; import javax.swing.JTextArea; import javax.swing.JButton; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.logging.Logger; import java.awt.event.ActionEvent; /** * Class used for editing a file * @author Patricia * */ public class edit { private JFrame editframe = new JFrame("Edit"); // cmdGUI cmdgui = new cmdGUI(); /** * Constructor of the edit class * @param file */ public edit(String file){ // cmdgui.getFrame().setEnabled(false); // cmdgui.getFrame().setVisible(false); editframe.getContentPane().setLayout(new MigLayout("", "[grow]", "[grow][]")); editframe.setSize(500, 500); JTextArea textArea = new JTextArea(); editframe.getContentPane().add(textArea, "cell 0 0,grow"); JButton btnSave = new JButton("Save"); editframe.getContentPane().add(btnSave, "cell 0 1,grow"); editframe.setVisible(true); BufferedReader br = null; String Line = null; try{ br = new BufferedReader(new FileReader(file)); while ((Line = br.readLine()) != null) { System.out.println(Line); textArea.setText(textArea.getText().concat(Line + "\n")); } }catch(IOException ex){ } btnSave.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (e.getSource() == btnSave) { System.out.println("edit"); String content = textArea.getText(); content = content.replaceAll("(?!\\r)\\n", "\r\n"); int dialogButton = JOptionPane.YES_NO_OPTION; int dialogResult = JOptionPane.showConfirmDialog(null, "Save all changes?", "Warning", dialogButton); if (dialogResult == 0) { System.out.println("Yes"); try { final BufferedWriter bw = new BufferedWriter(new FileWriter(file)); bw.write(content); bw.close(); editframe.dispose(); // cmdgui.getFrame().setEnabled(true); } catch (IOException ex) { } } else { System.out.println("No"); // cmdgui.getFrame().setEnabled(true); editframe.dispose(); } } } }); } }
package table; public class Order { private String fullName; private String name; private double cost; public Order() { } public Order(String fullName, String name, double cost) { this.fullName = fullName; this.name = name; this.cost = cost; } public String getFullName() { return fullName; } public void setFullName(String fullName) { this.fullName = fullName; } public String getName() { return name; } public void setName(String name) { this.name = name; } public double getCost() { return cost; } public void setCost(double cost) { this.cost = cost; } }
package com.mideas.rpg.v2.hud; import org.lwjgl.opengl.Display; import com.mideas.rpg.v2.Mideas; import com.mideas.rpg.v2.render.Draw; import com.mideas.rpg.v2.render.Sprites; import com.mideas.rpg.v2.FontManager; import com.mideas.rpg.v2.utils.Color; public class GoldFrame { public static void draw() { if(ContainerFrame.getBagOpen(0)) { float x = -159*Mideas.getDisplayXFactor(); float y = -174*Mideas.getDisplayYFactor(); int gold = Mideas.calcGoldCoin(); int silver = Mideas.calcSilverCoin(); int copper = (int)(Mideas.joueur1().getGold()-Mideas.calcGoldCoin()*10000-Mideas.calcSilverCoin()*100); Draw.drawQuad(Sprites.copper_coin, Display.getWidth()+x, Display.getHeight()+y); x-= FontManager.get("FRIZQT", 11).getWidth(String.valueOf(copper))+2; FontManager.get("FRIZQT", 11).drawStringShadow(Display.getWidth()+x, Display.getHeight()+y+1, String.valueOf(copper), Color.WHITE, Color.BLACK, 1, 0, 0); x-= Sprites.silver_coin.getImageWidth()+7; Draw.drawQuad(Sprites.silver_coin, Display.getWidth()+x, Display.getHeight()+y); x-= FontManager.get("FRIZQT", 11).getWidth(String.valueOf(silver))+2; FontManager.get("FRIZQT", 11).drawStringShadow(Display.getWidth()+x, Display.getHeight()+y+1, String.valueOf(silver), Color.WHITE, Color.BLACK, 1, 0, 0); x-= Sprites.gold_coin.getImageWidth()+7; Draw.drawQuad(Sprites.gold_coin, Display.getWidth()+x, Display.getHeight()+y); x-= FontManager.get("FRIZQT", 11).getWidth(String.valueOf(gold))+2; FontManager.get("FRIZQT", 11).drawStringShadow(Display.getWidth()+x, Display.getHeight()+y+1, String.valueOf(gold), Color.WHITE, Color.BLACK, 1, 0, 0); } } }
package com.jim.multipos.ui.customers.customer; import com.jim.multipos.core.BasePresenterImpl; import com.jim.multipos.data.DatabaseManager; import com.jim.multipos.data.db.model.customer.Customer; import com.jim.multipos.data.db.model.customer.CustomerGroup; import com.jim.multipos.ui.customers.model.CustomerAdapterDetails; import com.jim.multipos.utils.rxevents.main_order_events.GlobalEventConstants; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.inject.Inject; public class CustomerFragmentPresenterImpl extends BasePresenterImpl<CustomerFragmentView> implements CustomerFragmentPresenter { private DatabaseManager databaseManager; private List<CustomerAdapterDetails> items; public enum CustomerSortTypes {Id, Name, Address, Phone, Default, QrCode} @Inject protected CustomerFragmentPresenterImpl(CustomerFragmentView customerFragmentView, DatabaseManager databaseManager) { super(customerFragmentView); this.databaseManager = databaseManager; items = new ArrayList<>(); } @Override public void initData() { items.clear(); databaseManager.getCustomers().subscribe(customers -> { items.add(null); for (int i = 0; i < customers.size(); i++) { customers.get(i).resetCustomerGroups(); CustomerAdapterDetails customerAdapterDetails = new CustomerAdapterDetails(); customerAdapterDetails.setObject(customers.get(i)); items.add(customerAdapterDetails); } List<Customer> customers1 = databaseManager.getAllCustomers().blockingGet(); long id = 1L; if (!customers1.isEmpty()) { id = customers1.get(customers1.size() - 1).getClientId() + 1; } view.refreshList(items, databaseManager.getAllCustomerGroups().blockingSingle(), id); }); } @Override public void onAddPressed(String id, String name, String phone, String address, String qrCode, List<CustomerGroup> groups) { Customer customer = new Customer(); customer.setClientId(Long.valueOf(id)); customer.setName(name); customer.setPhoneNumber(phone); customer.setAddress(address); customer.setQrCode(qrCode); databaseManager.addCustomer(customer).subscribe(aLong -> { CustomerAdapterDetails customerAdapterDetails = new CustomerAdapterDetails(); customerAdapterDetails.setObject(customer); items.add(1, customerAdapterDetails); view.notifyItemAdd(1); for (CustomerGroup cg : groups) { databaseManager.getJoinCustomerGroupWithCustomerOperations().addCustomerToCustomerGroup(customer.getId(), cg.getId()).subscribe(); } view.sendEvent(GlobalEventConstants.ADD, customer); }); } @Override public void onSave(String name, String phone, String address, String qrCode, List<CustomerGroup> groups, Customer customer) { customer.setName(name); customer.setPhoneNumber(phone); customer.setAddress(address); customer.setQrCode(qrCode); databaseManager.getJoinCustomerGroupWithCustomerOperations().removeJoinCustomerGroupWithCustomer(customer.getId()).subscribe(); for (CustomerGroup cg : groups) { databaseManager.getJoinCustomerGroupWithCustomerOperations().addCustomerToCustomerGroup(customer.getId(), cg.getId()).subscribe(); } databaseManager.addCustomer(customer).subscribe(aLong -> { for (int i = 1; i < items.size(); i++) { if (items.get(i).getObject().getId().equals(customer.getId())) { CustomerAdapterDetails customerAdapterDetails = new CustomerAdapterDetails(); customerAdapterDetails.setObject(customer); items.set(i, customerAdapterDetails); view.notifyItemChanged(i); return; } } view.sendEvent(GlobalEventConstants.UPDATE, customer); }); } @Override public void onDelete(Customer customer) { customer.setActive(false); customer.setDeleted(true); databaseManager.getCustomerOperations().addCustomer(customer).subscribe(aBoolean -> { for (int i = 1; i < items.size(); i++) { if (items.get(i).getObject().getId().equals(customer.getId())) { items.remove(i); view.notifyItemRemove(i); break; } } view.sendEvent(GlobalEventConstants.DELETE, customer); }); } @Override public void sortList(CustomerSortTypes customerSortTypes) { items.remove(0); switch (customerSortTypes) { case Address: Collections.sort(items, (discounts, t1) -> t1.getObject().getAddress().compareTo(discounts.getObject().getAddress())); break; case Id: Collections.sort(items, (discounts, t1) -> t1.getObject().getClientId().compareTo(discounts.getObject().getClientId())); break; case Name: Collections.sort(items, (discounts, t1) -> t1.getObject().getName().compareTo(discounts.getObject().getName())); break; case QrCode: Collections.sort(items, (discounts, t1) -> t1.getObject().getQrCode().compareTo(discounts.getObject().getQrCode())); break; case Phone: Collections.sort(items, (discounts, t1) -> t1.getObject().getPhoneNumber().compareTo(discounts.getObject().getPhoneNumber())); break; case Default: Collections.sort(items, (discounts, t1) -> t1.getObject().getCreatedDate().compareTo(discounts.getObject().getCreatedDate())); break; } items.add(0, null); view.refreshList(); } @Override public void onCloseAction(Customer addItem) { boolean canBeClosed = true; for (int i = 1; i < items.size(); i++) { if (items.get(i).isChanged()) canBeClosed = false; } if (addItem != null){ if (!addItem.getName().equals("") || !addItem.getPhoneNumber().equals("") || !addItem.getQrCode().equals("") || !addItem.getAddress().equals("")) canBeClosed = false; } if (canBeClosed) { view.closeActivity(); } else { view.openWarning(); } } }
package yand.mapper; import java.util.*; /** * * @author YanD * */ public interface EmailMapper { //查询邮件信息列表 public List<Map<String, Object>> queryEmailList(String accept); }
package com.lupan.HeadFirstDesignMode.chapter1_strategy.ibehavior; /** * TODO 叫行为的接口 * * @author lupan * @version 2016/3/17 0017 */ public interface IQuackBehavior { public void quack(); }
package modeltests.featuresstatetests; import static org.junit.Assert.assertEquals; import cs3500.animator.model.featurestate.FeatureState; import cs3500.animator.model.featurestate.RectangleFeatureState; import org.junit.Test; /** * Tests for methods in FeatureState class. */ public class TestFeatureState { FeatureState rect; FeatureState ellipse; private void init() { this.rect = new RectangleFeatureState(10, 12, 14, 16, 18, 20, 22); this.ellipse = new RectangleFeatureState(15, 17, 19, 21, 23, 25, 27); } @Test public void testGetLocation() { this.init(); assertEquals(10, this.rect.getLocation().getX(), .001); assertEquals(12, this.rect.getLocation().getY(), .001); assertEquals(15, this.ellipse.getLocation().getX(), .001); assertEquals(17, this.ellipse.getLocation().getY(), .001); } @Test public void testGetColor() { this.init(); assertEquals(18, this.rect.getColor().getRed(), .001); assertEquals(20, this.rect.getColor().getGreen(), .001); assertEquals(22, this.rect.getColor().getBlue(), .001); assertEquals(23, this.ellipse.getColor().getRed(), .001); assertEquals(25, this.ellipse.getColor().getGreen(), .001); assertEquals(27, this.ellipse.getColor().getBlue(), .001); } @Test public void testGetXDim() { this.init(); assertEquals(14, this.rect.getXDimension(), .001); assertEquals(19, this.ellipse.getXDimension(), .001); } @Test public void testGetYDim() { this.init(); assertEquals(16, this.rect.getYDimension(), .001); assertEquals(21, this.ellipse.getYDimension(), .001); } @Test public void testGetAndSetMotionNumber() { this.init(); this.rect.setMotionNumber(10); assertEquals(10, this.rect.getMotionNumber()); this.ellipse.setMotionNumber(11); assertEquals(11, this.ellipse.getMotionNumber()); } }
// ______________________________________________________ // Generated by sql2java - http://sql2java.sourceforge.net/ // jdbc driver used at code generation time: com.mysql.jdbc.Driver // // Please help us improve this tool by reporting: // - problems and suggestions to // http://sourceforge.net/tracker/?group_id=54687 // - feedbacks and ideas on // http://sourceforge.net/forum/forum.php?forum_id=182208 // ______________________________________________________ package legaltime.model; import java.io.Serializable; import java.util.Map; import java.util.HashMap; import legaltime.model.GeneratedBean; import legaltime.model.PaymentLogBean; import legaltime.model.ClientBean; import org.apache.commons.lang.builder.CompareToBuilder; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; /** * ClientAccountRegisterBean is a mapping of client_account_register Table. * @author sql2java */ public class ClientAccountRegisterBean implements Serializable, GeneratedBean { private static final long serialVersionUID = 6033517642550956129L; private java.util.Date lastUpdate; private boolean lastUpdateIsModified = false; private boolean lastUpdateIsInitialized = false; private String tranType; private boolean tranTypeIsModified = false; private boolean tranTypeIsInitialized = false; private Double tranAmt; private boolean tranAmtIsModified = false; private boolean tranAmtIsInitialized = false; private String description; private boolean descriptionIsModified = false; private boolean descriptionIsInitialized = false; private java.util.Date effectiveDate; private boolean effectiveDateIsModified = false; private boolean effectiveDateIsInitialized = false; private Integer clientId; private boolean clientIdIsModified = false; private boolean clientIdIsInitialized = false; private Integer clientAccountRegisterId; private boolean clientAccountRegisterIdIsModified = false; private boolean clientAccountRegisterIdIsInitialized = false; private boolean _isNew = true; /** * Prefered methods to create a ClientAccountRegisterBean is via the createClientAccountRegisterBean method in ClientAccountRegisterManager or * via the factory class ClientAccountRegisterFactory create method */ protected ClientAccountRegisterBean() { } /** * Getter method for lastUpdate. * <br> * Meta Data Information (in progress): * <ul> * <li>full name: client_account_register.last_update</li> * <li>column size: 19</li> * <li>jdbc type returned by the driver: Types.TIMESTAMP</li> * </ul> * * @return the value of lastUpdate */ public java.util.Date getLastUpdate() { return lastUpdate; } /** * Setter method for lastUpdate. * <br> * The new value is set only if compareTo() says it is different, * or if one of either the new value or the current value is null. * In case the new value is different, it is set and the field is marked as 'modified'. * * @param newVal the new value to be assigned to lastUpdate */ public void setLastUpdate(java.util.Date newVal) { if ((newVal != null && lastUpdate != null && (newVal.compareTo(lastUpdate) == 0)) || (newVal == null && lastUpdate == null && lastUpdateIsInitialized)) { return; } lastUpdate = newVal; lastUpdateIsModified = true; lastUpdateIsInitialized = true; } /** * Setter method for lastUpdate. * <br> * Convenient for those who do not want to deal with Objects for primary types. * * @param newVal the new value to be assigned to lastUpdate */ public void setLastUpdate(long newVal) { setLastUpdate(new java.util.Date(newVal)); } /** * Determines if the lastUpdate has been modified. * * @return true if the field has been modified, false if the field has not been modified */ public boolean isLastUpdateModified() { return lastUpdateIsModified; } /** * Determines if the lastUpdate has been initialized. * <br> * It is useful to determine if a field is null on purpose or just because it has not been initialized. * * @return true if the field has been initialized, false otherwise */ public boolean isLastUpdateInitialized() { return lastUpdateIsInitialized; } /** * Getter method for tranType. * <br> * Meta Data Information (in progress): * <ul> * <li>full name: client_account_register.tran_type</li> * <li>column size: 5</li> * <li>jdbc type returned by the driver: Types.VARCHAR</li> * </ul> * * @return the value of tranType */ public String getTranType() { return tranType; } /** * Setter method for tranType. * <br> * The new value is set only if compareTo() says it is different, * or if one of either the new value or the current value is null. * In case the new value is different, it is set and the field is marked as 'modified'. * * @param newVal the new value to be assigned to tranType */ public void setTranType(String newVal) { if ((newVal != null && tranType != null && (newVal.compareTo(tranType) == 0)) || (newVal == null && tranType == null && tranTypeIsInitialized)) { return; } tranType = newVal; tranTypeIsModified = true; tranTypeIsInitialized = true; } /** * Determines if the tranType has been modified. * * @return true if the field has been modified, false if the field has not been modified */ public boolean isTranTypeModified() { return tranTypeIsModified; } /** * Determines if the tranType has been initialized. * <br> * It is useful to determine if a field is null on purpose or just because it has not been initialized. * * @return true if the field has been initialized, false otherwise */ public boolean isTranTypeInitialized() { return tranTypeIsInitialized; } /** * Getter method for tranAmt. * <br> * Meta Data Information (in progress): * <ul> * <li>full name: client_account_register.tran_amt</li> * <li>column size: 22</li> * <li>jdbc type returned by the driver: Types.DOUBLE</li> * </ul> * * @return the value of tranAmt */ public Double getTranAmt() { return tranAmt; } /** * Setter method for tranAmt. * <br> * The new value is set only if compareTo() says it is different, * or if one of either the new value or the current value is null. * In case the new value is different, it is set and the field is marked as 'modified'. * * @param newVal the new value to be assigned to tranAmt */ public void setTranAmt(Double newVal) { if ((newVal != null && tranAmt != null && (newVal.compareTo(tranAmt) == 0)) || (newVal == null && tranAmt == null && tranAmtIsInitialized)) { return; } tranAmt = newVal; tranAmtIsModified = true; tranAmtIsInitialized = true; } /** * Setter method for tranAmt. * <br> * Convenient for those who do not want to deal with Objects for primary types. * * @param newVal the new value to be assigned to tranAmt */ public void setTranAmt(double newVal) { setTranAmt(new Double(newVal)); } /** * Determines if the tranAmt has been modified. * * @return true if the field has been modified, false if the field has not been modified */ public boolean isTranAmtModified() { return tranAmtIsModified; } /** * Determines if the tranAmt has been initialized. * <br> * It is useful to determine if a field is null on purpose or just because it has not been initialized. * * @return true if the field has been initialized, false otherwise */ public boolean isTranAmtInitialized() { return tranAmtIsInitialized; } /** * Getter method for description. * <br> * Meta Data Information (in progress): * <ul> * <li>full name: client_account_register.description</li> * <li>column size: 255</li> * <li>jdbc type returned by the driver: Types.VARCHAR</li> * </ul> * * @return the value of description */ public String getDescription() { return description; } /** * Setter method for description. * <br> * The new value is set only if compareTo() says it is different, * or if one of either the new value or the current value is null. * In case the new value is different, it is set and the field is marked as 'modified'. * * @param newVal the new value to be assigned to description */ public void setDescription(String newVal) { if ((newVal != null && description != null && (newVal.compareTo(description) == 0)) || (newVal == null && description == null && descriptionIsInitialized)) { return; } description = newVal; descriptionIsModified = true; descriptionIsInitialized = true; } /** * Determines if the description has been modified. * * @return true if the field has been modified, false if the field has not been modified */ public boolean isDescriptionModified() { return descriptionIsModified; } /** * Determines if the description has been initialized. * <br> * It is useful to determine if a field is null on purpose or just because it has not been initialized. * * @return true if the field has been initialized, false otherwise */ public boolean isDescriptionInitialized() { return descriptionIsInitialized; } /** * Getter method for effectiveDate. * <br> * Meta Data Information (in progress): * <ul> * <li>full name: client_account_register.effective_date</li> * <li>column size: 10</li> * <li>jdbc type returned by the driver: Types.DATE</li> * </ul> * * @return the value of effectiveDate */ public java.util.Date getEffectiveDate() { return effectiveDate; } /** * Setter method for effectiveDate. * <br> * The new value is set only if compareTo() says it is different, * or if one of either the new value or the current value is null. * In case the new value is different, it is set and the field is marked as 'modified'. * * @param newVal the new value to be assigned to effectiveDate */ public void setEffectiveDate(java.util.Date newVal) { if ((newVal != null && effectiveDate != null && (newVal.compareTo(effectiveDate) == 0)) || (newVal == null && effectiveDate == null && effectiveDateIsInitialized)) { return; } effectiveDate = newVal; effectiveDateIsModified = true; effectiveDateIsInitialized = true; } /** * Setter method for effectiveDate. * <br> * Convenient for those who do not want to deal with Objects for primary types. * * @param newVal the new value to be assigned to effectiveDate */ public void setEffectiveDate(long newVal) { setEffectiveDate(new java.util.Date(newVal)); } /** * Determines if the effectiveDate has been modified. * * @return true if the field has been modified, false if the field has not been modified */ public boolean isEffectiveDateModified() { return effectiveDateIsModified; } /** * Determines if the effectiveDate has been initialized. * <br> * It is useful to determine if a field is null on purpose or just because it has not been initialized. * * @return true if the field has been initialized, false otherwise */ public boolean isEffectiveDateInitialized() { return effectiveDateIsInitialized; } /** * Getter method for clientId. * <br> * Meta Data Information (in progress): * <ul> * <li>full name: client_account_register.client_id</li> * <li> foreign key: client.client_id</li> * <li>column size: 10</li> * <li>jdbc type returned by the driver: Types.INTEGER</li> * </ul> * * @return the value of clientId */ public Integer getClientId() { return clientId; } /** * Setter method for clientId. * <br> * The new value is set only if compareTo() says it is different, * or if one of either the new value or the current value is null. * In case the new value is different, it is set and the field is marked as 'modified'. * * @param newVal the new value to be assigned to clientId */ public void setClientId(Integer newVal) { if ((newVal != null && clientId != null && (newVal.compareTo(clientId) == 0)) || (newVal == null && clientId == null && clientIdIsInitialized)) { return; } clientId = newVal; clientIdIsModified = true; clientIdIsInitialized = true; } /** * Setter method for clientId. * <br> * Convenient for those who do not want to deal with Objects for primary types. * * @param newVal the new value to be assigned to clientId */ public void setClientId(int newVal) { setClientId(new Integer(newVal)); } /** * Determines if the clientId has been modified. * * @return true if the field has been modified, false if the field has not been modified */ public boolean isClientIdModified() { return clientIdIsModified; } /** * Determines if the clientId has been initialized. * <br> * It is useful to determine if a field is null on purpose or just because it has not been initialized. * * @return true if the field has been initialized, false otherwise */ public boolean isClientIdInitialized() { return clientIdIsInitialized; } /** * Getter method for clientAccountRegisterId. * <br> * PRIMARY KEY.<br> * Meta Data Information (in progress): * <ul> * <li>full name: client_account_register.client_account_register_id</li> * <li> imported key: payment_log.client_account_register_id</li> * <li>column size: 10</li> * <li>jdbc type returned by the driver: Types.INTEGER</li> * </ul> * * @return the value of clientAccountRegisterId */ public Integer getClientAccountRegisterId() { return clientAccountRegisterId; } /** * Setter method for clientAccountRegisterId. * <br> * The new value is set only if compareTo() says it is different, * or if one of either the new value or the current value is null. * In case the new value is different, it is set and the field is marked as 'modified'. * * @param newVal the new value to be assigned to clientAccountRegisterId */ public void setClientAccountRegisterId(Integer newVal) { if ((newVal != null && clientAccountRegisterId != null && (newVal.compareTo(clientAccountRegisterId) == 0)) || (newVal == null && clientAccountRegisterId == null && clientAccountRegisterIdIsInitialized)) { return; } clientAccountRegisterId = newVal; clientAccountRegisterIdIsModified = true; clientAccountRegisterIdIsInitialized = true; } /** * Setter method for clientAccountRegisterId. * <br> * Convenient for those who do not want to deal with Objects for primary types. * * @param newVal the new value to be assigned to clientAccountRegisterId */ public void setClientAccountRegisterId(int newVal) { setClientAccountRegisterId(new Integer(newVal)); } /** * Determines if the clientAccountRegisterId has been modified. * * @return true if the field has been modified, false if the field has not been modified */ public boolean isClientAccountRegisterIdModified() { return clientAccountRegisterIdIsModified; } /** * Determines if the clientAccountRegisterId has been initialized. * <br> * It is useful to determine if a field is null on purpose or just because it has not been initialized. * * @return true if the field has been initialized, false otherwise */ public boolean isClientAccountRegisterIdInitialized() { return clientAccountRegisterIdIsInitialized; } /** The Client referenced by this bean. */ private ClientBean referencedClient; /** Getter method for ClientBean. */ public ClientBean getClientBean() { return this.referencedClient; } /** Setter method for ClientBean. */ public void setClientBean(ClientBean reference) { this.referencedClient = reference; } /** * Determines if the current object is new. * * @return true if the current object is new, false if the object is not new */ public boolean isNew() { return _isNew; } /** * Specifies to the object if it has been set as new. * * @param isNew the boolean value to be assigned to the isNew field */ public void isNew(boolean isNew) { this._isNew = isNew; } /** * Determines if the object has been modified since the last time this method was called. * <br> * We can also determine if this object has ever been modified since its creation. * * @return true if the object has been modified, false if the object has not been modified */ public boolean isModified() { return lastUpdateIsModified || tranTypeIsModified || tranAmtIsModified || descriptionIsModified || effectiveDateIsModified || clientIdIsModified || clientAccountRegisterIdIsModified ; } /** * Resets the object modification status to 'not modified'. */ public void resetIsModified() { lastUpdateIsModified = false; tranTypeIsModified = false; tranAmtIsModified = false; descriptionIsModified = false; effectiveDateIsModified = false; clientIdIsModified = false; clientAccountRegisterIdIsModified = false; } /** * Copies the passed bean into the current bean. * * @param bean the bean to copy into the current bean */ public void copy(ClientAccountRegisterBean bean) { setLastUpdate(bean.getLastUpdate()); setTranType(bean.getTranType()); setTranAmt(bean.getTranAmt()); setDescription(bean.getDescription()); setEffectiveDate(bean.getEffectiveDate()); setClientId(bean.getClientId()); setClientAccountRegisterId(bean.getClientAccountRegisterId()); } /** * return a dictionnary of the object */ public Map getDictionnary() { Map dictionnary = new HashMap(); dictionnary.put("last_update", getLastUpdate() == null ? "" : getLastUpdate().toString()); dictionnary.put("tran_type", getTranType() == null ? "" : getTranType().toString()); dictionnary.put("tran_amt", getTranAmt() == null ? "" : getTranAmt().toString()); dictionnary.put("description", getDescription() == null ? "" : getDescription().toString()); dictionnary.put("effective_date", getEffectiveDate() == null ? "" : getEffectiveDate().toString()); dictionnary.put("client_id", getClientId() == null ? "" : getClientId().toString()); dictionnary.put("client_account_register_id", getClientAccountRegisterId() == null ? "" : getClientAccountRegisterId().toString()); return dictionnary; } /** * return a dictionnary of the pk columns */ public Map getPkDictionnary() { Map dictionnary = new HashMap(); dictionnary.put("client_account_register_id", getClientAccountRegisterId() == null ? "" : getClientAccountRegisterId().toString()); return dictionnary; } /** * return a the value string representation of the given field */ public String getValue(String column) { if (null == column || "".equals(column)) { return ""; } else if ("last_update".equalsIgnoreCase(column) || "lastUpdate".equalsIgnoreCase(column)) { return getLastUpdate() == null ? "" : getLastUpdate().toString(); } else if ("tran_type".equalsIgnoreCase(column) || "tranType".equalsIgnoreCase(column)) { return getTranType() == null ? "" : getTranType().toString(); } else if ("tran_amt".equalsIgnoreCase(column) || "tranAmt".equalsIgnoreCase(column)) { return getTranAmt() == null ? "" : getTranAmt().toString(); } else if ("description".equalsIgnoreCase(column) || "description".equalsIgnoreCase(column)) { return getDescription() == null ? "" : getDescription().toString(); } else if ("effective_date".equalsIgnoreCase(column) || "effectiveDate".equalsIgnoreCase(column)) { return getEffectiveDate() == null ? "" : getEffectiveDate().toString(); } else if ("client_id".equalsIgnoreCase(column) || "clientId".equalsIgnoreCase(column)) { return getClientId() == null ? "" : getClientId().toString(); } else if ("client_account_register_id".equalsIgnoreCase(column) || "clientAccountRegisterId".equalsIgnoreCase(column)) { return getClientAccountRegisterId() == null ? "" : getClientAccountRegisterId().toString(); } return ""; } /** * @see java.lang.Object#equals(Object) */ public boolean equals(Object object) { if (!(object instanceof ClientAccountRegisterBean)) { return false; } ClientAccountRegisterBean obj = (ClientAccountRegisterBean) object; return new EqualsBuilder() .append(getLastUpdate(), obj.getLastUpdate()) .append(getTranType(), obj.getTranType()) .append(getTranAmt(), obj.getTranAmt()) .append(getDescription(), obj.getDescription()) .append(getEffectiveDate(), obj.getEffectiveDate()) .append(getClientId(), obj.getClientId()) .append(getClientAccountRegisterId(), obj.getClientAccountRegisterId()) .isEquals(); } /** * @see java.lang.Object#hashCode() */ public int hashCode() { return new HashCodeBuilder(-82280557, -700257973) .append(getLastUpdate()) .append(getTranType()) .append(getTranAmt()) .append(getDescription()) .append(getEffectiveDate()) .append(getClientId()) .append(getClientAccountRegisterId()) .toHashCode(); } /** * @see java.lang.Object#toString() */ public String toString() { return toString(ToStringStyle.MULTI_LINE_STYLE); } /** * you can use the following styles: * <li>ToStringStyle.DEFAULT_STYLE</li> * <li>ToStringStyle.MULTI_LINE_STYLE</li> * <li>ToStringStyle.NO_FIELD_NAMES_STYLE</li> * <li>ToStringStyle.SHORT_PREFIX_STYLE</li> * <li>ToStringStyle.SIMPLE_STYLE</li> */ public String toString(ToStringStyle style) { return new ToStringBuilder(this, style) .append("last_update", getLastUpdate()) .append("tran_type", getTranType()) .append("tran_amt", getTranAmt()) .append("description", getDescription()) .append("effective_date", getEffectiveDate()) .append("client_id", getClientId()) .append("client_account_register_id", getClientAccountRegisterId()) .toString(); } public int compareTo(Object object) { ClientAccountRegisterBean obj = (ClientAccountRegisterBean) object; return new CompareToBuilder() .append(getLastUpdate(), obj.getLastUpdate()) .append(getTranType(), obj.getTranType()) .append(getTranAmt(), obj.getTranAmt()) .append(getDescription(), obj.getDescription()) .append(getEffectiveDate(), obj.getEffectiveDate()) .append(getClientId(), obj.getClientId()) .append(getClientAccountRegisterId(), obj.getClientAccountRegisterId()) .toComparison(); } }
package ru.rikabc.services; import ru.rikabc.models.UserFile; import java.util.List; /** * @Author Roman Khayrullin on 27.04.2018 * @Version 1.0 */ public interface ProfileService { List<UserFile> getAllUserFiles(Long userId); }
package repls04; import java.util.*; public class SplitSentence { public static void main(String[] args) { Scanner input = new Scanner(System.in); String sentence = input.nextLine(); //type your code below String [] sentenceNew = sentence.split(" "); for(String each : sentenceNew){ System.out.println(each); } } }
package miggy.cpu.instructions.not; import miggy.BasicSetup; import miggy.SystemModel; import miggy.SystemModel.CpuFlag; // $Revision: 21 $ public class NOTTest extends BasicSetup { public NOTTest(String test) { super(test); } public void testByte() { setInstruction(0x4600); //not.b d0 SystemModel.CPU.setDataRegister(0, 0x87654321); SystemModel.CPU.setCCR((byte) 0); int time = SystemModel.CPU.execute(); assertEquals("Check result", 0x876543de, SystemModel.CPU.getDataRegister(0)); assertFalse("Check X", SystemModel.CPU.isSet(CpuFlag.X)); assertTrue("Check N", SystemModel.CPU.isSet(CpuFlag.N)); assertFalse("Check Z", SystemModel.CPU.isSet(CpuFlag.Z)); assertFalse("Check V", SystemModel.CPU.isSet(CpuFlag.V)); assertFalse("Check C", SystemModel.CPU.isSet(CpuFlag.C)); } public void testWord() { setInstruction(0x4640); //not.w d0 SystemModel.CPU.setDataRegister(0, 0x87654321); SystemModel.CPU.setCCR((byte) 0); int time = SystemModel.CPU.execute(); assertEquals("Check result", 0x8765bcde, SystemModel.CPU.getDataRegister(0)); assertFalse("Check X", SystemModel.CPU.isSet(CpuFlag.X)); assertTrue("Check N", SystemModel.CPU.isSet(CpuFlag.N)); assertFalse("Check Z", SystemModel.CPU.isSet(CpuFlag.Z)); assertFalse("Check V", SystemModel.CPU.isSet(CpuFlag.V)); assertFalse("Check C", SystemModel.CPU.isSet(CpuFlag.C)); } public void testLong() { setInstruction(0x4680); //neg.l d0 SystemModel.CPU.setDataRegister(0, 0x87654321); SystemModel.CPU.setCCR((byte) 0); int time = SystemModel.CPU.execute(); assertEquals("Check result", 0x789abcde, SystemModel.CPU.getDataRegister(0)); assertFalse("Check X", SystemModel.CPU.isSet(CpuFlag.X)); assertFalse("Check N", SystemModel.CPU.isSet(CpuFlag.N)); assertFalse("Check Z", SystemModel.CPU.isSet(CpuFlag.Z)); assertFalse("Check V", SystemModel.CPU.isSet(CpuFlag.V)); assertFalse("Check C", SystemModel.CPU.isSet(CpuFlag.C)); } }
package martin.s4a.library; import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Calendar; import martin.s4a.templates.CustomShitTemplate; import martin.s4a.templates.HolidayTemplate; /** * Created by Martin on 16.2.2015. */ public class Holidays { private static ArrayList<HolidayTemplate> getHolidays() { ArrayList<HolidayTemplate> holidays = new ArrayList<>(); holidays.add(new HolidayTemplate(1,0,"Den obnovy samostatného českého státu")); holidays.add(new HolidayTemplate(1,4,"Svátek práce")); holidays.add(new HolidayTemplate(8,4,"Den vítězství")); holidays.add(new HolidayTemplate(5,6,"Den slovanských věrozvěstů Cyrila a Metoděje")); holidays.add(new HolidayTemplate(6,6,"Den upálení mistra Jana Husa")); holidays.add(new HolidayTemplate(28,8,"Den české státnosti")); holidays.add(new HolidayTemplate(28,9,"Den vzniku samostatného československého státu")); holidays.add(new HolidayTemplate(17,10,"Den boje za svobodu a demokracii")); holidays.add(new HolidayTemplate(24,11,"Štědrý den")); holidays.add(new HolidayTemplate(25,11,"1. svátek vánoční")); holidays.add(new HolidayTemplate(26,11,"2. svátek vánoční")); return holidays; } public static String getHolidayOnDay(int day, int month) { String name = ""; ArrayList<HolidayTemplate> holidays = getHolidays(); for(int i = 0; i < holidays.size();i++) { if((day == holidays.get(i).getDay()) && (month == holidays.get(i).getMonth())) { name = holidays.get(i).getName(); break; } } return name; } }
package roboguy99.recipeRemover; import java.util.List; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.CraftingManager; import net.minecraft.item.crafting.IRecipe; import net.minecraftforge.common.config.Configuration; import net.minecraftforge.common.config.Property; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.event.FMLServerStartingEvent; @Mod(modid="RecipeRemover", name="Recipe Remover", version="1.1.0", acceptableRemoteVersions = "*") public class RecipeRemover { Configuration config; private static final String[] DEFAULT_RECIPE_LIST = {"minecraft:stone", "modid:item"}; private String[] recipeList; public static final Logger logger = LogManager.getLogger("RecipeRemover"); @EventHandler public void preInit(FMLPreInitializationEvent e) { logger.info("Loading config"); Configuration config = new Configuration(e.getSuggestedConfigurationFile()); config.load(); Property recipeList = config.get(Configuration.CATEGORY_GENERAL, "disabledRecipes", DEFAULT_RECIPE_LIST); String[] recipeListS = recipeList.getStringList(); recipeList.comment = "Place the block ID on each separate line. \n Use the /id command in-game to get the block/item IDs."; config.save(); this.recipeList = recipeListS; logger.info("Config loaded successfully"); } @EventHandler public void postInit(FMLPostInitializationEvent e) { System.out.println("[RecipeRemover] Removing recipes"); for(int i = 0; i < this.recipeList.length; i++) { this.removeRecipes(this.recipeList[i]); } logger.info("Recipes removed succesfully"); } @EventHandler public void serverLoad(FMLServerStartingEvent event) { event.registerServerCommand(new FindIDCommand()); event.registerServerCommand(new FindIDFromHandCommand()); } @SuppressWarnings("unchecked") private void removeRecipes(String toDelete) { ItemStack resultItem = new ItemStack((Item)Item.itemRegistry.getObject(toDelete)); List<IRecipe> recipes = CraftingManager.getInstance().getRecipeList(); for (int i = 0; i < recipes.size(); i++) { IRecipe tmpRecipe = recipes.get(i); ItemStack recipeResult = tmpRecipe.getRecipeOutput(); if (resultItem != null && recipeResult != null) resultItem.stackSize = recipeResult.stackSize; if (ItemStack.areItemStacksEqual(resultItem, recipeResult)) { recipes.remove(i--); } } } }
package com.cmu.edu.enterprisewebdevelopment.domain; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.*; import java.util.List; @Entity @Data @NoArgsConstructor public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String username; private String password; private String email; @ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) private List<Role> roles; public User(String username, String password, String email) { this.username = username; this.password = password; this.email = email; } }
package com.techlab.model; public class Robots implements IWorking{ @Override public void startWork() { System.out.println("Robots have started working."); } @Override public void stopWork() { System.out.println("Robots have finished working."); } }
package ua.khai.slynko.library.web.command.outOfControl; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import ua.khai.slynko.library.constant.Constants; import ua.khai.slynko.library.db.entity.Status; import ua.khai.slynko.library.db.dao.CatalogItemDao; import ua.khai.slynko.library.db.entity.CatalogItem; import ua.khai.slynko.library.db.entity.User; import ua.khai.slynko.library.exception.AppException; import ua.khai.slynko.library.exception.DBException; import ua.khai.slynko.library.web.abstractCommand.Command; import ua.khai.slynko.library.web.command.utils.CommandUtils; /** * Lists catalog items. * * @author O.Slynko * */ public class ListCatalogCommand extends Command { @Override public String execute(HttpServletRequest request, HttpServletResponse response) throws AppException { if (isSendBookRequestCommand(request)) { sendBookRequest(request); return Constants.Path.PAGE_HOME_REDERECT; } else { findBooksAndSort(request); return Constants.Path.PAGE_LIST_CATALOG; } } private boolean isSendBookRequestCommand(HttpServletRequest request) { return request.getParameterValues("itemId") != null; } private void sendBookRequest(HttpServletRequest request) throws DBException { List<String> itemIds = new ArrayList<>(Arrays.asList(request.getParameterValues("itemId"))); User user = (User) request.getSession().getAttribute("user"); itemIds.removeAll(new CatalogItemDao().findCatalogItemIdsByUserIdAndStatusId( user.getId(), Status.NOT_CONFIRMED.getValue())); new CatalogItemDao().sendCatalogItemRequest(user.getId(), itemIds); request.getSession().setAttribute("bookRequestIsSent", true); request.setAttribute("sendRedirect", true); } private void findBooksAndSort(HttpServletRequest request) throws DBException { List<CatalogItem> catalogItems = new CatalogItemDao().getListCatalogItems( request.getParameter("author"), request.getParameter("title")); if (catalogItems == null || catalogItems.size() == 0) { request.setAttribute("noMatchesFound", true); } else { String sortCriteria = request.getParameter("sortBy"); CommandUtils.sortCatalogItemsBy(catalogItems, sortCriteria); request.setAttribute("catalogItems", catalogItems); } } }
package com.tencent.mm.plugin.game.wepkg; import com.tencent.mm.plugin.game.wepkg.model.WepkgVersionManager; import com.tencent.mm.plugin.game.wepkg.utils.d; class a$2 implements Runnable { final /* synthetic */ boolean kdO; final /* synthetic */ a kdP; a$2(a aVar, boolean z) { this.kdP = aVar; this.kdO = z; } public final void run() { if (!this.kdO) { WepkgVersionManager.g(d.Eu(a.b(this.kdP)), 0, -1, a.a(this.kdP)); } } }
package com.vilio.nlbs.commonMapper.pojo; /** * Created by dell on 2017/5/24. */ public class NlbsAgent { private String id; private String agentId; private String name; private String beRecordClerk; public NlbsAgent() { super(); } public String getId() { return id; } public String getAgentId() { return agentId; } public void setAgentId(String agentId) { this.agentId = agentId; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getBeRecordClerk() { return beRecordClerk; } public void setBeRecordClerk(String beRecordClerk) { this.beRecordClerk = beRecordClerk; } }
package com.tencent.mm.ui.chatting.gallery; import com.tencent.mm.plugin.report.service.h; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.sdk.platformtools.x; import java.util.HashMap; import java.util.HashSet; import java.util.Set; class d$a { private static HashMap<String, d$a> tVa = new HashMap(); private int dHI; private int height; private long sHf = 0; private int tUX = 0; private String tUY = ""; private int tUZ = 0; private int width; private d$a() { } public static void dp(String str, int i) { try { if (!bi.oW(str) && i != 0) { d$a d_a = (d$a) tVa.get(str); if (d_a != null) { d_a.dHI = i; } Set<String> hashSet = new HashSet(); for (String str2 : tVa.keySet()) { d$a d_a2 = (d$a) tVa.get(str2); if (d_a2 != null) { x.i("MicroMsg.ImageGalleryHolderImage", "dkprog report: diff:%d [%d,%d,%d] succ:%d change:%d str:%s file:%s", new Object[]{Long.valueOf(bi.bH(d_a2.sHf)), Integer.valueOf(d_a2.dHI), Integer.valueOf(d_a2.width), Integer.valueOf(d_a2.height), Integer.valueOf(d_a2.tUX), Integer.valueOf(d_a2.tUZ), d_a2.tUY, str2}); if (bi.bH(d_a2.sHf) >= 60000) { if (d_a2.dHI > 0 && !bi.oW(d_a2.tUY)) { h.mEJ.h(11713, new Object[]{Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(41), Integer.valueOf(1), Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(0), Integer.valueOf(d_a2.dHI), Integer.valueOf(d_a2.width), Integer.valueOf(d_a2.height), Integer.valueOf(d_a2.tUX), Integer.valueOf(d_a2.tUZ), d_a2.tUY}); } hashSet.add(str2); } } } for (String str22 : hashSet) { tVa.remove(str22); } } } catch (Throwable th) { x.e("MicroMsg.ImageGalleryHolderImage", "get useopt setTotalLen :%s", new Object[]{bi.i(th)}); } } public static void m(String str, int i, int i2, int i3) { try { if (!bi.oW(str) && i != 0 && i2 != 0) { d$a d_a = (d$a) tVa.get(str); if (d_a == null) { d_a = new d$a(); d_a.sHf = bi.VF(); tVa.put(str, d_a); } d_a.height = i2; d_a.width = i; d_a.tUY += i3 + "|"; if (i3 > 0) { if (d_a.tUX == 0) { d_a.tUX = i3; } } else if (d_a.tUX != 0) { d_a.tUZ++; d_a.tUX = 0; } x.i("MicroMsg.ImageGalleryHolderImage", "dkprog addBit: [%d,%d,%d] succ:%d change:%d str:%s file:%s", new Object[]{Integer.valueOf(i3), Integer.valueOf(i), Integer.valueOf(i2), Integer.valueOf(d_a.tUX), Integer.valueOf(d_a.tUZ), d_a.tUY, str}); } } catch (Throwable th) { x.e("MicroMsg.ImageGalleryHolderImage", "get useopt addBit :%s", new Object[]{bi.i(th)}); } } }
package Kap2.Aufgabe1; import javax.json.bind.Jsonb; import javax.json.bind.JsonbBuilder; import javax.json.bind.JsonbConfig; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; public class Serialize { public static void main(String[] args) throws FileNotFoundException { Person p1 = new Person(1, "ADA"); String hobby1 = "Fotograf"; String hobby2 = "Watch"; p1.addHobby(hobby1); p1.addHobby(hobby2); Person p2 = new Person(2, "Tommy"); String hobby3 = "Code"; String hobby4 = "Entrepreneur"; p2.addHobby(hobby3); p2.addHobby(hobby1); p2.addHobby(hobby4); List<Person> pList = List.of(p1, p2); JsonbConfig jsonbConfig = new JsonbConfig().withFormatting(true); Jsonb jsonb = JsonbBuilder.create(jsonbConfig); jsonb.toJson(pList, new FileOutputStream("./src/Kap2/Aufgabe1/people.json")); ArrayList<Person> list = new ArrayList<Person>() { }; Type type = list.getClass().getGenericSuperclass(); ArrayList<Person> people = jsonb.fromJson(new FileInputStream("./src/Kap2/Aufgabe1/people.json"), type); for (Person person : people) { System.out.println(person.getId()); System.out.println(person.getName()); for (String hobby : person.getHobbies()) { System.out.println(hobby); } } } }
package com.beiyelin.common.service; import com.beiyelin.common.i18n.SessionLocale; import com.beiyelin.common.utils.ObjectUtils; import lombok.Data; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.MessageSource; import org.springframework.stereotype.Service; import org.springframework.web.servlet.support.RequestContext; import java.util.Locale; /** * Created by newmann on 2017/4/1. * 统一处理i18n的消息 */ @Service @Data @Slf4j public class MessageService { @Autowired private MessageSource messageSource; /** * 语言,缺省为中文 * 通过AppLocalInterceptor来获取request的Locale, */ // private Locale locale = Locale.CHINA; public Locale getLocale(){ Locale locale = SessionLocale.getLocale(); if(locale == null) { log.info("没有获取到SessionLocale中的Locale,用缺省的Locale"); locale = Locale.CHINA; } return locale; } /** * i18n * 根据语言选项获取消息 */ public String getMessage(String code,Object[] args){ return messageSource.getMessage(code,args,getDefaultMessage(code),getLocale()); // return currentRequestContext.getMessage(code,args,getDefaultMessage()); } public String getMessage(String code){ return messageSource.getMessage(code,null,getDefaultMessage(code),getLocale()); // return currentRequestContext.getMessage(code,getDefaultMessage()); } private String getDefaultMessage(String code){ String defaultValue; // if (currentRequestContext.getLocale().getDisplayLanguage().equals(Locale.CHINA.getDisplayName())) { if (getLocale().getLanguage().equals(Locale.CHINA.getLanguage())) { defaultValue = "["+code+"]对应的消息还没有配置。"; }else{ //return en_US defaultValue = "the message of ["+ code+ "] is not defined."; } return defaultValue; } }
class Counter { int count; public void increment() { count++; } } public class Thread2 { public static void main(String[] args) { Counter c=new Counter(); Thread t=new Thread(new Runnable() { public void run() { for(int i=0;i<1000;i++) c.increment(); } }); } }
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.yarn.server.resourcemanager.rmcontainer; import java.util.EnumSet; import java.util.LinkedList; import java.util.List; import java.util.concurrent.locks.ReentrantReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock; import java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock; import org.apache.commons.lang.time.DateUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.yarn.api.records.ApplicationAttemptId; import org.apache.hadoop.yarn.api.records.Container; import org.apache.hadoop.yarn.api.records.ContainerExitStatus; import org.apache.hadoop.yarn.api.records.ContainerId; import org.apache.hadoop.yarn.api.records.ContainerReport; import org.apache.hadoop.yarn.api.records.ContainerState; import org.apache.hadoop.yarn.api.records.ContainerStatus; import org.apache.hadoop.yarn.api.records.NodeId; import org.apache.hadoop.yarn.api.records.Priority; import org.apache.hadoop.yarn.api.records.Resource; import org.apache.hadoop.yarn.api.records.ResourceRequest; import org.apache.hadoop.yarn.event.EventHandler; import org.apache.hadoop.yarn.server.api.protocolrecords.NMContainerStatus; import org.apache.hadoop.yarn.server.resourcemanager.RMContext; import org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppRunningOnNodeEvent; import org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttempt; import org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.event.RMAppAttemptContainerAllocatedEvent; import org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.event.RMAppAttemptContainerFinishedEvent; import org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeCleanContainerEvent; import org.apache.hadoop.yarn.state.InvalidStateTransitonException; import org.apache.hadoop.yarn.state.MultipleArcTransition; import org.apache.hadoop.yarn.state.SingleArcTransition; import org.apache.hadoop.yarn.state.StateMachine; import org.apache.hadoop.yarn.state.StateMachineFactory; import org.apache.hadoop.yarn.util.ConverterUtils; import org.apache.hadoop.yarn.util.resource.Resources; import org.apache.hadoop.yarn.webapp.util.WebAppUtils; @SuppressWarnings({"unchecked", "rawtypes"}) public class RMContainerImpl implements RMContainer { private static final Log LOG = LogFactory.getLog(RMContainerImpl.class); private static final StateMachineFactory<RMContainerImpl, RMContainerState, RMContainerEventType, RMContainerEvent> stateMachineFactory = new StateMachineFactory<RMContainerImpl, RMContainerState, RMContainerEventType, RMContainerEvent>( RMContainerState.NEW) // Transitions from NEW state .addTransition(RMContainerState.NEW, RMContainerState.ALLOCATED, RMContainerEventType.START, new ContainerStartedTransition()) .addTransition(RMContainerState.NEW, RMContainerState.KILLED, RMContainerEventType.KILL) .addTransition(RMContainerState.NEW, RMContainerState.RESERVED, RMContainerEventType.RESERVED, new ContainerReservedTransition()) .addTransition(RMContainerState.NEW, EnumSet.of(RMContainerState.RUNNING, RMContainerState.COMPLETED), RMContainerEventType.RECOVER, new ContainerRecoveredTransition()) // Transitions from RESERVED state .addTransition(RMContainerState.RESERVED, RMContainerState.RESERVED, RMContainerEventType.RESERVED, new ContainerReservedTransition()) .addTransition(RMContainerState.RESERVED, RMContainerState.ALLOCATED, RMContainerEventType.START, new ContainerStartedTransition()) .addTransition(RMContainerState.RESERVED, RMContainerState.KILLED, RMContainerEventType.KILL) // nothing to do .addTransition(RMContainerState.RESERVED, RMContainerState.RELEASED, RMContainerEventType.RELEASED) // nothing to do // Transitions from ALLOCATED state .addTransition(RMContainerState.ALLOCATED, RMContainerState.ACQUIRED, RMContainerEventType.ACQUIRED, new AcquiredTransition()) .addTransition(RMContainerState.ALLOCATED, RMContainerState.EXPIRED, RMContainerEventType.EXPIRE, new FinishedTransition()) .addTransition(RMContainerState.ALLOCATED, RMContainerState.KILLED, RMContainerEventType.KILL, new FinishedTransition()) // Transitions from ACQUIRED state .addTransition(RMContainerState.ACQUIRED, RMContainerState.RUNNING, RMContainerEventType.LAUNCHED, new LaunchedTransition()) .addTransition(RMContainerState.ACQUIRED, RMContainerState.COMPLETED, RMContainerEventType.FINISHED, new ContainerFinishedAtAcquiredState()) .addTransition(RMContainerState.ACQUIRED, RMContainerState.RELEASED, RMContainerEventType.RELEASED, new KillTransition()) .addTransition(RMContainerState.ACQUIRED, RMContainerState.EXPIRED, RMContainerEventType.EXPIRE, new KillTransition()) .addTransition(RMContainerState.ACQUIRED, RMContainerState.KILLED, RMContainerEventType.KILL, new KillTransition()) // Transitions from RUNNING state .addTransition(RMContainerState.RUNNING, RMContainerState.COMPLETED, RMContainerEventType.FINISHED, new FinishedTransition()) .addTransition(RMContainerState.RUNNING, RMContainerState.DEHYDRATED, RMContainerEventType.SUSPEND,new ContainerSuspendTransition()) .addTransition(RMContainerState.RUNNING, RMContainerState.KILLED, RMContainerEventType.KILL, new KillTransition()) .addTransition(RMContainerState.RUNNING, RMContainerState.RELEASED, RMContainerEventType.RELEASED, new KillTransition()) .addTransition(RMContainerState.RUNNING, RMContainerState.RUNNING, RMContainerEventType.EXPIRE) //Transition from DEHYDRATED state .addTransition(RMContainerState.DEHYDRATED, EnumSet.of(RMContainerState.RUNNING, RMContainerState.DEHYDRATED), RMContainerEventType.RESUME,new ContainerResumeTransition()) .addTransition(RMContainerState.DEHYDRATED, RMContainerState.DEHYDRATED, RMContainerEventType.SUSPEND,new ContainerSuspendTransition()) .addTransition(RMContainerState.DEHYDRATED, RMContainerState.COMPLETED, RMContainerEventType.FINISHED, new FinishedTransition()) .addTransition(RMContainerState.DEHYDRATED, RMContainerState.KILLED, RMContainerEventType.KILL, new KillTransition()) .addTransition(RMContainerState.DEHYDRATED, RMContainerState.RELEASED, RMContainerEventType.RELEASED, new KillTransition()) .addTransition(RMContainerState.DEHYDRATED, RMContainerState.DEHYDRATED, RMContainerEventType.EXPIRE) // Transitions from COMPLETED state .addTransition(RMContainerState.COMPLETED, RMContainerState.COMPLETED, EnumSet.of(RMContainerEventType.EXPIRE, RMContainerEventType.RELEASED, RMContainerEventType.KILL)) // Transitions from EXPIRED state .addTransition(RMContainerState.EXPIRED, RMContainerState.EXPIRED, EnumSet.of(RMContainerEventType.RELEASED, RMContainerEventType.KILL)) // Transitions from RELEASED state .addTransition(RMContainerState.RELEASED, RMContainerState.RELEASED, EnumSet.of(RMContainerEventType.EXPIRE, RMContainerEventType.RELEASED, RMContainerEventType.KILL, RMContainerEventType.FINISHED)) // Transitions from KILLED state .addTransition(RMContainerState.KILLED, RMContainerState.KILLED, EnumSet.of(RMContainerEventType.EXPIRE, RMContainerEventType.RELEASED, RMContainerEventType.KILL, RMContainerEventType.FINISHED)) // create the topology tables .installTopology(); private final StateMachine<RMContainerState, RMContainerEventType, RMContainerEvent> stateMachine; private final ReadLock readLock; private final WriteLock writeLock; private final ContainerId containerId; private final ApplicationAttemptId appAttemptId; private final NodeId nodeId; private final Container container; private final RMContext rmContext; private final EventHandler eventHandler; private final ContainerAllocationExpirer containerAllocationExpirer; private final String user; //preempted Resource private Resource preempted = Resource.newInstance(0, 0); private Resource lastPreempted; private Resource lastResumed; private Resource reservedResource; private NodeId reservedNode; private Priority reservedPriority; private long creationTime; private long finishTime; private int resumeOpportunity; public int PR_NUMBER = 2; private boolean isSuspending = false; //record suspend time(may preempt for many times) private List<Long> suspendTime; //record resume time private List<Long> resumeTime; //record container utilization private double utilization; private ContainerStatus finishedStatus; private boolean isAMContainer; private List<ResourceRequest> resourceRequests; public RMContainerImpl(Container container, ApplicationAttemptId appAttemptId, NodeId nodeId, String user, RMContext rmContext) { this(container, appAttemptId, nodeId, user, rmContext, System .currentTimeMillis()); } public RMContainerImpl(Container container, ApplicationAttemptId appAttemptId, NodeId nodeId, String user, RMContext rmContext, long creationTime) { this.stateMachine = stateMachineFactory.make(this); this.containerId = container.getId(); this.nodeId = nodeId; this.container = container; this.appAttemptId = appAttemptId; this.user = user; this.creationTime = creationTime; this.rmContext = rmContext; this.eventHandler = rmContext.getDispatcher().getEventHandler(); this.containerAllocationExpirer = rmContext.getContainerAllocationExpirer(); this.isAMContainer = false; this.resourceRequests = null; this.resumeOpportunity = 0; this.utilization = 1; this.suspendTime = new LinkedList<Long>(); this.resumeTime = new LinkedList<Long>(); ReentrantReadWriteLock lock = new ReentrantReadWriteLock(); this.readLock = lock.readLock(); this.writeLock = lock.writeLock(); this.PR_NUMBER=rmContext.getYarnConfiguration().getInt( "yarn.resourcemanager.monitor.capacity.preemption.pr_number", 2); rmContext.getRMApplicationHistoryWriter().containerStarted(this); rmContext.getSystemMetricsPublisher().containerCreated( this, this.creationTime); } //in case of suspending a container public Resource getCurrentUsedResource(){ if(isSuspending){ return Resources.subtract(container.getResource(), preempted); }else{ return container.getResource(); } } public boolean isSuspending(){ return this.isSuspending; } @Override public List<Long> getSuspendTime(){ return suspendTime; } @Override public List<Long> getResumeTime(){ return resumeTime; } public double getUtilization(){ return utilization; } @Override public ContainerId getContainerId() { return this.containerId; } @Override public ApplicationAttemptId getApplicationAttemptId() { return this.appAttemptId; } @Override public Container getContainer() { return this.container; } @Override public RMContainerState getState() { this.readLock.lock(); try { return this.stateMachine.getCurrentState(); } finally { this.readLock.unlock(); } } @Override public Resource getReservedResource() { return reservedResource; } @Override public NodeId getReservedNode() { return reservedNode; } @Override public Priority getReservedPriority() { return reservedPriority; } @Override public Resource getAllocatedResource() { return container.getResource(); } @Override public NodeId getAllocatedNode() { return container.getNodeId(); } @Override public Priority getAllocatedPriority() { return container.getPriority(); } @Override public long getCreationTime() { return creationTime; } @Override public long getFinishTime() { try { readLock.lock(); return finishTime; } finally { readLock.unlock(); } } @Override public String getDiagnosticsInfo() { try { readLock.lock(); if (getFinishedStatus() != null) { return getFinishedStatus().getDiagnostics(); } else { return null; } } finally { readLock.unlock(); } } @Override public String getLogURL() { try { readLock.lock(); StringBuilder logURL = new StringBuilder(); logURL.append(WebAppUtils.getHttpSchemePrefix(rmContext .getYarnConfiguration())); logURL.append(WebAppUtils.getRunningLogURL( container.getNodeHttpAddress(), ConverterUtils.toString(containerId), user)); return logURL.toString(); } finally { readLock.unlock(); } } @Override public int getContainerExitStatus() { try { readLock.lock(); if (getFinishedStatus() != null) { return getFinishedStatus().getExitStatus(); } else { return 0; } } finally { readLock.unlock(); } } @Override public ContainerState getContainerState() { try { readLock.lock(); if (getFinishedStatus() != null) { return getFinishedStatus().getState(); } else { return ContainerState.RUNNING; } } finally { readLock.unlock(); } } @Override public List<ResourceRequest> getResourceRequests() { try { readLock.lock(); return resourceRequests; } finally { readLock.unlock(); } } public void setResourceRequests(List<ResourceRequest> requests) { try { writeLock.lock(); this.resourceRequests = requests; } finally { writeLock.unlock(); } } @Override public String toString() { return containerId.toString(); } @Override public boolean isAMContainer() { try { readLock.lock(); return isAMContainer; } finally { readLock.unlock(); } } public void setAMContainer(boolean isAMContainer) { try { writeLock.lock(); this.isAMContainer = isAMContainer; } finally { writeLock.unlock(); } } @Override public void handle(RMContainerEvent event) { LOG.debug("Processing " + event.getContainerId() + " of type " + event.getType()); try { writeLock.lock(); RMContainerState oldState = getState(); try { stateMachine.doTransition(event.getType(), event); } catch (InvalidStateTransitonException e) { LOG.error("Can't handle this event at current state", e); LOG.error("Invalid event " + event.getType() + " on container " + this.containerId); } if (oldState != getState()) { LOG.info(event.getContainerId() + " Container Transitioned from " + oldState + " to " + getState()); } } finally { writeLock.unlock(); } } public ContainerStatus getFinishedStatus() { return finishedStatus; } private static class BaseTransition implements SingleArcTransition<RMContainerImpl, RMContainerEvent> { @Override public void transition(RMContainerImpl cont, RMContainerEvent event) { } } private static final class ContainerRecoveredTransition implements MultipleArcTransition<RMContainerImpl, RMContainerEvent, RMContainerState> { @Override public RMContainerState transition(RMContainerImpl container, RMContainerEvent event) { NMContainerStatus report = ((RMContainerRecoverEvent) event).getContainerReport(); if (report.getContainerState().equals(ContainerState.COMPLETE)) { ContainerStatus status = ContainerStatus.newInstance(report.getContainerId(), report.getContainerState(), report.getDiagnostics(), report.getContainerExitStatus()); new FinishedTransition().transition(container, new RMContainerFinishedEvent(container.containerId, status, RMContainerEventType.FINISHED)); return RMContainerState.COMPLETED; } else if (report.getContainerState().equals(ContainerState.RUNNING)) { // Tell the app container.eventHandler.handle(new RMAppRunningOnNodeEvent(container .getApplicationAttemptId().getApplicationId(), container.nodeId)); return RMContainerState.RUNNING; } else { // This can never happen. LOG.warn("RMContainer received unexpected recover event with container" + " state " + report.getContainerState() + " while recovering."); return RMContainerState.RUNNING; } } } private static final class ContainerResumeTransition implements MultipleArcTransition<RMContainerImpl, RMContainerEvent, RMContainerState> { @Override public RMContainerState transition(RMContainerImpl container, RMContainerEvent event) { LOG.info("KAIROS logging: RESUMING container "+container.containerId+" from dehydrated , preempted resources so far "+container.getPreemptedResource()+" if no preempted resources then RUNNING"); container.resumeTime.add(System.currentTimeMillis()); if(Resources.equals(container.getPreemptedResource(),Resources.none())){ //if all the preempted resource has been resumed container.isSuspending = false; return RMContainerState.RUNNING; }else{ return RMContainerState.DEHYDRATED; } } } private static final class ContainerSuspendTransition extends BaseTransition{ @Override public void transition(RMContainerImpl container, RMContainerEvent event) { RMContainerFinishedEvent finishedEvent = (RMContainerFinishedEvent) event; //add the suspend time container.suspendTime.add(System.currentTimeMillis()); Resource resource = container.getLastPreemptedResource(); container.finishedStatus = finishedEvent.getRemoteContainerStatus(); container.isSuspending = true; LOG.info("KAIROS logging: SUSPENDING container "+container.containerId+" resources so far "+resource+" finishedStatus "+finishedEvent.getRemoteContainerStatus()); //update preempt metrics RMAppAttempt rmAttempt = container.rmContext.getRMApps() .get(container.getApplicationAttemptId().getApplicationId()) .getCurrentAppAttempt(); if (ContainerExitStatus.PREEMPTED == container.finishedStatus.getExitStatus()) { rmAttempt.getRMAppAttemptMetrics().updatePreemptionInfo(resource,container); } } } private static final class ContainerReservedTransition extends BaseTransition { @Override public void transition(RMContainerImpl container, RMContainerEvent event) { RMContainerReservedEvent e = (RMContainerReservedEvent)event; container.reservedResource = e.getReservedResource(); container.reservedNode = e.getReservedNode(); container.reservedPriority = e.getReservedPriority(); } } private static final class ContainerStartedTransition extends BaseTransition { @Override public void transition(RMContainerImpl container, RMContainerEvent event) { container.eventHandler.handle(new RMAppAttemptContainerAllocatedEvent( container.appAttemptId)); } } private static final class AcquiredTransition extends BaseTransition { @Override public void transition(RMContainerImpl container, RMContainerEvent event) { // Clear ResourceRequest stored in RMContainer container.setResourceRequests(null); // Register with containerAllocationExpirer. container.containerAllocationExpirer.register(container.getContainerId()); // Tell the app container.eventHandler.handle(new RMAppRunningOnNodeEvent(container .getApplicationAttemptId().getApplicationId(), container.nodeId)); } } private static final class LaunchedTransition extends BaseTransition { @Override public void transition(RMContainerImpl container, RMContainerEvent event) { // Unregister from containerAllocationExpirer. container.containerAllocationExpirer.unregister(container .getContainerId()); } } private static class ResourceUpdateTransition extends BaseTransition { @Override public void transition(RMContainerImpl container, RMContainerEvent event){ RMContainerResourceUpdateEvent resourceUpdateEvent = (RMContainerResourceUpdateEvent) event; Resource resource = resourceUpdateEvent.getResource(); //once triguer this event, we update its resource to new value container.getContainer().setResource(resource); } } private static class FinishedTransition extends BaseTransition { @Override public void transition(RMContainerImpl container, RMContainerEvent event) { RMContainerFinishedEvent finishedEvent = (RMContainerFinishedEvent) event; container.finishTime = System.currentTimeMillis(); container.finishedStatus = finishedEvent.getRemoteContainerStatus(); // Inform AppAttempt // container.getContainer() can return null when a RMContainer is a // reserved container updateAttemptMetrics(container); container.eventHandler.handle(new RMAppAttemptContainerFinishedEvent( container.appAttemptId, finishedEvent.getRemoteContainerStatus(), container.getAllocatedNode())); container.rmContext.getRMApplicationHistoryWriter().containerFinished( container); container.rmContext.getSystemMetricsPublisher().containerFinished( container, container.finishTime); } private static void updateAttemptMetrics(RMContainerImpl container) { // If this is a preempted container, update preemption metrics Resource resource = container.getContainer().getResource(); RMAppAttempt rmAttempt = container.rmContext.getRMApps() .get(container.getApplicationAttemptId().getApplicationId()) .getCurrentAppAttempt(); if (ContainerExitStatus.PREEMPTED == container.finishedStatus .getExitStatus()) { rmAttempt.getRMAppAttemptMetrics().updatePreemptionInfo(resource, container); } if (rmAttempt != null) { long usedMillis = container.finishTime - container.creationTime; long memorySeconds = (long)(resource.getMemory()*container.utilization) * usedMillis / DateUtils.MILLIS_PER_SECOND; long vcoreSeconds = (long)(resource.getVirtualCores()*container.utilization) * usedMillis / DateUtils.MILLIS_PER_SECOND; if (container.suspendTime.size() >0 && container.resumeTime.size() >0 && container.suspendTime.size() == container.resumeTime.size()){ double acc=0; for(int i=0; i < container.suspendTime.size();i++){ acc = acc + (container.resumeTime.get(i) - container.suspendTime.get(i)); } container.utilization = acc/usedMillis; } rmAttempt.getRMAppAttemptMetrics() .updateAggregateAppResourceUsage(memorySeconds,vcoreSeconds); } } } private static final class ContainerFinishedAtAcquiredState extends FinishedTransition { @Override public void transition(RMContainerImpl container, RMContainerEvent event) { // Unregister from containerAllocationExpirer. container.containerAllocationExpirer.unregister(container .getContainerId()); // Inform AppAttempt super.transition(container, event); } } private static final class KillTransition extends FinishedTransition { @Override public void transition(RMContainerImpl container, RMContainerEvent event) { // Unregister from containerAllocationExpirer. container.containerAllocationExpirer.unregister(container .getContainerId()); // Inform node container.eventHandler.handle(new RMNodeCleanContainerEvent( container.nodeId, container.containerId)); // Inform appAttempt super.transition(container, event); } } @Override public ContainerReport createContainerReport() { this.readLock.lock(); ContainerReport containerReport = null; try { containerReport = ContainerReport.newInstance(this.getContainerId(), this.getAllocatedResource(), this.getAllocatedNode(), this.getAllocatedPriority(), this.getCreationTime(), this.getFinishTime(), this.getDiagnosticsInfo(), this.getLogURL(), this.getContainerExitStatus(), this.getContainerState(), this.getNodeHttpAddress()); } finally { this.readLock.unlock(); } return containerReport; } @Override public String getNodeHttpAddress() { try { readLock.lock(); if (container.getNodeHttpAddress() != null) { StringBuilder httpAddress = new StringBuilder(); httpAddress.append(WebAppUtils.getHttpSchemePrefix(rmContext .getYarnConfiguration())); httpAddress.append(container.getNodeHttpAddress()); return httpAddress.toString(); } else { return null; } } finally { readLock.unlock(); } } @Override public void addPreemptedResource(Resource resource) { try{ readLock.lock(); this.lastPreempted = Resources.clone(resource); Resources.addTo(preempted, resource); }finally{ readLock.unlock(); } } @Override public Resource getPreemptedResource() { try{ readLock.lock(); return this.preempted; }finally{ readLock.unlock(); } } @Override public Resource getLastPreemptedResource(){ try{ readLock.lock(); return this.lastPreempted; }finally{ readLock.unlock(); } } @Override public Resource getLastResumeResource() { try{ readLock.lock(); return this.lastResumed; }finally{ readLock.unlock(); } } @Override public void addResumedResource(Resource resource) { try{ readLock.lock(); this.lastResumed = Resources.clone(resource); Resources.subtractFrom(preempted, resource); }finally{ readLock.unlock(); } } @Override public Resource getSRResourceUnit(){ Resource resource = Resource.newInstance(container.getResource().getMemory()/container.getResource().getVirtualCores(), 1); return Resources.multiplyTo(resource, this.PR_NUMBER); } @Override public int getResumeOpportunity() { return this.resumeOpportunity; } @Override public void incResumeOpportunity() { this.resumeOpportunity++; } @Override public void resetResumeOpportunity() { this.resumeOpportunity = 0; } }
package com.oauth2; import java.io.IOException; import java.io.OutputStreamWriter; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; public class DeviceRegistration { public String registration_id; public String user_id; public DeviceRegistration(String registration_id, String user_id) { this.registration_id=registration_id; this.user_id=user_id; } public DeviceRegistration(String user_id) { this.user_id=user_id; } public void setRegistrtionid(String registrationid) { this.registration_id=registrationid; } public String postRegistrationRequest() { System.out.println("Post Request called"); String response = null; try { URL url = new URL("http://cloudadhocconnectivity.appspot.com/contextconnectivity"); StringBuilder data = new StringBuilder(); data.append("email_id").append("=").append(this.user_id).append("&"); data.append("registration_id").append("=").append(this.registration_id); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setUseCaches(false); connection.setRequestMethod("POST"); connection.setRequestProperty("Content-Type","application/x-www-form-urlencoded;charset=UTF-8"); //connection.setRequestProperty("Authorization", "GoogleLogin auth="+this.authtoken); connection.connect(); OutputStreamWriter writer = new OutputStreamWriter(connection.getOutputStream()); writer.write(data.toString()); writer.close(); response=connection.getResponseMessage(); if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) { System.out.println("Everything OK..Device Registered"); System.out.println(connection.getResponseMessage()); } else { // Server returned HTTP error code. System.out.println("HTTP ERROR CODE "+Integer.toString(connection.getResponseCode())); System.out.println(connection.getResponseMessage()); } } catch (MalformedURLException e) { // ... } catch (IOException eio) { // ... } return response; }}
package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; public final class log_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static java.util.List _jspx_dependants; static { _jspx_dependants = new java.util.ArrayList(8); _jspx_dependants.add("/WEB-INF/struts-bean.tld"); _jspx_dependants.add("/WEB-INF/struts-html.tld"); _jspx_dependants.add("/WEB-INF/struts-logic.tld"); _jspx_dependants.add("/WEB-INF/struts-tiles.tld"); _jspx_dependants.add("/WEB-INF/struts-template.tld"); _jspx_dependants.add("/WEB-INF/struts-nested.tld"); _jspx_dependants.add("/WEB-INF/struts-layout.tld"); _jspx_dependants.add("/WEB-INF/app.tld"); } private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fhtml_005fhtml_005flocale; public Object getDependants() { return _jspx_dependants; } public void _jspInit() { _005fjspx_005ftagPool_005fhtml_005fhtml_005flocale = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); } public void _jspDestroy() { _005fjspx_005ftagPool_005fhtml_005fhtml_005flocale.release(); } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; out.write("\r\n"); out.write("\r\n"); // html:html org.apache.struts.taglib.html.HtmlTag _jspx_th_html_005fhtml_005f0 = (org.apache.struts.taglib.html.HtmlTag) _005fjspx_005ftagPool_005fhtml_005fhtml_005flocale.get(org.apache.struts.taglib.html.HtmlTag.class); _jspx_th_html_005fhtml_005f0.setPageContext(_jspx_page_context); _jspx_th_html_005fhtml_005f0.setParent(null); _jspx_th_html_005fhtml_005f0.setLocale(true); int _jspx_eval_html_005fhtml_005f0 = _jspx_th_html_005fhtml_005f0.doStartTag(); if (_jspx_eval_html_005fhtml_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { do { out.write("\r\n"); out.write("\t<head>\r\n"); out.write("\t\t\r\n"); out.write("\t\t<base href='"); out.print(basePath); out.write("'>\r\n"); out.write("\t\t<title>Slort </title>\r\n"); out.write("\t\t\r\n"); out.write("\t\t<meta http-equiv=\"pragma\" content=\"no-cache\">\r\n"); out.write("\t\t<meta http-equiv=\"cache-control\" content=\"no-cache\">\r\n"); out.write("\t\t<meta http-equiv=\"expires\" content=\"0\">\r\n"); out.write("\t\t<meta http-equiv=\"keywords\" content=\"keyword1,keyword2,keyword3\">\r\n"); out.write("\t\t<meta http-equiv=\"description\" content=\"This is my page\">\r\n"); out.write("\t\t\r\n"); out.write("\t\t<link rel=\"stylesheet\" href='config/default.css' type=\"text/css\" />\r\n"); out.write("\t\t<link rel=\"stylesheet\" href=\"config/ajax-dynamic-list.css\" type=\"text/css\" />\r\n"); out.write("\t\r\n"); out.write("\t\t<script language=\"Javascript\" src=\"config/javascript.js\"></script>\r\n"); out.write("\t\t<script language=\"Javascript\" src=\"jscript/ajaxUtils.js\"></script>\r\n"); out.write("\t\t\r\n"); out.write("\t\t<SCRIPT language=\"Javascript\" src=\"jscript/slort.js\"></SCRIPT>\r\n"); out.write("\t\t<script language=\"Javascript\" src=\"jscript/ajax.js\"></script>\r\n"); out.write("\t\t<script language=\"Javascript\" src=\"jscript/ajax-dynamic-list.js\"></script>\r\n"); out.write("\t\t\r\n"); out.write("\t\t<script>var imgsrc=\""); out.print(path); out.write("/images/\"; var scriptsrc=\""); out.print(path); out.write("/config/\"; var langue=\"es\";</script>\t\t\r\n"); out.write("\r\n"); out.write("\t</head> \r\n"); out.write("\r\n"); out.write("\r\n"); out.write("<script type=\"text/javascript\">\r\n"); out.write("\r\n"); out.write("\tfunction operacionAjax(domDocument)\r\n"); out.write("\t{\r\n"); out.write("\t\tvar texto = domDocument\r\n"); out.write("\t\r\n"); out.write("\t\tdocument.getElementById('ajax-search-results').innerHTML = texto\t\r\n"); out.write("\t}\r\n"); out.write("\r\n"); out.write("\tfunction buscarPersonasInfo() \r\n"); out.write("\t{\r\n"); out.write("\t\tvalor = document.getElementById('textoABuscar').value;\r\n"); out.write("\t\tvar url=\"PersonasAjax.do?paramAjax=\"+valor;\r\n"); out.write("\t\tgetURI(url);\r\n"); out.write("\t}\r\n"); out.write("\t\r\n"); out.write("\tfunction guardarPersona()\r\n"); out.write("\t{\r\n"); out.write("\t\tvar ja1 = new Array(); \r\n"); out.write("\t\tvar ja2 = new Array(); \r\n"); out.write("\t\tja = document.getElementById('suggestion').value.split(\"(\"); \r\n"); out.write("\t\tj2 = ja[ja.length-1].split(\")\");\r\n"); out.write("\t\tdocument.getElementById('id_persona').value = j2[0];\t\t\r\n"); out.write("\t\t\r\n"); out.write("\t}\r\n"); out.write("\r\n"); out.write("</script>\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("<body bgcolor=\"#336699\"\r\n"); out.write("topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" bottommargin=\"0\" rightmargin=\"0\"\r\n"); out.write("Onload=\"window.status=('Slort');\">\r\n"); out.write("\t\r\n"); out.write("\t\r\n"); out.write("\t<table border=0 cellpadding=0 cellspacing=0 width=\"100%\" class=\"AA\" height=\"100%\">\r\n"); out.write("\t\t\r\n"); out.write("\t\t<!-- header.start -->\r\n"); out.write("\t\t<tr>\r\n"); out.write("\t\t\t<td valign=\"top\" width=\"100%\" bgcolor=\"#DBEAF5\" colspan=\"2\">\r\n"); out.write("\t\t\t\t"); org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/view/includes/header.jsp", out, false); out.write("\r\n"); out.write("\t\t\t</td>\r\n"); out.write("\t\t</tr>\r\n"); out.write("\t\t<!-- header.end -->\r\n"); out.write("\t\t\r\n"); out.write("\t\t<!-- main.start -->\r\n"); out.write("\t\t<tr>\r\n"); out.write("\t\t\t<td valign=\"top\" width=\"115\" bgcolor=\"#DBEAF5\" height=\"100%\">\r\n"); out.write("\t\t\t\t<!-- left.start -->\r\n"); out.write("\t\t\t\t"); org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/view/includes/left.jsp", out, false); out.write("\r\n"); out.write("\t\t\t\t<!-- left.ini -->\r\n"); out.write("\t\t\t</td>\r\n"); out.write("\t\t\t<td valign=\"top\" width=\"100%\" height=\"100%\" align=center class=\"Slort_content_bgcolor\">\r\n"); out.write("\t\t\t\t\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\t\t\t\t<!-- title.ini -->\r\n"); out.write("\t\t\t\t<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" summary=\"\">\r\n"); out.write("\t\t\t\t\t<tr>\r\n"); out.write("\t\t\t\t\t\t<td width=\"100%\" class=\"Slort_title_jsp\"></td>\r\n"); out.write("\t\t\t\t\t</tr>\r\n"); out.write("\t\t\t\t</table>\r\n"); out.write("\t\t\t<!-- title.fin -->\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t\t<!-- message.ini -->\r\n"); out.write("\t\t\t\t"); org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/view/includes/messages.jsp", out, false); out.write("\r\n"); out.write("\t\t\t\t<!-- message.fin -->\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t\t<!-- errors.ini incluye errores de ruben -->\r\n"); out.write("\t\t\t\t"); org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/view/includes/errors.jsp", out, false); out.write("\r\n"); out.write("\t\t\t\t<!-- errors.fin -->\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t\t<!-- content.start -->\r\n"); out.write("\t\t\t\t<!-- content.ini -->\r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t</td>\r\n"); out.write("\t\t</tr>\r\n"); out.write("\t\t<!-- main.end -->\r\n"); out.write("\t\t\r\n"); out.write("\t\t\r\n"); out.write("\t\t<!-- footer.start -->\r\n"); out.write("\t\t<tr>\r\n"); out.write("\t\t\t<td valign=\"bottom\" width=\"100%\" colspan=\"2\">\r\n"); out.write("\t\t\t\t"); org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/view/includes/footer.jsp", out, false); out.write("\r\n"); out.write("\t\t\t</td>\r\n"); out.write("\t\t</tr>\r\n"); out.write("\t\t<!-- footer.end -->\r\n"); out.write("\t\t\r\n"); out.write("\t\t\r\n"); out.write("\t</table>\r\n"); out.write("\t\r\n"); out.write("\t\r\n"); out.write("</body>\r\n"); out.write("\t\r\n"); int evalDoAfterBody = _jspx_th_html_005fhtml_005f0.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); } if (_jspx_th_html_005fhtml_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { _005fjspx_005ftagPool_005fhtml_005fhtml_005flocale.reuse(_jspx_th_html_005fhtml_005f0); return; } _005fjspx_005ftagPool_005fhtml_005fhtml_005flocale.reuse(_jspx_th_html_005fhtml_005f0); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("<meta http-equiv=\"refresh\" content=\"1;URL='"); out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((com.slort.model.Opcionmenu)_jspx_page_context.findAttribute("opcionDefecto")).getLink()))); out.write("'\">\r\n"); out.write("\r\n"); com.slort.model.Opcionmenu opcionDefecto = null; synchronized (session) { opcionDefecto = (com.slort.model.Opcionmenu) _jspx_page_context.getAttribute("opcionDefecto", PageContext.SESSION_SCOPE); if (opcionDefecto == null){ opcionDefecto = new com.slort.model.Opcionmenu(); _jspx_page_context.setAttribute("opcionDefecto", opcionDefecto, PageContext.SESSION_SCOPE); } } out.write("\r\n"); out.write("<html>\r\n"); out.write("\t<head>\r\n"); out.write("\t\t<title>Welcome</title>\r\n"); out.write("\t</head>\r\n"); out.write("\t<body>\r\n"); out.write("\t\t<center>Welcome</center>\r\n"); out.write("\t</body>\r\n"); out.write("</html>\r\n"); } catch (Throwable t) { if (!(t instanceof SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); } } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context); } } }
package com.bbb.composite.product.details.dao; import java.net.URI; import java.nio.charset.Charset; import java.util.Collections; import java.util.Map; import java.util.concurrent.CompletableFuture; import org.apache.commons.codec.binary.Base64; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.core.ParameterizedTypeReference; import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; import org.springframework.web.client.RestTemplate; import org.springframework.web.util.UriComponentsBuilder; import com.bbb.composite.product.details.model.Product; //import com.bbb.core.dto.BaseServiceDTO; import com.bbb.composite.product.details.dto.BaseServiceDTO; import com.bbb.core.integration.rest.CoreRestTemplate; import com.bbb.core.utils.CoreUtils; import org.springframework.web.client.RestTemplate; @Service("GenericDownloaderDAOImpl") public class GenericDownloaderDAOImpl implements GenericDownloaderDAO { private static final Logger LOGGER = LoggerFactory.getLogger(GenericDownloaderDAOImpl.class); // @Autowired // @Qualifier("coreRestTemplate") // private CoreRestTemplate coreRestTemplate; @Autowired private RestTemplate coreRestTemplate; /* * (non-Javadoc) * * @see com.bbb.pregenerator.services.GenericDownloaderService# * downloadDataFromUrl(java.lang.String, * org.springframework.http.HttpMethod, java.util.List, java.lang.String, * java.lang.String, org.springframework.core.ParameterizedTypeReference) */ @Override public <T> T downloadDataFromUrl(String url, HttpMethod method, Map<String, ?> parameters, String userName, String password, ParameterizedTypeReference<T> responseType) { LOGGER.warn("received:"+parameters.get("productIds")); HttpEntity<String> requestEntity = this.getRequestEntity(userName, password); //String[] arrParams = new String[1]; //arrParams[0]=(String)parameters.get("productIds"); ResponseEntity<T> responseEntity = this.coreRestTemplate.exchange(url, method, requestEntity, responseType, parameters); return this.handleResponseEntity(responseEntity, url, method, parameters); } private HttpEntity<String> getRequestEntity(String userName, String password) { HttpHeaders headers = new HttpHeaders(); if (StringUtils.isNotBlank(userName) || StringUtils.isNotBlank(password)) { String credentials = userName + ":" + password; byte[] credsBytes = credentials.getBytes(); byte[] base64CredsBytes = Base64.encodeBase64(credsBytes); String base64Creds = new String(base64CredsBytes, Charset.forName("UTF-8")); headers.add("Authorization", "Basic " + base64Creds); } headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON_UTF8)); HttpEntity<String> entity = new HttpEntity<>("parameters", headers); return entity; } private <T> String constructErrorResponseLogMessage(HttpStatus responseHttpStatus, String url , HttpMethod method, Map<String, ?> parameters, T responseBody) { URI targetUri = UriComponentsBuilder.fromHttpUrl(url).build(parameters); StringBuilder sb = new StringBuilder(); sb.append("Received ").append(responseHttpStatus).append(" http status code while downloading the uri ") .append(targetUri).append(" over ").append(method).append("."); if(null != responseBody) { sb.append(" Response received is -> ").append(responseBody); } return sb.toString(); } private <T> T handleResponseEntity(ResponseEntity<T> responseEntity, String url, HttpMethod method, Map<String, ?> parameters) { T data = null; if (responseEntity != null) { HttpStatus responseHttpStatus = responseEntity.getStatusCode(); if (responseHttpStatus.is2xxSuccessful()) { data = responseEntity.getBody(); } else if (responseHttpStatus.is3xxRedirection()) { URI locationUri = responseEntity.getHeaders().getLocation(); LOGGER.warn("Received {} http status code for redirection to {} while downloading the url {} over {}", responseHttpStatus, locationUri, url, method); } else { T responseBody = responseEntity.getBody(); String logMsg = this.constructErrorResponseLogMessage(responseHttpStatus, url, method, parameters, responseBody); LOGGER.warn(logMsg); } } else { LOGGER.error("Received null ResponseEntity while downloading the url {} over {}", url, method); } return data; } }
package pe.gob.trabajo.domain; import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; import org.springframework.data.elasticsearch.annotations.Document; import javax.persistence.*; import javax.validation.constraints.*; import java.io.Serializable; import java.time.Instant; import java.util.HashSet; import java.util.Set; import java.util.Objects; /** * LISTA MAESTRA DE LOS MOTIVOS DE LA ATENCION */ @ApiModel(description = "LISTA MAESTRA DE LOS MOTIVOS DE LA ATENCION") @Entity @Table(name = "gltbc_motate") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) @Document(indexName = "gltbc_motate") public class Motate implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequenceGenerator") @SequenceGenerator(name = "sequenceGenerator") @Column(name = "n_codmotate", nullable = false) private Long id; /** * DESCRIPCION DEL MOTIVO DE ATENCION. */ @NotNull @Size(max = 200) @ApiModelProperty(value = "DESCRIPCION DEL MOTIVO DE ATENCION.", required = true) @Column(name = "v_desmotate", length = 200, nullable = false) private String vDesmotate; /** * CODIGO DEL USUARIO QUE REGISTRA. */ @NotNull @ApiModelProperty(value = "CODIGO DEL USUARIO QUE REGISTRA.", required = true) @Column(name = "n_usuareg", nullable = false) private Integer nUsuareg; /** * FECHA Y HORA DEL REGISTRO. */ @NotNull @ApiModelProperty(value = "FECHA Y HORA DEL REGISTRO.", required = true) @Column(name = "t_fecreg", nullable = false) private Instant tFecreg; /** * ESTADO ACTIVO DEL REGISTRO (1=ACTIVO, 0=INACTIVO) */ @NotNull @ApiModelProperty(value = "ESTADO ACTIVO DEL REGISTRO (1=ACTIVO, 0=INACTIVO)", required = true) @Column(name = "n_flgactivo", nullable = false) private Boolean nFlgactivo; /** * CODIGO DE LA SEDE DONDE SE REGISTRA. */ @NotNull @ApiModelProperty(value = "CODIGO DE LA SEDE DONDE SE REGISTRA.", required = true) @Column(name = "n_sedereg", nullable = false) private Integer nSedereg; /** * CODIGO DEL USUARIO QUE MODIFICA EL REGISTRO. */ @ApiModelProperty(value = "CODIGO DEL USUARIO QUE MODIFICA EL REGISTRO.") @Column(name = "n_usuaupd") private Integer nUsuaupd; /** * CODIGO DEL USUARIO QUE MODIFICA EL REGISTRO. */ @ApiModelProperty(value = "CODIGO DEL USUARIO QUE MODIFICA EL REGISTRO.") @Column(name = "t_fecupd") private Instant tFecupd; /** * CODIGO DE LA SEDE DONDE SE MODIFICA EL REGISTRO. */ @ApiModelProperty(value = "CODIGO DE LA SEDE DONDE SE MODIFICA EL REGISTRO.") @Column(name = "n_sedeupd") private Integer nSedeupd; @OneToMany(mappedBy = "motate") @JsonIgnore @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) private Set<Motatenofic> motatenofics = new HashSet<>(); @ManyToOne @JoinColumn(name = "n_codtipmot") private Tipmotaten tipmotaten; // jhipster-needle-entity-add-field - Jhipster will add fields here, do not remove public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getvDesmotate() { return vDesmotate; } public Motate vDesmotate(String vDesmotate) { this.vDesmotate = vDesmotate; return this; } public void setvDesmotate(String vDesmotate) { this.vDesmotate = vDesmotate; } public Integer getnUsuareg() { return nUsuareg; } public Motate nUsuareg(Integer nUsuareg) { this.nUsuareg = nUsuareg; return this; } public void setnUsuareg(Integer nUsuareg) { this.nUsuareg = nUsuareg; } public Instant gettFecreg() { return tFecreg; } public Motate tFecreg(Instant tFecreg) { this.tFecreg = tFecreg; return this; } public void settFecreg(Instant tFecreg) { this.tFecreg = tFecreg; } public Boolean isnFlgactivo() { return nFlgactivo; } public Motate nFlgactivo(Boolean nFlgactivo) { this.nFlgactivo = nFlgactivo; return this; } public void setnFlgactivo(Boolean nFlgactivo) { this.nFlgactivo = nFlgactivo; } public Integer getnSedereg() { return nSedereg; } public Motate nSedereg(Integer nSedereg) { this.nSedereg = nSedereg; return this; } public void setnSedereg(Integer nSedereg) { this.nSedereg = nSedereg; } public Integer getnUsuaupd() { return nUsuaupd; } public Motate nUsuaupd(Integer nUsuaupd) { this.nUsuaupd = nUsuaupd; return this; } public void setnUsuaupd(Integer nUsuaupd) { this.nUsuaupd = nUsuaupd; } public Instant gettFecupd() { return tFecupd; } public Motate tFecupd(Instant tFecupd) { this.tFecupd = tFecupd; return this; } public void settFecupd(Instant tFecupd) { this.tFecupd = tFecupd; } public Integer getnSedeupd() { return nSedeupd; } public Motate nSedeupd(Integer nSedeupd) { this.nSedeupd = nSedeupd; return this; } public void setnSedeupd(Integer nSedeupd) { this.nSedeupd = nSedeupd; } public Set<Motatenofic> getMotatenofics() { return motatenofics; } public Motate motatenofics(Set<Motatenofic> motatenofics) { this.motatenofics = motatenofics; return this; } public Motate addMotatenofic(Motatenofic motatenofic) { this.motatenofics.add(motatenofic); motatenofic.setMotate(this); return this; } public Motate removeMotatenofic(Motatenofic motatenofic) { this.motatenofics.remove(motatenofic); motatenofic.setMotate(null); return this; } public void setMotatenofics(Set<Motatenofic> motatenofics) { this.motatenofics = motatenofics; } public Tipmotaten getTipmotaten() { return tipmotaten; } public Motate tipmotaten(Tipmotaten tipmotaten) { this.tipmotaten = tipmotaten; return this; } public void setTipmotaten(Tipmotaten tipmotaten) { this.tipmotaten = tipmotaten; } // jhipster-needle-entity-add-getters-setters - Jhipster will add getters and setters here, do not remove @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Motate motate = (Motate) o; if (motate.getId() == null || getId() == null) { return false; } return Objects.equals(getId(), motate.getId()); } @Override public int hashCode() { return Objects.hashCode(getId()); } @Override public String toString() { return "Motate{" + "id=" + getId() + ", vDesmotate='" + getvDesmotate() + "'" + ", nUsuareg='" + getnUsuareg() + "'" + ", tFecreg='" + gettFecreg() + "'" + ", nFlgactivo='" + isnFlgactivo() + "'" + ", nSedereg='" + getnSedereg() + "'" + ", nUsuaupd='" + getnUsuaupd() + "'" + ", tFecupd='" + gettFecupd() + "'" + ", nSedeupd='" + getnSedeupd() + "'" + "}"; } }
import java.util.ArrayList; import java.util.List; public class TwoForTreeBack { public static void main(String[] args) { TreeNode n1 = new TreeNode(1); TreeNode n2 = new TreeNode(2); TreeNode n3 = new TreeNode(3); TreeNode n4 = new TreeNode(4); n1.left = n2; n1.right = n3; n2.right =n4; List<Integer> res = new TwoForTreeBack().preorderTraversal(n1); } public List<Integer> preorderTraversal(TreeNode root) { List<Integer> res = new ArrayList<>(); preOrder( root , res); return res; } public void preOrder(TreeNode root ,List<Integer> res){ if(root == null){ return; } System.out.println("first"+root.val); if(root.left!=null){ preOrder(root.left,res); } System.out.println("mid"+root.val); if(root.right!=null){ preOrder(root.right,res); } res.add(root.val); System.out.println(root.val); } }
package com.iflytek.sas.voice.transfer.server.handler; import com.iflytek.sas.voice.transfer.server.client.ClientChannelInitializer; import com.iflytek.sas.voice.transfer.server.common.MethodInvokeMeta; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelInboundHandlerAdapter; import io.netty.channel.SimpleChannelInboundHandler; import lombok.extern.slf4j.Slf4j; /** * @author: JiangPing Li * @date: 2018-08-06 11:32 */ @Slf4j public class ClientChannelHandler extends SimpleChannelInboundHandler { private MethodInvokeMeta methodInvokeMeta; private ClientChannelInitializer clientChannelInitializer; public ClientChannelHandler(MethodInvokeMeta methodInvokeMeta, ClientChannelInitializer clientChannelInitializer) { this.methodInvokeMeta = methodInvokeMeta; this.clientChannelInitializer = clientChannelInitializer; } @Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) { log.error("客户端出异常了,异常信息:{}", cause); ctx.close(); } @Override public void channelActive(ChannelHandlerContext ctx) { // if (!methodInvokeMeta.getMethodName().endsWith("toString") // && !"class java.lang.String".equals(methodInvokeMeta.getReturnType().toString())){ // log.info("客户端调用方法名:{},信息返回值类型:{}", //// methodInvokeMeta.getArgs(), // methodInvokeMeta.getMethodName(), // methodInvokeMeta.getReturnType()); // } ctx.writeAndFlush(methodInvokeMeta); } // @Override // public void channelRead(ChannelHandlerContext ctx, Object msg) { //// log.debug("---返回结果:" + msg.toString()); // clientChannelInitializer.setResponse(msg); // } @Override protected void channelRead0(ChannelHandlerContext ctx, Object msg) { // log.debug("---返回结果:" + msg.toString()); clientChannelInitializer.setResponse(msg); } }
/* 1: */ package com.kaldin.setting.forgotpassword.dto; /* 2: */ /* 3: */ public class forgotPasswordDTO /* 4: */ { /* 5: */ private int userId; /* 6: */ private String question; /* 7: */ private String answer; /* 8: */ /* 9: */ public int getUserId() /* 10: */ { /* 11:10 */ return this.userId; /* 12: */ } /* 13: */ /* 14: */ public void setUserId(int userId) /* 15: */ { /* 16:13 */ this.userId = userId; /* 17: */ } /* 18: */ /* 19: */ public String getQuestion() /* 20: */ { /* 21:16 */ return this.question; /* 22: */ } /* 23: */ /* 24: */ public void setQuestion(String question) /* 25: */ { /* 26:19 */ this.question = question; /* 27: */ } /* 28: */ /* 29: */ public String getAnswer() /* 30: */ { /* 31:22 */ return this.answer; /* 32: */ } /* 33: */ /* 34: */ public void setAnswer(String answer) /* 35: */ { /* 36:25 */ this.answer = answer; /* 37: */ } /* 38: */ } /* Location: C:\Java Work\Workspace\Kaldin\WebContent\WEB-INF\classes\com\kaldin\kaldin_java.zip * Qualified Name: kaldin.setting.forgotpassword.dto.forgotPasswordDTO * JD-Core Version: 0.7.0.1 */
package com.api.service.product; import com.api.hystric.product.CategoryMasterServiceHystrix; import com.product.entity.ColorMasterEntity; import com.system.util.ServiceResult; import com.system.util.SystemException; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import java.util.List; import java.util.Map; @FeignClient(value = "yb-public-product", fallback = CategoryMasterServiceHystrix.class) public interface IColorMasterService { /** * findList * * @Author qinwanli * @Description * @Date 2019/5/24 15:17 * @Param [params] **/ @RequestMapping(value = "/color/findList", method = RequestMethod.GET) ServiceResult<List<ColorMasterEntity>> findList(@RequestParam Map<String, Object> params) throws SystemException; /** * findInfo * * @Author qinwanli * @Description * @Date 2019/5/24 15:16 * @Param [params] **/ @RequestMapping(value = "/color/findInfo", method = RequestMethod.GET) ServiceResult<ColorMasterEntity> findInfo(@RequestParam Map<String, Object> params) throws SystemException; /** * doInsert * * @Author qinwanli * @Description * @Date 2019/5/24 15:16 * @Param [colorMasterEntity] **/ @RequestMapping(value = { "/color/doInsert" }, method = { RequestMethod.POST }) ServiceResult<Integer> doInsert(@RequestBody ColorMasterEntity colorMasterEntity) throws SystemException; /** * doUpdate * * @Author qinwanli * @Description * @Date 2019/5/24 15:16 * @Param [colorMasterEntity] **/ @RequestMapping(value = { "/color/doUpdate" }, method = { RequestMethod.POST }) ServiceResult<Integer> doUpdate(@RequestBody ColorMasterEntity colorMasterEntity) throws SystemException; /** * doDelete * * @Author qinwanli * @Description * @Date 2019/5/24 15:16 * @Param [colorId] **/ @RequestMapping(value = { "/color/doDelete" }, method = { RequestMethod.POST }) ServiceResult<Boolean> doDelete(@RequestParam("colorId") int colorId) throws SystemException; }
package array2; public class Telefonos { public String tipo; public String telefono; Telefonos (String tip, String tel){ this.tipo=tip; this.telefono=tel; } }
package com.tencent.mm.plugin.appbrand.media.music; import android.text.TextUtils; import com.tencent.mm.an.b; import com.tencent.mm.protocal.c.avq; import com.tencent.mm.sdk.b.c; import com.tencent.mm.sdk.platformtools.x; import java.util.HashMap; public final class a { public String bKC; public String bPg; public int bPh; private HashMap<String, c> dRX; public String ghU; public String ghV; private static class a { private static a ghW = new a(); } /* synthetic */ a(byte b) { this(); } private a() { this.dRX = new HashMap(); } public final boolean bE(String str, String str2) { if (str2.equalsIgnoreCase("play")) { x.i("MicroMsg.AppBrandMusicPlayerManager", "play option appid %s, pre appid %s", new Object[]{str, this.ghU}); return true; } if (str.equalsIgnoreCase(this.ghU)) { avq Qa = b.Qa(); if (Qa != null && Qa.rsp.equals(this.ghV)) { return true; } } return false; } public final void a(c cVar, String str) { if (this.dRX.get(str) != null) { x.i("MicroMsg.AppBrandMusicPlayerManager", "listeners already add appid: %s", new Object[]{str}); return; } com.tencent.mm.sdk.b.a.sFg.b(cVar); this.dRX.put(str, cVar); } public final void tl(String str) { if (this.dRX.get(str) == null) { x.i("MicroMsg.AppBrandMusicPlayerManager", "listeners already remove appid: %s", new Object[]{str}); return; } com.tencent.mm.sdk.b.a.sFg.c((c) this.dRX.remove(str)); this.dRX.remove(str); } public final boolean uu(String str) { if (TextUtils.isEmpty(str)) { x.e("MicroMsg.AppBrandMusicPlayerManager", "appId is empty"); return false; } else if (!str.equalsIgnoreCase(this.ghU)) { x.e("MicroMsg.AppBrandMusicPlayerManager", "appId is not equals pre play id"); return false; } else if (TextUtils.isEmpty(this.ghV)) { x.e("MicroMsg.AppBrandMusicPlayerManager", "now app not play music"); return false; } else { avq Qa = b.Qa(); if (Qa == null) { x.e("MicroMsg.AppBrandMusicPlayerManager", "wrapper is null"); return false; } else if (!this.ghV.equalsIgnoreCase(Qa.rsp)) { x.e("MicroMsg.AppBrandMusicPlayerManager", "musicId is diff"); return false; } else if (b.PY()) { return true; } else { x.i("MicroMsg.AppBrandMusicPlayerManager", "MusicHelper.isPlayingMusic FALSE"); return false; } } } }
package com.xjf.wemall.api.util; import java.util.Locale; import javax.servlet.http.HttpServletRequest; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.servlet.LocaleResolver; import org.springframework.web.servlet.support.RequestContext; import org.springframework.web.servlet.support.RequestContextUtils; public class WebAppContextUtils { /** * Request attribute to hold the current web application context for RequestContext usage. By default, the * DispatcherServlet's context (or the root context as fallback) is exposed. */ public static final String WEB_APPLICATION_CONTEXT_ATTRIBUTE = RequestContext.class.getName() + ".CONTEXT"; /** * * 功能描述: <br> * 获取WebApplicationContext * * @param request 参考说明 * @return WebApplicationContext 返回值 */ public static WebApplicationContext getWebApplicationContext(HttpServletRequest request) { WebApplicationContext webApplicationContext = (WebApplicationContext) request .getAttribute(WEB_APPLICATION_CONTEXT_ATTRIBUTE); if (webApplicationContext == null) { webApplicationContext = RequestContextUtils.getWebApplicationContext(request, request.getSession() .getServletContext()); } return webApplicationContext; } /** * * 功能描述: <br> * 获取Locale * * @param request 参考说明 * @return Locale 返回值 */ public static Locale getRequestLocale(HttpServletRequest request) { // Determine locale to use for this RequestContext. LocaleResolver localeResolver = RequestContextUtils.getLocaleResolver(request); Locale tempLocale = null; if (localeResolver != null) { // Try LocaleResolver (we're within a DispatcherServlet request). tempLocale = localeResolver.resolveLocale(request); } return tempLocale; } /** * 私有的构造函数WebAppContextUtils */ private WebAppContextUtils() { } }
package com.pas.mall.service.Impl; import com.pas.mall.mapper.TbContentCategoryMapper; import com.pas.mall.pojo.TbContentCategory; import com.pas.mall.service.ContentCategoryService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public class ContentCtegoryServiceImpl implements ContentCategoryService { @Autowired private TbContentCategoryMapper tbContentCategoryMapper; @Override public List<TbContentCategory> findAll() { return tbContentCategoryMapper.selectByExample(null); } }
package ExceptionExamples; import java.util.*; public class CharactersCountTest { public static void main(String[] args) { // TODO Auto-generated method stub Scanner s=new Scanner(System.in); CharactersCount c1=new CharactersCount(); String str=""; System.out.println("enter the strings:"); try { do { str=s.next(); if(str.equalsIgnoreCase("done")) break; else c1.count(str); }while(!(str.equalsIgnoreCase("done"))); } catch(Exception e) { System.out.println(e.toString()); } finally { s.close(); } } }
package com.example.workout2019ver2; import android.content.Intent; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; /* 디바이스가 폰인지 태블릿인지에 따라 동작 방법을 다르게 하고 싶다면 어떻게 할까요? 여러 액티비티에서 재활용할 수 있는 모듈화 코드 컴포넌트인 프래그먼트가 필요함. 기본 프래그먼트와 리스트 프래그먼트를 생성하는 방법 액티비티에 프래그먼트를 추가하는 방법 프래그먼트와 액티비티가 서로 통신하는 방법을 설명 프래그먼트를 이용하면 두 개의 액티비티에서 코드를 중복하지 않을 수 있다. 그럼 프래그먼트란 뭘까요? 프래그먼트는 재사용할 수 있는 컴포넌트나 하위 액티비티와 같다. 운동목록과 자세한 운동 정보를 각각의 프래그먼트로 생성한 다음 레이아웃에서 프래그먼트를 재사용할 수 있다. 액티비티는 레이아웃을 갖습니다. 프래그먼트 코드에 레이아웃의 모든 컨트롤을 포함하면 앱의 어디에서나 프래그먼트를 쉽게 재사용할 수 있다. */ public class MainActivity extends AppCompatActivity implements WorkoutListFragment.Listener{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } //목록에서 운동제목을 클릭하면 DetailActivity 호출하기 @Override public void itemClicked(long id) { Intent intent = new Intent(this, DetailActivity.class); intent.putExtra(DetailActivity.EXTRA_WORKOUT_ID,(int)id); startActivity(intent); } }
package com.weida.easycollege.controller; import com.weida.easycollege.dto.IdsDto; import com.weida.easycollege.dto.ReturnDto; import com.weida.easycollege.interfaces.IAuthorization; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @RestController @RequestMapping("auth") @Api(value = "authorization") public class AuthorizationController { @Autowired IAuthorization authorization; @PostMapping("/login") @ApiOperation(value="登录") public ReturnDto login(@RequestBody IdsDto idsDto){ return authorization.login(idsDto); } }
package com.example.grademe; import android.os.AsyncTask; import android.util.Log; import com.android.volley.RequestQueue; import com.android.volley.toolbox.Volley; import com.example.grademe.datatransferobject.SubjectDTO; import com.example.grademe.datatransferobject.UserDTO; import com.example.grademe.domain.Category; import com.example.grademe.domain.CategoryRating; import com.example.grademe.domain.Module; import com.example.grademe.domain.Pupil; import com.example.grademe.domain.Teacher; import com.example.grademe.domain.User; import com.example.grademe.domainvalue.Month; import com.example.grademe.domainvalue.Rating; import com.example.grademe.domainvalue.School; import com.example.grademe.request.LowLevelConnectionManager; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.URL; import java.util.ArrayList; import java.util.List; public class RestDatabaseBootstrap extends AsyncTask<Void, Void, String> { private String rest_url; public RestDatabaseBootstrap(String rest_url){ this.rest_url = rest_url; } private UserDTO createUser(String lastname, String firstname, String email,String password,Boolean isTeacher){ if(isTeacher) { return new UserDTO(firstname,lastname,email,password,true); }else{ return new UserDTO(firstname,lastname,email,password,false); } } private static CategoryRating createCategoryRating(Category category, Module module, Month month, Rating pupilRating, Rating teacherRating, String pupilComment, String teacherComment){ CategoryRating cr = new CategoryRating(); cr.setCategory(category); cr.setRatingPupil(pupilRating); cr.setRatingTeacher(teacherRating); cr.setCommentPupil(pupilComment); cr.setCommentTeacher(teacherComment); cr.setModule(module); cr.setMonth(month); return cr; } private static Category createCategory(String name){ Category category = new Category(); category.setName(name); return category; } @Override protected String doInBackground(Void... voids) { final GsonBuilder builder = new GsonBuilder(); final Gson gson = builder.create(); // ######################## // #### CREATE PUPILS ##### // ######################## UserDTO eins = createUser("1","1","1","1",Boolean.FALSE); UserDTO jan = createUser("mueller","Jan","mueller@mm.com","1234",Boolean.FALSE); UserDTO peter = createUser("Pan","Peter","peter@pan.com","123456",Boolean.FALSE); UserDTO chubacka = createUser("Hailandt","Chubacka","chubacka@hailandt.com","123456",Boolean.FALSE); UserDTO dschingis = createUser("Khan","Dschingis","dschingis@khan.com","123456",Boolean.FALSE); UserDTO walter = createUser("Frosch","Walter","walter@frosch.com","123456",Boolean.FALSE); UserDTO philipp = createUser("Lahm","Philipp","philipp@lahm.com","123456",Boolean.FALSE); String jsonEins = gson.toJson(eins); String jsonJan = gson.toJson(jan); String jsonPeter = gson.toJson(peter); String jsonChuba = gson.toJson(chubacka); String jsonDschingis = gson.toJson(dschingis); String jsonWalter = gson.toJson(walter); String jsonPhilipp = gson.toJson(philipp); LowLevelConnectionManager.sendRequest(rest_url + "v1/users",jsonEins,"POST"); LowLevelConnectionManager.sendRequest(rest_url + "v1/users",jsonJan,"POST"); LowLevelConnectionManager.sendRequest(rest_url + "v1/users",jsonPeter,"POST"); LowLevelConnectionManager.sendRequest(rest_url + "v1/users",jsonChuba,"POST"); LowLevelConnectionManager.sendRequest(rest_url + "v1/users",jsonDschingis,"POST"); LowLevelConnectionManager.sendRequest(rest_url + "v1/users",jsonWalter,"POST"); LowLevelConnectionManager.sendRequest(rest_url + "v1/users",jsonPhilipp,"POST"); // ######################### // #### CREATE TEACHER ##### // ######################### UserDTO teacher1 = createUser("Hotzenplotz","Raeuber","raeuber@hotzenplotz.com","123456",Boolean.TRUE); UserDTO teacher2 = createUser("Ritter","Karin","karin@ritter.com","123456",Boolean.TRUE); UserDTO teacher3 = createUser("2","2","2","2",Boolean.TRUE); User hotzenplotz = gson.fromJson(LowLevelConnectionManager.sendRequest(rest_url + "v1/users",gson.toJson(teacher1),"POST"),User.class); User ritterKarin = gson.fromJson(LowLevelConnectionManager.sendRequest(rest_url + "v1/users",gson.toJson(teacher2),"POST"),User.class); User zwei = gson.fromJson(LowLevelConnectionManager.sendRequest(rest_url + "v1/users",gson.toJson(teacher3),"POST"),User.class); // ########################## // #### CREATE SUBJECTS ##### // ########################## SubjectDTO mathe = new SubjectDTO(); mathe.setName("Mathe"); SubjectDTO englisch = new SubjectDTO(); englisch.setName("Englisch"); SubjectDTO deutsch = new SubjectDTO(); deutsch.setName("Deutsch"); LowLevelConnectionManager.sendRequest(rest_url + "v1/subjects/10",gson.toJson(mathe),"POST"); LowLevelConnectionManager.sendRequest(rest_url + "v1/subjects/10",gson.toJson(englisch),"POST"); LowLevelConnectionManager.sendRequest(rest_url + "v1/subjects/9",gson.toJson(deutsch),"POST"); // ################################# // #### ADD PUPILS TO SUBJECTS ##### // ################################# LowLevelConnectionManager.sendRequest(rest_url + "v1/subjects/1/pupil/1","{}","PUT"); LowLevelConnectionManager.sendRequest(rest_url + "v1/subjects/1/pupil/2","{}","PUT"); LowLevelConnectionManager.sendRequest(rest_url + "v1/subjects/1/pupil/3","{}","PUT"); LowLevelConnectionManager.sendRequest(rest_url + "v1/subjects/1/pupil/5","{}","PUT"); LowLevelConnectionManager.sendRequest(rest_url + "v1/subjects/1/pupil/6","{}","PUT"); LowLevelConnectionManager.sendRequest(rest_url + "v1/subjects/2/pupil/1","{}","PUT"); LowLevelConnectionManager.sendRequest(rest_url + "v1/subjects/2/pupil/2","{}","PUT"); LowLevelConnectionManager.sendRequest(rest_url + "v1/subjects/2/pupil/3","{}","PUT"); LowLevelConnectionManager.sendRequest(rest_url + "v1/subjects/3/pupil/1","{}","PUT"); LowLevelConnectionManager.sendRequest(rest_url + "v1/subjects/3/pupil/4","{}","PUT"); LowLevelConnectionManager.sendRequest(rest_url + "v1/subjects/3/pupil/5","{}","PUT"); return null; } protected void onPostExecute(String response) { } }
package pl.edu.wat.wcy.pz.project.server; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; import org.springframework.security.crypto.password.PasswordEncoder; import pl.edu.wat.wcy.pz.project.server.entity.User; import pl.edu.wat.wcy.pz.project.server.repository.RoleRepository; import pl.edu.wat.wcy.pz.project.server.repository.UserRepository; import java.util.List; @SpringBootApplication public class ServerApplication { public static void main(String[] args) { SpringApplication.run(ServerApplication.class, args); } @Bean ApplicationRunner init(UserRepository userRepository, RoleRepository roleRepository, PasswordEncoder encoder) { return args -> { List<User> allUsers = userRepository.findAll(); allUsers.forEach(user -> user.setPassword(encoder.encode(user.getUsername()))); userRepository.saveAll(allUsers); }; } }
package com.zhangyanye.didipark.view; import com.zhangyanye.didipark.R; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.view.View; import android.widget.ImageView; import android.widget.RelativeLayout; import android.widget.TextView; public class TopBar extends RelativeLayout { private TextView tv_title; private ImageView btn_right, bt_left; private ToolBarOnClickListener tbarOnClickListener; private LayoutParams lp_title, lp_right, lp_left; public TopBar(Context context) { super(context); } public TopBar(Context context, AttributeSet attrs) { super(context, attrs); btn_right = new ImageView(context); bt_left = new ImageView(context); tv_title = new TextView(context); TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.Topbar); CharSequence title = ta.getText(R.styleable.Topbar_title_text); Drawable drawable_right = ta.getDrawable(R.styleable.Topbar_right_img); Drawable drawable_left = ta.getDrawable(R.styleable.Topbar_left_img); ta.recycle(); if (drawable_right != null) btn_right.setImageDrawable(drawable_right); else btn_right.setVisibility(GONE); if (drawable_left != null) bt_left.setImageDrawable(drawable_left); else bt_left.setVisibility(GONE); if (title != null) tv_title.setText(title); tv_title.setTextSize(20); tv_title.setTextColor(Color.WHITE); tv_title.setGravity(CENTER_IN_PARENT); lp_title = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); lp_title.addRule(RelativeLayout.CENTER_IN_PARENT); lp_left = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); lp_right = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); lp_left.addRule(RelativeLayout.CENTER_VERTICAL); lp_right.addRule(RelativeLayout.CENTER_VERTICAL); lp_right.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); lp_left.addRule(RelativeLayout.ALIGN_PARENT_LEFT); btn_right.setPadding(0, 0, 10, 0); bt_left.setPadding(10, 0, 0, 0); addView(bt_left, lp_left); addView(tv_title, lp_title); addView(btn_right, lp_right); // setBackgroundColor(getResources().getColor(R.color.top_bar_color)); bt_left.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { tbarOnClickListener.leftBtnClick(); } }); btn_right.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { tbarOnClickListener.rightBtnClick(); } }); } /** * 接口回调 设置点击事件监听 * * @param tbarOnClickListener */ public void setOnTopbarClickListener( ToolBarOnClickListener tbarOnClickListener) { this.tbarOnClickListener = tbarOnClickListener; } }
package pat.san; import javafx.application.Application; import javafx.event.EventHandler; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.input.MouseEvent; import javafx.stage.Stage; import lombok.extern.log4j.Log4j2; import java.io.IOException; import java.net.URL; /** * JavaFX App */ @Log4j2 public class App extends Application { public static void main(String[] args) { launch(); } @Override public void start(Stage stage) throws IOException { FXMLLoader loader = new FXMLLoader(); URL xmlUrl = getClass().getResource("/index.fxml"); loader.setLocation(xmlUrl); Parent root = loader.load(); Scene scene = new Scene(root); stage.setScene(scene); stage.show(); EventHandler<MouseEvent> eventHandler = e -> log.debug("button pressed"); Button button = (Button) scene.lookup("#button"); button.addEventHandler(MouseEvent.MOUSE_CLICKED, eventHandler); } }
package be.kestro.io.pi.impl; import java.util.concurrent.atomic.AtomicReference; import be.kestro.io.core.api.IOService; import org.osgi.service.component.ComponentException; import org.osgi.service.component.annotations.Activate; import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.ConfigurationPolicy; import org.osgi.service.component.annotations.Deactivate; import org.osgi.service.component.annotations.Reference; import org.osgi.service.component.annotations.ReferenceCardinality; import org.osgi.service.component.annotations.ReferencePolicy; import org.osgi.service.metatype.annotations.AttributeDefinition; import org.osgi.service.metatype.annotations.Designate; import org.osgi.service.metatype.annotations.ObjectClassDefinition; import com.pi4j.io.gpio.GpioPinPwmOutput; import com.pi4j.io.gpio.Pin; import com.pi4j.io.gpio.RaspiPin; import be.kestro.io.core.api.PwmService; import be.kestro.io.pi.api.RaspberryPiService; @ObjectClassDefinition(name = "Raspberry Pi PWM Pin Configuration", description = "Configures a new Raspberry Pi PWM Service with to control a PWM pin. Please verify your pin id at http://www.pi4j.com/") @interface PiPwmConfig { @AttributeDefinition(name = "GPIO Pin", required = true, description = "The GPIO Pin id as described at http://www.pi4j.com") int pinId() default 0; @AttributeDefinition(name = "Logical name", required = true, description = "A logical name like Gate Controller or Green LED that makes it easier to identify the purpose of the pin.") String name() default ""; } @Component( configurationPolicy = ConfigurationPolicy.REQUIRE, service = {PwmService.class, IOService.class} ) @Designate(ocd = PiPwmConfig.class, factory = true) public class RaspberryPiPwmServiceImpl implements PwmService, IOService { private AtomicReference<RaspberryPiService> pi = new AtomicReference<>(); private GpioPinPwmOutput pwmPin; private String name; @Activate public void activate(PiPwmConfig config) { Pin pin = RaspiPin.getPinByAddress(config.pinId()); RaspberryPiService raspberryPiService = pi.get(); if (raspberryPiService == null) { throw new ComponentException("RaspberryPiService not set"); } pwmPin = raspberryPiService.gpio().provisionPwmOutputPin(pin, config.name()); name = config.name(); } @Deactivate public void deactivate() { RaspberryPiService raspberryPiService = pi.get(); if (raspberryPiService == null) { return; } raspberryPiService.gpio().unprovisionPin(pwmPin); pwmPin = null; } @Reference(policy = ReferencePolicy.STATIC, cardinality = ReferenceCardinality.MANDATORY, unbind = "unsetRaspberryPiService") public void setRaspberryPiService(RaspberryPiService service) { pi.compareAndSet(null, service); } public void unsetRaspberryPiService(RaspberryPiService service) { pi.compareAndSet(service, null); } @Override public String name() { return name; } @Override public void setPulsePercentage(int percentage) { pwmPin.setPwm(percentage); } @Override public int getPulsePercentage() { return pwmPin.getPwm(); } @Override public void increase() { int pwm = pwmPin.getPwm(); pwmPin.setPwm(pwm + 5); } @Override public void decrease() { int pwm = pwmPin.getPwm(); pwmPin.setPwm(pwm - 5); } }
package com.tyjradio.jrdvoicerecorder.db; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.content.Context; import com.tyjradio.jrdvoicerecorder.utils.ContentData; public class DBHelper extends SQLiteOpenHelper { /* 定义建表语句 组号 区号 本机ID 远端ID 时间 持续时间 信道号 录音类型 接收频率 发射频率 发送/接收 信道类型 机器序列号 录音文件路径 录音文件名 录音开始时间 */ public static final String CREATE_PHONERECORDERTBL = "create table PhoneRecorderTbl ( " + "ID integer primary key autoincrement, " + "ZipCode varchar(20), " + "SelfPhoneNum varchar(30), " + "CalledPhoneNum varchar(30), " + "CallingTime datetime, " + "DurationTime integer, " + "ChannelCode numeric, " + "ChannelType varchar(10), " + "RecorderType varchar(10), " + "REFrequency double, " + "EmFrequency double, " + "OutOrInput varchar(50), " + "MachineSerialNum blob, " + "AudioFile varchar(50), " + "StartPosition INTEGER, " + "Length INTEGER, " + "Count INTEGER)"; //parameters:参数1:上下文对象,参数2:数据库的名称,参数3:创建Cursor的工厂类,参数4:数据库的版本 public DBHelper(Context context){ super(context, ContentData.DATABASE_NAME,null,ContentData.DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase sqLiteDatabase) { sqLiteDatabase.execSQL(CREATE_PHONERECORDERTBL); } @Override public void onUpgrade(SQLiteDatabase sqLiteDatabase, int oldVersion, int newVersion) { String sqlstr = "DROP TABLE IF EXISTS " + ContentData.TABLE_NAME; sqLiteDatabase.execSQL(sqlstr); onCreate(sqLiteDatabase); } }
package ch.fhnw.lernstickwelcome; import ch.fhnw.lernstickwelcome.IPTableEntry.Protocol; import ch.fhnw.util.PreferredSizesTableModel; import java.awt.Dimension; import java.util.ArrayList; import java.util.List; import java.util.ResourceBundle; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JTable; import javax.swing.ListSelectionModel; /** * the table model for the iptables table * * @author ronny */ public class IPTableModel extends PreferredSizesTableModel { private static final Logger LOGGER = Logger.getLogger(IPTableModel.class.getName()); private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("ch/fhnw/lernstickwelcome/Bundle"); private final List<IPTableEntry> entries; /** * creates a new IPTableModel * * @param table the table where we want to set perfect sizes * @param maxDimension the maximum dimensions */ public IPTableModel(JTable table, Dimension maxDimension) { super(table, maxDimension); entries = new ArrayList<>(); addColumn(BUNDLE.getString("Protocol")); addColumn(BUNDLE.getString("Target")); addColumn(BUNDLE.getString("Port")); addColumn(BUNDLE.getString("Description")); initSizes(); } @Override public int getRowCount() { if (entries == null) { return 0; } return entries.size(); } @Override public boolean isCellEditable(int row, int column) { return true; } @Override public Class<?> getColumnClass(int column) { switch (column) { case 0: // Protocol (TCP / UDP) return Protocol.class; case 1: // target (IP address or hostname) return String.class; case 2: // port (0..65535) or port range (<minport>:<maxport>) return String.class; case 3: // description return String.class; default: LOGGER.log(Level.WARNING, "column {0} not supported", column); return null; } } @Override public Object getValueAt(int row, int column) { IPTableEntry entry = entries.get(row); switch (column) { case 0: return entry.getProtocol().toString(); case 1: return entry.getTarget(); case 2: return entry.getPortRange(); case 3: return entry.getDescription(); default: LOGGER.log(Level.WARNING, "column {0} not supported", column); return null; } } @Override public void setValueAt(Object value, int row, int column) { IPTableEntry entry = entries.get(row); switch (column) { case 0: Protocol protocol = (Protocol) value; entry.setProtocol(protocol); break; case 1: String target = (String) value; entry.setTarget(target); break; case 2: String portRange = (String) value; entry.setPortRange(portRange); break; case 3: String description = (String) value; entry.setDescription(description); break; default: LOGGER.log(Level.WARNING, "column {0} not supported", column); } } @Override public void removeRow(int row) { entries.remove(row); fireTableRowsDeleted(row, row); } public void addEntry() { addEntry(new IPTableEntry(Protocol.TCP, "", "", "")); } public void addEntry(IPTableEntry entry) { entries.add(entry); int newRow = entries.size() - 1; fireTableRowsInserted(newRow, newRow); } public void moveEntries(boolean up) { int[] selectedRows = table.getSelectedRows(); int length = selectedRows.length; if (up) { // move up for (int i = 0; i < length; i++) { int index = selectedRows[i]; entries.add(index - 1, entries.remove(index)); } fireTableRowsUpdated(selectedRows[0] - 1, selectedRows[length - 1]); for (int i = 0; i < length; i++) { selectedRows[i]--; } } else { // move down for (int i = length - 1; i >= 0; i--) { int index = selectedRows[i]; entries.add(index + 1, entries.remove(index)); } fireTableRowsUpdated(selectedRows[0], selectedRows[length - 1] + 1); for (int i = 0; i < length; i++) { selectedRows[i]++; } } // restore selection ListSelectionModel listSelectionModel = table.getSelectionModel(); listSelectionModel.clearSelection(); for (int i = 0; i < length; i++) { int index = selectedRows[i]; listSelectionModel.addSelectionInterval(index, index); } } }
/* * created 17.07.2005 * * Copyright 2009, ByteRefinery * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * $Id: ColumnDefaultOperation.java 3 2005-11-02 03:04:20Z csell $ */ package com.byterefinery.rmbench.operations; import org.eclipse.core.commands.ExecutionException; import org.eclipse.core.runtime.IAdaptable; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; import com.byterefinery.rmbench.EventManager; import com.byterefinery.rmbench.RMBenchPlugin; import com.byterefinery.rmbench.model.schema.Column; /** * Operation for changing the name of a column * @author cse */ public class ColumnDefaultOperation extends RMBenchOperation { private final Column column; private final String oldDefault, newDefault; public ColumnDefaultOperation(Column column, String newDefault) { super(Messages.Operation_ModifyColumn); this.column = column; this.oldDefault = column.getDefault(); this.newDefault = newDefault == null || newDefault.length() == 0 ? null : newDefault; } public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { column.setDefault(newDefault); RMBenchPlugin.getEventManager().fireColumnModified( column.getTable(), EventManager.Properties.COLUMN_DEFAULT, column); return Status.OK_STATUS; } public IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { column.setDefault(oldDefault); RMBenchPlugin.getEventManager().fireColumnModified( column.getTable(), EventManager.Properties.COLUMN_DEFAULT, column); return Status.OK_STATUS; } }
import java.util.Map; /** * Created by rai on 19.05.17. */ public class SiegEvaluierer { public boolean hatGewonnen(Map<Ort, Markierung> brett) { return eval(brett, Markierung.X) || eval(brett, Markierung.O); } private boolean eval(Map<Ort, Markierung> brett, Markierung markierung) { // 123 if(brett.get(Ort.TOP_LEFT) == markierung && brett.get(Ort.TOP_CENTER) == markierung && brett.get(Ort.TOP_RIGHT) == markierung) { return true; } // 147 if(brett.get(Ort.TOP_LEFT) == markierung && brett.get(Ort.CENTER) == markierung && brett.get(Ort.BOTTOM_RIGHT) == markierung) { return true; } // 258 if(brett.get(Ort.TOP_CENTER) == markierung && brett.get(Ort.CENTER) == markierung && brett.get(Ort.BOTTOM_CENTER) == markierung) { return true; } // 369 if(brett.get(Ort.TOP_RIGHT) == markierung && brett.get(Ort.TOP_RIGHT) == markierung && brett.get(Ort.BOTTOM_RIGHT) == markierung) { return true; } // 357 if(brett.get(Ort.TOP_RIGHT) == markierung && brett.get(Ort.CENTER) == markierung && brett.get(Ort.BOTTOM_LEFT) == markierung) { return true; } // 456 if(brett.get(Ort.CENTER_LEFT) == markierung && brett.get(Ort.CENTER) == markierung && brett.get(Ort.CENTER_RIGHT) == markierung) { return true; } // 789 if(brett.get(Ort.BOTTOM_LEFT) == markierung && brett.get(Ort.BOTTOM_CENTER) == markierung && brett.get(Ort.BOTTOM_RIGHT) == markierung) { return true; } return false; } }
package com.sula.service.impl; import com.jfinal.plugin.activerecord.Db; import com.jfinal.plugin.activerecord.Page; import com.jfinal.plugin.activerecord.Record; import com.sula.service.CashOutService; import com.sula.util.Status; public class CashOutServiceImpl implements CashOutService{ public Page<Record> getCashOutList(int page) { String sql = "select t1.*,t2.mobile"; String exSql = " from sl_cashout_info t1 left join sl_user_info t2 on t1.userid = t2.id"; Page<Record> data = Db.paginate(page, Status.pageSize, sql, exSql); return data; } @Override public Record getCashById(int id) { Record cashOut = Db.findById("sl_cashout_info", id); return cashOut; } @Override public boolean updateCashInfo(Record cashData) { cashData.set("end_time", new java.util.Date()); return Db.update("sl_cashout_info", cashData); } }
package com.cngl.bilet.dto; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.Size; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class HavalimaniRequestDto { private Long id; @Size(max = 50, min = 3, message = "{HavalimaniRequestDto.isim.invalid}") @NotEmpty(message = "Lutfen isim girin") private String isim; @Size(max = 200, min = 3, message = "{HavalimaniRequestDto.adres.invalid}") @NotEmpty(message = "Lutfen isim girin") private String adres; @Size(max = 50, min = 3, message = "{HavalimaniRequestDto.sehir.invalid}") @NotEmpty(message = "Lutfen isim girin") private String sehir; }
package models; import org.apache.log4j.Logger; import org.json.simple.JSONObject; import java.util.HashMap; import java.util.Map; import java.util.Set; /** * Created by cenk on 29/12/14. */ public class Models { private final static Logger logger = Logger.getLogger(Models.class); private Map<String, String> fieldNamesAndTypes = null; private String modelName = null; private Map<Object, String> fieldNameAndValues = new HashMap<Object, String>(); private Map filters = new HashMap(); private Integer limit; public Models() { } public Models(Map<String, String> fieldNamesAndTypes, String modelName) { this.modelName = modelName; this.fieldNamesAndTypes = fieldNamesAndTypes; } public void setLimit(int limit) { this.limit = limit; } public Integer getLimit() { return limit; } public Map getFilters() { return filters; } public void setFilters(Map filters) { this.filters = filters; } public String getModelName() { return modelName; } public Map getFieldNamesAndTypes() { return fieldNamesAndTypes; } //TODO public Set<String> getFields() { return fieldNamesAndTypes.keySet(); } public void setFieldValues(Map<String, String> fieldAndValues) { Set<String> fieldNames = getFields(); for (Object key : fieldAndValues.keySet()) { if (fieldNames.contains(key)) { fieldNameAndValues.put(key, fieldAndValues.get(key)); } else { System.out.println("Else and there is a problem"); } System.out.println(key); } } public void clearValues() { this.fieldNameAndValues = new HashMap<Object, String>(); this.filters = new HashMap(); } public Map<Object, String> getFieldNameAndValues() { return fieldNameAndValues; } public JSONObject filter(Map params) { JSONObject response = new JSONObject(); return response; } }
package com.figureshop.springmvc.dataAccess.dao; import com.figureshop.springmvc.model.Product; import com.figureshop.springmvc.model.Translation; import java.util.ArrayList; import java.util.List; public interface ProductDAO { List<Translation> getAllProducts(String lang); List<Translation> getProductsByName(String name, String lang); Translation getProductById(Long id, String lang); }
package com.tencent.mm.ui.widget.a; import com.tencent.mm.ui.e.c.b; import com.tencent.mm.ui.widget.a.c.a.d; import com.tencent.mm.ui.widget.a.e.a; class e$a$1 implements d { final /* synthetic */ a uKy; e$a$1(a aVar) { this.uKy = aVar; } public final CharSequence c(CharSequence charSequence, float f) { return b.d(this.uKy.mContext, charSequence, f); } }
package com.polatechno.androidtestexercise.ui; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewStub; import android.widget.CompoundButton; import android.widget.ProgressBar; import android.widget.TextView; import android.widget.Toast; import com.google.android.material.chip.Chip; import com.google.android.material.chip.ChipGroup; import com.google.gson.Gson; import com.polatechno.androidtestexercise.AppUtils.MyHelperMethods; import com.polatechno.androidtestexercise.R; import com.polatechno.androidtestexercise.ui.adapter.SignalListAdapter; import com.polatechno.androidtestexercise.model.PartnerAccount; import com.polatechno.androidtestexercise.model.SignalItem; import com.polatechno.androidtestexercise.model.SignalListRequestParams; import com.polatechno.androidtestexercise.model.SignalListResponse; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import androidx.appcompat.app.AppCompatActivity; import androidx.lifecycle.Observer; import androidx.lifecycle.ViewModelProviders; import androidx.recyclerview.widget.DefaultItemAnimator; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; public class MainActivity extends AppCompatActivity { private static final String TAG = "MainActivity"; //UI views private RecyclerView mSignalsRecView; private ViewStub stub; private TextView tv_empty_message; private ChipGroup chipGroupInstruments; private ProgressBar progressBar; private SwipeRefreshLayout swipeToRefresh; //Data variables private List<SignalItem> mSignals = new ArrayList<>(); private LinearLayoutManager mLayoutManager; private SignalListAdapter mSignalListAdapter; private Gson gson; private PartnerAccount partnerUser; private HashMap<String, String> mapInitialPairs = new HashMap<>(); private MainViewModel mainViewModel; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main_signals); if (getSupportActionBar() != null) { getSupportActionBar().setTitle(R.string.signal_list_title); } initViews(); setUpRecyclerView(); mainViewModel = ViewModelProviders.of(this).get(MainViewModel.class); mainViewModel.getRequestParams(); mainViewModel.getSignals(); setModelViewObserver(); setQueryParamsObserver(); // getSignalListByInstruments(); } private void setQueryParamsObserver() { mainViewModel.signalListRequestParamsMutableLiveData.observe(this, new Observer<SignalListRequestParams>() { @Override public void onChanged(SignalListRequestParams signalListRequestParams) { chipGroupInstruments.removeAllViews(); Chip eachChipView; for (String key : signalListRequestParams.getPairs().keySet()) { eachChipView = new Chip(MainActivity.this, null, R.attr.CustomChipChoiceStyle); eachChipView.setText(key); eachChipView.setChecked(signalListRequestParams.getPairs().get(key).isSelected()); eachChipView.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton compoundButton, boolean b) { mainViewModel.handlePairStatusChange(compoundButton.getText().toString(), b); Log.d(TAG, "onCheckedChanged: new status : " + b + " Text " + compoundButton.getText().toString()); } }); chipGroupInstruments.addView((View) eachChipView); } } }); } private void setModelViewObserver() { mainViewModel.signalListResponse.observe(this, new Observer<SignalListResponse>() { @Override public void onChanged(SignalListResponse signalListResponse) { Log.d(TAG, "onChanged: Live data changed... "); if (signalListResponse.isLoading()) { Log.d(TAG, "onChanged: Live data changed... isLoading = True "); tv_empty_message.setVisibility(View.GONE); stub.setVisibility(View.GONE); progressBar.setVisibility(View.VISIBLE); mSignalsRecView.setVisibility(View.GONE); } else { Log.d(TAG, "onChanged: Live data changed... isLoading = false "); //onResponse if (signalListResponse.isOnResponse()) { Log.d(TAG, "onChanged: Live data changed... status: OnResponse "); mSignalsRecView.setVisibility(View.VISIBLE); progressBar.setVisibility(View.GONE); swipeToRefresh.setRefreshing(false); if (signalListResponse.getStatusCode() == 200) { mSignalListAdapter.addItems(signalListResponse.getSignalItems()); Log.d(TAG, "onChanged: statusCode = 200"); //If empty result, show empty message if (signalListResponse.getSignalItems().size() == 0) { tv_empty_message.setVisibility(View.VISIBLE); } //if user token is not valid. User should login again... } else if (signalListResponse.getStatusCode() == 403) { Log.d(TAG, "onChanged: statusCode = 403"); logOutUser(); } } //onFailure else { Log.d(TAG, "onChanged: Live data changed... status: onFailure " + signalListResponse.getMessage()); Log.i("onFailure", "Retrofit OnFailure: " + signalListResponse.getMessage()); Toast.makeText(getApplicationContext(), "Unable to fetch json: " + signalListResponse.getMessage(), Toast.LENGTH_LONG).show(); mSignalsRecView.setVisibility(View.GONE); progressBar.setVisibility(View.GONE); swipeToRefresh.setRefreshing(false); stub.setVisibility(View.VISIBLE); } } } }); } private void initViews() { stub = findViewById(R.id.stub_no_internet); progressBar = findViewById(R.id.progressBar); progressBar.setVisibility(View.GONE); tv_empty_message = findViewById(R.id.tv_empty_message); swipeToRefresh = findViewById(R.id.swipeToRefresh); swipeToRefresh.setOnRefreshListener( new SwipeRefreshLayout.OnRefreshListener() { @Override public void onRefresh() { swipeToRefresh.setRefreshing(false); mainViewModel.handleForceRefresh(); // getSignalListByInstruments(); // getSignalsLiveData(); } } ); chipGroupInstruments = findViewById(R.id.chipGroupInstruments); } //Handling retry call shows on the screen public void onRetryClick(View view) { stub.setVisibility(View.GONE); mainViewModel.handleForceRefresh(); } private void setUpRecyclerView() { mLayoutManager = new LinearLayoutManager(this); mLayoutManager.setOrientation(RecyclerView.VERTICAL); mSignalsRecView = findViewById(R.id.mRecyclerView); mSignalsRecView.setLayoutManager(mLayoutManager); mSignalsRecView.setItemAnimator(new DefaultItemAnimator()); mSignalListAdapter = new SignalListAdapter( getApplicationContext(), new ArrayList<SignalItem>()); mSignalsRecView.setAdapter(mSignalListAdapter); } private void goToLoginActivity() { startActivity(new Intent(MainActivity.this, LoginActivity.class)); finish(); } private void logOutUser() { MyHelperMethods.logOutUser(this); goToLoginActivity(); } @Override public void onBackPressed() { finish(); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (item.getItemId() == android.R.id.home) { finish(); } else if (id == R.id.action_logout) { logOutUser(); return true; } return super.onOptionsItemSelected(item); } }
package cn.bs.zjzc.util; import android.os.CountDownTimer; import android.view.View; import android.widget.TextView; /** * 取消订单倒计时按钮 * * @author pt-xuejj */ public class OrderCancelTimer extends CountDownTimer { TextView tipText; public OrderCancelTimer(long timeLong, TextView tipText) { super(timeLong, 1000); this.tipText = tipText; } @Override public void onTick(long millisUntilFinished) { // tipText.setEnabled(false); tipText.setText("取消订单(" + (millisUntilFinished / 1000) + "S)"); } @Override public void onFinish() { // tipText.setEnabled(true); // tipText.setText("获取验证码"); tipText.setVisibility(View.GONE); } }
package com.tencent.mm.plugin.backup.g; class a$1 implements Runnable { final /* synthetic */ int bpX; final /* synthetic */ Object gYA; final /* synthetic */ a gYB; a$1(a aVar, int i, Object obj) { this.gYB = aVar; this.bpX = i; this.gYA = obj; } public final void run() { this.gYB.gYz.add(new a$a(this.gYB, this.bpX, this.gYA)); } }
package de.jmda.app.uml.shape.arrow; import de.jmda.app.uml.shape.Front; public class HeadEmptyLeft extends HeadEmpty { // private final static Logger LOGGER = LogManager.getLogger(HeadEmptyUp.class); public HeadEmptyLeft(int size, Front front) { super(size, front); } public HeadEmptyLeft(int size) { this(size, new Front(0,0)); } @Override protected void relocatePoints() { back.get().moveTo(front.get().getX() + (size.get() / 2), front.get().getY()); } }
package com.shivam.spring_aop; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.shivam.spring_aop.service.ShapeService; /** * Hello world! * */ public class App { public static void main( String[] args ) { ApplicationContext context = new ClassPathXmlApplicationContext("spring_data.xml"); ShapeService service = context.getBean("shapeservice_id",ShapeService.class); System.out.println("Name is "+service.getTriangle().getName()); System.out.println("Name is "+service.getCircle().getName()); } }
package application; import javafx.stage.*; import javafx.scene.*; import javafx.scene.layout.*; import javafx.scene.control.*; import javafx.geometry.*; public class query { private static TextField streetInput; private static TextField costInput; private static Button searchButton; public static void display() { Stage window = new Stage(); window.initModality(Modality.APPLICATION_MODAL); window.setTitle("Make Query"); window.setMinWidth(300); window.setMinHeight(300); GridPane grid = new GridPane(); grid.setPadding(new Insets(10, 10, 10, 10)); grid.setVgap(8); grid.setHgap(10); Label name = new Label("Street:"); GridPane.setConstraints(name, 0, 0); streetInput = new TextField(); streetInput.setPromptText("Street Name"); GridPane.setConstraints(streetInput, 1, 0); Label cost = new Label("Cost:"); GridPane.setConstraints(cost, 0, 1); costInput = new TextField(); costInput.setPromptText("Cost Name"); GridPane.setConstraints(costInput, 1, 1); searchButton = new Button("Make Query"); //searchButton.setMinWidth(280); GridPane.setConstraints(searchButton, 1, 2); grid.getChildren().addAll(name, streetInput, cost, costInput, searchButton); Scene scene = new Scene(grid, 300, 350); window.setScene(scene); window.showAndWait(); } }
package com.levi9.taster.core.api; import java.util.List; import com.levi9.taster.commons.model.Builder; import com.levi9.taster.commons.service.CrudService; import com.levi9.taster.core.Answer; import com.levi9.taster.core.Category; import com.levi9.taster.core.Question; /** * Question service interface. * * @author r.horvat */ public interface QuestionService extends CrudService<Question> { /** * Build new question. * * @param content the content * @param category the category * @return the question builder */ QuestionBuilder builder(String content, Category category); static interface QuestionBuilder extends Builder<Question> { QuestionBuilder id(Long id); QuestionBuilder tags(List<String> val); QuestionBuilder answers(List<Answer> val); } /** * Updates all fields of question with provided id. * * @param id of question to update * @param content the content * @param category the category * @param tags list of new tags * @param answers list of answers * @return the updated question */ Question update(Long id, String content, Category category, List<String> tags, List<Answer> answers); /** * Gets all questions belonging to category with provided id. * * @param categoryId the category id * @return list of questions */ List<Question> findQuestionsByCategoryId(Long categoryId); }
package com.fleet.flowable.handler; import com.fleet.flowable.json.R; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.RestControllerAdvice; /** * @author April Han */ @RestControllerAdvice public class GlobalExceptionHandler { private static final Logger logger = LoggerFactory.getLogger(GlobalExceptionHandler.class); /** * 自定义异常处理 * * @param e * @return */ @ExceptionHandler(value = BaseException.class) public R handleBaseException(BaseException e) { return R.error(e.getCode(), e.getMsg()); } /** * 全局异常捕捉处理 * * @return */ @ExceptionHandler(value = Exception.class) public R handleException() { return R.error(); } }
package operationmastercore; import java.util.*; import java.io.Serializable; import de.hybris.platform.util.*; import de.hybris.platform.core.*; import de.hybris.platform.jalo.JaloBusinessException; import de.hybris.platform.jalo.type.*; import de.hybris.platform.persistence.type.*; import de.hybris.platform.persistence.enumeration.*; import de.hybris.platform.persistence.property.PersistenceManager; import de.hybris.platform.persistence.*; /** * Generated by hybris Platform. */ @SuppressWarnings({"cast","unused","boxing","null", "PMD"}) public class GeneratedTypeInitializer extends AbstractTypeInitializer { /** * Generated by hybris Platform. */ public GeneratedTypeInitializer( ManagerEJB manager, Map params ) { super( manager, params ); } /** * Generated by hybris Platform. */ @Override protected void performRemoveObjects( ManagerEJB manager, Map params ) throws JaloBusinessException { // no-op by now } /** * Generated by hybris Platform. */ @Override protected final void performCreateTypes( final ManagerEJB manager, Map params ) throws JaloBusinessException { // performCreateTypes createItemType( "ReconfirmationConfig", "AbstractTravelogixItem", com.cnk.travelogix.datamodel.operation.reconfirmationconfig.jalo.ReconfirmationConfig.class, "de.hybris.platform.persistence.operationmastercore_ReconfirmationConfig", false, null, false ); createItemType( "ReconfirmationInterval", "GenericItem", com.cnk.travelogix.datamodel.operation.reconfirmationinterval.jalo.ReconfirmationInterval.class, "de.hybris.platform.persistence.operationmastercore_ReconfirmationInterval", false, null, false ); createItemType( "ClientReconfirmationConfig", "GenericItem", com.cnk.travelogix.datamodel.operation.clientreconfirmationconfig.jalo.ClientReconfirmationConfig.class, "de.hybris.platform.persistence.operationmastercore_ClientReconfirmationConfig", false, null, false ); createItemType( "SupplierReconfirmationConfig", "GenericItem", com.cnk.travelogix.datamodel.operation.supplierreconfirmationconfig.jalo.SupplierReconfirmationConfig.class, "de.hybris.platform.persistence.operationmastercore_SupplierReconfirmationConfig", false, null, false ); createItemType( "ReconfirmationTravelDestination", "GenericItem", com.cnk.travelogix.datamodel.operation.reconfirmationtraveldestination.jalo.ReconfirmationTravelDestination.class, "de.hybris.platform.persistence.operationmastercore_ReconfirmationTravelDestination", false, null, false ); createItemType( "ToDoListComponent", "SimpleCMSComponent", com.cnk.travelogix.datamodel.operation.components.jalo.ToDoListComponent.class, null, false, null, false ); createItemType( "ToDoDetailComponent", "SimpleCMSComponent", com.cnk.travelogix.datamodel.operation.components.jalo.ToDoDetailComponent.class, null, false, null, false ); createItemType( "TimeLimitBookingProcess", "StoreFrontCustomerProcess", com.cnk.travelogix.datamodel.model.operation.process.TimeLimitBookingProcess.class, null, false, null, false ); createItemType( "ServiceOrder", "GenericItem", com.cnk.travelogix.operation.serviceorder.jalo.ServiceOrder.class, "de.hybris.platform.persistence.operationmastercore_ServiceOrder", false, null, false ); createItemType( "SupplierLiability", "GenericItem", com.cnk.travelogix.operation.serviceorder.jalo.SupplierLiability.class, "de.hybris.platform.persistence.operationmastercore_SupplierLiability", false, null, false ); createItemType( "SupplierInvoice", "GenericItem", com.cnk.travelogix.operation.serviceorder.jalo.SupplierInvoice.class, "de.hybris.platform.persistence.operationmastercore_SupplierInvoice", false, null, false ); createItemType( "PaymentAdvice", "GenericItem", com.cnk.travelogix.operation.serviceorder.jalo.PaymentAdvice.class, "de.hybris.platform.persistence.operationmastercore_PaymentAdvice", false, null, false ); createItemType( "PaymentDetails", "GenericItem", com.cnk.travelogix.operation.serviceorder.jalo.PaymentDetails.class, "de.hybris.platform.persistence.operationmastercore_PaymentDetails", false, null, false ); createItemType( "TDSMaster", "AbstractTravelogixItem", com.cnk.travelogix.operation.tds.jalo.TDSMaster.class, "de.hybris.platform.persistence.operationmastercore_TDSMaster", false, null, false ); createItemType( "TDSCompanyType", "GenericItem", com.cnk.travelogix.operation.tds.jalo.TDSCompanyType.class, "de.hybris.platform.persistence.operationmastercore_TDSCompanyType", false, null, false ); createItemType( "TDSTaxComponent", "GenericItem", com.cnk.travelogix.operation.tds.jalo.TDSTaxComponent.class, "de.hybris.platform.persistence.operationmastercore_TDSTaxComponent", false, null, false ); createItemType( "AbstractTDSRule", "GenericItem", com.cnk.travelogix.operation.tds.jalo.AbstractTDSRule.class, "de.hybris.platform.persistence.operationmastercore_AbstractTDSRule", false, null, false ); createItemType( "SupplierTDSRule", "AbstractTDSRule", com.cnk.travelogix.operation.tds.jalo.SupplierTDSRule.class, null, false, null, false ); createItemType( "ClientTDSRule", "AbstractTDSRule", com.cnk.travelogix.operation.tds.jalo.ClientTDSRule.class, null, false, null, false ); createItemType( "TDSExemption", "GenericItem", com.cnk.travelogix.operation.tds.jalo.TDSExemption.class, "de.hybris.platform.persistence.operationmastercore_TDSExemption", false, null, false ); createRelationType( "ReconfirmationConfig2ClientReconfirmationConfigREL", null, true ); createRelationType( "ReconfirmationConfig2SupplierReconfirmationConfigREL", null, true ); createRelationType( "ReconfirmationConfig2ReconfirmationIntervalREL", null, true ); createRelationType( "ReconfirmationConfig2ReconfirmationTravelDestinationREL", null, true ); createRelationType( "Order2DocumentSettingREL", "de.hybris.platform.persistence.link.operationmastercore_Order2DocumentSettingREL", false ); createRelationType( "TDSMaster2TDSTaxComponentREL", null, true ); createRelationType( "TDSMaster2AbstractTDSRuleREL", null, true ); createRelationType( "TDSMaster2TDSExemptionREL", null, true ); createRelationType( "TDSMaster2TDSCompanyTypeREL", "de.hybris.platform.persistence.link.operationmastercore_TDSMaster2TDSCompanyTypeREL", false ); createRelationType( "SupplierInvoice2ServiceOrderREL", null, true ); createRelationType( "PaymentAdvice2ServiceOrderREL", null, true ); createEnumerationType( "DocumentStatus", null ); createEnumerationType( "ServiceOrderStatus", null ); createEnumerationType( "SupplierLiabilityStatus", null ); createEnumerationType( "ServiceOrderPaymentStatus", null ); createEnumerationType( "ServiceOrderType", null ); createEnumerationType( "SupplierLiabilityType", null ); createEnumerationType( "TDSApprovalStatus", null ); createEnumerationType( "TDSTaxElement", null ); createEnumerationType( "PaymentAdviceStatus", null ); createCollectionType( "RoleList", "Role", CollectionType.LIST ); createCollectionType( "TDSTaxElementList", "TDSTaxElement", CollectionType.SET ); } /** * Generated by hybris Platform. */ @Override protected final void performModifyTypes( final ManagerEJB manager, Map params ) throws JaloBusinessException { // performModifyTypes single_createattr_ReconfirmationConfig_product(); single_createattr_ReconfirmationConfig_productCategorySubType(); single_createattr_ReconfirmationConfig_productCategory(); single_createattr_ReconfirmationConfig_effectiveFrom(); single_createattr_ReconfirmationInterval_reconfirmationCutOff(); single_createattr_ReconfirmationInterval_cutoff(); single_createattr_ReconfirmationInterval_cutOffDaysOrHours(); single_createattr_ClientReconfirmationConfig_code(); single_createattr_ClientReconfirmationConfig_client(); single_createattr_ClientReconfirmationConfig_reconfirmationTo(); single_createattr_ClientReconfirmationConfig_clientReconfirmationInterval(); single_createattr_SupplierReconfirmationConfig_code(); single_createattr_SupplierReconfirmationConfig_supplier(); single_createattr_SupplierReconfirmationConfig_reconfirmationTo(); single_createattr_SupplierReconfirmationConfig_supplierReconfirmationInterval(); single_createattr_ReconfirmationTravelDestination_inclusion(); single_createattr_ReconfirmationTravelDestination_continent(); single_createattr_ReconfirmationTravelDestination_country(); single_createattr_ReconfirmationTravelDestination_city(); single_createattr_Employee_contactEmail(); single_createattr_Employee_firstName(); single_createattr_Employee_middleName(); single_createattr_Employee_lastName(); single_createattr_Employee_mobileNumber(); single_createattr_Employee_designation(); single_createattr_Employee_functionalRole(); single_createattr_Employee_reportingManager(); single_createattr_Employee_isManager(); single_createattr_Employee_secondaryUser(); single_createattr_Employee_roles(); single_createattr_Order_docReceivedDate(); single_createattr_Order_docStatus(); single_createattr_Order_remarks(); single_createattr_Order_timeLimitMasterConfig(); single_createattr_Order_tempTimeLimit(); single_createattr_Order_financialControlId(); single_createattr_SavedQuery_employee(); single_createattr_TimeLimitBookingProcess_order(); single_createattr_ServiceOrder_code(); single_createattr_ServiceOrder_type(); single_createattr_ServiceOrder_fso(); single_createattr_ServiceOrder_versionNumber(); single_createattr_ServiceOrder_serviceOrderStatus(); single_createattr_ServiceOrder_currency(); single_createattr_ServiceOrder_travelCompletionDate(); single_createattr_ServiceOrder_pricingDetails(); single_createattr_ServiceOrder_paymentStatus(); single_createattr_ServiceOrder_orderEntry(); single_createattr_ServiceOrder_active(); single_createattr_SupplierLiability_code(); single_createattr_SupplierLiability_type(); single_createattr_SupplierLiability_fsl(); single_createattr_SupplierLiability_supplierLiabilityStatus(); single_createattr_SupplierLiability_serviceOrder(); single_createattr_AbstractOrderEntry_latestServiceOrder(); single_createattr_SupplierInvoice_invoiceNumber(); single_createattr_SupplierInvoice_invoiceDate(); single_createattr_SupplierInvoice_invoiceReceivedDate(); single_createattr_SupplierInvoice_totalCost(); single_createattr_SupplierInvoice_totalCommission(); single_createattr_SupplierInvoice_currency(); single_createattr_SupplierInvoice_serviceOrderAmount(); single_createattr_SupplierInvoice_netPayable(); single_createattr_SupplierInvoice_paymentDueDate(); single_createattr_SupplierInvoice_upload(); single_createattr_PaymentAdvice_paymentAdviceNumber(); single_createattr_PaymentAdvice_paymentAdviceStatus(); single_createattr_PaymentAdvice_netPayable(); single_createattr_PaymentAdvice_amountPayable(); single_createattr_PaymentAdvice_balanceAmountPayable(); single_createattr_PaymentAdvice_amountTobePaid(); single_createattr_PaymentAdvice_modeOfPayment(); single_createattr_PaymentDetails_paymentAdvice(); single_createattr_PaymentDetails_remittanceCurrency(); single_createattr_PaymentDetails_roe(); single_createattr_PaymentDetails_amountToBeRemitted(); single_createattr_PaymentDetails_remittanceCharges(); single_createattr_PaymentDetails_totalAmountToBeRemitted(); single_createattr_PaymentDetails_paymentTypeInfo(); single_createattr_PaymentDetails_paymentReferenceNumber(); single_createattr_PaymentDetails_sapReferenceNumber(); single_createattr_PaymentDetails_dateOfPayment(); single_createattr_PaymentDetails_remarks(); single_createattr_TDSMaster_company(); single_createattr_TDSMaster_tdsType(); single_createattr_TDSMaster_tdsTypeDescription(); single_createattr_TDSMaster_startDate(); single_createattr_TDSMaster_endDate(); single_createattr_TDSCompanyType_code(); single_createattr_TDSCompanyType_value(); single_createattr_TDSTaxComponent_taxElement(); single_createattr_TDSTaxComponent_percentage(); single_createattr_TDSTaxComponent_taxElementList(); single_createattr_AbstractTDSRule_code(); single_createattr_AbstractTDSRule_country(); single_createattr_AbstractTDSRule_isIncluded(); single_createattr_SupplierTDSRule_supplier(); single_createattr_SupplierTDSRule_category(); single_createattr_SupplierTDSRule_subCategory(); single_createattr_SupplierTDSRule_product(); single_createattr_ClientTDSRule_client(); single_createattr_ClientTDSRule_commercialHead(); single_createattr_TDSExemption_customerId(); single_createattr_TDSExemption_customerName(); single_createattr_TDSExemption_percentage(); single_createattr_TDSExemption_threshold(); single_createattr_TDSExemption_cappingAmount(); single_createattr_TDSExemption_exemptionCertificateHash(); single_createattr_TDSExemption_exemptionCertificate(); single_createattr_TDSExemption_certificateValidFrom(); single_createattr_TDSExemption_certificateValidTo(); single_createattr_TDSExemption_certificateDescription(); single_createattr_TravelogixPaymentReceipt_client(); createRelationAttributes( "ReconfirmationConfig2ClientReconfirmationConfigREL", false, "reconfirmationconfig", "ReconfirmationConfig", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, false, false, CollectionType.COLLECTION, "clientreconfirmationconfigs", "ClientReconfirmationConfig", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false, CollectionType.COLLECTION ); createRelationAttributes( "ReconfirmationConfig2SupplierReconfirmationConfigREL", false, "reconfirmationconfig", "ReconfirmationConfig", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, false, false, CollectionType.COLLECTION, "supplierreconfirmationconfigs", "SupplierReconfirmationConfig", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false, CollectionType.COLLECTION ); createRelationAttributes( "ReconfirmationConfig2ReconfirmationIntervalREL", false, "reconfirmationconfig", "ReconfirmationConfig", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, false, false, CollectionType.COLLECTION, "reconfirmationintervals", "ReconfirmationInterval", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false, CollectionType.COLLECTION ); createRelationAttributes( "ReconfirmationConfig2ReconfirmationTravelDestinationREL", false, "reconfirmationconfig", "ReconfirmationConfig", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, false, false, CollectionType.COLLECTION, "reconfirmationtraveldestinations", "ReconfirmationTravelDestination", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false, CollectionType.COLLECTION ); createRelationAttributes( "Order2DocumentSettingREL", false, "order", "Order", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false, CollectionType.COLLECTION, "documentSettings", "DocumentSetting", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false, CollectionType.COLLECTION ); createRelationAttributes( "TDSMaster2TDSTaxComponentREL", false, "tdsMaster", "TDSMaster", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, false, false, CollectionType.COLLECTION, "taxComponents", "TDSTaxComponent", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false, CollectionType.LIST ); createRelationAttributes( "TDSMaster2AbstractTDSRuleREL", false, "tdsMaster", "TDSMaster", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, false, false, CollectionType.COLLECTION, "tdsRules", "AbstractTDSRule", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false, CollectionType.COLLECTION ); createRelationAttributes( "TDSMaster2TDSExemptionREL", false, "tdsMaster", "TDSMaster", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, false, false, CollectionType.COLLECTION, "tdsExemptions", "TDSExemption", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false, CollectionType.COLLECTION ); createRelationAttributes( "TDSMaster2TDSCompanyTypeREL", false, "tdsMasters", "TDSMaster", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false, CollectionType.COLLECTION, "tdsCompanyTypes", "TDSCompanyType", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false, CollectionType.COLLECTION ); createRelationAttributes( "SupplierInvoice2ServiceOrderREL", false, "supplierInvoice", "SupplierInvoice", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, false, false, CollectionType.COLLECTION, "serviceOrder", "ServiceOrder", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false, CollectionType.COLLECTION ); createRelationAttributes( "PaymentAdvice2ServiceOrderREL", false, "paymentAdvice", "PaymentAdvice", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, false, false, CollectionType.COLLECTION, "serviceOrder", "ServiceOrder", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false, CollectionType.COLLECTION ); } public void single_createattr_ReconfirmationConfig_product() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ReconfirmationConfig", "product", null, "Product", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ReconfirmationConfig_productCategorySubType() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ReconfirmationConfig", "productCategorySubType", null, "ProductCategorySubType", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ReconfirmationConfig_productCategory() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ReconfirmationConfig", "productCategory", null, "Category", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ReconfirmationConfig_effectiveFrom() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ReconfirmationConfig", "effectiveFrom", null, "java.util.Date", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ReconfirmationInterval_reconfirmationCutOff() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ReconfirmationInterval", "reconfirmationCutOff", null, "ReconfirmationCutOffType", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ReconfirmationInterval_cutoff() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ReconfirmationInterval", "cutoff", null, "localized:java.lang.Integer", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ReconfirmationInterval_cutOffDaysOrHours() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ReconfirmationInterval", "cutOffDaysOrHours", null, "CutOffDaysAndHours", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ClientReconfirmationConfig_code() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ClientReconfirmationConfig", "code", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ClientReconfirmationConfig_client() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ClientReconfirmationConfig", "client", null, "TravelogixB2BUnit", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ClientReconfirmationConfig_reconfirmationTo() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ClientReconfirmationConfig", "reconfirmationTo", null, "ReconfirmationToBeSentToType", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ClientReconfirmationConfig_clientReconfirmationInterval() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ClientReconfirmationConfig", "clientReconfirmationInterval", null, "ReconfirmationInterval", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierReconfirmationConfig_code() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierReconfirmationConfig", "code", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierReconfirmationConfig_supplier() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierReconfirmationConfig", "supplier", null, "Supplier", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierReconfirmationConfig_reconfirmationTo() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierReconfirmationConfig", "reconfirmationTo", null, "ReconfirmationToBeSentToType", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierReconfirmationConfig_supplierReconfirmationInterval() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierReconfirmationConfig", "supplierReconfirmationInterval", null, "ReconfirmationInterval", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ReconfirmationTravelDestination_inclusion() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ReconfirmationTravelDestination", "inclusion", null, "java.lang.Boolean", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ReconfirmationTravelDestination_continent() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ReconfirmationTravelDestination", "continent", null, "Continent", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ReconfirmationTravelDestination_country() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ReconfirmationTravelDestination", "country", null, "Country", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ReconfirmationTravelDestination_city() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ReconfirmationTravelDestination", "city", null, "City", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Employee_contactEmail() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Employee", "contactEmail", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Employee_firstName() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Employee", "firstName", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Employee_middleName() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Employee", "middleName", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Employee_lastName() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Employee", "lastName", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Employee_mobileNumber() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Employee", "mobileNumber", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Employee_designation() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Employee", "designation", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Employee_functionalRole() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Employee", "functionalRole", null, "Role", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Employee_reportingManager() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Employee", "reportingManager", null, "Employee", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Employee_isManager() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Employee", "isManager", null, "java.lang.Boolean", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Employee_secondaryUser() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Employee", "secondaryUser", null, "Employee", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Employee_roles() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Employee", "roles", null, "RoleList", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Order_docReceivedDate() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Order", "docReceivedDate", null, "java.util.Date", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Order_docStatus() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Order", "docStatus", null, "DocumentStatus", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Order_remarks() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Order", "remarks", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Order_timeLimitMasterConfig() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Order", "timeLimitMasterConfig", null, "TimeLimitMasterConfig", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Order_tempTimeLimit() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Order", "tempTimeLimit", null, "java.util.Date", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_Order_financialControlId() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Order", "financialControlId", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SavedQuery_employee() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SavedQuery", "employee", null, "Employee", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TimeLimitBookingProcess_order() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TimeLimitBookingProcess", "order", null, "Order", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ServiceOrder_code() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ServiceOrder", "code", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ServiceOrder_type() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ServiceOrder", "type", null, "ServiceOrderType", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ServiceOrder_fso() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ServiceOrder", "fso", null, "ServiceOrder", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ServiceOrder_versionNumber() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ServiceOrder", "versionNumber", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ServiceOrder_serviceOrderStatus() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ServiceOrder", "serviceOrderStatus", null, "ServiceOrderStatus", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ServiceOrder_currency() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ServiceOrder", "currency", null, "Currency", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ServiceOrder_travelCompletionDate() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ServiceOrder", "travelCompletionDate", null, "java.util.Date", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ServiceOrder_pricingDetails() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ServiceOrder", "pricingDetails", null, "SupplierPriceDetails", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ServiceOrder_paymentStatus() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ServiceOrder", "paymentStatus", null, "ServiceOrderPaymentStatus", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ServiceOrder_orderEntry() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ServiceOrder", "orderEntry", null, "AbstractOrderEntry", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ServiceOrder_active() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ServiceOrder", "active", null, "java.lang.Boolean", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierLiability_code() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierLiability", "code", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierLiability_type() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierLiability", "type", null, "SupplierLiabilityType", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierLiability_fsl() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierLiability", "fsl", null, "SupplierLiability", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierLiability_supplierLiabilityStatus() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierLiability", "supplierLiabilityStatus", null, "SupplierLiabilityStatus", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierLiability_serviceOrder() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierLiability", "serviceOrder", null, "ServiceOrder", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_AbstractOrderEntry_latestServiceOrder() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "AbstractOrderEntry", "latestServiceOrder", null, "ServiceOrder", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierInvoice_invoiceNumber() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierInvoice", "invoiceNumber", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierInvoice_invoiceDate() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierInvoice", "invoiceDate", null, "java.util.Date", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierInvoice_invoiceReceivedDate() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierInvoice", "invoiceReceivedDate", null, "java.util.Date", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierInvoice_totalCost() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierInvoice", "totalCost", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierInvoice_totalCommission() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierInvoice", "totalCommission", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierInvoice_currency() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierInvoice", "currency", null, "Currency", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierInvoice_serviceOrderAmount() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierInvoice", "serviceOrderAmount", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierInvoice_netPayable() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierInvoice", "netPayable", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierInvoice_paymentDueDate() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierInvoice", "paymentDueDate", null, "java.util.Date", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierInvoice_upload() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierInvoice", "upload", null, "Media", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentAdvice_paymentAdviceNumber() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentAdvice", "paymentAdviceNumber", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentAdvice_paymentAdviceStatus() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentAdvice", "paymentAdviceStatus", null, "PaymentAdviceStatus", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentAdvice_netPayable() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentAdvice", "netPayable", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentAdvice_amountPayable() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentAdvice", "amountPayable", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentAdvice_balanceAmountPayable() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentAdvice", "balanceAmountPayable", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentAdvice_amountTobePaid() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentAdvice", "amountTobePaid", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentAdvice_modeOfPayment() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentAdvice", "modeOfPayment", null, "ModeOfPayment", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentDetails_paymentAdvice() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentDetails", "paymentAdvice", null, "PaymentAdvice", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentDetails_remittanceCurrency() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentDetails", "remittanceCurrency", null, "Currency", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentDetails_roe() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentDetails", "roe", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentDetails_amountToBeRemitted() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentDetails", "amountToBeRemitted", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentDetails_remittanceCharges() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentDetails", "remittanceCharges", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentDetails_totalAmountToBeRemitted() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentDetails", "totalAmountToBeRemitted", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentDetails_paymentTypeInfo() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentDetails", "paymentTypeInfo", null, "PaymentInfo", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentDetails_paymentReferenceNumber() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentDetails", "paymentReferenceNumber", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentDetails_sapReferenceNumber() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentDetails", "sapReferenceNumber", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentDetails_dateOfPayment() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentDetails", "dateOfPayment", null, "java.util.Date", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_PaymentDetails_remarks() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "PaymentDetails", "remarks", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSMaster_company() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSMaster", "company", null, "Company", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSMaster_tdsType() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSMaster", "tdsType", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSMaster_tdsTypeDescription() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSMaster", "tdsTypeDescription", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSMaster_startDate() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSMaster", "startDate", null, "java.util.Date", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSMaster_endDate() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSMaster", "endDate", null, "java.util.Date", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSCompanyType_code() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSCompanyType", "code", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSCompanyType_value() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSCompanyType", "value", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSTaxComponent_taxElement() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSTaxComponent", "taxElement", null, "TDSTaxElement", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSTaxComponent_percentage() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSTaxComponent", "percentage", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSTaxComponent_taxElementList() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSTaxComponent", "taxElementList", null, "TDSTaxElementList", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_AbstractTDSRule_code() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "AbstractTDSRule", "code", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_AbstractTDSRule_country() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "AbstractTDSRule", "country", null, "Country", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_AbstractTDSRule_isIncluded() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "AbstractTDSRule", "isIncluded", null, "java.lang.Boolean", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierTDSRule_supplier() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierTDSRule", "supplier", null, "Supplier", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierTDSRule_category() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierTDSRule", "category", null, "Category", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierTDSRule_subCategory() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierTDSRule", "subCategory", null, "ProductCategorySubType", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_SupplierTDSRule_product() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "SupplierTDSRule", "product", null, "Product", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ClientTDSRule_client() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ClientTDSRule", "client", null, "Customer", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_ClientTDSRule_commercialHead() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ClientTDSRule", "commercialHead", null, "CommercialHead", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSExemption_customerId() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSExemption", "customerId", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSExemption_customerName() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSExemption", "customerName", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSExemption_percentage() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSExemption", "percentage", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSExemption_threshold() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSExemption", "threshold", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSExemption_cappingAmount() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSExemption", "cappingAmount", null, "java.lang.Double", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSExemption_exemptionCertificateHash() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSExemption", "exemptionCertificateHash", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSExemption_exemptionCertificate() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSExemption", "exemptionCertificate", null, "Media", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSExemption_certificateValidFrom() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSExemption", "certificateValidFrom", null, "java.util.Date", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSExemption_certificateValidTo() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSExemption", "certificateValidTo", null, "java.util.Date", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TDSExemption_certificateDescription() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TDSExemption", "certificateDescription", null, "java.lang.String", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_TravelogixPaymentReceipt_client() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TravelogixPaymentReceipt", "client", null, "TravelogixB2BUnit", de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } /** * Generated by hybris Platform. */ @Override protected final void performCreateObjects( final ManagerEJB manager, Map params ) throws JaloBusinessException { // performCreateObjects createEnumerationValues( "DocumentStatus", true, Arrays.asList( new String[] { "PENDING", "PENDING_VERIFICATION", "REJECTED", "VERIFIED", "PENDING_APPROVAL", "GENERATED" } ) ); createEnumerationValues( "ServiceOrderStatus", true, Arrays.asList( new String[] { "PSO_GENERATED", "PSO_CANCELLED", "FSO_GENERATED", "FSO_NOT_GENERATED", "FSO_CANCELLED", "BILL_PASSING_PENDING" } ) ); createEnumerationValues( "SupplierLiabilityStatus", true, Arrays.asList( new String[] { "PSL_GENERATED", "PSL_CANCELLED", "FSL_GENERATED", "FSL_NOT_GENERATED", "FSL_CANCELLED", "BILL_PASSING_PENDING" } ) ); createEnumerationValues( "ServiceOrderPaymentStatus", true, Arrays.asList( new String[] { "PENDING", "PARTIALLY_PAID", "FULLY_PAID", "SETTLED", "FULLY_SETTLED", "PARTIALLY_SETTLED", "UNSETTLED", "SETTLED_AGAINST_DEPOSIT", "PARTIALLY_SETTLED_AGAINST_DEPOSIT" } ) ); createEnumerationValues( "ServiceOrderType", false, Arrays.asList( new String[] { "PSO", "FSO" } ) ); createEnumerationValues( "SupplierLiabilityType", false, Arrays.asList( new String[] { "PSL", "FSL" } ) ); createEnumerationValues( "TDSApprovalStatus", true, Arrays.asList( new String[] { "NOT_SUBMITTED", "PENDING_FOR_APPROVAL", "REJECTED", "APPROVED" } ) ); createEnumerationValues( "TDSTaxElement", true, Arrays.asList( new String[] { "AMOUNT", "MAIN_TDS", "EDU_CESS", "HI_EDU_CESS", "SURCHARGE" } ) ); createEnumerationValues( "PaymentAdviceStatus", false, Arrays.asList( new String[] { "PENDING" } ) ); single_setRelAttributeProperties_ReconfirmationConfig2ClientReconfirmationConfigREL_source(); single_setRelAttributeProperties_ReconfirmationConfig2SupplierReconfirmationConfigREL_source(); single_setRelAttributeProperties_ReconfirmationConfig2ReconfirmationIntervalREL_source(); single_setRelAttributeProperties_ReconfirmationConfig2ReconfirmationTravelDestinationREL_source(); single_setRelAttributeProperties_Order2DocumentSettingREL_source(); single_setRelAttributeProperties_TDSMaster2TDSTaxComponentREL_source(); single_setRelAttributeProperties_TDSMaster2AbstractTDSRuleREL_source(); single_setRelAttributeProperties_TDSMaster2TDSExemptionREL_source(); single_setRelAttributeProperties_TDSMaster2TDSCompanyTypeREL_source(); single_setRelAttributeProperties_SupplierInvoice2ServiceOrderREL_source(); single_setRelAttributeProperties_PaymentAdvice2ServiceOrderREL_source(); single_setRelAttributeProperties_ReconfirmationConfig2ClientReconfirmationConfigREL_target(); single_setRelAttributeProperties_ReconfirmationConfig2SupplierReconfirmationConfigREL_target(); single_setRelAttributeProperties_ReconfirmationConfig2ReconfirmationIntervalREL_target(); single_setRelAttributeProperties_ReconfirmationConfig2ReconfirmationTravelDestinationREL_target(); single_setRelAttributeProperties_Order2DocumentSettingREL_target(); single_setRelAttributeProperties_TDSMaster2TDSTaxComponentREL_target(); single_setRelAttributeProperties_TDSMaster2AbstractTDSRuleREL_target(); single_setRelAttributeProperties_TDSMaster2TDSExemptionREL_target(); single_setRelAttributeProperties_TDSMaster2TDSCompanyTypeREL_target(); single_setRelAttributeProperties_SupplierInvoice2ServiceOrderREL_target(); single_setRelAttributeProperties_PaymentAdvice2ServiceOrderREL_target(); connectRelation( "ReconfirmationConfig2ClientReconfirmationConfigREL", false, "reconfirmationconfig", "ReconfirmationConfig", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, "clientreconfirmationconfigs", "ClientReconfirmationConfig", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false ); connectRelation( "ReconfirmationConfig2SupplierReconfirmationConfigREL", false, "reconfirmationconfig", "ReconfirmationConfig", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, "supplierreconfirmationconfigs", "SupplierReconfirmationConfig", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false ); connectRelation( "ReconfirmationConfig2ReconfirmationIntervalREL", false, "reconfirmationconfig", "ReconfirmationConfig", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, "reconfirmationintervals", "ReconfirmationInterval", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false ); connectRelation( "ReconfirmationConfig2ReconfirmationTravelDestinationREL", false, "reconfirmationconfig", "ReconfirmationConfig", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, "reconfirmationtraveldestinations", "ReconfirmationTravelDestination", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false ); connectRelation( "Order2DocumentSettingREL", false, "order", "Order", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, "documentSettings", "DocumentSetting", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false ); connectRelation( "TDSMaster2TDSTaxComponentREL", false, "tdsMaster", "TDSMaster", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, "taxComponents", "TDSTaxComponent", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false ); connectRelation( "TDSMaster2AbstractTDSRuleREL", false, "tdsMaster", "TDSMaster", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, "tdsRules", "AbstractTDSRule", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false ); connectRelation( "TDSMaster2TDSExemptionREL", false, "tdsMaster", "TDSMaster", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, "tdsExemptions", "TDSExemption", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false ); connectRelation( "TDSMaster2TDSCompanyTypeREL", false, "tdsMasters", "TDSMaster", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, "tdsCompanyTypes", "TDSCompanyType", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false ); connectRelation( "SupplierInvoice2ServiceOrderREL", false, "supplierInvoice", "SupplierInvoice", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, "serviceOrder", "ServiceOrder", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false ); connectRelation( "PaymentAdvice2ServiceOrderREL", false, "paymentAdvice", "PaymentAdvice", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, "serviceOrder", "ServiceOrder", true, de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false ); { Map customPropsMap = new HashMap(); setItemTypeProperties( "ReconfirmationConfig", false, true, true, null, customPropsMap ); } single_setAttributeProperties_ReconfirmationConfig_product(); single_setAttributeProperties_ReconfirmationConfig_productCategorySubType(); single_setAttributeProperties_ReconfirmationConfig_productCategory(); single_setAttributeProperties_ReconfirmationConfig_effectiveFrom(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "ReconfirmationInterval", false, true, true, null, customPropsMap ); } single_setAttributeProperties_ReconfirmationInterval_reconfirmationCutOff(); single_setAttributeProperties_ReconfirmationInterval_cutoff(); single_setAttributeProperties_ReconfirmationInterval_cutOffDaysOrHours(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "ClientReconfirmationConfig", false, true, true, null, customPropsMap ); } single_setAttributeProperties_ClientReconfirmationConfig_code(); single_setAttributeProperties_ClientReconfirmationConfig_client(); single_setAttributeProperties_ClientReconfirmationConfig_reconfirmationTo(); single_setAttributeProperties_ClientReconfirmationConfig_clientReconfirmationInterval(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "SupplierReconfirmationConfig", false, true, true, null, customPropsMap ); } single_setAttributeProperties_SupplierReconfirmationConfig_code(); single_setAttributeProperties_SupplierReconfirmationConfig_supplier(); single_setAttributeProperties_SupplierReconfirmationConfig_reconfirmationTo(); single_setAttributeProperties_SupplierReconfirmationConfig_supplierReconfirmationInterval(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "ReconfirmationTravelDestination", false, true, true, null, customPropsMap ); } single_setAttributeProperties_ReconfirmationTravelDestination_inclusion(); single_setAttributeProperties_ReconfirmationTravelDestination_continent(); single_setAttributeProperties_ReconfirmationTravelDestination_country(); single_setAttributeProperties_ReconfirmationTravelDestination_city(); { Map customPropsMap = new HashMap(); changeMetaType( "Employee", null, customPropsMap ); } single_setAttributeProperties_Employee_contactEmail(); single_setAttributeProperties_Employee_firstName(); single_setAttributeProperties_Employee_middleName(); single_setAttributeProperties_Employee_lastName(); single_setAttributeProperties_Employee_mobileNumber(); single_setAttributeProperties_Employee_designation(); single_setAttributeProperties_Employee_functionalRole(); single_setAttributeProperties_Employee_reportingManager(); single_setAttributeProperties_Employee_isManager(); single_setAttributeProperties_Employee_secondaryUser(); single_setAttributeProperties_Employee_roles(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "ToDoListComponent", false, true, true, null, customPropsMap ); } { Map customPropsMap = new HashMap(); setItemTypeProperties( "ToDoDetailComponent", false, true, true, null, customPropsMap ); } { Map customPropsMap = new HashMap(); changeMetaType( "Order", null, customPropsMap ); } single_setAttributeProperties_Order_docReceivedDate(); single_setAttributeProperties_Order_docStatus(); single_setAttributeProperties_Order_remarks(); single_setAttributeProperties_Order_timeLimitMasterConfig(); single_setAttributeProperties_Order_tempTimeLimit(); single_setAttributeProperties_Order_financialControlId(); { Map customPropsMap = new HashMap(); changeMetaType( "SavedQuery", null, customPropsMap ); } single_setAttributeProperties_SavedQuery_employee(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "TimeLimitBookingProcess", false, true, true, null, customPropsMap ); } single_setAttributeProperties_TimeLimitBookingProcess_order(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "ServiceOrder", false, true, true, null, customPropsMap ); } single_setAttributeProperties_ServiceOrder_code(); single_setAttributeProperties_ServiceOrder_type(); single_setAttributeProperties_ServiceOrder_fso(); single_setAttributeProperties_ServiceOrder_versionNumber(); single_setAttributeProperties_ServiceOrder_serviceOrderStatus(); single_setAttributeProperties_ServiceOrder_currency(); single_setAttributeProperties_ServiceOrder_travelCompletionDate(); single_setAttributeProperties_ServiceOrder_pricingDetails(); single_setAttributeProperties_ServiceOrder_paymentStatus(); single_setAttributeProperties_ServiceOrder_orderEntry(); single_setAttributeProperties_ServiceOrder_active(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "SupplierLiability", false, true, true, null, customPropsMap ); } single_setAttributeProperties_SupplierLiability_code(); single_setAttributeProperties_SupplierLiability_type(); single_setAttributeProperties_SupplierLiability_fsl(); single_setAttributeProperties_SupplierLiability_supplierLiabilityStatus(); single_setAttributeProperties_SupplierLiability_serviceOrder(); { Map customPropsMap = new HashMap(); changeMetaType( "AbstractOrderEntry", null, customPropsMap ); } single_setAttributeProperties_AbstractOrderEntry_latestServiceOrder(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "SupplierInvoice", false, true, true, null, customPropsMap ); } single_setAttributeProperties_SupplierInvoice_invoiceNumber(); single_setAttributeProperties_SupplierInvoice_invoiceDate(); single_setAttributeProperties_SupplierInvoice_invoiceReceivedDate(); single_setAttributeProperties_SupplierInvoice_totalCost(); single_setAttributeProperties_SupplierInvoice_totalCommission(); single_setAttributeProperties_SupplierInvoice_currency(); single_setAttributeProperties_SupplierInvoice_serviceOrderAmount(); single_setAttributeProperties_SupplierInvoice_netPayable(); single_setAttributeProperties_SupplierInvoice_paymentDueDate(); single_setAttributeProperties_SupplierInvoice_upload(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "PaymentAdvice", false, true, true, null, customPropsMap ); } single_setAttributeProperties_PaymentAdvice_paymentAdviceNumber(); single_setAttributeProperties_PaymentAdvice_paymentAdviceStatus(); single_setAttributeProperties_PaymentAdvice_netPayable(); single_setAttributeProperties_PaymentAdvice_amountPayable(); single_setAttributeProperties_PaymentAdvice_balanceAmountPayable(); single_setAttributeProperties_PaymentAdvice_amountTobePaid(); single_setAttributeProperties_PaymentAdvice_modeOfPayment(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "PaymentDetails", false, true, true, null, customPropsMap ); } single_setAttributeProperties_PaymentDetails_paymentAdvice(); single_setAttributeProperties_PaymentDetails_remittanceCurrency(); single_setAttributeProperties_PaymentDetails_roe(); single_setAttributeProperties_PaymentDetails_amountToBeRemitted(); single_setAttributeProperties_PaymentDetails_remittanceCharges(); single_setAttributeProperties_PaymentDetails_totalAmountToBeRemitted(); single_setAttributeProperties_PaymentDetails_paymentTypeInfo(); single_setAttributeProperties_PaymentDetails_paymentReferenceNumber(); single_setAttributeProperties_PaymentDetails_sapReferenceNumber(); single_setAttributeProperties_PaymentDetails_dateOfPayment(); single_setAttributeProperties_PaymentDetails_remarks(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "TDSMaster", false, true, true, null, customPropsMap ); } single_setAttributeProperties_TDSMaster_company(); single_setAttributeProperties_TDSMaster_tdsType(); single_setAttributeProperties_TDSMaster_tdsTypeDescription(); single_setAttributeProperties_TDSMaster_startDate(); single_setAttributeProperties_TDSMaster_endDate(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "TDSCompanyType", false, true, true, null, customPropsMap ); } single_setAttributeProperties_TDSCompanyType_code(); single_setAttributeProperties_TDSCompanyType_value(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "TDSTaxComponent", false, true, true, null, customPropsMap ); } single_setAttributeProperties_TDSTaxComponent_taxElement(); single_setAttributeProperties_TDSTaxComponent_percentage(); single_setAttributeProperties_TDSTaxComponent_taxElementList(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "AbstractTDSRule", false, true, true, null, customPropsMap ); } single_setAttributeProperties_AbstractTDSRule_code(); single_setAttributeProperties_AbstractTDSRule_country(); single_setAttributeProperties_AbstractTDSRule_isIncluded(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "SupplierTDSRule", false, true, true, null, customPropsMap ); } single_setAttributeProperties_SupplierTDSRule_supplier(); single_setAttributeProperties_SupplierTDSRule_category(); single_setAttributeProperties_SupplierTDSRule_subCategory(); single_setAttributeProperties_SupplierTDSRule_product(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "ClientTDSRule", false, true, true, null, customPropsMap ); } single_setAttributeProperties_ClientTDSRule_client(); single_setAttributeProperties_ClientTDSRule_commercialHead(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "TDSExemption", false, true, true, null, customPropsMap ); } single_setAttributeProperties_TDSExemption_customerId(); single_setAttributeProperties_TDSExemption_customerName(); single_setAttributeProperties_TDSExemption_percentage(); single_setAttributeProperties_TDSExemption_threshold(); single_setAttributeProperties_TDSExemption_cappingAmount(); single_setAttributeProperties_TDSExemption_exemptionCertificateHash(); single_setAttributeProperties_TDSExemption_exemptionCertificate(); single_setAttributeProperties_TDSExemption_certificateValidFrom(); single_setAttributeProperties_TDSExemption_certificateValidTo(); single_setAttributeProperties_TDSExemption_certificateDescription(); { Map customPropsMap = new HashMap(); changeMetaType( "TravelogixPaymentReceipt", null, customPropsMap ); } single_setAttributeProperties_TravelogixPaymentReceipt_client(); setDefaultProperties( "RoleList", true, false, null ); setDefaultProperties( "TDSTaxElementList", true, false, null ); setDefaultProperties( "DocumentStatus", true, true, null ); setDefaultProperties( "ServiceOrderStatus", true, true, null ); setDefaultProperties( "SupplierLiabilityStatus", true, true, null ); setDefaultProperties( "ServiceOrderPaymentStatus", true, true, null ); setDefaultProperties( "ServiceOrderType", true, true, null ); setDefaultProperties( "SupplierLiabilityType", true, true, null ); setDefaultProperties( "TDSApprovalStatus", true, true, null ); setDefaultProperties( "TDSTaxElement", true, true, null ); setDefaultProperties( "PaymentAdviceStatus", true, true, null ); } public void single_setAttributeProperties_ReconfirmationConfig_product() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationConfig", "product", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ReconfirmationConfig_productCategorySubType() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationConfig", "productCategorySubType", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ReconfirmationConfig_productCategory() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationConfig", "productCategory", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ReconfirmationConfig_effectiveFrom() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationConfig", "effectiveFrom", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ReconfirmationInterval_reconfirmationCutOff() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationInterval", "reconfirmationCutOff", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ReconfirmationInterval_cutoff() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationInterval", "cutoff", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ReconfirmationInterval_cutOffDaysOrHours() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationInterval", "cutOffDaysOrHours", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ClientReconfirmationConfig_code() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ClientReconfirmationConfig", "code", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ClientReconfirmationConfig_client() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ClientReconfirmationConfig", "client", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ClientReconfirmationConfig_reconfirmationTo() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ClientReconfirmationConfig", "reconfirmationTo", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ClientReconfirmationConfig_clientReconfirmationInterval() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ClientReconfirmationConfig", "clientReconfirmationInterval", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierReconfirmationConfig_code() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierReconfirmationConfig", "code", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierReconfirmationConfig_supplier() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierReconfirmationConfig", "supplier", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierReconfirmationConfig_reconfirmationTo() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierReconfirmationConfig", "reconfirmationTo", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierReconfirmationConfig_supplierReconfirmationInterval() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierReconfirmationConfig", "supplierReconfirmationInterval", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ReconfirmationTravelDestination_inclusion() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationTravelDestination", "inclusion", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ReconfirmationTravelDestination_continent() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationTravelDestination", "continent", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ReconfirmationTravelDestination_country() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationTravelDestination", "country", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ReconfirmationTravelDestination_city() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationTravelDestination", "city", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Employee_contactEmail() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Employee", "contactEmail", true, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Employee_firstName() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Employee", "firstName", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Employee_middleName() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Employee", "middleName", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Employee_lastName() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Employee", "lastName", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Employee_mobileNumber() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Employee", "mobileNumber", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Employee_designation() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Employee", "designation", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Employee_functionalRole() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Employee", "functionalRole", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Employee_reportingManager() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Employee", "reportingManager", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Employee_isManager() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Employee", "isManager", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Employee_secondaryUser() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Employee", "secondaryUser", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Employee_roles() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Employee", "roles", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Order_docReceivedDate() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Order", "docReceivedDate", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Order_docStatus() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Order", "docStatus", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Order_remarks() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Order", "remarks", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Order_timeLimitMasterConfig() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Order", "timeLimitMasterConfig", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Order_tempTimeLimit() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Order", "tempTimeLimit", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Order_financialControlId() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Order", "financialControlId", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SavedQuery_employee() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SavedQuery", "employee", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TimeLimitBookingProcess_order() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TimeLimitBookingProcess", "order", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ServiceOrder_code() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ServiceOrder", "code", true, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ServiceOrder_type() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ServiceOrder", "type", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ServiceOrder_fso() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ServiceOrder", "fso", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ServiceOrder_versionNumber() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ServiceOrder", "versionNumber", true, Double.valueOf(0.0d), "Double.valueOf(0.0d)", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ServiceOrder_serviceOrderStatus() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ServiceOrder", "serviceOrderStatus", false, em().getEnumerationValue("ServiceOrderStatus","FSO_NOT_GENERATED"), "em().getEnumerationValue(\"ServiceOrderStatus\",\"FSO_NOT_GENERATED\")", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ServiceOrder_currency() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ServiceOrder", "currency", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ServiceOrder_travelCompletionDate() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ServiceOrder", "travelCompletionDate", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ServiceOrder_pricingDetails() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ServiceOrder", "pricingDetails", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ServiceOrder_paymentStatus() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ServiceOrder", "paymentStatus", false, em().getEnumerationValue("ServiceOrderPaymentStatus","PENDING"), "em().getEnumerationValue(\"ServiceOrderPaymentStatus\",\"PENDING\")", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ServiceOrder_orderEntry() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ServiceOrder", "orderEntry", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ServiceOrder_active() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ServiceOrder", "active", false, java.lang.Boolean.FALSE, "java.lang.Boolean.FALSE", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierLiability_code() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierLiability", "code", true, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierLiability_type() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierLiability", "type", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierLiability_fsl() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierLiability", "fsl", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierLiability_supplierLiabilityStatus() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierLiability", "supplierLiabilityStatus", false, em().getEnumerationValue("SupplierLiabilityStatus","FSL_NOT_GENERATED"), "em().getEnumerationValue(\"SupplierLiabilityStatus\",\"FSL_NOT_GENERATED\")", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierLiability_serviceOrder() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierLiability", "serviceOrder", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_AbstractOrderEntry_latestServiceOrder() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "AbstractOrderEntry", "latestServiceOrder", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierInvoice_invoiceNumber() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierInvoice", "invoiceNumber", true, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierInvoice_invoiceDate() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierInvoice", "invoiceDate", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierInvoice_invoiceReceivedDate() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierInvoice", "invoiceReceivedDate", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierInvoice_totalCost() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierInvoice", "totalCost", false, Double.valueOf(0.0d), "Double.valueOf(0.0d)", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierInvoice_totalCommission() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierInvoice", "totalCommission", false, Double.valueOf(0.0d), "Double.valueOf(0.0d)", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierInvoice_currency() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierInvoice", "currency", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierInvoice_serviceOrderAmount() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierInvoice", "serviceOrderAmount", false, Double.valueOf(0.0d), "Double.valueOf(0.0d)", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierInvoice_netPayable() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierInvoice", "netPayable", false, Double.valueOf(0.0d), "Double.valueOf(0.0d)", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierInvoice_paymentDueDate() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierInvoice", "paymentDueDate", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierInvoice_upload() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierInvoice", "upload", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentAdvice_paymentAdviceNumber() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentAdvice", "paymentAdviceNumber", true, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentAdvice_paymentAdviceStatus() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentAdvice", "paymentAdviceStatus", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentAdvice_netPayable() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentAdvice", "netPayable", false, Double.valueOf(0.0d), "Double.valueOf(0.0d)", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentAdvice_amountPayable() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentAdvice", "amountPayable", false, Double.valueOf(0.0d), "Double.valueOf(0.0d)", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentAdvice_balanceAmountPayable() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentAdvice", "balanceAmountPayable", false, Double.valueOf(0.0d), "Double.valueOf(0.0d)", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentAdvice_amountTobePaid() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentAdvice", "amountTobePaid", false, Double.valueOf(0.0d), "Double.valueOf(0.0d)", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentAdvice_modeOfPayment() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentAdvice", "modeOfPayment", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentDetails_paymentAdvice() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentDetails", "paymentAdvice", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentDetails_remittanceCurrency() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentDetails", "remittanceCurrency", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentDetails_roe() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentDetails", "roe", false, Double.valueOf(0.0d), "Double.valueOf(0.0d)", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentDetails_amountToBeRemitted() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentDetails", "amountToBeRemitted", false, Double.valueOf(0.0d), "Double.valueOf(0.0d)", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentDetails_remittanceCharges() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentDetails", "remittanceCharges", false, Double.valueOf(0.0d), "Double.valueOf(0.0d)", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentDetails_totalAmountToBeRemitted() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentDetails", "totalAmountToBeRemitted", false, Double.valueOf(0.0d), "Double.valueOf(0.0d)", null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentDetails_paymentTypeInfo() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentDetails", "paymentTypeInfo", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentDetails_paymentReferenceNumber() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentDetails", "paymentReferenceNumber", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentDetails_sapReferenceNumber() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentDetails", "sapReferenceNumber", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentDetails_dateOfPayment() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentDetails", "dateOfPayment", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_PaymentDetails_remarks() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentDetails", "remarks", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSMaster_company() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSMaster", "company", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSMaster_tdsType() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSMaster", "tdsType", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSMaster_tdsTypeDescription() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSMaster", "tdsTypeDescription", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSMaster_startDate() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSMaster", "startDate", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSMaster_endDate() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSMaster", "endDate", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSCompanyType_code() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSCompanyType", "code", true, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSCompanyType_value() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSCompanyType", "value", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSTaxComponent_taxElement() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSTaxComponent", "taxElement", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSTaxComponent_percentage() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSTaxComponent", "percentage", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSTaxComponent_taxElementList() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSTaxComponent", "taxElementList", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_AbstractTDSRule_code() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "AbstractTDSRule", "code", true, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_AbstractTDSRule_country() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "AbstractTDSRule", "country", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_AbstractTDSRule_isIncluded() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "AbstractTDSRule", "isIncluded", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierTDSRule_supplier() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierTDSRule", "supplier", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierTDSRule_category() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierTDSRule", "category", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierTDSRule_subCategory() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierTDSRule", "subCategory", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_SupplierTDSRule_product() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierTDSRule", "product", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ClientTDSRule_client() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ClientTDSRule", "client", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ClientTDSRule_commercialHead() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ClientTDSRule", "commercialHead", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSExemption_customerId() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSExemption", "customerId", true, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSExemption_customerName() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSExemption", "customerName", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSExemption_percentage() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSExemption", "percentage", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSExemption_threshold() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSExemption", "threshold", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSExemption_cappingAmount() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSExemption", "cappingAmount", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSExemption_exemptionCertificateHash() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSExemption", "exemptionCertificateHash", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSExemption_exemptionCertificate() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSExemption", "exemptionCertificate", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSExemption_certificateValidFrom() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSExemption", "certificateValidFrom", true, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSExemption_certificateValidTo() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSExemption", "certificateValidTo", true, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TDSExemption_certificateDescription() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSExemption", "certificateDescription", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TravelogixPaymentReceipt_client() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TravelogixPaymentReceipt", "client", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_ReconfirmationConfig2ClientReconfirmationConfigREL_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ClientReconfirmationConfig", "reconfirmationconfig", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_ReconfirmationConfig2ClientReconfirmationConfigREL_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationConfig", "clientreconfirmationconfigs", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_ReconfirmationConfig2SupplierReconfirmationConfigREL_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierReconfirmationConfig", "reconfirmationconfig", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_ReconfirmationConfig2SupplierReconfirmationConfigREL_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationConfig", "supplierreconfirmationconfigs", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_ReconfirmationConfig2ReconfirmationIntervalREL_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationInterval", "reconfirmationconfig", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_ReconfirmationConfig2ReconfirmationIntervalREL_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationConfig", "reconfirmationintervals", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_ReconfirmationConfig2ReconfirmationTravelDestinationREL_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationTravelDestination", "reconfirmationconfig", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_ReconfirmationConfig2ReconfirmationTravelDestinationREL_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ReconfirmationConfig", "reconfirmationtraveldestinations", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_Order2DocumentSettingREL_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DocumentSetting", "order", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_Order2DocumentSettingREL_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Order", "documentSettings", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_TDSMaster2TDSTaxComponentREL_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSTaxComponent", "tdsMaster", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_TDSMaster2TDSTaxComponentREL_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSMaster", "taxComponents", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_TDSMaster2AbstractTDSRuleREL_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "AbstractTDSRule", "tdsMaster", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_TDSMaster2AbstractTDSRuleREL_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSMaster", "tdsRules", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_TDSMaster2TDSExemptionREL_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSExemption", "tdsMaster", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_TDSMaster2TDSExemptionREL_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSMaster", "tdsExemptions", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_TDSMaster2TDSCompanyTypeREL_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSCompanyType", "tdsMasters", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_TDSMaster2TDSCompanyTypeREL_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TDSMaster", "tdsCompanyTypes", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_SupplierInvoice2ServiceOrderREL_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ServiceOrder", "supplierInvoice", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_SupplierInvoice2ServiceOrderREL_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "SupplierInvoice", "serviceOrder", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_PaymentAdvice2ServiceOrderREL_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ServiceOrder", "paymentAdvice", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_PaymentAdvice2ServiceOrderREL_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "PaymentAdvice", "serviceOrder", false, null, null, null, true, false, null, customPropsMap, null ); } }
package com.tencent.mm.plugin.appbrand.appcache; import com.tencent.mm.plugin.appbrand.appcache.ah.a; class ah$c$1 extends ThreadLocal<a> { ah$c$1() { } protected final /* synthetic */ Object initialValue() { return new a((byte) 0); } }
package br.com.entequerido.exception; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.http.converter.HttpMessageNotReadableException; import org.springframework.web.bind.MethodArgumentNotValidException; import org.springframework.web.bind.MissingServletRequestParameterException; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.RestControllerAdvice; import org.springframework.web.context.request.WebRequest; import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler; @RestControllerAdvice public class RestExceptionHandler extends ResponseEntityExceptionHandler { private ResponseEntity<Object> buildResponseEntity(ApiError apiError) { return new ResponseEntity<>(apiError.toString(), apiError.getStatus()); } @Override protected final ResponseEntity<Object> handleHttpMessageNotReadable(HttpMessageNotReadableException ex, HttpHeaders headers, HttpStatus status, WebRequest request) { String error = "Malformed JSON request"; return buildResponseEntity(new ApiError(HttpStatus.BAD_REQUEST, error, ex, null)); } @Override protected ResponseEntity<Object> handleMethodArgumentNotValid(MethodArgumentNotValidException ex, HttpHeaders headers, HttpStatus status, WebRequest request) { ApiError apiError = new ApiError(HttpStatus.BAD_REQUEST, ex); apiError.addValidationError(ex.getBindingResult().getGlobalErrors()); apiError.addValidationErrors(ex.getBindingResult().getFieldErrors());; return buildResponseEntity(apiError); } @Override protected ResponseEntity<Object> handleMissingServletRequestParameter(MissingServletRequestParameterException ex, HttpHeaders headers, HttpStatus status, WebRequest request) { return buildResponseEntity(new ApiError(status, ex)); } @ExceptionHandler(ValidacaoException.class) protected final ResponseEntity<?> handleValicacaoException (ValidacaoException ev, WebRequest request) { return buildResponseEntity(new ApiError(HttpStatus.BAD_REQUEST, ev, ev.getPath())); } @ExceptionHandler(GenericoException.class) protected final ResponseEntity<?> handleAllException(GenericoException ev, WebRequest request) { return buildResponseEntity(new ApiError(HttpStatus.INTERNAL_SERVER_ERROR, ev, ev.getPath())); } }
package Gestion_Formations.login; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.Color; import javax.swing.JLabel; import javax.swing.JOptionPane; import java.awt.Font; import javax.swing.JTextField; import javax.swing.JPasswordField; import javax.swing.JComboBox; import javax.swing.JButton; import javax.swing.DefaultComboBoxModel; import javax.swing.JTable; import javax.swing.table.DefaultTableModel; import javax.swing.JScrollPane; import java.awt.event.ActionListener; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.awt.event.ActionEvent; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.ListSelectionModel; public class User { private JFrame frame; private JTextField textField; private JTextField textField_1; private JTextField textField_2; private JPasswordField passwordField; private JPasswordField passwordField_1; private JTextField textField_3; private JTable table; Connection conn; PreparedStatement stmt; /** * Launch the application. */ public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { User window = new User(); window.frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); } /** * Create the application. */ public User() { initialize(); show(); } /** * Initialize the contents of the frame. */ private void initialize() { frame = new JFrame(); frame.setVisible(true); frame.setBounds(100, 100, 1344, 817); frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); frame.getContentPane().setLayout(null); JPanel panel = new JPanel(); panel.setBackground(new Color(255, 255, 240)); panel.setBounds(40, 132, 480, 653); frame.getContentPane().add(panel); panel.setLayout(null); textField = new JTextField(); textField.addKeyListener(new KeyAdapter() { @Override public void keyReleased(KeyEvent arg0) { } }); textField.setToolTipText(""); textField.setFont(new Font("Tahoma", Font.BOLD, 15)); textField.setColumns(10); textField.setBounds(200, 51, 246, 33); panel.add(textField); JLabel lblNewLabel_1 = new JLabel("Last name :"); lblNewLabel_1.setFont(new Font("Tahoma", Font.BOLD, 15)); lblNewLabel_1.setBounds(63, 55, 106, 25); panel.add(lblNewLabel_1); textField_1 = new JTextField(); textField_1.addKeyListener(new KeyAdapter() { @Override public void keyReleased(KeyEvent arg0) { } }); textField_1.setFont(new Font("Tahoma", Font.BOLD, 15)); textField_1.setColumns(10); textField_1.setBounds(200, 122, 246, 33); panel.add(textField_1); JLabel lblNewLabel_1_1 = new JLabel("First name :"); lblNewLabel_1_1.setFont(new Font("Tahoma", Font.BOLD, 15)); lblNewLabel_1_1.setBounds(63, 126, 106, 25); panel.add(lblNewLabel_1_1); JLabel lblNewLabel_1_2 = new JLabel("Login :"); lblNewLabel_1_2.setFont(new Font("Tahoma", Font.BOLD, 15)); lblNewLabel_1_2.setBounds(100, 201, 66, 25); panel.add(lblNewLabel_1_2); textField_2 = new JTextField(); textField_2.addKeyListener(new KeyAdapter() { @Override public void keyReleased(KeyEvent arg0) { } }); textField_2.setFont(new Font("Tahoma", Font.BOLD, 15)); textField_2.setColumns(10); textField_2.setBounds(200, 197, 246, 33); panel.add(textField_2); passwordField = new JPasswordField(); passwordField.addKeyListener(new KeyAdapter() { @Override public void keyReleased(KeyEvent arg0) { } }); passwordField.setBounds(200, 270, 246, 33); panel.add(passwordField); JLabel lblNewLabel_1_3 = new JLabel("Password :"); lblNewLabel_1_3.setFont(new Font("Tahoma", Font.BOLD, 15)); lblNewLabel_1_3.setBounds(75, 272, 106, 25); panel.add(lblNewLabel_1_3); JLabel lblNewLabel_5 = new JLabel("Confirm Password :"); lblNewLabel_5.setFont(new Font("Tahoma", Font.BOLD, 15)); lblNewLabel_5.setBounds(10, 345, 159, 25); panel.add(lblNewLabel_5); passwordField_1 = new JPasswordField(); passwordField_1.addKeyListener(new KeyAdapter() { @Override public void keyReleased(KeyEvent arg0) { } }); passwordField_1.setBounds(200, 343, 246, 33); panel.add(passwordField_1); textField_3 = new JTextField(); textField_3.addKeyListener(new KeyAdapter() { @Override public void keyReleased(KeyEvent arg0) { } }); textField_3.setFont(new Font("Tahoma", Font.BOLD, 15)); textField_3.setColumns(10); textField_3.setBounds(200, 413, 246, 33); panel.add(textField_3); JLabel lblNewLabel_1_4 = new JLabel("City :"); lblNewLabel_1_4.setFont(new Font("Tahoma", Font.BOLD, 15)); lblNewLabel_1_4.setBounds(115, 417, 48, 25); panel.add(lblNewLabel_1_4); JComboBox cmbType = new JComboBox(); cmbType.setForeground(new Color(128, 0, 0)); cmbType.setModel(new DefaultComboBoxModel(new String[] {"Type :", "admin", "user"})); cmbType.setFont(new Font("Tahoma", Font.BOLD, 15)); cmbType.setBounds(204, 478, 242, 33); panel.add(cmbType); JLabel lblNewLabel_9 = new JLabel("User Type :"); lblNewLabel_9.setFont(new Font("Tahoma", Font.BOLD, 15)); lblNewLabel_9.setBounds(70, 478, 93, 33); panel.add(lblNewLabel_9); JPanel panel_1 = new JPanel(); panel_1.setBackground(new Color(128, 0, 0)); panel_1.setBounds(10, 541, 456, 95); panel.add(panel_1); panel_1.setLayout(null); JButton btnAdd = new JButton("Add"); btnAdd.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { String nom = textField.getText(); String prenom = textField_1.getText(); String username = textField_2.getText(); String mot_de_pass = passwordField.getText(); String confirm_mot_de_pass = passwordField_1.getText(); String ville = textField_3.getText(); String type = cmbType.getSelectedItem().toString(); // if (textField.getText().trim().isEmpty() && textField_1.getText().trim().isEmpty() && textField_2.getText().trim().isEmpty() && passwordField.getText().trim().isEmpty() && passwordField_1.getText().trim().isEmpty()&& textField_3.getText().trim().isEmpty()) try { Class.forName("com.mysql.cj.jdbc.Driver"); conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/gestion_formations", "root", ""); String sql = "insert into employe(nom,prenom,login,password,confirm_password,ville,type_user) " + " values(?,?,?,?,?,?,?)"; stmt = conn.prepareStatement(sql); stmt.setString(1,nom); stmt.setString(2,prenom); stmt.setString(3,username); stmt.setString(4,mot_de_pass); stmt.setString(5,confirm_mot_de_pass); stmt.setString(6,ville); stmt.setString(7,type); stmt.execute(); JOptionPane.showMessageDialog(btnAdd, "User Added Successfully"); show(); Clear(); } catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } }); btnAdd.setFont(new Font("Tahoma", Font.BOLD, 16)); btnAdd.setBounds(10, 30, 120, 39); panel_1.add(btnAdd); JButton btnUpdate = new JButton("Update"); btnUpdate.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { DefaultTableModel df = (DefaultTableModel)table.getModel(); int selectedIndex = table.getSelectedRow(); try { String nom = textField.getText(); String prenom = textField_1.getText(); String username = textField_2.getText(); String mot_de_pass = passwordField.getText(); String confirm_mot_de_pass = passwordField_1.getText(); String ville = textField_3.getText(); String type = cmbType.getSelectedItem().toString(); int id = Integer.parseInt(df.getValueAt(selectedIndex, 0).toString()); Class.forName("com.mysql.cj.jdbc.Driver"); conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/gestion_formations", "root", ""); stmt = conn.prepareStatement("UPDATE employe SET " + "nom = '" + nom + "', prenom = '" + prenom + "', login = '" + username + "', password = '" + mot_de_pass + "', confirm_password = '" + confirm_mot_de_pass + "', ville = '" + ville+ "', type_user = '" + type + "' where idEmploye = '" + id + "'"); stmt.executeUpdate(); JOptionPane.showMessageDialog(btnAdd, "User edited Successfully"); show(); Clear(); } catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } }); btnUpdate.setFont(new Font("Tahoma", Font.BOLD, 16)); btnUpdate.setBounds(161, 30, 120, 39); panel_1.add(btnUpdate); JButton btnDelete = new JButton("Delete"); btnDelete.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { int msg = JOptionPane.showConfirmDialog(null, "Are you sure to delete", "Delete", JOptionPane.YES_NO_OPTION); if(msg==0) { DefaultTableModel df = (DefaultTableModel)table.getModel(); int selectedIndex = table.getSelectedRow(); try { int id = Integer.parseInt(df.getValueAt(selectedIndex, 0).toString()); Class.forName("com.mysql.cj.jdbc.Driver"); conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/gestion_formations", "root", ""); stmt = conn.prepareStatement("DELETE from employe where idEmploye = '" + id + "'"); stmt.executeUpdate(); JOptionPane.showMessageDialog(btnAdd, "User Deleted Successfully"); show(); Clear(); } catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } } }); btnDelete.setFont(new Font("Tahoma", Font.BOLD, 16)); btnDelete.setBounds(315, 30, 120, 39); panel_1.add(btnDelete); JLabel lnom = new JLabel(""); lnom.setForeground(new Color(255, 0, 0)); lnom.setFont(new Font("Tahoma", Font.BOLD, 11)); lnom.setBounds(200, 92, 246, 19); panel.add(lnom); JPanel panel_2 = new JPanel(); panel_2.setBackground(Color.LIGHT_GRAY); panel_2.setBounds(530, 205, 784, 332); frame.getContentPane().add(panel_2); panel_2.setLayout(null); JScrollPane scrollPane = new JScrollPane(); scrollPane.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { } }); scrollPane.setBounds(10, 72, 764, 249); panel_2.add(scrollPane); table = new JTable(); table.setFont(new Font("Tahoma", Font.BOLD, 13)); table.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent arg0) { DefaultTableModel df = (DefaultTableModel)table.getModel(); int selectedIndex = table.getSelectedRow(); textField.setText(df.getValueAt(selectedIndex, 1).toString()); textField_1.setText(df.getValueAt(selectedIndex, 2).toString()); textField_2.setText(df.getValueAt(selectedIndex, 3).toString()); passwordField.setText(df.getValueAt(selectedIndex, 4).toString()); passwordField_1.setText(df.getValueAt(selectedIndex, 5).toString()); textField_3.setText(df.getValueAt(selectedIndex, 6).toString()); cmbType.setToolTipText(df.getValueAt(selectedIndex, 6).toString()); } }); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); scrollPane.setViewportView(table); table.setModel(new DefaultTableModel( new Object[][] { }, new String[] { "ID_user", "Last name", "First name", "Login", "Password", "ConfirmPassword", "City", "User Type" } )); table.getColumnModel().getColumn(1).setResizable(false); table.getColumnModel().getColumn(5).setPreferredWidth(97); JLabel lblNewLabel_10 = new JLabel("List Users "); lblNewLabel_10.setForeground(new Color(128, 0, 0)); lblNewLabel_10.setFont(new Font("Tahoma", Font.BOLD, 18)); lblNewLabel_10.setBounds(10, 11, 170, 36); panel_2.add(lblNewLabel_10); JLabel lblNewLabel = new JLabel("Management User"); lblNewLabel.setBounds(40, 89, 179, 32); frame.getContentPane().add(lblNewLabel); lblNewLabel.setForeground(new Color(128, 0, 0)); lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 18)); JButton btnLogOut = new JButton("Log out"); btnLogOut.setBounds(1169, 23, 115, 45); frame.getContentPane().add(btnLogOut); btnLogOut.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { Login lg =new Login(); frame.dispose(); } }); btnLogOut.setFont(new Font("Tahoma", Font.BOLD, 15)); JButton btnNewButton = new JButton("< Back"); btnNewButton.setBounds(40, 23, 116, 45); frame.getContentPane().add(btnNewButton); btnNewButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { HomeAdmin home =new HomeAdmin(); frame.dispose(); } }); btnNewButton.setFont(new Font("Tahoma", Font.BOLD, 15)); } public void Clear() { textField.setText(""); textField_1.setText(""); textField_2.setText(""); passwordField.setText(""); passwordField_1.setText(""); textField_3.setText(""); textField.requestFocus(); } public void show() { try { Class.forName("com.mysql.cj.jdbc.Driver"); conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/gestion_formations", "root", ""); stmt = conn.prepareStatement("SELECT * FROM employe"); ResultSet result = stmt.executeQuery(); DefaultTableModel df = (DefaultTableModel)table.getModel(); df.setRowCount(0); while(result.next()) { int id = result.getInt("idEmploye"); String nom = result.getString("nom"); String prenom = result.getString("prenom"); String username = result.getString("login"); String password = result.getString("password"); String confirm_password = result.getString("confirm_password"); String ville = result.getString("ville"); String type = result.getString("type_user"); df.addRow(new Object[] {id,nom,prenom,username,password,confirm_password,ville,type}); } } catch (ClassNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } }
//package am.main.data.dto; // //import am.main.api.validation.groups.*; //import am.main.common.RegExp; //import org.hibernate.validator.constraints.Length; // //import javax.validation.constraints.*; //import java.io.Serializable; // ///** // * Created by ahmed.motair on 2/1/2018. // */ //public class AppLoginData implements Serializable{ // // @NotNull(message = FormValidation.REQUIRED, groups = RequiredValidation.class) // @Size(min = 3, max = 3, message = FormValidation.EQ_LENGTH, groups = LengthValidation.class) // @Pattern(regexp = RegExp.LOOKUP, message = FormValidation.REGEX, groups = InvalidValidation.class) // @NotBlank(message = FormValidation.EMPTY_STR, groups = BlankValidation.class) // private String appID; // // @NotNull(message = FormValidation.REQUIRED, groups = RequiredValidation.class) // @Length(min = 5, max = 50, message = FormValidation.MIN_MAX_LENGTH, groups = LengthValidation.class) // @Pattern(regexp = RegExp.USERNAME, message = FormValidation.REGEX, groups = InvalidValidation.class) // @NotEmpty(message = FormValidation.EMPTY_STR, groups = BlankValidation.class) // private String username; // // @NotNull(message = FormValidation.REQUIRED, groups = RequiredValidation.class) // @Length(min = 5, max = 30, message = FormValidation.MIN_MAX_LENGTH, groups = LengthValidation.class) // @Pattern(regexp = RegExp.PASSWORD, message = FormValidation.REGEX, groups = InvalidValidation.class) // @NotEmpty(message = FormValidation.EMPTY_STR, groups = BlankValidation.class) // private String password; // // public AppLoginData() { // } // public AppLoginData(String appID, String username, String password) { // this.appID = appID; // this.username = username; // this.password = password; // } // // public String getAppID() { // return appID; // } // public void setAppID(String appID) { // this.appID = appID; // } // // public String getUsername() { // return username; // } // public void setUsername(String username) { // this.username = username; // } // // public String getPassword() { // return password; // } // public void setPassword(String password) { // this.password = password; // } // // @Override // public boolean equals(Object o) { // if (this == o) return true; // if (!(o instanceof AppLoginData)) return false; // // AppLoginData that = (AppLoginData) o; // // if (getAppID() != null ? !getAppID().equals(that.getAppID()) : that.getAppID() != null) return false; // if (getUsername() != null ? !getUsername().equals(that.getUsername()) : that.getUsername() != null) return false; // return getPassword() != null ? getPassword().equals(that.getPassword()) : that.getPassword() == null; // } // // @Override // public int hashCode() { // int result = getAppID() != null ? getAppID().hashCode() : 0; // result = 31 * result + (getUsername() != null ? getUsername().hashCode() : 0); // result = 31 * result + (getPassword() != null ? getPassword().hashCode() : 0); // return result; // } // // @Override // public String toString() { // return "AppLoginData{" + // "appID = " + appID + // ", username = " + username + // ", password = " + password + // "}\n"; // } //}
/** * @author XiongJie, Date: 13-12-27 */ package net.happyonroad.spring.support; import net.happyonroad.component.core.support.DefaultComponent; import org.springframework.core.io.Resource; import org.springframework.core.io.support.PathMatchingResourcePatternResolver; import org.springframework.util.Assert; import java.io.IOException; import java.util.HashSet; import java.util.Set; /** * The extended spring path matching resource pattern resolver * <p/> * 将 classpath*:path/of/package/** / *.class 限制在当前组件的jar中搜索 */ public class ComponentResourcePatternResolver extends PathMatchingResourcePatternResolver { static final String CLASSPATH_THIS_URL_PREFIX = "classpath?:"; final DefaultComponent component; public ComponentResourcePatternResolver(DefaultComponent component) { super(component.getResource()); this.component = component; } @Override public Resource getResource(String location) { if( location.startsWith(CLASSPATH_THIS_URL_PREFIX)){ location = location.substring(CLASSPATH_THIS_URL_PREFIX.length()); return component.getResource().getLocalResourceUnder(location); }else { return super.getResource(location); } } @Override public Resource[] getResources(String locationPattern) throws IOException { Assert.notNull(locationPattern, "Location pattern must not be null"); //由于在Annotation模式下,非常难以对ClassPathBeanDefinitionScanner进行配置 //所以,这里我先采用对 location pattern 进行篡改的方式 //这个篡改,基于的前提十分脆弱:就是仅有 component-scan 会生成 classpath*/xx/**/*.class: 形式的pattern //如果有其他真的需要跨组件搜索的情况,正好其pattern后面又增加了 **/*.class,那么这里将会 //导致其他的情况无法工作 //实际测试下来,发现这个修改可以工作,而且还意外的对其他几种对象搜索情况进行了加速 // 例如 spring-data repository/model 的搜索 //仔细考虑,其实做这个篡改,与我设计这个组件的隔离思路一致 // 也就是,如果开发者在组件中说要搜索某个包,那么按照隔离的原则,就应该只限定在本jar包中搜索 //不能搜索到依赖的包中,否则就破坏原本的隔离初衷 if( locationPattern.startsWith(CLASSPATH_ALL_URL_PREFIX) && locationPattern.endsWith("**/*.class")){ String pattern = locationPattern.substring(CLASSPATH_ALL_URL_PREFIX.length()); // if( component == null ){ // component = ((ComponentApplicationContext)getResourceLoader()).getComponent(); // } if (getPathMatcher().isPattern(pattern)) { String rootDirPath = determineRootDir(pattern); String subPattern = pattern.substring(rootDirPath.length()); Resource[] resources = component.getResource().getLocalResourcesUnder(rootDirPath); Set<Resource> matches = new HashSet<Resource>(); for (Resource resource : resources) { rootDirPath = rootDirPath.replaceAll("\\\\", "/"); String resourcePath = resource.getURL().getPath().replaceAll("\\\\", "/"); int pos = resourcePath.indexOf(rootDirPath) + rootDirPath.length(); String relativePath = resourcePath.substring(pos); if(getPathMatcher().match(subPattern, relativePath)){ matches.add(resource); } } return matches.toArray(new Resource[matches.size()]); }else{ return component.getResource().getLocalResourcesUnder(pattern); } } else { return super.getResources(locationPattern); } } }
package bookexercises.chapter1.fundamentals.two; import edu.princeton.cs.algs4.StdOut; /** * Using our implementation of Date as a model(page91),develop an implementa- * tion of Transaction. * * @author atlednolispe * @email atlednolispe@gmail.com * @date 2018/7/4 */ public class Thirteen { public static void main(String[] args) { } } class Date { private final int month; private final int day; private final int year; public Date(int m, int d, int y) { month = m; day = d; year = y; } public int month() { return month; } public int day() { return day; } public int year() { return year; } @Override public String toString() { return month() + "/" + day() + "/" + year(); } @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (this.getClass() != that.getClass()) { return false; } Date x = (Date) that; // the same class can access another object's private var if (this.month != x.month) { return false; } if (this.day != x.day) { return false; } if (this.year != x.year) { return false; } return true; } } class Transaction implements Comparable<Transaction> { private String who; private Date when; private double amount; public Transaction(String who, Date when, double amount) { this.who = who; this.when = when; this.amount = amount; } public Transaction(String transaction) { // mm/dd/yyyy who amount String[] trans = transaction.split(" "); String[] date = trans[0].split("/"); this.who = trans[1]; this.when = new Date(Integer.parseInt(date[0]), Integer.parseInt(date[1]), Integer.parseInt(date[2])); this.amount = Double.parseDouble(trans[2]); } public String who() { return who; } public Date when() { return when; } public double amount() { return amount; } @Override public String toString() { return when() + " " + who() + " " + String.format("%.3f", amount()); } @Override public int compareTo(Transaction that) { return this.toString().compareTo(that.toString()); } public static void main(String[] args) { Transaction trans1 = new Transaction("aaa", new Date(7, 4, 2018), 100.123); Transaction trans2 = new Transaction("07/04/2018 aaa 100.123"); Transaction trans3 = new Transaction("07/04/2018 aaa 100.124"); StdOut.println(trans1.compareTo(trans2)); StdOut.println(trans1.compareTo(trans3)); } }
package com.spark.transformation; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaPairRDD; import org.apache.spark.api.java.JavaSparkContext; import org.apache.spark.api.java.function.VoidFunction; import scala.Tuple2; public class SampleByKeyTransform { public static void main(String[] args) { SparkConf conf = new SparkConf(); conf.setMaster("local"); conf.setAppName("MapAbout"); JavaSparkContext js = new JavaSparkContext(conf); List<Tuple2<String, String>> pairs1 = Arrays.asList(new Tuple2<String, String>("beijing", "QH"), new Tuple2<String, String>("beijing", "BD"), new Tuple2<String, String>("shanghai", "FD"), new Tuple2<String, String>("beijing", "BD"), new Tuple2<String, String>("shanghai", "FD"), new Tuple2<String, String>("beijing", "BD"), new Tuple2<String, String>("shanghai", "FD")); JavaPairRDD<String, String> pairs1RDD = js.parallelizePairs(pairs1); /** * 往map里面添加,自己想要对哪些key抽样,以及比例 */ Map<String, Object> fractions = new HashMap<>(); fractions.put("beijing", 0.2); fractions.put("shanghai", 0.6); //false是不放回抽样 JavaPairRDD<String, String> sampleByKeyRDD = pairs1RDD.sampleByKey(false, fractions); //10是种子,保证同一份数据抽取出来的一样 pairs1RDD.sampleByKey(true, fractions, 10); sampleByKeyRDD.foreach(new VoidFunction<Tuple2<String,String>>() { private static final long serialVersionUID = 1L; @Override public void call(Tuple2<String, String> t) throws Exception { System.out.println(t); } }); js.close(); } }
package com.example.retail.models.measurementunits; import com.example.retail.models.jsonmodels.DenominationList; import com.vladmihalcea.hibernate.type.json.JsonBinaryType; import org.hibernate.annotations.Type; import org.hibernate.annotations.TypeDef; import org.hibernate.annotations.TypeDefs; import javax.persistence.*; import javax.validation.constraints.NotEmpty; import java.util.List; @Entity @Table(name = "measurement_units") @TypeDefs({@TypeDef(name = "psql-jsonb", typeClass = JsonBinaryType.class)}) public class MeasurementUnits { @Id @Column(name = "measurement_unit-table_id") private Long measurementUnitTableId; @NotEmpty @Column(name = "measurement_unit_name", unique = true) private String measurementUnitName; @Column(name = "denomination_list", columnDefinition = "jsonb") @Type(type = "psql-jsonb") private List<DenominationList> denominationList; public MeasurementUnits() {} public MeasurementUnits(String measurementUnitName, List<DenominationList> denominationList) { this.measurementUnitName = measurementUnitName; this.denominationList = denominationList; } public String getMeasurementUnitName() { return measurementUnitName; } public void setMeasurementUnitName(String measurementUnitName) { this.measurementUnitName = measurementUnitName; } public List<DenominationList> getDenominationList() { return denominationList; } public void setDenominationList(List<DenominationList> denominationList) { this.denominationList = denominationList; } }
package chefcharlesmich.smartappphonebook.VcardProgram; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import chefcharlesmich.smartappphonebook.R; public class AboutActivityVcard extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_about_vcard); } }
package com.perhab.napalm; import java.net.URI; import java.util.*; import com.google.common.collect.Lists; import com.perhab.napalm.discover.Discover; import com.perhab.napalm.statement.*; import com.perhab.napalm.validation.ResultEqualsValidator; import com.perhab.napalm.validation.Validator; import com.perhab.napalm.validation.Validators; import lombok.Setter; import lombok.extern.slf4j.Slf4j; import org.kohsuke.args4j.CmdLineException; import org.kohsuke.args4j.CmdLineParser; import org.kohsuke.args4j.Option; import org.kohsuke.args4j.spi.BooleanOptionHandler; import org.kohsuke.args4j.spi.RestOfArgumentsHandler; import org.kohsuke.args4j.spi.StringOptionHandler; import org.kohsuke.args4j.spi.URIOptionHandler; @Slf4j public class Runner { @Option(name = "-f", aliases = {"--html-file"}, usage = "name of the html file to generate", handler = StringOptionHandler.class) String filename; @Option(name = "-m", aliases = {"--markdown-file"}, usage = "name of the markdown file to generate", handler = StringOptionHandler.class) String markdownFilename; @Option(name = "-s", aliases = {"--silent"}, usage = "make runner silent (do not print out results)", handler = BooleanOptionHandler.class) Boolean silent; @Option(name = "--source-base-uri", usage = "set new base uri where to fetch the source code from.", handler = URIOptionHandler.class) URI baseURI; @Option(name ="", handler = RestOfArgumentsHandler.class) String pendingArguments; /** * Validators use to verify the results of the tes methods. */ private Validators validators = new Validators(); /** * initialize a new runner and add the ResultEqualsValidator as default validator. */ public Runner() { addValidator(new ResultEqualsValidator()); } /** * Add a new validator for verification of the results. * @param validator - validator to add */ public final void addValidator(final Validator validator) { validators.add(validator); } /** * Main method for running the class as a java program. * @param args - arguments passed in the command line */ public static void main(final String[] args) { Runner runner = new Runner(); try { new CmdLineParser(runner).parseArgument(args); if (runner.pendingArguments != null) { log.error("unkown argument: {}", runner.pendingArguments); return; } if (runner.baseURI != null) { ExecutionExplorer.setBaseURI(runner.baseURI); } Collection<Result> results = runner.run(discover()); if (runner.silent == null || Boolean.FALSE.equals(runner.silent)) { new SystemOutPrinter().print(results); } if (runner.filename != null) { new HtmlFileOutPrinter(runner.filename).print(results); } if (runner.markdownFilename != null) { new MarkdownFileOutPrinter(runner.markdownFilename).print(results); } } catch (CmdLineException e) { log.error("Cannot run program:", e); } } /** * @return all classes discovered that have a method that is annotated with {@link Execute}. */ private static Class<?>[] discover() { return Discover.findClassesWithMethodsAnnotatedWith(Execute.class, ExecuteParallel.class); } /** * Run the performance tests with given implementations. * @param implementations - classes that contain a method annotated with {@link Execute} * @return collection with the performance test results of the given implementations */ public final Collection<Result> run(final Class<?>[] implementations) { Collection<StatementGroup> groups = prepare(implementations); Collection<Result> results = new ArrayList<Result>(); for (StatementGroup group : groups) { results.addAll(group.execute(validators)); } return results; } /** * Prepare the given implementations for running as a performance test. * @param implementations - array with classes that have a method annotated with {@link Execute} * @return prepared implementations (Statements) */ private Collection<StatementGroup> prepare(final Class<?>[] implementations) { ArrayList<StatementGroup> statementGroups = new ArrayList<StatementGroup>(implementations.length); for (Class<?> implementation : implementations) { if (implementation.getAnnotation(Ignore.class) == null) { for (BaseStatement statement : BaseStatement.getBaseStatements(implementation)) { if (!statementGroups.contains(statement.getGroup())) { statementGroups.add(statement.getGroup()); } } } } return statementGroups; } }
package ict.kosovo.growth.ora_6; import java.util.Scanner; public class WhileLoop { public static void main(String[] args) { Scanner reder = new Scanner(System.in); System.out.println("Shkruaj nje numur"); int i = reder.nextInt(); while (i <= 3){ int j = i % 2; i++; System.out.println("Numur i plotepjestueshem me 2: " + j); } // Scanner reader = new Scanner(System.in); //// int res = 0; //// //// System.out.println("Enter two intetgers: "); //// int num1 = reader.nextInt(); //// int num2 = reader.nextInt(); //// while((res +1) * num1 < num2) //// res ++; //// System.out.println("Num1 contains Num2 " + res + " times"); // //// int res = 0; //// System.out.println("Enter a positive number: "); //// int num = reader.nextInt(); //// while (num > 0){ //// res += num % 10; //// num /= 10; //// } //// System.out.println(" res = " + res); // // // int count = 1; // while (count != 50) { // count += 2; // System.out.println(count); // } // // //// int count = 2; //// while (count <= 100){ //// count++; //// System.out.println(count); //// } // // // int counter = 2; // while (counter <= 5) { // System.out.println("Welcome to java"); // counter++; // } //// int sum = 0; //// int count = 0; //// //// while (count<10){ //// count++; //// sum+= count; //// } //// double avg =(double) sum / count; //// System.out.println("Average " + avg); //// } } }
package de.hska.iwii.i2.klausuren.sose2015.a4; /** * This is just a mockup class to make it work. */ public class Figure { private String name; public Figure(String name) { this.name = name; } @Override public String toString() { return this.name; } }
package sarong; import org.huldra.math.BigInt; import org.junit.Test; import java.math.BigInteger; /** * Created by Tommy Ettinger on 6/17/2018. */ public class Test128 { // public long mulhi(long x, long y) { // final long xLow = x & 0xFFFFFFFFL; // final long yLow = y & 0xFFFFFFFFL; // x >>= 32; // y >>= 32; // final long z = (xLow * yLow >> 32); // long t = x * yLow + z; // final long tLow = t & 0xFFFFFFFFL; // t >>= 32; // return x * y + t + (tLow + xLow * y >> 32) - (z >> 63); // } public long mulhi(long left, long right) { final long leftLow = left & 0xFFFFFFFFL; final long rightLow = right & 0xFFFFFFFFL; left >>= 32; right >>= 32; final long z = (leftLow * rightLow >> 32); final long t = left * rightLow + z; return left * right + (t >> 32) + ((t & 0xFFFFFFFFL) + leftLow * right >> 32) - (z >> 63); } public long mulhi2(long x, long y) { // long x_high = x >> 32; // long x_low = x & 0xFFFFFFFFL; // long y_high = y >> 32; // long y_low = y & 0xFFFFFFFFL; // long z2 = x_low * y_low; // long t = x_high * y_low + (z2 >> 32); // long z1 = t & 0xFFFFFFFFL; // long z0 = t >> 32; // z1 += x_low * y_high; // return x_high * y_high + z0 + (z1 >> 32); final long xLow = x & 0xFFFFFFFFL; final long yLow = y & 0xFFFFFFFFL; x >>= 32; y >>= 32; final long z = (xLow * yLow >> 32); long t = x * yLow + z; final long tLow = t & 0xFFFFFFFFL; t >>= 32; return x * y + t + (tLow + xLow * y >> 32) - (z >> 63); } private final BigInt storage = new BigInt(0L); public long mulPrecise(long a, long b) { storage.assign(a); storage.mul(b); storage.shiftRight(64); return storage.longValue(); } public long mulPrecise2(long a, long b) { return BigInteger.valueOf(a).multiply(BigInteger.valueOf(b)).shiftRight(64).longValue(); } @Test public void test128() { // MizuchiRNG r1 = new MizuchiRNG(1234567890L, 987654321L), r2 = new MizuchiRNG(9876543210L, 123456789L); MizuchiRNG r1 = new MizuchiRNG(), r2 = new MizuchiRNG(); for (int i = 0; i < 8; i++) { r1.nextLong(); r2.nextLong(); } long a, b, x, y; for (int i = 0; i < 0x10000000; i++) { a = r1.nextLong(); b = r2.nextLong(); x = mulhi(a, b); y = mulPrecise(a, b); //System.out.printf("On iteration %d, 0x%016X * 0x%016X (sum %016X) gave: 0x%016X and 0x%016X", i, a, b, a+b, x, y); if(x != y) { System.out.println("\n :( by " + (y - x) + " "); break; //x = mulhi(a, b); //System.out.println(x); } //else System.out.println(); } } @Test public void testRNG() { RNG r = new RNG(new LinnormRNG(0x123456789ABCDEFL)); for (int j = 0; j < 15; j++) { for (long i = 0x100000000L + j; i <= 0x30000000FL; i += 0x100000000L) { long limit = 5L;//oriole.nextInt(); long result = r.nextLong(limit); System.out.printf("%016X %021d %016X %021d %b, ", result, result, limit, limit,Math.abs(limit) - Math.abs(result) >= 0 && (limit >> 63) == (result >> 63)); } System.out.println(); } } }
package listaJava4Classes; public class ListaJava4Exercicio4 { public static void main(String[] args) { // Crie uma classe funcionário e apresente os atributos e métodos referentes esta classe, //em seguida crie um objeto funcionário, defina as instancias deste objeto e apresente as informações deste objeto no console. Funcionario func = new Funcionario("Fernando", 'M', 55, "Gerente de Projetos"); System.out.println(func.toString()); System.out.println("\n"); func.trabalhar(8); } }
package com.designPattern.creationalPattern.factoryMethod.staticFactory; import com.designPattern.creationalPattern.factoryMethod.generalFactoryModel.MyInterface; public class FactoryTest { public static void main(String[] args) { MyInterface myi = MyFactory.produceOne(); myi.print(); } }
package com.facebook.react.common; public class SystemClock { public static long currentTimeMillis() { return System.currentTimeMillis(); } public static long nanoTime() { return System.nanoTime(); } public static long uptimeMillis() { return android.os.SystemClock.uptimeMillis(); } } /* Location: C:\Users\august\Desktop\tik\df_rn_kit\classes.jar.jar!\com\facebook\react\common\SystemClock.class * Java compiler version: 6 (50.0) * JD-Core Version: 1.1.3 */
package uni.formas; import uni.formas.d1.Linha; import uni.formas.d1.Ponto; import uni.formas.d2.Circulo; import uni.formas.d2.Quadrado; import uni.formas.frame.JanelaFormas; public class Principal { public static void main(String[] args) { Ponto ponto = new Ponto(50, 80); System.out.println(ponto.getComprimento()); Linha linha = new Linha(200, 5, 70, 150); System.out.println(linha.getComprimento()); Circulo circulo = new Circulo(45, 12, 60f); System.out.println(circulo.getArea()); Quadrado quadrado = new Quadrado(170, 90, 60f); System.out.println(quadrado.getArea()); JanelaFormas janelaFormas = new JanelaFormas(600, 600); janelaFormas.addForma(ponto); janelaFormas.addForma(linha); janelaFormas.addForma(circulo); janelaFormas.addForma(quadrado); janelaFormas.setVisible(true); } }
package org.add; public class GreensAnnanagar { public void greensAnnanagar() { System.out.println("GreensAnnanagar"); } }
package com.myself.email.service; import com.myself.email.EmailApplicationTests; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.thymeleaf.TemplateEngine; import org.thymeleaf.context.Context; import javax.mail.MessagingException; /** * @Author:UncleCatMySelf * @Email:zhupeijie_java@126.com * @QQ:1341933031 * @Date:Created in 21:19 2018\9\10 0010 */ public class MailServiceTest extends EmailApplicationTests { private static final String to = "1341933031@qq.com"; @Autowired private MailService mailService; @Autowired private TemplateEngine templateEngine; @Test public void sendSimpleMail() throws Exception { mailService.sendSimpleMail("1341933031@qq.com","文本邮件","这是一封文本邮件"); } @Test public void sendHtmlMail() throws Exception { String content = "<html>\n"+ "<body\n>"+ "<h3>hello world , 这是一封html邮件!</h3>\n"+ "</body>\n"+ "</html>\n"; mailService.sendHtmlMail(to,"html邮件",content); } @Test public void sendAttachmentsMail() throws Exception { String filePath = "D:\\C语言\\ch7-1 让指针不再困扰你.docx"; mailService.sendAttachmentsMail(to,"附件邮件","这是一封附件邮件",filePath); } @Test public void sendInlinResourceMail() throws Exception { String imgPath = "C:\\Users\\Administrator\\Pictures\\公司\\user.png"; String rscId = "new001"; String content = "<html><body>这是有图片的邮件:<img src=\'cid:"+rscId+ "\'></img></body></html>"; mailService.sendInlinResourceMail(to,"图片邮件",content,imgPath,rscId); } @Test public void testTemplateMailTest() throws MessagingException { Context context = new Context(); context.setVariable("id","01"); String emailContent = templateEngine.process("emailTemplate",context); mailService.sendHtmlMail(to,"模板邮件",emailContent); } }
package com.cs4125.bookingapp.services; import com.cs4125.bookingapp.model.entities.Booking; import com.cs4125.bookingapp.model.entities.Discount; import com.cs4125.bookingapp.model.entities.Route; import com.cs4125.bookingapp.model.entities.TransactionRecord; import com.cs4125.bookingapp.model.repositories.*; import com.cs4125.bookingapp.services.commandDiscount.ApplyAllDiscounts; import com.cs4125.bookingapp.services.commandDiscount.ApplyDiscount; import com.cs4125.bookingapp.services.commandDiscount.DiscountContext; import com.cs4125.bookingapp.services.commandDiscount.DiscountInvoker; import com.cs4125.bookingapp.services.interceptor.Target; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.sql.Timestamp; import java.time.Duration; import java.time.Instant; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; @Service public class BookingServiceImpl implements BookingService, Target { private final BookingRepository bookingRepository; private final DiscountRepository discountRepository; private final RouteRepository routeRepository; private final TransactionRepository transactionRepository; private TransactionContext transactionContext = new TransactionContext(); @Autowired public BookingServiceImpl(BookingRepository bookingRepository, DiscountRepository discountRepository, RouteRepository routeRepository, TransactionRepository transactionRepository) { this.bookingRepository = bookingRepository; this.discountRepository = discountRepository; this.routeRepository = routeRepository; this.transactionRepository = transactionRepository; } //Document this please. @Override public String execute(String request) { String result = ""; String str[] = request.split(","); Booking b; switch(str[0]) { case("searchBooking"): result = searchBooking(Integer.parseInt(str[1])); break; case("searchAllBookings"): result = searchAllBookings(Integer.parseInt(str[1])).toString(); break; case("addBooking"): Route r = new Route(str[1], str[2], str[3]); Instant dateTime = Instant.parse(str[5]); b = new Booking(Integer.parseInt(str[6]), -1, Integer.parseInt(str[7]), Timestamp.from(dateTime), -1, -1); b.setTotalPrice(b.getQuantity() * Double.parseDouble(str[4])); result = addBooking(r, b, str[8]); break; case("updateTransaction"): b = new Booking(); b.setBookingId(Integer.parseInt(str[1])); result = updateTransaction(b); break; case("cancelBooking"): b = new Booking(); b.setBookingId(Integer.parseInt(str[1])); result = cancelBooking(b); break; default: return "FAILURE: 1"; } return result; } /** * Searches booking by id * @param id id of the booking * @return SUCCESS: booking information if found the route, else FAILURE: error code */ @Override public String searchBooking(int id) { Booking resBooking = bookingRepository.findById(id).orElse(null); if(resBooking == null) { return "FAILURE: 1"; } return "SUCCESS: " + resBooking.toString(); } /** * Searches all bookings by the passenger id * @param passengerId id of the passenger * @return List of strings containing information of the found bookings, if none found will return List with FAILURE: error code */ @Override public List<String> searchAllBookings(int passengerId) { List<Booking> matchedBookings = bookingRepository.findAllByPassengerId(passengerId); List<String> result = new ArrayList<>(); if(matchedBookings == null) { result.add("FAILURE: 1"); return result; } if(matchedBookings.size() == 0) { result.add("FAILURE: 2"); return result; } for(Booking b : matchedBookings) { result.add("SUCCESS: " + b.toString()); } return result; } /** * Add a new booking * @param r route that is being booked * @param b booking to be added * @param discountCode discount code to check if price should be reduced * @return SUCCESS: booking information if adding was successful, else FAILURE: error code */ @Override public String addBooking(Route r, Booking b, String discountCode) { // First make sure to add the route to the DB r = routeRepository.save(r); b.setRouteId(r.getRouteId()); // Check for discounts if total price is above 0 if(b.getTotalPrice() > 0) { Discount desiredDiscount; DiscountContext discountContext; DiscountInvoker discountInvoker; if(discountCode.contains("&")) { ArrayList<String> codesUsed = new ArrayList<>(); List<DiscountContext> allDiscounts = new ArrayList<>(); String[] discountCodes = discountCode.split("&"); for(String s : discountCodes) { if(codesUsed.contains(s)) continue; codesUsed.add(s); desiredDiscount = discountRepository.findByCode(s); discountContext = new DiscountContext(desiredDiscount); allDiscounts.add(discountContext); // limit to 5 discounts if(allDiscounts.size() >= 5) break; } ApplyAllDiscounts applyMultipleDiscounts = new ApplyAllDiscounts(allDiscounts); discountInvoker = new DiscountInvoker(applyMultipleDiscounts); } else { desiredDiscount = discountRepository.findByCode(discountCode); discountContext = new DiscountContext(desiredDiscount); ApplyDiscount applySingleDiscount = new ApplyDiscount(discountContext); discountInvoker = new DiscountInvoker(applySingleDiscount); } double discountAmount = discountInvoker.execute(1.0); // limit to 50% off if(discountAmount < 0.5) discountAmount = 0.5; b.setTotalPrice(b.getTotalPrice() * discountAmount); } // Create transaction record corresponding to this booking, start with initial state and move to the next TransactionRecord transactionRecord = new TransactionRecord(b.getTotalPrice(), null); transactionContext.setTransactionRecord(transactionRecord); transactionContext.setTransactionRecordState(new TransactionRecordInitialState()); transactionContext.nextState(); transactionRepository.save(transactionContext.getTransactionRecord()); // Final update to booking parameters b.setTransactionId(transactionContext.getTransactionRecord().getTransactionId()); if(b.getTransactionId() == 0) { return "FAILURE: 3"; } b = bookingRepository.save(b); return "SUCCESS: " + b.toString(); } /** * Update a transaction related to a booking * @param b booking for which the transaction should be updated * @return SUCCESS: booking information if updating was successful, else FAILURE: error code */ @Override public String updateTransaction(Booking b) { // no id supplied if (b.getBookingId() == 0) { return "FAILURE: 1"; } Booking resBooking = bookingRepository.findById(b.getBookingId()).orElse(null); if (resBooking == null) { return "FAILURE: 2"; } TransactionRecord transactionRecord = transactionRepository.findById(resBooking.getTransactionId()).orElse(null); if(transactionRecord == null) { return "FAILURE: 3"; } transactionContext.setTransactionRecord(transactionRecord); transactionContext.nextState(); transactionRepository.save(transactionContext.getTransactionRecord()); return "SUCCESS: " + resBooking.toString() + ", " + transactionContext.getCurrentState(); } /** * Cancel a booking * @param b booking to be cancelled * @return SUCCESS: amount refunded if cancelling was successful, else FAILURE: error code */ @Override public String cancelBooking(Booking b) { // no id supplied if (b.getBookingId() == 0) { return "FAILURE: 1"; } Booking resBooking = bookingRepository.findById(b.getBookingId()).orElse(null); if (resBooking == null) { return "FAILURE: 2"; } TransactionRecord transactionRecord = transactionRepository.findById(resBooking.getTransactionId()).orElse(null); if(transactionRecord == null) { return "FAILURE: 3"; } transactionContext.setTransactionRecord(transactionRecord); double amountReturned = transactionContext.getTransactionRecord().getAmount(); long dayDifference = Long.MAX_VALUE; // If transaction was completed then calculate the amount returned based on when the planned travel date was if(transactionContext.getTransactionRecord().getStatus() == 2) { LocalDateTime currentDateTime = LocalDateTime.now(); LocalDateTime travelDateTime = resBooking.getDateTime().toLocalDateTime(); dayDifference = Duration.between(currentDateTime, travelDateTime).toDays(); if (dayDifference <= 1) { amountReturned = 0; } else if (dayDifference <= 7) { amountReturned = amountReturned / 2; } } transactionContext.cancelTransaction(dayDifference); transactionRepository.save(transactionContext.getTransactionRecord()); bookingRepository.deleteById(b.getBookingId()); return "SUCCESS: " + amountReturned; } }
package com.yoeki.kalpnay.hrporatal.Request; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.util.List; public class GetMasterInfo { @SerializedName("status") @Expose private String status; @SerializedName("message") @Expose private String message; @SerializedName("UserId") @Expose private String UserId; @SerializedName("ListAdvanceMaster") @Expose private List<ListAdvanceMaster_> listAdvanceMaster = null; @SerializedName("ListLeaveType") @Expose private List<ListLeaveType> listLeaveType = null; @SerializedName("ListClaimType") @Expose private List<ListClaimType> listClaimType = null; @SerializedName("ListModeOfTravel") @Expose private List<ListModeOfTravel> listModeOfTravel = null; @SerializedName("ListShiftMaster") @Expose private List<ListShiftMaster> listShiftMaster = null; @SerializedName("ListEmployee") @Expose private List<ListEmployee> listEmployee = null; @SerializedName("ListTraningServiceType") @Expose private List<ListTraningServiceType> listTraningServiceType = null; @SerializedName("ListGreveanceType") @Expose private List<ListGreveanceType> listGreveanceType = null; public List<ListGreveanceType> getListGreveanceType() { return listGreveanceType; } public void setListGreveanceType(List<ListGreveanceType> listGreveanceType) { this.listGreveanceType = listGreveanceType; } public List<ListAdvanceMaster_> getListAdvanceMaster() { return listAdvanceMaster; } public void setListAdvanceMaster(List<ListAdvanceMaster_> listAdvanceMaster) { this.listAdvanceMaster = listAdvanceMaster; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public List<ListEmployee> getListEmployee() { return listEmployee; } public void setListEmployee(List<ListEmployee> listEmployee) { this.listEmployee = listEmployee; } public List<ListLeaveType> getListLeaveType() { return listLeaveType; } public void setListLeaveType(List<ListLeaveType> listLeaveType) { this.listLeaveType = listLeaveType; } public List<ListClaimType> getListClaimType() { return listClaimType; } public void setListClaimType(List<ListClaimType> listClaimType) { this.listClaimType = listClaimType; } public List<ListModeOfTravel> getListModeOfTravel() { return listModeOfTravel; } public void setListModeOfTravel(List<ListModeOfTravel> listModeOfTravel) { this.listModeOfTravel = listModeOfTravel; } public List<ListShiftMaster> getListShiftMaster() { return listShiftMaster; } public void setListShiftMaster(List<ListShiftMaster> listShiftMaster) { this.listShiftMaster = listShiftMaster; } public List<ListTraningServiceType> getListTraningServiceType() { return listTraningServiceType; } public void setListTraningServiceType(List<ListTraningServiceType> listTraningServiceType) { this.listTraningServiceType = listTraningServiceType; } public GetMasterInfo(String UserId){ this.UserId=UserId; } public class ListClaimType { @SerializedName("ClaimTypeId") @Expose private String claimTypeId; @SerializedName("Name") @Expose private String name; public String getClaimTypeId() { return claimTypeId; } public void setClaimTypeId(String claimTypeId) { this.claimTypeId = claimTypeId; } public String getName() { return name; } public void setName(String name) { this.name = name; } } public class ListLeaveType { @SerializedName("LeaveTypeId") @Expose private String leaveTypeId; @SerializedName("name") @Expose private String name; public String getLeaveTypeId() { return leaveTypeId; } public void setLeaveTypeId(String leaveTypeId) { this.leaveTypeId = leaveTypeId; } public String getName() { return name; } public void setName(String name) { this.name = name; } } public class ListModeOfTravel { @SerializedName("ModeOfTravelId") @Expose private String modeOfTravelId; @SerializedName("Name") @Expose private String name; public String getModeOfTravelId() { return modeOfTravelId; } public void setModeOfTravelId(String modeOfTravelId) { this.modeOfTravelId = modeOfTravelId; } public String getName() { return name; } public void setName(String name) { this.name = name; } } public class ListShiftMaster { @SerializedName("ShiftId") @Expose private String shiftId; @SerializedName("Name") @Expose private String name; public String getShiftId() { return shiftId; } public void setShiftId(String shiftId) { this.shiftId = shiftId; } public String getName() { return name; } public void setName(String name) { this.name = name; } } public class ListTraningServiceType { @SerializedName("ServiceTypeId") @Expose private String serviceTypeId; @SerializedName("Name") @Expose private String name; public String getServiceTypeId() { return serviceTypeId; } public void setServiceTypeId(String serviceTypeId) { this.serviceTypeId = serviceTypeId; } public String getName() { return name; } public void setName(String name) { this.name = name; } } public class ListEmployee { @SerializedName("EmpId") @Expose private String empId; @SerializedName("Name") @Expose private String name; public String getEmpId() { return empId; } public void setEmpId(String empId) { this.empId = empId; } public String getName() { return name; } public void setName(String name) { this.name = name; } } public class ListAdvanceMaster_ { @SerializedName("AdvanceMasterId") @Expose private String advanceMasterId; @SerializedName("Name") @Expose private String name; public String getAdvanceMasterId() { return advanceMasterId; } public void setAdvanceMasterId(String advanceMasterId) { this.advanceMasterId = advanceMasterId; } public String getName() { return name; } public void setName(String name) { this.name = name; } } public class ListGreveanceType { @SerializedName("GreveanceTypeId") @Expose private String greveanceTypeId; @SerializedName("Name") @Expose private String name; public String getGreveanceTypeId() { return greveanceTypeId; } public void setGreveanceTypeId(String greveanceTypeId) { this.greveanceTypeId = greveanceTypeId; } public String getName() { return name; } public void setName(String name) { this.name = name; } } }
package com.stem.entity; import java.util.ArrayList; import java.util.Date; import java.util.List; public class UserExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public UserExample() { oredCriteria = new ArrayList<Criteria>(); } public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } public String getOrderByClause() { return orderByClause; } public void setDistinct(boolean distinct) { this.distinct = distinct; } public boolean isDistinct() { return distinct; } public List<Criteria> getOredCriteria() { return oredCriteria; } public void or(Criteria criteria) { oredCriteria.add(criteria); } public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; } public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; } protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; } public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<Criterion>(); } public boolean isValid() { return criteria.size() > 0; } public List<Criterion> getAllCriteria() { return criteria; } public List<Criterion> getCriteria() { return criteria; } protected void addCriterion(String condition) { if (condition == null) { throw new RuntimeException("Value for condition cannot be null"); } criteria.add(new Criterion(condition)); } protected void addCriterion(String condition, Object value, String property) { if (value == null) { throw new RuntimeException("Value for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value)); } protected void addCriterion(String condition, Object value1, Object value2, String property) { if (value1 == null || value2 == null) { throw new RuntimeException("Between values for " + property + " cannot be null"); } criteria.add(new Criterion(condition, value1, value2)); } public Criteria andIdIsNull() { addCriterion("ID is null"); return (Criteria) this; } public Criteria andIdIsNotNull() { addCriterion("ID is not null"); return (Criteria) this; } public Criteria andIdEqualTo(Integer value) { addCriterion("ID =", value, "id"); return (Criteria) this; } public Criteria andIdNotEqualTo(Integer value) { addCriterion("ID <>", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThan(Integer value) { addCriterion("ID >", value, "id"); return (Criteria) this; } public Criteria andIdGreaterThanOrEqualTo(Integer value) { addCriterion("ID >=", value, "id"); return (Criteria) this; } public Criteria andIdLessThan(Integer value) { addCriterion("ID <", value, "id"); return (Criteria) this; } public Criteria andIdLessThanOrEqualTo(Integer value) { addCriterion("ID <=", value, "id"); return (Criteria) this; } public Criteria andIdIn(List<Integer> values) { addCriterion("ID in", values, "id"); return (Criteria) this; } public Criteria andIdNotIn(List<Integer> values) { addCriterion("ID not in", values, "id"); return (Criteria) this; } public Criteria andIdBetween(Integer value1, Integer value2) { addCriterion("ID between", value1, value2, "id"); return (Criteria) this; } public Criteria andIdNotBetween(Integer value1, Integer value2) { addCriterion("ID not between", value1, value2, "id"); return (Criteria) this; } public Criteria andUserTypeCodeIsNull() { addCriterion("USER_TYPE_CODE is null"); return (Criteria) this; } public Criteria andUserTypeCodeIsNotNull() { addCriterion("USER_TYPE_CODE is not null"); return (Criteria) this; } public Criteria andUserTypeCodeEqualTo(String value) { addCriterion("USER_TYPE_CODE =", value, "userTypeCode"); return (Criteria) this; } public Criteria andUserTypeCodeNotEqualTo(String value) { addCriterion("USER_TYPE_CODE <>", value, "userTypeCode"); return (Criteria) this; } public Criteria andUserTypeCodeGreaterThan(String value) { addCriterion("USER_TYPE_CODE >", value, "userTypeCode"); return (Criteria) this; } public Criteria andUserTypeCodeGreaterThanOrEqualTo(String value) { addCriterion("USER_TYPE_CODE >=", value, "userTypeCode"); return (Criteria) this; } public Criteria andUserTypeCodeLessThan(String value) { addCriterion("USER_TYPE_CODE <", value, "userTypeCode"); return (Criteria) this; } public Criteria andUserTypeCodeLessThanOrEqualTo(String value) { addCriterion("USER_TYPE_CODE <=", value, "userTypeCode"); return (Criteria) this; } public Criteria andUserTypeCodeLike(String value) { addCriterion("USER_TYPE_CODE like", value, "userTypeCode"); return (Criteria) this; } public Criteria andUserTypeCodeNotLike(String value) { addCriterion("USER_TYPE_CODE not like", value, "userTypeCode"); return (Criteria) this; } public Criteria andUserTypeCodeIn(List<String> values) { addCriterion("USER_TYPE_CODE in", values, "userTypeCode"); return (Criteria) this; } public Criteria andUserTypeCodeNotIn(List<String> values) { addCriterion("USER_TYPE_CODE not in", values, "userTypeCode"); return (Criteria) this; } public Criteria andUserTypeCodeBetween(String value1, String value2) { addCriterion("USER_TYPE_CODE between", value1, value2, "userTypeCode"); return (Criteria) this; } public Criteria andUserTypeCodeNotBetween(String value1, String value2) { addCriterion("USER_TYPE_CODE not between", value1, value2, "userTypeCode"); return (Criteria) this; } public Criteria andUserNameIsNull() { addCriterion("USER_NAME is null"); return (Criteria) this; } public Criteria andUserNameIsNotNull() { addCriterion("USER_NAME is not null"); return (Criteria) this; } public Criteria andUserNameEqualTo(String value) { addCriterion("USER_NAME =", value, "userName"); return (Criteria) this; } public Criteria andUserNameNotEqualTo(String value) { addCriterion("USER_NAME <>", value, "userName"); return (Criteria) this; } public Criteria andUserNameGreaterThan(String value) { addCriterion("USER_NAME >", value, "userName"); return (Criteria) this; } public Criteria andUserNameGreaterThanOrEqualTo(String value) { addCriterion("USER_NAME >=", value, "userName"); return (Criteria) this; } public Criteria andUserNameLessThan(String value) { addCriterion("USER_NAME <", value, "userName"); return (Criteria) this; } public Criteria andUserNameLessThanOrEqualTo(String value) { addCriterion("USER_NAME <=", value, "userName"); return (Criteria) this; } public Criteria andUserNameLike(String value) { addCriterion("USER_NAME like", value, "userName"); return (Criteria) this; } public Criteria andUserNameNotLike(String value) { addCriterion("USER_NAME not like", value, "userName"); return (Criteria) this; } public Criteria andUserNameIn(List<String> values) { addCriterion("USER_NAME in", values, "userName"); return (Criteria) this; } public Criteria andUserNameNotIn(List<String> values) { addCriterion("USER_NAME not in", values, "userName"); return (Criteria) this; } public Criteria andUserNameBetween(String value1, String value2) { addCriterion("USER_NAME between", value1, value2, "userName"); return (Criteria) this; } public Criteria andUserNameNotBetween(String value1, String value2) { addCriterion("USER_NAME not between", value1, value2, "userName"); return (Criteria) this; } public Criteria andPasswordIsNull() { addCriterion("PASSWORD is null"); return (Criteria) this; } public Criteria andPasswordIsNotNull() { addCriterion("PASSWORD is not null"); return (Criteria) this; } public Criteria andPasswordEqualTo(String value) { addCriterion("PASSWORD =", value, "password"); return (Criteria) this; } public Criteria andPasswordNotEqualTo(String value) { addCriterion("PASSWORD <>", value, "password"); return (Criteria) this; } public Criteria andPasswordGreaterThan(String value) { addCriterion("PASSWORD >", value, "password"); return (Criteria) this; } public Criteria andPasswordGreaterThanOrEqualTo(String value) { addCriterion("PASSWORD >=", value, "password"); return (Criteria) this; } public Criteria andPasswordLessThan(String value) { addCriterion("PASSWORD <", value, "password"); return (Criteria) this; } public Criteria andPasswordLessThanOrEqualTo(String value) { addCriterion("PASSWORD <=", value, "password"); return (Criteria) this; } public Criteria andPasswordLike(String value) { addCriterion("PASSWORD like", value, "password"); return (Criteria) this; } public Criteria andPasswordNotLike(String value) { addCriterion("PASSWORD not like", value, "password"); return (Criteria) this; } public Criteria andPasswordIn(List<String> values) { addCriterion("PASSWORD in", values, "password"); return (Criteria) this; } public Criteria andPasswordNotIn(List<String> values) { addCriterion("PASSWORD not in", values, "password"); return (Criteria) this; } public Criteria andPasswordBetween(String value1, String value2) { addCriterion("PASSWORD between", value1, value2, "password"); return (Criteria) this; } public Criteria andPasswordNotBetween(String value1, String value2) { addCriterion("PASSWORD not between", value1, value2, "password"); return (Criteria) this; } public Criteria andMobileIsNull() { addCriterion("MOBILE is null"); return (Criteria) this; } public Criteria andMobileIsNotNull() { addCriterion("MOBILE is not null"); return (Criteria) this; } public Criteria andMobileEqualTo(String value) { addCriterion("MOBILE =", value, "mobile"); return (Criteria) this; } public Criteria andMobileNotEqualTo(String value) { addCriterion("MOBILE <>", value, "mobile"); return (Criteria) this; } public Criteria andMobileGreaterThan(String value) { addCriterion("MOBILE >", value, "mobile"); return (Criteria) this; } public Criteria andMobileGreaterThanOrEqualTo(String value) { addCriterion("MOBILE >=", value, "mobile"); return (Criteria) this; } public Criteria andMobileLessThan(String value) { addCriterion("MOBILE <", value, "mobile"); return (Criteria) this; } public Criteria andMobileLessThanOrEqualTo(String value) { addCriterion("MOBILE <=", value, "mobile"); return (Criteria) this; } public Criteria andMobileLike(String value) { addCriterion("MOBILE like", value, "mobile"); return (Criteria) this; } public Criteria andMobileNotLike(String value) { addCriterion("MOBILE not like", value, "mobile"); return (Criteria) this; } public Criteria andMobileIn(List<String> values) { addCriterion("MOBILE in", values, "mobile"); return (Criteria) this; } public Criteria andMobileNotIn(List<String> values) { addCriterion("MOBILE not in", values, "mobile"); return (Criteria) this; } public Criteria andMobileBetween(String value1, String value2) { addCriterion("MOBILE between", value1, value2, "mobile"); return (Criteria) this; } public Criteria andMobileNotBetween(String value1, String value2) { addCriterion("MOBILE not between", value1, value2, "mobile"); return (Criteria) this; } public Criteria andNickNameIsNull() { addCriterion("NICK_NAME is null"); return (Criteria) this; } public Criteria andNickNameIsNotNull() { addCriterion("NICK_NAME is not null"); return (Criteria) this; } public Criteria andNickNameEqualTo(String value) { addCriterion("NICK_NAME =", value, "nickName"); return (Criteria) this; } public Criteria andNickNameNotEqualTo(String value) { addCriterion("NICK_NAME <>", value, "nickName"); return (Criteria) this; } public Criteria andNickNameGreaterThan(String value) { addCriterion("NICK_NAME >", value, "nickName"); return (Criteria) this; } public Criteria andNickNameGreaterThanOrEqualTo(String value) { addCriterion("NICK_NAME >=", value, "nickName"); return (Criteria) this; } public Criteria andNickNameLessThan(String value) { addCriterion("NICK_NAME <", value, "nickName"); return (Criteria) this; } public Criteria andNickNameLessThanOrEqualTo(String value) { addCriterion("NICK_NAME <=", value, "nickName"); return (Criteria) this; } public Criteria andNickNameLike(String value) { addCriterion("NICK_NAME like", value, "nickName"); return (Criteria) this; } public Criteria andNickNameNotLike(String value) { addCriterion("NICK_NAME not like", value, "nickName"); return (Criteria) this; } public Criteria andNickNameIn(List<String> values) { addCriterion("NICK_NAME in", values, "nickName"); return (Criteria) this; } public Criteria andNickNameNotIn(List<String> values) { addCriterion("NICK_NAME not in", values, "nickName"); return (Criteria) this; } public Criteria andNickNameBetween(String value1, String value2) { addCriterion("NICK_NAME between", value1, value2, "nickName"); return (Criteria) this; } public Criteria andNickNameNotBetween(String value1, String value2) { addCriterion("NICK_NAME not between", value1, value2, "nickName"); return (Criteria) this; } public Criteria andInviteCodeIsNull() { addCriterion("INVITE_CODE is null"); return (Criteria) this; } public Criteria andInviteCodeIsNotNull() { addCriterion("INVITE_CODE is not null"); return (Criteria) this; } public Criteria andInviteCodeEqualTo(String value) { addCriterion("INVITE_CODE =", value, "inviteCode"); return (Criteria) this; } public Criteria andInviteCodeNotEqualTo(String value) { addCriterion("INVITE_CODE <>", value, "inviteCode"); return (Criteria) this; } public Criteria andInviteCodeGreaterThan(String value) { addCriterion("INVITE_CODE >", value, "inviteCode"); return (Criteria) this; } public Criteria andInviteCodeGreaterThanOrEqualTo(String value) { addCriterion("INVITE_CODE >=", value, "inviteCode"); return (Criteria) this; } public Criteria andInviteCodeLessThan(String value) { addCriterion("INVITE_CODE <", value, "inviteCode"); return (Criteria) this; } public Criteria andInviteCodeLessThanOrEqualTo(String value) { addCriterion("INVITE_CODE <=", value, "inviteCode"); return (Criteria) this; } public Criteria andInviteCodeLike(String value) { addCriterion("INVITE_CODE like", value, "inviteCode"); return (Criteria) this; } public Criteria andInviteCodeNotLike(String value) { addCriterion("INVITE_CODE not like", value, "inviteCode"); return (Criteria) this; } public Criteria andInviteCodeIn(List<String> values) { addCriterion("INVITE_CODE in", values, "inviteCode"); return (Criteria) this; } public Criteria andInviteCodeNotIn(List<String> values) { addCriterion("INVITE_CODE not in", values, "inviteCode"); return (Criteria) this; } public Criteria andInviteCodeBetween(String value1, String value2) { addCriterion("INVITE_CODE between", value1, value2, "inviteCode"); return (Criteria) this; } public Criteria andInviteCodeNotBetween(String value1, String value2) { addCriterion("INVITE_CODE not between", value1, value2, "inviteCode"); return (Criteria) this; } public Criteria andLableCodeIsNull() { addCriterion("LABLE_CODE is null"); return (Criteria) this; } public Criteria andLableCodeIsNotNull() { addCriterion("LABLE_CODE is not null"); return (Criteria) this; } public Criteria andLableCodeEqualTo(String value) { addCriterion("LABLE_CODE =", value, "lableCode"); return (Criteria) this; } public Criteria andLableCodeNotEqualTo(String value) { addCriterion("LABLE_CODE <>", value, "lableCode"); return (Criteria) this; } public Criteria andLableCodeGreaterThan(String value) { addCriterion("LABLE_CODE >", value, "lableCode"); return (Criteria) this; } public Criteria andLableCodeGreaterThanOrEqualTo(String value) { addCriterion("LABLE_CODE >=", value, "lableCode"); return (Criteria) this; } public Criteria andLableCodeLessThan(String value) { addCriterion("LABLE_CODE <", value, "lableCode"); return (Criteria) this; } public Criteria andLableCodeLessThanOrEqualTo(String value) { addCriterion("LABLE_CODE <=", value, "lableCode"); return (Criteria) this; } public Criteria andLableCodeLike(String value) { addCriterion("LABLE_CODE like", value, "lableCode"); return (Criteria) this; } public Criteria andLableCodeNotLike(String value) { addCriterion("LABLE_CODE not like", value, "lableCode"); return (Criteria) this; } public Criteria andLableCodeIn(List<String> values) { addCriterion("LABLE_CODE in", values, "lableCode"); return (Criteria) this; } public Criteria andLableCodeNotIn(List<String> values) { addCriterion("LABLE_CODE not in", values, "lableCode"); return (Criteria) this; } public Criteria andLableCodeBetween(String value1, String value2) { addCriterion("LABLE_CODE between", value1, value2, "lableCode"); return (Criteria) this; } public Criteria andLableCodeNotBetween(String value1, String value2) { addCriterion("LABLE_CODE not between", value1, value2, "lableCode"); return (Criteria) this; } public Criteria andIntoGuideIsNull() { addCriterion("INTO_GUIDE is null"); return (Criteria) this; } public Criteria andIntoGuideIsNotNull() { addCriterion("INTO_GUIDE is not null"); return (Criteria) this; } public Criteria andIntoGuideEqualTo(String value) { addCriterion("INTO_GUIDE =", value, "intoGuide"); return (Criteria) this; } public Criteria andIntoGuideNotEqualTo(String value) { addCriterion("INTO_GUIDE <>", value, "intoGuide"); return (Criteria) this; } public Criteria andIntoGuideGreaterThan(String value) { addCriterion("INTO_GUIDE >", value, "intoGuide"); return (Criteria) this; } public Criteria andIntoGuideGreaterThanOrEqualTo(String value) { addCriterion("INTO_GUIDE >=", value, "intoGuide"); return (Criteria) this; } public Criteria andIntoGuideLessThan(String value) { addCriterion("INTO_GUIDE <", value, "intoGuide"); return (Criteria) this; } public Criteria andIntoGuideLessThanOrEqualTo(String value) { addCriterion("INTO_GUIDE <=", value, "intoGuide"); return (Criteria) this; } public Criteria andIntoGuideLike(String value) { addCriterion("INTO_GUIDE like", value, "intoGuide"); return (Criteria) this; } public Criteria andIntoGuideNotLike(String value) { addCriterion("INTO_GUIDE not like", value, "intoGuide"); return (Criteria) this; } public Criteria andIntoGuideIn(List<String> values) { addCriterion("INTO_GUIDE in", values, "intoGuide"); return (Criteria) this; } public Criteria andIntoGuideNotIn(List<String> values) { addCriterion("INTO_GUIDE not in", values, "intoGuide"); return (Criteria) this; } public Criteria andIntoGuideBetween(String value1, String value2) { addCriterion("INTO_GUIDE between", value1, value2, "intoGuide"); return (Criteria) this; } public Criteria andIntoGuideNotBetween(String value1, String value2) { addCriterion("INTO_GUIDE not between", value1, value2, "intoGuide"); return (Criteria) this; } public Criteria andFunctionGuideIsNull() { addCriterion("FUNCTION_GUIDE is null"); return (Criteria) this; } public Criteria andFunctionGuideIsNotNull() { addCriterion("FUNCTION_GUIDE is not null"); return (Criteria) this; } public Criteria andFunctionGuideEqualTo(String value) { addCriterion("FUNCTION_GUIDE =", value, "functionGuide"); return (Criteria) this; } public Criteria andFunctionGuideNotEqualTo(String value) { addCriterion("FUNCTION_GUIDE <>", value, "functionGuide"); return (Criteria) this; } public Criteria andFunctionGuideGreaterThan(String value) { addCriterion("FUNCTION_GUIDE >", value, "functionGuide"); return (Criteria) this; } public Criteria andFunctionGuideGreaterThanOrEqualTo(String value) { addCriterion("FUNCTION_GUIDE >=", value, "functionGuide"); return (Criteria) this; } public Criteria andFunctionGuideLessThan(String value) { addCriterion("FUNCTION_GUIDE <", value, "functionGuide"); return (Criteria) this; } public Criteria andFunctionGuideLessThanOrEqualTo(String value) { addCriterion("FUNCTION_GUIDE <=", value, "functionGuide"); return (Criteria) this; } public Criteria andFunctionGuideLike(String value) { addCriterion("FUNCTION_GUIDE like", value, "functionGuide"); return (Criteria) this; } public Criteria andFunctionGuideNotLike(String value) { addCriterion("FUNCTION_GUIDE not like", value, "functionGuide"); return (Criteria) this; } public Criteria andFunctionGuideIn(List<String> values) { addCriterion("FUNCTION_GUIDE in", values, "functionGuide"); return (Criteria) this; } public Criteria andFunctionGuideNotIn(List<String> values) { addCriterion("FUNCTION_GUIDE not in", values, "functionGuide"); return (Criteria) this; } public Criteria andFunctionGuideBetween(String value1, String value2) { addCriterion("FUNCTION_GUIDE between", value1, value2, "functionGuide"); return (Criteria) this; } public Criteria andFunctionGuideNotBetween(String value1, String value2) { addCriterion("FUNCTION_GUIDE not between", value1, value2, "functionGuide"); return (Criteria) this; } public Criteria andWxOpenIdIsNull() { addCriterion("WX_OPEN_ID is null"); return (Criteria) this; } public Criteria andWxOpenIdIsNotNull() { addCriterion("WX_OPEN_ID is not null"); return (Criteria) this; } public Criteria andWxOpenIdEqualTo(String value) { addCriterion("WX_OPEN_ID =", value, "wxOpenId"); return (Criteria) this; } public Criteria andWxOpenIdNotEqualTo(String value) { addCriterion("WX_OPEN_ID <>", value, "wxOpenId"); return (Criteria) this; } public Criteria andWxOpenIdGreaterThan(String value) { addCriterion("WX_OPEN_ID >", value, "wxOpenId"); return (Criteria) this; } public Criteria andWxOpenIdGreaterThanOrEqualTo(String value) { addCriterion("WX_OPEN_ID >=", value, "wxOpenId"); return (Criteria) this; } public Criteria andWxOpenIdLessThan(String value) { addCriterion("WX_OPEN_ID <", value, "wxOpenId"); return (Criteria) this; } public Criteria andWxOpenIdLessThanOrEqualTo(String value) { addCriterion("WX_OPEN_ID <=", value, "wxOpenId"); return (Criteria) this; } public Criteria andWxOpenIdLike(String value) { addCriterion("WX_OPEN_ID like", value, "wxOpenId"); return (Criteria) this; } public Criteria andWxOpenIdNotLike(String value) { addCriterion("WX_OPEN_ID not like", value, "wxOpenId"); return (Criteria) this; } public Criteria andWxOpenIdIn(List<String> values) { addCriterion("WX_OPEN_ID in", values, "wxOpenId"); return (Criteria) this; } public Criteria andWxOpenIdNotIn(List<String> values) { addCriterion("WX_OPEN_ID not in", values, "wxOpenId"); return (Criteria) this; } public Criteria andWxOpenIdBetween(String value1, String value2) { addCriterion("WX_OPEN_ID between", value1, value2, "wxOpenId"); return (Criteria) this; } public Criteria andWxOpenIdNotBetween(String value1, String value2) { addCriterion("WX_OPEN_ID not between", value1, value2, "wxOpenId"); return (Criteria) this; } public Criteria andWxNickIsNull() { addCriterion("WX_NICK is null"); return (Criteria) this; } public Criteria andWxNickIsNotNull() { addCriterion("WX_NICK is not null"); return (Criteria) this; } public Criteria andWxNickEqualTo(String value) { addCriterion("WX_NICK =", value, "wxNick"); return (Criteria) this; } public Criteria andWxNickNotEqualTo(String value) { addCriterion("WX_NICK <>", value, "wxNick"); return (Criteria) this; } public Criteria andWxNickGreaterThan(String value) { addCriterion("WX_NICK >", value, "wxNick"); return (Criteria) this; } public Criteria andWxNickGreaterThanOrEqualTo(String value) { addCriterion("WX_NICK >=", value, "wxNick"); return (Criteria) this; } public Criteria andWxNickLessThan(String value) { addCriterion("WX_NICK <", value, "wxNick"); return (Criteria) this; } public Criteria andWxNickLessThanOrEqualTo(String value) { addCriterion("WX_NICK <=", value, "wxNick"); return (Criteria) this; } public Criteria andWxNickLike(String value) { addCriterion("WX_NICK like", value, "wxNick"); return (Criteria) this; } public Criteria andWxNickNotLike(String value) { addCriterion("WX_NICK not like", value, "wxNick"); return (Criteria) this; } public Criteria andWxNickIn(List<String> values) { addCriterion("WX_NICK in", values, "wxNick"); return (Criteria) this; } public Criteria andWxNickNotIn(List<String> values) { addCriterion("WX_NICK not in", values, "wxNick"); return (Criteria) this; } public Criteria andWxNickBetween(String value1, String value2) { addCriterion("WX_NICK between", value1, value2, "wxNick"); return (Criteria) this; } public Criteria andWxNickNotBetween(String value1, String value2) { addCriterion("WX_NICK not between", value1, value2, "wxNick"); return (Criteria) this; } public Criteria andMemberLevelCodeIsNull() { addCriterion("MEMBER_LEVEL_CODE is null"); return (Criteria) this; } public Criteria andMemberLevelCodeIsNotNull() { addCriterion("MEMBER_LEVEL_CODE is not null"); return (Criteria) this; } public Criteria andMemberLevelCodeEqualTo(String value) { addCriterion("MEMBER_LEVEL_CODE =", value, "memberLevelCode"); return (Criteria) this; } public Criteria andMemberLevelCodeNotEqualTo(String value) { addCriterion("MEMBER_LEVEL_CODE <>", value, "memberLevelCode"); return (Criteria) this; } public Criteria andMemberLevelCodeGreaterThan(String value) { addCriterion("MEMBER_LEVEL_CODE >", value, "memberLevelCode"); return (Criteria) this; } public Criteria andMemberLevelCodeGreaterThanOrEqualTo(String value) { addCriterion("MEMBER_LEVEL_CODE >=", value, "memberLevelCode"); return (Criteria) this; } public Criteria andMemberLevelCodeLessThan(String value) { addCriterion("MEMBER_LEVEL_CODE <", value, "memberLevelCode"); return (Criteria) this; } public Criteria andMemberLevelCodeLessThanOrEqualTo(String value) { addCriterion("MEMBER_LEVEL_CODE <=", value, "memberLevelCode"); return (Criteria) this; } public Criteria andMemberLevelCodeLike(String value) { addCriterion("MEMBER_LEVEL_CODE like", value, "memberLevelCode"); return (Criteria) this; } public Criteria andMemberLevelCodeNotLike(String value) { addCriterion("MEMBER_LEVEL_CODE not like", value, "memberLevelCode"); return (Criteria) this; } public Criteria andMemberLevelCodeIn(List<String> values) { addCriterion("MEMBER_LEVEL_CODE in", values, "memberLevelCode"); return (Criteria) this; } public Criteria andMemberLevelCodeNotIn(List<String> values) { addCriterion("MEMBER_LEVEL_CODE not in", values, "memberLevelCode"); return (Criteria) this; } public Criteria andMemberLevelCodeBetween(String value1, String value2) { addCriterion("MEMBER_LEVEL_CODE between", value1, value2, "memberLevelCode"); return (Criteria) this; } public Criteria andMemberLevelCodeNotBetween(String value1, String value2) { addCriterion("MEMBER_LEVEL_CODE not between", value1, value2, "memberLevelCode"); return (Criteria) this; } public Criteria andParentUserNameIsNull() { addCriterion("PARENT_USER_NAME is null"); return (Criteria) this; } public Criteria andParentUserNameIsNotNull() { addCriterion("PARENT_USER_NAME is not null"); return (Criteria) this; } public Criteria andParentUserNameEqualTo(String value) { addCriterion("PARENT_USER_NAME =", value, "parentUserName"); return (Criteria) this; } public Criteria andParentUserNameNotEqualTo(String value) { addCriterion("PARENT_USER_NAME <>", value, "parentUserName"); return (Criteria) this; } public Criteria andParentUserNameGreaterThan(String value) { addCriterion("PARENT_USER_NAME >", value, "parentUserName"); return (Criteria) this; } public Criteria andParentUserNameGreaterThanOrEqualTo(String value) { addCriterion("PARENT_USER_NAME >=", value, "parentUserName"); return (Criteria) this; } public Criteria andParentUserNameLessThan(String value) { addCriterion("PARENT_USER_NAME <", value, "parentUserName"); return (Criteria) this; } public Criteria andParentUserNameLessThanOrEqualTo(String value) { addCriterion("PARENT_USER_NAME <=", value, "parentUserName"); return (Criteria) this; } public Criteria andParentUserNameLike(String value) { addCriterion("PARENT_USER_NAME like", value, "parentUserName"); return (Criteria) this; } public Criteria andParentUserNameNotLike(String value) { addCriterion("PARENT_USER_NAME not like", value, "parentUserName"); return (Criteria) this; } public Criteria andParentUserNameIn(List<String> values) { addCriterion("PARENT_USER_NAME in", values, "parentUserName"); return (Criteria) this; } public Criteria andParentUserNameNotIn(List<String> values) { addCriterion("PARENT_USER_NAME not in", values, "parentUserName"); return (Criteria) this; } public Criteria andParentUserNameBetween(String value1, String value2) { addCriterion("PARENT_USER_NAME between", value1, value2, "parentUserName"); return (Criteria) this; } public Criteria andParentUserNameNotBetween(String value1, String value2) { addCriterion("PARENT_USER_NAME not between", value1, value2, "parentUserName"); return (Criteria) this; } public Criteria andCreateTimeIsNull() { addCriterion("CREATE_TIME is null"); return (Criteria) this; } public Criteria andCreateTimeIsNotNull() { addCriterion("CREATE_TIME is not null"); return (Criteria) this; } public Criteria andCreateTimeEqualTo(Date value) { addCriterion("CREATE_TIME =", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotEqualTo(Date value) { addCriterion("CREATE_TIME <>", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThan(Date value) { addCriterion("CREATE_TIME >", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { addCriterion("CREATE_TIME >=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThan(Date value) { addCriterion("CREATE_TIME <", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeLessThanOrEqualTo(Date value) { addCriterion("CREATE_TIME <=", value, "createTime"); return (Criteria) this; } public Criteria andCreateTimeIn(List<Date> values) { addCriterion("CREATE_TIME in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotIn(List<Date> values) { addCriterion("CREATE_TIME not in", values, "createTime"); return (Criteria) this; } public Criteria andCreateTimeBetween(Date value1, Date value2) { addCriterion("CREATE_TIME between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andCreateTimeNotBetween(Date value1, Date value2) { addCriterion("CREATE_TIME not between", value1, value2, "createTime"); return (Criteria) this; } public Criteria andDeleteLableIsNull() { addCriterion("DELETE_LABLE is null"); return (Criteria) this; } public Criteria andDeleteLableIsNotNull() { addCriterion("DELETE_LABLE is not null"); return (Criteria) this; } public Criteria andDeleteLableEqualTo(String value) { addCriterion("DELETE_LABLE =", value, "deleteLable"); return (Criteria) this; } public Criteria andDeleteLableNotEqualTo(String value) { addCriterion("DELETE_LABLE <>", value, "deleteLable"); return (Criteria) this; } public Criteria andDeleteLableGreaterThan(String value) { addCriterion("DELETE_LABLE >", value, "deleteLable"); return (Criteria) this; } public Criteria andDeleteLableGreaterThanOrEqualTo(String value) { addCriterion("DELETE_LABLE >=", value, "deleteLable"); return (Criteria) this; } public Criteria andDeleteLableLessThan(String value) { addCriterion("DELETE_LABLE <", value, "deleteLable"); return (Criteria) this; } public Criteria andDeleteLableLessThanOrEqualTo(String value) { addCriterion("DELETE_LABLE <=", value, "deleteLable"); return (Criteria) this; } public Criteria andDeleteLableLike(String value) { addCriterion("DELETE_LABLE like", value, "deleteLable"); return (Criteria) this; } public Criteria andDeleteLableNotLike(String value) { addCriterion("DELETE_LABLE not like", value, "deleteLable"); return (Criteria) this; } public Criteria andDeleteLableIn(List<String> values) { addCriterion("DELETE_LABLE in", values, "deleteLable"); return (Criteria) this; } public Criteria andDeleteLableNotIn(List<String> values) { addCriterion("DELETE_LABLE not in", values, "deleteLable"); return (Criteria) this; } public Criteria andDeleteLableBetween(String value1, String value2) { addCriterion("DELETE_LABLE between", value1, value2, "deleteLable"); return (Criteria) this; } public Criteria andDeleteLableNotBetween(String value1, String value2) { addCriterion("DELETE_LABLE not between", value1, value2, "deleteLable"); return (Criteria) this; } } public static class Criteria extends GeneratedCriteria { protected Criteria() { super(); } } public static class Criterion { private String condition; private Object value; private Object secondValue; private boolean noValue; private boolean singleValue; private boolean betweenValue; private boolean listValue; private String typeHandler; public String getCondition() { return condition; } public Object getValue() { return value; } public Object getSecondValue() { return secondValue; } public boolean isNoValue() { return noValue; } public boolean isSingleValue() { return singleValue; } public boolean isBetweenValue() { return betweenValue; } public boolean isListValue() { return listValue; } public String getTypeHandler() { return typeHandler; } protected Criterion(String condition) { super(); this.condition = condition; this.typeHandler = null; this.noValue = true; } protected Criterion(String condition, Object value, String typeHandler) { super(); this.condition = condition; this.value = value; this.typeHandler = typeHandler; if (value instanceof List<?>) { this.listValue = true; } else { this.singleValue = true; } } protected Criterion(String condition, Object value) { this(condition, value, null); } protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { super(); this.condition = condition; this.value = value; this.secondValue = secondValue; this.typeHandler = typeHandler; this.betweenValue = true; } protected Criterion(String condition, Object value, Object secondValue) { this(condition, value, secondValue, null); } } }
package org.browsexml.timesheetjob.dao; import java.sql.Connection; import java.sql.Date; import java.util.List; import org.browsexml.timesheetjob.model.Agreements; import org.browsexml.timesheetjob.model.Awarded; import org.browsexml.timesheetjob.model.FulltimeAgreements; import org.browsexml.timesheetjob.model.People; import org.browsexml.timesheetjob.model.PeopleProperties; public interface PeoplePropertiesDao { public void save(PeopleProperties person); public PeopleProperties getPersonBySsn(String ssn); public PeopleProperties getPeopleProperties(String peopleId); public boolean isHoursManager(String peopleId); public PeopleProperties getPerson(String peopleId); public void removePerson(Integer id); public boolean isManagedBy(PeopleProperties person, String managerId); public List<PeopleProperties> getUnapproved(); boolean isManagedByBusoff(PeopleProperties person, String managerId); public List<People> getSupervisorsEmployees(String lastName, String firstName, String superPeopleId, Integer pageNumber, Date studentUnapprovedFrom, Date employeeUnapprovedFrom, Integer showGroup); public List<FulltimeAgreements> getFulltimeAgreements(String peopleId); public List<Agreements> getStudentAgreements(String peopleId, java.util.Date date); public List<Awarded> getStudentAwards(String peopleId, java.util.Date date); public List<People> updateNames(List<People> correctList); Connection getConnection(); String getLastQuery(); }
package com.example.ahmed.octopusmart.Util; import android.content.Context; import android.content.SharedPreferences; import android.support.annotation.NonNull; import android.util.DisplayMetrics; import android.util.TypedValue; /** * Created by Ahmed on 10/30/2017. */ public class DisplayUtils { private final static String PREFERENCE_DISPLAY = "PREFERENCE_DISPLAY"; private final static String KEY_VIEW_MODE = "KEY_VIEW_MODE"; public static int dpToPx(float dp, @NonNull Context context){ return (int) TypedValue.applyDimension( TypedValue.COMPLEX_UNIT_DIP, dp, context.getResources().getDisplayMetrics() ); } public static int pxToDp(float px, @NonNull Context context){ DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics(); return Math.round(px / (displayMetrics.xdpi / DisplayMetrics.DENSITY_DEFAULT)); } }
package com.example.httpclient.demohttpclient.cpntroller; import com.alibaba.fastjson.JSON; import com.example.httpclient.demohttpclient.entity.User; import org.apache.http.HttpEntity; import org.apache.http.NameValuePair; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.client.utils.URIBuilder; import org.apache.http.entity.ContentType; import org.apache.http.entity.InputStreamEntity; import org.apache.http.entity.StringEntity; import org.apache.http.entity.mime.MultipartEntityBuilder; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClientBuilder; import org.apache.http.message.BasicNameValuePair; import org.apache.http.util.EntityUtils; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.net.URI; import java.net.URLEncoder; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; @RestController public class SendController { /** * 不带参数的请求 */ @GetMapping(value = "/sendNoParam") public void sendNoParam(){ //获取httpclient客户端 CloseableHttpClient closeableHttpClient = HttpClientBuilder.create().build(); //创建get请求 HttpGet httpGet = new HttpGet("http://localhost:8080/get"); //响应模型 CloseableHttpResponse closeableHttpResponse = null; try { //客户端发起get请求 closeableHttpResponse = closeableHttpClient.execute(httpGet); //从响应模型中获取响应实体 HttpEntity httpEntity = closeableHttpResponse.getEntity(); if (httpEntity != null){ System.out.println("响应状态:" + closeableHttpResponse.getStatusLine()); System.out.println("响应内容:" + EntityUtils.toString(httpEntity)); } }catch (Exception e){ }finally { try { //释放资源 if (closeableHttpClient != null){ closeableHttpClient.close(); } if (closeableHttpResponse != null){ closeableHttpResponse.close(); } }catch (Exception e){ } } } /** * 带参数的请求 参数使用StringBuffer拼接 * @param myname * @param myage */ @GetMapping(value = "/sendWithParam") public void sendWithParam(String myname, String myage){ //请求客户端 CloseableHttpClient closeableHttpClient = HttpClientBuilder.create().build(); //请求参数 param拼接 StringBuffer param = new StringBuffer(); param.append("myname="+myname); param.append("&myage="+myage); //请求方式 HttpGet httpGet = new HttpGet("http://localhost:8080/getWithParam?" + param); //配置httpGet请求的信息 RequestConfig requestConfig = RequestConfig.custom() .setConnectTimeout(5000) //连接超时时间 .setConnectionRequestTimeout(5000) //请求超时时间 .setSocketTimeout(5000) //socket读写超时时间 .setRedirectsEnabled(true) //是否允许重定向 .build(); httpGet.setConfig(requestConfig); //响应模型 CloseableHttpResponse response = null; try { //发起请求 response = closeableHttpClient.execute(httpGet); //请求内容 HttpEntity httpEntity = response.getEntity(); System.out.println("请求状态: " + response.getStatusLine()); System.out.println("请求内容: " + EntityUtils.toString(httpEntity)); }catch (Exception e){ }finally { try { if (closeableHttpClient != null){ closeableHttpClient.close(); } if (response != null){ response.close(); } }catch (Exception e){ } } } /** * 带参数的请求 使用URIBuilder + List<NameValuePair>构建 * @param myname * @param myage */ @GetMapping(value = "sendWithParamUri") public void sendWithParamUri(String myname, String myage){ //客户端 CloseableHttpClient httpClient = HttpClientBuilder.create().build(); //请求参数: List<NameValuePair> params = new ArrayList<>(); params.add(new BasicNameValuePair("myname", myname)); params.add(new BasicNameValuePair("myage", myage)); //构建uri URI uri = null; try { uri = new URIBuilder().setScheme("http") .setHost("localhost").setPort(8080).setPath("getWithParam") .setParameters(params).build(); }catch (Exception e){ } //请求方式 HttpGet httpGet = new HttpGet(uri); //响应模型 CloseableHttpResponse response = null; try { //发起请求 response = httpClient.execute(httpGet); //响应内容 HttpEntity httpEntity = response.getEntity(); System.out.println("响应状态: " + response.getStatusLine()); System.out.println("响应内容: " + EntityUtils.toString(httpEntity)); }catch (Exception e){ }finally { try { //释放资源 if (httpClient != null){ httpClient.close(); } if (response != null){ response.close(); } }catch (Exception e){ } } } /** * httpclient不带参数的post请求 */ @GetMapping(value = "/sendWithPostNoParam") public void sendWithPostNoParam(){ //请求客户端 CloseableHttpClient httpClient = HttpClientBuilder.create().build(); //请求方式 HttpPost httpPost = new HttpPost("http://localhost:8080/postWithNoParam"); //请求配置 RequestConfig requestConfig = RequestConfig.custom() .setRedirectsEnabled(false) .setSocketTimeout(5000) .setConnectTimeout(5000) .setConnectionRequestTimeout(5000) .build(); httpPost.setConfig(requestConfig); //响应模型 CloseableHttpResponse response = null; try { response = httpClient.execute(httpPost); HttpEntity httpEntity = response.getEntity(); System.out.println("请求状态: " + response.getStatusLine()); System.out.println("请求内容: " + EntityUtils.toString(httpEntity)); }catch (Exception e){ }finally { try { if (httpClient != null){ httpClient.close(); } if (response != null){ response.close(); } }catch (Exception e){ } } } /** * httpclient带普通参数的post请求 * @param name * @param age */ @GetMapping(value = "/sendWithPostParam") public void sendWithPostParam(String name, String age){ //客户端 CloseableHttpClient httpClient = HttpClientBuilder.create().build(); //请求参数 List<NameValuePair> params = new ArrayList<>(); params.add(new BasicNameValuePair("name", name)); params.add(new BasicNameValuePair("age", age)); //uri URI uri = null; try { uri = new URIBuilder().setScheme("http").setHost("localhost") .setPort(8080).setPath("postWithParam") .setParameters(params).build(); }catch (Exception e){ } //请求方式 HttpPost httpPost = new HttpPost(uri); //响应模型 CloseableHttpResponse response = null; try { response = httpClient.execute(httpPost); //响应内容 HttpEntity httpEntity = response.getEntity(); System.out.println("响应状态: " + response.getStatusLine()); System.out.println("响应内容: " + EntityUtils.toString(httpEntity)); }catch (Exception e){ }finally { try { if (httpClient != null){ httpClient.close(); } if (response != null){ response = null; } }catch (Exception e){ } } } /** * httpclient的form post表单请求 * Content-Type:application/x-www-form-urlencoded * @param name * @param age */ @GetMapping(value = "/sendWithPostForm") public void sendWithPostForm(String name, String age){ //客户端 CloseableHttpClient httpClient = HttpClientBuilder.create().build(); //请求form表单 List<NameValuePair> params = new ArrayList<>(); params.add(new BasicNameValuePair("name", name)); params.add(new BasicNameValuePair("age", age)); //表单请求 UrlEncodedFormEntity formEntity = new UrlEncodedFormEntity(params, StandardCharsets.UTF_8); //请求方式 HttpPost httpPost = new HttpPost("http://localhost:8080/postWithParam"); httpPost.setEntity(formEntity); //设置请求头为表单发送方式 httpPost.setHeader("Content-Type", "application/x-www-form-urlencoded"); //响应模型 CloseableHttpResponse response = null; try { response = httpClient.execute(httpPost); //响应内容 HttpEntity httpEntity = response.getEntity(); System.out.println("表单请求响应状态: " + response.getStatusLine()); System.out.println("响应内容: " + EntityUtils.toString(httpEntity, StandardCharsets.UTF_8)); }catch (Exception e){ }finally { try { if (httpClient != null){ httpClient.close(); } if (response != null){ response.close(); } }catch (Exception e){ } } } /** * httpclient发送带有对象和普通参数的post请求 * Content-Type:application/json;charset=utf8 * @param user * @param name * @param age */ @PostMapping(value = "/sendWithObjectParam") public void sendWithObjectParam(@RequestBody User user, String name, String age){ System.out.println("send: user = " + user + " name = " + name + " age = " + age); //请求客户端 CloseableHttpClient httpClient = HttpClientBuilder.create().build(); //普通参数 可以使用拼接的方式拼接成StringBuffer, 也可以使用URIBuilder构建 List<NameValuePair> params = new ArrayList<>(); params.add(new BasicNameValuePair("name", name)); params.add(new BasicNameValuePair("age", age)); URI uri = null; try { uri = new URIBuilder().setScheme("http").setHost("localhost") .setPort(8080).setPath("postWithObjectAndParam") .setParameters(params).build(); }catch (Exception e){ } //请求方式 HttpPost httpPost = new HttpPost(uri); //对象参数 String userJsonStr = JSON.toJSONString(user); StringEntity stringEntity = new StringEntity(userJsonStr, "UTF-8"); httpPost.setEntity(stringEntity); //带有对象的请求需要设置请求头Content-Type为application/json httpPost.setHeader("Content-Type", "application/json;charset=utf8"); //响应模型 CloseableHttpResponse response = null; try { //发起请求 response = httpClient.execute(httpPost); //响应内容 HttpEntity httpEntity = response.getEntity(); System.out.println("响应状态: " + response.getStatusLine()); //设置Charset为UTF8解决乱码现象 System.out.println("响应内容: " + EntityUtils.toString(httpEntity, StandardCharsets.UTF_8)); }catch (Exception e){ }finally { try { if (httpClient != null){ httpClient.close(); } if (response != null){ response.close(); } }catch (Exception e){ } } } /*** * httpclient发送文件file: * 使用multipartEntityBuilder来添加二进制文件 以及普通text文本, 再转化为HttpEntity传输 */ @GetMapping(value = "/sendFile") public void sendFile(){ CloseableHttpClient httpClient = HttpClientBuilder.create().build(); HttpPost httpPost = new HttpPost("http://localhost:8080/file"); CloseableHttpResponse response = null; try { MultipartEntityBuilder multipartEntityBuilder = MultipartEntityBuilder.create(); //第一个文件 String filekeys = "files"; File file1 = new File("/Users/macofethan/Desktop/2.jpeg"); multipartEntityBuilder.addBinaryBody(filekeys, file1, ContentType.MULTIPART_FORM_DATA, URLEncoder.encode(file1.getName(), "utf-8")); //第二个文件 同一个filekeys 接收端用一个数组接受 File file2 = new File("/Users/macofethan/Desktop/1.jpg"); multipartEntityBuilder.addBinaryBody(filekeys, file2, ContentType.DEFAULT_BINARY, URLEncoder.encode(file2.getName(), "utf-8")); //其他参数 ContentType contentType = ContentType.create("text/plain", Charset.forName("UTF-8")); multipartEntityBuilder.addTextBody("name", "zhangsan", contentType); multipartEntityBuilder.addTextBody("age", "100", contentType); HttpEntity httpEntity = multipartEntityBuilder.build(); httpPost.setEntity(httpEntity); //响应模型 response = httpClient.execute(httpPost); HttpEntity responseEntity = response.getEntity(); System.out.println("响应状态: " + response.getStatusLine()); if (responseEntity != null){ System.out.println("响应内容: " + EntityUtils.toString(responseEntity, StandardCharsets.UTF_8)); } }catch (Exception e){ }finally { try { if (httpClient != null){ httpClient.close(); } if (response != null){ response.close(); } }catch (Exception e){ } } } /** * httpclient发送二进制流 */ @GetMapping(value = "/sendIs") public void sendInputStream(String name){ CloseableHttpClient httpClient = HttpClientBuilder.create().build(); List<NameValuePair> params = new ArrayList<>(); params.add(new BasicNameValuePair("name", name)); URI uri = null; try { uri = new URIBuilder().setScheme("http").setHost("localhost") .setPort(8080).setPath("is").setParameters(params).build(); }catch (Exception e){ } HttpPost httpPost = new HttpPost(uri); CloseableHttpResponse response = null; try { File file = new File("/Users/macofethan/Desktop/1.mp4"); InputStream is = new FileInputStream(file); /** * 输入流 传输的长度最多1m 传输的ContentType */ InputStreamEntity inputStreamEntity = new InputStreamEntity(is, 1024*1024, ContentType.DEFAULT_BINARY); httpPost.setEntity(inputStreamEntity); response = httpClient.execute(httpPost); HttpEntity responseEntity = response.getEntity(); System.out.println("响应状态: " + response.getStatusLine()); System.out.println("响应内容: " + EntityUtils.toString(responseEntity)); }catch (Exception e){ }finally { try { if (httpClient != null){ httpClient.close(); } if (response != null){ response.close(); } }catch (Exception e){ } } } }
/* * Copyright (C) 2015 Miquel Sas * * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with this program. If not, see * <http://www.gnu.org/licenses/>. */ package com.qtplaf.library.trading.pattern.candle.patterns; import com.qtplaf.library.ai.fuzzy.Control; import com.qtplaf.library.trading.data.Data; import com.qtplaf.library.trading.data.DataList; import com.qtplaf.library.trading.pattern.candle.CandlePattern; /** * Medium big up piercing bearish-bullish pattern * * @author Miquel Sas */ public class BigPiercingBullish extends CandlePattern { /** * Constructor. */ public BigPiercingBullish() { super(); setFamily("Candles"); setId(getClass().getSimpleName()); setDescription("Medium big up piercing bearish-bullish pattern"); setLookBackward(1); } /** * Check if the pattern can be identified at the current data and index. * * @param dataList The data list. * @param index The current index. * @return A boolean indicating that the pattern has been identified. */ @Override public boolean isPattern(DataList dataList, int index) { // Index 0 no sense. if (index == 0) { return false; } // Fuzzy control. Control control = getControl(); // Previous and current candles Data dataPrev = dataList.get(index - 1); Data dataCurr = dataList.get(index); // Previous bearish and current bullish. if (!isBearish(dataPrev) || !isBullish(dataCurr)) { return false; } // Check sizes GE 0.5 max range double rangeFactorPrev = getRangeFactor(dataPrev); if (control.getFactor(rangeFactorPrev) < 0.5) { return false; } double rangeFactorCurr = getRangeFactor(dataCurr); if (control.getFactor(rangeFactorCurr) < 0.5) { return false; } // Compound range factor GE 0.6 return true; } }
package org.opentosca.containerapi.resources.xlink; import java.util.ArrayList; import java.util.List; /** * Holds a list 'List<Reference>' and provides XML-representation.<br> * Copyright 2012 IAAS University of Stuttgart <br> * <br> * * @author Markus Fischer - fischema@studi.informatik.uni-stuttgart.de * */ public class References { protected List<Reference> reference; public References() { } public List<Reference> getReference() { if (this.reference == null) { this.reference = new ArrayList<Reference>(); } return this.reference; } public String getXMLString() { StringBuilder xml = new StringBuilder("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"); xml.append("<References"); xml.append(" "); xml.append(XLinkConstants.XMLNS + "=\"" + XLinkConstants.XLINK_NAMESPACE + "\""); xml.append(" "); xml.append(">"); for (Reference ref : this.getReference()) { xml.append(ref.toXml()); } xml.append("</References>"); return xml.toString(); } }
package poo.u03; import java.util.ArrayList; import java.util.Random; public class Ej05 { public static void main(String[] args) { ArrayList<Integer> numeros = new ArrayList<Integer>(20); //numeros.add(12); Random rand = new Random(); //numeros.add(rand.nextInt(10)); System.out.println(numeros.toString()); for (int i = 0; i < 10; i++) { numeros.add(rand.nextInt(10)); } System.out.println(numeros); } }
import java.util.Locale; import java.util.Scanner; public class Main { public static void main(String[] args) { Locale.setDefault(Locale.US); Scanner sc = new Scanner(System.in); int N = sc.nextInt(); double[][] matQuadrada = new double[N][N]; for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { matQuadrada[i][j] = sc.nextDouble(); } } //Soma dos elementos positivos da matriz double soma = 0.0; for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { if (matQuadrada[i][j] > 0) { soma += matQuadrada[i][j]; } } } System.out.printf("SOMA DOS POSITIVOS: %.1f%n", soma); //Fazer a leitura de um indice de uma linha da matriz //Imprimir todos os elementos dessa linha int L = sc.nextInt(); System.out.print("LINHA ESCOLHIDA: "); for (int i = 0; i < N; i++) { if (i == L) { for (int j = 0; j < N; j++) { System.out.printf("%.1f ",matQuadrada[i][j]); } System.out.println(); } } //Leitura de um índice de uma coluna //Imprimir todos os elementos da coluna int C = sc.nextInt(); System.out.print("COLUNA ESCOLHIDA: "); for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { if (j == C) { System.out.printf("%.1f ",matQuadrada[i][j]); } } } System.out.println(); //Imprimir diagonal principal System.out.print("DIAGONAL PRINCIPAL: "); for (int i = 0; i < N; i++) { System.out.printf("%.1f ", matQuadrada[i][i]);; } System.out.println(); //Matriz Alterada //Onde os numeros negativos são elevados ao quadrado System.out.println("MATRIZ ALTERADA:"); for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { if (matQuadrada[i][j] < 0) { System.out.printf("%.1f ", Math.pow(matQuadrada[i][j], 2)); } else { System.out.printf("%.1f ", matQuadrada[i][j]); } } System.out.println(); } sc.close(); } }
package interviewbit.linkedlist; public class MergeSortLinkedList { public ListNode sortMyLinkedList(ListNode l) { ListNode z = mergeSort(l, l); return z; } private ListNode mergeSort(ListNode l, ListNode _head){ if(l == null||l.next==null){ return l; } ListNode a = splitList(l, _head); ListNode m = mergeSort(l, _head); ListNode n = mergeSort(a, _head); ListNode ls = new MergeTwoSortedList().mergeTwoLists(m, n); return ls; } private ListNode splitList(ListNode l, ListNode _head) { if(l == null||l.next==null){ return l; } ListNode slow = l, fast = l.next; while(fast.next!=null){ fast=fast.next; if(fast.next!=null){ slow=slow.next; fast=fast.next; } } ListNode temp = slow.next; slow.next=null; return temp; } }
package com.demo.test.dao; import com.demo.test.domain.OrderMaster; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface OrderMasterRepository extends JpaRepository<OrderMaster, String> { /** * 通过买家的openid查询订单 * * @param openId * @param pageable * @return */ Page<OrderMaster> findByBuyerOpenid(String openId, Pageable pageable); }
package xyz.hinyari.bmcplugin.utils; import org.bukkit.ChatColor; import org.bukkit.Utility; import org.bukkit.enchantments.Enchantment; import org.bukkit.inventory.ItemFlag; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; import org.bukkit.material.MaterialData; import javax.annotation.Nonnull; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; /** * Created by Hinyari_Gohan on 2016/10/12. */ public class SpecialItem { private final ItemStack itemStack; private String name; private String[] lore; private Enchantment enchantment; private Map<Enchantment, Integer> enchantments; private int enchlvl; private ItemFlag[] itemFlags; private byte b; private ItemStack resurt; /** * 名前のみのアイテムを作成します。 * * @param itemStack 作成する元となるアイテム * @param name 名前 */ public SpecialItem(@Nonnull ItemStack itemStack, String name) { this.itemStack = itemStack; this.name = name; create(); } /** * 説明文付きアイテムを作成します。 * * @param itemStack 作成する元となるアイテム * @param name 名前 * @param lore 説明文(LORE) */ public SpecialItem(@Nonnull ItemStack itemStack, String name, String[] lore) { this.itemStack = itemStack; this.name = name; this.lore = lore; create(); } /** * エンチャント付きアイテムを作成します。 * * @param itemStack 作成する元となるアイテム * @param name 名前 * @param lore 説明文 * @param enchantment エンチャント * @param enchlvl エンチャントレベル */ public SpecialItem(@Nonnull ItemStack itemStack, String name, String[] lore, Enchantment enchantment, int enchlvl) { this.itemStack = itemStack; this.name = name; this.lore = lore; this.enchantment = enchantment; this.enchlvl = enchlvl; create(); } /** * アイテムフラグ付きアイテムを作成します。 * * @param itemStack 作成する元となるアイテム * @param name 名前 * @param lore 説明文 * @param enchantment エンチャント * @param enchlvl エンチャントレベル * @param itemFlags アイテムフラグ */ public SpecialItem(@Nonnull ItemStack itemStack, String name, String[] lore, Enchantment enchantment, int enchlvl, ItemFlag... itemFlags) { this.itemStack = itemStack; this.name = name; this.lore = lore; this.enchantment = enchantment; this.enchlvl = enchlvl; this.itemFlags = itemFlags; create(); } /** * 複数のエンチャント付きアイテムを作成します。 * * @param itemStack 作成する元となるアイテム * @param name 名前 * @param lore 説明文 * @param enchantments マップ(エンチャント、エンチャントレベル】 * @param itemFlags アイテムフラグ */ public SpecialItem(@Nonnull ItemStack itemStack, String name, String[] lore, Map<Enchantment, Integer> enchantments, ItemFlag... itemFlags) { this.itemStack = itemStack; this.name = name; this.lore = lore; this.enchantments = enchantments; this.itemFlags = itemFlags; create(); } /** * バイト(メタデータ)付きアイテムを作成します。 * * @param itemStack 作成する元となるアイテム * @param name 名前 * @param lore 説明文 * @param b byte */ public SpecialItem(@Nonnull ItemStack itemStack, String name, String[] lore, byte b) { this.itemStack = itemStack; this.name = name; this.lore = lore; this.b = b; create(); } private void create() { resurt = itemStack.clone(); ItemMeta meta = resurt.getItemMeta(); if (name != null) { meta.setDisplayName(ChatColor.translateAlternateColorCodes('&', name)); } if (lore != null) { List<String> listLore = new ArrayList<>(); for (String st : Arrays.asList(lore)) { listLore.add(ChatColor.translateAlternateColorCodes('&', st)); } meta.setLore(listLore); } if (enchantments != null) { resurt.addUnsafeEnchantments(enchantments); } if (itemFlags != null) { meta.addItemFlags(itemFlags); } if (b != 0) { resurt = addMaterialData(resurt, new MaterialData(resurt.getType(), b)); } resurt.setItemMeta(meta); if (enchantment != null && enchlvl != 0) { resurt = addEnchant(resurt, enchantment, enchlvl); } } /** * ItemStack型を返します。 * * @return ItemStack */ @Utility public ItemStack getItem() { return this.resurt; } /** * アイテムの名前を返します。 * * @return String 名前 */ @Utility public String getName() { return this.name; } /** * 説明文を返します。 * * @return List<String> 説明文 */ @Utility public List<String> getLore() { return Arrays.asList(this.lore); } /** * エンチャントメントを返します。 * * @return Enchantment エンチャントメント */ @Utility public Enchantment getEnchantment() { return this.enchantment; } /** * エンチャントレベルを返します。 * * @return int エンチャントレベル */ @Utility public int getEnchantLevel() { return this.enchlvl; } /** * 複数のエンチャントメントを返します。 * * @return Map<Enchantment, Integer> 複数のエンチャントメント */ @Utility public Map<Enchantment, Integer> getEnchantments() { return this.enchantments; } /** * アイテムフラグを返します。 * * @return ItemFlag[] 複数のアイテムフラグ */ @Utility public ItemFlag[] getItemFlags() { return this.itemFlags; } private ItemStack addEnchant(ItemStack itemStack, Enchantment ench, int enchlvl) { itemStack.addUnsafeEnchantment(ench, enchlvl); return itemStack; } private ItemStack addMaterialData(ItemStack itemStack, MaterialData materialData) { itemStack.setData(materialData); return itemStack; } }
package com.tencent.mm.plugin.facedetect.views; import com.tencent.mm.plugin.facedetect.views.FaceDetectCameraView.c.1; class FaceDetectCameraView$c$1$2 implements Runnable { final /* synthetic */ 1 iTz; FaceDetectCameraView$c$1$2(1 1) { this.iTz = 1; } public final void run() { FaceDetectCameraView.i(this.iTz.iTy.iTq).pF(0); } }
class SubClass extends SuperClass { int x; SubClass() { super(); // 调用父类的构造方法 x = 5; // super( ) 要放在方法中的第一句 System.out.println("in SubClass :x=" + x); } void doSomething() { super.doSomething(); // 调用父类的方法 System.out.println("in SubClass.doSomething()"); System.out.println("super.x=" + super.x + " sub.x=" + x); } }
package in.ac.iiitd.kunal.expresso; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class Read extends AppCompatActivity { Button G_internal,G_external,M_internal,M_external,P_internal; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_read); G_internal=(Button)findViewById(R.id.g_internal); G_external=(Button)findViewById(R.id.g_external); M_internal=(Button)findViewById(R.id.m_internal); M_external=(Button)findViewById(R.id.m_external); P_internal=(Button)findViewById(R.id.p_internal); G_internal.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent i=new Intent(Read.this,Content.class); i.putExtra("Type",1); startActivity(i); } }); G_external.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent i=new Intent(Read.this,Content.class); i.putExtra("Type",2); startActivity(i); } }); M_internal.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent i=new Intent(Read.this,Content.class); i.putExtra("Type",3); startActivity(i); } }); M_external.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent i=new Intent(Read.this,Content.class); i.putExtra("Type",4); startActivity(i); } }); P_internal.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent i=new Intent(Read.this,Content.class); i.putExtra("Type",5); startActivity(i); } }); } }
package pl.norbgrusz.keyfinder; import java.util.Optional; import java.util.Properties; /** * STRUCTURE_AMOUNT_MAX - limit for counted structures. This parameter's * used only with type: VECTOR. * * STRUCTURE_NOTE_COUNT_MAX - it's number of notes counted per structure */ /** * TODO Separate StructureProperties for each Type. */ public class StructureProperties { private static final String STRUCTURE = "structure"; private static final String SEQUENCE = "sequence"; private static final String SEQUENCE_TRACK = SEQUENCE + ".track"; public static final String STRUCTURE_AMOUNT_MAX = STRUCTURE + ".amount.max"; public static final String STRUCTURE_NOTE_COUNT_MAX = STRUCTURE + ".noteCount.max"; public static final String STRUCTURE_TYPE = STRUCTURE + ".type"; public enum Type { BASIC("BASIC"), VECTOR("VECTOR"); private final String name; Type(String name) { this.name = name; } public String string() { return name; } } Type type; Integer trackNumber; Integer structureMax; Integer notesToCountPerStructure; private StructureProperties() { } public static StructureProperties create(Properties properties) { StructureProperties structureProperties = new StructureProperties(); structureProperties.mergeWithDefaultValues(properties); return structureProperties; } private void mergeWithDefaultValues(Properties properties) { this.trackNumber = (int) properties.getOrDefault(SEQUENCE_TRACK, 0); this.structureMax = getIntegerProperty(properties.getProperty(STRUCTURE_AMOUNT_MAX), 0); this.type = getTypeFromProperty(properties.getProperty(STRUCTURE_TYPE)); this.notesToCountPerStructure = getIntegerProperty(properties.getProperty(STRUCTURE_NOTE_COUNT_MAX), 8); } private Type getTypeFromProperty(String value){ Optional<String> opVal = Optional.ofNullable(value); if(opVal.isPresent()) { String val = opVal.get(); for(Type type : Type.values()){ if(type.string().equals(val)) return type; } throw new NullPointerException("The type of structure is not set"); } return Type.VECTOR; } private Integer getIntegerProperty(String value, Integer defaultValue){ return (value != null && !value.isEmpty()) ? Integer.parseInt(value) : defaultValue; } }
package com.lyq.model; import javax.persistence.*; //小节管理 @Entity @Table(name="t_jie") public class Jie { @Id @GeneratedValue(strategy= GenerationType.AUTO) private Integer jid; //主键Id private String jname;//小节名称 private Integer zid; //对应章id private Integer ynvip; //是否vip @Transient private String zname;//章名称 public String getZname() { return zname; } public void setZname(String zname) { this.zname = zname; } public Integer getJid() { return jid; } public void setJid(Integer jid) { this.jid = jid; } public String getJname() { return jname; } public void setJname(String jname) { this.jname = jname; } public Integer getZid() { return zid; } public void setZid(Integer zid) { this.zid = zid; } public Integer getYnvip() { return ynvip; } public void setYnvip(Integer ynvip) { this.ynvip = ynvip; } }
package com.brasilprev.customermanagement.commons.dataprovider.entity; import java.util.Date; import javax.persistence.Column; import javax.persistence.Embedded; import javax.persistence.Entity; import javax.persistence.EntityListeners; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.jpa.domain.support.AuditingEntityListener; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; @NoArgsConstructor @AllArgsConstructor @Entity @Table(name = "TBL_CLIENT") @EntityListeners(AuditingEntityListener.class) @Getter @Builder public class ClientEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "COL_ID") private Long id; @Column(name = "COL_NAME", length = 197) private String name; @Column(name = "COL_IDENTITY_DOCUMENT", length = 11) private String identityDocument; @Embedded private AddressEntity address; @CreatedDate @Column(name = "COL_CREATED_DATE") private Date createdDate; @LastModifiedDate @Column(name = "COL_LAST_MODIFIED_DATE") private Date lastModifiedDate; }
package com.tencent.tencentmap.mapsdk.a; import com.tencent.map.lib.MapLanguage; import com.tencent.map.lib.basemap.data.GeoPoint; import com.tencent.map.lib.listener.MapLanguageChangeListener; import com.tencent.map.lib.mapstructure.MapRouteSectionWithName; import java.util.List; class hv$c implements MapLanguageChangeListener { final /* synthetic */ hv a; private List<MapRouteSectionWithName> b; private List<GeoPoint> c; public hv$c(hv hvVar) { this.a = hvVar; hvVar.a(this); } public void a() { this.a.b(this); } public void a(List<MapRouteSectionWithName> list, List<GeoPoint> list2) { this.b = list; this.c = list2; hv.a(this.a).a(list, list2); } public void b() { hv.a(this.a).A(); this.b = null; this.c = null; } public void onLanguageChange(MapLanguage mapLanguage) { if (mapLanguage != MapLanguage.LAN_CHINESE) { hv.a(this.a).A(); } else if (this.b != null && this.c != null) { hv.a(this.a).a(this.b, this.c); } } }