text
stringlengths
10
2.72M
package com.link.admin.common; import com.alibaba.druid.filter.stat.StatFilter; import com.alibaba.druid.wall.WallFilter; import com.jfinal.config.*; import com.jfinal.core.JFinal; import com.jfinal.ext.handler.ContextPathHandler; import com.jfinal.ext.interceptor.SessionInViewInterceptor; import com.jfinal.kit.LogKit; import com.jfinal.kit.PathKit; import com.jfinal.kit.PropKit; import com.jfinal.plugin.activerecord.ActiveRecordPlugin; import com.jfinal.plugin.activerecord.CaseInsensitiveContainerFactory; import com.jfinal.plugin.activerecord.dialect.MysqlDialect; import com.jfinal.plugin.activerecord.tx.TxByActionKeyRegex; import com.jfinal.plugin.druid.DruidPlugin; import com.jfinal.plugin.druid.DruidStatViewHandler; import com.jfinal.render.ViewType; import com.jfinal.template.Engine; import com.link.admin.controller.IndexController; import com.link.admin.controller.shiro.ShiroTag; import com.link.common.plugin.shiro.ShiroInterceptor; import com.link.common.plugin.shiro.ShiroPlugin; import com.link.common.util.Constant; import com.link.model._MappingKit; import org.apache.log4j.PropertyConfigurator; import java.io.File; /** * @ClassName: AdminConfig * @Description: 后台管理Config * @author: linkzz * @data: 2017-10-16 9:49 */ public class AdminConfig extends JFinalConfig { private static Routes routes; public static void main(String[] args){ JFinal.start("src/main/webapp",8088,"/"); } @Override public void configConstant(Constants constants) { PropKit.use("config.properties"); constants.setDevMode(PropKit.getBoolean("devMode",true)); //设置日志文件路径 String logFilePath = System.getProperty("catalina.base")+ File.separator+"linkshoplogs"; LogKit.info("日志输出路径:"+logFilePath); System.setProperty("logFilePath",logFilePath); PropertyConfigurator.configure(System.getProperties()); //PropertyConfigurator.configure("config/log4j.properties"); constants.setViewType(ViewType.JFINAL_TEMPLATE); constants.setError404View(Constant.error404path); constants.setError500View(Constant.error500path); constants.setError401View(Constant.error401path); constants.setError403View(Constant.error403path); } @Override public void configRoute(Routes me) { me.add("/", IndexController.class); me.add(new AdminRoutes()); AdminConfig.routes = me; } @Override public void configEngine(Engine me) { me.addSharedObject("shiro",new ShiroTag()); me.addSharedFunction("/_view/common/_layout.html"); } @Override public void configPlugin(Plugins me) { DruidPlugin druidPlugin = new DruidPlugin(PropKit.get("jdbc_url"),PropKit.get("jdbc_username"),PropKit.get("jdbc_password")); druidPlugin.setValidationQuery(PropKit.get("validationQuery")); druidPlugin.setDriverClass(PropKit.get("driverClassName")); druidPlugin.addFilter(new StatFilter()); WallFilter wallFilter = new WallFilter(); wallFilter.setDbType("mysql"); druidPlugin.addFilter(wallFilter); me.add(druidPlugin); ActiveRecordPlugin arp = new ActiveRecordPlugin(druidPlugin); arp.setBaseSqlTemplatePath(PathKit.getRootClassPath()+"/sqlTemplate"); arp.addSqlTemplate("user.sql"); arp.setShowSql(true); arp.setDevMode(false); /*arp.setCache(new EhCache());*/ //no table mapping 错误,缺少oracle方言,教训呀 arp.setDialect(new MysqlDialect()); //忽略oracle数据库字段大小写 false 是大写, true是小写, 不写是区分大小写 arp.setContainerFactory(new CaseInsensitiveContainerFactory(true)); //所有映射在MappingKit文件中 _MappingKit.mapping(arp); me.add(arp); //加载shiroPlugin插件 ShiroPlugin shiroPlugin = new ShiroPlugin(AdminConfig.routes); shiroPlugin.setUnauthorizedUrl(Constant.error401path); me.add(shiroPlugin); /*Cron4jPlugin cron4jPlugin = new Cron4jPlugin(); cron4jPlugin.addTask("*//*1 * * * * ",new MyTask()); me.add(cron4jPlugin);*/ } @Override public void configInterceptor(Interceptors me) { //添加控制层全局拦截器 me.addGlobalActionInterceptor(new AuthInterceptor()); //启动Shiro拦截器 me.add(new ShiroInterceptor()); //根据ActionkeyRegex正则表达式进行事务处理 me.add(new TxByActionKeyRegex(".*trans.*|.*save.*|")); //根据ActionkeyRegex正则表达式进行异常和日志拦截处理 me.addGlobalActionInterceptor(new ExceptionAndLogInterceptor(".*trans.*|.*save.*")); //session拦截器,用于在View模板中取出session值 me.addGlobalActionInterceptor(new SessionInViewInterceptor(true)); } @Override public void configHandler(Handlers me) { DruidStatViewHandler dvh = new DruidStatViewHandler("druid"); me.add(dvh); me.add(new ContextPathHandler("ctx")); } }
package com.tencent.mm.plugin.appbrand.jsapi.d; import com.tencent.mm.plugin.appbrand.jsapi.h; public final class f$a extends h { private static final int CTRL_INDEX = 207; public static final String NAME = "onKeyboardDropdownOperate"; }
package com.rishi.baldawa.iq; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; /* Given two strings s and t, write a function to determine if t is an anagram of s. For example, s = "anagram", t = "nagaram", return true. s = "rat", t = "car", return false. Note: You may assume the string contains only lowercase alphabets. Follow up: What if the inputs contain unicode characters? How would you adapt your solution to such case? */ public class ValidAnagram { public boolean isAnagram(String s, String t) { if(s == t) { return true; } if(s == null || t == null || s.length() != t.length()) { return false; } Map<Character, Integer> anagram = new HashMap<>(); for(Character c : s.toCharArray()) { anagram.put(c, anagram.getOrDefault(c, 0) + 1); } for(Character c : t.toCharArray()) { anagram.put(c, anagram.getOrDefault(c, 0) - 1); } for(Entry<Character, Integer> entry : anagram.entrySet()) { if(entry.getValue() != 0) { return false; } } return true; } public boolean isAnagramAsciiOnly(String s, String t) { if(s == null && t == null) { return true; } if(s == null || t == null || s.length() != t.length()) { return false; } int[] counters = new int[26]; for(int i = 0; i < s.length(); i++) { counters[s.charAt(i) - 'a'] += 1; counters[t.charAt(i) - 'a'] -= 1; } for (int counter : counters) { if (counter != 0) { return false; } } return true; } }
package quiz19; import java.util.InputMismatchException; import java.util.Scanner; public class MainClass2 { public static void main(String[] args) { /* * 1에서 100까지 랜덤한 수를 맞추는 프로그램 입니다. * 입력한 값이 1에서 100까지의 값이 아니라면 예외처리 구문으로 넘기고 * 다시 입력받도록 처리합니다. * 단, 카운트는 증가됩니다. * * 입력한 값이 숫자가 아니라면 "반드시 숫자만 입력하세요"를 출력한 뒤에 * 다시 입력받도록 처리합니다. * 단, 카운트는 처리 되지 않습니다. * * 위와 같은 실행 구조를 갖는 예외처리 코드를 작성해보세요. */ Scanner scan = new Scanner(System.in); char run = 'r'; int answer = (int)(Math.random()*100+1); int count =0; while(run=='r') { try { System.out.print("정수 입력 > "); int input = scan.nextInt(); count++; //System.out.println(answer);// 정답 출력 if(input >100 || input<1) { throw new Exception();//input 이 100보다 크거나 1보다 작으면 indexoutofbounds예외 발생 ** }else if(input > answer) { System.out.println("DOWN"); }else if(input < answer){ System.out.println("UP"); }else { System.out.println("정답입니다"); run = 's'; } }catch(InputMismatchException | NumberFormatException e){//추가 다른 예외는 exception으로 모두 받아서 처리 System.out.println("반드시 숫자만 입력하세요"); scan.nextLine(); }catch(Exception e) {//**catch에 indexoutofbounds 예외로 와서 안의 내용 처리 System.out.println("1~100의 정수만 입력하세요"); }finally { System.out.println("시도 횟수 : "+count); } } } }
package de.raidcraft.skillsandeffects.pvp.effects.buffs.healing; import de.raidcraft.skills.api.character.CharacterTemplate; import de.raidcraft.skills.api.combat.EffectElement; import de.raidcraft.skills.api.combat.EffectType; import de.raidcraft.skills.api.combat.action.HealAction; import de.raidcraft.skills.api.effect.EffectInformation; import de.raidcraft.skills.api.effect.types.PeriodicExpirableEffect; import de.raidcraft.skills.api.exceptions.CombatException; import de.raidcraft.skills.api.persistance.EffectData; import de.raidcraft.skillsandeffects.pvp.skills.healing.HealOverTime; /** * @author Silthus */ @EffectInformation( name = "Heal over Time", description = "Heilt das Ziel über die Zeit verteilt.", types = {EffectType.MAGICAL, EffectType.BUFF, EffectType.PURGEABLE, EffectType.MAGICAL, EffectType.HEALING, EffectType.HELPFUL}, elements = {EffectElement.HOLY} ) public class HealOverTimeEffect extends PeriodicExpirableEffect<HealOverTime> { public HealOverTimeEffect(HealOverTime source, CharacterTemplate target, EffectData data) { super(source, target, data); } @Override protected void tick(CharacterTemplate target) throws CombatException { new HealAction<>(this, target, getDamage()).run(); } @Override protected void apply(CharacterTemplate target) throws CombatException { combatLog(getFriendlyName() + " erhalten."); } @Override protected void renew(CharacterTemplate target) throws CombatException { combatLog(getFriendlyName() + " wurde erneuert."); } @Override protected void remove(CharacterTemplate target) throws CombatException { combatLog(getFriendlyName() + " wurde entfernt."); } }
package com.example.myapplication; import androidx.annotation.NonNull; public class City { int id; String name; String country; public Coord coord; @NonNull @Override public String toString() { return "id: " + id + "; name: " + name + "; country: " + country + "coord: " + coord + "\n"; } }
package com.espendwise.manta.util; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; public class FileAttach implements java.io.Serializable{ private String name; private byte[] fileData; private String contentType; private int fileSize; private static final long serialVersionUID = 8823952771380003037L; public FileAttach(String name, byte[] fileData, String contentType, int fileSize) { this.name = name; this.fileData = fileData; this.contentType = contentType; this.fileSize = fileSize; } public String getName() { return name; } public void setName(String name) { this.name = name; } public byte[] getFileData() { return fileData; } public void setFileData(byte[] fileData) { this.fileData = fileData; } public String getContentType() { return contentType; } public void setContentType(String contentType) { this.contentType = contentType; } public int getFileSize() { return fileSize; } public void setFileSize(int fileSize) { this.fileSize = fileSize; } public File fromAttachToFile() throws IOException { File file = Utility.createTempFileAttachment(getName()); if(file.exists()) { file.delete(); } if (file.createNewFile()) { BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file)); bos.write(getFileData()); bos.flush(); bos.close(); } return file; } static public byte[] fromFileToByte(File file) throws IOException { BufferedInputStream bis = new BufferedInputStream(new FileInputStream(file)); ByteArrayOutputStream baos= new ByteArrayOutputStream(); byte[] byteData; int i; do{ i=bis.read(); if(i!=-1){baos.write(i); } }while(i!=-1); baos.flush(); byteData=baos.toByteArray(); baos.close(); bis.close(); return byteData; } }
package com.safeandsound.app.safeandsound.model; /** * Created by louisapabst on 22.04.17. */ public class AppConfig { private static String ip = "http://192.168.10.53"; // Server user login url public static String URL_LOGIN = "http://" + ip + "/db_login.php"; // Server user register url public static String URL_SIGNUP = "http://" + ip + "/db_register.php"; // Server user temperature url public static String URL_TEMP = "http://" + ip + "/temp"; // Server user window url public static String URL_WINDOW = "http://" + ip + "/window"; // Server user livestream url public static String URL_LIVESTREAM = "http://" + ip + ":8081"; // Server user motion url public static String URL_MOTION = "http://" + ip + "/motion"; // Server MQGas url public static String URL_MQGas = "http://" + ip + ":1880/mqgas"; //Server Temp Intervall url public static String URL_TEMPINT = "http://" + ip + ":1880/tempInt?from="; //Server MQ Gas Intervall url public static String URL_MQGasInt = "http://" + ip + ":1880/gasInt?from="; //Server Motion Picture url public static String URL_MOTION_PICTURE = "http://" + ip + ":1880/getPic?id="; public String getIp() { return ip; } public void setIp(String ip) { ip = ip; } }
package com.huangyifei.android.androidexample.mvplist.base.presenter; /** * Created by huangyifei on 16/10/25. */ public interface ILceListPresenter extends ILoadMorePresenter { void refreshData(boolean pullToRefresh); void loadMoreData(); }
package com.tencent.mm.g.a; public final class rz$a { public int ccP = 0; public int ccQ = 0; public int ccR = 0; public int type = 0; }
package io.github.luanelioliveira.library.repository; import io.github.luanelioliveira.library.model.Book; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Optional; import org.springframework.stereotype.Repository; @Repository public class InMemoryBookRepository implements BookRepository { private Map<String, Book> BOOKS = new HashMap<>(); @Override public Book save(Book book) { BOOKS.put(book.getIsbn(), book); return book; } @Override public Optional<Book> getByIsbn(String isbn) { return Optional.ofNullable(BOOKS.get(isbn)); } @Override public List<Book> findAll() { return new ArrayList<>(BOOKS.values()); } }
package ru.android.messenger.view.errors; import ru.android.messenger.R; public enum RestorePasswordError { /* validation errors */ PASSWORDS_DO_NOT_MATCH(R.string.restore_password_activity_error_passwords_do_not_match), INCORRECT_LOGIN_LENGTH(R.string.restore_password_activity_error_incorrect_login_length), INCORRECT_PASSWORD(R.string.restore_password_activity_error_incorrect_password), /* errors from response */ USER_NOT_FOUND(R.string.restore_password_activity_error_user_not_found); private int resourceId; RestorePasswordError(int resourceId) { this.resourceId = resourceId; } public int getResourceId() { return resourceId; } }
package com.test.adv; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import java.util.Iterator; import java.util.Set; /** * Created by nani on 2/10/2017. */ public class WindowHandles { String baseUrl = "http://demo.guru99.com/popup.php"; WebDriver driver; @BeforeClass public void testSetup() { System.setProperty("webdriver.chrome.driver", "C:\\Users\\nani\\Downloads\\chromedriver.exe"); //open browser driver = new ChromeDriver(); driver.manage().window().maximize(); driver.get(baseUrl); } @Test public void verifyWindows() throws InterruptedException { //handle for the current window String parentWindow = driver.getWindowHandle(); System.out.println("current window handle: "+parentWindow); // open the pop up windows WebElement popupLink = driver.findElement(By.linkText("Click Here")); popupLink.click(); //get all window handles Set<String> allWindowHandles = driver.getWindowHandles(); System.out.println("Total no of Winows: "+ allWindowHandles.size()); Iterator<String> HandlesIterator = allWindowHandles.iterator(); //using while loop // (0 < 2) first iteration // (1 < 2) second iteration while(HandlesIterator.hasNext()){ String currentHandle = HandlesIterator.next(); System.out.println("Window hanlde: "+currentHandle); //switch to child window, ignore if it is a parent window if(!currentHandle.equalsIgnoreCase(parentWindow)){ System.out.println("Child window found"); //print url before switching System.out.println("Before switching i am in "+driver.getCurrentUrl()); //switch to the child window driver.switchTo().window(currentHandle); //use external condition WebDriverWait wait = new WebDriverWait(driver, 10); //wait till the input box is clickable wait.until(ExpectedConditions.elementToBeClickable(driver.findElement(By.name("emailid")))); //print url after switching System.out.println("After switching i am in "+driver.getCurrentUrl()); //close the pop up window // driver.close(); }else{ System.out.println("Ignoring the parent window"); } } //switch back to parent window driver.switchTo().window(parentWindow); // driver.navigate().back(); System.out.println("Switch back to parent window: "+driver.getCurrentUrl()); //click on the link again popupLink.click(); } }
package co.staruml.graphics; public class Coord { public static int valueTranform(ZoomFactor zf, int value) { double f = ((double) zf.getNumer()) / zf.getDenom(); return (int) Math.round(f * value); } public static void coordTransform(ZoomFactor zf, GridFactor gf, Point p) { int x = p.getX(); int y = p.getY(); // fit to grid x = x - (x % gf.getWidth()); y = y - (y % gf.getHeight()); // zoom double f = ((double) zf.getNumer()) / zf.getDenom(); x = (int) Math.round(f * x); y = (int) Math.round(f * y); p.setPoint(x, y); } public static void coordTransform(ZoomFactor zf, GridFactor gf, Rect r) { Point p1 = new Point(r.getX1(), r.getY1()); Point p2 = new Point(r.getX2(), r.getY2()); coordTransform(zf, gf, p1); coordTransform(zf, gf, p2); r.setRect(p1.getX(), p1.getY(), p2.getX(), p2.getY()); } public static void coordRevTransform(ZoomFactor zf, GridFactor gf, Point p) { int x = p.getX(); int y = p.getY(); // zoom double f = ((double) zf.getNumer()) / zf.getDenom(); x = (int) Math.round(x / f); y = (int) Math.round(y / f); // fit to grid x = x - (x % gf.getWidth()); y = y - (y % gf.getHeight()); p.setPoint(x, y); } public static double sqr(double value) { return (value * value); } public static boolean ptInRect(int x, int y, Rect rect) { normalizeRect(rect); boolean b = ((rect.getX1() <= x) && (x <= rect.getX2())) && ((rect.getY1() <= y) && (y <= rect.getY2())); return b; } public static boolean ptInRect(Point p, Rect rect) { return ptInRect(p.getX(), p.getY(), rect); } public static boolean ptInLine(Rect line, Point p) { boolean result = false; double left = Math.min(line.getX1(), line.getX2()) - 5; double right = Math.max(line.getX1(), line.getX2()) + 5; double top = Math.min(line.getY1(), line.getY2()) - 5; double bottom = Math.max(line.getY1(), line.getY2()) + 5; if ((left <= p.getX()) && (right >= p.getX()) && (top <= p.getY()) && (bottom >= p.getY())) { double a = line.getX2() - line.getX1(); double b = line.getY2() - line.getY1(); double r = Math.sqrt(a * a + b * b + 0.000001); double c = b / r; double s = a / r; double ox = p.getX() - line.getX1(); double oy = p.getY() - line.getY1(); double tx = c * ox - s * oy; double ty = s * ox + c * oy; double x1 = -5; double x2 = 5; double y1 = -5; double y2 = r + 5; if ((x1 <= tx) && (x2 >= tx) && (y1 <= ty) && (y2 >= ty)) result = true; else result = false; } return result; } public static boolean ptsInLine(Point p1, Point p2, Point p3) { if (ptInLine(new Rect(p1, p3), p2) || ptInLine(new Rect(p1, p2), p3) || ptInLine(new Rect(p2, p3), p1)) return true; else return false; } public static boolean rectInRect(Rect rect1, Rect rect2) { java.awt.Rectangle r1 = rect1.getRectangle(); java.awt.Rectangle r2 = rect2.getRectangle(); return r1.intersects(r2); } public static Point getCenter(Rect rect) { return new Point((rect.getX1() + rect.getX2()) / 2, (rect.getY1() + rect.getY2()) / 2); } public static boolean equalRect(Rect r1, Rect r2) { return ((r1.getX1() == r2.getX1()) && (r1.getY1() == r2.getY1()) && (r1.getX2() == r2.getX2()) && (r1.getY2() == r2.getY2())); } public static boolean equalPt(Point p1, Point p2) { return equalPt(p1, p2, 5); } public static boolean equalPt(Point p1, Point p2, int d) { return ptInRect(p2.getX(), p2.getY(), new Rect(p1.getX() - d, p1.getY() - d, p1.getX() + d, p1.getY() + d)); } public static void normalizeRect(Rect rect) { int x1, y1, x2, y2; if (rect.getX1() < rect.getX2()) { x1 = rect.getX1(); x2 = rect.getX2(); } else { x1 = rect.getX2(); x2 = rect.getX1(); } if (rect.getY1() < rect.getY2()) { y1 = rect.getY1(); y2 = rect.getY2(); } else { y1 = rect.getY2(); y2 = rect.getY1(); } rect.setRect(x1, y1, x2, y2); } public static void normalizeRect(Point p1, Point p2) { Rect r = new Rect(p1, p2); normalizeRect(r); p1.setPoint(r.getX1(), r.getY1()); p2.setPoint(r.getX2(), r.getY2()); } public static Rect unionRect(Rect r1, Rect r2) { Rect r = new Rect(r1); if (r2.getX1() < r.getX1()) r.setX1(r2.getX1()); if (r2.getY1() < r.getY1()) r.setY1(r2.getY1()); if (r2.getX2() > r.getX2()) r.setX2(r2.getX2()); if (r2.getY2() > r.getY2()) r.setY2(r2.getY2()); return r; } public static Point junction(Rect r, Point pt) { Point p = new Point(pt); Point c = new Point((r.getX1() + r.getX2()) / 2, (r.getY1() + r.getY2()) / 2); if ((c.getX() == p.getX()) || (c.getY() == p.getY())) return orthoJunction(r, p); double lean = ((double) (p.getY() - c.getY())) / (p.getX() - c.getX()); Point[] ps = new Point[5]; // simulate array[1..4]. (ps[0] will not be used) ps[1] = new Point(r.getX1(), (int) Math.round(lean * (r.getX1() - c.getX()) + c.getY())); ps[2] = new Point(r.getX2(), (int) Math.round(lean * (r.getX2() - c.getX()) + c.getY())); ps[3] = new Point( (int) Math.round((r.getY1() - c.getY()) / lean + c.getX()), r.getY1()); ps[4] = new Point( (int) Math.round((r.getY2() - c.getY()) / lean + c.getX()), r.getY2()); normalizeRect(c, p); int i = 0; do { i++; if (i > 4) break; } while (!(((r.getX1() <= ps[i].getX()) && (ps[i].getX() <= r.getX2()) && (r.getY1() <= ps[i].getY()) && (ps[i].getY() <= r.getY2()) && (c.getX() <= ps[i].getX()) && (ps[i].getX() <= p.getX()) && (c.getY() <= ps[i].getY()) && (ps[i].getY() <= p.getY())) || (i > 4))); if (i > 4) { return new Point((r.getX1() + r.getX2()) / 2, (r.getY1() + r.getY2()) / 2); } else { return ps[i]; } } public static Point orthoJunction(Rect r, Point p) { if ((r.getX1() < p.getX()) && (p.getX() < r.getX2())) { if (r.getY1() >= p.getY()) return new Point(p.getX(), r.getY1()); else return new Point(p.getX(), r.getY2()); } else if ((r.getY1() < p.getY()) && (p.getY() < r.getY2())) { if (r.getX1() >= p.getX()) return new Point(r.getX1(), p.getY()); else return new Point(r.getX2(), p.getY()); } else if ((r.getX1() == p.getX()) || (r.getX2() == p.getX())) { if (r.getY1() >= p.getY()) return new Point(p.getX(), r.getY1()); else return new Point(p.getX(), r.getY2()); } else if ((r.getY1() == p.getX()) || (r.getY2() == p.getY())) { if (r.getX1() >= p.getX()) return new Point(r.getX1(), p.getY()); else return new Point(r.getX2(), p.getY()); } else { return new Point(-100, -100); } } public static Point makeOrthoPt(Point p1, Point p2) { Point result = new Point(p1.getX(), Math.max(p1.getY(), p2.getY())); if (result.getY() == p1.getY()) result.setX(p2.getX()); return result; } }
import biuoop.DrawSurface; import biuoop.KeyboardSensor; import java.awt.Color; /** * Created by user on 13/05/2017. */ public class Paddle implements Sprite, Collidable { private biuoop.KeyboardSensor keyboard; private biuoop.GUI gui; private Rectangle rectangle; private Rectangle borderRectangle; private java.awt.Color color; private int paddleSpeed; /** * constructor. * * @param keyboard a KeyboardSensor for moving to the left and to the right. * @param gui GUI for the keyboard. * @param rectangle the borders of the paddle. * @param borderRectangle the borders of the big game board. * @param color color of the paddle. * @param paddleSpeed the speed of the paddle. */ public Paddle(biuoop.KeyboardSensor keyboard, biuoop.GUI gui, Rectangle rectangle, Rectangle borderRectangle, java.awt.Color color, int paddleSpeed) { this.gui = gui; this.keyboard = keyboard; this.rectangle = rectangle; this.borderRectangle = borderRectangle; this.color = color; this.paddleSpeed = paddleSpeed; } /** * move to the left method. * * @param dt dt. */ public void moveLeft(double dt) { this.rectangle.getUpperLeft().setX(this.rectangle.getUpperLeft().getX() - (this.paddleSpeed * dt)); } /** * move to the right method. * * @param dt dt. */ public void moveRight(double dt) { this.rectangle.getUpperLeft().setX(this.rectangle.getUpperLeft().getX() + (this.paddleSpeed * dt)); } // Sprite /** * notify if the player pressed left or right and call to the fitting method. * * @param dt dt. */ public void timePassed(double dt) { if (this.keyboard.isPressed(KeyboardSensor.LEFT_KEY)) { this.moveLeft(dt); if (this.rectangle.getUpperLeft().getX() + this.rectangle.getWidth() <= this.borderRectangle.getUpperLeft().getX()) { this.rectangle.getUpperLeft().setX(this.borderRectangle.getUpperLeft().getX() + this.borderRectangle.getWidth()); } } if (this.keyboard.isPressed(KeyboardSensor.RIGHT_KEY)) { this.moveRight(dt); if (this.rectangle.getUpperLeft().getX() >= this.borderRectangle.getUpperLeft().getX() + this.borderRectangle.getWidth()) { this.rectangle.getUpperLeft().setX(this.borderRectangle.getUpperLeft().getX()); } } } /** * drawing the block. * * @param d the object that we use to draw things. */ public void drawOn(DrawSurface d) { d.setColor(this.color); int minx = (int) this.rectangle.getUpperLeft().getX(); int miny = (int) this.rectangle.getUpperLeft().getY(); int width1 = (int) this.rectangle.getWidth(); int height1 = (int) this.rectangle.getHeight(); d.fillRectangle(minx, miny, width1, height1); d.setColor(Color.black); d.drawRectangle(minx, miny, width1, height1); } // Collidable /** * get the borders pf this rectangle. * * @return this rectangle */ public Rectangle getCollisionRectangle() { return this.rectangle; } /** * changing the velocity according to the hit. * * @param collisionPoint the point that the collision took place in. * @param currentVelocity the current velocity. * @param hitter the hitting ball. * @return the new velocity. */ public Velocity hit(Ball hitter, Point collisionPoint, Velocity currentVelocity) { if (collisionPoint.getX() >= this.rectangle.getUpperLeft().getX() && collisionPoint.getX() <= this.rectangle.getUpperLeft().getX() + this.rectangle.getWidth() / 5) { currentVelocity = currentVelocity.fromAngleAndSpeed(300, currentVelocity.getSpeed()); } if (collisionPoint.getX() >= this.rectangle.getUpperLeft().getX() + this.rectangle.getWidth() / 5 && collisionPoint.getX() <= this.rectangle.getUpperLeft().getX() + (this.rectangle.getWidth() / 5) * 2) { currentVelocity = currentVelocity.fromAngleAndSpeed(330, currentVelocity.getSpeed()); } if (collisionPoint.getX() >= this.rectangle.getUpperLeft().getX() + (this.rectangle.getWidth() / 5) * 2 && collisionPoint.getX() <= this.rectangle.getUpperLeft().getX() + (this.rectangle.getWidth() / 5) * 3) { currentVelocity = currentVelocity.fromAngleAndSpeed(0, currentVelocity.getSpeed()); } if (collisionPoint.getX() >= this.rectangle.getUpperLeft().getX() + (this.rectangle.getWidth() / 5) * 3 && collisionPoint.getX() <= this.rectangle.getUpperLeft().getX() + (this.rectangle.getWidth() / 5) * 4) { currentVelocity = currentVelocity.fromAngleAndSpeed(30, currentVelocity.getSpeed()); } if (collisionPoint.getX() >= this.rectangle.getUpperLeft().getX() + (this.rectangle.getWidth() / 5) * 4 && collisionPoint.getX() <= this.rectangle.getUpperLeft().getX() + (this.rectangle.getWidth() / 5) * 5) { currentVelocity = currentVelocity.fromAngleAndSpeed(60, currentVelocity.getSpeed()); } return currentVelocity; } // Add this paddle to the game. /** * adding ball to game. * * @param g a Game that paddle is added to. */ public void addToGame(GameLevel g) { g.addSprite(this); g.addCollidable(this); } }
package com.game.entity; import com.game.util.Maths; public class EntityHostile extends Entity { private int hp = 100; private int minDmg = 1; private int maxDmg = 5; private double acc = 0.5; // likelihood of hit private boolean unique = false; private boolean dead = false; public EntityHostile(String name, int hp, int minDmg, int maxDmg, double acc, boolean unique) { super(name); this.hp = hp; this.minDmg = minDmg; this.maxDmg = maxDmg; this.acc = acc; this.unique = unique; } public String damage(int dmg) { hp -= dmg; if (hp > 0) { if (unique) return ("You hit " + this.getName() + " for " + dmg + " damage!"); else return ("You hit the " + this.getName() + " for " + dmg + " damage!"); } else { dead = true; if (unique) return ("You kill " + this.getName() + "!"); else return ("You kill the " + this.getName() + "!"); } } public String dmgPlayer(Player player) { if (Maths.randDouble(0, 1) <= acc) { int dmg = Maths.randInt(minDmg, maxDmg); String pdmg = player.damage(dmg); if (unique) return (this.getName() + " hits you!\n\n" + pdmg); else return ("The " + this.getName() + " hits you!\n\n" + pdmg); } if (unique) return (this.getName() + " missed."); else return ("The " + this.getName() + " missed."); } public boolean getDead() { return dead; } public boolean getUnique() { return unique; } }
package pl.cwanix.opensun.agentserver.engine.experimental.maps.structures; import lombok.Getter; import lombok.Setter; @Getter @Setter public class MapInfoStructure { public static final int MAX_FIELD_NUMBER = 6; private int mapCode; private int mapKind; private String mName; private int nCode; private int fnCode; private int dCode; private int anCode; private int guildEnt; private int guildItem; private int timeLim; private int mKind; private int mType; private int minUser; private int maxUser; private int minLv; private int maxLv; private int freePassLv; private String startId; private String startId2; private int entCount; private int class1; private int fCount; private int completeQCode; private int completeMCode; private int continentCode; private byte[] mMap; private int[] pMap; private int[] cMap; }
package org.houstondragonacademy.archer.controller; import lombok.extern.slf4j.Slf4j; import org.houstondragonacademy.archer.services.AccountService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.annotation.AuthenticationPrincipal; import org.springframework.security.oauth2.client.OAuth2AuthorizedClient; import org.springframework.security.oauth2.client.OAuth2AuthorizedClientService; import org.springframework.security.oauth2.client.annotation.RegisteredOAuth2AuthorizedClient; import org.springframework.security.oauth2.client.authentication.OAuth2AuthenticationToken; import org.springframework.security.oauth2.client.registration.ClientRegistrationRepository; import org.springframework.security.oauth2.core.user.OAuth2User; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import java.util.HashMap; import java.util.Map; @Slf4j @RestController @RequestMapping("/login") public class AuthenticationController { Map<String, String> oauth2AuthenticationUrls = new HashMap<>(); @Autowired private ClientRegistrationRepository clientRegistrationRepository; @Autowired private OAuth2AuthorizedClientService authorizedClientService; @Autowired private AccountService accountService; @RequestMapping(value = "/", method = RequestMethod.GET) public String login() { return "oauth_login"; } @RequestMapping(value = "/logout", method = RequestMethod.GET) public void logout() { } @RequestMapping(value = "/success", method = RequestMethod.GET) public String getLoginInfo(OAuth2AuthenticationToken authentication, @RegisteredOAuth2AuthorizedClient OAuth2AuthorizedClient authorizedClient, @AuthenticationPrincipal OAuth2User oauth2User) { return "loginSuccess"; } @RequestMapping(value = "/failure", method = RequestMethod.GET) public String loginFailure() { return "loginFail"; } }
/* * [y] hybris Platform * * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with SAP. */ package de.hybris.platform.cmsfacades.media.validator.predicate; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.when; import de.hybris.bootstrap.annotations.UnitTest; import de.hybris.platform.core.model.media.MediaModel; import de.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException; import de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException; import de.hybris.platform.servicelayer.media.MediaService; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; @UnitTest @RunWith(MockitoJUnitRunner.class) public class MediaCodeExistsPredicateTest { private static final String VALID_CODE = "testMediaCode"; private static final String INVALID_CODE = "invalid"; @Mock private MediaService mediaService; @Mock private MediaModel media; @InjectMocks private MediaCodeExistsPredicate predicate; @Test public void shouldFindMediaByCode() { when(mediaService.getMedia(VALID_CODE)).thenReturn(media); final boolean result = predicate.test(VALID_CODE); assertTrue(result); } @Test public void shouldNotFindMediaByCode() { when(mediaService.getMedia(INVALID_CODE)).thenThrow(new UnknownIdentifierException("code is invalid")); final boolean result = predicate.test(INVALID_CODE); assertFalse(result); } @Test public void shouldFindMultipleMediaByCode() { when(mediaService.getMedia(VALID_CODE)).thenThrow(new AmbiguousIdentifierException("multiple entries found for code")); final boolean result = predicate.test(VALID_CODE); assertTrue(result); } }
package holidayproductmastercore; 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( "HolidayBrand", "GenericItem", com.cnk.travelogix.product.holiday.masters.core.jalo.HolidayBrand.class, "de.hybris.platform.persistence.holidayproductmastercore_HolidayBrand", false, null, false ); createItemType( "HolidayProduct", "Product", com.cnk.travelogix.product.holiday.masters.core.jalo.HolidayProduct.class, null, false, null, false ); createItemType( "HolidayDestination", "GenericItem", com.cnk.travelogix.product.holiday.masters.core.jalo.HolidayDestination.class, "de.hybris.platform.persistence.holidayproductmastercore_HolidayDestination", false, null, false ); createItemType( "HolidayFlavor", "VariantProduct", com.cnk.travelogix.product.holiday.masters.core.jalo.HolidayFlavor.class, "de.hybris.platform.persistence.holidayproductmastercore_HolidayFlavor", false, null, false ); createItemType( "DayWiseItinerary", "GenericItem", com.cnk.travelogix.product.holiday.masters.core.jalo.DayWiseItinerary.class, "de.hybris.platform.persistence.holidayproductmastercore_DayWiseItinerary", false, null, false ); createItemType( "HolidayItineraryDetails", "GenericItem", com.cnk.travelogix.product.holiday.masters.core.jalo.HolidayItineraryDetails.class, "de.hybris.platform.persistence.holidayproductmastercore_HolidayItineraryDetails", false, null, false ); createItemType( "HolidayHub", "GenericItem", com.cnk.travelogix.product.holiday.masters.core.jalo.HolidayHub.class, "de.hybris.platform.persistence.holidayproductmastercore_HolidayHub", false, null, false ); createItemType( "Feeder", "GenericItem", com.cnk.travelogix.product.holiday.masters.core.jalo.Feeder.class, "de.hybris.platform.persistence.holidayproductmastercore_Feeder", false, null, false ); createItemType( "BlackOutDates", "GenericItem", com.cnk.travelogix.product.holiday.masters.core.jalo.BlackOutDates.class, "de.hybris.platform.persistence.holidayproductmastercore_BlackOutDates", false, null, false ); createItemType( "OnlineVisaDetails", "AbstractVisaDetails", com.cnk.travelogix.product.holiday.masters.core.jalo.OnlineVisaDetails.class, "de.hybris.platform.persistence.holidayproductmastercore_OnlineVisaDetails", false, null, false ); createItemType( "OfflineVisaDetails", "AbstractVisaDetails", com.cnk.travelogix.product.holiday.masters.core.jalo.OfflineVisaDetails.class, "de.hybris.platform.persistence.holidayproductmastercore_OfflineVisaDetails", false, null, false ); createItemType( "Prices", "ActualPrices", com.cnk.travelogix.product.holiday.masters.core.jalo.Prices.class, null, false, null, false ); createItemType( "AccoDayWiseItinerary", "AbstractDayWiseItinerary", com.cnk.travelogix.product.holiday.masters.core.jalo.AccoDayWiseItinerary.class, "de.hybris.platform.persistence.holidayproductmastercore_AccoDayWiseItinerary", false, null, false ); createItemType( "OtherDayWiseItinerary", "AbstractDayWiseItinerary", com.cnk.travelogix.product.holiday.masters.core.jalo.OtherDayWiseItinerary.class, "de.hybris.platform.persistence.holidayproductmastercore_OtherDayWiseItinerary", false, null, false ); createItemType( "ActivityDayWiseItinerary", "AbstractDayWiseItinerary", com.cnk.travelogix.product.holiday.masters.core.jalo.ActivityDayWiseItinerary.class, "de.hybris.platform.persistence.holidayproductmastercore_ActivityDayWiseItinerary", false, null, false ); createItemType( "TransferProductDayWiseItinerary", "AbstractDayWiseItinerary", com.cnk.travelogix.product.holiday.masters.core.jalo.TransferProductDayWiseItinerary.class, "de.hybris.platform.persistence.holidayproductmastercore_TransferProductDayWiseItinerary", false, null, false ); createItemType( "FlightTransferDayWiseItinerary", "AbstractDayWiseItinerary", com.cnk.travelogix.product.holiday.masters.core.jalo.FlightTransferDayWiseItinerary.class, "de.hybris.platform.persistence.holidayproductmastercore_FlightTransferDayWiseItinerary", false, null, false ); createItemType( "RailTransferDayWiseItinerary", "AbstractDayWiseItinerary", com.cnk.travelogix.product.holiday.masters.core.jalo.RailTransferDayWiseItinerary.class, "de.hybris.platform.persistence.holidayproductmastercore_RailTransferDayWiseItinerary", false, null, false ); createItemType( "RentalTransferDayWiseItinerary", "TransferProductDayWiseItinerary", com.cnk.travelogix.product.holiday.masters.core.jalo.RentalTransferDayWiseItinerary.class, null, false, null, false ); createItemType( "RailPassTransferDayWiseItinerary", "RailTransferDayWiseItinerary", com.cnk.travelogix.product.holiday.masters.core.jalo.RailPassTransferDayWiseItinerary.class, null, false, null, false ); createItemType( "RailTicketTransferDayWiseItinerary", "RailTransferDayWiseItinerary", com.cnk.travelogix.product.holiday.masters.core.jalo.RailTicketTransferDayWiseItinerary.class, null, false, null, false ); createItemType( "CarPackage", "RentalTransferDayWiseItinerary", com.cnk.travelogix.product.holiday.masters.core.jalo.CarPackage.class, null, false, null, false ); createRelationType( "HolidayProductTODestination", null, true ); createRelationType( "HolidayFlavorTOAbstractDayWiseItinerary", null, true ); createRelationType( "HolidayFlavorTOBlackOutDates", null, true ); createRelationType( "HolidayFlavorTOHolidayHub", null, true ); createRelationType( "HolidayFlavorTOAbstractVisaDetails", null, true ); createRelationType( "HolidayHubTOFeeder", null, true ); createRelationType( "HolidayItineraryDetailsTODayWiseItinerary", null, true ); createRelationType( "HolidayFlavorTODayWiseItinerary", null, true ); createEnumerationType( "FlavorType", null ); createEnumerationType( "HolidayProductType", null ); createEnumerationType( "Session", null ); createEnumerationType( "TransferCategory", null ); createEnumerationType( "RateDefinedForType", null ); createCollectionType( "HolidayBrands", "HolidayBrand", CollectionType.COLLECTION ); createCollectionType( "Brochures", "Brochure", CollectionType.COLLECTION ); createCollectionType( "Markets", "Market", CollectionType.COLLECTION ); createCollectionType( "Interests", "Interest", CollectionType.COLLECTION ); createCollectionType( "Sectors", "Sector", CollectionType.COLLECTION ); } /** * Generated by hybris Platform. */ @Override protected final void performModifyTypes( final ManagerEJB manager, Map params ) throws JaloBusinessException { // performModifyTypes single_createattr_HolidayBrand_code(); single_createattr_HolidayBrand_name(); single_createattr_HolidayProduct_numberOfNight(); single_createattr_HolidayProduct_numberOfDays(); single_createattr_HolidayProduct_markets(); single_createattr_HolidayProduct_brands(); single_createattr_HolidayProduct_brochures(); single_createattr_HolidayDestination_uid(); single_createattr_HolidayDestination_destinationName(); single_createattr_HolidayDestination_country(); single_createattr_HolidayDestination_city(); single_createattr_HolidayFlavor_companyMarket(); single_createattr_HolidayFlavor_companyTourCode(); single_createattr_HolidayFlavor_flavorType(); single_createattr_HolidayFlavor_packageType(); single_createattr_HolidayFlavor_productType(); single_createattr_HolidayFlavor_brandName(); single_createattr_HolidayFlavor_itineraryWise(); single_createattr_HolidayFlavor_comfortLevel(); single_createattr_HolidayFlavor_companyRating(); single_createattr_HolidayFlavor_rating(); single_createattr_HolidayFlavor_recommended(); single_createattr_HolidayFlavor_flightDay1Itinerary(); single_createattr_HolidayFlavor_companyPackageCategories(); single_createattr_HolidayFlavor_brochures(); single_createattr_HolidayFlavor_interests(); single_createattr_HolidayFlavor_salesValidities(); single_createattr_HolidayFlavor_combinedCruise(); single_createattr_HolidayFlavor_combinedFlavor(); single_createattr_DayWiseItinerary_city(); single_createattr_DayWiseItinerary_sequenceNumber(); single_createattr_DayWiseItinerary_day(); single_createattr_DayWiseItinerary_standardPrice(); single_createattr_DayWiseItinerary_deluxePrice(); single_createattr_DayWiseItinerary_superiorPrice(); single_createattr_DayWiseItinerary_service(); single_createattr_DayWiseItinerary_timeFrom(); single_createattr_DayWiseItinerary_timeTo(); single_createattr_DayWiseItinerary_lunchIncluded(); single_createattr_DayWiseItinerary_breakfastIncluded(); single_createattr_DayWiseItinerary_dinnerIncluded(); single_createattr_DayWiseItinerary_sessionName(); single_createattr_HolidayItineraryDetails_itineraryInBrief(); single_createattr_HolidayItineraryDetails_itineraryDetails(); single_createattr_HolidayItineraryDetails_packageCategories(); single_createattr_HolidayHub_productCategory(); single_createattr_HolidayHub_productCategorySubType(); single_createattr_HolidayHub_hub(); single_createattr_HolidayHub_sectors(); single_createattr_Feeder_preTour(); single_createattr_Feeder_postTour(); single_createattr_Feeder_flavor(); single_createattr_Feeder_transfer(); single_createattr_BlackOutDates_daysOfWeek(); single_createattr_BlackOutDates_blackOutDates(); single_createattr_OfflineVisaDetails_basicDocuments(); single_createattr_OfflineVisaDetails_documentsRequired(); single_createattr_OfflineVisaDetails_notes(); single_createattr_OfflineVisaDetails_processingTime(); single_createattr_OfflineVisaDetails_paymentMode(); single_createattr_OfflineVisaDetails_prices(); single_createattr_Prices_companyPackageCategory(); single_createattr_Prices_currency(); single_createattr_Prices_perItem(); single_createattr_Prices_adult(); single_createattr_Prices_child(); single_createattr_Prices_infant(); single_createattr_AccoDayWiseItinerary_productName(); single_createattr_AccoDayWiseItinerary_location(); single_createattr_AccoDayWiseItinerary_area(); single_createattr_AccoDayWiseItinerary_extensionNights(); single_createattr_AccoDayWiseItinerary_availDays(); single_createattr_OtherDayWiseItinerary_service(); single_createattr_OtherDayWiseItinerary_availDays(); single_createattr_OtherDayWiseItinerary_quantity(); single_createattr_OtherDayWiseItinerary_valueAdded(); single_createattr_OtherDayWiseItinerary_numberOfItems(); single_createattr_OtherDayWiseItinerary_description(); single_createattr_OtherDayWiseItinerary_prices(); single_createattr_ActivityDayWiseItinerary_pickUpPointType(); single_createattr_ActivityDayWiseItinerary_pickUpPointName(); single_createattr_ActivityDayWiseItinerary_sessionName(); single_createattr_TransferProductDayWiseItinerary_category(); single_createattr_TransferProductDayWiseItinerary_journeyType(); single_createattr_TransferProductDayWiseItinerary_rateDefinedFor(); single_createattr_TransferProductDayWiseItinerary_transferType(); single_createattr_TransferProductDayWiseItinerary_pickUpPointType(); single_createattr_TransferProductDayWiseItinerary_pickUpPointName(); single_createattr_TransferProductDayWiseItinerary_dropOffPointName(); single_createattr_TransferProductDayWiseItinerary_dropOffPointType(); single_createattr_TransferProductDayWiseItinerary_dropOffTime(); single_createattr_TransferProductDayWiseItinerary_pickUpTime(); single_createattr_TransferProductDayWiseItinerary_sessionName(); single_createattr_TransferProductDayWiseItinerary_meetAndGreet(); single_createattr_TransferProductDayWiseItinerary_returnDay(); single_createattr_TransferProductDayWiseItinerary_returnSequence(); single_createattr_TransferProductDayWiseItinerary_toCity(); single_createattr_TransferProductDayWiseItinerary_fromCity(); single_createattr_TransferProductDayWiseItinerary_enRouteCity(); single_createattr_TransferProductDayWiseItinerary_overNight(); single_createattr_FlightTransferDayWiseItinerary_fromCity(); single_createattr_FlightTransferDayWiseItinerary_toCity(); single_createattr_FlightTransferDayWiseItinerary_availDays(); single_createattr_FlightTransferDayWiseItinerary_returnDay(); single_createattr_FlightTransferDayWiseItinerary_returnSequence(); single_createattr_RailTransferDayWiseItinerary_journeyType(); single_createattr_RailTransferDayWiseItinerary_journeyByPass(); single_createattr_RailTransferDayWiseItinerary_availDays(); single_createattr_RentalTransferDayWiseItinerary_vehicleCategory(); single_createattr_RentalTransferDayWiseItinerary_vehicleName(); single_createattr_RentalTransferDayWiseItinerary_airCondition(); single_createattr_RentalTransferDayWiseItinerary_withChuffer(); single_createattr_RailPassTransferDayWiseItinerary_countries(); single_createattr_RailPassTransferDayWiseItinerary_numberOfDays(); single_createattr_RailTicketTransferDayWiseItinerary_fromCity(); single_createattr_RailTicketTransferDayWiseItinerary_toCity(); single_createattr_RailTicketTransferDayWiseItinerary_reservationRequired(); single_createattr_RailTicketTransferDayWiseItinerary_overNight(); single_createattr_RailTicketTransferDayWiseItinerary_returnDay(); single_createattr_RailTicketTransferDayWiseItinerary_returnSequence(); single_createattr_CarPackage_cities(); createRelationAttributes( "HolidayProductTODestination", false, "product", "HolidayProduct", 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, "holidayDestinaions", "HolidayDestination", 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.PARTOF_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false, CollectionType.COLLECTION ); createRelationAttributes( "HolidayFlavorTOAbstractDayWiseItinerary", false, "holidayFlavor", "HolidayFlavor", 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, "serviceBasedDayWiseItinerarise", "AbstractDayWiseItinerary", 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( "HolidayFlavorTOBlackOutDates", false, "holidayFlavor", "HolidayFlavor", 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, "blackOutDays", "BlackOutDates", 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( "HolidayFlavorTOHolidayHub", false, "holidayFlavor", "HolidayFlavor", 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, "hubs", "HolidayHub", 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( "HolidayFlavorTOAbstractVisaDetails", false, "holidayFlavor", "HolidayFlavor", 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, "visas", "AbstractVisaDetails", 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( "HolidayHubTOFeeder", false, "holidayHub", "HolidayHub", 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, "feeders", "Feeder", 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( "HolidayItineraryDetailsTODayWiseItinerary", false, "dayWiseItinerary", "DayWiseItinerary", 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, "itineraryDetails", "HolidayItineraryDetails", 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( "HolidayFlavorTODayWiseItinerary", false, "holidayFlavor", "HolidayFlavor", 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, "itineraryBasedDayWiseItineraries", "DayWiseItinerary", 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_HolidayBrand_code() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayBrand", "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_HolidayBrand_name() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayBrand", "name", null, "localized: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_HolidayProduct_numberOfNight() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayProduct", "numberOfNight", null, "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_HolidayProduct_numberOfDays() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayProduct", "numberOfDays", null, "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_HolidayProduct_markets() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayProduct", "markets", null, "Markets", 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_HolidayProduct_brands() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayProduct", "brands", null, "HolidayBrands", 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_HolidayProduct_brochures() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayProduct", "brochures", null, "Brochures", 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_HolidayDestination_uid() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayDestination", "uid", 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.INITIAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_HolidayDestination_destinationName() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayDestination", "destinationName", null, "Continent", 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_HolidayDestination_country() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayDestination", "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.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_HolidayDestination_city() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayDestination", "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.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, null, sqlColumnDefinitions ); } public void single_createattr_HolidayFlavor_companyMarket() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "companyMarket", null, "Market", 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_HolidayFlavor_companyTourCode() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "companyTourCode", 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_HolidayFlavor_flavorType() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "flavorType", null, "FlavorType", 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_HolidayFlavor_packageType() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "packageType", null, "PackageCategory", 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_HolidayFlavor_productType() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "productType", null, "HolidayProductType", 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_HolidayFlavor_brandName() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "brandName", null, "HolidayBrand", 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_HolidayFlavor_itineraryWise() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "itineraryWise", 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_HolidayFlavor_comfortLevel() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "comfortLevel", null, "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_HolidayFlavor_companyRating() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "companyRating", null, "Rating", 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_HolidayFlavor_rating() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "rating", null, "Rating", 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_HolidayFlavor_recommended() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "recommended", 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_HolidayFlavor_flightDay1Itinerary() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "flightDay1Itinerary", 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_HolidayFlavor_companyPackageCategories() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "companyPackageCategories", null, "PackageCategoryCollection", 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_HolidayFlavor_brochures() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "brochures", null, "Brochures", 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_HolidayFlavor_interests() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "interests", null, "Interests", 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_HolidayFlavor_salesValidities() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "salesValidities", null, "StandardDateRangeSet", 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_HolidayFlavor_combinedCruise() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "combinedCruise", null, "CruisePackage", 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_HolidayFlavor_combinedFlavor() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayFlavor", "combinedFlavor", null, "HolidayFlavor", 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_DayWiseItinerary_city() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "DayWiseItinerary", "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_DayWiseItinerary_sequenceNumber() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "DayWiseItinerary", "sequenceNumber", null, "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_DayWiseItinerary_day() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "DayWiseItinerary", "day", null, "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_DayWiseItinerary_standardPrice() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "DayWiseItinerary", "standardPrice", null, "PriceRow", 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_DayWiseItinerary_deluxePrice() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "DayWiseItinerary", "deluxePrice", null, "PriceRow", 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_DayWiseItinerary_superiorPrice() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "DayWiseItinerary", "superiorPrice", null, "PriceRow", 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_DayWiseItinerary_service() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "DayWiseItinerary", "service", 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_DayWiseItinerary_timeFrom() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "DayWiseItinerary", "timeFrom", 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_DayWiseItinerary_timeTo() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "DayWiseItinerary", "timeTo", 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_DayWiseItinerary_lunchIncluded() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "DayWiseItinerary", "lunchIncluded", 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_DayWiseItinerary_breakfastIncluded() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "DayWiseItinerary", "breakfastIncluded", 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_DayWiseItinerary_dinnerIncluded() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "DayWiseItinerary", "dinnerIncluded", 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_DayWiseItinerary_sessionName() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "DayWiseItinerary", "sessionName", null, "Session", 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_HolidayItineraryDetails_itineraryInBrief() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayItineraryDetails", "itineraryInBrief", 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_HolidayItineraryDetails_itineraryDetails() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayItineraryDetails", "itineraryDetails", 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_HolidayItineraryDetails_packageCategories() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayItineraryDetails", "packageCategories", null, "PackageCategoryCollection", 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_HolidayHub_productCategory() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayHub", "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_HolidayHub_productCategorySubType() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayHub", "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_HolidayHub_hub() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayHub", "hub", 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_HolidayHub_sectors() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "HolidayHub", "sectors", null, "Sectors", 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_Feeder_preTour() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Feeder", "preTour", 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_Feeder_postTour() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Feeder", "postTour", 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_Feeder_flavor() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Feeder", "flavor", null, "HolidayFlavor", 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_Feeder_transfer() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Feeder", "transfer", null, "TransferProductDayWiseItinerary", 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_BlackOutDates_daysOfWeek() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "BlackOutDates", "daysOfWeek", null, "WeekDayCollection", 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_BlackOutDates_blackOutDates() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "BlackOutDates", "blackOutDates", null, "StandardDateRangeSet", 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_OfflineVisaDetails_basicDocuments() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "OfflineVisaDetails", "basicDocuments", 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_OfflineVisaDetails_documentsRequired() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "OfflineVisaDetails", "documentsRequired", 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_OfflineVisaDetails_notes() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "OfflineVisaDetails", "notes", 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_OfflineVisaDetails_processingTime() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "OfflineVisaDetails", "processingTime", 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_OfflineVisaDetails_paymentMode() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "OfflineVisaDetails", "paymentMode", 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_OfflineVisaDetails_prices() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "OfflineVisaDetails", "prices", null, "Prices", 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_Prices_companyPackageCategory() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Prices", "companyPackageCategory", null, "PackageCategory", 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_Prices_currency() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Prices", "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_Prices_perItem() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Prices", "perItem", 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_Prices_adult() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Prices", "adult", 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_Prices_child() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Prices", "child", 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_Prices_infant() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "Prices", "infant", 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_AccoDayWiseItinerary_productName() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "AccoDayWiseItinerary", "productName", null, "Accommodation", 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_AccoDayWiseItinerary_location() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "AccoDayWiseItinerary", "location", null, "Location", 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_AccoDayWiseItinerary_area() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "AccoDayWiseItinerary", "area", null, "Area", 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_AccoDayWiseItinerary_extensionNights() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "AccoDayWiseItinerary", "extensionNights", 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_AccoDayWiseItinerary_availDays() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "AccoDayWiseItinerary", "availDays", null, "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_OtherDayWiseItinerary_service() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "OtherDayWiseItinerary", "service", 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_OtherDayWiseItinerary_availDays() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "OtherDayWiseItinerary", "availDays", null, "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_OtherDayWiseItinerary_quantity() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "OtherDayWiseItinerary", "quantity", null, "java.lang.Long", 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_OtherDayWiseItinerary_valueAdded() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "OtherDayWiseItinerary", "valueAdded", 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_OtherDayWiseItinerary_numberOfItems() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "OtherDayWiseItinerary", "numberOfItems", null, "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_OtherDayWiseItinerary_description() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "OtherDayWiseItinerary", "description", 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_OtherDayWiseItinerary_prices() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "OtherDayWiseItinerary", "prices", null, "Prices", 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_ActivityDayWiseItinerary_pickUpPointType() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ActivityDayWiseItinerary", "pickUpPointType", null, "DestinationPointType", 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_ActivityDayWiseItinerary_pickUpPointName() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ActivityDayWiseItinerary", "pickUpPointName", null, "Item", 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_ActivityDayWiseItinerary_sessionName() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "ActivityDayWiseItinerary", "sessionName", null, "Session", 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_TransferProductDayWiseItinerary_category() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "category", null, "TransferCategory", 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_TransferProductDayWiseItinerary_journeyType() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "journeyType", null, "JourneyType", 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_TransferProductDayWiseItinerary_rateDefinedFor() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "rateDefinedFor", null, "RateDefinedForType", 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_TransferProductDayWiseItinerary_transferType() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "transferType", null, "TransferType", 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_TransferProductDayWiseItinerary_pickUpPointType() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "pickUpPointType", null, "DestinationPointType", 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_TransferProductDayWiseItinerary_pickUpPointName() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "pickUpPointName", null, "Item", 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_TransferProductDayWiseItinerary_dropOffPointName() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "dropOffPointName", null, "Item", 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_TransferProductDayWiseItinerary_dropOffPointType() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "dropOffPointType", null, "DestinationPointType", 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_TransferProductDayWiseItinerary_dropOffTime() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "dropOffTime", 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_TransferProductDayWiseItinerary_pickUpTime() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "pickUpTime", 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_TransferProductDayWiseItinerary_sessionName() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "sessionName", null, "Session", 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_TransferProductDayWiseItinerary_meetAndGreet() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "meetAndGreet", 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_TransferProductDayWiseItinerary_returnDay() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "returnDay", null, "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_TransferProductDayWiseItinerary_returnSequence() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "returnSequence", null, "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_TransferProductDayWiseItinerary_toCity() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "toCity", 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_TransferProductDayWiseItinerary_fromCity() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "fromCity", 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_TransferProductDayWiseItinerary_enRouteCity() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "enRouteCity", 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_TransferProductDayWiseItinerary_overNight() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "TransferProductDayWiseItinerary", "overNight", 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_FlightTransferDayWiseItinerary_fromCity() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "FlightTransferDayWiseItinerary", "fromCity", null, "Airport", 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_FlightTransferDayWiseItinerary_toCity() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "FlightTransferDayWiseItinerary", "toCity", null, "Airport", 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_FlightTransferDayWiseItinerary_availDays() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "FlightTransferDayWiseItinerary", "availDays", null, "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_FlightTransferDayWiseItinerary_returnDay() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "FlightTransferDayWiseItinerary", "returnDay", null, "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_FlightTransferDayWiseItinerary_returnSequence() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "FlightTransferDayWiseItinerary", "returnSequence", null, "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_RailTransferDayWiseItinerary_journeyType() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RailTransferDayWiseItinerary", "journeyType", null, "JourneyType", 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_RailTransferDayWiseItinerary_journeyByPass() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RailTransferDayWiseItinerary", "journeyByPass", 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_RailTransferDayWiseItinerary_availDays() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RailTransferDayWiseItinerary", "availDays", null, "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_RentalTransferDayWiseItinerary_vehicleCategory() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RentalTransferDayWiseItinerary", "vehicleCategory", 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_RentalTransferDayWiseItinerary_vehicleName() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RentalTransferDayWiseItinerary", "vehicleName", null, "Vehicle", 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_RentalTransferDayWiseItinerary_airCondition() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RentalTransferDayWiseItinerary", "airCondition", 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_RentalTransferDayWiseItinerary_withChuffer() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RentalTransferDayWiseItinerary", "withChuffer", 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_RailPassTransferDayWiseItinerary_countries() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RailPassTransferDayWiseItinerary", "countries", null, "Countries", 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_RailPassTransferDayWiseItinerary_numberOfDays() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RailPassTransferDayWiseItinerary", "numberOfDays", null, "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_RailTicketTransferDayWiseItinerary_fromCity() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RailTicketTransferDayWiseItinerary", "fromCity", 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_RailTicketTransferDayWiseItinerary_toCity() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RailTicketTransferDayWiseItinerary", "toCity", 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_RailTicketTransferDayWiseItinerary_reservationRequired() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RailTicketTransferDayWiseItinerary", "reservationRequired", 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_RailTicketTransferDayWiseItinerary_overNight() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RailTicketTransferDayWiseItinerary", "overNight", 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_RailTicketTransferDayWiseItinerary_returnDay() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RailTicketTransferDayWiseItinerary", "returnDay", null, "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_RailTicketTransferDayWiseItinerary_returnSequence() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "RailTicketTransferDayWiseItinerary", "returnSequence", null, "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_CarPackage_cities() throws JaloBusinessException { Map sqlColumnDefinitions = null; createPropertyAttribute( "CarPackage", "cities", null, "Cities", 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( "FlavorType", false, Arrays.asList( new String[] { "Seat_in_Coach_Packages", "Self_Drive_Packages", "Private_Touring", "Premium_Tours_with_Tour_Manager_Indian_Meals", "Coach_tour_with_Indian_meals_Tour_Escort", "Coach_tour_with_Indian_meals_Tour_Director", "Coach_Tours_All_Inclusive", "Rail_Holidays", "Hotel_Packages", "Coach_tour_with_Indian_meals", "Cruise_Holidays", "Coach_Tour_with_Continental_meal", "Coach_Tour_with_Continental_meals_Tour_Manager", "Premium_Tours_with_Tour_Manager", "Coach_tour_with_Continental_meals_Tour_Director", "Coach_tour_with_Tour_Manager" } ) ); createEnumerationValues( "HolidayProductType", false, Arrays.asList( new String[] { "FIT", "GROUP", "BOTH" } ) ); createEnumerationValues( "Session", false, Arrays.asList( new String[] { "MORNING", "AFTERNOON", "EVENING", "NIGHT" } ) ); createEnumerationValues( "TransferCategory", false, Arrays.asList( new String[] { "RENTAL", "TRANSFER" } ) ); createEnumerationValues( "RateDefinedForType", false, Arrays.asList( new String[] { "CITY_TRANSFER", "INTERCITYTRANSFER", "CITY_USE", "OUT_STATION" } ) ); single_setRelAttributeProperties_HolidayProductTODestination_source(); single_setRelAttributeProperties_HolidayFlavorTOAbstractDayWiseItinerary_source(); single_setRelAttributeProperties_HolidayFlavorTOBlackOutDates_source(); single_setRelAttributeProperties_HolidayFlavorTOHolidayHub_source(); single_setRelAttributeProperties_HolidayFlavorTOAbstractVisaDetails_source(); single_setRelAttributeProperties_HolidayHubTOFeeder_source(); single_setRelAttributeProperties_HolidayItineraryDetailsTODayWiseItinerary_source(); single_setRelAttributeProperties_HolidayFlavorTODayWiseItinerary_source(); single_setRelAttributeProperties_HolidayProductTODestination_target(); single_setRelAttributeProperties_HolidayFlavorTOAbstractDayWiseItinerary_target(); single_setRelAttributeProperties_HolidayFlavorTOBlackOutDates_target(); single_setRelAttributeProperties_HolidayFlavorTOHolidayHub_target(); single_setRelAttributeProperties_HolidayFlavorTOAbstractVisaDetails_target(); single_setRelAttributeProperties_HolidayHubTOFeeder_target(); single_setRelAttributeProperties_HolidayItineraryDetailsTODayWiseItinerary_target(); single_setRelAttributeProperties_HolidayFlavorTODayWiseItinerary_target(); connectRelation( "HolidayProductTODestination", false, "product", "HolidayProduct", 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, "holidayDestinaions", "HolidayDestination", 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.PARTOF_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG, true, false ); connectRelation( "HolidayFlavorTOAbstractDayWiseItinerary", false, "holidayFlavor", "HolidayFlavor", 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, "serviceBasedDayWiseItinerarise", "AbstractDayWiseItinerary", 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, true ); connectRelation( "HolidayFlavorTOBlackOutDates", false, "holidayFlavor", "HolidayFlavor", 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, "blackOutDays", "BlackOutDates", 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, true ); connectRelation( "HolidayFlavorTOHolidayHub", false, "holidayFlavor", "HolidayFlavor", 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, "hubs", "HolidayHub", 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, true ); connectRelation( "HolidayFlavorTOAbstractVisaDetails", false, "holidayFlavor", "HolidayFlavor", 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, "visas", "AbstractVisaDetails", 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, true ); connectRelation( "HolidayHubTOFeeder", false, "holidayHub", "HolidayHub", 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, "feeders", "Feeder", 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, true ); connectRelation( "HolidayItineraryDetailsTODayWiseItinerary", false, "dayWiseItinerary", "DayWiseItinerary", 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, "itineraryDetails", "HolidayItineraryDetails", 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, true ); connectRelation( "HolidayFlavorTODayWiseItinerary", false, "holidayFlavor", "HolidayFlavor", 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, "itineraryBasedDayWiseItineraries", "DayWiseItinerary", 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, true ); { Map customPropsMap = new HashMap(); setItemTypeProperties( "HolidayBrand", false, true, true, null, customPropsMap ); } single_setAttributeProperties_HolidayBrand_code(); single_setAttributeProperties_HolidayBrand_name(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "HolidayProduct", false, true, true, null, customPropsMap ); } single_setAttributeProperties_HolidayProduct_numberOfNight(); single_setAttributeProperties_HolidayProduct_numberOfDays(); single_setAttributeProperties_HolidayProduct_markets(); single_setAttributeProperties_HolidayProduct_brands(); single_setAttributeProperties_HolidayProduct_brochures(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "HolidayDestination", false, true, true, null, customPropsMap ); } single_setAttributeProperties_HolidayDestination_uid(); single_setAttributeProperties_HolidayDestination_destinationName(); single_setAttributeProperties_HolidayDestination_country(); single_setAttributeProperties_HolidayDestination_city(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "HolidayFlavor", false, true, true, null, customPropsMap ); } single_setAttributeProperties_HolidayFlavor_companyMarket(); single_setAttributeProperties_HolidayFlavor_companyTourCode(); single_setAttributeProperties_HolidayFlavor_flavorType(); single_setAttributeProperties_HolidayFlavor_packageType(); single_setAttributeProperties_HolidayFlavor_productType(); single_setAttributeProperties_HolidayFlavor_brandName(); single_setAttributeProperties_HolidayFlavor_itineraryWise(); single_setAttributeProperties_HolidayFlavor_comfortLevel(); single_setAttributeProperties_HolidayFlavor_companyRating(); single_setAttributeProperties_HolidayFlavor_rating(); single_setAttributeProperties_HolidayFlavor_recommended(); single_setAttributeProperties_HolidayFlavor_flightDay1Itinerary(); single_setAttributeProperties_HolidayFlavor_companyPackageCategories(); single_setAttributeProperties_HolidayFlavor_brochures(); single_setAttributeProperties_HolidayFlavor_interests(); single_setAttributeProperties_HolidayFlavor_salesValidities(); single_setAttributeProperties_HolidayFlavor_combinedCruise(); single_setAttributeProperties_HolidayFlavor_combinedFlavor(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "DayWiseItinerary", false, true, true, null, customPropsMap ); } single_setAttributeProperties_DayWiseItinerary_city(); single_setAttributeProperties_DayWiseItinerary_sequenceNumber(); single_setAttributeProperties_DayWiseItinerary_day(); single_setAttributeProperties_DayWiseItinerary_standardPrice(); single_setAttributeProperties_DayWiseItinerary_deluxePrice(); single_setAttributeProperties_DayWiseItinerary_superiorPrice(); single_setAttributeProperties_DayWiseItinerary_service(); single_setAttributeProperties_DayWiseItinerary_timeFrom(); single_setAttributeProperties_DayWiseItinerary_timeTo(); single_setAttributeProperties_DayWiseItinerary_lunchIncluded(); single_setAttributeProperties_DayWiseItinerary_breakfastIncluded(); single_setAttributeProperties_DayWiseItinerary_dinnerIncluded(); single_setAttributeProperties_DayWiseItinerary_sessionName(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "HolidayItineraryDetails", false, true, true, null, customPropsMap ); } single_setAttributeProperties_HolidayItineraryDetails_itineraryInBrief(); single_setAttributeProperties_HolidayItineraryDetails_itineraryDetails(); single_setAttributeProperties_HolidayItineraryDetails_packageCategories(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "HolidayHub", false, true, true, null, customPropsMap ); } single_setAttributeProperties_HolidayHub_productCategory(); single_setAttributeProperties_HolidayHub_productCategorySubType(); single_setAttributeProperties_HolidayHub_hub(); single_setAttributeProperties_HolidayHub_sectors(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "Feeder", false, true, true, null, customPropsMap ); } single_setAttributeProperties_Feeder_preTour(); single_setAttributeProperties_Feeder_postTour(); single_setAttributeProperties_Feeder_flavor(); single_setAttributeProperties_Feeder_transfer(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "BlackOutDates", false, true, true, null, customPropsMap ); } single_setAttributeProperties_BlackOutDates_daysOfWeek(); single_setAttributeProperties_BlackOutDates_blackOutDates(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "OnlineVisaDetails", false, true, true, null, customPropsMap ); } { Map customPropsMap = new HashMap(); setItemTypeProperties( "OfflineVisaDetails", false, true, true, null, customPropsMap ); } single_setAttributeProperties_OfflineVisaDetails_basicDocuments(); single_setAttributeProperties_OfflineVisaDetails_documentsRequired(); single_setAttributeProperties_OfflineVisaDetails_notes(); single_setAttributeProperties_OfflineVisaDetails_processingTime(); single_setAttributeProperties_OfflineVisaDetails_paymentMode(); single_setAttributeProperties_OfflineVisaDetails_prices(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "Prices", false, true, true, null, customPropsMap ); } single_setAttributeProperties_Prices_companyPackageCategory(); single_setAttributeProperties_Prices_currency(); single_setAttributeProperties_Prices_perItem(); single_setAttributeProperties_Prices_adult(); single_setAttributeProperties_Prices_child(); single_setAttributeProperties_Prices_infant(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "AccoDayWiseItinerary", false, true, true, null, customPropsMap ); } single_setAttributeProperties_AccoDayWiseItinerary_productName(); single_setAttributeProperties_AccoDayWiseItinerary_location(); single_setAttributeProperties_AccoDayWiseItinerary_area(); single_setAttributeProperties_AccoDayWiseItinerary_extensionNights(); single_setAttributeProperties_AccoDayWiseItinerary_availDays(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "OtherDayWiseItinerary", false, true, true, null, customPropsMap ); } single_setAttributeProperties_OtherDayWiseItinerary_service(); single_setAttributeProperties_OtherDayWiseItinerary_availDays(); single_setAttributeProperties_OtherDayWiseItinerary_quantity(); single_setAttributeProperties_OtherDayWiseItinerary_valueAdded(); single_setAttributeProperties_OtherDayWiseItinerary_numberOfItems(); single_setAttributeProperties_OtherDayWiseItinerary_description(); single_setAttributeProperties_OtherDayWiseItinerary_prices(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "ActivityDayWiseItinerary", false, true, true, null, customPropsMap ); } single_setAttributeProperties_ActivityDayWiseItinerary_pickUpPointType(); single_setAttributeProperties_ActivityDayWiseItinerary_pickUpPointName(); single_setAttributeProperties_ActivityDayWiseItinerary_sessionName(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "TransferProductDayWiseItinerary", false, true, true, null, customPropsMap ); } single_setAttributeProperties_TransferProductDayWiseItinerary_category(); single_setAttributeProperties_TransferProductDayWiseItinerary_journeyType(); single_setAttributeProperties_TransferProductDayWiseItinerary_rateDefinedFor(); single_setAttributeProperties_TransferProductDayWiseItinerary_transferType(); single_setAttributeProperties_TransferProductDayWiseItinerary_pickUpPointType(); single_setAttributeProperties_TransferProductDayWiseItinerary_pickUpPointName(); single_setAttributeProperties_TransferProductDayWiseItinerary_dropOffPointName(); single_setAttributeProperties_TransferProductDayWiseItinerary_dropOffPointType(); single_setAttributeProperties_TransferProductDayWiseItinerary_dropOffTime(); single_setAttributeProperties_TransferProductDayWiseItinerary_pickUpTime(); single_setAttributeProperties_TransferProductDayWiseItinerary_sessionName(); single_setAttributeProperties_TransferProductDayWiseItinerary_meetAndGreet(); single_setAttributeProperties_TransferProductDayWiseItinerary_returnDay(); single_setAttributeProperties_TransferProductDayWiseItinerary_returnSequence(); single_setAttributeProperties_TransferProductDayWiseItinerary_toCity(); single_setAttributeProperties_TransferProductDayWiseItinerary_fromCity(); single_setAttributeProperties_TransferProductDayWiseItinerary_enRouteCity(); single_setAttributeProperties_TransferProductDayWiseItinerary_overNight(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "FlightTransferDayWiseItinerary", false, true, true, null, customPropsMap ); } single_setAttributeProperties_FlightTransferDayWiseItinerary_fromCity(); single_setAttributeProperties_FlightTransferDayWiseItinerary_toCity(); single_setAttributeProperties_FlightTransferDayWiseItinerary_availDays(); single_setAttributeProperties_FlightTransferDayWiseItinerary_returnDay(); single_setAttributeProperties_FlightTransferDayWiseItinerary_returnSequence(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "RailTransferDayWiseItinerary", false, true, true, null, customPropsMap ); } single_setAttributeProperties_RailTransferDayWiseItinerary_journeyType(); single_setAttributeProperties_RailTransferDayWiseItinerary_journeyByPass(); single_setAttributeProperties_RailTransferDayWiseItinerary_availDays(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "RentalTransferDayWiseItinerary", false, true, true, null, customPropsMap ); } single_setAttributeProperties_RentalTransferDayWiseItinerary_vehicleCategory(); single_setAttributeProperties_RentalTransferDayWiseItinerary_vehicleName(); single_setAttributeProperties_RentalTransferDayWiseItinerary_airCondition(); single_setAttributeProperties_RentalTransferDayWiseItinerary_withChuffer(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "RailPassTransferDayWiseItinerary", false, true, true, null, customPropsMap ); } single_setAttributeProperties_RailPassTransferDayWiseItinerary_countries(); single_setAttributeProperties_RailPassTransferDayWiseItinerary_numberOfDays(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "RailTicketTransferDayWiseItinerary", false, true, true, null, customPropsMap ); } single_setAttributeProperties_RailTicketTransferDayWiseItinerary_fromCity(); single_setAttributeProperties_RailTicketTransferDayWiseItinerary_toCity(); single_setAttributeProperties_RailTicketTransferDayWiseItinerary_reservationRequired(); single_setAttributeProperties_RailTicketTransferDayWiseItinerary_overNight(); single_setAttributeProperties_RailTicketTransferDayWiseItinerary_returnDay(); single_setAttributeProperties_RailTicketTransferDayWiseItinerary_returnSequence(); { Map customPropsMap = new HashMap(); setItemTypeProperties( "CarPackage", false, true, true, null, customPropsMap ); } single_setAttributeProperties_CarPackage_cities(); setDefaultProperties( "HolidayBrands", true, true, null ); setDefaultProperties( "Brochures", true, true, null ); setDefaultProperties( "Markets", true, true, null ); setDefaultProperties( "Interests", true, true, null ); setDefaultProperties( "Sectors", true, true, null ); setDefaultProperties( "FlavorType", true, true, null ); setDefaultProperties( "HolidayProductType", true, true, null ); setDefaultProperties( "Session", true, true, null ); setDefaultProperties( "TransferCategory", true, true, null ); setDefaultProperties( "RateDefinedForType", true, true, null ); } public void single_setAttributeProperties_HolidayBrand_code() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayBrand", "code", true, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayBrand_name() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayBrand", "name", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayProduct_numberOfNight() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayProduct", "numberOfNight", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayProduct_numberOfDays() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayProduct", "numberOfDays", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayProduct_markets() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayProduct", "markets", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayProduct_brands() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayProduct", "brands", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayProduct_brochures() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayProduct", "brochures", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayDestination_uid() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayDestination", "uid", true, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayDestination_destinationName() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayDestination", "destinationName", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayDestination_country() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayDestination", "country", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayDestination_city() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayDestination", "city", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_companyMarket() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "companyMarket", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_companyTourCode() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "companyTourCode", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_flavorType() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "flavorType", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_packageType() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "packageType", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_productType() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "productType", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_brandName() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "brandName", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_itineraryWise() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "itineraryWise", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_comfortLevel() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "comfortLevel", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_companyRating() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "companyRating", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_rating() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "rating", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_recommended() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "recommended", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_flightDay1Itinerary() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "flightDay1Itinerary", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_companyPackageCategories() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "companyPackageCategories", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_brochures() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "brochures", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_interests() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "interests", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_salesValidities() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "salesValidities", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_combinedCruise() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "combinedCruise", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayFlavor_combinedFlavor() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "combinedFlavor", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_DayWiseItinerary_city() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "city", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_DayWiseItinerary_sequenceNumber() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "sequenceNumber", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_DayWiseItinerary_day() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "day", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_DayWiseItinerary_standardPrice() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "standardPrice", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_DayWiseItinerary_deluxePrice() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "deluxePrice", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_DayWiseItinerary_superiorPrice() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "superiorPrice", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_DayWiseItinerary_service() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "service", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_DayWiseItinerary_timeFrom() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "timeFrom", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_DayWiseItinerary_timeTo() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "timeTo", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_DayWiseItinerary_lunchIncluded() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "lunchIncluded", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_DayWiseItinerary_breakfastIncluded() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "breakfastIncluded", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_DayWiseItinerary_dinnerIncluded() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "dinnerIncluded", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_DayWiseItinerary_sessionName() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "sessionName", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayItineraryDetails_itineraryInBrief() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayItineraryDetails", "itineraryInBrief", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayItineraryDetails_itineraryDetails() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayItineraryDetails", "itineraryDetails", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayItineraryDetails_packageCategories() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayItineraryDetails", "packageCategories", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayHub_productCategory() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayHub", "productCategory", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayHub_productCategorySubType() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayHub", "productCategorySubType", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayHub_hub() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayHub", "hub", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_HolidayHub_sectors() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayHub", "sectors", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Feeder_preTour() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Feeder", "preTour", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Feeder_postTour() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Feeder", "postTour", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Feeder_flavor() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Feeder", "flavor", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Feeder_transfer() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Feeder", "transfer", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_BlackOutDates_daysOfWeek() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "BlackOutDates", "daysOfWeek", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_BlackOutDates_blackOutDates() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "BlackOutDates", "blackOutDates", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_OfflineVisaDetails_basicDocuments() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "OfflineVisaDetails", "basicDocuments", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_OfflineVisaDetails_documentsRequired() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "OfflineVisaDetails", "documentsRequired", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_OfflineVisaDetails_notes() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "OfflineVisaDetails", "notes", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_OfflineVisaDetails_processingTime() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "OfflineVisaDetails", "processingTime", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_OfflineVisaDetails_paymentMode() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "OfflineVisaDetails", "paymentMode", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_OfflineVisaDetails_prices() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "OfflineVisaDetails", "prices", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Prices_companyPackageCategory() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Prices", "companyPackageCategory", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Prices_currency() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Prices", "currency", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Prices_perItem() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Prices", "perItem", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Prices_adult() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Prices", "adult", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Prices_child() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Prices", "child", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_Prices_infant() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Prices", "infant", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_AccoDayWiseItinerary_productName() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "AccoDayWiseItinerary", "productName", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_AccoDayWiseItinerary_location() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "AccoDayWiseItinerary", "location", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_AccoDayWiseItinerary_area() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "AccoDayWiseItinerary", "area", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_AccoDayWiseItinerary_extensionNights() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "AccoDayWiseItinerary", "extensionNights", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_AccoDayWiseItinerary_availDays() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "AccoDayWiseItinerary", "availDays", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_OtherDayWiseItinerary_service() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "OtherDayWiseItinerary", "service", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_OtherDayWiseItinerary_availDays() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "OtherDayWiseItinerary", "availDays", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_OtherDayWiseItinerary_quantity() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "OtherDayWiseItinerary", "quantity", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_OtherDayWiseItinerary_valueAdded() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "OtherDayWiseItinerary", "valueAdded", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_OtherDayWiseItinerary_numberOfItems() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "OtherDayWiseItinerary", "numberOfItems", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_OtherDayWiseItinerary_description() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "OtherDayWiseItinerary", "description", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_OtherDayWiseItinerary_prices() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "OtherDayWiseItinerary", "prices", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ActivityDayWiseItinerary_pickUpPointType() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ActivityDayWiseItinerary", "pickUpPointType", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ActivityDayWiseItinerary_pickUpPointName() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ActivityDayWiseItinerary", "pickUpPointName", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_ActivityDayWiseItinerary_sessionName() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "ActivityDayWiseItinerary", "sessionName", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_category() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "category", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_journeyType() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "journeyType", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_rateDefinedFor() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "rateDefinedFor", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_transferType() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "transferType", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_pickUpPointType() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "pickUpPointType", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_pickUpPointName() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "pickUpPointName", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_dropOffPointName() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "dropOffPointName", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_dropOffPointType() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "dropOffPointType", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_dropOffTime() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "dropOffTime", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_pickUpTime() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "pickUpTime", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_sessionName() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "sessionName", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_meetAndGreet() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "meetAndGreet", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_returnDay() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "returnDay", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_returnSequence() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "returnSequence", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_toCity() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "toCity", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_fromCity() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "fromCity", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_enRouteCity() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "enRouteCity", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_TransferProductDayWiseItinerary_overNight() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "TransferProductDayWiseItinerary", "overNight", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_FlightTransferDayWiseItinerary_fromCity() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "FlightTransferDayWiseItinerary", "fromCity", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_FlightTransferDayWiseItinerary_toCity() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "FlightTransferDayWiseItinerary", "toCity", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_FlightTransferDayWiseItinerary_availDays() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "FlightTransferDayWiseItinerary", "availDays", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_FlightTransferDayWiseItinerary_returnDay() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "FlightTransferDayWiseItinerary", "returnDay", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_FlightTransferDayWiseItinerary_returnSequence() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "FlightTransferDayWiseItinerary", "returnSequence", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RailTransferDayWiseItinerary_journeyType() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RailTransferDayWiseItinerary", "journeyType", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RailTransferDayWiseItinerary_journeyByPass() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RailTransferDayWiseItinerary", "journeyByPass", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RailTransferDayWiseItinerary_availDays() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RailTransferDayWiseItinerary", "availDays", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RentalTransferDayWiseItinerary_vehicleCategory() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RentalTransferDayWiseItinerary", "vehicleCategory", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RentalTransferDayWiseItinerary_vehicleName() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RentalTransferDayWiseItinerary", "vehicleName", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RentalTransferDayWiseItinerary_airCondition() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RentalTransferDayWiseItinerary", "airCondition", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RentalTransferDayWiseItinerary_withChuffer() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RentalTransferDayWiseItinerary", "withChuffer", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RailPassTransferDayWiseItinerary_countries() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RailPassTransferDayWiseItinerary", "countries", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RailPassTransferDayWiseItinerary_numberOfDays() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RailPassTransferDayWiseItinerary", "numberOfDays", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RailTicketTransferDayWiseItinerary_fromCity() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RailTicketTransferDayWiseItinerary", "fromCity", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RailTicketTransferDayWiseItinerary_toCity() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RailTicketTransferDayWiseItinerary", "toCity", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RailTicketTransferDayWiseItinerary_reservationRequired() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RailTicketTransferDayWiseItinerary", "reservationRequired", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RailTicketTransferDayWiseItinerary_overNight() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RailTicketTransferDayWiseItinerary", "overNight", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RailTicketTransferDayWiseItinerary_returnDay() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RailTicketTransferDayWiseItinerary", "returnDay", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_RailTicketTransferDayWiseItinerary_returnSequence() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "RailTicketTransferDayWiseItinerary", "returnSequence", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setAttributeProperties_CarPackage_cities() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "CarPackage", "cities", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayProductTODestination_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayDestination", "product", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayProductTODestination_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayProduct", "holidayDestinaions", false, null, null, null, true, false, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayFlavorTOAbstractDayWiseItinerary_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "AbstractDayWiseItinerary", "holidayFlavor", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayFlavorTOAbstractDayWiseItinerary_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "serviceBasedDayWiseItinerarise", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayFlavorTOBlackOutDates_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "BlackOutDates", "holidayFlavor", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayFlavorTOBlackOutDates_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "blackOutDays", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayFlavorTOHolidayHub_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayHub", "holidayFlavor", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayFlavorTOHolidayHub_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "hubs", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayFlavorTOAbstractVisaDetails_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "AbstractVisaDetails", "holidayFlavor", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayFlavorTOAbstractVisaDetails_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "visas", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayHubTOFeeder_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "Feeder", "holidayHub", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayHubTOFeeder_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayHub", "feeders", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayItineraryDetailsTODayWiseItinerary_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayItineraryDetails", "dayWiseItinerary", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayItineraryDetailsTODayWiseItinerary_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "itineraryDetails", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayFlavorTODayWiseItinerary_source() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "DayWiseItinerary", "holidayFlavor", false, null, null, null, true, true, null, customPropsMap, null ); } public void single_setRelAttributeProperties_HolidayFlavorTODayWiseItinerary_target() throws JaloBusinessException { Map customPropsMap = new HashMap(); setAttributeProperties( "HolidayFlavor", "itineraryBasedDayWiseItineraries", false, null, null, null, true, true, null, customPropsMap, null ); } }
package android.huyhuynh.orderapp.model; /** * Created by Huy Huynh on 19-09-2019. */ import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class Ban { @SerializedName("maBan") @Expose private String maBan; @SerializedName("tenBan") @Expose private String tenBan; @SerializedName("moTa") @Expose private String moTa; public Ban(String maBan, String tenBan, String moTa) { this.maBan = maBan; this.tenBan = tenBan; this.moTa = moTa; } public Ban() { } public String getMaBan() { return maBan; } public void setMaBan(String maBan) { this.maBan = maBan; } public String getTenBan() { return tenBan; } public void setTenBan(String tenBan) { this.tenBan = tenBan; } public String getMoTa() { return moTa; } public void setMoTa(String moTa) { this.moTa = moTa; } }
package com.wellness.eva.procedures; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentTabHost; import android.view.MotionEvent; import android.view.View; import android.view.View.OnClickListener; import android.widget.TabHost; import android.widget.TextView; import android.widget.ViewFlipper; import com.wellness.eva.FileRetrieval; import com.wellness.eva.R; import com.wellness.eva.feedback.CPRFeedback; import com.wellness.eva.procedures.MedicalProcedure; import java.util.ArrayList; public class MedicalProceduresView extends Activity implements OnClickListener { private String emergencyType; private ViewFlipper heartAttack_viewFlipper; private ViewFlipper choking_viewFlipper; private ViewFlipper drowning_viewFlipper; private ViewFlipper burning_tab1_viewFlipper; private ViewFlipper burning_tab2_viewFlipper; private ViewFlipper burning_tab3_viewFlipper; private TabHost host; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main4); heartAttack_viewFlipper = (ViewFlipper) findViewById(R.id.viewFlipper); heartAttack_viewFlipper.setOnClickListener(this); choking_viewFlipper = (ViewFlipper) findViewById(R.id.viewFlipper2); choking_viewFlipper.setOnClickListener(this); drowning_viewFlipper = (ViewFlipper) findViewById(R.id.viewFlipper3); drowning_viewFlipper.setOnClickListener(this); burning_tab1_viewFlipper = (ViewFlipper) findViewById(R.id.viewFlipper4); burning_tab1_viewFlipper.setOnClickListener(this); burning_tab2_viewFlipper = (ViewFlipper) findViewById(R.id.viewFlipper5); burning_tab2_viewFlipper.setOnClickListener(this); burning_tab3_viewFlipper = (ViewFlipper) findViewById(R.id.viewFlipper6); burning_tab3_viewFlipper.setOnClickListener(this); Bundle bundle = getIntent().getExtras(); emergencyType = bundle.getString("emergency_situation"); FileRetrieval file = new FileRetrieval(); MedicalProcedure procedure = new MedicalProcedure(); procedure = file.retrieveMedicalEmergency(emergencyType); if (emergencyType.equals("burning")) { View b = findViewById(R.id.button); b.setVisibility(View.GONE); host = (TabHost) findViewById(R.id.tabHost2); host.setup(); //Tab 1 TabHost.TabSpec spec = host.newTabSpec("First degree burns"); spec.setContent(R.id.linearLayout); spec.setIndicator("First degree burns"); host.addTab(spec); //Tab 2 spec = host.newTabSpec("Second degree burns"); spec.setContent(R.id.linearLayout2); spec.setIndicator("Second degree burns"); host.addTab(spec); //Tab 3 spec = host.newTabSpec("Third degree burns"); spec.setContent(R.id.linearLayout3); spec.setIndicator("Third degree burns"); host.addTab(spec); TextView myTextView37 = new TextView(this); myTextView37 = (TextView) findViewById(R.id.textView37); TextView myTextView38 = new TextView(this); myTextView38 = (TextView) findViewById(R.id.textView38); TextView myTextView39 = new TextView(this); myTextView39 = (TextView) findViewById(R.id.textView39); TextView myTextView40 = new TextView(this); myTextView40 = (TextView) findViewById(R.id.textView40); TextView myTextView41 = new TextView(this); myTextView41 = (TextView) findViewById(R.id.textView41); TextView myTextView42 = new TextView(this); myTextView42 = (TextView) findViewById(R.id.textView42); TextView myTextView43 = new TextView(this); myTextView43 = (TextView) findViewById(R.id.textView43); TextView myTextView44 = new TextView(this); myTextView44 = (TextView) findViewById(R.id.textView44); TextView myTextView45 = new TextView(this); myTextView45 = (TextView) findViewById(R.id.textView45); TextView myTextView46 = new TextView(this); myTextView46 = (TextView) findViewById(R.id.textView46); TextView myTextView47 = new TextView(this); myTextView47 = (TextView) findViewById(R.id.textView47); TextView myTextView48 = new TextView(this); myTextView48 = (TextView) findViewById(R.id.textView48); TextView myTextView49 = new TextView(this); myTextView49 = (TextView) findViewById(R.id.textView49); TextView myTextView50 = new TextView(this); myTextView50 = (TextView) findViewById(R.id.textView50); TextView myTextView51 = new TextView(this); myTextView51 = (TextView) findViewById(R.id.textView51); TextView myTextView52 = new TextView(this); myTextView52 = (TextView) findViewById(R.id.textView52); TextView myTextView53 = new TextView(this); myTextView53 = (TextView) findViewById(R.id.textView53); TextView myTextView54 = new TextView(this); myTextView54 = (TextView) findViewById(R.id.textView54); TextView myTextView55 = new TextView(this); myTextView55 = (TextView) findViewById(R.id.textView55); ArrayList <TextView> myTextViews = new ArrayList<>(); myTextViews.add(myTextView37); myTextViews.add(myTextView38); myTextViews.add(myTextView39); myTextViews.add(myTextView40); myTextViews.add(myTextView41); myTextViews.add(myTextView42); myTextViews.add(myTextView43); myTextViews.add(myTextView44); myTextViews.add(myTextView45); myTextViews.add(myTextView46); myTextViews.add(myTextView47); myTextViews.add(myTextView48); myTextViews.add(myTextView49); myTextViews.add(myTextView50); myTextViews.add(myTextView51); myTextViews.add(myTextView52); myTextViews.add(myTextView53); myTextViews.add(myTextView54); myTextViews.add(myTextView55); for (int i = 0; i < procedure.getInstructions().size() - 15; i++) { myTextViews.get(i).append(procedure.getInstructions().get(i)); } for (int i = 4; i < procedure.getInstructions().size() - 5; i++) { myTextViews.get(i).append(procedure.getInstructions().get(i)); } for (int i = 14; i < procedure.getInstructions().size(); i++) { myTextViews.get(i).append(procedure.getInstructions().get(i)); } } else if(emergencyType.equals("heart_attack")) { TextView myTextView8 = new TextView(this); myTextView8 = (TextView) findViewById(R.id.textView8); TextView myTextView9 = new TextView(this); myTextView9 = (TextView) findViewById(R.id.textView9); TextView myTextView10 = new TextView(this); myTextView10 = (TextView) findViewById(R.id.textView10); TextView myTextView11 = new TextView(this); myTextView11 = (TextView) findViewById(R.id.textView11); TextView myTextView12 = new TextView(this); myTextView12 = (TextView) findViewById(R.id.textView12); TextView myTextView13 = new TextView(this); myTextView13 = (TextView) findViewById(R.id.textView13); ArrayList <TextView> myTextViews = new ArrayList<>(); myTextViews.add(myTextView8); myTextViews.add(myTextView9); myTextViews.add(myTextView10); myTextViews.add(myTextView11); myTextViews.add(myTextView12); myTextViews.add(myTextView13); for(int i = 0; i < procedure.getInstructions().size(); i++) { myTextViews.get(i).append(procedure.getInstructions().get(i)); } } else if(emergencyType.equals("choking")) { TextView myTextView14 = new TextView(this); myTextView14 = (TextView) findViewById(R.id.textView14); TextView myTextView15 = new TextView(this); myTextView15 = (TextView) findViewById(R.id.textView15); TextView myTextView16 = new TextView(this); myTextView16 = (TextView) findViewById(R.id.textView16); TextView myTextView17 = new TextView(this); myTextView17 = (TextView) findViewById(R.id.textView17); TextView myTextView18 = new TextView(this); myTextView18 = (TextView) findViewById(R.id.textView18); TextView myTextView19 = new TextView(this); myTextView19 = (TextView) findViewById(R.id.textView19); TextView myTextView20 = new TextView(this); myTextView20 = (TextView) findViewById(R.id.textView20); TextView myTextView21 = new TextView(this); myTextView21 = (TextView) findViewById(R.id.textView21); TextView myTextView22 = new TextView(this); myTextView22 = (TextView) findViewById(R.id.textView22); TextView myTextView23 = new TextView(this); myTextView23 = (TextView) findViewById(R.id.textView23); TextView myTextView24 = new TextView(this); myTextView24 = (TextView) findViewById(R.id.textView24); TextView myTextView25 = new TextView(this); myTextView25 = (TextView) findViewById(R.id.textView25); TextView myTextView26 = new TextView(this); myTextView26 = (TextView) findViewById(R.id.textView26); TextView myTextView27 = new TextView(this); myTextView27 = (TextView) findViewById(R.id.textView27); TextView myTextView28 = new TextView(this); myTextView28 = (TextView) findViewById(R.id.textView28); ArrayList <TextView> myTextViews = new ArrayList<>(); myTextViews.add(myTextView14); myTextViews.add(myTextView15); myTextViews.add(myTextView16); myTextViews.add(myTextView17); myTextViews.add(myTextView18); myTextViews.add(myTextView19); myTextViews.add(myTextView20); myTextViews.add(myTextView21); myTextViews.add(myTextView22); myTextViews.add(myTextView23); myTextViews.add(myTextView24); myTextViews.add(myTextView25); myTextViews.add(myTextView26); myTextViews.add(myTextView27); myTextViews.add(myTextView28); for(int i = 0; i < procedure.getInstructions().size(); i++) { myTextViews.get(i).append(procedure.getInstructions().get(i)); } } else if(emergencyType.equals("drowning")) { TextView myTextView29 = new TextView(this); myTextView29 = (TextView) findViewById(R.id.textView29); TextView myTextView30 = new TextView(this); myTextView30 = (TextView) findViewById(R.id.textView30); TextView myTextView31 = new TextView(this); myTextView31 = (TextView) findViewById(R.id.textView31); TextView myTextView32 = new TextView(this); myTextView32 = (TextView) findViewById(R.id.textView32); TextView myTextView33 = new TextView(this); myTextView33 = (TextView) findViewById(R.id.textView33); TextView myTextView34 = new TextView(this); myTextView34 = (TextView) findViewById(R.id.textView34); TextView myTextView35 = new TextView(this); myTextView35 = (TextView) findViewById(R.id.textView35); TextView myTextView36 = new TextView(this); myTextView36 = (TextView) findViewById(R.id.textView36); ArrayList <TextView> myTextViews = new ArrayList<>(); myTextViews.add(myTextView29); myTextViews.add(myTextView30); myTextViews.add(myTextView31); myTextViews.add(myTextView32); myTextViews.add(myTextView33); myTextViews.add(myTextView34); myTextViews.add(myTextView35); myTextViews.add(myTextView36); for(int i = 0; i < procedure.getInstructions().size(); i++) { myTextViews.get(i).append(procedure.getInstructions().get(i)); } } } //to initiate cpr public void beginCPR_procedures(View view){ Intent intent = new Intent(this, CPRFeedback.class); startActivity(intent); } @Override public void onClick(View v) { heartAttack_viewFlipper.showNext(); choking_viewFlipper.showNext(); drowning_viewFlipper.showNext(); if (emergencyType.equals("burning")) { ArrayList <ViewFlipper> v_array = new ArrayList<>(); v_array.add(burning_tab1_viewFlipper); v_array.add(burning_tab2_viewFlipper); v_array.add(burning_tab3_viewFlipper); for (int i = 0; i < host.getTabWidget().getChildCount(); i++) { if (host.getTabWidget().getChildAt(i).isSelected()) { v_array.get(i).showNext(); } } } } }
package rain.test.study2020.m01.d30; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * 452. 用最少数量的箭引爆气球 * 在二维空间中有许多球形的气球。对于每个气球,提供的输入是水平方向上,气球直径的开始和结束坐标。 * 由于它是水平的,所以y坐标并不重要,因此只要知道开始和结束的x坐标就足够了。开始坐标总是小于结束坐标。平面内最多存在104个气球。 * <p> * 一支弓箭可以沿着x轴从不同点完全垂直地射出。在坐标x处射出一支箭,若有一个气球的直径的开始和结束坐标为 xstart,xend, * 且满足  xstart ≤ x ≤ xend,则该气球会被引爆。可以射出的弓箭的数量没有限制。 弓箭一旦被射出之后,可以无限地前进。 * 我们想找到使得所有气球全部被引爆,所需的弓箭的最小数量。 * <p> * Example: * <p> * 输入: * [[10,16], [2,8], [1,6], [7,12]] * [[1,2],[3,4],[5,6],[7,8]] * <p> * 输出: * 2 * <p> * 解释: * 对于该样例,我们可以在x = 6(射爆[2,8],[1,6]两个气球)和 x = 11(射爆另外两个气球) */ public class FindMinArrowShots { public static void main(String[] args) { int[][] arr = {{1, 2}, {3, 4}, {5, 6}, {7, 8}}; int tes = new FindMinArrowShots().findMinArrowShots(arr); System.out.println("-->>" + tes); } public int findMinArrowShots(int[][] points) { if (points == null || points.length == 0) { return 0; } List<Point> pointList = new ArrayList<>(points[0].length); for (int i = 0; i < points.length; i++) { Point point = new Point(points[i][0], points[i][1]); pointList.add(point); } Collections.sort(pointList); int count = 1; int start = pointList.get(0).getStart(); int end = pointList.get(0).getEnd(); for (int i = 1; i < pointList.size(); i++) { Point tmp = pointList.get(i); System.out.println(tmp); // if (end < tmp.getStart()) { count++; end = tmp.getEnd(); } } return count; } } class Point implements Comparable<Point> { private int start; private int end; public Point(int start, int end) { this.start = start; this.end = end; } public int getStart() { return start; } public void setStart(int start) { this.start = start; } public int getEnd() { return end; } public void setEnd(int end) { this.end = end; } @Override public String toString() { return "Point :start-->>" + start + " , end is " + end; } @Override public int compareTo(Point o) { return this.getEnd() - o.getEnd(); } }
package controllers; import play.*; import play.db.jpa.Blob; import play.mvc.*; import java.util.*; import models.User; import models.Logged; import utils.Helpers; public class Accounts extends Controller { /* helpers */ public static String getLoggedUserIdRaw() { return (session.get("logged_in_userid")); } public static void clearSessionAndShowIndex() { session.clear(); // accountsIndex(); } /* regular controller methods */ public static void register(String name, String email, String password, boolean showonline) { //email not case sensitive // profile_email = profile_email.toLowerCase(); Logger.info(name + " " + email + " " + " " + password); User user = new User(name, email, password, showonline); // no duplicates by my own email is allowed to use again if (User.findByEmail(email)!=null && name.length()>0 && email.length()>0) { user.save(); Logged logged = new Logged(user).save(); Logger.info("User registered"); renderText(logged); } else { Logger.info("Some other inputs are not filled in properly. Not registering."); renderText(""); } } public static void update(String sid, String name, String email, String status, boolean showonline) { Logger.info("Updating profile :" + sid + " "+ name + " " + email + " " + status ); if (status.length()>0 && name.length()>0 && email.length()>0) { User user = Logged.getUser(sid); user.name=name; user.email=email; user.status=status; user.showOnline=showonline; user.save(); Logger.info("User updated"); renderText(user); } else { Logger.info("Some other inputs are not filled in properly. Not updating."); renderText(""); } } public static void login(String email, String password) { // email is case insensitive email = email.toLowerCase(); Logger.info("Attempting to authenticate with " + email + ":" + password); User user = User.findByEmail(email); if ((user != null) && (user.checkPassword(password) == true)) { Logger.info("Authentication successful"); Logged logged = new Logged(user).save(); user.online = true; user.save(); // MyHome.myHomeIndex(); Logger.info("Created session id:"+logged); renderText(logged); } else { Logger.info("Authentication failed"); // accountsLogin(); renderText(""); } } public static void logout(String session) { Logger.info("Logout session id:"+session); if (session.length()>0) { User user = Logged.getUser(session); user.online = false; user.save(); Logged logged = Logged.getSession(session); logged.delete(); } else { Logger.info("No session yet, we can continue."); } renderText(""); } public static void uploadAvatar(String sid, Blob picture) { User user = Logged.getUser(sid); user.avatar = picture; user.save(); Logger.info("saving picture"); Api.index(); } }
/* * Copyright 2011-2021 the original author or authors. * * Licensed 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 * * https://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.springframework.data.neo4j.core.mapping.callback; import org.springframework.core.Ordered; import org.springframework.data.neo4j.core.mapping.Neo4jMappingContext; /** * Callback to increment the value of the version property for a given entity. * * @author Gerrit Meier * @since 6.0.2 */ final class OptimisticLockingBeforeBindCallback implements BeforeBindCallback<Object>, Ordered { private final OptimisticLockingSupport optimisticLocking; OptimisticLockingBeforeBindCallback(Neo4jMappingContext neo4jMappingContext) { this.optimisticLocking = new OptimisticLockingSupport(neo4jMappingContext); } @Override public Object onBeforeBind(Object entity) { return optimisticLocking.getAndIncrementVersionPropertyIfNecessary(entity); } @Override public int getOrder() { return AuditingBeforeBindCallback.NEO4J_AUDITING_ORDER + 11; } }
package com.tencent.mm.ui; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; public final class am { public static Bitmap b(int i, int i2, Config config) { Bitmap bitmap = null; try { return Bitmap.createBitmap(i, i2, config); } catch (Throwable th) { return bitmap; } } }
package com.assignment.conference.factory; import com.assignment.conference.time.Track; public class TrackFactory { private static Integer trackNumber = 0; public TrackFactory() { } /** * * @return */ public static Track getTrackInstance() { trackNumber++; return new Track(trackNumber); } }
package pl.sda.mysimpleblog.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Sort; import org.springframework.security.core.Authentication; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.stereotype.Service; import pl.sda.mysimpleblog.model.Comment; import pl.sda.mysimpleblog.model.Post; import pl.sda.mysimpleblog.model.User; import pl.sda.mysimpleblog.model.enums.CategoryEnum; import pl.sda.mysimpleblog.repository.CommentRepository; import pl.sda.mysimpleblog.repository.PostsRepository; import pl.sda.mysimpleblog.repository.UserRepository; import java.util.List; import java.util.Set; @Service public class PostsService { PostsRepository postsRepository; UserRepository userRepository; CommentRepository commentRepository; @Autowired public PostsService(PostsRepository postsRepository, UserRepository userRepository, CommentRepository commentRepository) { this.postsRepository = postsRepository; this.userRepository = userRepository; this.commentRepository = commentRepository; } public List<Post> getAllPosts(){ // sortowanie po id malejąco return postsRepository.findAll(Sort.by("id").descending()); } public Post getPostById(Long post_id){ if(postsRepository.findById(post_id).isPresent()) { return postsRepository.getOne(post_id); } return new Post(); } public void addComment(Comment comment, Long post_id, Authentication auth){ if(auth != null) { UserDetails userDetails = (UserDetails) auth.getPrincipal(); String loggedEmail = userDetails.getUsername(); comment.setUser(userRepository.getByEmail(loggedEmail)); } Post post = postsRepository.getOne(post_id); comment.setPost(post); commentRepository.save(comment); } public void savePost(Post post, String email){ // odczyt obiektu user na podstawie pola email User user = userRepository.getByEmail(email); // przypisanie autora do posta post.setUser(user); postsRepository.save(post); } public void deletePost(Long post_id){ postsRepository.deleteById(post_id); } public void updatePost(Long post_id, Post updatedPost){ Post post = postsRepository.getOne(post_id); // przepisanie pól post.setTitle(updatedPost.getTitle()); post.setContent(updatedPost.getContent()); post.setCategory(updatedPost.getCategory()); postsRepository.save(post); } public boolean isAdmin(UserDetails userDetails){ Set<GrantedAuthority> authorities = (Set<GrantedAuthority>) userDetails.getAuthorities(); if(authorities.toString().contains("ROLE_ADMIN")){ return true; } return false; } public Long getPostIdByCommentId(Long comment_id){ Comment comment = commentRepository.getOne(comment_id); return comment.getPost().getId(); } public void deleteComment(Long comment_id){ commentRepository.deleteById(comment_id); } public void likePost(Long post_id){ Post post = postsRepository.getOne(post_id); post.setLike_no(post.getLike_no()+ 1); postsRepository.save(post); } public void notLikePost(Long post_id){ Post post = postsRepository.getOne(post_id); post.setNot_like_no(post.getNot_like_no()+ 1); postsRepository.save(post); } public List<Post> filterByCategory(CategoryEnum categoryEnum){ return postsRepository.findAllByCategory(categoryEnum); } }
package com.NetDoc.repos import org.springframework.data.repository.CrudRepository; import com.NetDoc.DataBase.CalendarData; public interface CalendarDataRepos extends CrudRepository<CalendarData, Long> { }
package com.tt.miniapp.net; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; public class WifiObject { private String mBSSID; private String mSSID; private boolean mSecurity; private int mSignalStrength; private WifiInfo wifiInfo; private WifiManager wifiService; } /* Location: C:\Users\august\Desktop\tik\df_miniapp\classes.jar!\com\tt\miniapp\net\WifiObject.class * Java compiler version: 6 (50.0) * JD-Core Version: 1.1.3 */
package com.horical.hrc7.suppliertest; import android.support.test.runner.AndroidJUnit4; import com.horical.hrc7.supplier.app.AppManager; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; /** * Created by HRC7 on 7/5/2017. */ @RunWith(AndroidJUnit4.class) public class CacheInternalTest { @Test public void testShareSaveString() { String test = "hello 1"; AppManager.cache().internal().save("test", "hello 1"); String test1 = AppManager.cache().internal().load("test", ""); assertTrue(test.equals(test1)); } @Test public void testShareLoadString() { String test = "hello 1"; String test1 = AppManager.cache().internal().load("test", ""); assertTrue(test.equals(test1)); } @Test public void testShareSaveInteger() { int test = 1; AppManager.cache().internal().save("testInteger", 1); int test1 = AppManager.cache().internal().load("testInteger", -1); assertTrue(test == test1); } @Test public void testShareLoadInteger() { int test = 1; int test1 = AppManager.cache().internal().load("testInteger", -1); assertTrue(test == test1); } @Test public void testShareLoadIntegerFail() { int test = 1; String test1 = AppManager.cache().internal().load("testInteger", "String"); //assertTrue(test == test1); fail(test1); } }
/*- * -\-\- * Spotify Styx Scheduler Service * -- * Copyright (C) 2016 Spotify AB * -- * Licensed 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 com.spotify.styx.state; import static com.spotify.styx.util.FutureUtil.exceptionallyCompletedFuture; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Throwables; import com.google.common.collect.Maps; import com.spotify.styx.model.Event; import com.spotify.styx.model.SequenceEvent; import com.spotify.styx.model.WorkflowId; import com.spotify.styx.model.WorkflowInstance; import com.spotify.styx.serialization.PersistentWorkflowInstanceState; import com.spotify.styx.storage.Storage; import com.spotify.styx.util.AlreadyInitializedException; import com.spotify.styx.util.IsClosedException; import com.spotify.styx.util.Time; import java.io.IOException; import java.util.Map; import java.util.Objects; import java.util.Queue; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.CountDownLatch; import java.util.concurrent.Executor; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.Semaphore; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.BiConsumer; import java.util.stream.Collectors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * An implementation of {@link StateManager} that has an internal queue for all the incoming * {@link Event}s that are sent to {@link #receive(Event)}. * * <p>The events are all processed on an injected {@link Executor}, but sequentially per * {@link WorkflowInstance}. This allows event processing to scale across many separate workflow * instances while guaranteeing that each state machine progresses sequentially. * * <p>All {@link RunState#outputHandler()} transitions are also executed on the injected * {@link Executor}. */ public class QueuedStateManager implements StateManager { private static final Logger LOG = LoggerFactory.getLogger(QueuedStateManager.class); static final String DISPATCHER_THREAD_NAME = "styx-event-dispatcher"; static final int EVENT_QUEUE_SIZE = 1024; static final int POLL_TIMEOUT_MILLIS = 10; static final int SHUTDOWN_GRACE_PERIOD_SECONDS = 5; static final long NO_EVENTS_PROCESSED = -1L; private final Time time; private final Executor outputHandlerExecutor; private final Storage storage; private final BiConsumer<SequenceEvent, RunState> eventConsumer; private final Executor eventConsumerExecutor; private final ConcurrentMap<WorkflowInstance, InstanceState> states = Maps.newConcurrentMap(); private final Thread dispatcherThread; private final CountDownLatch closedLatch = new CountDownLatch(1); private final Object signal = new Object(); private AtomicInteger activeEvents = new AtomicInteger(0); private volatile boolean running = true; public QueuedStateManager( Time time, Executor outputHandlerExecutor, Storage storage, BiConsumer<SequenceEvent, RunState> eventConsumer, Executor eventConsumerExecutor) { this.time = Objects.requireNonNull(time); this.outputHandlerExecutor = Objects.requireNonNull(outputHandlerExecutor); this.storage = Objects.requireNonNull(storage); this.eventConsumer = Objects.requireNonNull(eventConsumer); this.eventConsumerExecutor = Objects.requireNonNull(eventConsumerExecutor); this.dispatcherThread = new Thread(this::dispatch); dispatcherThread.setName(DISPATCHER_THREAD_NAME); dispatcherThread.start(); } @Override public void initialize(RunState runState) throws IsClosedException { ensureRunning(); final WorkflowInstance workflowInstance = runState.workflowInstance(); if (states.containsKey(workflowInstance)) { throw new AlreadyInitializedException("RunState initialization called on active instance " + workflowInstance.toKey()); } final long counter; try { counter = storage.getLatestStoredCounter(workflowInstance).orElse(NO_EVENTS_PROCESSED); } catch (IOException e) { throw Throwables.propagate(e); } states.computeIfAbsent(workflowInstance, (wfi) -> new InstanceState(wfi, runState, counter + 1)); } @Override public void restore(RunState runState, long count) { final WorkflowInstance workflowInstance = runState.workflowInstance(); if (states.containsKey(workflowInstance)) { throw new RuntimeException("RunState initialization called on active instance " + workflowInstance.toKey()); } states.computeIfAbsent(workflowInstance, (wfi) -> new InstanceState(wfi, runState, count + 1)); } @Override public CompletionStage<Void> receive(Event event) throws IsClosedException { ensureRunning(); final InstanceState state = states.get(event.workflowInstance()); if (state == null) { String message = "Received event for unknown workflow instance: " + event; LOG.warn(message); return exceptionallyCompletedFuture(new IllegalArgumentException(message)); } CompletionStage<Void> processed = state.transition(event); signalDispatcher(); return processed; } @Override public Map<WorkflowInstance, RunState> activeStates() { return states.entrySet().stream() .collect(Collectors.toMap(Map.Entry::getKey, (entry) -> entry.getValue().runState)); } @Override public long getActiveStatesCount() { return states.size(); } @Override public long getQueuedEventsCount() { return states.values().stream() .mapToInt(queue -> queue.queue.size()) .sum(); } @Override public long getActiveStatesCount(WorkflowId workflowId) { return states .keySet() .stream() .filter(workflowInstance -> workflowInstance.workflowId().equals(workflowId)) .count(); } @Override public boolean isActiveWorkflowInstance(WorkflowInstance workflowInstance) { return states.containsKey(workflowInstance); } @Override public RunState get(WorkflowInstance workflowInstance) { final InstanceState instanceState = states.get(workflowInstance); return instanceState != null ? instanceState.runState : null; } @Override public void close() throws IOException { if (!running) { return; } running = false; LOG.info("Shutting down, waiting for queued events to process"); try { if (!closedLatch.await(SHUTDOWN_GRACE_PERIOD_SECONDS, TimeUnit.SECONDS)) { dispatcherThread.interrupt(); throw new IOException( "Graceful shutdown failed, event loop did not finish within grace period"); } } catch (InterruptedException e) { dispatcherThread.interrupt(); throw new IOException(e); } LOG.info("Shutdown was clean, {} events left in queue", getQueuedEventsCount()); } /** * Dispatch loop, continuously running on {@link #dispatcherThread}. Mainly calling * {@link InstanceState#mutexPoll()} on all active states. * * <p>The dispatch loop will make a call to {@link #waitForSignal()} between each loop. It does * so to prevent a busy spin that would hog up a full core. The signalling on the other hand * eliminates a systematic latency in event processing. */ private void dispatch() { while (running || getQueuedEventsCount() > 0) { states.values().forEach(InstanceState::mutexPoll); waitForSignal(); } closedLatch.countDown(); } /** * Sends a signal to the dispatcher thread in order to unblock it's timed wait. Calling this * method is not crucial for the dispatcher thread to do its work, but will unblock it in case * it's waiting. * * <p>This should be called from all methods that receive a new event. */ private void signalDispatcher() { synchronized (signal) { signal.notifyAll(); } } /** * Block (up to {@link #POLL_TIMEOUT_MILLIS} on a call to {@link #signalDispatcher()}. */ private void waitForSignal() { synchronized (signal) { try { signal.wait(POLL_TIMEOUT_MILLIS); } catch (InterruptedException ignored) { } } } private void ensureRunning() throws IsClosedException { if (!running) { throw new IsClosedException(); } } /** * Process a state at a given counter position. * * <p>Processing a state mean that the event and counter positions that caused the transition * will be persisted, and the {@link OutputHandler} of the state is called. * * <p>This method is only called from within a {@link InstanceState#enqueue(Runnable)} block * which means there will only be at most one concurrent call for each {@link InstanceState}. * @param state The current state that is being processed * @param counterPosition The counter position at which the state transitioned * @param event The event that transitioned the state * @param processed A future that will be completed when the state has been processed. */ private void process(RunState state, long counterPosition, Event event, CompletableFuture<Void> processed) { final WorkflowInstance key = state.workflowInstance(); final SequenceEvent sequenceEvent = SequenceEvent.create( event, counterPosition, time.get().toEpochMilli()); try { storeEvent(sequenceEvent); if (state.state().isTerminal()) { states.remove(key); // racy when states are re-initialized concurrent with termination storeDeactivation(key); } else { storeActivation(key, state, counterPosition); } } catch (IOException e) { LOG.error("Failed to read/write from/to Storage", e); processed.completeExceptionally(e); return; } catch (Throwable t) { processed.completeExceptionally(t); throw t; } try { eventConsumerExecutor.execute(() -> eventConsumer.accept(sequenceEvent, state)); } catch (Exception e) { LOG.warn("Error while consuming event {}", sequenceEvent, e); } activeEvents.incrementAndGet(); outputHandlerExecutor.execute(() -> { try { state.outputHandler().transitionInto(state); processed.complete(null); } catch (Throwable e) { LOG.warn("Output handler threw", e); processed.completeExceptionally(e); } finally { activeEvents.decrementAndGet(); } }); } private void storeEvent(SequenceEvent sequenceEvent) throws IOException { storage.writeEvent(sequenceEvent); } private void storeActivation(WorkflowInstance workflowInstance, RunState state, long lastProcessedCount) throws IOException { storage.writeActiveState(workflowInstance, PersistentWorkflowInstanceState.of(state, lastProcessedCount)); } private void storeDeactivation(WorkflowInstance workflowInstance) throws IOException { storage.deleteActiveState(workflowInstance); } @VisibleForTesting boolean awaitIdle(long timeoutMillis) { final long t0 = time.get().toEpochMilli(); while (activeEvents.get() > 0 && (time.get().toEpochMilli() - t0) < timeoutMillis) { Thread.yield(); } return (time.get().toEpochMilli() - t0) < timeoutMillis; } private class InstanceState { final WorkflowInstance workflowInstance; final Queue<Runnable> queue = new LinkedBlockingQueue<>(EVENT_QUEUE_SIZE); final Semaphore mutex = new Semaphore(1); volatile RunState runState; volatile long counter; InstanceState(WorkflowInstance workflowInstance, RunState runState, long counter) { this.workflowInstance = workflowInstance; this.runState = runState; this.counter = counter; } /** * Transition the state and counter with the given {@link Event}. Then {@link #enqueue(Runnable)} * a call to {@link #process(RunState, long, Event, CompletableFuture)} for persisting and acting on the * transitioned state. * * <p>This method is synchronized so it can make local field updates safely. It is only * synchronized on the inner {@link InstanceState} object, so transitions for different * {@link WorkflowInstance}s can run concurrently. * * @param event The event to use in the transition */ synchronized CompletionStage<Void> transition(Event event) { LOG.debug("Event {} -> {}", event, this); CompletableFuture<Void> processed = new CompletableFuture<>(); final RunState nextState; try { nextState = runState.transition(event); } catch (IllegalStateException e) { LOG.warn("Illegal state transition", e); processed.completeExceptionally(e); return processed; } final long currentCount = counter++; runState = nextState; enqueue(() -> process(nextState, currentCount, event, processed)); return processed; } void enqueue(Runnable transition) { if (queue.offer(transition)) { activeEvents.incrementAndGet(); } else { throw new RuntimeException("Transition queue for " + workflowInstance.toKey() + " is full"); } } /** * Poll the next {@link Runnable} off the {@link #queue} and invoke it on the * {@link #outputHandlerExecutor}, or do nothing if the queue is empty. * * <p>The whole operation is guarded with a mutex, so concurrent calls are safe. Only one * queued {@link Runnable} will be invoked at any point time, effectively making the queue * consumed in a synchronized fashion. * * <p>After each invocation has completed, the task on the {@link #outputHandlerExecutor} will * call {@code mutexPoll()} again to ensure immediate consequent consumption of the queue. */ void mutexPoll() { if (queue.isEmpty()) { return; } if (mutex.tryAcquire()) { try { // poll and invoke on executor pool outputHandlerExecutor.execute(() -> { try { final Runnable poll = queue.poll(); if (poll != null) { try { invoke(poll); } finally { activeEvents.decrementAndGet(); } } } finally { mutex.release(); } // continue to consume queue mutexPoll(); }); } catch (Throwable e) { LOG.error("Failed to submit event worker task", e); mutex.release(); } } } void invoke(Runnable transition) { try { transition.run(); } catch (Throwable e) { LOG.warn("Exception in event runnable for {}", workflowInstance.toKey(), e); } } } }
package com.rofour.baseball.controller.system; import javax.servlet.http.HttpServletRequest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; import com.rofour.baseball.controller.base.BaseController; import com.rofour.baseball.controller.model.UserInfo; /** * @ClassName: UserController * @Description: 用户中心控制层 * @author ZhangLei * @date 2016年4月25日 下午8:37:26 * */ @Controller @RequestMapping(value = "/sys") public class SystemController extends BaseController { private final Logger logger = LoggerFactory.getLogger(getClass()); @RequestMapping(value="gotoDuty" , method = RequestMethod.GET) public ModelAndView gotoDuty(HttpServletRequest request,UserInfo userInfo){ if (request.getSession().getAttribute("user") != null) { return new ModelAndView("/system/dutyManager/dutyManager"); }else { return new ModelAndView("/"); } } @RequestMapping(value="/gotopropertyDictManager") public ModelAndView gotopropertyDictManager(HttpServletRequest request){ if (request.getSession().getAttribute("user") != null) { return new ModelAndView("system/propertyDictManager/propertyDictManager"); }else { return new ModelAndView("/"); } } @RequestMapping(value="/gotosysParameterManager") public ModelAndView gotosysParameterManager(HttpServletRequest request){ if (request.getSession().getAttribute("user") != null) { return new ModelAndView("system/sysParameterManager/sysParameterManager"); }else { return new ModelAndView("/"); } } }
package com.example.stage1.itmonitor.activity; /** * Classe che gestisce i fragment **/ import android.content.SharedPreferences; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBar; import android.support.v7.app.ActionBarDrawerToggle; import android.support.v7.app.AppCompatActivity; import android.view.MenuItem; import android.view.View; import android.widget.ImageButton; import com.example.stage1.itmonitor.R; import com.example.stage1.itmonitor.assets.UserSessionManager; import com.example.stage1.itmonitor.fragment.DashboardFragment; import com.example.stage1.itmonitor.fragment.HostFragment; public class MainActivity extends AppCompatActivity implements HostFragment.IHostFragment, DashboardFragment.IDashboardFragment { protected static final String TAG = "tag"; // tag di riferimento usato da un fragment ActionBarDrawerToggle mDrawerToggle; // serve per intercettare il click sul bottone home dell'actionBar DrawerLayout mDrawerLayout; // contiene tutto l'oggetto grafico DrawerLayout del layout ImageButton mBtnHosts, mBtnGraphs, mBtnDashboard, mBtnEsci, mBtnChiudi; // servono per mappare le voci del menu UserSessionManager mSession; // serve per gestire la sessione utente @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // mapppo gli oggetti che mi servono mDrawerLayout = (DrawerLayout) findViewById(R.id.MainLayout); mBtnHosts = (ImageButton) findViewById(R.id.imgBtnMenuHosts); mBtnGraphs = (ImageButton) findViewById(R.id.imgBtnMenuGraphs); mBtnDashboard = (ImageButton) findViewById(R.id.imgBtnMenuDashboard); mBtnEsci = (ImageButton) findViewById(R.id.imgBtnMenuEsci); mBtnChiudi = (ImageButton) findViewById(R.id.imgBtnMenuChiudi); // istanzio la sessione utente mSession = new UserSessionManager(getApplicationContext()); // verifico la sessione utente if (mSession.checkLogin()) { finish(); } //metodo per la gestione del DrawerToggle setUpDrawerToggle(); // verifico se esiste già un fragment altrimenti creo quello di inizio if (savedInstanceState == null) { DashboardFragment vFragment = new DashboardFragment(); FragmentManager vManager = getSupportFragmentManager(); FragmentTransaction vTransaction = vManager.beginTransaction(); vTransaction.add(R.id.container, vFragment, "TAG"); vTransaction.commit(); } // assegno le azioni ai pulsanti del menù mBtnHosts.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { HostFragment vFragment = new HostFragment(); replaceFragment(vFragment); } }); mBtnGraphs.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { } }); mBtnDashboard.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { DashboardFragment vFragment = new DashboardFragment(); replaceFragment(vFragment); } }); mBtnEsci.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { mSession.logoutUser(); } }); mBtnChiudi.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { finish(); } }); } private void setUpDrawerToggle() { ActionBar actionBar = getSupportActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setHomeButtonEnabled(true); mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, R.string.app_name, R .string.app_name) { @Override public void onDrawerOpened(View drawerView) { invalidateOptionsMenu(); // invalidateOptionsMenu() is used to say Android, that // contents of menu have changed, and menu should be redrawn. } @Override public void onDrawerClosed(View drawerView) { invalidateOptionsMenu(); } }; mDrawerLayout.post(new Runnable() { @Override public void run() { mDrawerToggle.syncState(); //serve per sincronizzare il menù } }); mDrawerLayout.setDrawerListener(mDrawerToggle); } // metodo per intercettare il click sulla actionbar in modo da passarlo al drawertoggle @Override public boolean onOptionsItemSelected(MenuItem item) { if (mDrawerToggle.onOptionsItemSelected(item)) { return true; } return super.onOptionsItemSelected(item); } // metodo per settare il titolo del fragment corrente nella actionbar @Override public void setTitleITMonitor(String aLabel) { setTitle(aLabel); } // metodo per rimpiazzare il fragment @Override public void replaceFragment(Fragment aFragment) { FragmentManager vManager = getSupportFragmentManager(); FragmentTransaction vTransaction = vManager.beginTransaction(); vTransaction.replace(R.id.container, aFragment, "TAG"); vTransaction.commit(); mDrawerLayout.closeDrawers(); } // metodo per recuperare i valori da sharedpreference @Override public String getPreferencesITMonitor(String aSetting) { SharedPreferences settings = getSharedPreferences("ITMonitorPref", MODE_PRIVATE); String mSetting = settings.getString(aSetting, "no preference defined"); return mSetting; } @Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putBoolean(TAG, true); } }
package src.test.java.pages; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import src.test.java.base.Base; public class AuthenticationPage extends Base{ By emailCreateField = By.id("email_create"); By createAccountBtn = By.id("SubmitCreate"); By emailSiginField = By.id("email"); By passwordSigninField = By.id("passwd"); By siginBtn = By.id("SubmitLogin"); public AuthenticationPage(WebDriver driver) { super(driver); // TODO Auto-generated constructor stub } public void createAccount(String email) { waitToBeClickable(emailCreateField); type(email, emailCreateField); clic(createAccountBtn); } public void makeSingin (String email, String passw) { waitToBeClickable(siginBtn); type(email, emailSiginField); type(passw, passwordSigninField); clic(siginBtn); } }
package cn.dreamccc.handler; import lombok.extern.slf4j.Slf4j; import java.io.*; import java.net.Socket; import java.nio.channels.SocketChannel; @Slf4j public class SimpleSocketHandler implements SocketHandler{ final Socket socket; final String remoteAddressStr; final BufferedWriter writer; final BufferedReader reader; public SimpleSocketHandler(Socket socket) { this.socket = socket; String tempStr = "DEFAULT"; BufferedWriter tempWriter = null; BufferedReader tempReader = null; SocketChannel channel = socket.getChannel(); // 尝试获取远端地址 if (channel != null) { try { tempStr = channel.getRemoteAddress().toString(); } catch (Exception e) { log.error("获取远程地址失败", e); } } remoteAddressStr = tempStr; // 尝试打开输入/输出流 try { tempWriter = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream(), "GBK")); tempReader = new BufferedReader(new InputStreamReader(socket.getInputStream(), "GBK")); } catch (IOException e) { log.error(remoteAddressStr + ":打开输入/输出流失败", e); } this.writer = tempWriter; this.reader = tempReader; // 发送欢迎消息 this.helloMessage(); } @Override public void handle() { // 循环接受消息 while (socket.isConnected()) { try { String msg = reader.readLine(); if (msg.equals("bye")) { this.close(); break; } // 业务逻辑 log.info("接收到消息=> {}", msg); } catch (Exception e) { log.error(remoteAddressStr + ":循环接受消息出现异常", e); close(); return; } } } @Override public void helloMessage() { try { writer.write("hello\n"); writer.flush(); log.info(remoteAddressStr + ":连接成功"); } catch (IOException e) { log.error(remoteAddressStr + ":发送欢迎消息失败,尝试关闭连接", e); this.close(); } } @Override public void close() { try { socket.close(); log.info("服务器主动断开连接"); } catch (IOException e) { log.error("服务器主动断开连接失败", e); } } }
package com.nt.manoj.controller; import java.util.List; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import com.nt.manoj.dao.CustomersRepo; import com.nt.manoj.model.Customers; import com.nt.manoj.service.CustRestServiceImpl; @RestController public class CustRestController { @Autowired CustRestServiceImpl service; @GetMapping("/customers") public List<Customers> allCustomer(){ return service.listOfCustomer(); } @GetMapping("/customers/{idOrName}") public Customers getOneCustomer2(@PathVariable("idOrName") String idOrName){ if(StringUtils.isNumeric(idOrName)) { int id= Integer.valueOf(idOrName); return service.getCustomerById(id); }else { return service.getCustomerByName(idOrName); } } // @PostMapping("/customers") // public void saveCustomer(@RequestBody Customers customers) { // service.insertCustomer(customers); // } // @PostMapping("/customers/{id}") public Customers updateCustomer(@PathVariable int id,@RequestBody Customers customers) { //Customers customers2=service.updateCustomer(customers); Customers cust= service.getCustomerById(id); cust.setCustName(customers.getCustName()); cust.setCustAddr(customers.getCustAddr()); //System.out.println(customers); Customers c1=service.updateCustomer(cust); System.out.println("c1::"+c1); return c1; } @DeleteMapping("/customers/{idOrName}") public void deleteCustomer(@PathVariable("idOrName") String idOrName ) { service.delCustomer(idOrName); } // @DeleteMapping("/customers/{idOrName}") // public void delCustomerById(@PathVariable("idOrName") String custName) { // boolean bool=StringUtils.isNumeric(custName); // if(bool) { // int id= Integer.valueOf(custName); // service.delCustomerById(id); // }else { // service.delCustomerByName(custName); // } // } }
import java.util.Arrays; public class ThreeSUMClosest { public static int threeSumClosest(int[] nums, int target) { Arrays.sort(nums); int min = Integer.MAX_VALUE; int minSum = 0; for (int i=0;i<nums.length-1;i++) { int j = i+1; int k = nums.length-1; while (j<k) { if(nums[j] + nums[k] + nums[i] == target) return target; if (Math.abs(target - (nums[i] + nums[j] + nums[k])) < min) { min = Math.abs(target - (nums[i] + nums[j] + nums[k])); minSum = nums[i] + nums[j] + nums[k]; } if (nums[i] + nums[j] + nums[k] < target) { j++; } else { k--; } } } return minSum; } public static void main(String[] args) { System.out.println(threeSumClosest(new int[]{-1,2,1,-4}, 1)); } }
/* * Copyright 2006 Ameer Antar. * * Licensed 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.antfarmer.ejce.util; import java.nio.charset.Charset; import java.security.Key; import java.security.KeyFactory; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.NoSuchAlgorithmException; import java.security.NoSuchProviderException; import java.security.PrivateKey; import java.security.Provider; import java.security.PublicKey; import java.security.spec.InvalidKeySpecException; import java.security.spec.KeySpec; import javax.crypto.KeyGenerator; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; import org.antfarmer.ejce.encoder.TextEncoder; /** * Provides methods to generate random keys or keys based on a password for a given algorithm. * * @author Ameer Antar * @version 1.1 */ public final class CryptoUtil { private static final Charset DEFAULT_CHARSET = Charset.forName("UTF-8"); private CryptoUtil() { // static methods only } /** * Generates a new secret key for the given algorithm. * * @param algorithm the algorithm that will be used for key generation * @return the generated secret key * @throws NoSuchAlgorithmException NoSuchAlgorithmException */ public static SecretKey generateSecretKey(final String algorithm) throws NoSuchAlgorithmException { return generateSecretKey(0, algorithm); } /** * Generates a new secret key for the given algorithm and key size. * * @param keySize the size of the key in bits * @param algorithm the algorithm that will be used for key generation * @return the generated secret key * @throws NoSuchAlgorithmException NoSuchAlgorithmException */ public static SecretKey generateSecretKey(final int keySize, final String algorithm) throws NoSuchAlgorithmException { try { return generateSecretKey(keySize, algorithm, null, null); } catch (final NoSuchProviderException e) { // impossible return null; } } /** * Generates a new secret key for the given algorithm and provider. * * @param algorithm the algorithm that will be used for key generation * @param providerName the name of the JCE-compliant provider (may be null) * @param provider the JCE-compliant provider (may be null) * @return the generated secret key * @throws NoSuchAlgorithmException NoSuchAlgorithmException * @throws NoSuchProviderException NoSuchProviderException */ public static SecretKey generateSecretKey(final String algorithm, final String providerName, final Provider provider) throws NoSuchAlgorithmException, NoSuchProviderException { return generateSecretKey(0, algorithm, providerName, provider); } /** * Generates a new secret key for the given algorithm, key size, and provider. * * @param keySize the size of the key in bits * @param algorithm the algorithm that will be used for key generation * @param providerName the name of the JCE-compliant provider (may be null) * @param provider the JCE-compliant provider (may be null) * @return the generated secret key * @throws NoSuchAlgorithmException NoSuchAlgorithmException * @throws NoSuchProviderException NoSuchProviderException */ public static SecretKey generateSecretKey(final int keySize, final String algorithm, final String providerName, final Provider provider) throws NoSuchAlgorithmException, NoSuchProviderException { final KeyGenerator kgen; if (provider != null) { kgen = KeyGenerator.getInstance(algorithm, provider); } else if (TextUtil.hasLength(providerName)) { kgen = KeyGenerator.getInstance(algorithm, providerName); } else { kgen = KeyGenerator.getInstance(algorithm); } if (keySize > 0) { kgen.init(keySize); } return kgen.generateKey(); } /** * Generates a new asymmetric key pair for the given algorithm. * * @param algorithm the algorithm that will be used for key generation * @return the generated asymmetric key pair * @throws NoSuchAlgorithmException NoSuchAlgorithmException */ public static KeyPair generateAsymmetricKeyPair(final String algorithm) throws NoSuchAlgorithmException { return generateAsymmetricKeyPair(0, algorithm); } /** * Generates a new asymmetric key pair for the given algorithm and key size. * * @param keySize the size of the key in bits * @param algorithm the algorithm that will be used for key generation * @return the generated asymmetric key pair * @throws NoSuchAlgorithmException NoSuchAlgorithmException */ public static KeyPair generateAsymmetricKeyPair(final int keySize, final String algorithm) throws NoSuchAlgorithmException { try { return generateAsymmetricKeyPair(keySize, algorithm, null, null); } catch (final NoSuchProviderException e) { // impossible return null; } } /** * Generates a new asymmetric key pair for the given algorithm and provider. * * @param algorithm the algorithm that will be used for key generation * @param providerName the name of the JCE-compliant provider (may be null) * @param provider the JCE-compliant provider (may be null) * @return the generated asymmetric key pair * @throws NoSuchAlgorithmException NoSuchAlgorithmException * @throws NoSuchProviderException NoSuchProviderException */ public static KeyPair generateAsymmetricKeyPair(final String algorithm, final String providerName, final Provider provider) throws NoSuchAlgorithmException, NoSuchProviderException { return generateAsymmetricKeyPair(0, algorithm, providerName, provider); } /** * Generates a new asymmetric key pair for the given algorithm, key size, and provider. * * @param keySize the size of the key in bits * @param algorithm the algorithm that will be used for key generation * @param providerName the name of the JCE-compliant provider (may be null) * @param provider the JCE-compliant provider (may be null) * @return the generated asymmetric key pair * @throws NoSuchAlgorithmException NoSuchAlgorithmException * @throws NoSuchProviderException NoSuchProviderException */ public static KeyPair generateAsymmetricKeyPair(final int keySize, final String algorithm, final String providerName, final Provider provider) throws NoSuchAlgorithmException, NoSuchProviderException { final KeyPairGenerator kgen; if (provider != null) { kgen = KeyPairGenerator.getInstance(algorithm, provider); } else if (TextUtil.hasLength(providerName)) { kgen = KeyPairGenerator.getInstance(algorithm, providerName); } else { kgen = KeyPairGenerator.getInstance(algorithm); } if (keySize > 0) { kgen.initialize(keySize); } return kgen.generateKeyPair(); } /** * Creates a secret key from the supplied text. * * @param textKey the text key * @param algorithm the algorithm that the will be used for key generation * @return the key value */ public static SecretKey getSecretKeyFromTextKey(final String textKey, final String algorithm) { return getSecretKeyFromTextKey(textKey, algorithm, null); } /** * Creates a secret key from the supplied text. The optional text encoder is used to decode the * key before generating the key. * * @param textKey the text key * @param algorithm the algorithm that will be used for key generation * @param textEncoder the text encoder that will be used to decode the text key (if null, the * raw bytes will be used). * @return the key value */ public static SecretKey getSecretKeyFromTextKey(final String textKey, final String algorithm, final TextEncoder textEncoder) { if (textEncoder == null) { return getSecretKeyFromRawKey(textKey.getBytes(DEFAULT_CHARSET), algorithm); } return getSecretKeyFromRawKey(textEncoder.decode(textKey), algorithm); } /** * Creates a secret key from the supplied raw key byte array. * * @param rawKey the raw key byte array * @param algorithm the algorithm that will be used for key generation * @return the key value */ public static SecretKey getSecretKeyFromRawKey(final byte[] rawKey, final String algorithm) { return new SecretKeySpec(rawKey, algorithm); } /** * Returns a PublicKey for the given algorithm and KeySpec. * @param algorithm the algorithm * @param keySpec the KeySpec * @return a PublicKey * @throws InvalidKeySpecException InvalidKeySpecException * @throws NoSuchAlgorithmException NoSuchAlgorithmException */ public static PublicKey createPublicKey(final String algorithm, final KeySpec keySpec) throws InvalidKeySpecException, NoSuchAlgorithmException { return KeyFactory.getInstance(algorithm).generatePublic(keySpec); } /** * Returns a PrivateKey for the given algorithm and KeySpec. * @param algorithm the algorithm * @param keySpec the KeySpec * @return a PrivateKey * @throws InvalidKeySpecException InvalidKeySpecException * @throws NoSuchAlgorithmException NoSuchAlgorithmException */ public static PrivateKey createPrivateKey(final String algorithm, final KeySpec keySpec) throws InvalidKeySpecException, NoSuchAlgorithmException { return KeyFactory.getInstance(algorithm).generatePrivate(keySpec); } /** * Returns a KeySpec for the given key and KeySpec implementation class. * @param <T> the KeySpec implementation type * @param key the Key * @param keySpec the KeySpec implementation class * @return a KeySpec * @throws InvalidKeySpecException InvalidKeySpecException * @throws NoSuchAlgorithmException NoSuchAlgorithmException */ public static <T extends KeySpec> T getKeySpec(final Key key, final Class<T> keySpec) throws InvalidKeySpecException, NoSuchAlgorithmException { return KeyFactory.getInstance(key.getAlgorithm()).getKeySpec(key, keySpec); } }
package com.tencent.mm.plugin.chatroom.ui; import com.tencent.mm.model.am.b.a; import com.tencent.mm.model.au; class ChatroomInfoUI$22 implements a { final /* synthetic */ ChatroomInfoUI hLX; ChatroomInfoUI$22(ChatroomInfoUI chatroomInfoUI) { this.hLX = chatroomInfoUI; } public final void x(String str, boolean z) { if (z && ChatroomInfoUI.b(this.hLX).equals(str)) { au.Em().H(new 1(this, str)); } } }
package math; public class Vecteur3D { private double dist_x, dist_y, dist_z; /** Constructeur */ public Vecteur3D(double dist_x, double dist_y, double dist_z) { this.dist_x = dist_x; this.dist_y = dist_y; this.dist_z = dist_z; } /** Constructeur */ public Vecteur3D(Vecteur3D vect) { this.dist_x = vect.getDx(); this.dist_y = vect.getDy(); this.dist_z = vect.getDz(); } /** Constructeur */ public Vecteur3D(Point3D a, Point3D b) { this.dist_x = b.getX() - a.getX(); this.dist_y = b.getY() - a.getY(); this.dist_z = b.getZ() - a.getZ(); } /** Constructeur */ public Vecteur3D(Point3D point) { this.dist_x = point.getX(); this.dist_y = point.getY(); this.dist_z = point.getZ(); } /** Constructeur */ public Vecteur3D() { this.dist_x = 0; this.dist_y = 0; this.dist_z = 0; } /** Retourne la composante x */ public double getDx() { return dist_x; } /** Retourne la composante y */ public double getDy() { return dist_y; } /** Retourne la composante z */ public double getDz() { return dist_z; } /** Set la composante x */ public void setDx(double dist_x) { this.dist_x = dist_x; } /** Set la composante y */ public void setDy(double dist_y) { this.dist_y = dist_y; } /** Set la composante z */ public void setDz(double dist_z) { this.dist_z = dist_z; } /** Retourne la norme du vecteur */ public double getNorme() { return Math.sqrt(Math.pow(getDx(), 2) + Math.pow(getDy(), 2) + Math.pow(getDz(), 2)); } /** Retourne le vecteur unitaire */ public Vecteur3D getVecteurUnitaire() { double norme = getNorme(); double dx, dy, dz; dx = getDx() / norme; dy = getDy() / norme; dz = getDz() / norme; return new Vecteur3D(dx, dy, dz); } /** Normalise le vecteur */ public void normalized() { double norme = getNorme(); setDx(getDx() / norme); setDy(getDy() / norme); setDz(getDz() / norme); } /** Ajoute le vecteur passe en parametre */ public void plus(Vecteur3D vect) { setDx(getDx() + vect.getDx()); setDy(getDy() + vect.getDy()); setDz(getDz() + vect.getDz()); } /** Soustrait le vecteur passe en parametre */ public void minus(Vecteur3D vect) { setDx(getDx() - vect.getDx()); setDy(getDy() - vect.getDy()); setDz(getDz() - vect.getDz()); } /** Multiplie par le coefficent passe en parametre */ public void mult(double k) { setDx(k * getDx()); setDy(k * getDy()); setDz(k * getDz()); } /** Retourne la projection du vecteur courant sur le vecteur passe en parametre */ public Vecteur3D projection(Vecteur3D vect) { double norme = (Vecteur3D.produit_scalaire(this, vect)) / Math.pow(vect.getNorme(), 2); double dx, dy, dz; dx = getDx() * norme; dy = getDy() * norme; dz = getDz() * norme; return new Vecteur3D(dx, dy, dz); } /** Rotation du vecteur autour d'un axe et avec un angle donne */ public void rotationAxe(Vecteur3D axe, double radian) { double x = getDx(); double y = getDy(); double z = getDz(); double cos = Math.cos(radian); double sin = Math.sin(radian); Vecteur3D vect = axe.getVecteurUnitaire(); setDx( x * (Math.pow(vect.getDx(), 2) + (1 - Math.pow(vect.getDx(), 2)) * cos) + y * (vect.getDx()*vect.getDy() * (1 - cos) - vect.getDz()*sin) + z * (vect.getDx()*vect.getDz() * (1 - cos) + vect.getDy()*sin) ); setDy( x * (vect.getDx()*vect.getDy() * (1 - cos) + vect.getDz()*sin) + y * (Math.pow(vect.getDy(), 2) + (1 - Math.pow(vect.getDy(), 2)) * cos) + z * (vect.getDy()*vect.getDz() * (1 - cos) - vect.getDx()*sin) ); setDz( x * (vect.getDx()*vect.getDz() * (1 - cos) - vect.getDy()*sin) + y * (vect.getDy()*vect.getDz() * (1 - cos) + vect.getDx()*sin) + z * (Math.pow(vect.getDz(), 2) + (1 - Math.pow(vect.getDz(), 2)) * cos) ); } /** Representation textuelle d'un Vecteur2D */ public String toString() { return "(" + ((int)(getDx()*100))/100.0 + " , " + ((int)(getDy()*100))/100.0 + " , " + ((int)(getDz()*100))/100.0 + ")"; } /** Retourne le Vecteur3D reflechi par la normal * e & normal sont normalises * */ public static Vecteur3D reflect(Vecteur3D e, Vecteur3D normal) { double dot = Vecteur3D.produit_scalaire(e, normal); double dx = e.getDx() - 2 * dot * normal.getDx(); double dy = e.getDy() - 2 * dot * normal.getDy(); double dz = e.getDz() - 2 * dot * normal.getDz(); return new Vecteur3D(dx, dy, dz); } /** Retourne le produit scalaire de deux vecteurs */ public static double produit_scalaire(Vecteur3D vect1, Vecteur3D vect2) { return (vect1.getDx() * vect2.getDx() + vect1.getDy() * vect2.getDy() + vect1.getDz() * vect2.getDz()); } /** Retourne le produit vectoriel de deux vecteurs */ public static Vecteur3D produit_vectoriel(Vecteur3D vect1, Vecteur3D vect2) { double dx, dy, dz; dx = (vect1.getDy() * vect2.getDz()) - (vect1.getDz() * vect2.getDy()); dy = (vect1.getDz() * vect2.getDx()) - (vect1.getDx() * vect2.getDz()); dz = (vect1.getDx() * vect2.getDy()) - (vect1.getDy() * vect2.getDx()); return new Vecteur3D(dx, dy, dz); } /** Retourne le cosinus de l'angle forme par les deux vecteurs */ public static double cosinus(Vecteur3D vect1, Vecteur3D vect2) { return produit_scalaire(vect1, vect2) / (vect1.getNorme() * vect2.getNorme()); } /** Retourne le sinus de l'angle forme par les deux vecteurs */ public static double sinus(Vecteur3D vect1, Vecteur3D vect2) { return produit_vectoriel(vect1, vect2).getNorme() / (vect1.getNorme() * vect2.getNorme()); } /** Retourne vrai si les deux vecteurs sont colinaires */ public static boolean colineaire(Vecteur3D vect1, Vecteur3D vect2) { boolean a = Math.abs(vect1.getDx()/vect2.getDx() - vect1.getDy()/vect2.getDy()) < 0.01; boolean b = Math.abs(vect1.getDy()/vect2.getDy() - vect1.getDz()/vect2.getDz()) < 0.01; return (a && b); } }
package ru.otus.services; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import ru.otus.models.StatisticEntitiesList; import ru.otus.models.StatisticEntity; import javax.json.bind.Jsonb; import javax.json.bind.JsonbBuilder; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import java.sql.SQLException; import java.util.List; import static ru.otus.services.TestExpectedData.getTestStatisticEntity1; import static ru.otus.services.TestExpectedData.getTestUserEntity1; public class StatisticCustomTagServiceTest { public static final String PERSISTENCE_UNIT_NAME = "test-jpa"; private DbService dbService; private StatisticCustomTagService service; private EntityManagerFactory emf; private EntityManager em; @Before public void setUp() throws Exception { emf = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME); em = emf.createEntityManager(); dbService = new DbSQLService(em); dbService.saveEntity(getTestUserEntity1()); dbService.saveEntity(getTestStatisticEntity1()); service = new StatisticCustomTagService(dbService, true); } @After public void tearDown() throws Exception { dbService.close(); emf.close(); service = null; em = null; } @Test public void test1() { StatisticEntity entity = dbService.getEntityById(1L, StatisticEntity.class); System.out.println("entity = " + entity); } @Test public void saveStatisticFromRequestParams() { } @Test public void isCollectionEnabled() { } @Test public void getAllVisitsStatElements() throws SQLException { List<StatisticEntity> test = service.getAllVisitsStatElements(); Assert.assertTrue(test.contains(getTestStatisticEntity1())); } @Test public void setCollectionEnabled() { service.setCollectionEnabled(false); Assert.assertFalse(service.isCollectionEnabled()); service.setCollectionEnabled(true); Assert.assertTrue(service.isCollectionEnabled()); } @Test public void fetchDataIsReady() throws SQLException { Assert.assertFalse(service.isReady()); service.fetchData(); Assert.assertTrue(service.isReady()); } @Test public void getDataXML() throws SQLException { service.fetchData(); String test = service.getDataXML(); System.out.println("test = " + test); } @Test public void getDataJSON() throws SQLException { service.fetchData(); String test = service.getDataJSON(); Assert.assertTrue(service.isReady()); Jsonb jsonb = JsonbBuilder.create(); StatisticEntitiesList list = jsonb.fromJson(test, StatisticEntitiesList.class); Assert.assertEquals(service.getAllVisitsStatElements(), list.asList()); } }
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package rms; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; /** * * @author Chase */ public class CheckinWindow extends javax.swing.JDialog { /** * Creates new form CheckinWindow */ public CheckinWindow() { initComponents(); setTitle("Check In"); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jTextField2 = new javax.swing.JTextField(); jTextField3 = new javax.swing.JTextField(); jTextField4 = new javax.swing.JTextField(); jTextField5 = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jLabel1.setText("Last Name:"); jLabel2.setText("Cell Phone:"); jLabel3.setText("Group Size:"); jLabel4.setText("Table No :"); jLabel5.setText("Waiter:"); jButton1.setText("Search"); jButton1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton1MouseClicked(evt); } }); jButton2.setText("Check in"); jButton2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton2MouseClicked(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(34, 34, 34) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(36, 36, 36) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createSequentialGroup() .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(17, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(29, 29, 29) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(52, 52, 52) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(6, 6, 6) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(59, Short.MAX_VALUE)) ); pack(); }// </editor-fold>//GEN-END:initComponents private boolean getReservation(String custName, String phoneNum) { Connection cn = null; Statement stmt = null; try { //search database Class.forName( "com.mysql.jdbc.Driver" ); } catch (ClassNotFoundException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } try { cn = DriverManager.getConnection( "jdbc:mysql://localhost:3306/rms?zeroDateTimeBehavior=convertToNull", "rmsUser", "12345678" ); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } try { stmt = cn.createStatement(); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } String sql = "SELECT * FROM reservation where CustName=" + "'" + custName + "'" + " and Phone=" + "'" + phoneNum + "'"; try { ResultSet rs = stmt.executeQuery(sql); while(rs.next()) { tableSize = rs.getInt("TableSize"); } if(tableSize != 0){ return true; }else{ return false; } } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); return false; } } private String getAvailableWaiter() { Connection cn = null; Statement stmt = null; String waiter = ""; int capability = 0; try { //search database Class.forName( "com.mysql.jdbc.Driver" ); } catch (ClassNotFoundException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } try { cn = DriverManager.getConnection( "jdbc:mysql://localhost:3306/rms?zeroDateTimeBehavior=convertToNull", "rmsUser", "12345678" ); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } try { stmt = cn.createStatement(); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } String sq2 = "SELECT * FROM waiter where 1"; try { ResultSet rs = stmt.executeQuery(sq2); while(rs.next()) { if(rs.getInt("Capability") > capability){ capability = rs.getInt("Capability"); waiter = rs.getString("WaiterName"); } } freeLoad = capability - 1; } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } return waiter; } private boolean getAvailableTable() { Connection cn = null; Statement stmt = null; boolean result = false; try { //search database Class.forName( "com.mysql.jdbc.Driver" ); } catch (ClassNotFoundException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } try { cn = DriverManager.getConnection( "jdbc:mysql://localhost:3306/rms?zeroDateTimeBehavior=convertToNull", "rmsUser", "12345678" ); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } try { stmt = cn.createStatement(); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } String sq3 = "SELECT * FROM tables where TableSize=" + Integer.toString(tableSize); try { ResultSet rs = stmt.executeQuery(sq3); while(rs.next()){ if(rs.getInt("AvailableNumber") > 0){ freeTable= rs.getInt("AvailableNumber") - 1; result = true; } } return result; } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); return false; } } private boolean isOccupied(int tableNum) { Connection cn = null; Statement stmt = null; try { //search database Class.forName( "com.mysql.jdbc.Driver" ); } catch (ClassNotFoundException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } try { cn = DriverManager.getConnection( "jdbc:mysql://localhost:3306/rms?zeroDateTimeBehavior=convertToNull", "rmsUser", "12345678" ); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } try { stmt = cn.createStatement(); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } String sq4 = "SELECT * FROM reservation where TableNumber=" + "'" + tableNum + "'"; try { ResultSet rs = stmt.executeQuery(sq4); if(rs.next()){ return true; }else{ return false; } } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); return true; } } private boolean isCheckedIn(String custName, String phoneNum) { Connection cn = null; Statement stmt = null; boolean result = true; try { //search database Class.forName( "com.mysql.jdbc.Driver" ); } catch (ClassNotFoundException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } try { cn = DriverManager.getConnection( "jdbc:mysql://localhost:3306/rms?zeroDateTimeBehavior=convertToNull", "rmsUser", "12345678" ); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } try { stmt = cn.createStatement(); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } String sq4 = "SELECT * FROM reservation where CustName=" + "'" + custName + "' " + "and Phone=" + "'" + phoneNum + "'"; try { ResultSet rs = stmt.executeQuery(sq4); while(rs.next()){ if(rs.getInt("TableNumber") == 0){ result = false; } } return result; } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); return true; } } private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked if (getReservation(jTextField1.getText(),jTextField2.getText())){ if(!getAvailableWaiter().equals("")){ JOptionPane.showMessageDialog(null,"Reservation found, please check in."); jTextField5.setText(getAvailableWaiter()); jTextField1.setEditable(false); jTextField2.setEditable(false); jTextField5.setEditable(false); jButton1.setEnabled(false); }else{ JOptionPane.showMessageDialog(null,"No waiter available, please wait a moment."); } }else{ JOptionPane.showMessageDialog(null,"Reservation not found!"); } }//GEN-LAST:event_jButton1MouseClicked private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton2MouseClicked Connection cn = null; Statement stmt = null; if(Integer.parseInt(jTextField3.getText()) > tableSize){ JOptionPane.showMessageDialog(null,"Group size can't be bigger than " + tableSize + "."); }else if(isOccupied(Integer.parseInt(jTextField4.getText()))){ JOptionPane.showMessageDialog(null,"Table " + jTextField4.getText() + " is occupied, please retry."); }else if(Integer.parseInt(jTextField4.getText()) > 18 || Integer.parseInt(jTextField4.getText()) < 1){ JOptionPane.showMessageDialog(null,"Table number should be from 1 to 18."); }else if(!getAvailableTable()){ JOptionPane.showMessageDialog(null,"Table of size " + tableSize + " is full, please wait a moment."); }else if(isCheckedIn(jTextField1.getText(), jTextField2.getText())){ JOptionPane.showMessageDialog(null,"Customer has already checked in."); }else{ try { //search database Class.forName( "com.mysql.jdbc.Driver" ); } catch (ClassNotFoundException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } try { cn = DriverManager.getConnection( "jdbc:mysql://localhost:3306/rms?zeroDateTimeBehavior=convertToNull", "rmsUser", "12345678" ); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } try { stmt = cn.createStatement(); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } String sq5 = "UPDATE waiter SET Capability=" + "'" + freeLoad + "' " + "where WaiterName=" + "'" + jTextField5.getText() + "'"; try { stmt.executeUpdate(sq5); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } String sq6 = "UPDATE tables SET AvailableNumber=" + "'" + freeTable + "' " + "where TableSize=" + "'" + tableSize + "'"; try { stmt.executeUpdate(sq6); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } String sq7 = "UPDATE reservation SET GroupSize=" + "'" + jTextField3.getText() + "' " + ",TableNumber=" + "'" + jTextField4.getText() + "' " + ",Waiter=" + "'" + jTextField5.getText() + "' " + "where CustName=" + "'" + jTextField1.getText() + "' " + "and Phone=" + "'" + jTextField2.getText() + "'"; try { stmt.executeUpdate(sq7); } catch (SQLException ex) { Logger.getLogger(CheckinWindow.class.getName()). log(Level.SEVERE, null, ex); } JOptionPane.showMessageDialog(null,"Checked in successfully!"); dispose(); } }//GEN-LAST:event_jButton2MouseClicked /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(CheckinWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(CheckinWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(CheckinWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(CheckinWindow.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new CheckinWindow().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel4; private javax.swing.JLabel jLabel5; private javax.swing.JTextField jTextField1; private javax.swing.JTextField jTextField2; private javax.swing.JTextField jTextField3; private javax.swing.JTextField jTextField4; private javax.swing.JTextField jTextField5; // End of variables declaration//GEN-END:variables private int tableSize = 0; private int freeLoad = 0; private int freeTable = 0; }
package jp.co.aforce.models; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import jp.co.aforce.beans.MemberNoBean; import jp.co.aforce.util.DBUtil; public class SelectModel { /** * 入力されたデータがDBに上に存在するかどうかを調べる。 * * @param user_id ユーザID * @param password パスワード * @return ログイン成功=true, 失敗=false */ public List<MemberNoBean> selectUserDate(String memberno){ try { // DBに接続するための手続 DBUtil.makeConnection(); DBUtil.makeStatement(); // SQLを実行 String sql = "SELECT * FROM `members` WHERE member_no = '" + memberno + "'"; ResultSet rs = DBUtil.execute(sql); List<MemberNoBean> MemberNoBeanList = new ArrayList<MemberNoBean>(); MemberNoBean memberNoBean = new MemberNoBean(); memberNoBean.setMemberno(memberno); memberNoBean.setName(rs.getString("name")); memberNoBean.setAge(rs.getInt("age")); memberNoBean.setBirthyear(rs.getInt("birth_year")); memberNoBean.setBirthmonth(rs.getInt("birth_month")); memberNoBean.setBirthday(rs.getInt("birth_day")); MemberNoBeanList.add(memberNoBean); return MemberNoBeanList; } catch (Exception e) { e.printStackTrace(); } finally { DBUtil.closeConnection(); } return null; } }
package com.locydragon.lcv.api; public enum ClassLevel { /** * PRIVATE——私有 PROTECTED——只有本包下的类可见 PUBLIC——公开的 */ PRIVATE,PROTECTED,PUBLIC }
package com.tencent.mm.plugin.sns.ui; import com.tencent.mm.plugin.sns.i.j; import com.tencent.mm.ui.s; class SnsTimeLineUI$18 implements Runnable { final /* synthetic */ SnsTimeLineUI odw; SnsTimeLineUI$18(SnsTimeLineUI snsTimeLineUI) { this.odw = snsTimeLineUI; } public final void run() { s sVar = this.odw.mController; if (sVar.mContext != null) { sVar.U(sVar.tml); } SnsTimeLineUI.o(this.odw); this.odw.setMMTitle(this.odw.getString(j.sns_timeline_ui_title)); SnsTimeLineUI.p(this.odw); SnsTimeLineUI.b(this.odw, SnsTimeLineUI.h(this.odw).kww.getFirstVisiblePosition()); } }
package javadecompiler.constantpool.type; public class ConstantInteger { public int bytes; public ConstantInteger( int bytes ) { this.bytes = bytes; } }
class Solution { public String customSortString(String S, String T) { String res = ""; String res2 = ""; for(int i = 0; i < S.length(); i++){ for(int j = 0; j < T.length(); j++){ if(T.charAt(j) == S.charAt(i)){ res2 += S.charAt(i); } } } for(int i = 0; i < T.length(); i++){ if(!S.contains("" + T.charAt(i))){ res += T.charAt(i); } } return res2 + res; } }
package com.zhouyi.business.core.service; import com.zhouyi.business.core.model.LedenEquipment; import com.zhouyi.business.core.model.LedenEquipmentParets; import com.zhouyi.business.core.model.PageData; import java.util.Map; /** * 设备配件业务接口 */ public interface LedenEquipmentParetsService { /** * 条件查询业务配件信息 * @param conditions * @return */ PageData<LedenEquipmentParets> getLedenEquipmentParetsPage(Map<String,Object> conditions); /** * 根据id获取设备配件信息 * @param id * @return */ LedenEquipmentParets getLedenEquipmentParetsById(Integer id); /** * 新增配件信息 * @param ledenEquipmentParets * @return */ Boolean addLedenEquipmentParets(LedenEquipmentParets ledenEquipmentParets); /** * 删除设备信息 * @param id * @return */ Boolean removeLedenEquipmentParetsById(Integer id); /** * 修改设备信息 * @param ledenEquipmentParets * @return */ Boolean updateLedenEquipmentParets(LedenEquipmentParets ledenEquipmentParets); }
package com.tencent.appbrand.mmkv; import android.content.Context; import android.content.SharedPreferences; import android.os.Parcel; import android.os.Parcelable; import java.util.Arrays; import java.util.EnumMap; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; public class MMKV implements SharedPreferences, SharedPreferences.Editor { private static MMKVHandler gCallbackHandler; private static b gContentChangeNotify; private static boolean gWantLogReDirecting; private static c[] index2LogLevel; private static boolean isInit; private static EnumMap<c, Integer> logLevel2Index; private static final HashMap<String, Parcelable.Creator<?>> mCreators; private static EnumMap<d, Integer> recoverIndex; private static String rootDir; private boolean isClose; private long nativeHandle; static { EnumMap<d, Object> enumMap = new EnumMap<d, Object>(d.class); recoverIndex = (EnumMap)enumMap; d d1 = d.OnErrorDiscard; Integer integer1 = Integer.valueOf(0); enumMap.put(d1, integer1); EnumMap<d, Integer> enumMap1 = recoverIndex; d d2 = d.OnErrorRecover; Integer integer2 = Integer.valueOf(1); enumMap1.put(d2, integer2); enumMap1 = (EnumMap)new EnumMap<Object, Integer>(c.class); logLevel2Index = (EnumMap)enumMap1; enumMap1.put(c.LevelDebug, integer1); logLevel2Index.put(c.LevelInfo, integer2); logLevel2Index.put(c.LevelWarning, Integer.valueOf(2)); logLevel2Index.put(c.LevelError, Integer.valueOf(3)); logLevel2Index.put(c.LevelNone, Integer.valueOf(4)); index2LogLevel = new c[] { c.LevelDebug, c.LevelInfo, c.LevelWarning, c.LevelError, c.LevelNone }; rootDir = null; mCreators = new HashMap<String, Parcelable.Creator<?>>(); gWantLogReDirecting = false; } private MMKV(long paramLong) { this.nativeHandle = paramLong; } private native String[] allKeys(); public static String byteToString(byte[] paramArrayOfbyte, String paramString) { return (paramArrayOfbyte == null || paramArrayOfbyte.length <= 0) ? "" : byteToStringNative(paramArrayOfbyte, paramString); } private static native String byteToStringNative(byte[] paramArrayOfbyte, String paramString); private native void clearAll(); private native void clearMemoryCache(); private native void close(); private native boolean containsKey(long paramLong, String paramString); private native long count(long paramLong); private static native long createNB(int paramInt); public static e createNativeBuffer(int paramInt) { long l = createNB(paramInt); return (l <= 0L) ? null : new e(l, paramInt); } private native boolean decodeBool(long paramLong, String paramString, boolean paramBoolean); private native byte[] decodeBytes(long paramLong, String paramString); private native double decodeDouble(long paramLong, String paramString, double paramDouble); private native float decodeFloat(long paramLong, String paramString, float paramFloat); private native int decodeInt(long paramLong, String paramString, int paramInt); private native long decodeLong(long paramLong1, String paramString, long paramLong2); private native String decodeString(long paramLong, String paramString1, String paramString2); private native String[] decodeStringSet(long paramLong, String paramString); public static MMKV defaultMMKV() { if (rootDir != null) return new MMKV(getDefaultMMKV(1, null)); throw new IllegalStateException("You should Call MMKV.initialize() first."); } public static MMKV defaultMMKV(int paramInt, String paramString) { if (rootDir != null) return new MMKV(getDefaultMMKV(paramInt, paramString)); throw new IllegalStateException("You should Call MMKV.initialize() first."); } private static native void destroyNB(long paramLong, int paramInt); public static void destroyNativeBuffer(e parame) { destroyNB(parame.a, parame.b); } private native boolean encodeBool(long paramLong, String paramString, boolean paramBoolean); private native boolean encodeBytes(long paramLong, String paramString, byte[] paramArrayOfbyte); private native boolean encodeDouble(long paramLong, String paramString, double paramDouble); private native boolean encodeFloat(long paramLong, String paramString, float paramFloat); private native boolean encodeInt(long paramLong, String paramString, int paramInt); private native boolean encodeLong(long paramLong1, String paramString, long paramLong2); private native boolean encodeSet(long paramLong, String paramString, String[] paramArrayOfString); private native boolean encodeString(long paramLong, String paramString1, String paramString2); private static native long getDefaultMMKV(int paramInt, String paramString); private static native long getMMKVWithAshmemFD(String paramString1, int paramInt1, int paramInt2, String paramString2); private static native long getMMKVWithID(String paramString1, int paramInt, String paramString2, String paramString3); private static native long getMMKVWithIDAndSize(String paramString1, int paramInt1, int paramInt2, String paramString2); public static String getRootDir() { return rootDir; } public static String initialize(Context paramContext) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append(paramContext.getFilesDir().getAbsolutePath()); stringBuilder.append("/mmkv"); return initialize(stringBuilder.toString(), null, c.LevelInfo); } public static String initialize(Context paramContext, c paramc) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append(paramContext.getFilesDir().getAbsolutePath()); stringBuilder.append("/mmkv"); return initialize(stringBuilder.toString(), null, paramc); } public static String initialize(String paramString) { return initialize(paramString, null, c.LevelInfo); } public static String initialize(String paramString, a parama) { return initialize(paramString, parama, c.LevelInfo); } public static String initialize(String paramString, a parama, c paramc) { if (parama != null) { parama.loadLibrary("appbrand-mmkv"); } else { a.a("appbrand-mmkv"); } rootDir = paramString; jniInitialize(paramString, logLevel2Int(paramc)); isInit = true; return paramString; } public static String initialize(String paramString, c paramc) { return initialize(paramString, null, paramc); } private boolean isClose() { return this.isClose; } public static native boolean isFileValid(String paramString); public static boolean isInit() { return isInit; } private static native void jniInitialize(String paramString, int paramInt); private static int logLevel2Int(c paramc) { int i = null.a[paramc.ordinal()]; byte b1 = 4; if (i != 1) { if (i != 2) { if (i != 3) { if (i != 4) { if (i != 5) return 1; } else { return 3; } } else { return 2; } } else { return 1; } } else { b1 = 0; } return b1; } private static void mmkvLogImp(int paramInt1, String paramString1, int paramInt2, String paramString2, String paramString3) { MMKVHandler mMKVHandler = gCallbackHandler; if (mMKVHandler != null && gWantLogReDirecting) { mMKVHandler.mmkvLog(index2LogLevel[paramInt1], paramString1, paramInt2, paramString2, paramString3); return; } index2LogLevel[paramInt1].ordinal(); } public static MMKV mmkvWithAshmemFD(String paramString1, int paramInt1, int paramInt2, String paramString2) { return new MMKV(getMMKVWithAshmemFD(paramString1, paramInt1, paramInt2, paramString2)); } public static MMKV mmkvWithAshmemID(Context paramContext, String paramString1, int paramInt1, int paramInt2, String paramString2) { // Byte code: // 0: getstatic com/tencent/appbrand/mmkv/MMKV.rootDir : Ljava/lang/String; // 3: ifnull -> 432 // 6: aload_0 // 7: invokestatic myPid : ()I // 10: invokestatic a : (Landroid/content/Context;I)Ljava/lang/String; // 13: astore #5 // 15: aconst_null // 16: astore #7 // 18: aconst_null // 19: astore #6 // 21: aload #5 // 23: ifnull -> 421 // 26: aload #5 // 28: invokevirtual length : ()I // 31: ifne -> 37 // 34: goto -> 421 // 37: aload #5 // 39: ldc_w ':' // 42: invokevirtual contains : (Ljava/lang/CharSequence;)Z // 45: ifeq -> 393 // 48: getstatic com/tencent/appbrand/mmkv/MMKVContentProvider.a : Landroid/net/Uri; // 51: ifnull -> 62 // 54: getstatic com/tencent/appbrand/mmkv/MMKVContentProvider.a : Landroid/net/Uri; // 57: astore #5 // 59: goto -> 121 // 62: aload_0 // 63: ifnonnull -> 72 // 66: aconst_null // 67: astore #5 // 69: goto -> 121 // 72: aload_0 // 73: invokestatic a : (Landroid/content/Context;)Ljava/lang/String; // 76: astore #5 // 78: aload #5 // 80: ifnonnull -> 86 // 83: goto -> 66 // 86: new java/lang/StringBuilder // 89: dup // 90: ldc_w 'content://' // 93: invokespecial <init> : (Ljava/lang/String;)V // 96: astore #8 // 98: aload #8 // 100: aload #5 // 102: invokevirtual append : (Ljava/lang/String;)Ljava/lang/StringBuilder; // 105: pop // 106: aload #8 // 108: invokevirtual toString : ()Ljava/lang/String; // 111: invokestatic parse : (Ljava/lang/String;)Landroid/net/Uri; // 114: astore #5 // 116: aload #5 // 118: putstatic com/tencent/appbrand/mmkv/MMKVContentProvider.a : Landroid/net/Uri; // 121: aload #5 // 123: ifnonnull -> 137 // 126: getstatic com/tencent/appbrand/mmkv/c.LevelError : Lcom/tencent/appbrand/mmkv/c; // 129: ldc_w 'MMKVContentProvider has invalid authority' // 132: invokestatic simpleLog : (Lcom/tencent/appbrand/mmkv/c;Ljava/lang/String;)V // 135: aconst_null // 136: areturn // 137: getstatic com/tencent/appbrand/mmkv/c.LevelInfo : Lcom/tencent/appbrand/mmkv/c; // 140: astore #8 // 142: new java/lang/StringBuilder // 145: dup // 146: ldc_w 'getting parcelable mmkv in process, Uri = ' // 149: invokespecial <init> : (Ljava/lang/String;)V // 152: astore #9 // 154: aload #9 // 156: aload #5 // 158: invokevirtual append : (Ljava/lang/Object;)Ljava/lang/StringBuilder; // 161: pop // 162: aload #8 // 164: aload #9 // 166: invokevirtual toString : ()Ljava/lang/String; // 169: invokestatic simpleLog : (Lcom/tencent/appbrand/mmkv/c;Ljava/lang/String;)V // 172: new android/os/Bundle // 175: dup // 176: invokespecial <init> : ()V // 179: astore #8 // 181: aload #8 // 183: ldc_w 'KEY_SIZE' // 186: iload_2 // 187: invokevirtual putInt : (Ljava/lang/String;I)V // 190: aload #8 // 192: ldc_w 'KEY_MODE' // 195: iload_3 // 196: invokevirtual putInt : (Ljava/lang/String;I)V // 199: aload #4 // 201: ifnull -> 214 // 204: aload #8 // 206: ldc_w 'KEY_CRYPT' // 209: aload #4 // 211: invokevirtual putString : (Ljava/lang/String;Ljava/lang/String;)V // 214: aload_0 // 215: invokevirtual getContentResolver : ()Landroid/content/ContentResolver; // 218: aload #5 // 220: ldc_w 'mmkvFromAshmemID' // 223: aload_1 // 224: aload #8 // 226: invokevirtual call : (Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)Landroid/os/Bundle; // 229: astore_0 // 230: aload #7 // 232: astore_1 // 233: aload_0 // 234: ifnull -> 391 // 237: aload_0 // 238: ldc_w com/tencent/appbrand/mmkv/ParcelableMMKV // 241: invokevirtual getClassLoader : ()Ljava/lang/ClassLoader; // 244: invokevirtual setClassLoader : (Ljava/lang/ClassLoader;)V // 247: aload_0 // 248: ldc_w 'KEY' // 251: invokevirtual getParcelable : (Ljava/lang/String;)Landroid/os/Parcelable; // 254: checkcast com/tencent/appbrand/mmkv/ParcelableMMKV // 257: astore #4 // 259: aload #7 // 261: astore_1 // 262: aload #4 // 264: ifnull -> 391 // 267: aload #6 // 269: astore_0 // 270: aload #4 // 272: getfield b : I // 275: iflt -> 313 // 278: aload #6 // 280: astore_0 // 281: aload #4 // 283: getfield c : I // 286: iflt -> 313 // 289: aload #4 // 291: getfield a : Ljava/lang/String; // 294: aload #4 // 296: getfield b : I // 299: aload #4 // 301: getfield c : I // 304: aload #4 // 306: getfield d : Ljava/lang/String; // 309: invokestatic mmkvWithAshmemFD : (Ljava/lang/String;IILjava/lang/String;)Lcom/tencent/appbrand/mmkv/MMKV; // 312: astore_0 // 313: aload_0 // 314: astore_1 // 315: aload_0 // 316: ifnull -> 391 // 319: getstatic com/tencent/appbrand/mmkv/c.LevelInfo : Lcom/tencent/appbrand/mmkv/c; // 322: astore_1 // 323: new java/lang/StringBuilder // 326: dup // 327: invokespecial <init> : ()V // 330: astore #4 // 332: aload #4 // 334: aload_0 // 335: invokevirtual mmapID : ()Ljava/lang/String; // 338: invokevirtual append : (Ljava/lang/String;)Ljava/lang/StringBuilder; // 341: pop // 342: aload #4 // 344: ldc_w ' fd = ' // 347: invokevirtual append : (Ljava/lang/String;)Ljava/lang/StringBuilder; // 350: pop // 351: aload #4 // 353: aload_0 // 354: invokevirtual ashmemFD : ()I // 357: invokevirtual append : (I)Ljava/lang/StringBuilder; // 360: pop // 361: aload #4 // 363: ldc_w ', meta fd = ' // 366: invokevirtual append : (Ljava/lang/String;)Ljava/lang/StringBuilder; // 369: pop // 370: aload #4 // 372: aload_0 // 373: invokevirtual ashmemMetaFD : ()I // 376: invokevirtual append : (I)Ljava/lang/StringBuilder; // 379: pop // 380: aload_1 // 381: aload #4 // 383: invokevirtual toString : ()Ljava/lang/String; // 386: invokestatic simpleLog : (Lcom/tencent/appbrand/mmkv/c;Ljava/lang/String;)V // 389: aload_0 // 390: astore_1 // 391: aload_1 // 392: areturn // 393: getstatic com/tencent/appbrand/mmkv/c.LevelInfo : Lcom/tencent/appbrand/mmkv/c; // 396: ldc_w 'getting mmkv in main process' // 399: invokestatic simpleLog : (Lcom/tencent/appbrand/mmkv/c;Ljava/lang/String;)V // 402: new com/tencent/appbrand/mmkv/MMKV // 405: dup // 406: aload_1 // 407: iload_2 // 408: iload_3 // 409: bipush #8 // 411: ior // 412: aload #4 // 414: invokestatic getMMKVWithIDAndSize : (Ljava/lang/String;IILjava/lang/String;)J // 417: invokespecial <init> : (J)V // 420: areturn // 421: getstatic com/tencent/appbrand/mmkv/c.LevelError : Lcom/tencent/appbrand/mmkv/c; // 424: ldc_w 'process name detect fail, try again later' // 427: invokestatic simpleLog : (Lcom/tencent/appbrand/mmkv/c;Ljava/lang/String;)V // 430: aconst_null // 431: areturn // 432: new java/lang/IllegalStateException // 435: dup // 436: ldc 'You should Call MMKV.initialize() first.' // 438: invokespecial <init> : (Ljava/lang/String;)V // 441: astore_0 // 442: goto -> 447 // 445: aload_0 // 446: athrow // 447: goto -> 445 } public static MMKV mmkvWithID(String paramString) { if (rootDir != null) return new MMKV(getMMKVWithID(paramString, 1, null, null)); throw new IllegalStateException("You should Call MMKV.initialize() first."); } public static MMKV mmkvWithID(String paramString, int paramInt) { if (rootDir != null) return new MMKV(getMMKVWithID(paramString, paramInt, null, null)); throw new IllegalStateException("You should Call MMKV.initialize() first."); } public static MMKV mmkvWithID(String paramString1, int paramInt, String paramString2) { if (rootDir != null) return new MMKV(getMMKVWithID(paramString1, paramInt, paramString2, null)); throw new IllegalStateException("You should Call MMKV.initialize() first."); } public static MMKV mmkvWithID(String paramString1, int paramInt, String paramString2, String paramString3) { if (rootDir != null) { long l = getMMKVWithID(paramString1, paramInt, paramString2, paramString3); return (l == 0L) ? null : new MMKV(l); } throw new IllegalStateException("You should Call MMKV.initialize() first."); } public static MMKV mmkvWithID(String paramString1, String paramString2) { if (rootDir != null) { long l = getMMKVWithID(paramString1, 1, null, paramString2); return (l == 0L) ? null : new MMKV(l); } throw new IllegalStateException("You should Call MMKV.initialize() first."); } private static void onContentChangedByOuterProcess(String paramString) {} public static native void onExit(); private static int onMMKVCRCCheckFail(String paramString) { d d = d.OnErrorDiscard; MMKVHandler mMKVHandler = gCallbackHandler; if (mMKVHandler != null) d = mMKVHandler.onMMKVCRCCheckFail(paramString); c c1 = c.LevelInfo; StringBuilder stringBuilder = new StringBuilder("Recover strategic for "); stringBuilder.append(paramString); stringBuilder.append(" is "); stringBuilder.append(d); simpleLog(c1, stringBuilder.toString()); Integer integer = recoverIndex.get(d); return (integer == null) ? 0 : integer.intValue(); } private static int onMMKVFileLengthError(String paramString) { d d = d.OnErrorDiscard; MMKVHandler mMKVHandler = gCallbackHandler; if (mMKVHandler != null) d = mMKVHandler.onMMKVFileLengthError(paramString); c c1 = c.LevelInfo; StringBuilder stringBuilder = new StringBuilder("Recover strategic for "); stringBuilder.append(paramString); stringBuilder.append(" is "); stringBuilder.append(d); simpleLog(c1, stringBuilder.toString()); Integer integer = recoverIndex.get(d); return (integer == null) ? 0 : integer.intValue(); } public static native int pageSize(); public static void registerContentChangeNotify(b paramb) { boolean bool; gContentChangeNotify = paramb; if (paramb != null) { bool = true; } else { bool = false; } setWantsContentChangeNotify(bool); } public static void registerHandler(MMKVHandler paramMMKVHandler) { gCallbackHandler = paramMMKVHandler; if (paramMMKVHandler.wantLogRedirecting()) { setLogReDirecting(true); gWantLogReDirecting = true; return; } setLogReDirecting(false); gWantLogReDirecting = false; } private native void removeValueForKey(long paramLong, String paramString); private native void removeValuesForKeys(String[] paramArrayOfString); private static native void setLogLevel(int paramInt); public static void setLogLevel(c paramc) { setLogLevel(logLevel2Int(paramc)); } private static native void setLogReDirecting(boolean paramBoolean); private static native void setWantsContentChangeNotify(boolean paramBoolean); private static void simpleLog(c paramc, String paramString) { int i; StackTraceElement[] arrayOfStackTraceElement = Thread.currentThread().getStackTrace(); StackTraceElement stackTraceElement = arrayOfStackTraceElement[arrayOfStackTraceElement.length - 1]; Integer integer = logLevel2Index.get(paramc); if (integer == null) { i = 0; } else { i = integer.intValue(); } mmkvLogImp(i, stackTraceElement.getFileName(), stackTraceElement.getLineNumber(), stackTraceElement.getMethodName(), paramString); } private native void sync(boolean paramBoolean); private native long totalSize(long paramLong); private native void trim(); public static void unregisterContentChangeNotify() { gContentChangeNotify = null; setWantsContentChangeNotify(false); } public static void unregisterHandler() { gCallbackHandler = null; setLogReDirecting(false); gWantLogReDirecting = false; } private native int valueSize(long paramLong, String paramString, boolean paramBoolean); private native int writeValueToNB(long paramLong1, String paramString, long paramLong2, int paramInt); public String[] allKeysMMKV() { return isClose() ? new String[0] : allKeys(); } public void apply() { if (!isClose()) { sync(false); return; } simpleLog(c.LevelError, "mmkv is close, data is not get/set in expectations"); } public native int ashmemFD(); public native int ashmemMetaFD(); public void async() { if (!isClose()) sync(false); } public native void checkContentChangedByOuterProcess(); public native void checkReSetCryptKey(String paramString); public SharedPreferences.Editor clear() { if (!isClose()) clearAll(); return this; } public void clearAllMMKV() { if (isClose()) return; clearAll(); } public void clearMemoryCacheMMKV() { if (isClose()) return; clearMemoryCache(); } public void closeMMKV() { this.isClose = true; close(); } public boolean commit() { if (!isClose()) { sync(true); return true; } simpleLog(c.LevelError, "mmkv is close, data is not get/set in expectations"); return true; } public boolean contains(String paramString) { return isClose() ? false : containsKey(paramString); } public boolean containsKey(String paramString) { return isClose() ? false : containsKey(this.nativeHandle, paramString); } public long count() { return isClose() ? 0L : count(this.nativeHandle); } public native String cryptKey(); public boolean decodeBool(String paramString) { return isClose() ? false : decodeBool(this.nativeHandle, paramString, false); } public boolean decodeBool(String paramString, boolean paramBoolean) { return isClose() ? paramBoolean : decodeBool(this.nativeHandle, paramString, paramBoolean); } public byte[] decodeBytes(String paramString) { return isClose() ? null : decodeBytes(paramString, (byte[])null); } public byte[] decodeBytes(String paramString, byte[] paramArrayOfbyte) { if (isClose()) return paramArrayOfbyte; byte[] arrayOfByte = decodeBytes(this.nativeHandle, paramString); return (arrayOfByte != null) ? arrayOfByte : paramArrayOfbyte; } public double decodeDouble(String paramString) { return isClose() ? 0.0D : decodeDouble(this.nativeHandle, paramString, 0.0D); } public double decodeDouble(String paramString, double paramDouble) { return isClose() ? paramDouble : decodeDouble(this.nativeHandle, paramString, paramDouble); } public float decodeFloat(String paramString) { return isClose() ? 0.0F : decodeFloat(this.nativeHandle, paramString, 0.0F); } public float decodeFloat(String paramString, float paramFloat) { return isClose() ? paramFloat : decodeFloat(this.nativeHandle, paramString, paramFloat); } public int decodeInt(String paramString) { return isClose() ? 0 : decodeInt(this.nativeHandle, paramString, 0); } public int decodeInt(String paramString, int paramInt) { return isClose() ? paramInt : decodeInt(this.nativeHandle, paramString, paramInt); } public long decodeLong(String paramString) { return isClose() ? 0L : decodeLong(this.nativeHandle, paramString, 0L); } public long decodeLong(String paramString, long paramLong) { return isClose() ? paramLong : decodeLong(this.nativeHandle, paramString, paramLong); } public <T extends Parcelable> T decodeParcelable(String paramString, Class<T> paramClass) { return isClose() ? null : decodeParcelable(paramString, paramClass, null); } public <T extends Parcelable> T decodeParcelable(String paramString, Class<T> paramClass, T paramT) { if (isClose()) return paramT; if (paramClass == null) return paramT; byte[] arrayOfByte = decodeBytes(this.nativeHandle, paramString); if (arrayOfByte == null) return paramT; Parcel parcel = Parcel.obtain(); parcel.unmarshall(arrayOfByte, 0, arrayOfByte.length); parcel.setDataPosition(0); try { String str = paramClass.toString(); synchronized (mCreators) { Parcelable.Creator<?> creator2 = mCreators.get(str); Parcelable.Creator<?> creator1 = creator2; if (creator2 == null) { Parcelable.Creator<?> creator = (Parcelable.Creator)paramClass.getField("CREATOR").get(null); creator1 = creator; if (creator != null) { mCreators.put(str, creator); creator1 = creator; } } if (creator1 != null) { Parcelable parcelable = (Parcelable)creator1.createFromParcel(parcel); parcel.recycle(); return (T)parcelable; } StringBuilder stringBuilder = new StringBuilder("Parcelable protocol requires a non-null static Parcelable.Creator object called CREATOR on class "); stringBuilder.append(str); throw new Exception(stringBuilder.toString()); } } catch (Exception exception) { simpleLog(c.LevelError, exception.toString()); parcel.recycle(); return paramT; } finally {} parcel.recycle(); throw arrayOfByte; } public String decodeString(String paramString) { return isClose() ? null : decodeString(this.nativeHandle, paramString, null); } public String decodeString(String paramString1, String paramString2) { return isClose() ? paramString2 : decodeString(this.nativeHandle, paramString1, paramString2); } public Set<String> decodeStringSet(String paramString) { return isClose() ? null : decodeStringSet(paramString, (Set<String>)null); } public Set<String> decodeStringSet(String paramString, Set<String> paramSet) { return isClose() ? paramSet : decodeStringSet(paramString, paramSet, (Class)HashSet.class); } public Set<String> decodeStringSet(String paramString, Set<String> paramSet, Class<? extends Set> paramClass) { if (isClose()) return paramSet; String[] arrayOfString = decodeStringSet(this.nativeHandle, paramString); if (arrayOfString == null) return paramSet; try { Set<String> set = paramClass.newInstance(); set.addAll(Arrays.asList(arrayOfString)); return set; } catch (IllegalAccessException|InstantiationException illegalAccessException) { return paramSet; } } public SharedPreferences.Editor edit() { return this; } public boolean encode(String paramString, double paramDouble) { return isClose() ? false : encodeDouble(this.nativeHandle, paramString, paramDouble); } public boolean encode(String paramString, float paramFloat) { return isClose() ? false : encodeFloat(this.nativeHandle, paramString, paramFloat); } public boolean encode(String paramString, int paramInt) { return isClose() ? false : encodeInt(this.nativeHandle, paramString, paramInt); } public boolean encode(String paramString, long paramLong) { return isClose() ? false : encodeLong(this.nativeHandle, paramString, paramLong); } public boolean encode(String paramString, Parcelable paramParcelable) { if (isClose()) return false; Parcel parcel = Parcel.obtain(); paramParcelable.writeToParcel(parcel, paramParcelable.describeContents()); byte[] arrayOfByte = parcel.marshall(); parcel.recycle(); return encodeBytes(this.nativeHandle, paramString, arrayOfByte); } public boolean encode(String paramString1, String paramString2) { return isClose() ? false : encodeString(this.nativeHandle, paramString1, paramString2); } public boolean encode(String paramString, Set<String> paramSet) { return isClose() ? false : encodeSet(this.nativeHandle, paramString, paramSet.<String>toArray(new String[0])); } public boolean encode(String paramString, boolean paramBoolean) { return isClose() ? false : encodeBool(this.nativeHandle, paramString, paramBoolean); } public boolean encode(String paramString, byte[] paramArrayOfbyte) { return isClose() ? false : encodeBytes(this.nativeHandle, paramString, paramArrayOfbyte); } public Map<String, ?> getAll() { throw new UnsupportedOperationException("use allKeys() instead, getAll() not implement because type-erasure inside mmkv"); } public boolean getBoolean(String paramString, boolean paramBoolean) { return isClose() ? paramBoolean : decodeBool(this.nativeHandle, paramString, paramBoolean); } public byte[] getBytes(String paramString, byte[] paramArrayOfbyte) { return isClose() ? paramArrayOfbyte : decodeBytes(paramString, paramArrayOfbyte); } public float getFloat(String paramString, float paramFloat) { return isClose() ? paramFloat : decodeFloat(this.nativeHandle, paramString, paramFloat); } public int getInt(String paramString, int paramInt) { return isClose() ? paramInt : decodeInt(this.nativeHandle, paramString, paramInt); } public long getLong(String paramString, long paramLong) { return isClose() ? paramLong : decodeLong(this.nativeHandle, paramString, paramLong); } public String getString(String paramString1, String paramString2) { return isClose() ? paramString2 : decodeString(this.nativeHandle, paramString1, paramString2); } public Set<String> getStringSet(String paramString, Set<String> paramSet) { return isClose() ? paramSet : decodeStringSet(paramString, paramSet); } public int getValueActualSize(String paramString) { return isClose() ? 0 : valueSize(this.nativeHandle, paramString, true); } public int getValueSize(String paramString) { return isClose() ? 0 : valueSize(this.nativeHandle, paramString, false); } public int importFromSharedPreferences(SharedPreferences paramSharedPreferences) { Map map = paramSharedPreferences.getAll(); if (map == null || map.size() <= 0) return 0; for (Map.Entry entry : map.entrySet()) { String str = (String)entry.getKey(); entry = (Map.Entry)entry.getValue(); if (str != null && entry != null) { if (entry instanceof Boolean) { encodeBool(this.nativeHandle, str, ((Boolean)entry).booleanValue()); continue; } if (entry instanceof Integer) { encodeInt(this.nativeHandle, str, ((Integer)entry).intValue()); continue; } if (entry instanceof Long) { encodeLong(this.nativeHandle, str, ((Long)entry).longValue()); continue; } if (entry instanceof Float) { encodeFloat(this.nativeHandle, str, ((Float)entry).floatValue()); continue; } if (entry instanceof Double) { encodeDouble(this.nativeHandle, str, ((Double)entry).doubleValue()); continue; } if (entry instanceof String) { encodeString(this.nativeHandle, str, (String)entry); continue; } if (entry instanceof Set) { encode(str, (Set<String>)entry); continue; } c c1 = c.LevelError; StringBuilder stringBuilder = new StringBuilder("unknown type: "); stringBuilder.append(entry.getClass()); simpleLog(c1, stringBuilder.toString()); } } return map.size(); } public native void lock(); public native String mmapID(); public SharedPreferences.Editor putBoolean(String paramString, boolean paramBoolean) { if (!isClose()) encodeBool(this.nativeHandle, paramString, paramBoolean); return this; } public SharedPreferences.Editor putBytes(String paramString, byte[] paramArrayOfbyte) { if (!isClose()) encode(paramString, paramArrayOfbyte); return this; } public SharedPreferences.Editor putFloat(String paramString, float paramFloat) { if (!isClose()) encodeFloat(this.nativeHandle, paramString, paramFloat); return this; } public SharedPreferences.Editor putInt(String paramString, int paramInt) { if (!isClose()) encodeInt(this.nativeHandle, paramString, paramInt); return this; } public SharedPreferences.Editor putLong(String paramString, long paramLong) { if (!isClose()) encodeLong(this.nativeHandle, paramString, paramLong); return this; } public SharedPreferences.Editor putString(String paramString1, String paramString2) { if (!isClose()) encodeString(this.nativeHandle, paramString1, paramString2); return this; } public SharedPreferences.Editor putStringSet(String paramString, Set<String> paramSet) { if (!isClose()) encode(paramString, paramSet); return this; } public native boolean reKey(String paramString); public void registerOnSharedPreferenceChangeListener(SharedPreferences.OnSharedPreferenceChangeListener paramOnSharedPreferenceChangeListener) { throw new UnsupportedOperationException("Not implement in MMKV"); } public SharedPreferences.Editor remove(String paramString) { if (!isClose()) removeValueForKey(paramString); return this; } public void removeValueForKey(String paramString) { if (isClose()) return; removeValueForKey(this.nativeHandle, paramString); } public void removeValuesForKeysMMKV(String[] paramArrayOfString) { if (isClose()) return; removeValuesForKeys(paramArrayOfString); } public void sync() { if (!isClose()) sync(true); } public long totalSize() { return isClose() ? 0L : totalSize(this.nativeHandle); } public void trimMMKV() { if (isClose()) return; trim(); } public native boolean tryLock(); public native void unlock(); public void unregisterOnSharedPreferenceChangeListener(SharedPreferences.OnSharedPreferenceChangeListener paramOnSharedPreferenceChangeListener) { throw new UnsupportedOperationException("Not implement in MMKV"); } public int writeValueToNativeBuffer(String paramString, e parame) { return writeValueToNB(this.nativeHandle, paramString, parame.a, parame.b); } public static interface a { void loadLibrary(String param1String); } } /* Location: C:\Users\august\Desktop\tik\df_miniapp\classes.jar!\com\tencent\appbrand\mmkv\MMKV.class * Java compiler version: 6 (50.0) * JD-Core Version: 1.1.3 */
package com.example.watcher.Model; import java.io.Serializable; public class Supervision implements Serializable { private String id; private String abonado; private String estado; private String fecha; private String hora; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getAbonado() { return abonado; } public void setAbonado(String abonado) { this.abonado = abonado; } public String getEstado() { return estado; } public void setEstado(String estado) { this.estado = estado; } public String getFecha() { return fecha; } public void setFecha(String fecha) { this.fecha = fecha; } public String getHora() { return hora; } public void setHora(String hora) { this.hora = hora; } }
package pro.eddiecache.core; import pro.eddiecache.core.model.ICacheListener; import pro.eddiecache.core.model.ICacheObserver; import pro.eddiecache.core.model.IDaemon; public class DaemonCacheWatch implements ICacheObserver, IDaemon { @Override public <K, V> void addCacheListener(String cacheName, ICacheListener<K, V> obj) { } @Override public <K, V> void addCacheListener(ICacheListener<K, V> obj) { } @Override public <K, V> void removeCacheListener(String cacheName, ICacheListener<K, V> obj) { } @Override public <K, V> void removeCacheListener(ICacheListener<K, V> obj) { } }
import java.util.Scanner; import java.io.PrintWriter; import java.io.FileNotFoundException; import java.io.File; import java.util.ArrayList; public class DecryptorAndEncryptor { public static void main(String[] args) { Scanner in = new Scanner (System.in); File g; Scanner fileIn; String fileName = ""; String doWhat; ArrayList<Character> eachLetter = new ArrayList<Character>(); String sentence = " "; char characterAt = ' '; int count = 0; int countB = 0; PrintWriter fileOut; PrintWriter fileOutD; boolean foundError = true; //Used to close do loop that if file name is not found do { try //Try catch will promote user to re renter a file if it cannot find a file. { System.out.print("Please enter the name of the file: "); fileName = in.nextLine(); g = new File (fileName); fileIn = new Scanner (g); //Adding file user choose to import to Scanner do //This loop will make sure the user enters either encrypt or decrypt { System.out.print("Would you like to encrypt or decrypt? "); doWhat = in.nextLine(); if(!doWhat.equalsIgnoreCase("decrypt") && !doWhat.equalsIgnoreCase("encrypt")) { System.out.println("Not recongnized"); } }while(!doWhat.equalsIgnoreCase("decrypt") && !doWhat.equalsIgnoreCase("encrypt")); if (doWhat.equalsIgnoreCase("encrypt")) //Loop used for encrypting a file { foundError =false; System.out.println("File has been encrypted to Encrypted.txt"); fileOut = new PrintWriter(System.getProperty("user.dir") + "\\Encrypted.txt"); //Where encrypted file will be saved to while (fileIn.hasNext()) { sentence = fileIn.nextLine(); count++; //count used to keep track of number of sentences for (int i = 0; i < sentence.length(); i++) //This will loop will decrpyt the file { countB++; //countB used to keep track of number of characters in array characterAt = sentence.charAt(i); characterAt++; //will increment each character in file eachLetter.add(characterAt); //Will add incremented character to array } if (count == 1) //This loop will print first line to the outputfile { for (int j = 0; j < sentence.length(); j++) { fileOut.print(eachLetter.get(j)); } } if (count > 1) //This loop will execute if there is more then one line to be printed to outputfile { fileOut.print("\r\n"); //This will print to the next line for (int j = (countB - sentence.length()) ; j <= countB - 1; j++) { fileOut.print(eachLetter.get(j)); } } } fileOut.close(); //close output file } if (doWhat.equalsIgnoreCase("decrypt")) //Loop used for decrypting a file. { foundError = false; System.out.print("File has been decrypted to Decrypted.txt"); fileOutD = new PrintWriter(System.getProperty("user.dir") + "\\Decrypted.txt"); //Where decrypted file will be saved to. while (fileIn.hasNext()) { sentence = fileIn.nextLine(); count++; //count used to keep track of number of sentences for (int i = 0; i < sentence.length(); i++) //This will loop will decrpyt the file { countB++; //countB used to keep track of number of characters in array characterAt = sentence.charAt(i); --characterAt; //Will decriment each character in file eachLetter.add(characterAt); //Will add decrimented character to array } if (count == 1) //This loop will print first line to the outputfile { for (int j = 0; j < sentence.length(); j++) { fileOutD.print(eachLetter.get(j)); } } if (count > 1) //This loop will execute if there is more then one line to be printed to outputfile { fileOutD.print("\r\n"); //This will print to the next line for (int j = (countB - sentence.length()) ; j <= countB - 1; j++) { fileOutD.print(eachLetter.get(j)); } } } fileOutD.close(); //Close output file } } catch (FileNotFoundException e) { System.out.println("File not Found"); } }while(foundError); } //end main } //end class DecryptorAndDecryptor
package org.alienideology.jcord.event.channel.dm; import org.alienideology.jcord.event.channel.ChannelDeleteEvent; import org.alienideology.jcord.handle.channel.IPrivateChannel; import org.alienideology.jcord.internal.object.IdentityImpl; import org.alienideology.jcord.internal.object.channel.Channel; import java.time.OffsetDateTime; /** * @author AlienIdeology */ public class PrivateChannelDeleteEvent extends ChannelDeleteEvent implements IPrivateChannelEvent { public PrivateChannelDeleteEvent(IdentityImpl identity, int sequence, Channel channel, OffsetDateTime timeStamp) { super(identity, sequence, channel, timeStamp); } @Override public IPrivateChannel getPrivateChannel() { return (IPrivateChannel) channel; } }
package com.open.proxy.aop.advice; import org.aopalliance.intercept.MethodInvocation; import com.google.common.base.Preconditions; /** * 切面逻辑的具体实现 * * @author jinming.wu * @date 2014-4-7 */ public abstract class AspectJAdvice implements Advice, MethodInterceptor { @Override public Object invoke(MethodInvocation invocation) throws Throwable { Preconditions.checkNotNull(invocation); doBefore(); Object obj = invocation.proceed(); doAfter(); return obj; } protected abstract void doBefore(); protected abstract void doAfter(); }
package com.demo.spring; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.servlet.ModelAndView; @Controller public class LoginController { @Autowired UserRepo repo; @RequestMapping(path = "/login.do", method = RequestMethod.GET) public String getPage() { return "login"; } @RequestMapping(path = "/login.do", method = RequestMethod.POST) public ModelAndView doLogin(@RequestParam("username") String user, @RequestParam("password") String password) { ModelAndView mv = new ModelAndView(); User userObj = repo.findOne(user); if (userObj != null) { if (userObj.getPassword().equals(password)) { mv.setViewName("success"); mv.addObject("userName", user); return mv; } else { mv.setViewName("failure"); return mv; } } else { mv.setViewName("failure"); return mv; } } }
package com.sunteam.library.service; import java.io.File; import java.util.ArrayList; import org.json.JSONArray; import org.json.JSONObject; import org.wlf.filedownloader.DownloadFileInfo; import org.wlf.filedownloader.FileDownloader; import org.wlf.filedownloader.listener.OnRetryableFileDownloadStatusListener; import com.sunteam.jni.SunteamJni; import com.sunteam.library.db.DownloadChapterDBDao; import com.sunteam.library.db.DownloadResourceDBDao; import com.sunteam.library.entity.DownloadChapterEntity; import com.sunteam.library.utils.LibraryConstant; import com.sunteam.library.utils.LogUtils; import com.sunteam.library.utils.PublicUtils; import android.app.Service; import android.content.Intent; import android.os.IBinder; import android.text.TextUtils; public class DownloadManagerService extends Service implements OnRetryableFileDownloadStatusListener { private static final String TAG = "DownloadManagerService"; @Override public IBinder onBind(Intent intent) { LogUtils.e(TAG, "onBind"); return null; } @Override public void onCreate() { super.onCreate(); LogUtils.e(TAG, "onCreate"); // 将当前service注册为FileDownloader下载状态监听器 FileDownloader.registerDownloadStatusListener(this); // 如果希望service启动就开始下载所有未完成的任务,则开启以下实现 FileDownloader.continueAll(true); } @Override public int onStartCommand(Intent intent, int flags, int startId) { LogUtils.e(TAG, "onStartCommand"); return super.onStartCommand(intent, flags, startId); } @Override public void onDestroy() { super.onDestroy(); LogUtils.e(TAG, "onDestroy"); // 将当前service取消注册为FileDownloader下载状态监听器 FileDownloader.unregisterDownloadStatusListener(this); // 如果希望service停止就停止所有下载任务,则开启以下实现 FileDownloader.pauseAll();// 暂停所有下载任务 } @Override public void onFileDownloadStatusRetrying(DownloadFileInfo downloadFileInfo, int retryTimes) { // 正在重试下载(如果你配置了重试次数,当一旦下载失败时会尝试重试下载),retryTimes是当前第几次重试 LogUtils.e( TAG, "aaa onFileDownloadStatusRetrying"); } @Override public void onFileDownloadStatusWaiting(DownloadFileInfo downloadFileInfo) { // 等待下载(等待其它任务执行完成,或者FileDownloader在忙别的操作) LogUtils.e( TAG, "bbb onFileDownloadStatusWaiting"); } @Override public void onFileDownloadStatusPreparing(DownloadFileInfo downloadFileInfo) { // 准备中(即,正在连接资源) LogUtils.e( TAG, "ccc onFileDownloadStatusPreparing"); } @Override public void onFileDownloadStatusPrepared(DownloadFileInfo downloadFileInfo) { // 已准备好(即,已经连接到了资源) LogUtils.e( TAG, "ddd onFileDownloadStatusPrepared"); } @Override public void onFileDownloadStatusDownloading(DownloadFileInfo downloadFileInfo, float downloadSpeed, long remainingTime) { // 正在下载,downloadSpeed为当前下载速度,单位KB/s,remainingTime为预估的剩余时间,单位秒 LogUtils.e( TAG, "eee onFileDownloadStatusDownloading"); String url = downloadFileInfo.getUrl(); DownloadChapterDBDao dcDao = new DownloadChapterDBDao( this.getBaseContext() ); DownloadChapterEntity entity = dcDao.find(url); //根据url查找章节下载记录 if( ( entity != null ) && ( entity.chapterStatus != LibraryConstant.DOWNLOAD_STATUS_GOING ) ) { entity.chapterStatus = LibraryConstant.DOWNLOAD_STATUS_GOING; //将状态设置为正在下载。 dcDao.update(url, entity.recorcdId, entity.chapterStatus); //更新数据库中保存的状态。 dcDao.closeDb(); DownloadResourceDBDao drDao = new DownloadResourceDBDao( this.getBaseContext() ); drDao.update(entity.chapterStatus, entity.recorcdId); //更新数据库中保存的状态。 drDao.closeDb(); } else { dcDao.closeDb(); } Intent intent = new Intent(LibraryConstant.ACTION_DOWNLOAD_STATUS); sendBroadcast(intent); //广播方式发送给客户端 } @Override public void onFileDownloadStatusPaused(DownloadFileInfo downloadFileInfo) { // 下载已被暂停 LogUtils.e( TAG, "fff onFileDownloadStatusPaused"); } @Override public void onFileDownloadStatusCompleted(DownloadFileInfo downloadFileInfo) { // 下载完成(整个文件已经全部下载完成) LogUtils.e( TAG, "ggg onFileDownloadStatusCompleted"); String url = downloadFileInfo.getUrl(); DownloadChapterDBDao dcDao = new DownloadChapterDBDao( this.getBaseContext() ); DownloadChapterEntity entity = dcDao.find(url); //根据url查找章节下载记录 if( ( entity != null ) && ( entity.chapterStatus != LibraryConstant.DOWNLOAD_STATUS_FINISH ) ) { entity.chapterStatus = LibraryConstant.DOWNLOAD_STATUS_FINISH; //将状态设置为下载完成。 dcDao.update(url, entity.recorcdId, entity.chapterStatus); //更新数据库中保存的状态。 boolean isFinish = true; //是否所有的章节都已经下载完成? ArrayList<DownloadChapterEntity> list = dcDao.findAll(entity.recorcdId); //查找这本书所有章节状态。 if( list != null ) { for( int i = 0; i < list.size(); i++ ) { if( list.get(i).chapterStatus != LibraryConstant.DOWNLOAD_STATUS_FINISH ) { isFinish = false; break; } } } else { isFinish = false; } dcDao.closeDb(); if( isFinish ) { DownloadResourceDBDao drDao = new DownloadResourceDBDao( this.getBaseContext() ); drDao.update(entity.chapterStatus, entity.recorcdId); //更新数据库中保存的状态。 drDao.closeDb(); } } else { dcDao.closeDb(); } String filedir = downloadFileInfo.getFileDir()+"/"; //文件路径 String filename = downloadFileInfo.getFileName(); //文件名 if( filename.contains(LibraryConstant.CACHE_FILE_SUFFIX) ) //电子书 { String content = PublicUtils.readDownloadContent( filedir, filename ); if( !TextUtils.isEmpty(content) ) { content = parseEbookContent( content ); if( !TextUtils.isEmpty(content) ) { File file = new File( downloadFileInfo.getFilePath() ); if( file.exists() ) { file.delete(); PublicUtils.saveContent(filedir, filename, content); } } } } //因为电子书章节是作为文件下载的,下载下来的数据是json格式,需要从中取出有用的数据。 else { PublicUtils.encryptFile(filedir+filename); //加密文件 } Intent intent = new Intent(LibraryConstant.ACTION_DOWNLOAD_STATUS); sendBroadcast(intent); //广播方式发送给客户端 /* LogUtils.e( TAG, "wzp debug 000 getUrl = "+ downloadFileInfo.getUrl() ); LogUtils.e( TAG, "wzp debug 111 getId = "+ downloadFileInfo.getId() ); LogUtils.e( TAG, "wzp debug 222 getTempFilePath = "+ downloadFileInfo.getTempFilePath() ); LogUtils.e( TAG, "wzp debug 333 getTempFileName = "+ downloadFileInfo.getTempFileName() ); LogUtils.e( TAG, "wzp debug 444 getStatus = "+ downloadFileInfo.getStatus() ); LogUtils.e( TAG, "wzp debug 555 getFilePath = "+ downloadFileInfo.getFilePath() ); LogUtils.e( TAG, "wzp debug 666 getFileName = "+ downloadFileInfo.getFileName() ); LogUtils.e( TAG, "wzp debug 777 getFileDir = "+ downloadFileInfo.getFileDir() ); */ } @Override public void onFileDownloadStatusFailed(String url, DownloadFileInfo downloadFileInfo, FileDownloadStatusFailReason failReason) { // 下载失败了,详细查看失败原因failReason,有些失败原因你可能必须关心 LogUtils.e( TAG, "hhh onFileDownloadStatusFailed"); String failType = failReason.getType(); String failUrl = failReason.getUrl();// 或:failUrl = url,url和failReason.getType()会是一样的 if( FileDownloadStatusFailReason.TYPE_URL_ILLEGAL.equals(failType) ) { // 下载failUrl时出现url错误 } else if( FileDownloadStatusFailReason.TYPE_STORAGE_SPACE_IS_FULL.equals(failType) ) { // 下载failUrl时出现本地存储空间不足 } else if( FileDownloadStatusFailReason.TYPE_NETWORK_DENIED.equals(failType) ) { // 下载failUrl时出现无法访问网络 } else if( FileDownloadStatusFailReason.TYPE_NETWORK_TIMEOUT.equals(failType) ) { // 下载failUrl时出现连接超时 } else { // 更多错误.... } // 查看详细异常信息 Throwable failCause = failReason.getCause();// 或:failReason.getOriginalCause() // 查看异常描述信息 String failMsg = failReason.getMessage();// 或:failReason.getOriginalCause().getMessage() } /** * 方法(解析ChapterList) * * @param jsonArray * @param list * @return * @author wzp * @Created 2017/01/24 */ private String parseChapterList( JSONArray jsonArray ) { String content = ""; for( int i = 0; i < jsonArray.length(); i++ ) { JSONObject obj = jsonArray.optJSONObject(i); content += obj.optString("Content"); } return content; } /** * 方法(解析items) * * @param jsonArray * @param list * @return * @author wzp * @Created 2017/01/24 */ private String parseItems( JSONArray jsonArray ) { String content = ""; for( int i = 0; i < jsonArray.length(); i++ ) { JSONObject obj = jsonArray.optJSONObject(i); JSONArray array = obj.optJSONArray("ChapterList"); content += parseChapterList( array ); } return content; } //解析电子图书内容 private String parseEbookContent( String responseStr ) { try { JSONObject jsonObject = new JSONObject(responseStr); Boolean result = jsonObject.optBoolean("IsException") ; if( result ) { return null; } JSONArray jsonArray = jsonObject.optJSONArray("Items"); if( ( null == jsonArray ) || ( 0 == jsonArray.length() ) ) { return null; } return PublicUtils.parseHtml(parseItems( jsonArray )); } catch( Exception e ) { e.printStackTrace(); } return null; } }
package com.pine.template.mvp.presenter; import android.os.Bundle; import com.pine.template.base.component.share.bean.ShareBean; import com.pine.template.base.component.share.bean.UrlTextShareBean; import com.pine.template.mvp.MvpUrlConstants; import com.pine.template.mvp.contract.IMvpWebViewContract; import com.pine.tool.architecture.mvp.presenter.Presenter; import com.pine.tool.architecture.state.UiState; import java.util.ArrayList; /** * Created by tanghongfeng on 2018/9/13 */ public class MvpWebViewPresenter extends Presenter<IMvpWebViewContract.Ui> implements IMvpWebViewContract.Presenter { private String mH5Url; @Override public boolean parseIntentData(Bundle bundle) { mH5Url = bundle.getString("url", MvpUrlConstants.H5_DefaultUrl); return false; } @Override public void onUiState(UiState state) { super.onUiState(state); if (state == UiState.UI_STATE_ON_INIT) { getUi().loadUrl(mH5Url); } } @Override public String getH5Url() { return mH5Url; } @Override public ArrayList<ShareBean> getShareBeanList() { ArrayList<ShareBean> shareBeanList = new ArrayList<>(); UrlTextShareBean shareBean = new UrlTextShareBean(ShareBean.SHARE_TARGET_QQ, ShareBean.SHARE_CONTENT_TYPE_TEXT_URL, "Item Detail Title", "Item Detail Text", "Item Detail Desc", mH5Url); shareBeanList.add(shareBean); shareBean = new UrlTextShareBean(ShareBean.SHARE_TARGET_WX, ShareBean.SHARE_CONTENT_TYPE_TEXT_URL, "Item Detail Title", "Item Detail Text", "Item Detail Desc", mH5Url); shareBeanList.add(shareBean); shareBean = new UrlTextShareBean(ShareBean.SHARE_TARGET_WX_FRIEND_CIRCLE, ShareBean.SHARE_CONTENT_TYPE_TEXT_URL, "Item Detail Title", "Item Detail Text", "Item Detail Desc", mH5Url); shareBeanList.add(shareBean); shareBean = new UrlTextShareBean(ShareBean.SHARE_TARGET_WEI_BO, ShareBean.SHARE_CONTENT_TYPE_TEXT_URL, "Item Detail Title", "Item Detail Text", "Item Detail Desc", mH5Url); shareBeanList.add(shareBean); return shareBeanList; } }
package io.github.jorelali.commandapi.api; import org.bukkit.command.CommandSender; import com.mojang.brigadier.exceptions.CommandSyntaxException; @FunctionalInterface public interface ResultingCommandExecutor { /** * The code to run when this command is performed * * @param sender * The sender of this command (a player, the console etc.) * @param args * The arguments given to this command. The objects are * determined by the hashmap of arguments IN THE ORDER of * insertion into the hashmap */ int run(CommandSender sender, Object[] args) throws CommandSyntaxException; }
package com.tencent.tencentmap.mapsdk.a; import android.content.Context; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Environment; import android.telephony.TelephonyManager; import android.text.TextUtils; import android.util.Log; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public final class fz { private static String a = ""; private static String b = ""; public static int a(byte[] bArr, int i) { return ((((bArr[0] << 24) & -16777216) + ((bArr[1] << 16) & 16711680)) + ((bArr[2] << 8) & 65280)) + (bArr[3] & 255); } public static String a(Context context) { Object obj = 1; if (context == null) { return null; } try { String str = a; if (str != null) { if (str.trim().length() != 0) { obj = null; } } if (obj != null) { TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService("phone"); if (telephonyManager != null) { a = telephonyManager.getDeviceId(); } } } catch (Exception e) { } return a; } public static String a(Exception exception) { String stackTraceString = Log.getStackTraceString(exception); return stackTraceString != null ? (stackTraceString.indexOf("\n") == -1 || stackTraceString.indexOf("\n") >= 100) ? stackTraceString.length() > 100 ? stackTraceString.substring(0, 100) : stackTraceString : stackTraceString.substring(0, stackTraceString.indexOf("\n")) : ""; } public static String a(byte[] bArr) { if (bArr == null) { return ""; } String str = ""; for (int i = 0; i < bArr.length; i++) { str = (str + Integer.toHexString((bArr[i] >> 4) & 15)) + Integer.toHexString(bArr[i] & 15); } return str; } public static boolean a() { return "mounted".equals(Environment.getExternalStorageState()); } public static boolean a(String str) { return str == null || str.trim().length() == 0; } public static String b() { return ("mounted".equals(Environment.getExternalStorageState()) ? 1 : null) != null ? Environment.getExternalStorageDirectory().getAbsolutePath() + "/AccessSchedulerDir" : ""; } public static String b(Context context) { Object obj = 1; if (context == null) { return null; } try { String str = b; if (str != null) { if (str.trim().length() != 0) { obj = null; } } if (obj != null) { WifiManager wifiManager = (WifiManager) context.getSystemService("wifi"); if (wifiManager != null) { WifiInfo connectionInfo = wifiManager.getConnectionInfo(); if (connectionInfo != null) { b = connectionInfo.getMacAddress(); } } } } catch (Exception e) { } return b; } public static String b(String str) { String str2 = ""; Context a = em.a(); try { StringBuilder stringBuilder = new StringBuilder(""); Object a2 = a(a); if (!TextUtils.isEmpty(a2)) { stringBuilder.append(a2); } Object b = b(a); if (!TextUtils.isEmpty(b)) { stringBuilder.append(b); } stringBuilder.append(System.currentTimeMillis()); stringBuilder.append(str); stringBuilder.append((int) (Math.random() * 2.147483647E9d)); return e(stringBuilder.toString()); } catch (Exception e) { return str2; } } public static String c() { Object obj = 1; try { String str = a; if (str != null) { if (str.trim().length() != 0) { obj = null; } } if (obj != null) { Context a = em.a(); if (a != null) { TelephonyManager telephonyManager = (TelephonyManager) a.getSystemService("phone"); if (telephonyManager != null) { a = telephonyManager.getDeviceId(); } } } } catch (Exception e) { } return a; } public static String c(String str) { return (str == null || str.length() == 0) ? null : (str.toLowerCase().startsWith("http://") || str.toLowerCase().startsWith("https://")) ? str : "http://" + str; } public static String d(String str) { if (str == null || str.length() == 0) { return null; } String substring; int indexOf = str.indexOf("://"); indexOf = indexOf != -1 ? indexOf + 3 : 0; int indexOf2 = str.indexOf(47, indexOf); if (indexOf2 != -1) { substring = str.substring(indexOf, indexOf2); } else { indexOf2 = str.indexOf(63, indexOf); substring = indexOf2 != -1 ? str.substring(indexOf, indexOf2) : str.substring(indexOf); } indexOf2 = substring.indexOf(":"); return indexOf2 >= 0 ? substring.substring(0, indexOf2) : substring; } private static String e(String str) { String str2 = null; if (str == null || str.length() == 0) { return str2; } try { MessageDigest instance = MessageDigest.getInstance("MD5"); instance.update(str.getBytes()); byte[] digest = instance.digest(); if (digest == null) { return ""; } StringBuffer stringBuffer = new StringBuffer(); for (byte b : digest) { String toHexString = Integer.toHexString(b & 255); if (toHexString.length() == 1) { stringBuffer.append("0"); } stringBuffer.append(toHexString); } return stringBuffer.toString().toUpperCase(); } catch (NoSuchAlgorithmException e) { return str2; } } }
package aula043; public class Funcionario extends Cliente{ private static int ultimoNumFunc = 1; private int numFunc; private int nif; public Funcionario (Data dataInsc, String nome, int bi, Data dataNasc, int nif) { super(dataInsc, nome, bi, dataNasc); this.numFunc = ultimoNumFunc; this.nif = nif; incrementar(); } private void incrementar() { Funcionario.ultimoNumFunc++; } public int getUltimoNumFunc() { return Funcionario.ultimoNumFunc; } public int getNumFunc() { return numFunc; } public int getNif() { return nif; } @Override public String whoAmI() { return "Funcion�rio"; } @Override public boolean equals(Object obj) { if (obj==null || getClass()!=obj.getClass()) return false; if (obj==this) return true; Funcionario f = (Funcionario) obj; return (this.nome.equals(f.getNome()) && this.bi==f.getBi() && this.dataNasc.equals(f.getDataNasc()) && this.nif==f.getNif()); } }
import java.util.Arrays; public class ArrayMultiCapacitivo{ private int[] arrayInteri; private String[] arrayStringhe; public ArrayMultiCapacitivo(int elementi){ arrayInteri = new int[elementi]; arrayStringhe = new String[elementi]; } public void setElement(int indice, int intero, String stringa){ arrayInteri[indice] = intero; arrayStringhe[indice] = stringa; } public void setArray(int[] arrayInt, String[] arrayStr){ arrayInteri = arrayInt; arrayStringhe = arrayStr; } public void setElementString(int indice, String stringa){ arrayStringhe[indice] = stringa; } public void setElementInt(int indice, int intero){ arrayInteri[indice] = intero; } public int[] getArrayInt(){ return arrayInteri; } public String[] getArrayString(){ return arrayStringhe; } public int getIntElementAt(int indice){ return arrayInteri[indice]; } public String getStringElementAt(int indice){ return arrayStringhe[indice]; } public void swapArray(int indice1, int indice2){ int varTempInt = arrayInteri[indice1]; arrayInteri[indice1] = arrayInteri[indice2]; arrayInteri[indice2] = varTempInt; String varTempStr = arrayStringhe[indice1]; arrayStringhe[indice1] = arrayStringhe[indice2]; arrayStringhe[indice2] = varTempStr; } }
package com.example.parrotland94.testtaskdemo.storage.utils.weather; import com.example.parrotland94.testtaskdemo.storage.models.CurrentWeatherConditionsModel; import com.example.parrotland94.testtaskdemo.storage.models.CurrentWeatherDataModel; import com.example.parrotland94.testtaskdemo.storage.models.LocationDataModel; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; /** * Created by parrotland94 on 5/15/16. */ public class CurrentWeatherProvider { private JSONObject mJSONWeatherInfo; private CurrentWeatherDataModel mCurrentWeatherData; public CurrentWeatherProvider(String weatherInfo) throws JSONException { this.mJSONWeatherInfo = new JSONObject(weatherInfo); initWeatherData(); } private void initWeatherData() throws JSONException { mCurrentWeatherData = new CurrentWeatherDataModel(); setWeatherLocation(); setCurrentConditions(); } private void setWeatherLocation() throws JSONException { LocationDataModel locationData = new LocationDataModel(); JSONObject jsonCoordObj = getObject("coord", mJSONWeatherInfo); locationData.setLatitude(getFloat("lat", jsonCoordObj)); locationData.setLongitude(getFloat("lon", jsonCoordObj)); JSONObject jsonsysObj = getObject("sys", mJSONWeatherInfo); locationData.setCountry(getString("country", jsonsysObj)); locationData.setSunriseTime(getInt("sunrise", jsonsysObj)); locationData.setSunsetTime(getInt("sunset", jsonsysObj)); locationData.setCity(getString("name", mJSONWeatherInfo)); mCurrentWeatherData.setLocationData(locationData); } private void setCurrentConditions() throws JSONException { CurrentWeatherConditionsModel currentConditions = new CurrentWeatherConditionsModel(); CurrentWeatherDataModel.WindConditions windConditions = new CurrentWeatherDataModel.WindConditions(); CurrentWeatherDataModel.TemperatureConditions temperatureConditions = new CurrentWeatherDataModel.TemperatureConditions(); CurrentWeatherDataModel.CloudsConditions cloudsConditions = new CurrentWeatherDataModel.CloudsConditions(); // General current conditions JSONArray jsonArray = mJSONWeatherInfo.getJSONArray("weather"); JSONObject jsonWeather = jsonArray.getJSONObject(0); currentConditions.setId(getInt("id", jsonWeather)); currentConditions.setDescription(getString("description", jsonWeather)); currentConditions.setConditions(getString("main", jsonWeather)); currentConditions.setIcon(getString("icon", jsonWeather)); JSONObject mainObj = getObject("main", mJSONWeatherInfo); currentConditions.setHumidity(getInt("humidity", mainObj)); currentConditions.setPressure(getInt("pressure", mainObj)); temperatureConditions.setTemperatureMax(getFloat("temp_max", mainObj)); temperatureConditions.setTemperatureMin(getFloat("temp_min", mainObj)); temperatureConditions.setTemperatureCurrent(getFloat("temp", mainObj)); // Wind JSONObject wObj = getObject("wind", mJSONWeatherInfo); windConditions.setSpeed(getFloat("speed", wObj)); //windConditions.setDeg(getFloat("deg", wObj)); // Clouds JSONObject cObj = getObject("clouds", mJSONWeatherInfo); cloudsConditions.setPercentage(getInt("all", cObj)); mCurrentWeatherData.setCurrentConditions(currentConditions); mCurrentWeatherData.setWindConditions(windConditions); mCurrentWeatherData.setTemperatureConditions(temperatureConditions); mCurrentWeatherData.setCloudsConditions(cloudsConditions); } private static JSONObject getObject(String tagName, JSONObject jObj) throws JSONException { JSONObject subObj = jObj.getJSONObject(tagName); return subObj; } private static String getString(String tagName, JSONObject jObj) throws JSONException { return jObj.getString(tagName); } private static double getFloat(String tagName, JSONObject jObj) throws JSONException { return jObj.getDouble(tagName); } private static int getInt(String tagName, JSONObject jObj) throws JSONException { return jObj.getInt(tagName); } public CurrentWeatherDataModel getWeatherData() { return mCurrentWeatherData; } }
package cn.timebusker.web; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * 快速启动 spring-boot */ @RestController public class HelloController { /** * The class is flagged as a @RestController,meaning it’s ready for use by Spring MVC to handle web requests. * @RequestMapping maps / to the index() method. When invoked(调用) from a browser or using curl on the command line, * the method returns pure(单纯的) text. * * That’s because @RestController combines(结合) @Controller and @ResponseBody, * two annotations that results in web requests returning data rather than a view. * * 那是因为@RestController联合了@Controller and @ResponseBody两个注解导致返回的是数据而不是视图 */ /** * Hello spring-boot-1-QuickStart!!! * @return */ @RequestMapping("/hello") public String hello() { System.out.println("Hello Spring-Boot"); return "Hello spring-boot-1-QuickStart!!!"; } }
/* * [y] hybris Platform * * Copyright (c) 2000-2016 SAP SE * All rights reserved. * * This software is the confidential and proprietary information of SAP * Hybris ("Confidential Information"). You shall not disclose such * Confidential Information and shall use it only in accordance with the * terms of the license agreement you entered into with SAP Hybris. */ package com.cnk.travelogix.operations.services.impl; import java.util.Collections; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import com.cnk.travelogix.masterdata.core.c2l.model.CityModel; import com.cnk.travelogix.operation.daos.CityDao; import com.cnk.travelogix.operations.services.CityService; /** * Implementation class of CityService Interface. * * @author C5244543 */ public class DefaultCityService implements CityService { @Autowired private CityDao cityDao; @Override public CityModel findCityByIsocode(final String isocode) { return cityDao.findCityByIsocode(isocode); } @Override public List<CityModel> findCities() { final List<CityModel> cityModels = cityDao.findCities(); if (cityModels != null && !cityModels.isEmpty()) { return cityModels; } return Collections.emptyList(); } }
package com.tencent.mm.plugin.appbrand.c; public final class a { public String appId; public int bMT; public String bNH; public long eyz; public String fnM; public String fnN; public a fnO; public boolean fnP; public boolean fnQ = true; public boolean fnR = true; public String mediaId; }
/* * This software is licensed under the MIT License * https://github.com/GStefanowich/MC-Server-Protection * * Copyright (c) 2019 Gregory Stefanowich * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package net.theelm.sewingmachine.utilities; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import net.minecraft.text.TranslatableTextContent; import net.theelm.sewingmachine.base.CoreMod; import net.theelm.sewingmachine.exceptions.ExceptionTranslatableServerSide; import net.theelm.sewingmachine.interfaces.PlayerServerLanguage; import net.theelm.sewingmachine.interfaces.ServerTranslatable; import net.minecraft.command.CommandSource; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.server.command.ServerCommandSource; import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.text.MutableText; import net.minecraft.text.Text; import net.minecraft.util.Formatting; import net.theelm.sewingmachine.objects.SewModules; import net.theelm.sewingmachine.utilities.text.TextUtils; import org.jetbrains.annotations.NotNull; import java.io.InputStream; import java.io.InputStreamReader; import java.text.NumberFormat; import java.util.Locale; import java.util.Objects; public final class ServerText { private ServerText() {} public static void send(@NotNull CommandSource source, String key, Object... objects) { ServerText.send(source, true, key, objects); } public static void send(@NotNull CommandSource source, boolean notify, String key, Object... objects) { if (source instanceof ServerCommandSource serverSource) serverSource.sendFeedback(() -> ServerText.translatable(source, key, objects), notify); } public static void send(@NotNull PlayerEntity player, String key, Object... objects) { player.sendMessage(ServerText.translatable(player, key, objects)); } public static @NotNull MutableText translatable(@NotNull CommandSource source, String key, Object... objects) { if (source instanceof ServerCommandSource serverSource && serverSource.getEntity() instanceof ServerPlayerEntity serverPlayer) return ServerText.translatable(serverPlayer, key, objects ); return ServerText.translatable(Locale.getDefault(), key, objects); } public static @NotNull MutableText translatable(@NotNull PlayerEntity player, String key, Object... objects) { if (!(player instanceof ServerPlayerEntity serverPlayer)) return Text.translatable(key, objects); // If done client side, return as a translation key to be handled clientside return ServerText.translatable(serverPlayer, key, objects); } public static @NotNull MutableText translatable(@NotNull ServerPlayerEntity player, String key, Object... objects) { return ServerText.translatable(((PlayerServerLanguage) player).getClientLanguage(), key, objects); } public static @NotNull MutableText translatable(@NotNull Locale language, @NotNull String key, @NotNull Object... objects) { String value = ServerText.getTranslation(language, key); for (int i = 0; i < objects.length; ++i) { Object obj = objects[i]; if (obj instanceof Text text) { objects[i] = TextUtils.literal(text); } else if (obj == null) { objects[i] = "null"; } } return ServerText.replace(language, key, value, objects); } /** * Convert our objects to be handled by the client * @param language The user language * @param key The translation key * @param fallback tHe translation key value * @param objects Values to be used in the translation key * @return */ private static @NotNull MutableText replace(@NotNull Locale language, @NotNull String key, @NotNull String fallback, @NotNull Object... objects) { if ( objects.length == 0 ) return Text.translatableWithFallback(key, fallback); String[] separated = fallback.split("((?<=%[a-z])|(?=%[a-z]))"); // Get the formatter for numbers NumberFormat formatter = NumberFormat.getInstance(language); int c = 0; MutableText out = null; for ( String seg : separated ) { // If is a variable if ( matchAny(seg, "%s", "%d", "%f") ) { // Get the objects that were provided Object obj = objects[c++]; if (obj instanceof ServerTranslatable translatable) obj = translatable.translate(language).formatted(Formatting.AQUA); if ( ("%s".equalsIgnoreCase(seg)) && ( obj instanceof Text text) ) { // Create if null if (out == null) out = Text.literal(""); // Color translations if (text.getContent() instanceof TranslatableTextContent translatableText && text instanceof MutableText mutableText) mutableText.formatted(Formatting.DARK_AQUA); // Append out.append(text); } else if ( ("%d".equalsIgnoreCase( seg )) && (obj instanceof Number number) ) { // Create if null if (out == null) out = Text.literal(""); // Append out.append(Text.literal(formatter.format(number.longValue())).formatted(Formatting.AQUA)); } else { // Create if null if (out == null) out = Text.literal(obj.toString()); // Append if not null else out.append(obj.toString()); } } else { // If not a variable if (out == null) out = Text.literal(seg); else out.append(seg); } } return (out == null ? Text.translatable(key) : out); } public static @NotNull ExceptionTranslatableServerSide exception(String key) { return new ExceptionTranslatableServerSide(key); } public static @NotNull ExceptionTranslatableServerSide exception(String key, int num) { return new ExceptionTranslatableServerSide(key); } private static @NotNull String getTranslation(Locale language, String key) { JsonObject object = ServerText.readLanguageFile(language); if ( !Objects.equals(language, Locale.US) && !object.has(key)) return ServerText.getTranslation(Locale.US, key); JsonElement element = object.get(key); if ( element == null ) { CoreMod.logInfo("Missing translation key \"" + key + "\"!"); return ""; } return element.getAsString(); } private static JsonObject readLanguageFile(Locale language) { String filePath; InputStream resource = CoreMod.class.getResourceAsStream( filePath = ServerText.getResourcePath(language) ); if (resource == null) { // If not already using English, Fallback to English if (language != Locale.US) return ServerText.readLanguageFile(Locale.US); // Throw an exception throw new NullPointerException("Could not read language file \"" + filePath + "\""); } // Return the JSON language file return JsonParser.parseReader(new InputStreamReader( resource )).getAsJsonObject(); } private static @NotNull String getResourcePath(@NotNull Locale locale) { return "/assets/" + SewModules.MODULE + "/lang/" + (locale.getLanguage() + "_" + locale.getCountry()).toLowerCase() + ".json"; } private static boolean matchAny(@NotNull String needle, @NotNull String... haystack ) { for ( String hay : haystack ) { if ( needle.equalsIgnoreCase( hay ) ) return true; } return false; } }
package ch.ubx.startlist.server; import java.util.Set; import ch.ubx.startlist.shared.Pilot; public interface PilotDAO { public void addPilot(Pilot pilot); public Set<Pilot> getPilots(); }
package com.ibm.ive.tools.japt.reduction.ita; import com.ibm.ive.tools.japt.reduction.ita.ObjectSet.Entry; public interface ReceivedObject extends Entry { PropagatedObject getObject(); MethodInvocationLocation getLocation(); int hashCode(); }
import java.util.Queue; import java.util.LinkedList; public class Node { int data; Node left; Node right; Node(int data) { this.data = data; left = null; right = null; } } public class BinaryTree { public static Node root; public static void printLevelOrder() { if(root == null) { return; } Queue<Node> q = new LinkedList<Node>(); q.add(root); while(!q.isEmpty()) { Node tempNode = q.poll(); System.out.println(tempNode.data); if(tempNode.left != null) { q.add(tempNode.left); } if(tempNode.right != null) { q.add(tempNode.right); } } } public static void main(String[] args) { BinaryTree tree_level = new BinaryTree(); tree_level.root = new Node(1); tree_level.root.left = new Node(2); tree_level.root.right = new Node(3); tree_level.root.left.left = new Node(4); tree_level.root.left.right = new Node(5); System.out.println("Level order traversal of binary tree is - "); tree_level.printLevelOrder(); } }
/* * Copyright 2015 Michal Harish, michal.harish@gmail.com * * 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 io.amient.kafka.metrics; import org.apache.kafka.common.config.ConfigDef; import org.apache.kafka.common.utils.AppInfoParser; import org.apache.kafka.connect.connector.Task; import org.apache.kafka.connect.sink.SinkConnector; import java.util.ArrayList; import java.util.List; import java.util.Map; public class InfluxDbSinkConnector extends SinkConnector { private Map<String, String> config; @Override public String version() { return AppInfoParser.getVersion(); } @Override public void start(Map<String, String> props) { this.config = props; } @Override public void stop() { } @Override public ConfigDef config() { ConfigDef defs = new ConfigDef(); defs.define("influxdb.url", ConfigDef.Type.STRING, "http://localhost:8086", ConfigDef.Importance.HIGH, "influxdb server http address in the form http://<host>:<port>"); defs.define("influxdb.database", ConfigDef.Type.STRING, "metrics", ConfigDef.Importance.HIGH, "influxdb database name to which to publish"); defs.define("influxdb.username", ConfigDef.Type.STRING, "", ConfigDef.Importance.MEDIUM, "influxdb username to use for http updates"); defs.define("influxdb.password", ConfigDef.Type.STRING, "", ConfigDef.Importance.MEDIUM, "influxdb password to use for http updates"); return defs; } @Override public Class<? extends Task> taskClass() { return InfluxDbSinkTask.class; } @Override public List<Map<String, String>> taskConfigs(int maxTasks) { ArrayList<Map<String, String>> configs = new ArrayList<>(); for (int i = 0; i < maxTasks; i++) { configs.add(config); } return configs; } }
package day10_ifStatement; public class without_CurlyBrace { public static void main(String[] args) { /* single if statement; if( condition) { // some codes } IF STATEMENT without curly braces : single if statement if(condition) // only single line of code statement IF ELSE STATEMENT: without curly brace if (condition) //single line of statement==> else // single line of statement MULTI - BARNCH IF STATEMENT WITHOUT CURLY BRACEELSE if (condition) // single line of statement else if(condition2) // single line of statement else // single line of statement */ if ( false ) { System.out.println("Today is Friday"); System.out.println("Tomorrow is day off"); System.out.println("There is no java class tomorrow"); } if ( false) System.out.println("Today is Friday");// dont execute the first line because it is false System.out.println("Tomorrow is day off");// still execute because not in if block System.out.println("There is no java class tomorrow"); if ( true) System.out.println("Hello"); System.out.println("Tomorrow is day off"); System.out.println("There is no java class tomorrow"); /*if -else statement: if (condition) //single line of statement else single line of statement */ if (false) { System.out.println("Hello"); } //System.out.println("Good morning"); this line is separating if and else line, thats why gives compile error // else statement MUST be declared right after single if statement else { System.out.println("Hola"); } /*MULTI - BARNCH STATEMENT WITHOUT CURLY BRACEELSE IF STATEMENT if (condition) // single line of statement else if(condition2) // single line of statement else // single line of statement * */ if (true) System.out.println("if block"); //I can not add any statement here otherwise gives me compil error else if (true) System.out.println("else if block"); // adding one more statement gives compil error else System.out.println("else blcok"); // else if block = else block is not mendatory } }
package sevenkyu.linenumbering; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Collectors; class LineNumbering { public List<String> number(List<String> lines) { AtomicInteger atomicInteger = new AtomicInteger(1); return lines.stream() .map(string -> String.format("%d: %s", atomicInteger.getAndIncrement(), string)) .collect(Collectors.toList()); } }
package com.example.anim; import androidx.appcompat.app.AppCompatActivity; import androidx.core.app.ActivityCompat; import android.Manifest; import android.content.pm.PackageManager; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; import com.airbnb.lottie.LottieAnimationView; public class MainActivity extends AppCompatActivity { LottieAnimationView lw; Button hte; public static final int RequestPermissionCode = 1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); EnableRuntimePermission(); hte=findViewById(R.id.button); lw=findViewById(R.id.animation_view); hte.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { lw.playAnimation(); } }); } public void EnableRuntimePermission() { if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this, Manifest.permission.CALL_PHONE)) { // Toast.makeText(Cpature_image.this,"CAMERA permission allows us to Access CAMERA app", Toast.LENGTH_LONG).show(); } else { ActivityCompat.requestPermissions(MainActivity.this, new String[]{ Manifest.permission.CALL_PHONE,Manifest.permission.SEND_SMS,Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.ACCESS_COARSE_LOCATION}, RequestPermissionCode); } } @Override public void onRequestPermissionsResult(int RC, String per[], int[] PResult) { switch (RC) { case RequestPermissionCode: if (PResult.length > 0 && PResult[0] == PackageManager.PERMISSION_GRANTED) { // Toast.makeText(Cpature_image.this,"Permission Granted, Now your application can access CAMERA.", Toast.LENGTH_LONG).show(); } else { Toast.makeText(this, "Permission Canceled, Now your application cannot access CAMERA.", Toast.LENGTH_LONG).show(); } break; } } }
package org.kernelab.basis.demo; import java.util.Collection; import java.util.LinkedList; import org.kernelab.basis.JSON; import org.kernelab.basis.JSON.JSAN; import org.kernelab.basis.Tools; public class DemoMaster { public static void main(String[] args) { JSON slave1 = new JSON().attr("id", 11).attr("name", "Mike"); JSON slave2 = new JSON().attr("id", 12).attr("name", "Peter"); JSON king = new JSON() // .attr("id", 1) // .attr("name", "King") // .attr("slaves", new JSAN().addAll(0, slave1, slave2)); Tools.debug(king.toString(0)); DemoMaster m = king.project(new DemoMaster()); Tools.debug(m); } private int id; private String name; private Collection<DemoSlave> slaves = new LinkedList<DemoSlave>(); public int getId() { return id; } public String getName() { return name; } public Collection<DemoSlave> getSlaves() { return slaves; } public void setId(int id) { this.id = id; } public void setName(String name) { this.name = name; } public void setSlaves(Collection<DemoSlave> slaves) { this.slaves = slaves; } }
package com.xff.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @author xufeng * @version 1.0 * @date 2020/7/6 16:29 **/ @RestController @RequestMapping(value = "/hello") public class HelloController { @GetMapping(value = "/{name}") public String hello(@PathVariable(value = "name")String name) { return "hello333," + name + "!"; } }
package com.github.adambots.steamworks2017.camera; public class Vision { }
/** * Copyright 2013-present febit.org (support@febit.org) * * Licensed 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.febit.web.component; import org.febit.lang.ConcurrentIdentityMap; import org.febit.util.ClassUtil; import org.febit.util.Petite; import org.febit.web.ActionRequest; import org.febit.web.argument.Argument; /** * * @author zqq90 */ public class ArgumentManager implements ArgumentResolver, Component { protected final ConcurrentIdentityMap<Class, Argument> argumentCache; protected Argument[] arguments; protected Argument defaultArgument; public ArgumentManager() { this.argumentCache = new ConcurrentIdentityMap<>(); } @Petite.Init public void init() { for (Argument argument : arguments) { for (Class type : argument.matchTypes()) { this.argumentCache.put(type, argument); } } } @Override public Argument resolveArgument(final Class<?> type, final String name, final int index) { Argument argument = argumentCache.get(type); if (argument != null) { return argument; } for (Class cls : ClassUtil.impls(type)) { argument = argumentCache.get(cls); if (argument != null) { break; } } if (argument == null) { argument = defaultArgument; } return argumentCache.putIfAbsent(type, argument); } public Object resolve(final ActionRequest request, final Class type, final String name, final int index) { Argument argument = argumentCache.get(type); if (argument == null) { argument = resolveArgument(type, name, index); } return argument.resolve(request, type, name, index); } }
package io.github.lukeeff.newssystem.commands; import lombok.NonNull; import org.bukkit.entity.Player; /** * Interface for all News sub command objects. The * purpose here is to store sub commands in the * same map and still be able to call important * overridden methods used in their respective class. * * @author lukeeff * @since 4/25/2020 */ public interface InterfaceNews { /** * Modifies the news map relative to the * inherited classes' override. * * @param player the player sending the command. * @param args the arguments of the command. */ void modifyNewsMap(@NonNull Player player, @NonNull String[] args); /** * Gets the minimum sub command length for * the target sub command. * * @return the minimum length required in the * logic for this sub command. */ int getMIN_SUB_CMD_LENGTH(); }
class MyThread implements Runnable{ private int[] ticket; public void run(){ for (int i=0;i<10;i++) { update(ticket); } } private synchronized void update(int[] ticket) { if(ticket[0] > 0){ System.out.println("ticket = " + ticket[0]--); } } public MyThread() { this.ticket = new int[1]; ticket[0] = 5; } public static void main(String[] args){ MyThread my = new MyThread(); new Thread(my).start(); new Thread(my).start(); new Thread(my).start(); } }
package org.study.concurrency.dateutiles; import java.time.LocalDateTime; import java.time.ZoneId; import java.time.format.DateTimeFormatter; import java.util.Date; public class DateTimeFormatterThreadSafeJava8 extends AbstractDateTimeFormatter { private static DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-mm-dd"); @Override protected Date parseDate(String dateStr) { return Date.from(LocalDateTime.parse(dateStr, formatter).atZone(ZoneId.systemDefault()).toInstant()); } @Override protected String parseStr(Date date) { LocalDateTime dateTime = LocalDateTime.ofInstant(date.toInstant(), ZoneId.systemDefault()); return formatter.format(dateTime); } }
/** * */ package com.teamtrack.push; import com.notnoop.apns.APNS; import com.notnoop.apns.ApnsService; import com.notnoop.apns.ApnsServiceBuilder; import com.teamtrack.dto.PushNotificationDetails; /** * @author parveenkumar * */ public class PushNotifications { public void sendPush(PushNotificationDetails push) { System.out.println("Sending an iOS push notification...\nobj: " + push); ApnsServiceBuilder serviceBuilder = APNS.newService(); String certPath = PushNotifications.class.getResource("").getPath(); System.out.println(certPath + "../../../" + push.getCertificatePath()); serviceBuilder.withCert(certPath + "../../../" + push.getCertificatePath(), push.getCertificatePassword()).withSandboxDestination(); ApnsService service = serviceBuilder.build(); // Payload with custom fields String payload = APNS.newPayload().alertBody(push.getMessage()).alertTitle(push.getAlertTitle()) .sound("default").customField(push.getCustomField(), push.getCustomFieldValue()).build(); System.out.println("payload: " + payload); service.push(push.getToken(), payload); System.out.println("The message has been hopefully sent..."); } public static void tester(String[] args) { System.out.println("Sending an iOS push notification..."); String token = ""; String type = "dev"; String message = "the test push notification message"; try { token = args[0]; } catch (Exception e) { System.out .println("Usage: PushNotifications devicetoken [message] [type prod|dev]"); System.out .println("example: PushNotifications 1testdevicetoken3eb414627e78991ac5a615b4a2a95454c6ba5d18930ac137 'hi there!' prod"); return; } try { message = args[1]; } catch (Exception e) { System.out.println("no message defined, using '" + message + "'"); } try { type = args[2]; } catch (Exception e) { System.out.println("no API type defined, using " + type); } System.out.println("The target token is " + token); ApnsServiceBuilder serviceBuilder = APNS.newService(); if (type.equals("prod")) { System.out.println("using prod API"); String certPath = PushNotifications.class.getResource( "prod_cert.p12").getPath(); serviceBuilder.withCert(certPath, "password") .withProductionDestination(); } else if (type.equals("dev")) { System.out.println("using dev API"); String certPath = PushNotifications.class.getResource( "dev_cert.p12").getPath(); serviceBuilder.withCert(certPath, "password") .withSandboxDestination(); } else { System.out.println("unknown API type " + type); return; } ApnsService service = serviceBuilder.build(); // Payload with custom fields String payload = APNS.newPayload().alertBody(message) .alertTitle("test alert title").sound("default") .customField("custom", "custom value").build(); // //Payload with custom fields // String payload = APNS.newPayload() // .alertBody(message).build(); // //String payload example: // String payload = // "{\"aps\":{\"alert\":{\"title\":\"My Title 1\",\"body\":\"My message 1\",\"category\":\"Personal\"}}}"; System.out.println("payload: " + payload); service.push(token, payload); System.out.println("The message has been hopefully sent..."); } }
package br.com.etm.exampleyoutubeplayerview; /** * Created by EDUARDO_MARGOTO on 10/27/2016. */ public class Video { String title; String video_id; public Video(String title, String video_id) { this.title = title; this.video_id = video_id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getVideo_id() { return video_id; } public void setVideo_id(String video_id) { this.video_id = video_id; } }
package c.t.m.g; public interface cv { void a(); }
package com.google.android.exoplayer2.c; import com.google.android.exoplayer2.metadata.id3.a.a; import java.util.regex.Matcher; import java.util.regex.Pattern; public final class h { public static final a aiH = new 1(); private static final Pattern aiI = Pattern.compile("^ [0-9a-fA-F]{8} ([0-9a-fA-F]{8}) ([0-9a-fA-F]{8})"); public int aei = -1; public int aej = -1; public final boolean j(String str, String str2) { if (!"iTunSMPB".equals(str)) { return false; } Matcher matcher = aiI.matcher(str2); if (!matcher.find()) { return false; } try { int parseInt = Integer.parseInt(matcher.group(1), 16); int parseInt2 = Integer.parseInt(matcher.group(2), 16); if (parseInt <= 0 && parseInt2 <= 0) { return false; } this.aei = parseInt; this.aej = parseInt2; return true; } catch (NumberFormatException e) { return false; } } }
package jp.naist.se.codehash.file; import java.io.File; import java.io.IOException; import java.nio.file.FileVisitResult; import java.nio.file.FileVisitor; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.attribute.BasicFileAttributes; import java.util.ArrayList; import jp.naist.se.codehash.FileType; public class FileGroup { private String groupId; private ArrayList<Path> filePaths; private ArrayList<FileEntity> fileEntities; public FileGroup(String groupId) { this.groupId = groupId; this.filePaths = new ArrayList<>(); } public String getGroupId() { return groupId; } public void add(String pathname) { try { Path path = new File(pathname).toPath(); if (Files.isRegularFile(path)) { filePaths.add(path); } else if (Files.isDirectory(path)) { Files.walkFileTree(path, new FileVisitor<Path>() { @Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { filePaths.add(file); return FileVisitResult.CONTINUE; } @Override public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException { return FileVisitResult.CONTINUE; } @Override public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException { return FileVisitResult.CONTINUE; } @Override public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException { return FileVisitResult.CONTINUE; } }); } } catch (IOException e) { } } public void loadEntities(FileType enforceLanguage, int N) { this.fileEntities = new ArrayList<>(filePaths.size()); for (Path path: filePaths) { FileEntity e = FileEntity.parse(path, enforceLanguage, N); if (e != null) { fileEntities.add(e); } } } public ArrayList<FileEntity> getFiles() { return fileEntities; } }
/** **************************************************************************** * Copyright (c) The Spray Project. * 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 * * Contributors: * Spray Dev Team - initial API and implementation **************************************************************************** */ package org.eclipselabs.spray.xtext.ui.hover; import org.eclipse.emf.ecore.EObject; import org.eclipse.jface.text.IInformationControlCreator; import org.eclipse.jface.text.IRegion; import org.eclipse.jface.text.ITextViewer; import org.eclipse.xtext.common.types.JvmGenericType; import org.eclipse.xtext.common.types.JvmTypeReference; import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider; import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider.IInformationControlCreatorProvider; import org.eclipse.xtext.xbase.ui.hover.XbaseDispatchingEObjectTextHover; import org.eclipselabs.spray.shapes.ConnectionDefinition; import org.eclipselabs.spray.shapes.ShapeDefinition; import javax.inject.Inject; public class SprayEObjectTextHover extends XbaseDispatchingEObjectTextHover { private IInformationControlCreatorProvider lastCreatorProvider; @Inject private IEObjectHoverProvider hoverProvider; @Override public Object getHoverInfo(EObject first, ITextViewer textViewer, IRegion hoverRegion) { if ((first instanceof JvmGenericType && hasExpectedShapeSuperType((JvmGenericType) first)) || first instanceof ShapeDefinition || first instanceof ConnectionDefinition) { if (hoverProvider == null) return null; IInformationControlCreatorProvider creatorProvider = hoverProvider.getHoverInfo(first, textViewer, hoverRegion); if (creatorProvider == null) return null; this.lastCreatorProvider = creatorProvider; return lastCreatorProvider.getInfo(); } else { return super.getHoverInfo(first, textViewer, hoverRegion); } } private boolean hasExpectedShapeSuperType(JvmGenericType type) { for (JvmTypeReference superType : type.getSuperTypes()) { if ("org.eclipselabs.spray.runtime.graphiti.shape.DefaultSprayShape".equals(superType.getQualifiedName()) || "org.eclipselabs.spray.runtime.graphiti.shape.DefaultSprayConnection".equals(superType.getQualifiedName())) { return true; } } return false; } @Override public IInformationControlCreator getHoverControlCreator() { return this.lastCreatorProvider == null ? null : lastCreatorProvider.getHoverControlCreator(); } }
package com.udacity.popularmovies.moviesfeed.viewmodel; import android.app.Application; import com.udacity.popularmovies.moviesfeed.model.Movie; import com.udacity.popularmovies.moviesfeed.model.MovieRepository; import java.util.List; import androidx.annotation.NonNull; import androidx.lifecycle.AndroidViewModel; import androidx.lifecycle.LiveData; public class MovieListActivityViewModel extends AndroidViewModel { private MovieRepository movieRepository; public MovieListActivityViewModel(@NonNull Application application) { super(application); movieRepository = new MovieRepository(application); } public LiveData<List<Movie>> getAllMovies(String sortBy) { return movieRepository.getMovieListMutableLiveData(sortBy); } }
package com.p4square.ccbapi.serializer; import com.p4square.ccbapi.model.Phone; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; /** * Tests for the PhoneFormSerializer. * * Serializer output is compared to the expected output in the update_individual API example. */ public class PhoneFormSerializerTest { private PhoneFormSerializer serializer; @Before public void setUp() { serializer = new PhoneFormSerializer(); } @Test public void testEncodeContactPhone() { final Phone phone = new Phone(); phone.setType(Phone.Type.CONTACT); phone.setNumber("719-555-2888"); final String actual = serializer.encode(phone); assertEquals("contact_phone=719-555-2888", actual); } @Test public void testEncodeHomePhone() { final Phone phone = new Phone(); phone.setType(Phone.Type.HOME); phone.setNumber("719-555-2888"); final String actual = serializer.encode(phone); assertEquals("home_phone=719-555-2888", actual); } @Test public void testEncodeWorkPhone() { final Phone phone = new Phone(); phone.setType(Phone.Type.WORK); phone.setNumber("719-555-2888"); final String actual = serializer.encode(phone); assertEquals("work_phone=719-555-2888", actual); } @Test public void testEncodeMobilePhone() { final Phone phone = new Phone(); phone.setType(Phone.Type.MOBILE); phone.setNumber("719-555-2888"); final String actual = serializer.encode(phone); assertEquals("mobile_phone=719-555-2888", actual); } @Test public void testEncodeEmergencyPhone() { final Phone phone = new Phone(); phone.setType(Phone.Type.EMERGENCY); phone.setNumber("719-555-2888"); final String actual = serializer.encode(phone); assertEquals("phone_emergency=719-555-2888", actual); } @Test public void testEncodeWithExistingData() { final StringBuilder sb = new StringBuilder(); final Phone phone1 = new Phone(); phone1.setType(Phone.Type.MOBILE); phone1.setNumber("719-555-2888"); final Phone phone2 = new Phone(); phone2.setType(Phone.Type.EMERGENCY); phone2.setNumber("719-555-3999"); serializer.encode(phone1, sb); serializer.encode(phone2, sb); final String actual = sb.toString(); assertEquals("mobile_phone=719-555-2888&phone_emergency=719-555-3999", actual); } }
package org.zacharylavallee.bool; import org.junit.Test; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.zacharylavallee.bool.BooleanUtils.greaterThan; import static org.zacharylavallee.bool.BooleanUtils.greaterThanOrEqualTo; import static org.zacharylavallee.bool.BooleanUtils.lessThan; import static org.zacharylavallee.bool.BooleanUtils.lessThanOrEqualTo; public class BooleanUtilsTest { @Test public void testGreaterThanTrue() throws Exception { String one = "1"; String two = "2"; assertTrue(greaterThan(two, one)); } @Test public void testGreaterThanFalse() throws Exception { String one = "1"; String two = "2"; assertFalse(greaterThan(one, two)); } @Test public void testGreaterThanEquals() throws Exception { String one1 = "1"; String one2 = "1"; assertFalse(greaterThan(one1, one2)); } @Test public void testGreaterThanOrEqualToTrue() throws Exception { String one = "1"; String two = "2"; assertTrue(greaterThanOrEqualTo(two, one)); } @Test public void testGreaterThanOrEqualToFalse() throws Exception { String one = "1"; String two = "2"; assertFalse(greaterThanOrEqualTo(one, two)); } @Test public void testGreaterThanOrEqualToEquals() throws Exception { String one1 = "1"; String one2 = "1"; assertTrue(greaterThanOrEqualTo(one1, one2)); } @Test public void testLessThanTrue() throws Exception { String one = "1"; String two = "2"; assertTrue(lessThan(one, two)); } @Test public void testLessThanFalse() throws Exception { String one = "1"; String two = "2"; assertFalse(lessThan(two, one)); } @Test public void testLessThanEqual() throws Exception { String one1 = "1"; String one2 = "1"; assertFalse(lessThan(one1, one2)); } @Test public void testLessThanOrEqualToTrue() throws Exception { String one = "1"; String two = "2"; assertTrue(lessThanOrEqualTo(one, two)); } @Test public void testLessThanOrEqualToFalse() throws Exception { String one = "1"; String two = "2"; assertFalse(lessThanOrEqualTo(two, one)); } @Test public void testLessThanOrEqualToEquals() throws Exception { String one1 = "1"; String one2 = "1"; assertTrue(lessThanOrEqualTo(one1, one2)); } }
package com.MekHQ.ScenarioEdit; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.w3c.dom.NamedNodeMap; import mekhq.Version; import java.io.File; import java.util.UUID; import javax.swing.WindowConstants; import javax.swing.JFileChooser; /** * @author jhahn * */ public class ScenarioEditor { ScenerioEditorGUI mFrame = null; JFileChooser fc = null; Version version = null; File fle = null; public ScenarioEditor() { try { mFrame = new ScenerioEditorGUI("Scenerio Editor", this); mFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); fc = new JFileChooser(); fc.showOpenDialog(mFrame); fle = fc.getSelectedFile(); DocumentBuilder dBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = dBuilder.parse(fle); // Document doc = dBuilder.parse(new File("C:\\temp\\MekHQ-0.46\\mekhq-windows-0.46.0\\campaigns\\Sedgwicks Scouts\\Sedgwicks Scouts30250709.cpnx")); Element campaignEle = doc.getDocumentElement(); NodeList nl = campaignEle.getChildNodes(); campaignEle.normalize(); version = new Version(campaignEle.getAttribute("version")); System.out.println(campaignEle.getAttribute("version")); // we need to iterate through three times, the first time to collect // any custom units that might not be written yet for (int x = 0; x < nl.getLength(); x++) { Node wn = nl.item(x); if (wn.getParentNode() != campaignEle) { continue; } int xc = wn.getNodeType(); if (xc == Node.ELEMENT_NODE) { // This is what we really care about. // All the meat of our document is in this node type, at this // level. // Okay, so what element is it? String xn = wn.getNodeName(); if (xn.equalsIgnoreCase("info")) { processInfoNodes(wn); } if (xn.equalsIgnoreCase("units")) { // This is needed so that the campaign name gets set in retVal processUnitNodes(wn); } if (xn.equalsIgnoreCase("missions")) { // This is needed so that the campaign name gets set in retVal processMissionsNodes(wn); } } } } catch (Exception e) { /*err handling*/ System.err.println(e.toString()); } } private void processUnitNodes(Node wn) { NodeList wList = wn.getChildNodes(); UUID id; String chassis; // Okay, lets iterate through the children, eh? for (int x = 0; x < wList.getLength(); x++) { Node wn2 = wList.item(x); // If it's not an element node, we ignore it. if (wn2.getNodeType() != Node.ELEMENT_NODE) { continue; } if (!wn2.getNodeName().equalsIgnoreCase("unit")) { // Error condition of sorts! // Errr, what should we do here? continue; } UnitPanel up = new UnitPanel(); NamedNodeMap attrs = wn2.getAttributes(); Node idNode = attrs.getNamedItem("id"); id = UUID.fromString(idNode.getTextContent()); up.setUID(id.toString()); //mFrame.getUnitPanel().setUID(id.toString()); // Okay, now load Part-specific fields! NodeList nl = wn2.getChildNodes(); try { for (int y=0; y<nl.getLength(); y++) { Node wn3 = nl.item(y); if (wn3.getNodeName().equalsIgnoreCase("entity")) { NamedNodeMap eattrs = wn3.getAttributes(); Node chassisNode = eattrs.getNamedItem("chassis"); chassis = chassisNode.getTextContent(); System.out.println(chassis); up.setChassisType(chassis); mFrame.getTabbedUnitPanel().add(up); //mFrame.getUnitPanel().setChassisType(chassis); } } } catch (Exception ex) { // Doh! System.err.println( ex.toString() ); } } } private void processInfoNodes(Node wn) { NodeList wList = wn.getChildNodes(); String s = ""; // Okay, lets iterate through the children, eh? for (int x = 0; x < wList.getLength(); x++) { Node wn2 = wList.item(x); if (wn2.getNodeName().equalsIgnoreCase("name")) { s = wn2.getTextContent(); //wn2.setTextContent(""); mFrame.getInfoPanel().setname(s); } if (wn2.getNodeName().equalsIgnoreCase("faction")) { s = wn2.getTextContent(); mFrame.getInfoPanel().setfaction(s); } if (wn2.getNodeName().equalsIgnoreCase("percentFemale")) { s = wn2.getTextContent(); mFrame.getInfoPanel().setPctFemale(s); } if (wn2.getNodeName().equalsIgnoreCase("astechPool")) { s = wn2.getTextContent(); mFrame.getInfoPanel().setastechPool(s); } if (wn2.getNodeName().equalsIgnoreCase("medicPool")) { s = wn2.getTextContent(); mFrame.getInfoPanel().setmedicPool(s); } if (wn2.getNodeName().equalsIgnoreCase("calendar")) { s = wn2.getTextContent(); mFrame.getInfoPanel().setcalDate(s); } s = ""; } } private void processMissionsNodes(Node wn) { NodeList wList = wn.getChildNodes(); for (int x = 0; x < wList.getLength(); x++) { Node wn2 = wList.item(x); if (wn2.getNodeName().equalsIgnoreCase("mission")) { NodeList wList2 = wn2.getChildNodes(); for(int y = 0; y < wList2.getLength(); y++) { Node wn3 = wList2.item(y); if(wn3.getNodeName().equalsIgnoreCase("scenarios")) { NodeList wList3 = wn3.getChildNodes(); for(int z = 0; z < wList3.getLength(); z++) { Node wn4 = wList3.item(z); if(wn4.getNodeName().equalsIgnoreCase("scenario")) { processScenariosNodes(wn4); } } } } } } } private void processScenariosNodes(Node wn) { ScenarioPanel sp = new ScenarioPanel(); NodeList wList = wn.getChildNodes(); String s = ""; // Okay, lets iterate through the children, eh? for (int x = 0; x < wList.getLength(); x++) { Node wn2 = wList.item(x); if (wn2.getNodeName().equalsIgnoreCase("name")) { s = wn2.getTextContent(); sp.setname(s); } if (wn2.getNodeName().equalsIgnoreCase("desc")) { s = wn2.getTextContent(); sp.setDesc(s); } if (wn2.getNodeName().equalsIgnoreCase("report")) { s = wn2.getTextContent(); sp.setReport(s); } if (wn2.getNodeName().equalsIgnoreCase("status")) { s = wn2.getTextContent(); sp.setStatus(s); } if (wn2.getNodeName().equalsIgnoreCase("ID")) { s = wn2.getTextContent(); sp.setID(s); } if (wn2.getNodeName().equalsIgnoreCase("date")) { s = wn2.getTextContent(); sp.setcalDate(s); } s = ""; } mFrame.getTabbedScenarioPanel().add(sp); } public static void printTags(Node nodes){ //System.out.println("NODE_TYPE : " + nodes.getNodeType()); if (nodes.hasAttributes()) { NamedNodeMap nnm = nodes.getAttributes(); if (nnm.getLength() >0 ) { System.out.print("<"+nodes.getNodeName()); for( int i =0 ; i < nnm.getLength() ; i++) { Node nk = nnm.item(i); System.out.print (" " +nk.getNodeName() + "=\"" + nk.getNodeValue()+"\""); } System.out.println(">"); } //System.out.println(nodes.getAttributes()); } if(nodes.hasChildNodes() || nodes.getNodeType()!=3){ NodeList nl=nodes.getChildNodes(); System.out.println("<"+nodes.getNodeName()+">"); for(int j=0;j<nl.getLength();j++)printTags(nl.item(j)); } } public static void main(String[] args){ new ScenarioEditor(); } }
package ro.ubb.rno.ui; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Dimension; import java.awt.EventQueue; import javax.swing.DefaultListCellRenderer; import javax.swing.DefaultListModel; import javax.swing.JFrame; import java.awt.GridLayout; import java.awt.Label; import javax.swing.JPanel; import javax.swing.JLabel; import java.awt.Font; import java.awt.SystemColor; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.swing.JScrollPane; import javax.swing.ListModel; import javax.swing.ListSelectionModel; import ro.ubb.da.DataAccessService; import ro.ubb.rno.controller.ProductsController; import ro.ubb.rno.model.Product; import javax.swing.JList; import javax.swing.JButton; public class ApplicationWindow { private JFrame frame; private ProductsController productsController; private JList<Product> productsList; private DefaultListModel<Product> shoppingCart; private DefaultListModel<Product> recomandedProducts; public ApplicationWindow(ProductsController productsController) { super(); this.productsController = productsController; initialize(); } public void start() { frame.setVisible(true); } /** * Initialize the contents of the frame. */ private void initialize() { frame = new JFrame(); frame.getContentPane().setBackground(SystemColor.inactiveCaptionBorder); frame.setBackground(SystemColor.inactiveCaptionBorder); frame.setBounds(100, 100, 610, 334); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); InitializeProductsList(); InitializeShoppingCart(); InitializeRecomanded(); } private void InitializeProductsList() { DefaultListModel<Product> productsListModel = new DefaultListModel<Product>(); for(Product product : productsController.getProductsList()) { productsListModel.addElement(product); } productsList = new JList<Product>(productsListModel); productsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); productsList.setVisibleRowCount(10); productsList.setCellRenderer(new ProductCellRenderer() ); JScrollPane scrollPane = new JScrollPane(productsList); scrollPane.setBounds(10, 55, 162, 201); frame.getContentPane().add(scrollPane); JLabel lblProducts = new JLabel("Products"); lblProducts.setFont(new Font("Tahoma", Font.PLAIN, 16)); lblProducts.setBounds(10, 11, 111, 33); frame.getContentPane().add(lblProducts); } private void InitializeShoppingCart() { shoppingCart = new DefaultListModel<Product>(); JList<Product> list = new JList<Product>(shoppingCart); list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); list.setVisibleRowCount(10); list.setCellRenderer(new ProductCellRenderer() ); JScrollPane scrollPane = new JScrollPane(list); scrollPane.setBounds(190, 55, 162, 150); frame.getContentPane().add(scrollPane); JLabel lblProducts = new JLabel("Shopping Cart"); lblProducts.setFont(new Font("Tahoma", Font.PLAIN, 16)); lblProducts.setBounds(190, 11, 111, 33); frame.getContentPane().add(lblProducts); JButton btnAddToCart = new JButton("Add To Cart"); btnAddToCart.setFont(new Font("Arial", Font.PLAIN, 14)); btnAddToCart.setBounds(214, 216, 111, 23); frame.getContentPane().add(btnAddToCart); btnAddToCart.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { if(!productsList.isSelectionEmpty()) { Product selectedProduct = (Product)productsList.getSelectedValue(); shoppingCart.addElement(selectedProduct); recomandedProducts.clear(); for(Product prod : productsController.getRecommendations(Collections.list(shoppingCart.elements()))) { recomandedProducts.addElement(prod); } } } }); } private void InitializeRecomanded() { recomandedProducts = new DefaultListModel<Product>(); JList<Product> list = new JList<Product>(recomandedProducts); list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); list.setVisibleRowCount(10); list.setCellRenderer(new ProductCellRenderer() ); JScrollPane scrollPane = new JScrollPane(list); scrollPane.setBounds(370, 55, 162, 150); frame.getContentPane().add(scrollPane); JLabel lblProducts = new JLabel("Recomanded"); lblProducts.setFont(new Font("Tahoma", Font.PLAIN, 16)); lblProducts.setBounds(370, 11, 111, 33); frame.getContentPane().add(lblProducts); } } class ProductCellRenderer extends DefaultListCellRenderer { public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) { super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); if (value instanceof Product) { setText(((Product)value).getProductName()); } return this; } }
package com.sdyin.guava.demo; import com.sdyin.guava.springevent.TestEvent; import org.springframework.context.annotation.AnnotationConfigApplicationContext; /** * @Description: * @Author: liuye * @time: 2019/9/15$ 下午3:57$ */ public class Demo1 { public static void main(String[] args) { //注解方式 扫描指定包 AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext("com.sdyin.guava"); TestEvent testEvent = new TestEvent("hello"); testEvent.setAddress("127.0.0.2"); testEvent.setText("天青色等烟雨"); ac.publishEvent(testEvent); ac.close(); } }
package codeclan.com.raymusicshop; /** * Created by user on 03/11/2017. */ public abstract class Instrument extends Product { private String family; public Instrument(int sellPrice, int buyPrice, String family) { super(sellPrice, buyPrice); this.family = family; } public String getFamily() { return family; } }
package GUI; import Tools.Constants; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.layout.BorderPane; import javafx.scene.layout.HBox; import javafx.scene.layout.VBox; import javafx.stage.Modality; import javafx.stage.Stage; public class ConfirmBox { static boolean answer; public static boolean display(String title, String message) { Stage window = new Stage(); window.initModality(Modality.APPLICATION_MODAL); window.setTitle(title); VBox topMenu = new VBox(); Label label = new Label(); label.setText(message); label.setStyle("-fx-font-size: 14pt"); topMenu.setAlignment(Pos.CENTER); topMenu.getChildren().addAll(label); Button yesButton = new Button(Constants.yes_button_label); yesButton.setOnAction(e -> { answer = true; window.close(); }); Button noButton = new Button(Constants.no_button_label); noButton.setOnAction(e -> { answer = false; window.close(); }); HBox bottomMenu = new HBox(10); bottomMenu.getChildren().addAll(yesButton, noButton); bottomMenu.setAlignment(Pos.CENTER); BorderPane borderPane = new BorderPane(); borderPane.getStylesheets().add("file:src/GUI/style.css"); borderPane.setTop(topMenu); borderPane.setCenter(bottomMenu); Scene scene = new Scene(borderPane, 300, 100); window.setScene(scene); window.setResizable(false); window.showAndWait(); return answer; } }
package com.alfred.codingchallenge.model; public enum CurrencyType { AUD, SGD }
package com.tencent.mm.plugin.fts.ui.widget; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.util.AttributeSet; import android.view.View; import android.view.View.OnClickListener; import android.widget.LinearLayout; import android.widget.LinearLayout.LayoutParams; import com.tencent.mm.bp.a; import com.tencent.mm.plugin.fts.ui.n.b; import com.tencent.mm.protocal.c.bhr; import com.tencent.mm.sdk.platformtools.bi; import java.util.LinkedList; import java.util.List; public class FTSLocalPageRelevantView extends LinearLayout implements OnClickListener { public String bWm = null; public String fuu = null; public RecyclerView gxh; private c jzF = null; public List<bhr> jzG = null; public b jzH; public interface c { void a(bhr bhr, String str, int i); } static /* synthetic */ void a(FTSLocalPageRelevantView fTSLocalPageRelevantView) { int dimensionPixelSize; fTSLocalPageRelevantView.setOrientation(1); fTSLocalPageRelevantView.setGravity(16); fTSLocalPageRelevantView.setVisibility(8); try { dimensionPixelSize = fTSLocalPageRelevantView.getResources().getDimensionPixelSize(b.FTSSmallListHeight); } catch (Exception e) { dimensionPixelSize = a.fromDPToPix(fTSLocalPageRelevantView.getContext(), 48); } fTSLocalPageRelevantView.setMinimumHeight(dimensionPixelSize); LayoutParams layoutParams = (LayoutParams) fTSLocalPageRelevantView.getLayoutParams(); layoutParams.width = -1; layoutParams.height = -2; fTSLocalPageRelevantView.setLayoutParams(layoutParams); } public FTSLocalPageRelevantView(Context context) { super(context); post(new 1(this)); } public FTSLocalPageRelevantView(Context context, AttributeSet attributeSet) { super(context, attributeSet); } public FTSLocalPageRelevantView(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); } public void setOnRelevantClickListener(c cVar) { this.jzF = cVar; } public void onClick(View view) { if (this.jzF != null && view.getTag() != null && (view.getTag() instanceof a)) { a aVar = (a) view.getTag(); this.jzF.a(aVar.jzJ, this.fuu, aVar.position); } } public static List<bhr> bm(List<bhr> list) { List<bhr> linkedList = new LinkedList(); for (bhr bhr : list) { if (!bi.oW(bhr.siy)) { linkedList.add(bhr); } } return linkedList; } public String getSearchId() { return this.fuu != null ? this.fuu : ""; } public String getWordList() { StringBuilder stringBuilder = new StringBuilder(""); if (this.jzG != null) { for (bhr bhr : this.jzG) { if (stringBuilder.length() > 0) { stringBuilder.append("|"); } stringBuilder.append(bhr.siy); } } return stringBuilder.toString(); } public String getQuery() { return this.bWm != null ? this.bWm : ""; } }
package Test01; public class GradeInfo { private String name; private int kor; private int eng; private int mat; private Average average; public GradeInfo() { super(); } public void printCalc() { average.Calc(kor, eng, mat); } public void printStudent() { System.out.println("이름 : " + name); System.out.println("국어 : " + kor); System.out.println("영어 : " + eng); System.out.println("수학 : " + mat); printCalc(); } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getKor() { return kor; } public void setKor(int kor) { this.kor = kor; } public int getEng() { return eng; } public void setEng(int eng) { this.eng = eng; } public int getMat() { return mat; } public void setMat(int mat) { this.mat = mat; } public Average getAverage() { return average; } public void setAverage(Average average) { this.average = average; } }
package com.Extentreports; import org.testng.annotations.Test; import static org.testng.Assert.assertTrue; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.Assert; import org.testng.annotations.AfterClass; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeMethod; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; import com.Utilities.BaseClass; import com.Utilities.ExtentReports_Setup; import com.aventstack.extentreports.ExtentReports; public class GoogleSearchTest extends BaseClass{ public WebDriver driver; @Test public void openGoogle() { driver=BaseClass.driverSetup(); driver.get("https://www.google.com/"); String ActualTitle=driver.getTitle(); try { Assert.assertEquals(ActualTitle, "XXX"); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } @Test public void w3Schools() { driver.get("https://www.w3schools.com/"); String ActualTitle=driver.getTitle(); try { Assert.assertEquals(ActualTitle, "YYY"); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } @AfterClass public void closeBrowser() { driver.close(); } }
package bnorm.virtual; /** * Utility class for {@link IPoint}s. * * @author Brian Norman * @version 1.0 */ public final class Points { /** * Private constructor. */ private Points() { } /** * Calculates and returns the square of the distance between two * <code>(x,y)</code> coordinates. * * @param x1 the <code>x</code> coordinate of the first coordinate. * @param y1 the <code>y</code> coordinate of the first coordinate. * @param x2 the <code>x</code> coordinate of the second coordinate. * @param y2 the <code>y</code> coordinate of the second coordinate. * @return the square of the distance between two coordinates. */ public static double distSq(double x1, double y1, double x2, double y2) { x1 -= x2; y1 -= y2; return (x1 * x1 + y1 * y1); } /** * Calculates and returns the distance between two <code>(x,y)</code> * coordinates. * * @param x1 the <code>x</code> coordinate of the first coordinate. * @param y1 the <code>y</code> coordinate of the first coordinate. * @param x2 the <code>x</code> coordinate of the second coordinate. * @param y2 the <code>y</code> coordinate of the second coordinate. * @return the distance between two coordinates. */ public static double dist(double x1, double y1, double x2, double y2) { return Math.sqrt(distSq(x1, y1, x2, y2)); } /** * Calculates and returns the square of the distance between two * <code>(x,y)</code> coordinates. * * @param p the first coordinate. * @param x the <code>x</code> coordinate of the second coordinate. * @param y the <code>y</code> coordinate of the second coordinate. * @return the square of the distance between two coordinates. */ public static double distSq(IPoint p, double x, double y) { return distSq(p.getX(), p.getY(), x, y); } /** * Calculates and returns the distance between two <code>(x,y)</code> * coordinates. * * @param p the first coordinate. * @param x the <code>x</code> coordinate of the second coordinate. * @param y the <code>y</code> coordinate of the second coordinate. * @return the distance between two coordinates. */ public static double dist(IPoint p, double x, double y) { return dist(p.getX(), p.getY(), x, y); } /** * Calculates and returns the square of the distance between two * <code>(x,y)</code> coordinates. * * @param p1 the first coordinate. * @param p2 the second coordinate. * @return the square of the distance between two coordinates. */ public static double distSq(IPoint p1, IPoint p2) { return distSq(p1.getX(), p1.getY(), p2.getX(), p2.getY()); } /** * Calculates and returns the distance between two <code>(x,y)</code> * coordinates. * * @param p1 the first coordinate. * @param p2 the second coordinate. * @return the distance between two coordinates. */ public static double dist(IPoint p1, IPoint p2) { return dist(p1.getX(), p1.getY(), p2.getX(), p2.getY()); } }