text
stringlengths
10
2.72M
package yul.board; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.RequestMapping; import yul.common.FileUtil; import yul.common.FileVO; import yul.common.SearchVO; @Controller public class BoardCtr { @Autowired private BoardSvc boardSvc; /** * 리스트. */ @RequestMapping(value = "/board6List") public String boardList(SearchVO searchVO, ModelMap modelMap) { searchVO.pageCalculate( boardSvc.selectBoardCount(searchVO) ); // startRow, endRow List<?> listview = boardSvc.selectBoardList(searchVO); modelMap.addAttribute("listview", listview); modelMap.addAttribute("searchVO", searchVO); return "board6/BoardList"; } /** * 글 쓰기. */ @RequestMapping(value = "/board6Form") public String boardForm(HttpServletRequest request, ModelMap modelMap) { String brdno = request.getParameter("brdno"); if (brdno != null) { BoardVO boardInfo = boardSvc.selectBoardOne(brdno); List<?> listview = boardSvc.selectBoard6FileList(brdno); modelMap.addAttribute("boardInfo", boardInfo); modelMap.addAttribute("listview", listview); } return "board6/BoardForm"; } /** * 글 저장. */ @RequestMapping(value = "/board6Save") public String boardSave(HttpServletRequest request, BoardVO boardInfo) { String[] fileno = request.getParameterValues("fileno"); FileUtil fs = new FileUtil(); List<FileVO> filelist = fs.saveAllFiles(boardInfo.getUploadfile()); boardSvc.insertBoard(boardInfo, filelist, fileno); return "redirect:/board6List"; } /** * 글 읽기. */ @RequestMapping(value = "/board6Read") public String board6Read(HttpServletRequest request, ModelMap modelMap) { String brdno = request.getParameter("brdno"); boardSvc.updateBoard6Read(brdno); BoardVO boardInfo = boardSvc.selectBoardOne(brdno); List<?> listview = boardSvc.selectBoard6FileList(brdno); List<?> replylist = boardSvc.selectBoard6ReplyList(brdno); modelMap.addAttribute("boardInfo", boardInfo); modelMap.addAttribute("listview", listview); modelMap.addAttribute("replylist", replylist); return "board6/BoardRead"; } /** * 글 삭제. */ @RequestMapping(value = "/board6Delete") public String boardDelete(HttpServletRequest request) { String brdno = request.getParameter("brdno"); boardSvc.deleteBoardOne(brdno); return "redirect:/board6List"; } /* ===================================================================== */ /** * 댓글 저장. */ @RequestMapping(value = "/board6ReplySave") public String board6ReplySave(HttpServletRequest request, BoardReplyVO boardReplyInfo) { boardSvc.insertBoardReply(boardReplyInfo); return "redirect:/board6Read?brdno=" + boardReplyInfo.getBrdno(); } /** * 댓글 삭제. */ @RequestMapping(value = "/board6ReplyDelete") public String board6ReplyDelete(HttpServletRequest request, BoardReplyVO boardReplyInfo) { if (!boardSvc.deleteBoard6Reply(boardReplyInfo.getReno()) ) { return "board6/BoardFailure"; } return "redirect:/board6Read?brdno=" + boardReplyInfo.getBrdno(); } }
package com.example.mvpclean.utils; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.view.View; import com.example.mvpclean.R; import com.google.android.material.snackbar.Snackbar; import static android.content.Context.CONNECTIVITY_SERVICE; public class InternetUtil { public static boolean isNetworkAvailable(Context context) { ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( CONNECTIVITY_SERVICE ); if (connectivityManager!=null) { NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo(); return activeNetworkInfo != null && activeNetworkInfo.isConnected(); } return false; } public static void offlineCheck(View view, Context context) { if (!InternetUtil.isNetworkAvailable(context)){ Snackbar.make(view,context.getString(R.string.offline_message),Snackbar.LENGTH_SHORT).show(); } } }
import java.util.Scanner; public class TestArray05 { public static void main(String[] args) { /*查询指定元素的位置*/ /*System.out.println("请输入你想查询的元素:"); Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] arr = {1,2,63,74,25,77,53}; int location = arr.indexAt(num); System.out.println(location);-----------false*/ int[] arr = {1,2,35,74,24,245}; int index = 0; for(int i = 0;i<arr.length;i++) { if(arr[i]==74) { index = i; } } System.out.println(index); } }
package com.zdzimi.blog.dao; import com.zdzimi.blog.model.Chapter; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.Optional; @Repository public interface ChapterRepository extends JpaRepository <Chapter, Integer> { Optional<Chapter> findByChapterTitle(String chapterTitle); }
package com.boj; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.StringTokenizer; public class _4963_NumberOfIsland { static int w, h; static int[][] map; static int[] dy = { -1, -1, 0, 1, 1, 1, 0, -1 }; // 상부터 시계방향 static int[] dx = { 0, 1, 1, 1, 0, -1, -1, -1 }; static void dfs(int y, int x) { for (int i = 0; i < 8; i++) { int ny = y + dy[i]; int nx = x + dx[i]; if (ny < 0 || nx < 0 || ny >= h || nx >= w || map[ny][nx] != 1) { continue; } map[ny][nx] = 0; dfs(ny, nx); } return; } public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st; StringBuilder sb = new StringBuilder(); while (true) { st = new StringTokenizer(br.readLine()); w = Integer.parseInt(st.nextToken()); h = Integer.parseInt(st.nextToken()); if (w == 0 && h == 0) { break; } map = new int[h][w]; for (int i = 0; i < h; i++) { st = new StringTokenizer(br.readLine()); for (int j = 0; j < w; j++) { map[i][j] = Integer.parseInt(st.nextToken()); } } int cnt = 0; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { if (map[i][j] == 1) { dfs(i, j); cnt++; } } } sb.append(cnt).append("\n"); } System.out.print(sb); } }
package com.yksoul.pay.utils; import java.util.UUID; /** * @author yk * @version 1.0 * @date 2018-04-12 */ public class UUIDUtils { /** * 生成UUID * * @return */ public static String generator() { return UUID.randomUUID().toString(); } /** * 生成没有连接线的uuid * * @return */ public static String generatorUnLine() { return generator().replace("-", ""); } }
package com.example.mcken.mastermind; import android.graphics.drawable.Drawable; import android.support.v4.content.res.ResourcesCompat; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.MenuItem; import android.widget.Button; import android.widget.GridLayout; import android.widget.ImageView; import android.view.View; import android.view.View.OnClickListener; import android.widget.LinearLayout; import android.widget.PopupMenu; import android.graphics.drawable.Drawable; import android.widget.RelativeLayout; import java.util.ArrayList; import static com.example.mcken.mastermind.Code.PEGS; public class MainActivity extends AppCompatActivity { protected String[] guess; protected String guessString; protected int holes = 4; public RelativeLayout rl; public ArrayList<Integer> linearLayoutList; protected static Code winningCode; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); winningCode = new Code(); guess = new String[4]; linearLayoutList = new ArrayList<Integer>(); rl = (RelativeLayout) findViewById(R.id.activity_main); final int childCount = rl.getChildCount(); //List of the 10 sets of viewgroups for (int i = 0; i < childCount; i++){ int ll = rl.getChildAt(i).getId(); linearLayoutList.add(ll); } } protected LinearLayout getCurrentViewGroup(){ int lines = rl.getChildCount() - 1; LinearLayout currentLine = null; for (int i = 0; i < lines; i++) { currentLine = (LinearLayout) findViewById(linearLayoutList.get(i)); } return currentLine; } protected LinearLayout getPreviousViewGroup(){ int lines = rl.getChildCount() - 1; LinearLayout prevLine = null; for (int i = 0; i < lines; i++) { prevLine = (LinearLayout) findViewById(linearLayoutList.get(i - 1)); return prevLine; } return prevLine; } protected void setClickableHole() { int lines = rl.getChildCount() - 1; LinearLayout currentLine = getCurrentViewGroup(); LinearLayout previousLine = getPreviousViewGroup(); for (int j = 0; j < holes; j++){ ImageView hole = (ImageView) findViewById(currentLine.getChildAt(j).getId()); hole.setClickable(true); hole.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View view){ pegSelect(view); } }); } //sets last line of holes as unclickable. Needs to be moved to guessCheck(); for (int k = 0; k < holes; k++ ){ ImageView prevHole = (ImageView) findViewById(previousLine.getChildAt(k).getId()); prevHole.setClickable(false); } } //next method: setUnclickableHole: set views in non-current Layouts unclickable unclickable after protected void pegSelect(View pegHole){ //requires a specific imageView. How to get it to work for all imageViews final LinearLayout currentLine = getCurrentViewGroup(); final int finalId = pegHole.getId(); pegHole.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View blankImage){ PopupMenu pegList = new PopupMenu(MainActivity.this, blankImage); pegList.getMenuInflater().inflate(R.menu.peg_menu,pegList.getMenu()); pegList.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener(){ public boolean onMenuItemClick(MenuItem selectedPeg) { ImageView hole = (ImageView) findViewById(finalId); Drawable icon = selectedPeg.getIcon(); String peg = String.valueOf(PEGS.get(icon)); hole.setImageDrawable(icon); int i = currentLine.indexOfChild(hole); guess[i] = peg; return true; } }); } }); } protected void setGuessButtonClickable() { int lines = rl.getChildCount() - 1; LinearLayout currentLine = getCurrentViewGroup(); Integer drawableCount = 0; Integer stringArrCount = 0; for (int j = 0; j < holes; j++) { int i = currentLine.getChildAt(j).getId(); ImageView image = (ImageView) findViewById(i); if (image.getDrawable() != null){ drawableCount++; } if (guess[j] != null && guess[j] == PEGS.get(image.getDrawable())) { stringArrCount++; } } Button guessButton = (Button) findViewById(R.id.guessButton); //stringArrCount == drawableCount ? guessButton.setClickable(true) : guessButton; if (stringArrCount == drawableCount) { guessButton.setClickable(true); guessButton.setBackgroundColor(ResourcesCompat.getColor(getResources(),R.color.buttonColor, null)); guessButton.setOnClickListener(new View.OnClickListener(){ public void onClick(View _ ){ guessCheck(); } }); } } protected boolean guessCheck(){ boolean match = false; guessString = ""; StringBuilder sb = new StringBuilder(); for (String str : guess) { sb.append(str); } guessString = sb.toString(); match = winningCode.secretCodeString.equals(guessString) || match; displayMatches(); return match; } protected void displayMatches(){ Code guessCode = new Code(guessString); int exacts = winningCode.countExactMatches(guessCode); int nears = winningCode.countNearMatches(guessCode); LinearLayout currentLine = getCurrentViewGroup(); GridLayout feedback = (GridLayout)findViewById (currentLine.getChildAt(holes).getId()); for (int i = 0; i <= exacts; i++) { ImageView exactMatch = new ImageView(this); exactMatch.setLayoutParams(new GridLayout.LayoutParams()); exactMatch.setImageResource(R.drawable.whitecircle); feedback.addView(exactMatch); } for (int i = 0; i <= nears; i++) { ImageView nearMatch = new ImageView(this); nearMatch.setLayoutParams(new GridLayout.LayoutParams()); nearMatch.setImageResource(R.drawable.whitecircle); feedback.addView(nearMatch); } } //we're in thw home stretch! //we neeedto find out if this works //we need to find a game mechanic for tracking turns //although that might just be planning for the edge case //button has been pressed, checked the secretcodestring against the guess //now it has to display matches and evaluate if the person has won. //should it be it's own method? because the botton has a return and will be unreachable //maybe jsut make an if loop? //display exact & near matches should be //if match, win() //if not, gamecontinue()? }
/* * Copyright (C) 2001 - 2015 Marko Salmela, http://fuusio.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.fuusio.api.ui.action; import org.fuusio.api.dependency.D; import org.fuusio.api.model.ModelObject; import org.fuusio.api.model.ModelObjectContext; import org.fuusio.api.model.Property; public class PropertyAction extends UndoableAction { private final Property mProperty; private final ModelObjectContext mObjectContext; private Object mNewValue; private Object mOldValue; private Class<? extends ModelObject> mObjectClass; private long mObjectId; public PropertyAction(final Property property, final ModelObjectContext objectContext) { super(-1, -1); mProperty = property; mObjectContext = objectContext; } public boolean set(final ModelObject modelObject, final Object newValue) { mObjectClass = modelObject.getClass(); mObjectId = modelObject.getId(); mNewValue = newValue; final ActionManager actionManager = D.get(ActionManager.class); return actionManager.executeAction(this); } /* * (non-Javadoc) * * @see org.fuusio.api.ui.action.Action#execute(android.app.Activity) */ @Override public boolean execute(final ActionContext actionContext) { final ModelObject modelObject = mObjectContext.getObject(mObjectClass, mObjectId); // return mProperty.set(modelObject, mNewValue); return mProperty.set(modelObject, mNewValue.toString()); } @Override public boolean undo(final ActionContext actionContext) { final ModelObject modelObject = mObjectContext.getObject(mObjectClass, mObjectId); return mProperty.set(modelObject, mOldValue.toString()); } @Override public boolean isUndoable() { return mObjectContext.exists(mObjectClass, mObjectId); } }
package gov.samhsa.c2s.pcm.service.dto; import lombok.Data; import javax.validation.Valid; import javax.validation.constraints.NotNull; @Data public class ConsentAttestationDto { @Valid @NotNull private boolean acceptTerms; private ConsentDto consentDto; }
package com.saraew.plans; abstract public class Plan { protected String name; protected int users; protected double price; public Plan(String name, int users, double price) { this.name = name; this.users = users; this.price = price; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getUsers() { return users; } public void setUsers(int users) { this.users = users; } public double getPrice() { return price; } public void setPrice(double price) { this.price = price; } @Override public abstract String toString(); public boolean isCorrespond(Plan plan) { return this.getClass().equals(plan.getClass()) && this.price <= plan.price; } }
package com.example.hp.above; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.TextView; public class ClocksActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_clocks); getSupportActionBar().setDisplayHomeAsUpEnabled(true); } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: finish(); return true; } return super.onOptionsItemSelected(item); } public boolean onCreateOptionsMenu(Menu menu) { return true; } public void clock_answers1(View view) { TextView previewText = (TextView) findViewById(R.id.solution_clock1); previewText.setText("SOLUTION: At 3:00 PM, angle made by the minute hand = 0 degree and angle made by the hour hand = 3 x angle made by the hour hand in one hour = 3 x 30 = 90 degrees\n" + "Now, in the next 20 minutes, angle made by the hour hand = 20 x angle made by the minute hand in 1 minute = 20 x 6 = 120 degrees and angle made by the hour hand = 20 x angle made by the hour hand in 1 minute = 20 x 0.50 = 10 degrees\n" + "=> Angle made by the minute hand at 3:20 PM = 0 + 120 = 120 degrees\n" + "=> Angle made by the hour hand at 3:20 PM = 90 + 10 = 100 degrees\n" + "Therefore, angle between the hands of the clock at 3:20 PM = 120 – 100 = 20 degrees\n" + "Another Method : \n" + "At 3:00 PM, angle made by the minute hand = 0 degree and angle made by the hour hand = 3 x angle made by the hour hand in one hour = 3 x 30 = 90 degrees\n" + "=> Initial angle between the two hands = 90 degrees\n" + "Now, we know that the difference between the two hands of the clock increases every minute by 5.50 degrees.\n" + "=> Difference between the hands of the clock after 20 minutes = 20 x 5.50 = 110 degrees\n" + "Therefore, difference between the two hands at 3:20 PM = 110 – 90 = 20 degrees "); } public void clock_answers2(View view) { TextView previewText = (TextView) findViewById(R.id.solution_clock2); previewText.setText("SOLUTION: At 3 PM, the hour hand would be at 15 spaces and the minute hand would be at 0 spaces. The minute hand would have to cover these extra 15 spaces in order to meet the hour hand.\n" + "Now, 55 minutes are gained by the minute hand in 60 minutes.\n" + "=> 15 minutes would be gained in (60 / 55) x 15 = 180 / 11 minutes\n" + "Thus, the two hands of the clock meet at 180 / 11 minutes past 3 PM, i.e., around 3:16:22 PM. "); } public void clock_answers3(View view) { TextView previewText = (TextView) findViewById(R.id.solution_clock3); previewText.setText("SOLUTION: Between 11 to 1, the hands of the clock coincide only once, i.e., at 12. So, every 12 hours, they coincide 11 times.\n" + "Therefore, the two hands of the clock coincide 22 times in a day. "); } }
package inter; import symbols.Type; public class Else extends Stmt { Expr expr; Stmt stmt1,stmt2; public Else(Expr x,Stmt s1,Stmt s2) { expr=x; stmt1=s1; stmt2=s2; if(expr.type!=Type.Bool)expr.error("boolean required in if"); } public void gen(int b ,int a) { int label1=newlabel(); int label2=newlabel(); expr.jumping(0, label2); emitlabel(label1); stmt1.gen(label1, a); emit(" goto L"+a); emitlabel(label2); stmt2.gen(label2, a); } }
package test; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.regex.Pattern; import util.ParseMessage; import util.StringComparison; /** * В данном тесте разрабатываем код для Templates.getUnitedTemplate * @author aaovchinnikov * */ public class Test6 { public static void main(String[] args) { List<String> similarStrings = Arrays.asList(new String[]{ " {sophos_internal_id}: host gmail-smtp-in.l.google.com[64.233.164.27] said: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that 450-4.2.1 prevents additional messages from being delivered. Please resend your 450-4.2.1 message at a later time. If the user is able to receive mail at that 450-4.2.1 time, your message will be delivered. For more information, please 450-4.2.1 visit 450 4.2.1 https://support.google.com/mail/answer/6592 1si9232024lfi.103 - gsmtp (in reply to RCPT TO command)", " {sophos_internal_id}: host gmail-smtp-in.l.google.com[64.233.164.27] said: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that 450-4.2.1 prevents additional messages from being delivered. Please resend your 450-4.2.1 message at a later time. If the user is able to receive mail at that 450-4.2.1 time, your message will be delivered. For more information, please 450-4.2.1 visit 450 4.2.1 https://support.google.com/mail/answer/6592 jn4si9227864lbc.203 - gsmtp (in reply to RCPT TO command)", " {sophos_internal_id}: to=<su.p.e.r.v.iso.r.20.1.5.invino@gmail.com>, relay=alt1.gmail-smtp-in.l.google.com[74.125.23.26]:25, delay=264, delays=262/0/1.6/0.94, dsn=4.2.1, status=deferred (host alt1.gmail-smtp-in.l.google.com[74.125.23.26] said: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that 450-4.2.1 prevents additional messages from being delivered. Please resend your 450-4.2.1 message at a later time. If the user is able to receive mail at that 450-4.2.1 time, your message will be delivered. For more information, please 450-4.2.1 visit 450 4.2.1 https://support.google.com/mail/answer/6592 r9si11244175ioi.12 - gsmtp (in reply to RCPT TO command))", // {sophos_internal_id}: ostgmail-smtp-in.l.google.com[3.1.27] said: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that 450-4.2.1 prevents additional messages from being delivered. Please resend your 450-4.2.1 message at a later time. If the user is able to receive mail at that 450-4.2.1 time, your message will be delivered. For more information, please 450-4.2.1 visit 450 4.2.1 https://support.google.com/mail/answer/6592 si. - gsmtp (in reply to RCPT TO command) // {sophos_internal_id}: {&}o{&}s{&}t{&}gmail-smtp-in.l.google.com[{&}3.{&}1.{&}2{&}7{&}] said: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that 450-4.2.1 prevents additional messages from being delivered. Please resend your 450-4.2.1 message at a later time. If the user is able to receive mail at that 450-4.2.1 time, your message will be delivered. For more information, please 450-4.2.1 visit 450 4.2.1 https://support.google.com/mail/answer/6592 {&}si{&}.{&} - gsmtp (in reply to RCPT TO command){&}", " {sophos_internal_id}: host gmail-smtp-in.l.google.com[173.194.71.27] said: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that 450-4.2.1 prevents additional messages from being delivered. Please resend your 450-4.2.1 message at a later time. If the user is able to receive mail at that 450-4.2.1 time, your message will be delivered. For more information, please 450-4.2.1 visit 450 4.2.1 https://support.google.com/mail/answer/6592 192si9255066lfh.71 - gsmtp (in reply to RCPT TO command)", " {sophos_internal_id}: to=<su.p.e.r.v.iso.r.20.1.5.invino@gmail.com>, relay=alt1.gmail-smtp-in.l.google.com[74.125.23.26]:25, delay=624, delays=622/0.01/1.4/0.94, dsn=4.2.1, status=deferred (host alt1.gmail-smtp-in.l.google.com[74.125.23.26] said: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that 450-4.2.1 prevents additional messages from being delivered. Please resend your 450-4.2.1 message at a later time. If the user is able to receive mail at that 450-4.2.1 time, your message will be delivered. For more information, please 450-4.2.1 visit 450 4.2.1 https://support.google.com/mail/answer/6592 72si20143688iob.61 - gsmtp (in reply to RCPT TO command))", " {sophos_internal_id}: host gmail-smtp-in.l.google.com[64.233.163.27] said: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that 450-4.2.1 prevents additional messages from being delivered. Please resend your 450-4.2.1 message at a later time. If the user is able to receive mail at that 450-4.2.1 time, your message will be delivered. For more information, please 450-4.2.1 visit 450 4.2.1 https://support.google.com/mail/answer/6592 dx2si8644490lbc.94 - gsmtp (in reply to RCPT TO command)", " {sophos_internal_id}: to=<su.p.e.r.v.iso.r.20.1.5.invino@gmail.com>, relay=alt1.gmail-smtp-in.l.google.com[74.125.203.27]:25, delay=1345, delays=1342/0/1.3/0.94, dsn=4.2.1, status=deferred (host alt1.gmail-smtp-in.l.google.com[74.125.203.27] said: 450-4.2.1 The user you are trying to contact is receiving mail at a rate that 450-4.2.1 prevents additional messages from being delivered. Please resend your 450-4.2.1 message at a later time. If the user is able to receive mail at that 450-4.2.1 time, your message will be delivered. For more information, please 450-4.2.1 visit 450 4.2.1 https://support.google.com/mail/answer/6592 e97si20700057ioi.206 - gsmtp (in reply to RCPT TO command))" }); /* List<String> similarStrings = Arrays.asList(new String[]{ " {sophos_internal_id}: from=<{email_address}>, size={size}, nrcpt=1 (queue active)", " {sophos_internal_id}: from=<prvs={prvs}={email_address}>, size={size}, nrcpt=1 (queue active)" }); */ /* List<String> similarStrings = Arrays.asList(new String[]{ " connect from localhost.localdomain[127.0.0.1]", " disconnect from localhost.localdomain[127.0.0.1]" }); */ /* String lcSubsequence = StringComparison.computeLCSunsequence(similarStrings.get(0), similarStrings.get(1)); String lcSubstring = lcSubsequence; lcSubstring = StringComparison.computeLCSubsting(similarStrings.get(0), lcSubstring); lcSubstring = StringComparison.computeLCSubsting(similarStrings.get(1), lcSubstring); System.out.println("lcSubstring: "+lcSubstring); System.out.println("lcSubsequence: "+lcSubsequence); int index=lcSubsequence.indexOf(lcSubstring); System.out.println(index); System.out.println("Строки lcSubseqence после отделения:"); String before = lcSubsequence.substring(0, index); System.out.println("до lcSubstring: \""+before+"\""); String after = lcSubsequence.substring(index+lcSubstring.length(), lcSubsequence.length()); System.out.println("после lcSubstring: \""+after+"\""); String template = before + "{&}" + lcSubstring + "{&}" + after; System.out.println(template); //////////////////////////////////////////// System.out.println(); lcSubsequence = before; lcSubstring = lcSubsequence; lcSubstring = StringComparison.computeLCSubsting(similarStrings.get(0), lcSubstring); lcSubstring = StringComparison.computeLCSubsting(similarStrings.get(1), lcSubstring); System.out.println("lcSubstring: "+lcSubstring); index=lcSubsequence.indexOf(lcSubstring); System.out.println(index); System.out.println("Строки lcSubseqence после отделения:"); before = lcSubsequence.substring(0, index); System.out.println("до lcSubstring: \""+before+"\""); after = lcSubsequence.substring(index+lcSubstring.length(), lcSubsequence.length()); System.out.println("после lcSubstring: \""+after+"\""); template = before + "{&}" + lcSubstring + "{&}" + after; System.out.println(template); */ System.out.println("united template: "+ test3(similarStrings)); } private static List<String> buildLeftSubstrings(List<String> strings, String lcSubstring){ List<String> leftSubstrings = new ArrayList<String>(strings.size()); int index; for(String s: strings){ index = s.indexOf(lcSubstring); leftSubstrings.add(s.substring(0, index)); } return leftSubstrings; } private static List<String> buildRightSubstrings(List<String> strings, String lcSubstring){ List<String> rightSubstrings = new ArrayList<String>(strings.size()); int index; for(String s: strings){ index = s.indexOf(lcSubstring); index +=lcSubstring.length(); rightSubstrings.add(s.substring(index, s.length())); } return rightSubstrings; } private static String test3(List<String> similarStrings){ String lcSubsequence = getLongestCommonSubsequenceForStringGroup(similarStrings); StringBuilder sb = new StringBuilder(); buildTemplateRecursively(similarStrings, lcSubsequence, sb); // Сюда вернётся шаблон без завершающего {&} // Теперь тестовая проверка, сможет ли разобрать без переднего и заднего плейсхолдера // чтобы их не пихать во все шаблоны Pattern pattern = ParseMessage.buildPatternWithUnnamedPlaceholders(sb.toString()); if(!matchesAll(pattern, similarStrings)){ System.out.println("doesn't match without trailing {&}"); sb.append("{&}"); } sb.delete(0, 3); System.out.println("removed pre-placeholder: \""+ sb.toString() +"\""); pattern = ParseMessage.buildPatternWithUnnamedPlaceholders(sb.toString()); if(!matchesAll(pattern, similarStrings)){ System.out.println("doesn't match without leading {&}"); sb.insert(0, "{&}"); } System.out.println("final match"); pattern = ParseMessage.buildPatternWithUnnamedPlaceholders(sb.toString()); if(matchesAll(pattern, similarStrings)){ System.out.println("matches all"); } else { System.out.println("doesn't match"); } return sb.toString(); } private static void buildTemplateRecursively(List<String> similarStrings, String lcSubsequence, StringBuilder sb){ try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } System.out.println("current string list:"); for(String s: similarStrings){ System.out.println(s); } System.out.println("current lcSubsequence: \"" + lcSubsequence + "\""); String lcSubstring = getLongestCommonSubstringForStringGroupAndLCS(similarStrings, lcSubsequence); System.out.println("current lcSubstring: \"" + lcSubstring + "\""); int index; if(lcSubstring.isEmpty()){ System.out.println("lcSubstring is empty"); sb.append("{&}"); sb.append(lcSubsequence); System.out.println("current template: \""+sb.toString()+"\""); return; }else if(lcSubstring.length()==1){ System.out.println("lcSubstring is 1 symbol long!"); for(int i=0; i<lcSubsequence.length(); i++){ sb.append("{&}"); sb.append(lcSubsequence.charAt(i)); } System.out.println("current template: \""+sb.toString()+"\""); System.out.println(); return; } else { index = lcSubsequence.indexOf(lcSubstring); } System.out.println("current index of lcSubstring in lcSubsequence: "+ index); String left = lcSubsequence.substring(0, index); System.out.println("current left: \""+ left + "\""); String right = lcSubsequence.substring(index+lcSubstring.length(), lcSubsequence.length()); System.out.println("current right: \""+ right + "\""); System.out.println(); if(!left.isEmpty()){ buildTemplateRecursively(buildLeftSubstrings(similarStrings, lcSubstring), left, sb); } sb.append("{&}"); sb.append(lcSubstring); System.out.println("current template: \""+sb.toString()+"\""); if(!right.isEmpty()){ // buildTemplateRecursively(similarStrings, right, sb); buildTemplateRecursively(buildRightSubstrings(similarStrings, lcSubstring), right, sb); } } private static String getLongestCommonSubsequenceForStringGroup(List<String> similarStrings){ if(similarStrings == null || similarStrings.isEmpty()){ throw new IllegalArgumentException("similarStrings shouldn't be null or empty"); } String lcs = similarStrings.get(0); for(String s: similarStrings){ lcs = StringComparison.computeLCSubsequence(s, lcs); } return lcs; } private static String getLongestCommonSubstringForStringGroupAndLCS(List<String> similarStrings, String lcSubsequence){ String lcs = lcSubsequence; for(String s: similarStrings){ lcs = StringComparison.computeLCSubsting(s, lcs); } return lcs; } /** * Вычисляет шаблон для двух переданных строк, обнаруживая их различия. * Использует динамическое программирование. Смотри также реализацию метода {@link StringComparison#computeLCSubsequence(String, String)} * * @param s1 * @param s2 * @return */ public static String computeTemplate(String s1, String s2) { // number of lines of each file int M = s1.length(); int N = s2.length(); // opt[i][j] = length of LCS of x[i..M] and y[j..N] int[][] opt = new int[M + 1][N + 1]; // compute length of LCS and all subproblems via dynamic programming for (int i = M - 1; i >= 0; i--) { for (int j = N - 1; j >= 0; j--) { if (s1.charAt(i) == s2.charAt(j)) { opt[i][j] = opt[i + 1][j + 1] + 1; } else { opt[i][j] = Math.max(opt[i + 1][j], opt[i][j + 1]); } } } // recover template itself int i = 0, j = 0; StringBuilder sb=new StringBuilder(); boolean addedPlaceholder = false; while (i < M && j < N) { if (s1.charAt(i) == s2.charAt(j)) { sb.append(s1.charAt(i)); i++; j++; addedPlaceholder = false; } else { if(!addedPlaceholder){ sb.append("{&}"); addedPlaceholder = true; } if (opt[i + 1][j] >= opt[i][j + 1]) { i++; } else { j++; } } } return sb.toString(); } private static void test2(List<String> similarStrings, String lcs){ StringBuilder sb = new StringBuilder(); int index; for(index=0; index<lcs.length(); index++){ sb.append(lcs.charAt(index)); System.out.println(sb); if(!containedInAll(similarStrings, sb.toString())){ System.out.println("Not contained"); break; } } sb.deleteCharAt(sb.length()-1); index--; System.out.println("\"" + sb.toString() + "\""); //----------------------------------------------- sb = new StringBuilder(); for(index++; index<lcs.length(); index++){ sb.append(lcs.charAt(index)); System.out.println(sb); if(!containedInAll(similarStrings, sb.toString())){ System.out.println("Not contained"); break; } } sb.deleteCharAt(sb.length()-1); index--; System.out.println("\"" + sb.toString() + "\""); //----------------------------------------------- sb = new StringBuilder(); for(index++; index<lcs.length(); index++){ sb.append(lcs.charAt(index)); System.out.println(sb); if(!containedInAll(similarStrings, sb.toString())){ System.out.println("Not contained"); break; } } sb.deleteCharAt(sb.length()-1); index--; System.out.println("\"" + sb.toString() + "\""); } private static boolean containedInAll(List<String> similarStrings, String substring){ for(String s: similarStrings){ if(!s.contains(substring)){ return false; } } return true; } private static void test(List<String> similarStrings, String lcs){ StringBuilder sb = new StringBuilder("^.*$"); int offset=1; Pattern pattern; boolean matchesAll; boolean specialCharAdded; for(int i=0; i<lcs.length(); i++){ if(ParseMessage.SPECIAL_CHARS_STRING.indexOf(lcs.charAt(i))!=-1){ sb.insert(offset, '\\'); offset++; specialCharAdded = true; System.out.println("special character added"); } else { specialCharAdded = false; } sb.insert(offset, lcs.charAt(i)); offset++; System.out.println("regexp: "+sb); pattern = Pattern.compile(sb.toString()); matchesAll = matchesAll(pattern, similarStrings); System.out.println("matchesAll: "+ matchesAll); if(!matchesAll){ if(specialCharAdded){ sb.insert(offset-2, ".*?"); offset+=3; // length of (.*) } else { sb.insert(offset-1, ".*?"); offset+=3; // length of (.*) } System.out.println("replacing regexp: "+ sb); pattern = Pattern.compile(sb.toString()); System.out.println("additional match check: " + matchesAll(pattern, similarStrings)); System.out.println(); } } } private static boolean matchesAll(Pattern pattern, List<String> similarStrings){ for(String s: similarStrings){ if(!pattern.matcher(s).matches()){ System.out.println("match fails at: "+s); return false; } } return true; } /** * На основе переданного LCS из сообщения делает шаблон, подменяя места, * которые в LCS отсутствуют на {&}. Можно также использовать на шаблонах с * именоваными плейсхолдерами * * @param s * @param lcs * @return */ // TODO очевидно надо рефакторить этот код :'( public static String getTemplate(String s, String lcs) { StringBuilder sb = new StringBuilder(); int i = 0, k = 0; String sPlaceholder, lcsPlaceholder; while (i < s.length() && k < lcs.length()) { if (s.charAt(i) == lcs.charAt(k)) { // Хитрая логика, чтобы когда в lcs и message есть шаблоны, всё // нормально работало. Просто посимвольное сравнение оказалось // не катит if (s.charAt(i) == '{') { if ((s.indexOf('}', i) != -1) && (lcs.indexOf('}', k) != -1)) { sPlaceholder = s.substring(i, s.indexOf('}', i) + 1); lcsPlaceholder = lcs.substring(k, lcs.indexOf('}', k) + 1); if ((isNamedPlaceholder(sPlaceholder) || sPlaceholder.equals("{&}")) && (isNamedPlaceholder(lcsPlaceholder) || lcsPlaceholder.equals("{&}"))) { if (sPlaceholder.equals(lcsPlaceholder)) { sb.append(sPlaceholder); i += sPlaceholder.length(); k += sPlaceholder.length(); } else { sb.append(sPlaceholder); i += sPlaceholder.length(); } } else { sb.append(lcs.charAt(k)); i++; k++; } } else { sb.append(lcs.charAt(k)); i++; k++; } // конец хитрой логики =) } else { sb.append(lcs.charAt(k)); i++; k++; } } else { sb.append("{&}"); while (s.charAt(i) != lcs.charAt(k)) { i++; } } } if (i < s.length()) { sb.append("{&}"); } return sb.toString(); } /** * Проверяет, является ли переданная строка плейсхолдером, т.е. имеет ли вид * {placeholder_name} * * @param s * @return */ public static boolean isNamedPlaceholder(String string) { return PLACEHOLDER_REGEX.matcher(string).matches(); } private static final Pattern PLACEHOLDER_REGEX = Pattern.compile("^\\{\\w*\\}$"); }
package com.findbank.c15.controller; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.findbank.c15.dao.UsuarioDaoImpl; import com.findbank.c15.model.Agentes; import com.findbank.c15.model.Usuario; import com.findbank.c15.service.AgentesService; import com.findbank.c15.service.UsuarioService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; @Controller public class AgenteController { @Autowired UsuarioService usuarioService; @Autowired AgentesService agentesService; @RequestMapping(value = "/administrador", method = RequestMethod.GET, headers = "Accept=application/json") public String getAgentes(Model model) { List<Agentes> listOfAgentes = agentesService.getAllAgentes(); model.addAttribute("agentes", new Agentes()); model.addAttribute("listOfAgentes", listOfAgentes); Map< String, String > imagenes = new HashMap<String, String>(); imagenes.put("cat_bodega.jpg", "cat_bodega.jpg"); imagenes.put("cat_farmacia.jpg", "cat_farmacia.jpg"); imagenes.put("cat_minimarket.jpg", "cat_minimarket.jpg"); imagenes.put("cat_cafeteria.jpg", "cat_cafeteria.jpg"); imagenes.put("cat_gasolinera.jpg", "cat_gasolinera.jpg"); imagenes.put("cat_lavanderia.jpg", "cat_lavanderia.jpg"); model.addAttribute("fotos", imagenes); return "welcomeadmi"; } @RequestMapping(value = "/administrador2", method = RequestMethod.GET) public String getUsers(Model model) { model.addAttribute("usuario", new Usuario()); model.addAttribute("usuarios", usuarioService.findAll()); return "welcomeadmi2"; } //updateUsuario @RequestMapping(value = "/updateUsuario/{id}", method = RequestMethod.GET) public String updateUser(@PathVariable("id") int id,Model model) { model.addAttribute("usuario", this.usuarioService.find(id)); model.addAttribute("usuarios", this.usuarioService.findAll()); // ModelAndView mav = new ModelAndView(); model.addAttribute("textomodal", "verdadero"); return "welcomeadmi2"; } @RequestMapping(value = "/deleteUsuario/{id}", method = RequestMethod.GET) public String deleteUser(@PathVariable("id") int id) { usuarioService.delete(id); return "redirect:/administrador2"; } @RequestMapping(value = "/addUser", method = RequestMethod.POST) public String addAgente(@ModelAttribute("usuario") Usuario usuarios) { if(usuarios.getId()==0) { usuarioService.create(usuarios.getNombre(), usuarios.getEmail(), usuarios.getPassword(), usuarios.getTipo()); } else { usuarioService.update(usuarios.getId(),usuarios.getNombre(), usuarios.getEmail(), usuarios.getPassword(),usuarios.getTipo()); } return "redirect:/administrador2"; } ////Interfaz de usuario pripietario///// @RequestMapping(value = "/welcome", method = RequestMethod.GET, headers = "Accept=application/json") public ModelAndView showWelcome(HttpServletRequest request, HttpServletResponse response) { ModelAndView mav = new ModelAndView("welcome"); List<Agentes> listOfAgentes = agentesService.getAllAgentes(); mav.addObject("agentes", new Agentes()); mav.addObject("listOfAgentes", listOfAgentes); return mav; } @RequestMapping(value = "/editarAgenteUser/{id}", method = RequestMethod.GET, headers = "Accept=application/json") public String updateAgenteUser(@PathVariable("id") int id,Model model) { model.addAttribute("agentes", this.agentesService.getAgentes(id)); model.addAttribute("listOfAgentes", this.agentesService.getAllAgentes()); // ModelAndView mav = new ModelAndView(); model.addAttribute("textomodal", "verdadero"); return "welcome"; } @RequestMapping(value = "/addAgenteUser", method = RequestMethod.POST, headers = "Accept=application/json") public String addCountry(@ModelAttribute("agentes") Agentes agentes) { if(agentes.getId()==0) { agentesService.addAgentes(agentes); } else { agentesService.updateAgentes(agentes); } return "redirect:/welcome"; } ////Interfaz de usuario pripietario (fin)///// @RequestMapping(value = "/agente/{id}", method = RequestMethod.GET, headers = "Accept=application/json") public Agentes getAgenteById(@PathVariable int id) { return agentesService.getAgentes(id); } @RequestMapping(value = "/addAgente", method = RequestMethod.POST, headers = "Accept=application/json") public String addAgente(@ModelAttribute("agentes") Agentes agentes) { if(agentes.getId()==0) { agentesService.addAgentes(agentes); } else { agentesService.updateAgentes(agentes); } return "redirect:/administrador"; } @RequestMapping(value = "/updateAgente/{id}", method = RequestMethod.GET, headers = "Accept=application/json") public String updateAgente(@PathVariable("id") int id,Model model) { model.addAttribute("agentes", this.agentesService.getAgentes(id)); model.addAttribute("listOfAgentes", this.agentesService.getAllAgentes()); // ModelAndView mav = new ModelAndView(); model.addAttribute("textomodal", "verdadero"); Map< String, String > imagenes = new HashMap<String, String>(); imagenes.put("cat_bodega.jpg", "cat_bodega.jpg"); imagenes.put("cat_farmacia.jpg", "cat_farmacia.jpg"); imagenes.put("cat_minimarket.jpg", "cat_minimarket.jpg"); imagenes.put("cat_cafeteria.jpg", "cat_cafeteria.jpg"); imagenes.put("cat_gasolinera.jpg", "cat_gasolinera.jpg"); imagenes.put("cat_lavanderia.jpg", "cat_lavanderia.jpg"); model.addAttribute("fotos", imagenes); return "welcomeadmi"; } @RequestMapping(value = "/deleteAgente/{id}", method = RequestMethod.GET, headers = "Accept=application/json") public String deleteAgente(@PathVariable("id") int id) { agentesService.deleteAgentes(id); return "redirect:/administrador"; } }
// Sun Certified Java Programmer // Chapter 6, P451_452 // Strings, I/O, Formatting, and Parsing import java.io.*; class Tester451_452 { public static void main(String[] args) { // P451 /*File file = new File("fileWrite.txt"); // create a File PrintWriter pw = new PrintWriter(file);*/ // pass file to // the PrintWriter // constructor /*File file = new File("fileWrite2.txt"); // create a File object FileWriter fw = new FileWriter(file); // create a FileWriter // that will send its // output to a File PrintWriter pw = new PrintWriter(fw); // create a PrintWriter // that will send its // output to a Writer pw.println("howdy"); // write the data pw.println("folks");*/ // P452 /*File file = new File("fileWrite2.txt"); // create a File object AND // open "fileWrite2.txt" FileReader fr = new FileReader(file); // create a FileReader to get // data from 'file' BufferedReader br = new BufferedReader(fr); // create a BufferedReader to // get its data from a Reader String data = br.readLine();*/ // read some data } }
package com.company.ch05_BST; import java.util.ArrayList; import java.util.Random; public class Main { public static void testtoString(){ BST<Integer> bst = new BST<>(); int[] nums = {5, 3, 6, 8, 4, 2}; for (int num : nums) { bst.add(num); } bst.preOrder(); System.out.println(); System.out.println(bst); } public static void testpreOrderNR(){ BST<Integer> bst = new BST<>(); int[] nums = {5, 3, 6, 8, 4, 2}; for (int num : nums) { bst.add(num); } bst.preOrder(); System.out.println(); bst.preOrderNR(); } public static void testRemoveMin(){ BST<Integer> bst=new BST<>(); Random random = new Random(); int n=1000; for (int i = 0; i < n; i++) { bst.add(random.nextInt(10000)); } ArrayList<Integer> nums=new ArrayList<>(); while(!bst.isEmpty()){ nums.add(bst.removeMin()); } System.out.println(nums); for (int i = 1; i < nums.size(); i++) { if(nums.get(i)<nums.get(i-1)) throw new IllegalArgumentException("Error"); } System.out.println("removeMin test completed"); } public static void testRemove(){ BST<Integer> bst = new BST<>(); int[] nums = {5, 3, 6, 8, 4, 2}; for (int num : nums) { bst.add(num); } bst.preOrder(); System.out.println(); bst.remove(3); bst.preOrder(); } public static void main(String[] args) { // testtoString(); // testpreOrderNR(); // testRemoveMin(); testRemove(); } }
package tez.levent.feyyaz.kedi.adapters; // Created by Levent on 5.12.2016. import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import android.util.Log; import tez.levent.feyyaz.kedi.fragments.DuyuruFragment; import tez.levent.feyyaz.kedi.fragments.EtkinlikFragment; import tez.levent.feyyaz.kedi.fragments.KulupFragment; public class ViewPagerAdapter extends FragmentPagerAdapter { private DuyuruFragment duyurular = null; private EtkinlikFragment etkinlikler = null; public ViewPagerAdapter(FragmentManager fm) { super(fm); } @Nullable @Override public Fragment getItem(int position) { switch (position){ case 0: return new KulupFragment(); case 1: etkinlikler = new EtkinlikFragment(); return etkinlikler; case 2: duyurular = new DuyuruFragment(); return duyurular; default: return null; } } @Nullable @Override public CharSequence getPageTitle(int position) { switch (position) { case 0: return "Kulüpler"; case 1: return "Etkinlikler"; case 2: return "Duyurular"; } return null; } @Override public int getCount() { return 3; } public DuyuruFragment getDuyurular() { return duyurular; } public EtkinlikFragment getEtkinlikler() { return etkinlikler; } }
package com.zhouyi.business.core.utils; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.URL; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache.http.client.CookieStore; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.client.protocol.HttpClientContext; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.BasicCookieStore; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.message.BasicNameValuePair; import org.apache.http.util.EntityUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; public class HttpCall { private static final Logger LOG = LoggerFactory.getLogger(HttpCall.class); private CloseableHttpClient httpclient = HttpClients.createDefault(); private CookieStore cookieStore = new BasicCookieStore(); private HttpClientContext localContext = HttpClientContext.create(); private String accessToken; public String sendPost(String url, Map<String, String> params){ try { HttpPost post = new HttpPost(url); // 封装参数 List<BasicNameValuePair> parameters = new ArrayList<BasicNameValuePair>(); if (params != null) { for (Map.Entry<String, String> item : params.entrySet()) { BasicNameValuePair pair = new BasicNameValuePair(item.getKey(), item.getValue()); parameters.add(pair); } HttpEntity entity = new UrlEncodedFormEntity(parameters, "UTF-8"); post.setEntity(entity); } // 提交请求 HttpResponse response = httpclient.execute(post); if (response.getStatusLine().getStatusCode() == 200) { // 将返回的实体转换为String String result = EntityUtils.toString(response.getEntity(), "UTF-8"); System.out.println(result); return result; }else{ System.out.println(response.getStatusLine().getStatusCode()); } } catch (IOException e) { e.printStackTrace(); } return null; } public Object httpGet(String apiUrl) throws IllegalStateException { localContext.setCookieStore(cookieStore); CloseableHttpResponse response = null; try { HttpGet httpGet = new HttpGet(apiUrl); response = httpclient.execute(httpGet, localContext); LOG.info("wx-httpcall={}",response.getStatusLine().getStatusCode()); HttpEntity entity = response.getEntity(); return responseContext(entity.getContent()); } catch (Exception e) { LOG.error("wx-httpcall_err={}",e); } finally { if (response != null) { try { response.close(); } catch (IOException e) { LOG.error(e.toString()); } } } return ""; } /**发送json数据的post请求**/ public Object httpPostCall(String apiUrl,String json) throws IllegalStateException { localContext.setCookieStore(cookieStore); CloseableHttpResponse response = null; try { HttpPost httpPost = new HttpPost(apiUrl); StringEntity s = new StringEntity(json.toString(),Charset.forName("UTF-8")); s.setContentEncoding("UTF-8"); s.setContentType("application/json");//发送json数据需要设置contentType httpPost.setEntity(s); response = httpclient.execute(httpPost, localContext); if(response.getStatusLine().getStatusCode() == HttpStatus.SC_MOVED_TEMPORARILY){ HttpEntity entity = response.getEntity(); JSONObject resultJsonObject = JSONObject.parseObject(responseContext(entity.getContent())); String location = resultJsonObject.getString("location"); if(location == null) { LOG.error("Redirect URL no find"); throw new IllegalStateException("Redirect URL no find"); } return new URL(location); } else if(response.getStatusLine().getStatusCode() == HttpStatus.SC_OK){ HttpEntity entity = response.getEntity(); return responseContext(entity.getContent()); } else if(response.getStatusLine().getStatusCode() == HttpStatus.SC_NOT_FOUND){ LOG.error("Page: " + apiUrl + " no find"); throw new IllegalStateException("404 Page no find"); } else { LOG.error(response.getStatusLine().getStatusCode()+" Business is not supported"); throw new IllegalStateException(response.getStatusLine().getStatusCode()+" Business is not supported"); } } catch (Exception e) { e.printStackTrace(); } finally { if (response != null) { try { response.close(); } catch (IOException e) { LOG.error(e.toString()); } } } return ""; } private String responseContext(InputStream input) { try { BufferedReader readContent = new BufferedReader(new InputStreamReader(input, "UTF-8")); String outStr = readContent.readLine(); StringBuilder sb = new StringBuilder(); while (outStr != null) { sb.append(outStr); outStr = readContent.readLine(); } LOG.info("httpcall_responseContext={}",sb); return sb.toString(); } catch(Exception e) { e.printStackTrace(); } finally { if(input != null) { try { input.close(); } catch (IOException e) { LOG.error("httpcall_responseContext_err=",e.toString()); } } } return ""; } public void closeHttpclient() { try { httpclient.close(); } catch (Exception e) { } finally { try { httpclient.close(); } catch (IOException e) { LOG.error(e.toString()); } } } public CloseableHttpClient getHttpclient() { return httpclient; } public void setHttpclient(CloseableHttpClient httpclient) { this.httpclient = httpclient; } public CookieStore getCookieStore() { return cookieStore; } public void setCookieStore(CookieStore cookieStore) { this.cookieStore = cookieStore; } public HttpClientContext getLocalContext() { return localContext; } public void setLocalContext(HttpClientContext localContext) { this.localContext = localContext; } public String getAccessToken() { return accessToken; } public void setAccessToken(String accessToken) { this.accessToken = accessToken; } }
package com.uploadimage.app; import com.android.volley.AuthFailureError; import com.android.volley.NetworkResponse; import com.android.volley.ParseError; import com.android.volley.Request; import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.HttpHeaderParser; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.DataOutputStream; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.Map; public class VolleyMultipartRequest extends Request<NetworkResponse> { private Response.Listener<NetworkResponse> mResponseListener; private Response.ErrorListener mResponseErrorListener; private Map<String, String> mMap; ByteArrayOutputStream mByteArrayOutputStream; DataOutputStream mDataOutputStream; private final String mTwoHyphens = "--"; private final String mLineEnd = "\r\n"; private final String mBoundary = "apiclient-" + System.currentTimeMillis(); VolleyMultipartRequest(int mMethodType, String mApiUrl, Response.Listener<NetworkResponse> mResponseListener, Response.ErrorListener mResponseErrorListener) { super(mMethodType, mApiUrl, mResponseErrorListener); this.mResponseListener = mResponseListener; this.mResponseErrorListener = mResponseErrorListener; } @Override public Map<String, String> getHeaders() throws AuthFailureError { return (mMap != null) ? mMap : super.getHeaders(); } @Override public String getBodyContentType() { return "multipart/form-data;boundary=" + mBoundary; } @Override public byte[] getBody() throws AuthFailureError { mByteArrayOutputStream = new ByteArrayOutputStream(); mDataOutputStream = new DataOutputStream(mByteArrayOutputStream); try { Map<String, String> mMapParameters = getParams(); if (mMapParameters != null && mMapParameters.size() > 0) { onParseStringMapToDataOutputStream(mDataOutputStream, mMapParameters, getParamsEncoding()); } Map<String, DataPart> mMapData = getByteData(); if (mMapData != null && mMapData.size() > 0) { onParseDataToDataOutputStream(mDataOutputStream, mMapData); } mDataOutputStream.writeBytes(mTwoHyphens + mBoundary + mTwoHyphens + mLineEnd); return mByteArrayOutputStream.toByteArray(); } catch (IOException e) { e.printStackTrace(); } return null; } @Override protected Response<NetworkResponse> parseNetworkResponse(NetworkResponse response) { try { return Response.success( response, HttpHeaderParser.parseCacheHeaders(response)); } catch (Exception e) { return Response.error(new ParseError(e)); } } @Override protected void deliverResponse(NetworkResponse response) { mResponseListener.onResponse(response); } @Override public void deliverError(VolleyError error) { mResponseErrorListener.onErrorResponse(error); } /** * Handle data payload */ protected Map<String, DataPart> getByteData() { return null; } /** * Parse string map into data output stream by key and value. */ private void onParseStringMapToDataOutputStream( DataOutputStream mDataOutputStream, Map<String, String> mMapParameters, String mEncodedString ) throws IOException { try { for (Map.Entry<String, String> mMapEntry : mMapParameters.entrySet()) { onWriteStringDataToHeaderDataOutputStream( mDataOutputStream, mMapEntry.getKey(), mMapEntry.getValue() ); } } catch (UnsupportedEncodingException mUnsupportedEncodingException) { throw new RuntimeException( "Encoded string not supported: " + mEncodedString, mUnsupportedEncodingException ); } } /** * Parse data into data output stream. */ private void onParseDataToDataOutputStream( DataOutputStream mDataOutputStream, Map<String, DataPart> mMapData ) throws IOException { for (Map.Entry<String, DataPart> mMapEntry : mMapData.entrySet()) { onWriteDataFileToHeaderDataOutputStream( mDataOutputStream, mMapEntry.getValue(), mMapEntry.getKey() ); } } /** * Writes string data into header and data output stream. */ private void onWriteStringDataToHeaderDataOutputStream( DataOutputStream mDataOutputStream, String mParameterName, String mParameterValue ) throws IOException { mDataOutputStream.writeBytes(mTwoHyphens + mBoundary + mLineEnd); mDataOutputStream.writeBytes("Content-Disposition: form-data; name=\"" + mParameterName + "\"" + mLineEnd); mDataOutputStream.writeBytes(mLineEnd); mDataOutputStream.writeBytes(mParameterValue + mLineEnd); } /** * Write data file into header and data output stream. */ private void onWriteDataFileToHeaderDataOutputStream( DataOutputStream mDataOutputStream, DataPart mDataPart, String mInputName ) throws IOException { mDataOutputStream.writeBytes(mTwoHyphens + mBoundary + mLineEnd); mDataOutputStream.writeBytes("Content-Disposition: form-data; name=\"" + mInputName + "\"; filename=\"" + mDataPart.getFileName() + "\"" + mLineEnd); if (mDataPart.getType() != null && !mDataPart.getType().trim().isEmpty()) { mDataOutputStream.writeBytes("Content-Type: " + mDataPart.getType() + mLineEnd); } mDataOutputStream.writeBytes(mLineEnd); ByteArrayInputStream mByteArrayInputStream = new ByteArrayInputStream(mDataPart.getContent()); int mByteArrayInputStreamAvailable = mByteArrayInputStream.available(); int mMaxBufferSize = 1024 * 1024; int mMinBufferSize = Math.min(mByteArrayInputStreamAvailable, mMaxBufferSize); byte[] mByteBuuffer = new byte[mMinBufferSize]; int mByteRead = mByteArrayInputStream.read(mByteBuuffer, 0, mMinBufferSize); while (mByteRead > 0) { mDataOutputStream.write(mByteBuuffer, 0, mMinBufferSize); mByteArrayInputStreamAvailable = mByteArrayInputStream.available(); mMinBufferSize = Math.min(mByteArrayInputStreamAvailable, mMaxBufferSize); mByteRead = mByteArrayInputStream.read(mByteBuuffer, 0, mMinBufferSize); } mDataOutputStream.writeBytes(mLineEnd); } static class DataPart { private String mFileName; private byte[] mByteContent; private String mType; DataPart(String mFileName, byte[] mByteContent) { this.mFileName = mFileName; this.mByteContent = mByteContent; } String getFileName() { return mFileName; } byte[] getContent() { return mByteContent; } String getType() { return mType; } } }
package assignment; import java.util.Arrays; import java.util.List; /** * Represents the Staff. * @author Ong Hock Rong * @version 1.0 * @since 1.0 */ public class Staff { /** * Represents login status for the staff. */ private boolean isLogin = false; /** * Represents login userID for the staff. */ private String userID; /** * Represents login password for the staff. */ private char[] password; /** * Create a staff with specified userID and password. * @param userID Staff's login id. * @param password Staff's login password. */ public Staff(String userID, char[] password) { this.userID = userID; this.password = password; } /** * Gets the staff's userID. * @return A string representing the staff's userID. */ public String getUserID(){ return userID;} /** * Gets the staff's password. * @return A char array representing the staff's password. */ public char[] getPassword(){ return password;} /** * This method is to validate if user input of id and password match with the database. * @param staffDB List of staffs' login information. * @return A boolean true or false which indicate login status. */ public boolean checkPassword(List<Staff> staffDB) { if(staffDB != null) { for(int i=0; i< staffDB.size();i++) { String user_db = staffDB.get(i).getUserID(); char[] pw_db = staffDB.get(i).getPassword(); if(user_db.equals(userID) && Arrays.equals(pw_db,password)) { isLogin = true; break; } else isLogin = false; } } return isLogin; } /** * Gets the current login status. * @return A boolean to indicate login status. */ public boolean getStatus() {return isLogin;} /** * Sets the staff's userID. * @param id A string containing the staff's userID. */ public void setUserID(String id) { userID = id; } /** * Sets the staff's password. * @param pw A char array containing the staff's password. */ public void setPassword(char[] pw) { password = pw; } }
package com.fx.style; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import com.alibaba.fastjson.JSON; import com.fx.db.BaseDao; import com.style.bean.InfoBean; public class OneselfInfoServlet extends HttpServlet { /** * */ private static final long serialVersionUID = 1L; public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); request.setCharacterEncoding("utf-8"); response.setCharacterEncoding("utf-8"); PrintWriter out = response.getWriter(); String id = request.getParameter("userId") ; // HttpSession session = request.getSession() ; //session.getAttribute("userId").toString() InfoBean bean = BaseDao.getDao().getOneselfInfo(id); String json = JSON.toJSONString(bean) ; out.print(json); out.flush(); out.close(); } }
package chatroom.model.message; public class PrivateChatStartRequestMessage extends Message { private String requester; private String partner; public PrivateChatStartRequestMessage(String requester, String partner){ this.requester = requester; this.partner = partner; type = 14; } public String getRequester() { return requester; } public String getPartner() { return partner; } }
package ru.otus.l101.dao; /* * Created by VSkurikhin at winter 2018. */ import ru.otus.l101.dataset.PhoneDataSet; import java.sql.Connection; /** * By default this class save application classes to DB. */ public class AddressDataSetMyDAO extends MyDAO { private final String ADAPTEE_TYPE = AddressDataSetMyDAO.class.getName(); public AddressDataSetMyDAO(Connection connection) { super(connection); } @Override public String getAdapteeOfType() { return ADAPTEE_TYPE; } } /* vim: syntax=java:fileencoding=utf-8:fileformat=unix:tw=78:ts=4:sw=4:sts=4:et */ //EOF
package frc.robot.commands; import edu.wpi.first.wpilibj.trajectory.Trajectory; import edu.wpi.first.wpilibj2.command.RamseteCommand; import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; import frc.robot.subsystems.DrivebaseSubsystem; /** * TrajectoryCommand * * */ public class TrajectoryCommand extends SequentialCommandGroup { @SuppressWarnings({ "PMD.UnusedPrivateField", "PMD.SingularField" }) public TrajectoryCommand(Trajectory trajectory, DrivebaseSubsystem drivebaseSubsystem) { addCommands( new RamseteCommand( trajectory, drivebaseSubsystem::getCurrentPose, drivebaseSubsystem.getRamseteController(), drivebaseSubsystem.getFeedforward(), drivebaseSubsystem.getDriveKinematics(), drivebaseSubsystem::getSpeeds, drivebaseSubsystem.getLeftPIDController(), drivebaseSubsystem.getRightPIDController(), drivebaseSubsystem::setOutputVolts, drivebaseSubsystem).andThen(() -> drivebaseSubsystem.stop()) ); // Use addRequirements() here to declare subsystem dependencies. //addRequirements(); } }
public class Warship extends Weapen{ public abstract void move(); public abstract void attack(); }
package com.cloud.feign_consumer.service; import com.cloud.feign_consumer.Entity.User; import com.cloud.feign_consumer.service.impl.HelloServiceFallback; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; @FeignClient(value = "ribbon-provider",fallback = HelloServiceFallback.class) public interface HelloService { @RequestMapping(value = "/hello",method = RequestMethod.GET) String hello(); @RequestMapping(value = "/hello1",method = RequestMethod.GET) String hello(@RequestParam(value = "name") String name); @RequestMapping(value = "/hello2",method = RequestMethod.GET) User hello(@RequestParam(value = "name") String name,@RequestParam(value = "age") Integer age); @RequestMapping(value = "/hello3",method = RequestMethod.POST) String hello(@RequestBody User user); }
package futbol5; import java.util.Date; public class Reserva { private Date fechaReserva; private Equipo equipo1, equipo2; public Reserva(){ } public Reserva(Date dReserva, Equipo dEquipo1, Equipo dEquipo2){ this.fechaReserva=dReserva; this.equipo1=dEquipo1; this.equipo2=dEquipo2; } public Date getFechaReserva(){ return fechaReserva; } public void setFechaReserva(Date dReserva){ this.fechaReserva=dReserva; } public Equipo getEquipo1(){ return equipo1; } public void setEquipo1(Equipo dEquipo1){ this.equipo1=dEquipo1; } public Equipo getEquipo2(){ return equipo2; } public void setEquipo2(Equipo dEquipo2){ this.equipo2=dEquipo2; } }
package com.example.admin.refreshlayoutdemo; /** * Created by admin on 2017/3/20. */ public interface IHeadView { void refreshReady(); void refreshing(); void refreshOver(); int getHeadViewHeight(); }
package com.zilker.bean; /* * Displays user details. */ public class User { private String userName; private String mail; private String contact; private String role; private String password; private String address; private String zipCode; public User() { } public User(String userName, String mail, String contact, String role, String password, String address, String zipCode) { super(); this.userName = userName; this.mail = mail; this.contact = contact; this.role = role; this.password = password; this.address = address; this.zipCode = zipCode; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getMail() { return mail; } public void setMail(String mail) { this.mail = mail; } public String getContact() { return contact; } public void setContact(String contact) { this.contact = contact; } public String getRole() { return role; } public void setRole(String role) { this.role = role; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getZipCode() { return zipCode; } public void setZipCode(String zipCode) { this.zipCode = zipCode; } }
/* * Copyright (C) 2023 Hedera Hashgraph, LLC * * 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.hedera.services.txn.token; import static com.hederahashgraph.api.proto.java.ResponseCodeEnum.INVALID_ACCOUNT_ID; import static com.hederahashgraph.api.proto.java.ResponseCodeEnum.INVALID_TOKEN_ID; import static com.hederahashgraph.api.proto.java.ResponseCodeEnum.OK; import com.hedera.mirror.web3.evm.store.Store; import com.hedera.mirror.web3.evm.store.Store.OnMissing; import com.hedera.mirror.web3.evm.store.accessor.model.TokenRelationshipKey; import com.hedera.services.store.models.Id; import com.hederahashgraph.api.proto.java.ResponseCodeEnum; import com.hederahashgraph.api.proto.java.TokenGrantKycTransactionBody; import com.hederahashgraph.api.proto.java.TransactionBody; /** * Copied Logic type from hedera-services. * <p> * Differences with the original: * 1. Use abstraction for the state by introducing {@link Store} interface * 2. Used tokenRelationship.setKycGranted instead of tokenRelationship.changeKycState (like in services) * 3. Used store.updateTokenRelationship(tokenRelationship) * instead of tokenStore.commitTokenRelationships(List.of(tokenRelationship)) (like in services) */ public class GrantKycLogic { public void grantKyc(final Id targetTokenId, final Id targetAccountId, final Store store) { /* --- Load the model objects --- */ final var tokenRelationshipKey = new TokenRelationshipKey(targetTokenId.asEvmAddress(), targetAccountId.asEvmAddress()); final var tokenRelationship = store.getTokenRelationship(tokenRelationshipKey, OnMissing.THROW); /* --- Do the business logic --- */ final var tokenRelationshipResult = tokenRelationship.setKycGranted(true); /* --- Persist the updated models --- */ store.updateTokenRelationship(tokenRelationshipResult); } public ResponseCodeEnum validate(final TransactionBody txnBody) { TokenGrantKycTransactionBody op = txnBody.getTokenGrantKyc(); if (!op.hasToken()) { return INVALID_TOKEN_ID; } if (!op.hasAccount()) { return INVALID_ACCOUNT_ID; } return OK; } }
public class Animal { protected String food; protected String location; protected String type; protected String sound; void makeNoise(String type, String sound) { System.out.println(" животное " + type + " издает звук " + sound); } void eat(String type, String food) { System.out.println(" животное " + type + " ест " + food); } void sleep(String type, String location) { System.out.println(" животное " + type + " спит " + location); } }
package implementation; public class BinaryTreeNode { public int value; public BinaryTreeNode left; public BinaryTreeNode right; BinaryTreeNode(int value) { this.value = value; left = null; right = null; } }
package com.mycompany.reto2; import java.util.Scanner; public class Reto2 { // Eliana Janneth Puerta Morales // Andrés David Ocampo public static void main(String[]args ){ System.out.println("Punto 1:"); punto1(); System.out.println("Punto 2:"); punto2(); System.out.println("Punto 3:"); punto3(); System.out.println("Punto 4:"); punto4(); System.out.println("Punto 5:"); punto5(); System.out.println("Reto 2 realizado por Eliana Puerta y Andrés David"); } static void punto1(){ int numero; int hasta; Scanner lector = new Scanner(System.in); System.out.println("Ingrese numero de multiplicaciones que desea obtener: "); numero = lector.nextInt(); System.out.println("Ingrese el numero hasta el cual multiplicar: "); hasta = lector.nextInt(); for (int i = 1 ; i < numero+1; i++){ System.out.println("Tabla del " + i + ": "); for (int j = 1; j < hasta+1; j++){ System.out.println(i+"*"+j+ " = " + i*j); } } System.out.println("Terminaste \n"); } static void punto2(){ int cuadrados; Scanner lector = new Scanner(System.in); System.out.println("Ingrese los primeros cuadrados que desea obtener "); cuadrados = lector.nextInt(); for (int j = 1; j <= cuadrados; j++){ int contador = -1; for(int i = 1 ; i <= j; i++){ contador = contador + 2; if (i < j) { System.out.print(contador + " + "); } else{ System.out.print(contador + " = "); } } System.out.println(j*j); } System.out.println("Terminaste \n"); } static void punto3(){ int cuadrados; Scanner lector = new Scanner(System.in); System.out.println("Ingrese los primeros cubos que desea obtener "); cuadrados = lector.nextInt(); int contador = -1; for (int j = 1; j <= cuadrados; j++){ System.out.print(j+"³ = "); for(int i = 1 ; i <= j; i++){ contador = contador + 2; if (i < j) { System.out.print(contador + " + "); } else{ System.out.print(contador + " = "); } } System.out.println(j*j*j); } System.out.println("Terminaste \n"); } static void punto4(){ int retiro; int exito; int cienmil = 0,cincuentamil = 0,veintemil = 0,diezmil = 0,cincomil = 0,dosmil = 0,mil = 0,quinientos = 0,docientos = 0,cien = 0,cincuenta = 0; Scanner lector = new Scanner(System.in); System.out.println("Teniendo en cuenta la denominacion de la moneda colombiana, ingrese el monto de dinero a retirar : "); retiro = lector.nextInt(); exito = retiro; while( retiro > 0 ){ if(retiro >= 100000){ cienmil = cienmil +1 ; retiro = retiro - 100000; } else if(retiro >= 50000){ cincuentamil = cincuentamil +1 ; retiro = retiro - 50000; } else if(retiro >= 20000){ veintemil = veintemil +1 ; retiro = retiro - 20000; } else if(retiro >= 10000){ diezmil = diezmil +1 ; retiro = retiro - 10000; } else if(retiro >= 5000){ cincomil = cincomil +1 ; retiro = retiro - 5000; } else if(retiro >= 2000){ dosmil = dosmil +1 ; retiro = retiro - 2000; } else if(retiro >= 1000){ mil = mil +1 ; retiro = retiro - 1000; } else if(retiro >= 500){ quinientos = quinientos +1 ; retiro = retiro - 500; } else if(retiro >= 200){ docientos = docientos +1 ; retiro = retiro - 200; } else if(retiro >= 100){ cien = cien +1 ; retiro = retiro - 100; } else if(retiro >= 50){ cincuenta = cincuenta +1 ; retiro = retiro - 50; } else if(retiro < 50 ){ System.out.println("Por favor ingrese un valor válido."); break; } } if(retiro == 0){ System.out.println("Usted ha realizado un retiro por " + exito + " pesos de la siguiente manera:" ); if(cienmil > 0 ){ if (cienmil == 1){ System.out.println(cienmil + " bitelle de 100.000"); } else { System.out.println(cienmil + " billetes de 100.000"); } } if(cincuentamil > 0 ){ if (cincuentamil == 1){ System.out.println(cincuentamil + " bitelle de 50.000"); } else { System.out.println(cincuentamil + " billetes de 50.000"); } } if(veintemil > 0 ){ if (veintemil == 1){ System.out.println(veintemil + " bitelle de 20.000"); } else { System.out.println(veintemil + " billetes de 20.000"); } } if(diezmil > 0 ){ if (diezmil == 1){ System.out.println(diezmil + " bitelle de 10.000"); } else { System.out.println(diezmil + " billetes de 10.000"); } } if(cincomil > 0 ){ if (cincomil == 1){ System.out.println(cincomil + " bitelle de 5.000"); } else { System.out.println(cincomil + " billetes de 5.000"); } } if(dosmil > 0 ){ if (dosmil == 1){ System.out.println(dosmil + " bitelle de 2.000"); } else { System.out.println(dosmil + " billetes de 2.000"); } } if(mil > 0 ){ if (mil == 1){ System.out.println(mil + " moneda de 1.000"); } else { System.out.println(mil + " monedas de 1.000"); } } if(quinientos > 0 ){ if (quinientos == 1){ System.out.println(quinientos + " moneda de 500"); } else { System.out.println(quinientos + " monedas de 500"); } } if(docientos > 0 ){ if (docientos == 1){ System.out.println(docientos + " moneda de 200"); } else { System.out.println(docientos + " monedas de 200"); } } if(cien > 0 ){ if (cien == 1){ System.out.println(cien + " moneda de 100"); } else { System.out.println(cien + " monedas de 100"); } } if(cincuenta > 0 ){ if (cincuenta == 1){ System.out.println(cincuenta + " moneda de 50"); } else { System.out.println(cincuenta + " monedas de 50"); } } } System.out.println("Terminaste \n"); } static void punto5(){ Scanner Entrada = new Scanner(System.in); System.out.println("Ingrese el valor de n: "); int n = Entrada.nextInt(); System.out.println("Ingrese el valor de m: "); int m = Entrada.nextInt(); int nm = n - m; double facn = n; double facm = m; double facnm = nm; double formula; if (n > m){ for (var i = n-1 ; i >= 0; i--){ if (i >= 1){ facn = facn * i; } } for (var j = m-1; j >= 0; j--){ if (j >= 1){ facm = facm * j; } } for (var k = nm-1; k >= 0; k--){ if (k >= 1){ facnm = facnm * k; } } if (facm == 0){ facm = 1; } if(facnm == 0){ facnm = 1;} formula = (facn)/(facm *(facnm)); System.out.println("Aplicando la formula (n/m)= n!/(m!(n-m)!)" ); System.out.println(n +"/"+m+" = "+n+"!/("+m+"!("+n+"-"+m+")!) = " + formula); } else { System.out.println("n tiene que ser mayor a m"); } System.out.println("Terminaste \n"); } }
package com.tencent.mm.plugin.webview.modeltools; import com.tencent.mm.g.a.ua; import com.tencent.mm.kernel.g; import com.tencent.mm.model.q; import com.tencent.mm.model.t; import com.tencent.mm.plugin.report.service.h; import com.tencent.mm.plugin.sns.b.i; import com.tencent.mm.pointers.PString; import com.tencent.mm.sdk.b.c; import com.tencent.mm.sdk.platformtools.x; import java.net.URLEncoder; import java.util.ArrayList; import java.util.List; class e$16 extends c<ua> { final /* synthetic */ e pUl; e$16(e eVar) { this.pUl = eVar; this.sFo = ua.class.getName().hashCode(); } private static boolean a(ua uaVar) { if (!(uaVar instanceof ua)) { return false; } String str; String GF = q.GF(); List arrayList = new ArrayList(); arrayList.add(uaVar.cfH.cfI); arrayList.add(uaVar.cfH.cfJ); arrayList.add(uaVar.cfH.cfK); arrayList.add(uaVar.cfH.cfL); arrayList.add(uaVar.cfH.url); arrayList.add(uaVar.cfH.cfM); arrayList.add(uaVar.cfH.cfN); arrayList.add(uaVar.cfH.cfO); arrayList.add(uaVar.cfH.cfP); arrayList.add(uaVar.cfH.cfQ); arrayList.add(GF); arrayList.add(uaVar.cfH.cfR); arrayList.add(uaVar.cfH.cfS); PString pString = new PString(); String a = ((i) g.l(i.class)).a(uaVar.cfH.cfT, pString); arrayList.add(a); arrayList.add(""); arrayList.add(""); arrayList.add(""); int N = t.N(uaVar.cfH.cfK, uaVar.cfH.cfL); int N2 = t.N(GF, uaVar.cfH.cfN); arrayList.add(String.valueOf(N)); arrayList.add(String.valueOf(N2)); Object obj = uaVar.cfH.cfU; try { obj = URLEncoder.encode(obj, "UTF-8"); } catch (Throwable e) { x.printErrStackTrace("MicroMsg.SubCoreTools", e, "", new Object[0]); } arrayList.add(obj); arrayList.add(pString.value); String str2 = "MicroMsg.SubCoreTools"; String str3 = "report(11954) : prePublishId : %s, curPublishId : %s, preUsername : %s, preChatName : %s, url : %s, preMsgIndex : %s, curChatName : %s, curChatTitle : %s, curChatMemberCount : %s, sendAppMsgScene : %s, curUserName : %s, getA8KeyScene : %s, referUrl : %s. : statExtStr:%s(%s), preChatType:%d, curChatType:%d, webViewTitle:%s, sourceAppId:%s"; Object[] objArr = new Object[19]; objArr[0] = uaVar.cfH.cfI; objArr[1] = uaVar.cfH.cfJ; objArr[2] = uaVar.cfH.cfK; objArr[3] = uaVar.cfH.cfL; if (uaVar.cfH.url == null) { str = uaVar.cfH.url; } else { str = uaVar.cfH.url.replace(",", "!"); } objArr[4] = str; objArr[5] = Integer.valueOf(uaVar.cfH.cfM); objArr[6] = uaVar.cfH.cfN; objArr[7] = uaVar.cfH.cfO; objArr[8] = Integer.valueOf(uaVar.cfH.cfP); objArr[9] = Integer.valueOf(uaVar.cfH.cfQ); objArr[10] = GF; objArr[11] = Integer.valueOf(uaVar.cfH.cfR); if (uaVar.cfH.cfS == null) { str = uaVar.cfH.cfS; } else { str = uaVar.cfH.cfS.replace(",", "!"); } objArr[12] = str; objArr[13] = uaVar.cfH.cfT; objArr[14] = a; objArr[15] = Integer.valueOf(N); objArr[16] = Integer.valueOf(N2); objArr[17] = uaVar.cfH.cfU; objArr[18] = pString.value; x.d(str2, str3, objArr); if (uaVar.cfH.cfV != 2) { h hVar = h.mEJ; h.e(11954, arrayList); } return true; } }
import java.awt.*; import javax.swing.*; //import javax.swing.border.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.lang.NumberFormatException; import java.lang.NullPointerException; public class ADMJPanel extends Painel implements ActionListener { protected JButton bNovaConta, bVisualizar, bRendimentos, bJuros, bVisualizarTodas, bLogout; protected JLabel bemVindo; public ADMJPanel() { if (Banco.testInstance()) { bemVindo = new JLabel("Bem vindo(a) Sr(a). " + b.adm_getNome()); } else { bemVindo = new JLabel("---"); } bemVindo.setAlignmentX(JComponent.CENTER_ALIGNMENT); JPanel container = new JPanel(); container.setLayout(new GridLayout(0, 1)); //Infinitas linhas, uma coluna JPanel buttons = new JPanel(new GridLayout(0, 1, 0, 10)); //Infinitas linhas, 1 coluna, espacamento 0x10 buttons.setOpaque(true); bNovaConta = new JButton("Criar nova conta"); bNovaConta.setActionCommand("adm_nova_conta"); bNovaConta.setMnemonic(KeyEvent.VK_N); bNovaConta.addActionListener(this); bNovaConta.setAlignmentX(JComponent.CENTER_ALIGNMENT); bVisualizar = new JButton("Visualizar conta"); bVisualizar.setActionCommand("adm_visualizar_conta"); bVisualizar.setMnemonic(KeyEvent.VK_V); bVisualizar.addActionListener(this); bVisualizar.setAlignmentX(JComponent.CENTER_ALIGNMENT); bRendimentos = new JButton("Incrementar rendimentos"); bRendimentos.setActionCommand("adm_incr_rendimentos"); bRendimentos.setMnemonic(KeyEvent.VK_R); bRendimentos.addActionListener(this); bRendimentos.setAlignmentX(JComponent.CENTER_ALIGNMENT); bJuros = new JButton("Cobrar juros"); bJuros.setActionCommand("adm_cobrar_juros"); bJuros.setMnemonic(KeyEvent.VK_J); bJuros.addActionListener(this); bJuros.setAlignmentX(JComponent.CENTER_ALIGNMENT); bVisualizarTodas = new JButton("Visualizar todas as contas"); bVisualizarTodas.setActionCommand("adm_visualizar_todas"); bVisualizarTodas.setMnemonic(KeyEvent.VK_T); bVisualizarTodas.addActionListener(this); bVisualizarTodas.setAlignmentX(JComponent.CENTER_ALIGNMENT); bLogout = new JButton("Desconectar"); bLogout.setActionCommand("adm_logout"); bLogout.setMnemonic(KeyEvent.VK_D); bLogout.addActionListener(this); bLogout.setAlignmentX(JComponent.CENTER_ALIGNMENT); container.add(bemVindo); buttons.add(bNovaConta); buttons.add(bVisualizar); buttons.add(bRendimentos); buttons.add(bJuros); buttons.add(bVisualizarTodas); buttons.add(bLogout); container.add(buttons); add(container); } public void actionPerformed(ActionEvent e) { b = Banco.getInstance(); String action = e.getActionCommand(); if ("adm_nova_conta".equals(action)) { b.reconfigContentPane(Banco.ADM_NOVA_CONTA); } else if ("adm_visualizar_todas".equals(action)) { b.reconfigContentPane(Banco.ADM_VISUALIZAR); } else if ("adm_visualizar_conta".equals(action)) { try { String input = JOptionPane.showInputDialog("Digite o codigo para consulta", "0000"); int id = Integer.parseInt(input); JOptionPane.showMessageDialog(null, b.adm_client_to_string(id), "Informacoes", JOptionPane.INFORMATION_MESSAGE); } catch (NullPointerException npe) { JOptionPane.showMessageDialog(null, "Conta nao encontrada...", "Erro", JOptionPane.ERROR_MESSAGE); } catch (NumberFormatException ie) { JOptionPane.showMessageDialog(null, "Favor digitar um numero!", "Erro", JOptionPane.ERROR_MESSAGE); } catch (ValorInvalidoException ve) { JOptionPane.showMessageDialog(null, ve.to_string(), "Erro", JOptionPane.WARNING_MESSAGE); } } else if ("adm_incr_rendimentos".equals(action)) { b.adm_incrementarRendimentos(); JOptionPane.showMessageDialog(null, "Rendimentos incrementados com sucesso", "Sucesso", JOptionPane.INFORMATION_MESSAGE); } else if ("adm_cobrar_juros".equals(action)) { try { String input = JOptionPane.showInputDialog("Digite a porcentagem para cobranca de juros", "0.0"); double j = Double.parseDouble(input); if (j <= 0.0) { throw new ValorInvalidoException(); } int cobrados = b.adm_cobrarJuros(j); if (cobrados == 0) { JOptionPane.showMessageDialog(null, "Nenhuma conta estava em divida", "Aviso", JOptionPane.WARNING_MESSAGE); } else { char plural = (cobrados == 1 ? '\0' : 's'); JOptionPane.showMessageDialog(null, String.format("Juros cobrados com sucesso (%d conta%c debitada%c)", cobrados, plural, plural), "Sucesso", JOptionPane.INFORMATION_MESSAGE); } } catch (NumberFormatException ie) { JOptionPane.showMessageDialog(null, "Favor digitar um numero!", "Erro", JOptionPane.ERROR_MESSAGE); } catch (ValorInvalidoException vie) { JOptionPane.showMessageDialog(null, "Favor digitar um valor valido (positivo)!", "Erro", JOptionPane.ERROR_MESSAGE); } } else if ("adm_logout".equals(action)) { b.adm_logOut(); b.reconfigContentPane(Banco.MAIN); } } public void on_update() { b = Banco.getInstance(); bemVindo.setText("Bem vindo(a) Sr(a). " + b.adm_getNome()); } }
package servlet; import java.io.File; import java.io.IOException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class LoginServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { response.setContentType("text/html"); java.io.PrintWriter out = response.getWriter(); out.println("<html><head>"); out.println("<title>Login</title>"); out.println("</head><body>"); out.print("<h1>Login</h1>"); out.println("<form name='login' action='' method='post'>"); out.print("Username: <input type='text' id='username' name='username'>"); out.print("Password: <input type='text' id='password' name='password'>"); out.println("<input type='submit' value='Submit'>"); out.println("</form>"); out.println("</body></html>"); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException { String username = request.getParameter("username"); String password = request.getParameter("password"); if (username.equals("max") && password.equals("max")) { response.sendRedirect("/FileUploadServlet"); } else { response.setContentType("text/html"); response.setStatus(403); java.io.PrintWriter out = response.getWriter(); out.println("<html><head>"); out.println("<title>Login Error</title>"); out.println("</head><body>"); out.print("<h1>Bad credentials</h1>"); out.println("</body></html>"); } } }
package diagnosticCentre.manager; public interface PatientTestManager { }
package DPI.wecontroller; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import DPI.entity.Interaction; import DPI.service.InteractionService; @RestController // 咨询 public class InteractionController { @Autowired private InteractionService interactionService; // 当用户发送一个咨询时,插入一条数据 /** * @param doctorOpenid 咨询医生的openid * @param request */ @RequestMapping("/insertInteraction") public void insertInteraction(String doctorOpenid, HttpServletRequest request) { Date date = new Date(); SimpleDateFormat matter = new SimpleDateFormat("yyyy/MM/dd"); Interaction interaction = new Interaction(0, doctorOpenid, request.getSession().getAttribute("openId").toString(), false, matter.format(date)); interactionService.insertInteraction(interaction); } /** * * @param request * @return 一个包含一个map的list map由一个医生和一条咨询组成, 条件为当前用户发出的请求且医生同意了的咨询 */ @RequestMapping("/loadInteractionByOpenid") public List<Map> loadInteractionByOpenid(HttpServletRequest request) { return interactionService.loadInteractionByOpenid(request.getSession().getAttribute("openId").toString()); } }
/* * Created on Aug 20, 2006 * * To change the template for this generated file go to * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments */ package com.ibm.jikesbt; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import com.ibm.jikesbt.BT_BytecodeException.BT_InstructionReferenceException; import com.ibm.jikesbt.BT_StackShapeVisitor.StackShapes; /** * @author Sean Foley * * Represents a Java 5 stack map table stack frame */ public class BT_CLDCStackMapFrame extends BT_StackMapFrame { /* these types do not include the TOP value that accopmanies each double and long */ private BT_StackType locals[]; private BT_StackType stack[]; BT_CLDCStackMapFrame(int offset) throws BT_AttributeException { super(offset); } public BT_CLDCStackMapFrame(BT_BasicBlockMarkerIns instruction, BT_StackType locals[], BT_StackType stack[]) { super(instruction); this.locals = locals; this.stack = stack; } public Object clone() { BT_CLDCStackMapFrame f = (BT_CLDCStackMapFrame) super.clone(); locals = (BT_StackType[]) locals.clone(); for(int i=0; i<locals.length; i++) { locals[i] = (BT_StackType) locals[i].clone(); } stack = (BT_StackType[]) stack.clone(); for(int i=0; i<stack.length; i++) { stack[i] = (BT_StackType) stack[i].clone(); } return f; } String getAttributeName() { return BT_StackMapAttribute.CLDC_STACKMAP_NAME; } void getStack(StackShapes newShapes, BT_StackPool pool) { newShapes.newLocals = BT_StackMapFrames.copyFrameArrayToCellArray(null, locals, pool); newShapes.newStack = BT_StackMapFrames.copyFrameArrayToCellArray(stack, pool); } void read(DataInputStream dis, BT_ConstantPool pool, BT_CodeAttribute container) throws IOException, BT_AttributeException, BT_ConstantPoolException, BT_DescriptorException { int num = dis.readUnsignedShort(); locals = new BT_StackType[num]; for(int i=0; i<locals.length; i++) { locals[i] = readType(dis, pool); } num = dis.readUnsignedShort(); stack = new BT_StackType[num]; for(int i=0; i<stack.length; i++) { stack[i] = readType(dis, pool); } } void changeReferencesFromTo(BT_Ins oldIns, BT_Ins newIns) { super.changeReferencesFromTo(oldIns, newIns); for(int i=0; i<locals.length; i++) { locals[i].changeReferencesFromTo(oldIns, newIns); } for(int i=0; i<stack.length; i++) { stack[i].changeReferencesFromTo(oldIns, newIns); } } void dereference(BT_Repository rep, BT_StackMapAttribute owner) throws BT_InstructionReferenceException { if(instruction.opcode == OFFSET_INDICATOR_OPCODE) { BT_CodeAttribute code = owner.getCode(); instruction = code.getInstructions().findBasicBlock(code, owner, instruction.byteIndex); } for(int i=0; i<locals.length; i++) { locals[i].dereference(rep, owner); } for(int i=0; i<stack.length; i++) { stack[i].dereference(rep, owner); } } void resolve(BT_ConstantPool pool) { for(int i=0; i<locals.length; i++) { locals[i].resolve(pool); } for(int i=0; i<stack.length; i++) { stack[i].resolve(pool); } } int getLength() { int length = 6; for(int i=0; i<locals.length; i++) { length += locals[i].getWrittenLength(); } for(int i=0; i<stack.length; i++) { length += stack[i].getWrittenLength(); } return length; } void write(DataOutputStream dos, BT_ConstantPool pool) throws IOException { dos.writeShort(instruction.byteIndex); dos.writeShort(locals.length); for(int i=0; i<locals.length; i++) { locals[i].write(dos, pool); } dos.writeShort(stack.length); for(int i=0; i<stack.length; i++) { stack[i].write(dos, pool); } } public String toString() { return "frame at instruction " + instruction + "\n" + BT_StackType.toString(locals, stack); } public String getName() { return "CLDC"; } }
package com.zhao.leetcode; public class SearchInsert { public int searchInsert(int[] nums, int target) { int low =0; int high =nums.length-1; while (low<=high){ int mid = low+(high-low)/2; if (nums[mid]>=target){ if (mid==0||nums[mid-1]<target){ return mid; }else { high=mid-1; } }else { low=mid+1; } } return nums.length; } }
package com.company.Arrays; import java.util.Arrays; public class ArraysEx5 { public static void main(String [] args) { double[] mainArray = {1.3, 3.4, 4.5, 4.8}; int mainArrayLength = mainArray.length; //} //public static void calculations (double[] mainArray){ if (mainArrayLength < 3) { System.out.println(mainArray[0]+ "; " + mainArray[1]+ " "); System.out.println("average value= " + (mainArray[0] + mainArray[1])/2); } if(mainArrayLength == 3){ System.out.println(mainArray[0] + "; " + mainArray[1]+ "; " + mainArray[2]); System.out.println("average value= " +(mainArray[0] + mainArray[1]+mainArray[2])/3); } if (mainArrayLength>3 && mainArrayLength%2==0){ double average=0; for (double value:mainArray) { double sum=0; sum+=value; average = sum/mainArrayLength; } System.out.println(mainArray[0] + "; " + mainArray[mainArrayLength/2]+ "; "+ mainArray[mainArrayLength/2+1]+ "; " + mainArray[mainArrayLength-1]); System.out.println("Average is= "+ average); } if (mainArrayLength>3 && mainArrayLength%2!=0){ double average=0; for (double value:mainArray) { double sum=0; sum+=value; average = sum/mainArrayLength; } System.out.println(mainArray[0] + "; " + mainArray[mainArrayLength/2]+ "; "+ mainArray[mainArrayLength-1]); System.out.println("Average is= "+ average); } } }
package com.fengniao.lightmusic.activity; import android.app.Activity; import android.os.Build; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.view.WindowManager; public class BaseActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { // getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | // View.SYSTEM_UI_FLAG_LAYOUT_STABLE); //设置状态栏为透明 WindowManager.LayoutParams localLayoutParams = getWindow().getAttributes(); localLayoutParams.flags = WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS | localLayoutParams.flags; } } public Activity getActivity() { return this; } }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific * language governing permissions and limitations under the License. */ package org.apache.clerezza; import java.util.Collection; import java.util.Iterator; import java.util.concurrent.locks.ReadWriteLock; /** * A set of triples (as it doesn't allow duplicates), it does however * not extend {@link java.util.Set} as it doesn't inherit its * specification for <code>hashCode()</code> and <code>equals</code>. * It is possible to add <code>GraphListener</code> to listen for modifications * in the triples. * * @author reto */ public interface Graph extends Collection<Triple> { /** * Filters triples given a pattern. * filter(null, null, null) returns the same as iterator() * * @param subject * @param predicate * @param object * @return <code>Iterator</code> */ public Iterator<Triple> filter(BlankNodeOrIRI subject, IRI predicate, RDFTerm object); /** * Returns true if <code>other</code> describes the same graph and will * always describe the same graph as this instance, false otherwise. * It returns true if this == other or if it * is otherwise guaranteed that changes to one of the instances are * immediately reflected in the other or if both graphs are immutable. * * @param other * @return true if other == this */ @Override public boolean equals(Object other); /** * Returns an ImutableGraph describing the graph at the current point in * time. if <code>this</code> is an instance of ImmutableGraph this can * safely return <code>this</code>. * * @return the current time slice of the possibly mutable graph represented by the instance. */ public ImmutableGraph getImmutableGraph(); /** * The lock provided by this methods allows to create read- and write-locks * that span multiple method calls. Having a read locks prevents other * threads from writing to this Graph, having a write-lock prevents other * threads from reading and writing. Implementations would typically * return a <code>java.util.concurrent.locks.ReentrantReadWriteLock</code>. * Immutable instances (such as instances of <code>ImmutableGraph</code>) * or instances used in transaction where concurrent acces of the same * instance is not an issue may return a no-op ReadWriteLock (i.e. one * which returned ReadLock and WriteLock instances of which the methods do * not do anything) * * @return the lock of this Graph */ ReadWriteLock getLock(); }
package com.example.myfirstapi.controller; import com.example.myfirstapi.model.Category; import com.example.myfirstapi.repository.CategoryRepository; import lombok.RequiredArgsConstructor; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import java.util.List; import java.util.Optional; @RestController @RequiredArgsConstructor public class CategoryController { private final CategoryRepository categoryRepository; @GetMapping("/category") public ResponseEntity<?> getAllCategory(){ if (categoryIsEmpty()){ return ResponseEntity.notFound().build(); }else{ return ResponseEntity.ok(categoryRepository.findAll()); } } @PostMapping("/category") public ResponseEntity<?> createNewCategory(@RequestBody Category newCategory){ if (duplicateCategory(newCategory)){ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); }else if (isShortName(newCategory)){ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); }else{ return new ResponseEntity<>(saveCategory(newCategory), HttpStatus.CREATED); } } @PutMapping("/category/{id}") public ResponseEntity<?> updateCategory(@PathVariable("id") long id, @RequestBody Category category){ if (duplicateCategory(category)) { return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); }else if (isShortName(category)){ return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); }else if (categoryNotExists(id)){ return new ResponseEntity<>(HttpStatus.NOT_FOUND); }else { return new ResponseEntity<>(changeNameCategory(category, id), HttpStatus.OK); } } @DeleteMapping("/category/{id}") public ResponseEntity<?> deleteCategory(@PathVariable("id") Long id) { try { if (categoryExists(id)){ categoryRepository.deleteById(id); return ResponseEntity.noContent().build(); }else{ return new ResponseEntity<>(HttpStatus.NOT_FOUND); } }catch (Exception e) { return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); } } @DeleteMapping("/category") public ResponseEntity<?> deleteAllCategory(){ if (categoryIsEmpty()){ return ResponseEntity.notFound().build(); }else{ categoryRepository.deleteAll(); return ResponseEntity.noContent().build(); } } private boolean categoryIsEmpty(){ return categoryRepository.findAll().isEmpty(); } private boolean isShortName(Category category){ return (category.getName().length() < 3); } private boolean duplicateCategory(Category category){ Optional<Category> categoryData = categoryRepository.findByName(category.getName()); return categoryData.isPresent(); } private boolean categoryExists(Long id){ Optional<Category> categoryData = categoryRepository.findById(id); return categoryData.isPresent(); } private boolean categoryNotExists(Long id){ return !categoryExists(id); } private Category saveCategory(Category category){ return categoryRepository.save(new Category(category.getName())); } private Category changeNameCategory(Category category, Long id){ Category categoryChanged = categoryRepository.findById(id).get(); categoryChanged.setName(category.getName()); return categoryRepository.save(categoryChanged); } }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package gr.spinellis.ckjm; import org.apache.bcel.classfile.JavaClass; import org.apache.bcel.classfile.Method; /** * * @author marian */ public class MfaClassVisitor extends AbstractClassVisitor { public MfaClassVisitor(IClassMetricsContainer mc){ super(mc); } /** * All constructors (static too) are ignored. * @param methods array of methods * @return Number of not constructors in given array of methods */ private int howManyIgnore(Method[] methods) { int ign = 0; for( Method m : methods ){ if( m.getName().equals("<init>") || m.getName().equals("<clinit>") ){ ign++; } } return ign; } private int getNumOfMethods( JavaClass jc ){ if( jc.getClassName().compareTo("java.lang.Object") == 0 ){ //When the java.lang.Object is the parent return 0; //we do not analyze the parent's methods. } Method[] methods = jc.getMethods(); return methods.length - howManyIgnore(methods); } @Override protected void visitJavaClass_body(JavaClass jc) { double pNumOfMeth=0; try { JavaClass parent = jc.getSuperClass(); JavaClass parents[] = jc.getSuperClasses(); for (JavaClass p : parents) { pNumOfMeth += getNumOfMethods(p); } } catch (ClassNotFoundException cnfe) { cnfe.printStackTrace(); } double cNumOfMeth = getNumOfMethods( jc ); double result; if( cNumOfMeth+pNumOfMeth == 0 ){ result = 0; } else{ result = pNumOfMeth / (cNumOfMeth + pNumOfMeth); } mClassMetrics.setMfa(result); } }
package com.zsl.web.common.dao; public interface IBaseDao<T> { }
/** * OpenKM, Open Document Management System (http://www.openkm.com) * Copyright (c) 2006-2015 Paco Avila & Josep Llort * * No bytes were intentionally harmed during the development of this application. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ package com.openkm.extension.servlet; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.openkm.core.AccessDeniedException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.openkm.api.OKMDocument; import com.openkm.api.OKMFolder; import com.openkm.api.OKMRepository; import com.openkm.bean.Document; import com.openkm.bean.Folder; import com.openkm.core.DatabaseException; import com.openkm.core.PathNotFoundException; import com.openkm.core.RepositoryException; import com.openkm.util.EnvironmentDetector; import com.openkm.util.PathUtils; import com.openkm.util.UserActivity; import com.openkm.util.WebUtils; /** * Data browser servlet */ public class DataBrowserServlet extends BaseServlet { private static final long serialVersionUID = 1L; private static Logger log = LoggerFactory.getLogger(DataBrowserServlet.class); private static final String SEL_BOTH = "both"; private static final String SEL_FOLDER = "fld"; private static final String SEL_DOCUMENT = "doc"; @Override public void service(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String method = request.getMethod(); if (method.equals(METHOD_GET)) { doGet(request, response); } else if (method.equals(METHOD_POST)) { doPost(request, response); } } @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setCharacterEncoding("UTF-8"); String action = WebUtils.getString(request, "action"); updateSessionManager(request); try { if (action.equals("fs")) { fileSystemList(request, response); } else if (action.equals("repo")) { repositoryList(request, response); } } catch (PathNotFoundException e) { log.error(e.getMessage(), e); sendErrorRedirect(request,response, e); } catch (RepositoryException e) { log.error(e.getMessage(), e); sendErrorRedirect(request,response, e); } catch (Exception e) { log.error(e.getMessage(), e); sendErrorRedirect(request,response, e); } } /** * File system list */ private void fileSystemList(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { log.debug("fileSystemList({}, {})", request, response); String path = WebUtils.getString(request, "path", EnvironmentDetector.getUserHome()); String sel = WebUtils.getString(request, "sel", SEL_BOTH); String dst = WebUtils.getString(request, "dst"); String root = WebUtils.getString(request, "root"); File dir = new File(path.isEmpty() ? EnvironmentDetector.getUserHome() : path); List<Map<String, String>> folders = new ArrayList<Map<String, String>>(); List<Map<String, String>> documents = new ArrayList<Map<String, String>>(); boolean browseParent = false; if (!root.equals("")) { browseParent= !root.equals(dir.getPath()); } else { browseParent = !Arrays.asList(File.listRoots()).contains(dir); } // Add parent folder link if (browseParent) { Map<String, String> item = new HashMap<String, String>(); File parent = dir.getParentFile(); item.put("name", "&lt;PARENT FOLDER&gt;"); item.put("path", fixPath(parent.getPath())); item.put("sel", "false"); folders.add(item); } for (File f : dir.listFiles()) { Map<String, String> item = new HashMap<String, String>(); if (f.isDirectory() && !f.isHidden()) { item.put("name", f.getName()); item.put("path", fixPath(f.getPath())); if (sel.equals(SEL_BOTH) || sel.equals(SEL_FOLDER)) { item.put("sel", "true"); } else { item.put("sel", "false"); } folders.add(item); } else if (f.isFile() && !f.isHidden() && (sel.equals(SEL_BOTH) || sel.equals(SEL_DOCUMENT))) { item.put("name", f.getName()); item.put("path", fixPath(f.getPath())); item.put("sel", "true"); documents.add(item); } } // Sort Collections.sort(folders, new MapComparator()); Collections.sort(documents, new MapComparator()); ServletContext sc = getServletContext(); sc.setAttribute("action", "fs"); sc.setAttribute("path", path); sc.setAttribute("root", root); sc.setAttribute("dst", dst); sc.setAttribute("sel", sel); sc.setAttribute("folders", folders); sc.setAttribute("documents", documents); sc.getRequestDispatcher("/extension/data_browser.jsp").forward(request, response); // Activity log UserActivity.log(request.getRemoteUser(), "BROWSER_FILESYSTEM_LIST", null, path, null); log.debug("fileSystemList: void"); } /** * Fix path when deployed in Windows */ private String fixPath(String path) { if (EnvironmentDetector.isWindows()) { return path.replace("\\", "/"); } else { return path; } } /** * File system list */ private void repositoryList(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException { log.debug("repositoryList({}, {})", request, response); Folder rootFolder = OKMRepository.getInstance().getRootFolder(null); String path = WebUtils.getString(request, "path", rootFolder.getPath()); String sel = WebUtils.getString(request, "sel", SEL_BOTH); String dst = WebUtils.getString(request, "dst"); String root = WebUtils.getString(request, "root", "/"); List<Map<String, String>> folders = new ArrayList<Map<String, String>>(); List<Map<String, String>> documents = new ArrayList<Map<String, String>>(); if (!root.equals(path)) { // Add parent folder link Map<String, String> item = new HashMap<String, String>(); item.put("name", "&lt;PARENT FOLDER&gt;"); item.put("path", PathUtils.getParent(path)); item.put("sel", "false"); folders.add(item); } for (Folder fld : OKMFolder.getInstance().getChildren(null, path)) { Map<String, String> item = new HashMap<String, String>(); item.put("name", PathUtils.getName(fld.getPath())); item.put("path", fld.getPath()); if (sel.equals(SEL_BOTH) || sel.equals(SEL_FOLDER)) { item.put("sel", "true"); } else { item.put("sel", "false"); } folders.add(item); } if (sel.equals(SEL_BOTH) || sel.equals(SEL_DOCUMENT)) { for (Document doc : OKMDocument.getInstance().getChildren(null, path)) { Map<String, String> item = new HashMap<String, String>(); item.put("name", PathUtils.getName(doc.getPath())); item.put("path", doc.getPath()); item.put("sel", "true"); documents.add(item); } } // Sort Collections.sort(folders, new MapComparator()); Collections.sort(documents, new MapComparator()); ServletContext sc = getServletContext(); sc.setAttribute("action", "repo"); sc.setAttribute("path", path); sc.setAttribute("root", root); sc.setAttribute("dst", dst); sc.setAttribute("sel", sel); sc.setAttribute("folders", folders); sc.setAttribute("documents", documents); sc.getRequestDispatcher("/extension/data_browser.jsp").forward(request, response); // Activity log UserActivity.log(request.getRemoteUser(), "BROWSER_REPOSITORY_LIST", null, path, null); log.debug("repositoryList: void"); } /** * Specialized comparator. */ private class MapComparator implements Comparator<Map<String, String>> { @Override public int compare(Map<String, String> o1, Map<String, String> o2) { return o1.get("name").compareToIgnoreCase(o2.get("name")); } } }
package io.zipcoder.microlabs.mastering_loops; public class Shapes { public static String triangle(){ String triangle = "*** Output ***"; //first for loop per line while next for loop per * for(int i = 1; i<=5; i++){ triangle+="\n"; for(int j = 1; j<=i;j++) triangle+="*"; } return triangle; } private String multiplicationTable(int squareSize){ String multiplicationTable = ""; for(int i=1;i<=squareSize;i++){ multiplicationTable+="\n|"; for(int j=1;j<=squareSize;j++){ multiplicationTable+=String.format("%3d|", j*i); } } return multiplicationTable; } public String tableSquare(int squareSize){ return multiplicationTable(squareSize); } }
package com.technology.share.domain; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; /** * Redis链接实体类 */ @TableName("t_redis") @Data public class Redis extends BaseEntity { /**Redis链接地址*/ private String host; /**Redis端口号*/ private Integer port; /**Redis链接用户名*/ private String username; /**Redis链接密码*/ private String password; /**是否启用*/ private Boolean enable; }
package com.smxknife.springcloud.netflix.eureka.fileupload.controller; import org.springframework.stereotype.Controller; import org.springframework.util.FileCopyUtils; 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.bind.annotation.ResponseBody; import org.springframework.web.multipart.MultipartFile; import java.io.File; import java.io.IOException; /** * @author smxknife * 2018/9/16 */ @Controller @RequestMapping("/file") public class FileController { @RequestMapping(value = "upload", method = RequestMethod.POST) @ResponseBody public String upload(@RequestParam("file") MultipartFile file) throws IOException { byte[] bytes = file.getBytes(); File fileToSave = new File(file.getOriginalFilename()); FileCopyUtils.copy(bytes, fileToSave); return fileToSave.getAbsolutePath(); } }
package Project3; public class EncapTest { public static void main(String[] args) { EncapsulationPerson ep =new EncapsulationPerson(); ep.setName("Eva"); ep.setDob("02-22-1992"); ep.setSsn("222-44-7890"); System.out.println(ep.getName()+ " " +ep.getDob()); EncapsulationPerson ep1 =new EncapsulationPerson("li li", "04-44=1945", "222-44-7777"); System.out.println(ep1.getName()+ " " +ep1.getDob() + " " + ep1.getSsn()); } }
package com.tencent.mm.plugin.luckymoney.appbrand.a; import com.tencent.mm.by.f; import com.tencent.mm.protocal.c.bhd; import com.tencent.mm.protocal.c.bhp; public abstract class a<Req extends bhd, Resp extends bhp> { private com.tencent.mm.ab.a kKL; Req kKM; private Resp kKN; protected abstract int If(); protected abstract Resp bax(); protected abstract String getUri(); public final <T> f<T> b(com.tencent.mm.vending.c.a<T, com.tencent.mm.ab.a.a<Resp>> aVar) { boolean z = true; bay(); this.kKN = bax(); this.kKL = new com.tencent.mm.ab.a(); com.tencent.mm.ab.a aVar2 = this.kKL; bhd bhd = this.kKM; bhp bhp = this.kKN; if (bhd == null || bhp == null) { StringBuilder append = new StringBuilder("CgiBase called withoud req or resp req?[").append(bhd == null).append("] resp?["); if (bhp != null) { z = false; } throw new IllegalStateException(append.append(z).append("]").toString()); } com.tencent.mm.ab.b.a aVar3 = new com.tencent.mm.ab.b.a(); aVar3.dIF = If(); aVar3.uri = getUri(); aVar3.dIG = bhd; aVar3.dIH = bhp; aVar2.diG = aVar3.KT(); return this.kKL.KM().g(new 1(this)).b(aVar); } protected void bay() { } protected void baz() { } }
package asu.shell.sh; import asu.shell.sh.util.Assertion; import asu.shell.sh.util.Util; import java.io.PrintStream; import java.util.ArrayList; import java.util.Hashtable; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; public class History { private static History instance = new History(); private AtomicInteger idCounter = new AtomicInteger(0); private final Hashtable<Integer, Record> commands = new Hashtable<Integer, Record>(); public static History getInstance() { return instance; } public void record(String commandLine) { Record localRecord = new Record(idCounter.getAndIncrement(), commandLine); this.commands.put(new Integer(localRecord.getId()), localRecord); trimHistory(); } public void printLast(int paramInt, PrintStream paramPrintStream) { if ((paramInt == 0) || (paramInt > this.commands.size())) { paramInt = this.commands.size(); } int i = this.idCounter.get() - paramInt; int j = this.idCounter.get() - 1; for (int k = i; k <= j; k++) { Integer localInteger = new Integer(k); Record localRecord = this.commands.get(localInteger); paramPrintStream.println(localRecord.getId() + ": " + localRecord.getCommandLine()); } } public String[] getHistArray() { List<String> list = new ArrayList(); int i = 0; int j = this.idCounter.get(); for (int k = i; k < j; k++) { Integer localInteger = new Integer(k); Record localRecord = this.commands.get(localInteger); list.add(localRecord.getCommandLine()); } return list.toArray(new String[0]); } public int lastCommandId() { return this.idCounter.get() - 1; } public String commandLine(int paramInt) { Record localRecord = this.commands.get(new Integer(paramInt)); return localRecord == null ? null : localRecord.getCommandLine(); } private void trimHistory() { int i = Integer.parseInt(Util.systemProperty("asu.shell.history_size")); int j = this.idCounter.get() - this.commands.size(); int k = this.commands.size() - i; int m = j + k - 1; for (int n = j; n <= m; n++) { Integer localInteger = new Integer(n); Assertion.check(this.commands.remove(localInteger) != null); } } static class Record { private final int id; private final String commandLine; public int getId() { return this.id; } public String getCommandLine() { return this.commandLine; } public Record(int paramInt, String paramString) { this.id = paramInt; this.commandLine = paramString; } } }
package com.ola.cabbooking.model; import lombok.Getter; import lombok.Setter; @Getter @Setter public class DriverContext { Integer driverId; Location location; }
/** * Main FAGI package. */ package gr.athena.innovation.fagi;
package cn.dunn.much; import io.vertx.core.DeploymentOptions; import io.vertx.core.Vertx; import io.vertx.core.VertxOptions; public class Main { public static void main(String[] args) { VertxOptions option = new VertxOptions(); option.setEventLoopPoolSize(32); Vertx vertx = Vertx.vertx(option); DeploymentOptions deploymentOptions = new DeploymentOptions(); deploymentOptions.setInstances(32); vertx.deployVerticle(MyVerticle1.class.getName(), deploymentOptions); } }
package com.jawspeak.unifier; import java.util.List; public class ClassGenerator { private final List<ClassPathModification> classModifications; public ClassGenerator(List<ClassPathModification> classModifications) { this.classModifications = classModifications; } public void generate() { // TODO how do i instead want to pass around generated classes? I don't want this, because it requires an output directory to test. byte[] or custom classloader? } }
import java.io.PrintStream; import java.text.MessageFormat; import java.util.Arrays; import java.util.Date; import java.util.UUID; public class Main { public static void main(String[] args) { // "{}|[]|()", "" StudentBuilder studentBuilder = new StudentBuilder(); studentBuilder.id = ""; System.out.println(studentBuilder); PrintStream logger = System.out; logger.print(MessageFormat .format("Test info {0} and {1}\n", 1, 2)); StudentBuilder studentBuilder1 = new StudentBuilder() .setArr(null) .setChildren(5) .setDob(new Date()); Student student = studentBuilder1 .build(); Student student2 = studentBuilder1 .build(); System.out.println(UUID.randomUUID().toString()); } public static class Student { static int counter; String id; String name; Date dob; int children; int[] arr; } public static class StudentBuilder { String id; String name; Date dob; Date dateOfCreation; int children; int[] arr; public Student build() { Student student = new Student(); student.id = UUID.randomUUID().toString(); // student.dateOfCreation = return student; } public String getId() { return id; } public StudentBuilder setId(String id) { this.id = id; return this; } public String getName() { return name; } public StudentBuilder setName(String name) { this.name = name; return this; } public Date getDob() { return dob; } public StudentBuilder setDob(Date dob) { this.dob = dob; return this; } public int getChildren() { return children; } public StudentBuilder setChildren(int children) { this.children = children; return this; } public int[] getArr() { return arr; } public StudentBuilder setArr(int[] arr) { this.arr = arr; return this; } @Override public String toString() { return MessageFormat .format("Student'{'id=''{0}'', name=''{1}'', dob={2}, children={3}, arr={4}'}'", id, name, dob, children, Arrays.toString(arr)); } } }
package com.tencent.mm.platformtools; import android.graphics.Bitmap; import com.tencent.mm.kernel.g; import com.tencent.mm.sdk.platformtools.bi; import java.lang.ref.WeakReference; import java.util.Collection; import java.util.LinkedList; import java.util.Vector; public final class y { private static Vector<WeakReference<a>> dHo = new Vector(); private static LinkedList<a> ewc = new LinkedList(); public interface a { void m(String str, Bitmap bitmap); } static /* synthetic */ void l(String str, Bitmap bitmap) { Collection vector = new Vector(); int i = 0; while (true) { int i2 = i; if (i2 < dHo.size()) { WeakReference weakReference = (WeakReference) dHo.get(i2); if (weakReference != null) { a aVar = (a) weakReference.get(); if (aVar != null) { aVar.m(str, bitmap); } else { vector.add(weakReference); } } i = i2 + 1; } else { dHo.removeAll(vector); return; } } } public static boolean a(a aVar) { return dHo.add(new WeakReference(aVar)); } public static boolean b(a aVar) { ewc.remove(aVar); return ewc.add(aVar); } public static boolean c(a aVar) { return ewc.remove(aVar); } public static Bitmap a(w wVar) { if (!b(wVar)) { return null; } if (!g.Ei().DW()) { return wVar.VA(); } if (wVar.Vz()) { return b.a(b.ewd, wVar); } return b.b(b.ewd, wVar); } public static Bitmap oQ(String str) { return b.oQ(str); } public static Bitmap o(String str, int i, int i2) { return b.o(str, i, i2); } public static Bitmap oR(String str) { return b.oR(str); } private static boolean b(w wVar) { if (wVar == null || bi.oW(wVar.Vw())) { return false; } return true; } }
import java.time.Month; public class TypesForFields { public static void main(String[] args) { final ManyTypes manyTypes = new ManyTypes(); if (manyTypes.a0 != Byte.MIN_VALUE && manyTypes.a0 != Byte.MAX_VALUE) { throw new RuntimeException("Invalid type or value of a0."); } if (manyTypes.a1 != Short.MIN_VALUE && manyTypes.a1 != Short.MAX_VALUE) { throw new RuntimeException("Invalid type or value of a1."); } if (!(manyTypes.a2.getClass().getName().equals("java.lang.Character")) | (Character.getNumericValue(manyTypes.a2) < 0) | (Character.getNumericValue(manyTypes.a2) > 10)) { throw new RuntimeException("Invalid type or value of a2."); } if (manyTypes.a3 != Integer.MIN_VALUE & manyTypes.a3 != Integer.MAX_VALUE) { throw new RuntimeException("Invalid type or value of a3."); } if (manyTypes.a4 != Long.MIN_VALUE & manyTypes.a4 != Long.MAX_VALUE) { throw new RuntimeException("Invalid type or value of a4."); } if (manyTypes.a5 != (Float.MAX_VALUE / 0.1F)) { throw new RuntimeException("Invalid type or value of a5."); } if (manyTypes.a6 != Double.NEGATIVE_INFINITY) { throw new RuntimeException("Invalid type or value of a6."); } // logical type if (!manyTypes.tumbler) { throw new RuntimeException("Invalid type or value of tumbler."); } // reference types manyTypes.day = DaysOfTheWeek.Wednesday; if (!manyTypes.day.getClass().getName().equals("DaysOfTheWeek")) { throw new RuntimeException("Invalid type of day."); } manyTypes.month = Month.FEBRUARY; if (!manyTypes.month.getClass().getName().equals("java.time.Month")) { throw new RuntimeException("Invalid type of month."); } manyTypes.someName = "Trololosh"; if (!manyTypes.someName.getClass().getName().equals("java.lang.String")) { throw new RuntimeException("Invalid type of someName."); } manyTypes.mail = "example@mail"; if (!manyTypes.someName.getClass().getName().equals("java.lang.String")) { throw new RuntimeException("Invalid type of mail."); } } }
public class Name { public static void main(String args[]) { System.out.println("Name: Shashank Bahukhandi"); System.out.println("Roll No: 1922060"); } }
package com.yuecheng.yue.ui.interactor.impl; import android.os.Build; import android.support.annotation.RequiresApi; import com.yuecheng.yue.http.ApiServicesManager; import com.yuecheng.yue.http.ICommonInteractorCallback; import com.yuecheng.yue.ui.interactor.YUE_ISetUserInfoInteractor; import com.yuecheng.yue.util.YUE_LogUtils; import java.io.File; import io.reactivex.Observer; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.disposables.Disposable; import io.reactivex.schedulers.Schedulers; import okhttp3.MediaType; import okhttp3.MultipartBody; import okhttp3.RequestBody; import okhttp3.ResponseBody; /** * Created by Administrator on 2018/1/23. */ public class YUE_SetUserInfoInteractorImpl implements YUE_ISetUserInfoInteractor { /** * 上传头像, * @param imageHeadericon 保存的头像名称 * @param path 上传的路径 * @param l 结果回调 */ @Override public void uploadHeaderIcon(String imageHeadericon,String path, final ICommonInteractorCallback l) { File file = new File(path); RequestBody requestFile = new MultipartBody.Builder().setType(MultipartBody.FORM) .addFormDataPart("imageHeaderIcon", imageHeadericon) .addFormDataPart("file", file.getName(), RequestBody.create(MediaType.parse("image/*"), file)) .build(); ApiServicesManager.getInstence().getYueapi() .uploadHeader(requestFile) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(new Observer<ResponseBody>() { @Override public void onSubscribe(Disposable d) { l.addDisaposed(d); } @RequiresApi(api = Build.VERSION_CODES.KITKAT) @Override public void onNext(ResponseBody responseBody) { String str = responseBody.toString(); YUE_LogUtils.d("jieguo:",str); } @Override public void onError(Throwable e) { l.loadFailed(); } @Override public void onComplete() { l.loadCompleted(); } }); } }
/* * Copyright (C) 2015 Miquel Sas * * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public * License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with this program. If not, see * <http://www.gnu.org/licenses/>. */ package com.qtplaf.library.util; import java.io.IOException; import java.text.MessageFormat; import java.util.ArrayList; import java.util.HashMap; import javax.swing.ImageIcon; import com.qtplaf.library.util.file.FileUtils; /** * Static image icon utilities. * * @author Miquel Sas */ public class ImageIconUtils { /** * The list of jar files that contains images. */ private static ArrayList<String> iconImagesFiles = new ArrayList<>(); /** * The map that will contain images loaded from jar files or the file system. */ private static HashMap<String, ImageIcon> iconImagesMap = new HashMap<>(); /** * Add a file name to the list of file name that contain icon images. Default is images.jar * * @param fileName The file name to add. */ synchronized public static void addIconImageFile(String fileName) { iconImagesFiles.add(fileName); } /** * Returns the image icon scanning a list of jar files that contain images and if not found finally scanning the * file system. * * @param imageName The image path name. * @return The ImageIcon or null if the image was not found or an IO exception was thrown. */ synchronized public static ImageIcon getImageIcon(String imageName) { try { ImageIcon imageIcon = iconImagesMap.get(imageName); if (imageIcon != null) { return imageIcon; } if (iconImagesFiles.isEmpty()) { // addIconImageFile("images.jar"); } for (String fileName : iconImagesFiles) { byte[] bytes = FileUtils.getJarEntry(fileName, imageName); if (bytes != null) { imageIcon = new ImageIcon(bytes); iconImagesMap.put(imageName, imageIcon); return imageIcon; } } byte[] bytes = FileUtils.getFileBytes(imageName); if (bytes != null) { imageIcon = new ImageIcon(bytes); iconImagesMap.put(imageName, imageIcon); return imageIcon; } throw new IOException(MessageFormat.format("Image {0} not found", imageName)); } catch (IOException ioExc) { ioExc.printStackTrace(); } return null; } }
package com.fsoft.fa.interviewprocessmanagement.model; import javax.persistence.*; import java.util.Set; @Entity public class User { @Id @Column(name = "user_id") @GeneratedValue(strategy = GenerationType.AUTO) private int id; @Column(name = "username", unique = true) private String username; @Column(name = "password") private String password; @Column(name = "name") private String name; @Column(name = "phone") private int phone; @Column(name = "email") private String email; @Column(name = "active") private boolean isActive; @ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinTable(name = "user_role", joinColumns = @JoinColumn(name = "user_id"), inverseJoinColumns = @JoinColumn(name = "role_id")) private Set<Role> roles; @OneToOne(mappedBy = "interviewer", fetch = FetchType.LAZY) @JoinColumn(name = "interview_id") private transient Interview interview; public User() { } public Interview getInterview() { return interview; } public void setInterview(Interview interview) { this.interview = interview; } /*** * Cloning into a new object * @param user - Current user */ public User(User user) { this.id = user.getId(); this.username = user.getUsername(); this.password = user.getPassword(); this.name = user.getName(); this.email = user.getEmail(); this.phone = user.getPhone(); this.isActive = user.isActive(); this.roles = user.getRoles(); } public User(String username, String password, String name, int phone, String email, boolean isActive, Set<Role> roles) { super(); this.username = username; this.password = password; this.name = name; this.phone = phone; this.email = email; this.isActive = isActive; this.roles = roles; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public int getPhone() { return phone; } public void setPhone(int phone) { this.phone = phone; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public boolean isActive() { return isActive; } public void setActive(boolean active) { isActive = active; } public Set<Role> getRoles() { return roles; } public void setRoles(Set<Role> roles) { this.roles = roles; } public void enrollInterview(Interview interview) { interview.setInterviewer(this); setInterview(interview); } }
package com.app.pojos; import java.time.LocalDate; import java.util.ArrayList; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.CollectionTable; import javax.persistence.Column; import javax.persistence.ElementCollection; import javax.persistence.Embedded; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; import javax.persistence.Lob; import javax.persistence.ManyToMany; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Table; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @Entity @Table(name="teachers") @JsonIgnoreProperties(value = {"sessions", "teacherCourse"}) public class Teacher extends Base{ @Column(name="teacher_name") private String teacherName; @Column(name="email") private String email; @Column(name="age") private int age; @Column(name="gender") @Enumerated(EnumType.STRING) private Gender gender; @Column(name="exp_year") private long expYear; @Column(name="rate") private int rate; @Column(name="per_hour_fees") private long perHourFees; @Column(name="joining_date") private LocalDate joiningDate; @Column(name="status") private boolean status; @Lob @Column(name="resume") private byte[] resume; @Column(name="docType") private String docType; @Embedded private Address address; @OneToMany(mappedBy = "teacher", fetch = FetchType.LAZY) private List<Session> sessions= new ArrayList<>(); @ElementCollection @CollectionTable( name="teachers_phone_no", joinColumns = @JoinColumn(name="teacher_id") ) @Column(name="phones") private List<String> phones; @OneToMany(mappedBy="teacher", cascade = CascadeType.ALL, orphanRemoval = true, fetch=FetchType.LAZY) private List<TeacherCourse> teacherCourse = new ArrayList<TeacherCourse>(); @ManyToOne @JoinColumn(name="user_id") private User userName; public Teacher() { super(); } public Teacher(long id, long version,String teacherName, String email, int age, Gender gender, long expYear, int rate, long perHourFees, LocalDate joiningDate, boolean status, byte[] resume, Address address) { super(id, version); this.teacherName = teacherName; this.email = email; this.age = age; this.gender = gender; this.expYear = expYear; this.rate = rate; this.perHourFees = perHourFees; this.joiningDate = joiningDate; this.status = status; this.resume = resume; this.address = address; } public Teacher(String teacherName, String email, int age, Gender gender, long expYear, int rate, long perHourFees, LocalDate joiningDate, boolean status, byte[] resume, Address address) { super(); this.teacherName = teacherName; this.email = email; this.age = age; this.gender = gender; this.expYear = expYear; this.rate = rate; this.perHourFees = perHourFees; this.joiningDate = joiningDate; this.status = status; this.resume = resume; this.address = address; } public String getDocType() { return docType; } public void setDocType(String docType) { this.docType = docType; } public List<TeacherCourse> getTeacherCourse() { return teacherCourse; } public void setTeacherCourse(List<TeacherCourse> teacherCourse) { this.teacherCourse = teacherCourse; } public String getTeacherName() { return teacherName; } public void setTeacherName(String teacherName) { this.teacherName = teacherName; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } public Gender getGender() { return gender; } public void setGender(Gender gender) { this.gender = gender; } public long getExpYear() { return expYear; } public void setExpYear(long expYear) { this.expYear = expYear; } public int getRate() { return rate; } public void setRate(int rate) { this.rate = rate; } public long getPerHourFees() { return perHourFees; } public void setPerHourFees(long perHourFees) { this.perHourFees = perHourFees; } public LocalDate getJoiningDate() { return joiningDate; } public void setJoiningDate(LocalDate joiningDate) { this.joiningDate = joiningDate; } public boolean isStatus() { return status; } public void setStatus(boolean status) { this.status = status; } public byte[] getResume() { return resume; } public void setResume(byte[] resume) { this.resume = resume; } public Address getAddress() { return address; } public void setAddress(Address address) { this.address = address; } public List<Session> getSessions() { return sessions; } public void setSessions(List<Session> sessions) { this.sessions = sessions; } public List<String> getPhones() { return phones; } public void setPhones(List<String> phones) { this.phones = phones; } public User getUserName() { return userName; } public void setUserName(User userName) { this.userName = userName; } public void addSession(Session s) { this.sessions.add(s); s.setTeacher(this); } public void addTeacherCourse(TeacherCourse tc) { this.teacherCourse.add(tc); tc.setTeacher(this); } @Override public String toString() { return "Teacher [teacherName=" + teacherName + ", email=" + email + ", age=" + age + ", gender=" + gender + ", expYear=" + expYear + ", rate=" + rate + ", perHourFees=" + perHourFees + ", joiningDate=" + joiningDate + ", status=" + status + ", userName=" + userName + "]"; } }
package carro; /** * * @author Akari */ public class Carro { public String cor; public String motor; public String placa; public String retrovisor; public String marca; }
package ex2; /* @luizASSilveira */ import java.util.Random; public class ThreadSleep extends Thread{ Monitor monitor; public ThreadSleep(Monitor monitor) { this.monitor = monitor; } @Override public void run() { Random number = new Random(); int valAleatorio = number.nextInt(100); System.out.println("valor aleatorio: " + valAleatorio); int valor = monitor.sleepUntil(valAleatorio); System.out.println("Thread: " + this.getId() + " acordou no cout: " + valor); } }
/* * Copyright © 2015 nirack Corporation, All Rights Reserved. */ package com.yaochen.address.data.mapper.std; import com.easyooo.framework.sharding.annotation.Table; import com.yaochen.address.data.domain.std.StdServiceTeam; import com.yaochen.address.support.Repository; @Table("STD_SERVICE_TEAM") @Repository public interface StdServiceTeamMapper { int deleteByPrimaryKey(Integer teamId); int insert(StdServiceTeam record); int insertSelective(StdServiceTeam record); StdServiceTeam selectByPrimaryKey(Integer teamId); int updateByPrimaryKeySelective(StdServiceTeam record); int updateByPrimaryKey(StdServiceTeam record); }
/** * OpenKM, Open Document Management System (http://www.openkm.com) * Copyright (c) 2006-2015 Paco Avila & Josep Llort * * No bytes were intentionally harmed during the development of this application. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ package com.openkm.frontend.client.widget.dashboard; import java.util.List; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.VerticalPanel; import com.openkm.frontend.client.Main; import com.openkm.frontend.client.bean.GWTDashboardDocumentResult; import com.openkm.frontend.client.bean.GWTDashboardFolderResult; import com.openkm.frontend.client.constants.ui.UIDashboardConstants; import com.openkm.frontend.client.constants.ui.UIDockPanelConstants; import com.openkm.frontend.client.service.OKMDashboardService; import com.openkm.frontend.client.service.OKMDashboardServiceAsync; /** * UserDashboard * * @author jllort * */ public class UserDashboard extends Composite { private final OKMDashboardServiceAsync dashboardService = (OKMDashboardServiceAsync) GWT.create(OKMDashboardService.class); private final int NUMBER_OF_COLUMNS = 2; private HorizontalPanel hPanel; private VerticalPanel vPanelLeft; private VerticalPanel vPanelRight; private DashboardWidget lockedDocuments; private DashboardWidget chechoutDocuments; private DashboardWidget lastModifiedDocuments; private DashboardWidget subscribedDocuments; private DashboardWidget subscribedFolder; private DashboardWidget lastDownloadedDocuments; private DashboardWidget lastUploadedDocuments; private boolean showStatus = false; private int tmpSubscriptions = 0; private boolean checkoutDocumentFlag = false; private int checkouts = 0; /** * UserDashboard */ public UserDashboard() { vPanelLeft = new VerticalPanel(); vPanelRight = new VerticalPanel(); hPanel = new HorizontalPanel(); hPanel.add(vPanelLeft); hPanel.add(vPanelRight); lockedDocuments = new DashboardWidget("UserLockedDocuments", "dashboard.user.locked.documents", "img/icon/lock.gif", true, "userLockedDocuments"); chechoutDocuments = new DashboardWidget("UserCheckedOutDocuments", "dashboard.user.checkout.documents", "img/icon/actions/checkout.gif", true, "userCheckedOutDocuments"); lastModifiedDocuments = new DashboardWidget("UserLastModifiedDocuments", "dashboard.user.last.modified.documents","img/icon/actions/checkin.gif", true, "userLastModifiedDocuments"); lastDownloadedDocuments = new DashboardWidget("UserLastDownloadedDocuments", "dashboard.user.last.downloaded.documents", "img/icon/actions/download.gif", false, "userLastDownloadedDocuments"); subscribedDocuments = new DashboardWidget("UserSubscribedDocuments", "dashboard.user.subscribed.documents", "img/icon/subscribed.gif", false, "userSubscribedDocuments"); subscribedFolder = new DashboardWidget("UserSubscribedFolders", "dashboard.user.subscribed.folders", "img/icon/subscribed.gif", false, "userSubscribedFolders"); lastUploadedDocuments = new DashboardWidget("UserLastUploadedDocuments", "dashboard.user.last.uploaded.documents", "img/icon/actions/add_document.gif", true, "userLastUploadedDocuments"); vPanelLeft.add(lockedDocuments); vPanelLeft.add(chechoutDocuments); vPanelLeft.add(lastDownloadedDocuments); vPanelRight.add(lastModifiedDocuments); vPanelRight.add(lastUploadedDocuments); vPanelLeft.add(subscribedDocuments); vPanelLeft.add(subscribedFolder); initWidget(hPanel); } /** * getCheckouts * * @return */ public int getCheckouts() { return checkouts; } /** * @param checkouts */ public void setCheckouts(int checkouts) { this.checkouts = checkouts; } /** * Refreshing language */ public void langRefresh() { lockedDocuments.langRefresh(); chechoutDocuments.langRefresh(); lastModifiedDocuments.langRefresh(); lastDownloadedDocuments.langRefresh(); subscribedDocuments.langRefresh(); subscribedFolder.langRefresh(); lastUploadedDocuments.langRefresh(); } /** * setWidth * * @param width */ public void setWidth(int width) { int columnWidth = width/NUMBER_OF_COLUMNS; // Trying to distribute widgets on columns with max size lockedDocuments.setWidth(columnWidth); chechoutDocuments.setWidth(columnWidth); lastModifiedDocuments.setWidth(columnWidth); lastDownloadedDocuments.setWidth(columnWidth); subscribedDocuments.setWidth(columnWidth); subscribedFolder.setWidth(columnWidth); lastUploadedDocuments.setWidth(columnWidth); } /** * Gets the locked documents callback */ final AsyncCallback<List<GWTDashboardDocumentResult>> callbackGetUserLockedDocuments = new AsyncCallback<List<GWTDashboardDocumentResult>>() { public void onSuccess(List<GWTDashboardDocumentResult> result) { lockedDocuments.setDocuments(result); lockedDocuments.setHeaderResults(result.size()); Main.get().mainPanel.bottomPanel.userInfo.setLockedDocuments(result.size()); lockedDocuments.unsetRefreshing(); } public void onFailure(Throwable caught) { Main.get().showError("getUserLockedDocuments", caught); lockedDocuments.unsetRefreshing(); } }; /** * Gets the checkout documents callback */ final AsyncCallback<List<GWTDashboardDocumentResult>> callbackGetUserCheckOutDocuments = new AsyncCallback<List<GWTDashboardDocumentResult>>() { public void onSuccess(List<GWTDashboardDocumentResult> result) { checkouts = result.size(); chechoutDocuments.setDocuments(result); chechoutDocuments.setHeaderResults(checkouts); Main.get().mainPanel.bottomPanel.userInfo.setCheckoutDocuments(checkouts); chechoutDocuments.unsetRefreshing(); checkoutDocumentFlag = false; // Marks rpc calls are finished and can checkout document } public void onFailure(Throwable caught) { Main.get().showError("getUserCheckedOutDocuments", caught); chechoutDocuments.unsetRefreshing(); } }; /** * Gets last modified documents callback */ final AsyncCallback<List<GWTDashboardDocumentResult>> callbackGetUserLastModifiedDocuments = new AsyncCallback<List<GWTDashboardDocumentResult>>() { public void onSuccess(List<GWTDashboardDocumentResult> result) { lastModifiedDocuments.setDocuments(result); lastModifiedDocuments.setHeaderResults(result.size()); lastModifiedDocuments.unsetRefreshing(); } public void onFailure(Throwable caught) { Main.get().showError("getUserLastModifiedDocuments", caught); lastModifiedDocuments.unsetRefreshing(); } }; /** * Get subscribed documents callback */ final AsyncCallback<List<GWTDashboardDocumentResult>> callbackGetUserSubscribedDocuments = new AsyncCallback<List<GWTDashboardDocumentResult>>() { public void onSuccess(List<GWTDashboardDocumentResult> result) { subscribedDocuments.setDocuments(result); subscribedDocuments.setHeaderResults(result.size()); tmpSubscriptions = result.size(); getUserSubscribedFolders(); subscribedDocuments.unsetRefreshing(); } public void onFailure(Throwable caught) { Main.get().showError("getUserSubscribedDocuments", caught); subscribedDocuments.unsetRefreshing(); } }; /** * Gets the subscribed folders */ final AsyncCallback<List<GWTDashboardFolderResult>> callbackGetUserSubscribedFolders = new AsyncCallback<List<GWTDashboardFolderResult>>() { public void onSuccess(List<GWTDashboardFolderResult> result) { subscribedFolder.setFolders(result); subscribedFolder.setHeaderResults(result.size()); tmpSubscriptions += result.size(); Main.get().mainPanel.bottomPanel.userInfo.setSubscriptions(tmpSubscriptions); subscribedFolder.unsetRefreshing(); } public void onFailure(Throwable caught) { Main.get().showError("getUserSubscribedFolders", caught); subscribedFolder.unsetRefreshing(); } }; /** * Gets the downloaded documents */ final AsyncCallback<List<GWTDashboardDocumentResult>> callbackGetUserLastDownloadedDocuments = new AsyncCallback<List<GWTDashboardDocumentResult>>() { public void onSuccess(List<GWTDashboardDocumentResult> result) { lastDownloadedDocuments.setDocuments(result); lastDownloadedDocuments.setHeaderResults(result.size()); lastDownloadedDocuments.unsetRefreshing(); } public void onFailure(Throwable caught) { Main.get().showError("getUserLastDownloadedDocuments", caught); lastDownloadedDocuments.unsetRefreshing(); } }; /** * Gets the last uploaded documents */ final AsyncCallback<List<GWTDashboardDocumentResult>> callbackGetUserLastUploadedDocuments = new AsyncCallback<List<GWTDashboardDocumentResult>>() { public void onSuccess(List<GWTDashboardDocumentResult> result) { lastUploadedDocuments.setDocuments(result); lastUploadedDocuments.setHeaderResults(result.size()); lastUploadedDocuments.unsetRefreshing(); } public void onFailure(Throwable caught) { Main.get().showError("callbackGetUserLastUploadedDocuments", caught); lastUploadedDocuments.unsetRefreshing(); } }; /** * getUserLockedDocuments */ public void getUserLockedDocuments() { if (showStatus) { lockedDocuments.setRefreshing(); } dashboardService.getUserLockedDocuments(callbackGetUserLockedDocuments); } /** * setPendingCheckoutDocumentFlag * * Flag to ensure RPC calls are finished */ public void setPendingCheckoutDocumentFlag() { checkoutDocumentFlag = true; } public boolean isPendingCheckoutDocumentFlag() { return checkoutDocumentFlag; } /** * getUserCheckedOutDocuments */ public void getUserCheckedOutDocuments() { if (showStatus) { chechoutDocuments.setRefreshing(); } dashboardService.getUserCheckedOutDocuments(callbackGetUserCheckOutDocuments); } /** * getUserLastModifiedDocuments */ public void getUserLastModifiedDocuments() { if (showStatus) { lastModifiedDocuments.setRefreshing(); } dashboardService.getUserLastModifiedDocuments(callbackGetUserLastModifiedDocuments); } /** * getUserSubscribedDocuments */ public void getUserSubscribedDocuments() { if (showStatus) { subscribedDocuments.setRefreshing(); } dashboardService.getUserSubscribedDocuments(callbackGetUserSubscribedDocuments); } /** * getUserSubscribedFolders */ public void getUserSubscribedFolders() { if (showStatus) { subscribedFolder.setRefreshing(); } dashboardService.getUserSubscribedFolders(callbackGetUserSubscribedFolders); } /** * getUserLastDownloadedDocuments */ public void getUserLastDownloadedDocuments() { if (showStatus) { lastDownloadedDocuments.setRefreshing(); } dashboardService.getUserLastDownloadedDocuments(callbackGetUserLastDownloadedDocuments); } /** * getUserLastUploadedDocuments */ public void getUserLastUploadedDocuments() { if (showStatus) { lastUploadedDocuments.setRefreshing(); } dashboardService.getUserLastUploadedDocuments(callbackGetUserLastUploadedDocuments); } /** * Refresh all panels */ public void refreshAll() { showStatus = ((Main.get().mainPanel.topPanel.tabWorkspace.getSelectedWorkspace()==UIDockPanelConstants.DASHBOARD) && (Main.get().mainPanel.dashboard.getActualView()==UIDashboardConstants.DASHBOARD_USER)); getUserLockedDocuments(); getUserCheckedOutDocuments(); getUserLastModifiedDocuments(); getUserSubscribedDocuments(); getUserLastDownloadedDocuments(); getUserLastUploadedDocuments(); } }
package org.ibankapp.base.persistence.test; import org.ibankapp.base.exception.BaseException; import org.ibankapp.base.persistence.DefaultJpaDaoImpl; import org.ibankapp.base.persistence.Model; import org.junit.After; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import java.util.List; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; public class DefaultJpaDaoImplTest { @Rule public ExpectedException thrown = ExpectedException.none(); private final DefaultJpaDaoImpl jpaDao = new DefaultJpaDaoImpl(); public DefaultJpaDaoImplTest() { EntityManagerFactory factory = Persistence.createEntityManagerFactory("ibankapp"); EntityManager entityManager = factory.createEntityManager(); jpaDao.setEntityManager(entityManager); } @After public void removeAll(){ jpaDao.beginTrans(); jpaDao.getEntityManager().clear(); jpaDao.query("delete TestModel").executeUpdate(); jpaDao.commitTrans(); } @Test public void testPersist() { TestModel model = new TestModel(); jpaDao.beginTrans(); jpaDao.persist(model); Model testModel=jpaDao.get(TestModel.class,model.getId()); assertEquals(testModel.getId(),model.getId()); jpaDao.commitTrans(); @SuppressWarnings("unchecked") List<TestModel> models = (List<TestModel>) jpaDao.query("from TestModel").getResultList(); assertEquals(1,models.size()); } @Test public void testMerge(){ TestModel model = new TestModel(); model.setName("test1"); jpaDao.beginTrans(); jpaDao.persist(model); TestModel testModel=jpaDao.get(TestModel.class,model.getId()); assertEquals("test1",testModel.getName()); jpaDao.commitTrans(); jpaDao.beginTrans(); TestModel model1 = new TestModel(); model1.setName("test2"); model1.setId(model.getId()); jpaDao.merge(model1); testModel=jpaDao.get(TestModel.class,model.getId()); assertEquals("test2",testModel.getName()); jpaDao.commitTrans(); } @Test public void testRemove(){ TestModel model = new TestModel(); model.setName("test1"); jpaDao.beginTrans(); jpaDao.persist(model); TestModel testModel=jpaDao.get(TestModel.class,model.getId()); assertEquals("test1",testModel.getName()); jpaDao.commitTrans(); jpaDao.beginTrans(); testModel=jpaDao.get(TestModel.class,model.getId()); jpaDao.remove(testModel); testModel=jpaDao.get(TestModel.class,model.getId()); assertNull(testModel); jpaDao.commitTrans(); } @Test public void testRollBack() { TestModel model = new TestModel(); jpaDao.beginTrans(); jpaDao.persist(model); jpaDao.rollbackTrans(); @SuppressWarnings("unchecked") List<TestModel> models = (List<TestModel>) jpaDao.query("from TestModel").getResultList(); assertEquals(0,models.size()); } @Test public void testCreateQueryWithNullJpql() { thrown.expect(BaseException.class); thrown.expectMessage("jpql语句不能为空"); jpaDao.query(null); } @Test public void testCreateQueryWithEmptyJpql() { thrown.expect(BaseException.class); thrown.expectMessage("jpql语句不能为空"); jpaDao.query(" "); } @Test public void testGetEntityManager() { EntityManager manager = jpaDao.getEntityManager(); assertNotNull(manager); } @Test public void testSetEntityManager() { jpaDao.setEntityManager(jpaDao.getEntityManager()); } }
package com.b12.offer.controller; import javax.persistence.EntityNotFoundException; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import com.b12.offer.constant.AllConstant; import com.b12.offer.dto.OfferResponse; @ControllerAdvice public class OfferControllerAdvice { @ExceptionHandler(EntityNotFoundException.class) public ResponseEntity<String> handleEntityNotFoundException(Exception e){ OfferResponse response = new OfferResponse(); response.setResult(false); response.setMessage(AllConstant.OFFER_ID_NOT_FOUND); HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON); return new ResponseEntity<String>("{\"message\": \"Offer ID not found in DB\"}",headers,HttpStatus.NOT_FOUND); } @ExceptionHandler(Exception.class) public ResponseEntity<OfferResponse> handleException(Exception e){ OfferResponse response = new OfferResponse(); response.setResult(false); response.setMessage(AllConstant.INTERNAL_SERVER_ERROR+":"+e.getMessage()); HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON); return new ResponseEntity<OfferResponse>(response,headers,HttpStatus.INTERNAL_SERVER_ERROR); } }
package ec.com.yacare.y4all.lib.asynctask.hole; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.SocketTimeoutException; import java.util.zip.GZIPInputStream; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.util.Log; import android.view.View; import android.widget.ImageView; import android.widget.ProgressBar; import ec.com.yacare.y4all.activities.socket.MonitorIOActivity; import ec.com.yacare.y4all.lib.util.AudioQueu; public class RecibirVideoInternetScheduledTask extends Thread { private Bitmap bmp; private ImageView iv; private ProgressBar videoRecibido; private Integer paqRecibido = 0; private MonitorIOActivity activity; private String datos; public RecibirVideoInternetScheduledTask(ImageView iv, ProgressBar videoRecibido, MonitorIOActivity activity) { super(); this.iv = iv; this.videoRecibido = videoRecibido; this.activity = activity; } @Override public void run() { int totalPaquetes= 0; // datos = "VIDEO RECIB: " + String.valueOf(totalPaquetes); // ((MonitorActivity)activity.fragmentTab1).origen3.post(new Runnable() { // // @Override // public void run() { // ((MonitorActivity)activity.fragmentTab1).origen3.setText(datos); // // } // }); DatagramSocket clientSocket = AudioQueu.getDataSocketIntercomVideo(); while (AudioQueu.getComunicacionAbierta()) { if(clientSocket != null){ byte[] receiveData = new byte[1024 * 20]; DatagramPacket receivePacket = new DatagramPacket(receiveData, receiveData.length); try { clientSocket.setSoTimeout(1000); clientSocket.receive(receivePacket); totalPaquetes++; // datos = "VIDEO RECIB: " + clientSocket.getLocalPort()+ "/" + String.valueOf(totalPaquetes); // ((MonitorActivity)activity.fragmentTab1).origen3.post(new Runnable() { // // @Override // public void run() { // ((MonitorActivity)activity.fragmentTab1).origen3.setText(datos); // // } // }); byte[] datos = descomprimirGZIP(receivePacket.getData(), receivePacket.getLength()); bmp = BitmapFactory.decodeByteArray(datos,0,datos.length); // if(AudioQueu.tomarFoto){ // AudioQueu.tomarFoto = false; // FileOutputStream out = null; // try { // out = new FileOutputStream(Environment.getExternalStorageDirectory().getAbsolutePath() + "/DCIM/Camera/" + "Y4Baby"+ (new Date()).getTime() + ".jpg"); // bmp.compress(Bitmap.CompressFormat.PNG, 100, out); // } catch (Exception e) { // e.printStackTrace(); // } finally { // try { // if (out != null) { // out.close(); // } // } catch (IOException e) { // e.printStackTrace(); // } // } // } paqRecibido++; if(bmp != null) { iv.post(new Runnable() { @Override public void run() { if(bmp != null){ iv.setVisibility(View.VISIBLE); iv.setImageBitmap(bmp); // iv.setRotation(180); videoRecibido.setVisibility(View.VISIBLE); videoRecibido.setProgress(paqRecibido); if(paqRecibido == 100){ paqRecibido = 0; } } } }); } } catch (SocketTimeoutException e){ e.printStackTrace(); Log.d("PAQUETE ENVIADO VIDEO", "SocketTimeoutException") ; continue; } catch (IOException e) { e.printStackTrace(); continue; } }else{ Log.d("PAQUETE ENVIADO VIDEO", "else AudioQueu.getDataSocketIntercomVideo() != null") ; } } if(clientSocket != null){ clientSocket.close(); } } public byte[] descomprimirGZIP(byte[] file, Integer paquete) { ByteArrayInputStream gzdata = new ByteArrayInputStream(file); GZIPInputStream gunzipper; try { gunzipper = new GZIPInputStream(gzdata, file.length); ByteArrayOutputStream data = new ByteArrayOutputStream(); byte[] readed = new byte[paquete]; int actual = 1; while ((actual = gunzipper.read(readed)) > 0) { data.write(readed, 0, actual); } gzdata.close(); gunzipper.close(); byte[] returndata = data.toByteArray(); return returndata; } catch (IOException e) { } return new byte[paquete]; } }
package org.ms.iknow.core.type.sense; public class SenseTest { }
import java.io.Serializable; public class Gasolina extends Veiculo implements Serializable { // variaveis de instancia private double consumoKm; // em litros por km private double combustivelAtual; private double tamanhoDeposito; // em litros private double autonomia; private Boolean condicao; // construtores public Gasolina(){ super(); // this.setNrClassificacoes(0); this.consumoKm = 0; this.combustivelAtual = 0; this.tamanhoDeposito = 0; this.autonomia = 0; this.condicao = false; } public Gasolina (String matriculaAux,Ponto localizacaoAux, double precoKmAux, double velocidadeKmAux,double classificacaoAux, String descricaoAux,Proprietario proprietarioAux, double consumoKmAux,double combustivelAtualAux,double tamanhoDepositoAux,double autonomiaAux,boolean condicaoAux){ super(matriculaAux,localizacaoAux,precoKmAux,velocidadeKmAux,classificacaoAux,descricaoAux,proprietarioAux); //this.setNrClassificacoes(0); this.consumoKm = consumoKmAux; this.combustivelAtual = combustivelAtualAux; this.tamanhoDeposito = tamanhoDepositoAux; this.autonomia = autonomiaAux; this.condicao = condicaoAux; } public Gasolina (Gasolina aux){ this(aux.getMatricula(),aux.getLocalizacao(), aux.getPrecoKm(), aux.getVelocidadeKm(),aux.getClassificacao(), aux.getDescricao(),aux.getProprietario(),aux.getConsumoKm(),aux.getCombustivelAtual(),aux.getTamanhoDeposito(),aux.getAutonomia(), aux.getCondicao()); } // get's e set's public double getConsumoKm() { return this.consumoKm; } public void setConsumoKm(double consumoKm) { this.consumoKm = consumoKm; } public double getCombustivelAtual(){return this.combustivelAtual;} public void setCombustivelAtual(double combustivelAtual) {this.combustivelAtual = combustivelAtual;} public double getTamanhoDeposito(){return this.tamanhoDeposito;} public void setTamanhoDeposito(double tamanhoDeposito) {this.tamanhoDeposito = tamanhoDeposito;} public double getAutonomia(){return this.autonomia;} public void setAutonomia(double autonomia) {this.autonomia = autonomia;} public Boolean getCondicao() { return this.condicao; } public void setCondicao(Boolean condicao) { this.condicao = condicao; } // metodos equals, clone e toString public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Gasolina aux = (Gasolina) o; return Double.compare(aux.getPrecoKm(), this.getPrecoKm()) == 0 && Double.compare(aux.getVelocidadeKm(), this.getVelocidadeKm()) == 0 && Double.compare(aux.getConsumoKm(), this.getConsumoKm()) == 0 && Double.compare(aux.getClassificacao(), this.getClassificacao()) == 0 && Double.compare(aux.getCombustivelAtual(), this.getCombustivelAtual()) == 0 && Double.compare(aux.getTamanhoDeposito(), this.getTamanhoDeposito()) == 0 && Double.compare(aux.getAutonomia(), this.getAutonomia()) == 0 && this.getMatricula().equals(aux.getMatricula()) && this.getLocalizacao().equals(aux.getLocalizacao()) && this.getDescricao().equals(aux.getDescricao()) && this.getCondicao().equals(aux.getCondicao()) && this.getProprietario().equals(aux.getProprietario()) && this.getNrClassificacoes() == aux.getNrClassificacoes(); } public Gasolina clone (){ Gasolina aux = new Gasolina(this); return aux; } public String toString() { return "Gasolina{" + "Matricula: '" + this.getMatricula() + '\'' + ", localizacao: " + this.getLocalizacao() + '\'' + ", precoKm: " + this.getPrecoKm() + '\'' + ", velocidadeKm: " + this.getVelocidadeKm() + '\'' + ", classificacao: " + this.getClassificacao() + '\'' + ", descricao: '" + this.getDescricao() + '\'' + ", proprietario: " + this.getProprietario().getEmail() + '\'' + ", consumo po Km:" + this.getConsumoKm() + '\'' + ", combustivel Atual: " + this.getCombustivelAtual() + '\'' + ", tamanho do Deposito: " + this.getTamanhoDeposito() + '\'' + ", autonomia: " + this.getAutonomia() + '\'' + '}'; } // método de abstecimento public int abasteceGasolina(double combustivelAux){ if ((this.getCombustivelAtual() + combustivelAux) > this.getTamanhoDeposito()) return -1; else { double resultado; resultado = this.getCombustivelAtual() + combustivelAux; this.setCombustivelAtual(resultado); return 1; } } // atualizar após uma viagem public void atualizaG(Ponto destino){ double distancia = this.getLocalizacao().distanciaPonto(destino); this.setAutonomia(this.getAutonomia()-distancia); this.setCombustivelAtual(this.getCombustivelAtual()-(distancia * this.getConsumoKm())); if (this.getCombustivelAtual()/this.getTamanhoDeposito()<0.1) this.setCondicao(false); this.setLocalizacao(destino); } public double calculaAutonomiaG(){ double autonomia = 0; autonomia = this.getCombustivelAtual()/this.getConsumoKm(); return autonomia; } public void calculaCombustivelG(){ double x = 0; x = this.getAutonomia() * this.getConsumoKm(); this.setCombustivelAtual(x); this.setTamanhoDeposito(x); } }
package com.tencent.mm.plugin.nearby.ui; import android.view.MenuItem; import android.view.MenuItem.OnMenuItemClickListener; class NearbySayHiListUI$12 implements OnMenuItemClickListener { final /* synthetic */ NearbySayHiListUI lCB; NearbySayHiListUI$12(NearbySayHiListUI nearbySayHiListUI) { this.lCB = nearbySayHiListUI; } public final boolean onMenuItemClick(MenuItem menuItem) { this.lCB.YC(); this.lCB.setResult(0); this.lCB.finish(); return true; } }
package ru.busride.models; import java.io.Serializable; public class Trips implements Serializable { private static final long serialVersionUID = 1069130001; private Integer id; private Integer transport_id; private String departure_date; private String arrival_date; private Integer routine_id; private Double price; private String price_currency; private String departure_point; private String arrival_point; private Integer seats; private Integer sits_total; public Trips() { } public Trips(Trips value) { this.id = value.id; this.transport_id = value.transport_id; this.departure_date = value.departure_date; this.arrival_date = value.arrival_date; this.routine_id = value.routine_id; this.price = value.price; this.price_currency = value.price_currency; this.departure_point = value.departure_point; this.arrival_point = value.arrival_point; this.seats = value.seats; this.sits_total = value.sits_total; } public Trips( Integer id, Integer transport_id, String departure_date, String arrival_date, Integer routine_id, Double price, String price_currency, String departure_point, String arrival_point, Integer seats, Integer sits_total ) { this.id = id; this.transport_id = transport_id; this.departure_date = departure_date; this.arrival_date = arrival_date; this.routine_id = routine_id; this.price = price; this.price_currency = price_currency; this.departure_point = departure_point; this.arrival_point = arrival_point; this.seats = seats; this.sits_total = sits_total; } public Integer getId() { return this.id; } public Trips setId(Integer id) { this.id = id; return this; } public Integer getTransport_id() { return this.transport_id; } public Trips setTransport_id(Integer transport_id) { this.transport_id = transport_id; return this; } public String getDeparture_date() { return this.departure_date; } public Trips setDeparture_date(String departure_date) { this.departure_date = departure_date; return this; } public String getArrival_date() { return this.arrival_date; } public Trips setArrival_date(String arrival_date) { this.arrival_date = arrival_date; return this; } public Integer getRoutine_id() { return this.routine_id; } public Trips setRoutine_id(Integer routine_id) { this.routine_id = routine_id; return this; } public Double getPrice() { return this.price; } public Trips setPrice(Double price) { this.price = price; return this; } public String getPrice_currency() { return this.price_currency; } public Trips setPrice_currency(String price_currency) { this.price_currency = price_currency; return this; } public String getDeparture_point() { return this.departure_point; } public Trips setDeparture_point(String departure_point) { this.departure_point = departure_point; return this; } public String getArrival_point() { return this.arrival_point; } public Trips setArrival_point(String arrival_point) { this.arrival_point = arrival_point; return this; } public Integer getSeats() { return this.seats; } public Trips setSeatsOrdered(Integer seats) { this.seats = seats; return this; } public Integer getSeatsTotal() { return this.sits_total; } public Trips setSeatsTotal(Integer seats) { this.sits_total = seats; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder("Trips ("); sb.append(id); sb.append(", ").append(transport_id); sb.append(", ").append(departure_date); sb.append(", ").append(arrival_date); sb.append(", ").append(routine_id); sb.append(", ").append(price); sb.append(", ").append(price_currency); sb.append(", ").append(departure_point); sb.append(", ").append(arrival_point); sb.append(", ").append(seats); sb.append(", ").append(sits_total); sb.append(")"); return sb.toString(); } }
package com.android.hiparker.lierda_light.dao; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteStatement; import de.greenrobot.dao.AbstractDao; import de.greenrobot.dao.Property; import de.greenrobot.dao.internal.DaoConfig; // THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. /** * DAO for table "LIGHT". */ public class LightDao extends AbstractDao<LightTemp, String> { public static final String TABLENAME = "LIGHT"; /** * Properties of entity Light.<br/> * Can be used for QueryBuilder and for referencing column names. */ public static class Properties { public final static Property Address = new Property(0, String.class, "address", true, "ADDRESS"); public final static Property Name = new Property(1, String.class, "name", false, "NAME"); public final static Property Color = new Property(2, Integer.class, "color", false, "COLOR"); public final static Property Value1 = new Property(3, Integer.class, "value1", false, "VALUE1"); public final static Property Value2 = new Property(4, Integer.class, "value2", false, "VALUE2"); public final static Property Value3 = new Property(5, Integer.class, "value3", false, "VALUE3"); public final static Property Value4 = new Property(6, Integer.class, "value4", false, "VALUE4"); }; public LightDao(DaoConfig config) { super(config); } public LightDao(DaoConfig config, DaoSession daoSession) { super(config, daoSession); } /** Creates the underlying database table. */ public static void createTable(SQLiteDatabase db, boolean ifNotExists) { String constraint = ifNotExists? "IF NOT EXISTS ": ""; db.execSQL("CREATE TABLE " + constraint + "\"LIGHT\" (" + // "\"ADDRESS\" TEXT PRIMARY KEY NOT NULL ," + // 0: address "\"NAME\" TEXT," + // 1: name "\"COLOR\" INTEGER," + // 2: color "\"VALUE1\" INTEGER," + // 3: value1 "\"VALUE2\" INTEGER," + // 4: value2 "\"VALUE3\" INTEGER," + // 5: value3 "\"VALUE4\" INTEGER);"); // 6: value4 } /** Drops the underlying database table. */ public static void dropTable(SQLiteDatabase db, boolean ifExists) { String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "\"LIGHT\""; db.execSQL(sql); } /** @inheritdoc */ @Override protected void bindValues(SQLiteStatement stmt, LightTemp entity) { stmt.clearBindings(); String address = entity.getAddress(); if (address != null) { stmt.bindString(1, address); } String name = entity.getName(); if (name != null) { stmt.bindString(2, name); } Integer color = entity.getColor(); if (color != null) { stmt.bindLong(3, color); } Integer value1 = entity.getValue1(); if (value1 != null) { stmt.bindLong(4, value1); } Integer value2 = entity.getValue2(); if (value2 != null) { stmt.bindLong(5, value2); } Integer value3 = entity.getValue3(); if (value3 != null) { stmt.bindLong(6, value3); } Integer value4 = entity.getValue4(); if (value4 != null) { stmt.bindLong(7, value4); } } /** @inheritdoc */ @Override public String readKey(Cursor cursor, int offset) { return cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0); } /** @inheritdoc */ @Override public LightTemp readEntity(Cursor cursor, int offset) { LightTemp entity = new LightTemp( // cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0), // address cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // name cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2), // color cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3), // value1 cursor.isNull(offset + 4) ? null : cursor.getInt(offset + 4), // value2 cursor.isNull(offset + 5) ? null : cursor.getInt(offset + 5), // value3 cursor.isNull(offset + 6) ? null : cursor.getInt(offset + 6) // value4 ); return entity; } /** @inheritdoc */ @Override public void readEntity(Cursor cursor, LightTemp entity, int offset) { entity.setAddress(cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0)); entity.setName(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); entity.setColor(cursor.isNull(offset + 2) ? null : cursor.getInt(offset + 2)); entity.setValue1(cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3)); entity.setValue2(cursor.isNull(offset + 4) ? null : cursor.getInt(offset + 4)); entity.setValue3(cursor.isNull(offset + 5) ? null : cursor.getInt(offset + 5)); entity.setValue4(cursor.isNull(offset + 6) ? null : cursor.getInt(offset + 6)); } /** @inheritdoc */ @Override protected String updateKeyAfterInsert(LightTemp entity, long rowId) { return entity.getAddress(); } /** @inheritdoc */ @Override public String getKey(LightTemp entity) { if(entity != null) { return entity.getAddress(); } else { return null; } } /** @inheritdoc */ @Override protected boolean isEntityUpdateable() { return true; } }
package cs213.photoAlbum.simpleview; import java.text.ParseException; import java.util.ArrayList; import java.util.Calendar; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Scanner; import java.util.SortedSet; import java.util.TreeMap; import cs213.photoAlbum.control.AlbumController; import cs213.photoAlbum.control.IAlbumController; import cs213.photoAlbum.control.IPhotoController; import cs213.photoAlbum.control.IUserController; import cs213.photoAlbum.control.PhotoController; import cs213.photoAlbum.control.UserController; import cs213.photoAlbum.model.IAlbum; import cs213.photoAlbum.model.IPhoto; import cs213.photoAlbum.model.IUser; import cs213.photoAlbum.util.CalendarUtils; /** * CmdView class is the text interface for managing the album. * @author dheeptha */ public class CmdView extends ViewContainer { /** The login. */ protected Login login; /** The admin. */ protected Admin admin; /** The album. */ protected Albums album; /** The sp. */ protected SearchPhotos sp; /** * Controller to manage user admin. */ protected IUserController userController; /** The photo controller. */ protected IPhotoController photoController; /** The album controller. */ protected IAlbumController albumController; /** * Instantiates a new cmd view. */ public CmdView() { super(); this.userController = new UserController(); this.photoController = new PhotoController(); this.albumController = new AlbumController(); } /** * The main method the creates a CmdView object and calls the process arguments method. * * @param args the arguments */ public static void main(String[] args) { CmdView cmdView = new CmdView(); cmdView.processArgs(args); } /** * Processes input arguments . * * @param args the arguments */ public void processArgs(String[] args) { if (args.length == 0) { System.out.println("Error: Please input a command"); return; } String cmdName = args[0]; if (cmdName.equals("listusers")) { listUsers(); } else if (cmdName.equals("adduser")) { addUser(args); } else if (cmdName.equals("deleteuser")) { deleteUser(args); } else if (cmdName.equals("login")) { IUser user = login(args); if (user != null) { launchInteractiveMode(user); } } else { System.out.println("Error: Unknown command " + cmdName); } } /** * Launches interactive mode once the user logs in. * * @param u the IUser */ private void launchInteractiveMode(IUser u) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { String cmd = scanner.nextLine(); if (cmd.startsWith("createAlbum")) { createAlbum(u, cmd); } else if (cmd.startsWith("deleteAlbum")) { deleteAlbum(u, cmd); } else if (cmd.startsWith("listAlbums")) { listAlbums(u); } else if (cmd.startsWith("listPhotos")) { listPhotos(u, cmd); } else if (cmd.startsWith("addPhoto")) { addPhoto(u, cmd); } else if (cmd.startsWith("movePhoto")) { movePhoto(u, cmd); } else if (cmd.startsWith("removePhoto")) { removePhoto(u, cmd); } else if (cmd.startsWith("addTag") || cmd.startsWith("deleteTag")) { addOrDeleteTag(u, cmd); } else if (cmd.startsWith("listPhotoInfo")) { listPhotoInfo(u, cmd); } else if (cmd.startsWith("getPhotosByDate")) { getPhotosByDate(u, cmd); } else if (cmd.startsWith("getPhotosByTag")) { getPhotosByTag(u, cmd); } else if (cmd.startsWith("logout")) { userController.logout(u); break; } else if(cmd.trim().length() > 0){ System.out.println("Error: invalid command " + cmd); } System.out.println(""); } scanner.close(); } /** * Gets the photos by tag. * * @param u the IUser * @param cmd the command * @return the list of photos by tag */ private void getPhotosByTag(IUser u, String cmd) { List<String> tagNames = new ArrayList<String>(); List<String> tagValues = new ArrayList<String>(); cmd = cmd.replaceAll("getPhotosByTag", ""); parseTag(cmd, tagNames, tagValues); if(!tagNames.isEmpty() && !tagValues.isEmpty()) { SortedSet<IPhoto> photosByDate = photoController.getPhotosByTag(tagNames, tagValues, u);; System.out.println("Photos for user " + u.getUserID() + " with tags " + cmd.trim() + ":") ; for (IPhoto p:photosByDate) { System.out.println(p.getCaption()+ " - Album: " + formatAlbum(p, u.getAlbums()) + " - Date: " + CalendarUtils.toFmtDate(p.getDateTime())); } }else { System.out.println("Error: Usage - getPhotosByTag [<tagType>:]\"<tagValue>\" [,[<tagType>:]\"<tagValue>\"]"); } } /** * Gets the photos by date. * * @param u the IUser * @param cmd the Commans * @return the photos by date */ private void getPhotosByDate(IUser u, String cmd) { String vals[] = cmd.split(" "); if (vals.length == 3) { Calendar start = parseDate(vals[1]); Calendar end = parseDate(vals[2]); if (start != null && end != null) { SortedSet<IPhoto> photosByDate = photoController.getPhotosByDate(start, end, u); System.out.println("Photos for user " + u.getUserID() + " in range " + vals[1] + " to " + vals[2] +":") ; for (IPhoto p:photosByDate) { System.out.println(p.getCaption()+ " - Album: " + formatAlbum(p, u.getAlbums()) + " - Date: " + CalendarUtils.toFmtDate(p.getDateTime())); } } }else { System.out.println("Error: Usage - getPhotosByDate <start date> <end date> "); } } /** * Lists photo information. * * @param u the IUser * @param cmd the command */ private void listPhotoInfo(IUser u, String cmd) { List<String> params; params = getQuotedParams(cmd, 1); if (params.size() == 1) { IPhoto p = u.getPhotos().get(params.get(0)); if (p == null) { System.out.println("Photo " + params.get(0) + " does not exist"); } else { System.out.println("Photo file name: " + p.getName()); System.out.println("Album: " + formatAlbum(p, u.getAlbums())); System.out.println("Date: " + CalendarUtils.toFmtDate(p.getDateTime())); System.out.println("Caption: " + p.getCaption()); System.out.println("Tags:"); Map<String, SortedSet<String>> tags = new TreeMap<String, SortedSet<String>>(); tags.putAll(p.getTags()); SortedSet<String> set = tags.remove("location"); if(set != null) { for (String val : set) { System.out.println("location:" + val); } } set = tags.remove("person"); if(set != null) { for (String val : set) { System.out.println("person:" + val); } } for (Entry<String, SortedSet<String>> e : tags.entrySet()) { set = e.getValue(); for (String val : set) { System.out.println(e.getKey() + ":" + val); } } } }else { System.out.println("Error: Usage - listPhotoInfo \"<fileName>\" "); } } /** * Checks if the add or delete method completes successfully and prints appropriate message to user. * * @param u the IUser * @param cmd the command */ private void addOrDeleteTag(IUser u, String cmd) { List<String> params; boolean addTag = cmd.startsWith("addTag"); params = getQuotedParams(cmd, 1); if (params.size() == 1) { String photo = params.get(0); cmd = cmd.substring(cmd.indexOf(photo) + photo.length() + 1); StringBuffer tagName = new StringBuffer(); StringBuffer tagValue = new StringBuffer(); parseTag(cmd, tagName, tagValue); if (!photoController.containsPhoto(photo, u)) { System.out.println("Error: Photo " + photo + " does not exist"); } else if (tagName.length() > 0 && tagValue.length() > 0) { if (addTag) { if (photoController.addTag(photo, tagName.toString(), tagValue.toString(), u)) { System.out.println("Added tag:"); System.out.println(photo + " " + tagName + ":\"" + tagValue + "\""); } else { System.out.println("Tag already exists for " + photo + " " + tagName + ":" + tagValue); } } else { if (photoController.deleteTag(photo, tagName.toString(), tagValue.toString(), u)) { System.out.println("Deleted tag:"); System.out.println(photo + " " + tagName + ":\"" + tagValue + "\""); } else { System.out.println("Tag does not exist for " + photo + " " + tagName + ":" + tagValue); } } } else{ System.out.println("Error: tagType and tagValue cannot be empty"); } }else { if(addTag) { System.out.println("Error: Usage - addTag \"<fileName>\" <tagType>:\"<tagValue>\" "); } else { System.out.println("Error: Usage - deleteTag \"<fileName>\" <tagType>:\"<tagValue>\""); } } } /** * Checks if the removePhoto method completes successfully and prints appropriate message to user. * * @param u the IUser * @param cmd the command */ private void removePhoto(IUser u, String cmd) { List<String> params; params = getQuotedParams(cmd, 2); if (params.size() == 2) { if (albumController.removePhoto(params.get(0), params.get(1), u)) { System.out.println("Removed photo:"); System.out.println(params.get(0) + " - From album " + params.get(1)); } else { System.out.println("Photo " + params.get(0) + " is not in album " + params.get(1)); } }else { System.out.println("Error: Usage - removePhoto \"<fileName>\" \"<albumName>\" "); } } /** * Checks if the movePhoto method completes successfully and prints appropriate message to user. * * @param u the IUser * @param cmd the command */ private void movePhoto(IUser u, String cmd) { List<String> params; params = getQuotedParams(cmd, 3); if (params.size() == 3) { if (!albumController.containsPhoto(params.get(0), params.get(2), u)) { if (albumController.movePhoto(params.get(0), params.get(1), params.get(2), u)) { System.out.println("Moved photo " + params.get(0) + ":"); System.out.println(params.get(0) + " - From album " + params.get(1) + " to album " + params.get(2)); } else { System.out.println("Photo " + params.get(0) + " does not exist in " + params.get(1)); } } }else { System.out.println("Error: Usage - movePhoto \"<fileName>\" \"<oldAlbumName>\" \"<newAlbumName>\" "); } } /** * Checks if the addPhoto method completes successfully and prints appropriate message to userr. * * @param u the IUser * @param cmd the command */ private void addPhoto(IUser u, String cmd) { List<String> params; params = getQuotedParams(cmd, 3); if (params.size() == 3) { if (!photoController.fileExists(params.get(0))) { System.out.println("File " + params.get(0) + " does not exist"); } else { IPhoto p = albumController.addPhoto(params.get(0), params.get(1), params.get(2), u); if (p != null) { System.out.println("Added photo " + params.get(0) + ":"); System.out.println(p.getCaption() + " - " + "Album: " + params.get(2)); } else { System.out.println("Photo " + params.get(0) + " already exists in album " + params.get(2)); } } }else { System.out.println("Error: Usage - addPhoto \"<fileName>\" \"<caption>\" \"<albumName>\" "); } } /** * Checks if the listPhotos method completes successfully and prints appropriate message to user. * * @param u the IUser * @param cmd the command */ private void listPhotos(IUser u, String cmd) { List<String> params; params = getQuotedParams(cmd, 1); if (params.size() == 1) { IAlbum a = albumController.getAlbum(params.get(0), u); if (a == null) { System.out.println("album does not exist for user " + u.getUserID() + ":"); System.out.println(params.get(0)); } else { Collection<IPhoto> photos = albumController.listPhotos(params.get(0), u); if (photos.isEmpty()) { System.out.println("No photos exist for album " + a.getAlbumName()); } else { System.out.println("Photos for album " + a.getAlbumName() + ":"); for (IPhoto p : photos) { System.out.println(p.getName() + " - " + CalendarUtils.toFmtDate(p.getDateTime())); } } } } else { System.out.println("Error: Usage - listPhotos \"<name>\" "); } } /** * Checks if the listAlbums method completes successfully and prints appropriate message to user. * * @param u the u */ private void listAlbums(IUser u) { Collection<IAlbum> albums = albumController.listAlbums(u); if (albums.isEmpty()) { System.out.println("No albums exist for user " + u.getUserID()); } else { System.out.println("Albums for user " + u.getUserID() + ":"); for (IAlbum a : albums) { Calendar max = a.maxPhotoDate(); Calendar min = a.minPhotoDate(); if (max == null) { System.out.println(a.getAlbumName() + " number of photos: " + a.getPhotos().size()); } else { System.out.println(a.getAlbumName() + " number of photos: " + a.getPhotos().size() + ", " + CalendarUtils.toFmtDate(min) + " - " + CalendarUtils.toFmtDate(max)); } } } } /** * Checks if the deleteAlbum method completes successfully and prints appropriate message to user. * * @param u the u * @param cmd the cmd */ private void deleteAlbum(IUser u, String cmd) { List<String> params; params = getQuotedParams(cmd, 1); if (params.size() == 1) { if (albumController.deleteAlbum(params.get(0), u)) { System.out.println("deleted album from user " + u.getUserID() + ":"); } else { System.out.println("album does not exist for user " + u.getUserID() + ":"); } System.out.println(params.get(0)); }else { System.out.println("Error: Usage - deleteAlbum \"<name>\" "); } } /** * Checks if the createAlbum method completes successfully and prints appropriate message to user. * * @param u the IUser * @param cmd the command */ private void createAlbum(IUser u, String cmd) { List<String> params; params = getQuotedParams(cmd, 1); if (params.size() == 1) { if (albumController.createAlbum(params.get(0), u)) { System.out.println("created album for user " + u.getUserID() + ":"); } else { System.out.println("album exists for user " + u.getUserID() + ":"); } System.out.println(params.get(0)); } else { System.out.println("Error: Usage - createAlbum \"<name>\" "); } } /** * Correctly formats the albums. * * @param p the IPhoto * @param albums the albums * @return the album string */ private String formatAlbum(IPhoto p, Collection<IAlbum> albums) { StringBuffer buf = new StringBuffer(); for (IAlbum a : albums) { if (a.getPhotos().contains(p)) { buf.append(a.getAlbumName()).append(","); } } if (buf.length() > 0) { buf.setLength(buf.length() - 1); } return buf.toString(); } /** * Parses the tag. * * @param l the string * @param tagNames the tag names * @param tagValues the tag values */ private void parseTag(String l, List<String> tagNames, List<String> tagValues) { while (l.length() > 0) { StringBuffer tagName = new StringBuffer(); StringBuffer tagValue = new StringBuffer(); int i1 = l.indexOf('"'); int i2 = l.indexOf('"', i1 + 1); String l1 = l.substring(0, i2 + 1); parseTag(l1, tagName, tagValue); if (tagValue.length() != 0) { tagNames.add(tagName.toString()); tagValues.add(tagValue.toString()); l = l.substring(i2 + 1); } else { break; } l = l.substring(l.indexOf(',') + 1); } } /** * Parses the tag. * * @param l the string * @param tagName the tag name * @param tagValue the tag value */ private void parseTag(String l, StringBuffer tagName, StringBuffer tagValue) { String sp[] = l.split(":"); String val = null; if (sp.length == 2) { tagName.append(sp[0].trim()); val = sp[1]; } else if (sp.length == 1) { val = sp[0]; } if (val != null) { List<String> params = getQuotedParams(val, 1); if (!params.isEmpty()) { tagValue.append(params.get(0)); } } } /** * Parses the date. * * @param string the string * @return the calendar */ private Calendar parseDate(String string) { Calendar cal = null; try { cal = CalendarUtils.parseDate(string); } catch (ParseException e) { System.out.println("Error: Failed to parse date " + string); } return cal; } /** * Gets the quoted parameters. * * @param l the l * @param numParams the number of params * @return the string of parameters */ private List<String> getQuotedParams(String l, int numParams) { int i = 0, j = 0; String s; List<String> strings = new ArrayList<String>(); for (int k = 0; k < numParams; k++) { i = l.indexOf('"', i); j = l.indexOf('"', i + 1); if (i == -1 || j == -1) { strings.clear(); break; } s = l.substring(i + 1, j); strings.add(s); i = j + 1; } return strings; } /** * Processes the arguments and calls the login method, prints out appropriate message. * * @param args the arguments * @return the IUser */ private IUser login(String[] args) { IUser user; if (args.length != 2) { System.out.println("Error: Usage - login <user id>"); } String userId = args[1]; user = userController.login(userId); if (user == null) { System.out.println("user " + userId + " does not exist"); } return user; } /** * Process the arguments and calls the delete user method, prints out appropriate message. * * @param args the args */ private void deleteUser(String[] args) { if (args.length != 2) { System.out.println("Error: Usage - deleteuser <user id>"); return; } String userId = args[1]; boolean user = userController.deleteUser(userId); if (user) { System.out.println("deleted user " + userId); } else { System.out.println("user " + userId + " does not exist"); } } /** * Process the arguments and calls the addUser method, prints out appropriate message. * * @param args the args */ private void addUser(String[] args) { if (args.length != 3) { System.out.println("Error: Usage - adduser <user id> \"<user name>\" "); return; } String userId = args[1]; String name = args[2]; boolean user = userController.addUser(userId, name); if (user) { System.out.println("created user " + userId + " with name " + name); } else { System.out.println("user " + userId + " already exists with name " + name); } } /** * Calls the listUsers method and prints them out, or if empty, prints * that no users exist. */ private void listUsers() { List<String> users = userController.listUsers(); if (users.size() > 0) { for (String s : users) { System.out.println(s); } } else { System.out.println("no users exist"); } } }
package br.com.smarthouse.controledeluzes.business; import br.com.smarthouse.controledeluzes.model.ambiente.Objeto; public interface ObjetoService { /** * Verifica se o objeto esta ligado * * @param idObjeto * @return */ public boolean verificaSeObjetoEstaLigado(final Objeto objeto); public void ligaDesliga(final Long idObjeto); public void save(final Objeto objeto); }
/* * 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 gui; import java.awt.*; import logic.*; /** * * @author Eric */ public class MainMenu extends javax.swing.JFrame { private SoundManager mySoundManager; private FileReader reader; /** * Creates new form MainMenu */ public MainMenu() { initComponents(); CustomCursor(); mySoundManager = new SoundManager(); mySoundManager.playMusic("music/menu.wav"); reader = new FileReader(); //these buttons are set invisible since their respective features will be implemented in the future. highScoresBtn.setVisible(false); helpBtn.setVisible(false); } /** * 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. */ public void CustomCursor() { Toolkit toolkit = Toolkit.getDefaultToolkit(); Image img = toolkit.getImage("marioCursor.png"); Point point = new Point(0, 0); Cursor cursor = toolkit.createCustomCursor(img, point, "Cursor"); setCursor(cursor); } @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { startBtn = new javax.swing.JButton(); helpBtn = new javax.swing.JButton(); loadBtn = new javax.swing.JButton(); highScoresBtn = new javax.swing.JButton(); title = new javax.swing.JLabel(); bkg = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Super Mario MineSweeper"); setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); setMaximumSize(new java.awt.Dimension(500, 600)); setPreferredSize(new java.awt.Dimension(500, 600)); setResizable(false); getContentPane().setLayout(null); startBtn.setBackground(new java.awt.Color(204, 255, 255)); startBtn.setFont(new java.awt.Font("Comic Sans MS", 0, 24)); // NOI18N startBtn.setForeground(new java.awt.Color(0, 255, 0)); startBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/images/start game2.png"))); // NOI18N startBtn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { startBtnActionPerformed(evt); } }); getContentPane().add(startBtn); startBtn.setBounds(110, 160, 281, 82); helpBtn.setBackground(new java.awt.Color(204, 255, 255)); helpBtn.setFont(new java.awt.Font("Comic Sans MS", 0, 24)); // NOI18N helpBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/images/question block.png"))); // NOI18N helpBtn.setMaximumSize(new java.awt.Dimension(66, 66)); helpBtn.setMinimumSize(new java.awt.Dimension(66, 66)); helpBtn.setPreferredSize(new java.awt.Dimension(66, 66)); helpBtn.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { helpBtnMouseClicked(evt); } }); helpBtn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { helpBtnActionPerformed(evt); } }); getContentPane().add(helpBtn); helpBtn.setBounds(420, 490, 66, 66); loadBtn.setBackground(new java.awt.Color(204, 255, 255)); loadBtn.setFont(new java.awt.Font("Comic Sans MS", 0, 24)); // NOI18N loadBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/images/load game2.png"))); // NOI18N loadBtn.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { loadBtnMouseClicked(evt); } }); getContentPane().add(loadBtn); loadBtn.setBounds(110, 280, 281, 82); highScoresBtn.setBackground(new java.awt.Color(255, 255, 204)); highScoresBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/images/high scores.png"))); // NOI18N getContentPane().add(highScoresBtn); highScoresBtn.setBounds(100, 390, 300, 70); title.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/images/title2.png"))); // NOI18N getContentPane().add(title); title.setBounds(80, 0, 350, 140); bkg.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gui/images/bkg.png"))); // NOI18N getContentPane().add(bkg); bkg.setBounds(0, 0, 500, 600); pack(); setLocationRelativeTo(null); }// </editor-fold>//GEN-END:initComponents private void startBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_startBtnActionPerformed // TODO add your handling code here: this.setVisible(false); mySoundManager.stopMusic(); new ChooseDifficulty().setVisible(true); }//GEN-LAST:event_startBtnActionPerformed private void helpBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_helpBtnActionPerformed // TODO add your handling code here: this.setVisible(false); mySoundManager.stopMusic(); new Help().setVisible(true); }//GEN-LAST:event_helpBtnActionPerformed private void helpBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_helpBtnMouseClicked // TODO add your handling code here: }//GEN-LAST:event_helpBtnMouseClicked private void loadBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_loadBtnMouseClicked // TODO add your handling code here: this.setVisible(false); mySoundManager.stopMusic(); new LoadGame().setVisible(true); }//GEN-LAST:event_loadBtnMouseClicked /** * @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(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(MainMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(MainMenu.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 MainMenu().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel bkg; private javax.swing.JButton helpBtn; private javax.swing.JButton highScoresBtn; private javax.swing.JButton loadBtn; private javax.swing.JButton startBtn; private javax.swing.JLabel title; // End of variables declaration//GEN-END:variables }
package com.ybh.front.model; import java.util.Date; public class ServerVPSlist { /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.id * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer id; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.servername * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String servername; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.site * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String site; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.homedir * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String homedir; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ip * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String ip; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.agent1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String agent1; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.agent2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String agent2; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.FreeHostsharekey * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String freehostsharekey; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.netby * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String netby; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.backupdir * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String backupdir; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.orderbyid * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer orderbyid; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.CpuNum * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer cpunum; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.MAXRAM * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer maxram; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.MaxCPU * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer maxcpu; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.MAXSPACE * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer maxspace; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.MAXVPS * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer maxvps; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname1; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile1; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname2; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile2; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname3; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile3; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname4; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile4; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.isONEip * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isoneip; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.usecdn1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer usecdn1; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.usecdn2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer usecdn2; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.usecdn3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer usecdn3; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.usecdn4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer usecdn4; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.usecdn5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer usecdn5; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.port * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer port; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.useportserver * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer useportserver; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.OStype * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String ostype; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname5; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile5; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname6; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile6; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname7; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile7; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname8; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile8; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname9; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile9; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname10; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile10; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname11; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile11; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname12; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile12; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname13; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile13; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname14; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile14; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname15; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile15; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname16; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile16; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.vhdtype * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String vhdtype; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.CPUMHZ * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer cpumhz; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.SwitchName * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String switchname; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.IsCluster * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean iscluster; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ClusterName * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String clustername; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ComputerName * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String computername; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.SwitchName2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String switchname2; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.lastBAKtime * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Date lastbaktime; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.backupyes * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String backupyes; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.backupday * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer backupday; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype1; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype2; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype3; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype4; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype5; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype6; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype7; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype8; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype9; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype10; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype11; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype12; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype13; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype14; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype15; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype16; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname1; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir1; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype1; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname2; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir2; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype2; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname3; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir3; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype3; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname4; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir4; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype4; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname5; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir5; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype5; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname6; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir6; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype6; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname7; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir7; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype7; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname8; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir8; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype8; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname9; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir9; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype9; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname10; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir10; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype10; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname11; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir11; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype11; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname12; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir12; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype12; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname13; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir13; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype13; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname14; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir14; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype14; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname15; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir15; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype15; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOname16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isoname16; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOdir16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String isodir16; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ISOtype16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean isotype16; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.Tooldir1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String tooldir1; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.Tooldir2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String tooldir2; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.Tooldir3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String tooldir3; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.Tooldir4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String tooldir4; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.Tooldir5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String tooldir5; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.Tooldir6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String tooldir6; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.Tooldir7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String tooldir7; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.Tooldir8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String tooldir8; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.Tooldir9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String tooldir9; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.Tooldir10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String tooldir10; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ToolName1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String toolname1; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ToolName2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String toolname2; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ToolName3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String toolname3; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ToolName4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String toolname4; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ToolName5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String toolname5; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ToolName6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String toolname6; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ToolName7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String toolname7; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ToolName8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String toolname8; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ToolName9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String toolname9; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ToolName10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String toolname10; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname17 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname17; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile17 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile17; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype17 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype17; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname18 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname18; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile18 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile18; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype18 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype18; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname19 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname19; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile19 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile19; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype19 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype19; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname20 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname20; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile20 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile20; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype20 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype20; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname21 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname21; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile21 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile21; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype21 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype21; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname22 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname22; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile22 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile22; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype22 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype22; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname23 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname23; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile23 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile23; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype23 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype23; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname24 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname24; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile24 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile24; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype24 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype24; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osname25 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osname25; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osfile25 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private String osfile25; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.osnametype25 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean osnametype25; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.Canselectnow * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean canselectnow; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.typeid * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Integer typeid; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column FreeHost_ServerVPSlist.ANIArp * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ private Boolean aniarp; /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.id * * @return the value of FreeHost_ServerVPSlist.id * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getId() { return id; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.id * * @param id the value for FreeHost_ServerVPSlist.id * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setId(Integer id) { this.id = id; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.servername * * @return the value of FreeHost_ServerVPSlist.servername * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getServername() { return servername; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.servername * * @param servername the value for FreeHost_ServerVPSlist.servername * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setServername(String servername) { this.servername = servername == null ? null : servername.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.site * * @return the value of FreeHost_ServerVPSlist.site * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getSite() { return site; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.site * * @param site the value for FreeHost_ServerVPSlist.site * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setSite(String site) { this.site = site == null ? null : site.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.homedir * * @return the value of FreeHost_ServerVPSlist.homedir * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getHomedir() { return homedir; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.homedir * * @param homedir the value for FreeHost_ServerVPSlist.homedir * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setHomedir(String homedir) { this.homedir = homedir == null ? null : homedir.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ip * * @return the value of FreeHost_ServerVPSlist.ip * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIp() { return ip; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ip * * @param ip the value for FreeHost_ServerVPSlist.ip * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIp(String ip) { this.ip = ip == null ? null : ip.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.agent1 * * @return the value of FreeHost_ServerVPSlist.agent1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getAgent1() { return agent1; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.agent1 * * @param agent1 the value for FreeHost_ServerVPSlist.agent1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setAgent1(String agent1) { this.agent1 = agent1 == null ? null : agent1.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.agent2 * * @return the value of FreeHost_ServerVPSlist.agent2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getAgent2() { return agent2; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.agent2 * * @param agent2 the value for FreeHost_ServerVPSlist.agent2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setAgent2(String agent2) { this.agent2 = agent2 == null ? null : agent2.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.FreeHostsharekey * * @return the value of FreeHost_ServerVPSlist.FreeHostsharekey * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getFreehostsharekey() { return freehostsharekey; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.FreeHostsharekey * * @param freehostsharekey the value for FreeHost_ServerVPSlist.FreeHostsharekey * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setFreehostsharekey(String freehostsharekey) { this.freehostsharekey = freehostsharekey == null ? null : freehostsharekey.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.netby * * @return the value of FreeHost_ServerVPSlist.netby * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getNetby() { return netby; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.netby * * @param netby the value for FreeHost_ServerVPSlist.netby * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setNetby(String netby) { this.netby = netby == null ? null : netby.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.backupdir * * @return the value of FreeHost_ServerVPSlist.backupdir * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getBackupdir() { return backupdir; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.backupdir * * @param backupdir the value for FreeHost_ServerVPSlist.backupdir * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setBackupdir(String backupdir) { this.backupdir = backupdir == null ? null : backupdir.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.orderbyid * * @return the value of FreeHost_ServerVPSlist.orderbyid * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getOrderbyid() { return orderbyid; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.orderbyid * * @param orderbyid the value for FreeHost_ServerVPSlist.orderbyid * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOrderbyid(Integer orderbyid) { this.orderbyid = orderbyid; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.CpuNum * * @return the value of FreeHost_ServerVPSlist.CpuNum * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getCpunum() { return cpunum; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.CpuNum * * @param cpunum the value for FreeHost_ServerVPSlist.CpuNum * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setCpunum(Integer cpunum) { this.cpunum = cpunum; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.MAXRAM * * @return the value of FreeHost_ServerVPSlist.MAXRAM * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getMaxram() { return maxram; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.MAXRAM * * @param maxram the value for FreeHost_ServerVPSlist.MAXRAM * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setMaxram(Integer maxram) { this.maxram = maxram; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.MaxCPU * * @return the value of FreeHost_ServerVPSlist.MaxCPU * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getMaxcpu() { return maxcpu; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.MaxCPU * * @param maxcpu the value for FreeHost_ServerVPSlist.MaxCPU * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setMaxcpu(Integer maxcpu) { this.maxcpu = maxcpu; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.MAXSPACE * * @return the value of FreeHost_ServerVPSlist.MAXSPACE * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getMaxspace() { return maxspace; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.MAXSPACE * * @param maxspace the value for FreeHost_ServerVPSlist.MAXSPACE * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setMaxspace(Integer maxspace) { this.maxspace = maxspace; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.MAXVPS * * @return the value of FreeHost_ServerVPSlist.MAXVPS * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getMaxvps() { return maxvps; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.MAXVPS * * @param maxvps the value for FreeHost_ServerVPSlist.MAXVPS * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setMaxvps(Integer maxvps) { this.maxvps = maxvps; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname1 * * @return the value of FreeHost_ServerVPSlist.osname1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname1() { return osname1; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname1 * * @param osname1 the value for FreeHost_ServerVPSlist.osname1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname1(String osname1) { this.osname1 = osname1 == null ? null : osname1.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile1 * * @return the value of FreeHost_ServerVPSlist.osfile1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile1() { return osfile1; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile1 * * @param osfile1 the value for FreeHost_ServerVPSlist.osfile1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile1(String osfile1) { this.osfile1 = osfile1 == null ? null : osfile1.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname2 * * @return the value of FreeHost_ServerVPSlist.osname2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname2() { return osname2; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname2 * * @param osname2 the value for FreeHost_ServerVPSlist.osname2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname2(String osname2) { this.osname2 = osname2 == null ? null : osname2.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile2 * * @return the value of FreeHost_ServerVPSlist.osfile2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile2() { return osfile2; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile2 * * @param osfile2 the value for FreeHost_ServerVPSlist.osfile2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile2(String osfile2) { this.osfile2 = osfile2 == null ? null : osfile2.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname3 * * @return the value of FreeHost_ServerVPSlist.osname3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname3() { return osname3; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname3 * * @param osname3 the value for FreeHost_ServerVPSlist.osname3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname3(String osname3) { this.osname3 = osname3 == null ? null : osname3.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile3 * * @return the value of FreeHost_ServerVPSlist.osfile3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile3() { return osfile3; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile3 * * @param osfile3 the value for FreeHost_ServerVPSlist.osfile3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile3(String osfile3) { this.osfile3 = osfile3 == null ? null : osfile3.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname4 * * @return the value of FreeHost_ServerVPSlist.osname4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname4() { return osname4; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname4 * * @param osname4 the value for FreeHost_ServerVPSlist.osname4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname4(String osname4) { this.osname4 = osname4 == null ? null : osname4.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile4 * * @return the value of FreeHost_ServerVPSlist.osfile4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile4() { return osfile4; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile4 * * @param osfile4 the value for FreeHost_ServerVPSlist.osfile4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile4(String osfile4) { this.osfile4 = osfile4 == null ? null : osfile4.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.isONEip * * @return the value of FreeHost_ServerVPSlist.isONEip * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsoneip() { return isoneip; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.isONEip * * @param isoneip the value for FreeHost_ServerVPSlist.isONEip * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoneip(Boolean isoneip) { this.isoneip = isoneip; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.usecdn1 * * @return the value of FreeHost_ServerVPSlist.usecdn1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getUsecdn1() { return usecdn1; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.usecdn1 * * @param usecdn1 the value for FreeHost_ServerVPSlist.usecdn1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setUsecdn1(Integer usecdn1) { this.usecdn1 = usecdn1; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.usecdn2 * * @return the value of FreeHost_ServerVPSlist.usecdn2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getUsecdn2() { return usecdn2; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.usecdn2 * * @param usecdn2 the value for FreeHost_ServerVPSlist.usecdn2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setUsecdn2(Integer usecdn2) { this.usecdn2 = usecdn2; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.usecdn3 * * @return the value of FreeHost_ServerVPSlist.usecdn3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getUsecdn3() { return usecdn3; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.usecdn3 * * @param usecdn3 the value for FreeHost_ServerVPSlist.usecdn3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setUsecdn3(Integer usecdn3) { this.usecdn3 = usecdn3; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.usecdn4 * * @return the value of FreeHost_ServerVPSlist.usecdn4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getUsecdn4() { return usecdn4; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.usecdn4 * * @param usecdn4 the value for FreeHost_ServerVPSlist.usecdn4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setUsecdn4(Integer usecdn4) { this.usecdn4 = usecdn4; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.usecdn5 * * @return the value of FreeHost_ServerVPSlist.usecdn5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getUsecdn5() { return usecdn5; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.usecdn5 * * @param usecdn5 the value for FreeHost_ServerVPSlist.usecdn5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setUsecdn5(Integer usecdn5) { this.usecdn5 = usecdn5; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.port * * @return the value of FreeHost_ServerVPSlist.port * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getPort() { return port; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.port * * @param port the value for FreeHost_ServerVPSlist.port * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setPort(Integer port) { this.port = port; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.useportserver * * @return the value of FreeHost_ServerVPSlist.useportserver * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getUseportserver() { return useportserver; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.useportserver * * @param useportserver the value for FreeHost_ServerVPSlist.useportserver * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setUseportserver(Integer useportserver) { this.useportserver = useportserver; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.OStype * * @return the value of FreeHost_ServerVPSlist.OStype * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOstype() { return ostype; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.OStype * * @param ostype the value for FreeHost_ServerVPSlist.OStype * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOstype(String ostype) { this.ostype = ostype == null ? null : ostype.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname5 * * @return the value of FreeHost_ServerVPSlist.osname5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname5() { return osname5; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname5 * * @param osname5 the value for FreeHost_ServerVPSlist.osname5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname5(String osname5) { this.osname5 = osname5 == null ? null : osname5.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile5 * * @return the value of FreeHost_ServerVPSlist.osfile5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile5() { return osfile5; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile5 * * @param osfile5 the value for FreeHost_ServerVPSlist.osfile5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile5(String osfile5) { this.osfile5 = osfile5 == null ? null : osfile5.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname6 * * @return the value of FreeHost_ServerVPSlist.osname6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname6() { return osname6; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname6 * * @param osname6 the value for FreeHost_ServerVPSlist.osname6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname6(String osname6) { this.osname6 = osname6 == null ? null : osname6.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile6 * * @return the value of FreeHost_ServerVPSlist.osfile6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile6() { return osfile6; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile6 * * @param osfile6 the value for FreeHost_ServerVPSlist.osfile6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile6(String osfile6) { this.osfile6 = osfile6 == null ? null : osfile6.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname7 * * @return the value of FreeHost_ServerVPSlist.osname7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname7() { return osname7; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname7 * * @param osname7 the value for FreeHost_ServerVPSlist.osname7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname7(String osname7) { this.osname7 = osname7 == null ? null : osname7.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile7 * * @return the value of FreeHost_ServerVPSlist.osfile7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile7() { return osfile7; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile7 * * @param osfile7 the value for FreeHost_ServerVPSlist.osfile7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile7(String osfile7) { this.osfile7 = osfile7 == null ? null : osfile7.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname8 * * @return the value of FreeHost_ServerVPSlist.osname8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname8() { return osname8; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname8 * * @param osname8 the value for FreeHost_ServerVPSlist.osname8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname8(String osname8) { this.osname8 = osname8 == null ? null : osname8.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile8 * * @return the value of FreeHost_ServerVPSlist.osfile8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile8() { return osfile8; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile8 * * @param osfile8 the value for FreeHost_ServerVPSlist.osfile8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile8(String osfile8) { this.osfile8 = osfile8 == null ? null : osfile8.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname9 * * @return the value of FreeHost_ServerVPSlist.osname9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname9() { return osname9; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname9 * * @param osname9 the value for FreeHost_ServerVPSlist.osname9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname9(String osname9) { this.osname9 = osname9 == null ? null : osname9.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile9 * * @return the value of FreeHost_ServerVPSlist.osfile9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile9() { return osfile9; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile9 * * @param osfile9 the value for FreeHost_ServerVPSlist.osfile9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile9(String osfile9) { this.osfile9 = osfile9 == null ? null : osfile9.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname10 * * @return the value of FreeHost_ServerVPSlist.osname10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname10() { return osname10; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname10 * * @param osname10 the value for FreeHost_ServerVPSlist.osname10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname10(String osname10) { this.osname10 = osname10 == null ? null : osname10.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile10 * * @return the value of FreeHost_ServerVPSlist.osfile10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile10() { return osfile10; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile10 * * @param osfile10 the value for FreeHost_ServerVPSlist.osfile10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile10(String osfile10) { this.osfile10 = osfile10 == null ? null : osfile10.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname11 * * @return the value of FreeHost_ServerVPSlist.osname11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname11() { return osname11; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname11 * * @param osname11 the value for FreeHost_ServerVPSlist.osname11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname11(String osname11) { this.osname11 = osname11 == null ? null : osname11.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile11 * * @return the value of FreeHost_ServerVPSlist.osfile11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile11() { return osfile11; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile11 * * @param osfile11 the value for FreeHost_ServerVPSlist.osfile11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile11(String osfile11) { this.osfile11 = osfile11 == null ? null : osfile11.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname12 * * @return the value of FreeHost_ServerVPSlist.osname12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname12() { return osname12; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname12 * * @param osname12 the value for FreeHost_ServerVPSlist.osname12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname12(String osname12) { this.osname12 = osname12 == null ? null : osname12.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile12 * * @return the value of FreeHost_ServerVPSlist.osfile12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile12() { return osfile12; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile12 * * @param osfile12 the value for FreeHost_ServerVPSlist.osfile12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile12(String osfile12) { this.osfile12 = osfile12 == null ? null : osfile12.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname13 * * @return the value of FreeHost_ServerVPSlist.osname13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname13() { return osname13; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname13 * * @param osname13 the value for FreeHost_ServerVPSlist.osname13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname13(String osname13) { this.osname13 = osname13 == null ? null : osname13.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile13 * * @return the value of FreeHost_ServerVPSlist.osfile13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile13() { return osfile13; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile13 * * @param osfile13 the value for FreeHost_ServerVPSlist.osfile13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile13(String osfile13) { this.osfile13 = osfile13 == null ? null : osfile13.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname14 * * @return the value of FreeHost_ServerVPSlist.osname14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname14() { return osname14; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname14 * * @param osname14 the value for FreeHost_ServerVPSlist.osname14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname14(String osname14) { this.osname14 = osname14 == null ? null : osname14.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile14 * * @return the value of FreeHost_ServerVPSlist.osfile14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile14() { return osfile14; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile14 * * @param osfile14 the value for FreeHost_ServerVPSlist.osfile14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile14(String osfile14) { this.osfile14 = osfile14 == null ? null : osfile14.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname15 * * @return the value of FreeHost_ServerVPSlist.osname15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname15() { return osname15; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname15 * * @param osname15 the value for FreeHost_ServerVPSlist.osname15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname15(String osname15) { this.osname15 = osname15 == null ? null : osname15.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile15 * * @return the value of FreeHost_ServerVPSlist.osfile15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile15() { return osfile15; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile15 * * @param osfile15 the value for FreeHost_ServerVPSlist.osfile15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile15(String osfile15) { this.osfile15 = osfile15 == null ? null : osfile15.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname16 * * @return the value of FreeHost_ServerVPSlist.osname16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname16() { return osname16; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname16 * * @param osname16 the value for FreeHost_ServerVPSlist.osname16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname16(String osname16) { this.osname16 = osname16 == null ? null : osname16.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile16 * * @return the value of FreeHost_ServerVPSlist.osfile16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile16() { return osfile16; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile16 * * @param osfile16 the value for FreeHost_ServerVPSlist.osfile16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile16(String osfile16) { this.osfile16 = osfile16 == null ? null : osfile16.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.vhdtype * * @return the value of FreeHost_ServerVPSlist.vhdtype * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getVhdtype() { return vhdtype; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.vhdtype * * @param vhdtype the value for FreeHost_ServerVPSlist.vhdtype * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setVhdtype(String vhdtype) { this.vhdtype = vhdtype == null ? null : vhdtype.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.CPUMHZ * * @return the value of FreeHost_ServerVPSlist.CPUMHZ * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getCpumhz() { return cpumhz; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.CPUMHZ * * @param cpumhz the value for FreeHost_ServerVPSlist.CPUMHZ * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setCpumhz(Integer cpumhz) { this.cpumhz = cpumhz; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.SwitchName * * @return the value of FreeHost_ServerVPSlist.SwitchName * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getSwitchname() { return switchname; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.SwitchName * * @param switchname the value for FreeHost_ServerVPSlist.SwitchName * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setSwitchname(String switchname) { this.switchname = switchname == null ? null : switchname.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.IsCluster * * @return the value of FreeHost_ServerVPSlist.IsCluster * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIscluster() { return iscluster; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.IsCluster * * @param iscluster the value for FreeHost_ServerVPSlist.IsCluster * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIscluster(Boolean iscluster) { this.iscluster = iscluster; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ClusterName * * @return the value of FreeHost_ServerVPSlist.ClusterName * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getClustername() { return clustername; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ClusterName * * @param clustername the value for FreeHost_ServerVPSlist.ClusterName * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setClustername(String clustername) { this.clustername = clustername == null ? null : clustername.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ComputerName * * @return the value of FreeHost_ServerVPSlist.ComputerName * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getComputername() { return computername; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ComputerName * * @param computername the value for FreeHost_ServerVPSlist.ComputerName * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setComputername(String computername) { this.computername = computername == null ? null : computername.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.SwitchName2 * * @return the value of FreeHost_ServerVPSlist.SwitchName2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getSwitchname2() { return switchname2; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.SwitchName2 * * @param switchname2 the value for FreeHost_ServerVPSlist.SwitchName2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setSwitchname2(String switchname2) { this.switchname2 = switchname2 == null ? null : switchname2.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.lastBAKtime * * @return the value of FreeHost_ServerVPSlist.lastBAKtime * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Date getLastbaktime() { return lastbaktime; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.lastBAKtime * * @param lastbaktime the value for FreeHost_ServerVPSlist.lastBAKtime * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setLastbaktime(Date lastbaktime) { this.lastbaktime = lastbaktime; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.backupyes * * @return the value of FreeHost_ServerVPSlist.backupyes * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getBackupyes() { return backupyes; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.backupyes * * @param backupyes the value for FreeHost_ServerVPSlist.backupyes * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setBackupyes(String backupyes) { this.backupyes = backupyes == null ? null : backupyes.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.backupday * * @return the value of FreeHost_ServerVPSlist.backupday * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getBackupday() { return backupday; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.backupday * * @param backupday the value for FreeHost_ServerVPSlist.backupday * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setBackupday(Integer backupday) { this.backupday = backupday; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype1 * * @return the value of FreeHost_ServerVPSlist.osnametype1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype1() { return osnametype1; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype1 * * @param osnametype1 the value for FreeHost_ServerVPSlist.osnametype1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype1(Boolean osnametype1) { this.osnametype1 = osnametype1; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype2 * * @return the value of FreeHost_ServerVPSlist.osnametype2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype2() { return osnametype2; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype2 * * @param osnametype2 the value for FreeHost_ServerVPSlist.osnametype2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype2(Boolean osnametype2) { this.osnametype2 = osnametype2; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype3 * * @return the value of FreeHost_ServerVPSlist.osnametype3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype3() { return osnametype3; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype3 * * @param osnametype3 the value for FreeHost_ServerVPSlist.osnametype3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype3(Boolean osnametype3) { this.osnametype3 = osnametype3; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype4 * * @return the value of FreeHost_ServerVPSlist.osnametype4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype4() { return osnametype4; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype4 * * @param osnametype4 the value for FreeHost_ServerVPSlist.osnametype4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype4(Boolean osnametype4) { this.osnametype4 = osnametype4; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype5 * * @return the value of FreeHost_ServerVPSlist.osnametype5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype5() { return osnametype5; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype5 * * @param osnametype5 the value for FreeHost_ServerVPSlist.osnametype5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype5(Boolean osnametype5) { this.osnametype5 = osnametype5; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype6 * * @return the value of FreeHost_ServerVPSlist.osnametype6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype6() { return osnametype6; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype6 * * @param osnametype6 the value for FreeHost_ServerVPSlist.osnametype6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype6(Boolean osnametype6) { this.osnametype6 = osnametype6; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype7 * * @return the value of FreeHost_ServerVPSlist.osnametype7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype7() { return osnametype7; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype7 * * @param osnametype7 the value for FreeHost_ServerVPSlist.osnametype7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype7(Boolean osnametype7) { this.osnametype7 = osnametype7; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype8 * * @return the value of FreeHost_ServerVPSlist.osnametype8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype8() { return osnametype8; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype8 * * @param osnametype8 the value for FreeHost_ServerVPSlist.osnametype8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype8(Boolean osnametype8) { this.osnametype8 = osnametype8; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype9 * * @return the value of FreeHost_ServerVPSlist.osnametype9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype9() { return osnametype9; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype9 * * @param osnametype9 the value for FreeHost_ServerVPSlist.osnametype9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype9(Boolean osnametype9) { this.osnametype9 = osnametype9; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype10 * * @return the value of FreeHost_ServerVPSlist.osnametype10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype10() { return osnametype10; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype10 * * @param osnametype10 the value for FreeHost_ServerVPSlist.osnametype10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype10(Boolean osnametype10) { this.osnametype10 = osnametype10; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype11 * * @return the value of FreeHost_ServerVPSlist.osnametype11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype11() { return osnametype11; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype11 * * @param osnametype11 the value for FreeHost_ServerVPSlist.osnametype11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype11(Boolean osnametype11) { this.osnametype11 = osnametype11; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype12 * * @return the value of FreeHost_ServerVPSlist.osnametype12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype12() { return osnametype12; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype12 * * @param osnametype12 the value for FreeHost_ServerVPSlist.osnametype12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype12(Boolean osnametype12) { this.osnametype12 = osnametype12; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype13 * * @return the value of FreeHost_ServerVPSlist.osnametype13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype13() { return osnametype13; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype13 * * @param osnametype13 the value for FreeHost_ServerVPSlist.osnametype13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype13(Boolean osnametype13) { this.osnametype13 = osnametype13; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype14 * * @return the value of FreeHost_ServerVPSlist.osnametype14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype14() { return osnametype14; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype14 * * @param osnametype14 the value for FreeHost_ServerVPSlist.osnametype14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype14(Boolean osnametype14) { this.osnametype14 = osnametype14; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype15 * * @return the value of FreeHost_ServerVPSlist.osnametype15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype15() { return osnametype15; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype15 * * @param osnametype15 the value for FreeHost_ServerVPSlist.osnametype15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype15(Boolean osnametype15) { this.osnametype15 = osnametype15; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype16 * * @return the value of FreeHost_ServerVPSlist.osnametype16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype16() { return osnametype16; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype16 * * @param osnametype16 the value for FreeHost_ServerVPSlist.osnametype16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype16(Boolean osnametype16) { this.osnametype16 = osnametype16; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname1 * * @return the value of FreeHost_ServerVPSlist.ISOname1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname1() { return isoname1; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname1 * * @param isoname1 the value for FreeHost_ServerVPSlist.ISOname1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname1(String isoname1) { this.isoname1 = isoname1 == null ? null : isoname1.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir1 * * @return the value of FreeHost_ServerVPSlist.ISOdir1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir1() { return isodir1; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir1 * * @param isodir1 the value for FreeHost_ServerVPSlist.ISOdir1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir1(String isodir1) { this.isodir1 = isodir1 == null ? null : isodir1.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype1 * * @return the value of FreeHost_ServerVPSlist.ISOtype1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype1() { return isotype1; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype1 * * @param isotype1 the value for FreeHost_ServerVPSlist.ISOtype1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype1(Boolean isotype1) { this.isotype1 = isotype1; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname2 * * @return the value of FreeHost_ServerVPSlist.ISOname2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname2() { return isoname2; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname2 * * @param isoname2 the value for FreeHost_ServerVPSlist.ISOname2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname2(String isoname2) { this.isoname2 = isoname2 == null ? null : isoname2.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir2 * * @return the value of FreeHost_ServerVPSlist.ISOdir2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir2() { return isodir2; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir2 * * @param isodir2 the value for FreeHost_ServerVPSlist.ISOdir2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir2(String isodir2) { this.isodir2 = isodir2 == null ? null : isodir2.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype2 * * @return the value of FreeHost_ServerVPSlist.ISOtype2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype2() { return isotype2; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype2 * * @param isotype2 the value for FreeHost_ServerVPSlist.ISOtype2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype2(Boolean isotype2) { this.isotype2 = isotype2; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname3 * * @return the value of FreeHost_ServerVPSlist.ISOname3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname3() { return isoname3; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname3 * * @param isoname3 the value for FreeHost_ServerVPSlist.ISOname3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname3(String isoname3) { this.isoname3 = isoname3 == null ? null : isoname3.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir3 * * @return the value of FreeHost_ServerVPSlist.ISOdir3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir3() { return isodir3; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir3 * * @param isodir3 the value for FreeHost_ServerVPSlist.ISOdir3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir3(String isodir3) { this.isodir3 = isodir3 == null ? null : isodir3.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype3 * * @return the value of FreeHost_ServerVPSlist.ISOtype3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype3() { return isotype3; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype3 * * @param isotype3 the value for FreeHost_ServerVPSlist.ISOtype3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype3(Boolean isotype3) { this.isotype3 = isotype3; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname4 * * @return the value of FreeHost_ServerVPSlist.ISOname4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname4() { return isoname4; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname4 * * @param isoname4 the value for FreeHost_ServerVPSlist.ISOname4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname4(String isoname4) { this.isoname4 = isoname4 == null ? null : isoname4.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir4 * * @return the value of FreeHost_ServerVPSlist.ISOdir4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir4() { return isodir4; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir4 * * @param isodir4 the value for FreeHost_ServerVPSlist.ISOdir4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir4(String isodir4) { this.isodir4 = isodir4 == null ? null : isodir4.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype4 * * @return the value of FreeHost_ServerVPSlist.ISOtype4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype4() { return isotype4; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype4 * * @param isotype4 the value for FreeHost_ServerVPSlist.ISOtype4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype4(Boolean isotype4) { this.isotype4 = isotype4; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname5 * * @return the value of FreeHost_ServerVPSlist.ISOname5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname5() { return isoname5; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname5 * * @param isoname5 the value for FreeHost_ServerVPSlist.ISOname5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname5(String isoname5) { this.isoname5 = isoname5 == null ? null : isoname5.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir5 * * @return the value of FreeHost_ServerVPSlist.ISOdir5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir5() { return isodir5; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir5 * * @param isodir5 the value for FreeHost_ServerVPSlist.ISOdir5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir5(String isodir5) { this.isodir5 = isodir5 == null ? null : isodir5.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype5 * * @return the value of FreeHost_ServerVPSlist.ISOtype5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype5() { return isotype5; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype5 * * @param isotype5 the value for FreeHost_ServerVPSlist.ISOtype5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype5(Boolean isotype5) { this.isotype5 = isotype5; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname6 * * @return the value of FreeHost_ServerVPSlist.ISOname6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname6() { return isoname6; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname6 * * @param isoname6 the value for FreeHost_ServerVPSlist.ISOname6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname6(String isoname6) { this.isoname6 = isoname6 == null ? null : isoname6.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir6 * * @return the value of FreeHost_ServerVPSlist.ISOdir6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir6() { return isodir6; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir6 * * @param isodir6 the value for FreeHost_ServerVPSlist.ISOdir6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir6(String isodir6) { this.isodir6 = isodir6 == null ? null : isodir6.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype6 * * @return the value of FreeHost_ServerVPSlist.ISOtype6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype6() { return isotype6; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype6 * * @param isotype6 the value for FreeHost_ServerVPSlist.ISOtype6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype6(Boolean isotype6) { this.isotype6 = isotype6; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname7 * * @return the value of FreeHost_ServerVPSlist.ISOname7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname7() { return isoname7; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname7 * * @param isoname7 the value for FreeHost_ServerVPSlist.ISOname7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname7(String isoname7) { this.isoname7 = isoname7 == null ? null : isoname7.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir7 * * @return the value of FreeHost_ServerVPSlist.ISOdir7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir7() { return isodir7; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir7 * * @param isodir7 the value for FreeHost_ServerVPSlist.ISOdir7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir7(String isodir7) { this.isodir7 = isodir7 == null ? null : isodir7.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype7 * * @return the value of FreeHost_ServerVPSlist.ISOtype7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype7() { return isotype7; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype7 * * @param isotype7 the value for FreeHost_ServerVPSlist.ISOtype7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype7(Boolean isotype7) { this.isotype7 = isotype7; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname8 * * @return the value of FreeHost_ServerVPSlist.ISOname8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname8() { return isoname8; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname8 * * @param isoname8 the value for FreeHost_ServerVPSlist.ISOname8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname8(String isoname8) { this.isoname8 = isoname8 == null ? null : isoname8.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir8 * * @return the value of FreeHost_ServerVPSlist.ISOdir8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir8() { return isodir8; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir8 * * @param isodir8 the value for FreeHost_ServerVPSlist.ISOdir8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir8(String isodir8) { this.isodir8 = isodir8 == null ? null : isodir8.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype8 * * @return the value of FreeHost_ServerVPSlist.ISOtype8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype8() { return isotype8; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype8 * * @param isotype8 the value for FreeHost_ServerVPSlist.ISOtype8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype8(Boolean isotype8) { this.isotype8 = isotype8; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname9 * * @return the value of FreeHost_ServerVPSlist.ISOname9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname9() { return isoname9; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname9 * * @param isoname9 the value for FreeHost_ServerVPSlist.ISOname9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname9(String isoname9) { this.isoname9 = isoname9 == null ? null : isoname9.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir9 * * @return the value of FreeHost_ServerVPSlist.ISOdir9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir9() { return isodir9; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir9 * * @param isodir9 the value for FreeHost_ServerVPSlist.ISOdir9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir9(String isodir9) { this.isodir9 = isodir9 == null ? null : isodir9.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype9 * * @return the value of FreeHost_ServerVPSlist.ISOtype9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype9() { return isotype9; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype9 * * @param isotype9 the value for FreeHost_ServerVPSlist.ISOtype9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype9(Boolean isotype9) { this.isotype9 = isotype9; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname10 * * @return the value of FreeHost_ServerVPSlist.ISOname10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname10() { return isoname10; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname10 * * @param isoname10 the value for FreeHost_ServerVPSlist.ISOname10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname10(String isoname10) { this.isoname10 = isoname10 == null ? null : isoname10.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir10 * * @return the value of FreeHost_ServerVPSlist.ISOdir10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir10() { return isodir10; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir10 * * @param isodir10 the value for FreeHost_ServerVPSlist.ISOdir10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir10(String isodir10) { this.isodir10 = isodir10 == null ? null : isodir10.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype10 * * @return the value of FreeHost_ServerVPSlist.ISOtype10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype10() { return isotype10; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype10 * * @param isotype10 the value for FreeHost_ServerVPSlist.ISOtype10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype10(Boolean isotype10) { this.isotype10 = isotype10; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname11 * * @return the value of FreeHost_ServerVPSlist.ISOname11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname11() { return isoname11; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname11 * * @param isoname11 the value for FreeHost_ServerVPSlist.ISOname11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname11(String isoname11) { this.isoname11 = isoname11 == null ? null : isoname11.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir11 * * @return the value of FreeHost_ServerVPSlist.ISOdir11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir11() { return isodir11; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir11 * * @param isodir11 the value for FreeHost_ServerVPSlist.ISOdir11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir11(String isodir11) { this.isodir11 = isodir11 == null ? null : isodir11.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype11 * * @return the value of FreeHost_ServerVPSlist.ISOtype11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype11() { return isotype11; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype11 * * @param isotype11 the value for FreeHost_ServerVPSlist.ISOtype11 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype11(Boolean isotype11) { this.isotype11 = isotype11; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname12 * * @return the value of FreeHost_ServerVPSlist.ISOname12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname12() { return isoname12; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname12 * * @param isoname12 the value for FreeHost_ServerVPSlist.ISOname12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname12(String isoname12) { this.isoname12 = isoname12 == null ? null : isoname12.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir12 * * @return the value of FreeHost_ServerVPSlist.ISOdir12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir12() { return isodir12; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir12 * * @param isodir12 the value for FreeHost_ServerVPSlist.ISOdir12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir12(String isodir12) { this.isodir12 = isodir12 == null ? null : isodir12.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype12 * * @return the value of FreeHost_ServerVPSlist.ISOtype12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype12() { return isotype12; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype12 * * @param isotype12 the value for FreeHost_ServerVPSlist.ISOtype12 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype12(Boolean isotype12) { this.isotype12 = isotype12; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname13 * * @return the value of FreeHost_ServerVPSlist.ISOname13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname13() { return isoname13; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname13 * * @param isoname13 the value for FreeHost_ServerVPSlist.ISOname13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname13(String isoname13) { this.isoname13 = isoname13 == null ? null : isoname13.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir13 * * @return the value of FreeHost_ServerVPSlist.ISOdir13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir13() { return isodir13; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir13 * * @param isodir13 the value for FreeHost_ServerVPSlist.ISOdir13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir13(String isodir13) { this.isodir13 = isodir13 == null ? null : isodir13.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype13 * * @return the value of FreeHost_ServerVPSlist.ISOtype13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype13() { return isotype13; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype13 * * @param isotype13 the value for FreeHost_ServerVPSlist.ISOtype13 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype13(Boolean isotype13) { this.isotype13 = isotype13; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname14 * * @return the value of FreeHost_ServerVPSlist.ISOname14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname14() { return isoname14; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname14 * * @param isoname14 the value for FreeHost_ServerVPSlist.ISOname14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname14(String isoname14) { this.isoname14 = isoname14 == null ? null : isoname14.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir14 * * @return the value of FreeHost_ServerVPSlist.ISOdir14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir14() { return isodir14; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir14 * * @param isodir14 the value for FreeHost_ServerVPSlist.ISOdir14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir14(String isodir14) { this.isodir14 = isodir14 == null ? null : isodir14.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype14 * * @return the value of FreeHost_ServerVPSlist.ISOtype14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype14() { return isotype14; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype14 * * @param isotype14 the value for FreeHost_ServerVPSlist.ISOtype14 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype14(Boolean isotype14) { this.isotype14 = isotype14; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname15 * * @return the value of FreeHost_ServerVPSlist.ISOname15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname15() { return isoname15; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname15 * * @param isoname15 the value for FreeHost_ServerVPSlist.ISOname15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname15(String isoname15) { this.isoname15 = isoname15 == null ? null : isoname15.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir15 * * @return the value of FreeHost_ServerVPSlist.ISOdir15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir15() { return isodir15; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir15 * * @param isodir15 the value for FreeHost_ServerVPSlist.ISOdir15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir15(String isodir15) { this.isodir15 = isodir15 == null ? null : isodir15.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype15 * * @return the value of FreeHost_ServerVPSlist.ISOtype15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype15() { return isotype15; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype15 * * @param isotype15 the value for FreeHost_ServerVPSlist.ISOtype15 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype15(Boolean isotype15) { this.isotype15 = isotype15; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOname16 * * @return the value of FreeHost_ServerVPSlist.ISOname16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsoname16() { return isoname16; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOname16 * * @param isoname16 the value for FreeHost_ServerVPSlist.ISOname16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsoname16(String isoname16) { this.isoname16 = isoname16 == null ? null : isoname16.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOdir16 * * @return the value of FreeHost_ServerVPSlist.ISOdir16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getIsodir16() { return isodir16; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOdir16 * * @param isodir16 the value for FreeHost_ServerVPSlist.ISOdir16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsodir16(String isodir16) { this.isodir16 = isodir16 == null ? null : isodir16.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ISOtype16 * * @return the value of FreeHost_ServerVPSlist.ISOtype16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getIsotype16() { return isotype16; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ISOtype16 * * @param isotype16 the value for FreeHost_ServerVPSlist.ISOtype16 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setIsotype16(Boolean isotype16) { this.isotype16 = isotype16; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.Tooldir1 * * @return the value of FreeHost_ServerVPSlist.Tooldir1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getTooldir1() { return tooldir1; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.Tooldir1 * * @param tooldir1 the value for FreeHost_ServerVPSlist.Tooldir1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setTooldir1(String tooldir1) { this.tooldir1 = tooldir1 == null ? null : tooldir1.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.Tooldir2 * * @return the value of FreeHost_ServerVPSlist.Tooldir2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getTooldir2() { return tooldir2; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.Tooldir2 * * @param tooldir2 the value for FreeHost_ServerVPSlist.Tooldir2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setTooldir2(String tooldir2) { this.tooldir2 = tooldir2 == null ? null : tooldir2.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.Tooldir3 * * @return the value of FreeHost_ServerVPSlist.Tooldir3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getTooldir3() { return tooldir3; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.Tooldir3 * * @param tooldir3 the value for FreeHost_ServerVPSlist.Tooldir3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setTooldir3(String tooldir3) { this.tooldir3 = tooldir3 == null ? null : tooldir3.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.Tooldir4 * * @return the value of FreeHost_ServerVPSlist.Tooldir4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getTooldir4() { return tooldir4; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.Tooldir4 * * @param tooldir4 the value for FreeHost_ServerVPSlist.Tooldir4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setTooldir4(String tooldir4) { this.tooldir4 = tooldir4 == null ? null : tooldir4.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.Tooldir5 * * @return the value of FreeHost_ServerVPSlist.Tooldir5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getTooldir5() { return tooldir5; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.Tooldir5 * * @param tooldir5 the value for FreeHost_ServerVPSlist.Tooldir5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setTooldir5(String tooldir5) { this.tooldir5 = tooldir5 == null ? null : tooldir5.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.Tooldir6 * * @return the value of FreeHost_ServerVPSlist.Tooldir6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getTooldir6() { return tooldir6; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.Tooldir6 * * @param tooldir6 the value for FreeHost_ServerVPSlist.Tooldir6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setTooldir6(String tooldir6) { this.tooldir6 = tooldir6 == null ? null : tooldir6.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.Tooldir7 * * @return the value of FreeHost_ServerVPSlist.Tooldir7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getTooldir7() { return tooldir7; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.Tooldir7 * * @param tooldir7 the value for FreeHost_ServerVPSlist.Tooldir7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setTooldir7(String tooldir7) { this.tooldir7 = tooldir7 == null ? null : tooldir7.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.Tooldir8 * * @return the value of FreeHost_ServerVPSlist.Tooldir8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getTooldir8() { return tooldir8; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.Tooldir8 * * @param tooldir8 the value for FreeHost_ServerVPSlist.Tooldir8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setTooldir8(String tooldir8) { this.tooldir8 = tooldir8 == null ? null : tooldir8.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.Tooldir9 * * @return the value of FreeHost_ServerVPSlist.Tooldir9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getTooldir9() { return tooldir9; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.Tooldir9 * * @param tooldir9 the value for FreeHost_ServerVPSlist.Tooldir9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setTooldir9(String tooldir9) { this.tooldir9 = tooldir9 == null ? null : tooldir9.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.Tooldir10 * * @return the value of FreeHost_ServerVPSlist.Tooldir10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getTooldir10() { return tooldir10; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.Tooldir10 * * @param tooldir10 the value for FreeHost_ServerVPSlist.Tooldir10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setTooldir10(String tooldir10) { this.tooldir10 = tooldir10 == null ? null : tooldir10.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ToolName1 * * @return the value of FreeHost_ServerVPSlist.ToolName1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getToolname1() { return toolname1; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ToolName1 * * @param toolname1 the value for FreeHost_ServerVPSlist.ToolName1 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setToolname1(String toolname1) { this.toolname1 = toolname1 == null ? null : toolname1.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ToolName2 * * @return the value of FreeHost_ServerVPSlist.ToolName2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getToolname2() { return toolname2; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ToolName2 * * @param toolname2 the value for FreeHost_ServerVPSlist.ToolName2 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setToolname2(String toolname2) { this.toolname2 = toolname2 == null ? null : toolname2.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ToolName3 * * @return the value of FreeHost_ServerVPSlist.ToolName3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getToolname3() { return toolname3; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ToolName3 * * @param toolname3 the value for FreeHost_ServerVPSlist.ToolName3 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setToolname3(String toolname3) { this.toolname3 = toolname3 == null ? null : toolname3.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ToolName4 * * @return the value of FreeHost_ServerVPSlist.ToolName4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getToolname4() { return toolname4; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ToolName4 * * @param toolname4 the value for FreeHost_ServerVPSlist.ToolName4 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setToolname4(String toolname4) { this.toolname4 = toolname4 == null ? null : toolname4.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ToolName5 * * @return the value of FreeHost_ServerVPSlist.ToolName5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getToolname5() { return toolname5; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ToolName5 * * @param toolname5 the value for FreeHost_ServerVPSlist.ToolName5 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setToolname5(String toolname5) { this.toolname5 = toolname5 == null ? null : toolname5.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ToolName6 * * @return the value of FreeHost_ServerVPSlist.ToolName6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getToolname6() { return toolname6; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ToolName6 * * @param toolname6 the value for FreeHost_ServerVPSlist.ToolName6 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setToolname6(String toolname6) { this.toolname6 = toolname6 == null ? null : toolname6.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ToolName7 * * @return the value of FreeHost_ServerVPSlist.ToolName7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getToolname7() { return toolname7; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ToolName7 * * @param toolname7 the value for FreeHost_ServerVPSlist.ToolName7 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setToolname7(String toolname7) { this.toolname7 = toolname7 == null ? null : toolname7.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ToolName8 * * @return the value of FreeHost_ServerVPSlist.ToolName8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getToolname8() { return toolname8; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ToolName8 * * @param toolname8 the value for FreeHost_ServerVPSlist.ToolName8 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setToolname8(String toolname8) { this.toolname8 = toolname8 == null ? null : toolname8.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ToolName9 * * @return the value of FreeHost_ServerVPSlist.ToolName9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getToolname9() { return toolname9; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ToolName9 * * @param toolname9 the value for FreeHost_ServerVPSlist.ToolName9 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setToolname9(String toolname9) { this.toolname9 = toolname9 == null ? null : toolname9.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ToolName10 * * @return the value of FreeHost_ServerVPSlist.ToolName10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getToolname10() { return toolname10; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ToolName10 * * @param toolname10 the value for FreeHost_ServerVPSlist.ToolName10 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setToolname10(String toolname10) { this.toolname10 = toolname10 == null ? null : toolname10.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname17 * * @return the value of FreeHost_ServerVPSlist.osname17 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname17() { return osname17; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname17 * * @param osname17 the value for FreeHost_ServerVPSlist.osname17 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname17(String osname17) { this.osname17 = osname17 == null ? null : osname17.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile17 * * @return the value of FreeHost_ServerVPSlist.osfile17 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile17() { return osfile17; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile17 * * @param osfile17 the value for FreeHost_ServerVPSlist.osfile17 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile17(String osfile17) { this.osfile17 = osfile17 == null ? null : osfile17.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype17 * * @return the value of FreeHost_ServerVPSlist.osnametype17 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype17() { return osnametype17; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype17 * * @param osnametype17 the value for FreeHost_ServerVPSlist.osnametype17 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype17(Boolean osnametype17) { this.osnametype17 = osnametype17; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname18 * * @return the value of FreeHost_ServerVPSlist.osname18 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname18() { return osname18; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname18 * * @param osname18 the value for FreeHost_ServerVPSlist.osname18 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname18(String osname18) { this.osname18 = osname18 == null ? null : osname18.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile18 * * @return the value of FreeHost_ServerVPSlist.osfile18 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile18() { return osfile18; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile18 * * @param osfile18 the value for FreeHost_ServerVPSlist.osfile18 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile18(String osfile18) { this.osfile18 = osfile18 == null ? null : osfile18.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype18 * * @return the value of FreeHost_ServerVPSlist.osnametype18 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype18() { return osnametype18; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype18 * * @param osnametype18 the value for FreeHost_ServerVPSlist.osnametype18 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype18(Boolean osnametype18) { this.osnametype18 = osnametype18; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname19 * * @return the value of FreeHost_ServerVPSlist.osname19 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname19() { return osname19; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname19 * * @param osname19 the value for FreeHost_ServerVPSlist.osname19 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname19(String osname19) { this.osname19 = osname19 == null ? null : osname19.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile19 * * @return the value of FreeHost_ServerVPSlist.osfile19 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile19() { return osfile19; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile19 * * @param osfile19 the value for FreeHost_ServerVPSlist.osfile19 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile19(String osfile19) { this.osfile19 = osfile19 == null ? null : osfile19.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype19 * * @return the value of FreeHost_ServerVPSlist.osnametype19 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype19() { return osnametype19; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype19 * * @param osnametype19 the value for FreeHost_ServerVPSlist.osnametype19 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype19(Boolean osnametype19) { this.osnametype19 = osnametype19; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname20 * * @return the value of FreeHost_ServerVPSlist.osname20 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname20() { return osname20; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname20 * * @param osname20 the value for FreeHost_ServerVPSlist.osname20 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname20(String osname20) { this.osname20 = osname20 == null ? null : osname20.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile20 * * @return the value of FreeHost_ServerVPSlist.osfile20 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile20() { return osfile20; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile20 * * @param osfile20 the value for FreeHost_ServerVPSlist.osfile20 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile20(String osfile20) { this.osfile20 = osfile20 == null ? null : osfile20.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype20 * * @return the value of FreeHost_ServerVPSlist.osnametype20 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype20() { return osnametype20; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype20 * * @param osnametype20 the value for FreeHost_ServerVPSlist.osnametype20 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype20(Boolean osnametype20) { this.osnametype20 = osnametype20; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname21 * * @return the value of FreeHost_ServerVPSlist.osname21 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname21() { return osname21; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname21 * * @param osname21 the value for FreeHost_ServerVPSlist.osname21 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname21(String osname21) { this.osname21 = osname21 == null ? null : osname21.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile21 * * @return the value of FreeHost_ServerVPSlist.osfile21 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile21() { return osfile21; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile21 * * @param osfile21 the value for FreeHost_ServerVPSlist.osfile21 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile21(String osfile21) { this.osfile21 = osfile21 == null ? null : osfile21.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype21 * * @return the value of FreeHost_ServerVPSlist.osnametype21 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype21() { return osnametype21; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype21 * * @param osnametype21 the value for FreeHost_ServerVPSlist.osnametype21 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype21(Boolean osnametype21) { this.osnametype21 = osnametype21; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname22 * * @return the value of FreeHost_ServerVPSlist.osname22 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname22() { return osname22; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname22 * * @param osname22 the value for FreeHost_ServerVPSlist.osname22 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname22(String osname22) { this.osname22 = osname22 == null ? null : osname22.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile22 * * @return the value of FreeHost_ServerVPSlist.osfile22 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile22() { return osfile22; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile22 * * @param osfile22 the value for FreeHost_ServerVPSlist.osfile22 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile22(String osfile22) { this.osfile22 = osfile22 == null ? null : osfile22.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype22 * * @return the value of FreeHost_ServerVPSlist.osnametype22 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype22() { return osnametype22; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype22 * * @param osnametype22 the value for FreeHost_ServerVPSlist.osnametype22 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype22(Boolean osnametype22) { this.osnametype22 = osnametype22; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname23 * * @return the value of FreeHost_ServerVPSlist.osname23 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname23() { return osname23; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname23 * * @param osname23 the value for FreeHost_ServerVPSlist.osname23 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname23(String osname23) { this.osname23 = osname23 == null ? null : osname23.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile23 * * @return the value of FreeHost_ServerVPSlist.osfile23 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile23() { return osfile23; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile23 * * @param osfile23 the value for FreeHost_ServerVPSlist.osfile23 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile23(String osfile23) { this.osfile23 = osfile23 == null ? null : osfile23.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype23 * * @return the value of FreeHost_ServerVPSlist.osnametype23 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype23() { return osnametype23; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype23 * * @param osnametype23 the value for FreeHost_ServerVPSlist.osnametype23 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype23(Boolean osnametype23) { this.osnametype23 = osnametype23; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname24 * * @return the value of FreeHost_ServerVPSlist.osname24 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname24() { return osname24; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname24 * * @param osname24 the value for FreeHost_ServerVPSlist.osname24 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname24(String osname24) { this.osname24 = osname24 == null ? null : osname24.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile24 * * @return the value of FreeHost_ServerVPSlist.osfile24 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile24() { return osfile24; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile24 * * @param osfile24 the value for FreeHost_ServerVPSlist.osfile24 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile24(String osfile24) { this.osfile24 = osfile24 == null ? null : osfile24.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype24 * * @return the value of FreeHost_ServerVPSlist.osnametype24 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype24() { return osnametype24; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype24 * * @param osnametype24 the value for FreeHost_ServerVPSlist.osnametype24 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype24(Boolean osnametype24) { this.osnametype24 = osnametype24; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osname25 * * @return the value of FreeHost_ServerVPSlist.osname25 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsname25() { return osname25; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osname25 * * @param osname25 the value for FreeHost_ServerVPSlist.osname25 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsname25(String osname25) { this.osname25 = osname25 == null ? null : osname25.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osfile25 * * @return the value of FreeHost_ServerVPSlist.osfile25 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public String getOsfile25() { return osfile25; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osfile25 * * @param osfile25 the value for FreeHost_ServerVPSlist.osfile25 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsfile25(String osfile25) { this.osfile25 = osfile25 == null ? null : osfile25.trim(); } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.osnametype25 * * @return the value of FreeHost_ServerVPSlist.osnametype25 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getOsnametype25() { return osnametype25; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.osnametype25 * * @param osnametype25 the value for FreeHost_ServerVPSlist.osnametype25 * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setOsnametype25(Boolean osnametype25) { this.osnametype25 = osnametype25; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.Canselectnow * * @return the value of FreeHost_ServerVPSlist.Canselectnow * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getCanselectnow() { return canselectnow; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.Canselectnow * * @param canselectnow the value for FreeHost_ServerVPSlist.Canselectnow * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setCanselectnow(Boolean canselectnow) { this.canselectnow = canselectnow; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.typeid * * @return the value of FreeHost_ServerVPSlist.typeid * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Integer getTypeid() { return typeid; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.typeid * * @param typeid the value for FreeHost_ServerVPSlist.typeid * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setTypeid(Integer typeid) { this.typeid = typeid; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column FreeHost_ServerVPSlist.ANIArp * * @return the value of FreeHost_ServerVPSlist.ANIArp * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public Boolean getAniarp() { return aniarp; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column FreeHost_ServerVPSlist.ANIArp * * @param aniarp the value for FreeHost_ServerVPSlist.ANIArp * * @mbg.generated Fri May 11 11:16:07 CST 2018 */ public void setAniarp(Boolean aniarp) { this.aniarp = aniarp; } }
package duke.command; import duke.Keyword; import duke.Storage; import duke.TaskList; import duke.Ui; import duke.task.Task; /** * Class to handle the delete command */ public class DeleteCommand extends Command{ final int LENGTH_OF_DELETE = 6; public DeleteCommand(String fullCommand) { super(fullCommand); } /** * Removes the selected task from the task list * @param taskList the Task List object which has the current tasks * @param ui The Ui object for user to interact with * Throws IndexOutOfBoundsException when the index number entered is invalid */ @Override public void execute(TaskList taskList, Ui ui, Storage storage) throws IndexOutOfBoundsException { if (!isValidInput()) { Ui.printCommandIsInvalid(); return; } String[] words = fullCommand.split(" "); int indexOfDeletedTask = Integer.valueOf(words[1])-1; Task deletedTask = TaskList.getTaskAtIndex(indexOfDeletedTask); taskList.deleteTask(deletedTask); Keyword.removeKeyword(Integer.valueOf(indexOfDeletedTask)); Ui.printDeleted(); } /** * Checks for the error case where the input is the command without description * @return false if the command is invalid */ @Override public boolean isValidInput() { if (fullCommand.length() == LENGTH_OF_DELETE) { return false; } return true; } @Override public boolean isExit() { return false; } }
package org.fuserleer.utils; /** * Some useful string handling methods, currently mostly here * for performance reasons. */ public final class Strings { private Strings() { throw new IllegalStateException("Can't construct"); } /** * Brutally convert a string to a sequence of ASCII bytes by * discarding all but the lower 7 bits of each {@code char} in * {@code s}. * <p> * The primary purpose of this method is to implement a speedy * converter between strings and bytes where characters are * known to be limited to the ASCII character set. * <p> * Note that the output will consume exactly {@code s.length()} * bytes. * * @param s The string to convert. * @param bytes The buffer to place the converted bytes into. * @param ofs The offset within the buffer to place the converted bytes. * @return The offset within the buffer immediately past the converted string. */ public static int toAsciiBytes(String s, byte[] bytes, int ofs) { for (int i = 0; i < s.length(); ++i) { bytes[ofs++] = (byte) (s.charAt(i) & 0x7F); } return ofs; } /** * Convert a sequence of ASCII bytes into a string. Note that * no bounds checking is performed on the incoming bytes &#x2014; * the upper bit is silently discarded. * * @param bytes The buffer to convert to a string. * @param ofs The offset within the buffer to start conversion. * @param len The number of bytes to convert. * @return A {@link String} of length {@code len}. */ public static String fromAsciiBytes(byte[] bytes, int ofs, int len) { char[] chars = new char[len]; for (int i = 0; i < len; ++i) { chars[i] = (char) (bytes[ofs + i] & 0x7F); } return new String(chars); } }
package com.fc.activity.kdg; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import org.json.JSONArray; import org.json.JSONObject; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.view.View; import android.view.WindowManager; import android.view.View.OnClickListener; import android.widget.AdapterView; import android.widget.AdapterView.OnItemSelectedListener; import android.widget.Button; import android.widget.SimpleAdapter; import android.widget.Spinner; import com.baidu.location.BDLocation; import com.baidu.location.BDLocationListener; import com.baidu.location.LocationClient; import com.baidu.location.LocationClientOption; import com.fc.R; import com.fc.activity.FrameActivity; import com.fc.cache.DataCache; import com.fc.common.Constant; import com.fc.utils.Config; /** * 快递柜-资产登记 * * @author zdkj * */ public class ZcdjQuery extends FrameActivity { private Button confirm, cancel; private SimpleAdapter adapter; private Spinner spinner_sf, spinner_ds, spinner_qx; private ArrayList<Map<String, String>> data_sf, data_ds, data_qx; private String[] from; private int[] to; private String sfbm, dsbm, qxbm,msgStr; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // 默认焦点不进入输入框,避免显示输入法 getWindow().setSoftInputMode( WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); appendMainBody(R.layout.activity_kdg_zcdjquery); initVariable(); initView(); initListeners(); showProgressDialog(); Config.getExecutorService().execute(new Runnable() { @Override public void run() { getWebService("getsf"); } }); } @Override protected void initVariable() { } @Override protected void initView() { confirm = (Button) findViewById(R.id.include_botto).findViewById( R.id.confirm); cancel = (Button) findViewById(R.id.include_botto).findViewById( R.id.cancel); confirm.setText("查询"); cancel.setText("取消"); spinner_sf = (Spinner) findViewById(R.id.spinner_sf); spinner_ds = (Spinner) findViewById(R.id.spinner_ds); spinner_qx = (Spinner) findViewById(R.id.spinner_qx); from = new String[] { "id", "name" }; to = new int[] { R.id.bm, R.id.name }; title.setText(DataCache.getinition().getTitle()); } @Override protected void initListeners() { // OnClickListener backonClickListener = new OnClickListener() { @Override public void onClick(View v) { switch (v.getId()) { case R.id.bt_topback: onBackPressed(); break; case R.id.cancel: onBackPressed(); break; case R.id.confirm: if(qxbm==null||"".equals(qxbm)){ toastShowMessage("请选择区县"); return; } DataCache.getinition().setQueryType(2601); Intent intent = new Intent(getApplicationContext(),ZcdjList.class); intent.putExtra("cs", qxbm); intent.putExtra("sqlid", "_PAD_ZCGL_SB_ZCDJ1"); startActivity(intent); break; default: break; } } }; topBack.setOnClickListener(backonClickListener); cancel.setOnClickListener(backonClickListener); confirm.setOnClickListener(backonClickListener); spinner_sf.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { sfbm = data_sf.get(position).get("id"); Config.getExecutorService().execute(new Runnable() { @Override public void run() { getWebService("getds"); } }); } @Override public void onNothingSelected(AdapterView<?> parent) { // TODO Auto-generated method stub } }); spinner_ds.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { dsbm = data_ds.get(position).get("id"); Config.getExecutorService().execute(new Runnable() { @Override public void run() { getWebService("getqx"); } }); } @Override public void onNothingSelected(AdapterView<?> parent) { // TODO Auto-generated method stub } }); spinner_qx.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { qxbm = data_qx.get(position).get("id"); Config.getExecutorService().execute(new Runnable() { @Override public void run() { getWebService("getwdmc"); } }); } @Override public void onNothingSelected(AdapterView<?> parent) { // TODO Auto-generated method stub } }); } @Override protected void getWebService(String s) { if ("getsf".equals(s)) { try { data_sf = new ArrayList<Map<String, String>>(); Map<String, String> item = new HashMap<String, String>(); item.put("id", ""); item.put("name", ""); data_sf.add(item); JSONObject jsonObject = callWebserviceImp.getWebServerInfo( "_PAD_SBGL_SBLR_DQXX1", "", "uf_json_getdata", this); String flag = jsonObject.getString("flag"); if (Integer.parseInt(flag) > 0) { JSONArray jsonArray = jsonObject.getJSONArray("tableA"); for (int i = 0; i < jsonArray.length(); i++) { JSONObject temp = jsonArray.getJSONObject(i); item = new HashMap<String, String>(); item.put("id", temp.getString("sfbm")); item.put("name", temp.getString("sfmc")); data_sf.add(item); } Message msg = new Message(); msg.what = Constant.NUM_6; handler.sendMessage(msg); } else { msgStr = "获取省份信息失败"; Message msg = new Message(); msg.what = Constant.FAIL; handler.sendMessage(msg); } } catch (Exception e) { e.printStackTrace(); Message msg = new Message(); msg.what = Constant.NETWORK_ERROR;// 网络不通 handler.sendMessage(msg); } } if ("getds".equals(s)) { try { data_ds = new ArrayList<Map<String, String>>(); Map<String, String> item = new HashMap<String, String>(); item.put("id", ""); item.put("name", ""); data_ds.add(item); JSONObject jsonObject = callWebserviceImp.getWebServerInfo( "_PAD_SBGL_SBLR_DQXX2", sfbm, "uf_json_getdata", this); String flag = jsonObject.getString("flag"); if (Integer.parseInt(flag) > 0) { JSONArray jsonArray = jsonObject.getJSONArray("tableA"); for (int i = 0; i < jsonArray.length(); i++) { JSONObject temp = jsonArray.getJSONObject(i); item = new HashMap<String, String>(); item.put("id", temp.getString("dsbm")); item.put("name", temp.getString("dsmc")); data_ds.add(item); } } Message msg = new Message(); msg.what = Constant.NUM_7; handler.sendMessage(msg); } catch (Exception e) { e.printStackTrace(); Message msg = new Message(); msg.what = Constant.NETWORK_ERROR;// 网络不通 handler.sendMessage(msg); } } if ("getqx".equals(s)) { try { data_qx = new ArrayList<Map<String, String>>(); Map<String, String> item = new HashMap<String, String>(); item.put("id", ""); item.put("name", ""); data_qx.add(item); JSONObject jsonObject = callWebserviceImp.getWebServerInfo( "_PAD_SBGL_SBLR_DQXX3", dsbm, "uf_json_getdata", this); String flag = jsonObject.getString("flag"); if (Integer.parseInt(flag) > 0) { JSONArray jsonArray = jsonObject.getJSONArray("tableA"); for (int i = 0; i < jsonArray.length(); i++) { JSONObject temp = jsonArray.getJSONObject(i); item = new HashMap<String, String>(); item.put("id", temp.getString("qxbm")); item.put("name", temp.getString("qxmc")); data_qx.add(item); } } Message msg = new Message(); msg.what = Constant.NUM_8; handler.sendMessage(msg); } catch (Exception e) { e.printStackTrace(); Message msg = new Message(); msg.what = Constant.NETWORK_ERROR;// 网络不通 handler.sendMessage(msg); } } } private Handler handler = new Handler() { public void handleMessage(Message msg) { super.handleMessage(msg); if (progressDialog != null) { progressDialog.dismiss(); } switch (msg.what) { case Constant.SUCCESS: if (progressDialog != null) { progressDialog.dismiss(); } break; case Constant.FAIL: if (progressDialog != null) { progressDialog.dismiss(); } dialogShowMessage_P("查询失败,"+msgStr, null); break; case Constant.NETWORK_ERROR: if (progressDialog != null) { progressDialog.dismiss(); } dialogShowMessage_P(Constant.NETWORK_ERROR_STR, null); break; case Constant.NUM_6: adapter = new SimpleAdapter(ZcdjQuery.this, data_sf, R.layout.spinner_item, from, to); spinner_sf.setAdapter(adapter); break; case Constant.NUM_7: adapter = new SimpleAdapter(ZcdjQuery.this, data_ds, R.layout.spinner_item, from, to); spinner_ds.setAdapter(adapter); break; case Constant.NUM_8: adapter = new SimpleAdapter(ZcdjQuery.this, data_qx, R.layout.spinner_item, from, to); spinner_qx.setAdapter(adapter); break; } } }; }
package com.mediacom.tools ; import java.io.BufferedReader ; import java.io.FileReader ; import java.io.InputStream ; import java.io.InputStreamReader ; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @SuppressWarnings("unused") public final class ClassPathFileReader { private final static Logger LOG = LoggerFactory.getLogger(ClassPathFileReader.class ) ; private transient BufferedReader bfr ; private transient String delim ; private transient boolean eof ; private transient String filename ; private transient FileReader fr ; private transient String line ; private transient String name ; private transient String newline ; private transient String value ; public ClassPathFileReader( final String filenameIN ) throws MediacomException { filename = filenameIN ; delim = Constants.EQUALS ; name = null ; value = null ; fr = null ; openFileReader ( ) ; eof = false ; newline = String.valueOf ( Constants.NEW_LINE ) ; } public ClassPathFileReader( final String filenameIN , final String delimIN ) throws MediacomException { filename = filenameIN ; delim = delimIN ; name = null ; value = null ; fr = null ; openFileReader ( ) ; eof = false ; newline = String.valueOf ( Constants.NEW_LINE ) ; } public void cleanup( ) throws MediacomException { closeFile ( ) ; filename = null ; delim = null ; name = null ; value = null ; fr = null ; bfr = null ; line = null ; newline = null ; } public void closeFile( ) throws MediacomException { try { if ( bfr != null ) { bfr.close ( ) ; } bfr = null ; fr = null ; filename = null ; delim = null ; } catch ( final Exception e ) { throw new MediacomException ( e ) ; } } public void getItem( ) throws MediacomException { try { if ( ! eof ) { line = bfr.readLine ( ) ; if ( line == null ) { eof = true ; line = Constants.EMPTY_STRING ; name = Constants.EMPTY_STRING ; value = Constants.EMPTY_STRING ; } else { parseItem ( ) ; } } } catch ( final Exception e ) { throw new MediacomException ( e ) ; } } private void openFileReader( ) throws MediacomException { try { LOG.debug ( " filename = " + filename ) ; InputStream in = this.getClass ( ).getClassLoader ( ).getResourceAsStream ( filename ) ; LOG.debug ( " in = " + in ) ; InputStreamReader irr = new InputStreamReader ( in ) ; LOG.debug ( " irr = " + irr ) ; bfr = new BufferedReader ( irr ) ; LOG.debug ( " bfr = " + bfr ) ; } catch ( final Exception e ) { throw new MediacomException ( e ) ; } } /* * future make methods to add and remove a line */ private void parseItem( ) { if ( line != null && line.indexOf ( delim ) > 0 ) { name = line.substring ( 0 , line.indexOf ( delim ) ) ; value = line.substring ( ( line.indexOf ( delim ) + 1 ) , line.length ( ) ) ; if ( name == null ) { name = Constants.EMPTY_STRING ; } if ( value == null ) { value = Constants.EMPTY_STRING ; } } } public String getLine( ) { return this.line ; } public void setLine( String line ) { this.line = line ; } public String getName( ) { return this.name ; } public void setName( String name ) { this.name = name ; } public String getValue( ) { return this.value ; } public void setValue( String value ) { this.value = value ; } public boolean isEof( ) { return this.eof ; } public static void main( final String [ ] args ) // for testing only { // "garage/abc.txt" reads from package /src/garage/abc.txt ClassPathFileReader temp = new ClassPathFileReader ( "garage/abc.txt" ) ; while ( ! temp.eof ) { temp.getItem ( ) ; //if (temp.getLine ( )!=null) //{ LOG.debug ( temp.getLine ( ) ) ; LOG.debug ( ".......... name = " + temp.getName ( ) ) ; LOG.debug ( ".......... value = " + temp.getValue ( ) ) ; //} } } }
package com.tencent.mm.ui.transmit; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.os.AsyncTask; import com.tencent.mm.R; import com.tencent.mm.model.q; import com.tencent.mm.modelsfs.FileOp; import com.tencent.mm.modelvideo.n; import com.tencent.mm.modelvideo.o; import com.tencent.mm.modelvideo.r; import com.tencent.mm.modelvideo.s; import com.tencent.mm.modelvideo.t; import com.tencent.mm.plugin.report.service.h; import com.tencent.mm.protocal.c.bri; import com.tencent.mm.sdk.platformtools.ag; import com.tencent.mm.sdk.platformtools.bi; import com.tencent.mm.sdk.platformtools.x; import com.tencent.mm.ui.chatting.ChattingUI; import com.tencent.mm.ui.transmit.MsgRetransmitUI.b; public final class MsgRetransmitUI$a extends AsyncTask<Object, Object, String> { public String bZN; public Context context; public String cqb; public Dialog eXG; public int elY; public int enM; public String fileName; private ag mHandler = new ag(); public boolean uDV; public String uDW; public boolean uDX = true; public boolean uDY = false; public boolean uDZ = true; public boolean uDo = false; public int uDq; public bri uEa = null; public b uEb = null; public String userName; protected final /* synthetic */ Object doInBackground(Object[] objArr) { String nJ = s.nJ(q.GF()); o.Ta(); String nL = s.nL(nJ); if (this.uDZ) { FileOp.y(s.nK(this.fileName), s.nK(nJ)); FileOp.y(s.nL(this.fileName), nL); } else { FileOp.y(this.fileName, s.nK(nJ)); FileOp.y(this.uDW, nL); } r nW = t.nW(this.fileName); int i = nW != null ? nW.status : 0; x.i("MicroMsg.MsgRetransmitUI", "CopyVideoTask ori[%s] status[%d] new[%s]", new Object[]{this.fileName, Integer.valueOf(i), nJ}); return nJ; } protected final /* synthetic */ void onPostExecute(Object obj) { String str = (String) obj; if (this.eXG != null) { this.eXG.dismiss(); this.eXG = null; } o.Ta(); boolean cn = FileOp.cn(s.nK(str)); o.Ta(); String nL = s.nL(str); boolean cn2 = FileOp.cn(nL); if (this.uDV) { if (cn) { FileOp.deleteFile(str); } if (cn2) { FileOp.deleteFile(nL); return; } return; } x.d("MicroMsg.MsgRetransmitUI", "dkvideo videoIsExport :" + this.uDq + ", videoMsgType :43 videoType : " + this.elY); t.a(str, this.enM, this.userName, null, this.uDq, "", 43, this.uEa, this.bZN); Object obj2 = t.nR(str) != 0 ? 1 : null; o.Ta(); nL = s.nK(str); int i = 3; if (!bi.oW(this.fileName) && this.fileName.contains("favorite")) { i = 7; } int i2 = (bi.oW(this.fileName) || !this.fileName.contains("sns")) ? i : 6; n.SY().a("", nL, this.userName, this.cqb, "", i2, 2); h.mEJ.h(10424, new Object[]{Integer.valueOf(43), Integer.valueOf(8), this.userName}); if (this.uEb != null) { b bVar = this.uEb; nL = this.userName; Object obj3 = obj2 == null ? 1 : null; if (bVar.uEd != null && bVar.uEd.contains(nL)) { bVar.uEd.remove(nL); if (obj3 == null) { bVar.bJm = false; } if (bVar.uEd.size() == 0) { obj3 = 1; if (obj3 != null) { obj2 = !this.uEb.bJm ? 1 : null; } else { return; } } } obj3 = null; if (obj3 != null) { obj2 = !this.uEb.bJm ? 1 : null; } else { return; } } if (this.uDX) { Intent intent = new Intent(this.context, ChattingUI.class); intent.addFlags(67108864); intent.putExtra("Chat_User", this.userName); this.context.startActivity(intent); } if (this.uDo && (this.context instanceof Activity)) { com.tencent.mm.ui.widget.snackbar.b.h((Activity) this.context, this.context.getString(obj2 == null ? R.l.has_send : R.l.sendrequest_send_fail)); } this.mHandler.postDelayed(new 1(this), 1800); } }
package searchcodej; import static org.junit.Assert.*; import java.util.List; import org.junit.Test; import searchcodej.model.Line; public class SourceCodeReaderTest { }
import javafx.scene.canvas.GraphicsContext; public class MyLine extends MyShape{ private MyPoint origin,end; private MyColor color; // Line's color public MyLine() { origin.setX(0); origin.setY(0); end.setX(100); end.setY(100); this.color = MyColor.BLACK; } //MyLine constructor with parameters given public MyLine(MyPoint p1,MyPoint p2, MyColor color) { this.origin = p1; this.end = p2; this.color = color; } //returns the length of the line formula --> sqrt((x2-x1)^2 +(y2-y1)^2) public double getLength() { return Math.sqrt(Math.pow((end.getX()-origin.getX()),2)+Math.pow((end.getY()-origin.getY()),2)); } //returns angle in degree with respect to the x - axis public double get_xAngle(){return Math.toDegrees(Math.atan2((end.getY()-origin.getY()),(end.getX()-origin.getX()))); } //override superclass toString Method @Override public String toString() { double len = this.getLength(); double ang = this.get_xAngle(); return "The endpoints of the line are ("+origin.getX()+","+origin.getY()+") and ("+end.getX()+","+origin.getY()+"). The length of the line is " +len+ ". The angle of the line with the x-axis is " + ang; } @Override public void draw(GraphicsContext line){ line.setStroke(color.getColor()); // set line color line.setLineWidth(4); // set line width line.strokeLine(origin.getX(),origin.getY(),end.getX(),end.getY()); // set line starting and ending points } @Override public MyRectangle getMyBoundingRectangle() { MyPoint c = new MyPoint(Math.abs((end.getX()-origin.getX())/2),Math.abs(end.getY()-origin.getY())/2); return new MyRectangle(this.origin,Math.abs(end.getX()-origin.getX()),Math.abs(end.getY()-origin.getY()),color); } @Override public double getArea() { return 0;} @Override public boolean pointInMyShape(MyPoint p) { return false; } @Override public double getPerimeter() {return 0;} @Override public double intersectMyShape(MyShape shape1) { return 0; } }
package com.mysql.cj.protocol; import com.mysql.cj.result.Field; import java.util.Map; public interface ColumnDefinition extends ProtocolEntity { Field[] getFields(); void setFields(Field[] paramArrayOfField); void buildIndexMapping(); boolean hasBuiltIndexMapping(); Map<String, Integer> getColumnLabelToIndex(); void setColumnLabelToIndex(Map<String, Integer> paramMap); Map<String, Integer> getFullColumnNameToIndex(); void setFullColumnNameToIndex(Map<String, Integer> paramMap); Map<String, Integer> getColumnNameToIndex(); void setColumnNameToIndex(Map<String, Integer> paramMap); Map<String, Integer> getColumnToIndexCache(); void setColumnToIndexCache(Map<String, Integer> paramMap); void initializeFrom(ColumnDefinition paramColumnDefinition); void exportTo(ColumnDefinition paramColumnDefinition); int findColumn(String paramString, boolean paramBoolean, int paramInt); boolean hasLargeFields(); } /* Location: C:\Users\BSV\AppData\Local\Temp\Rar$DRa6216.20396\Preview\Preview.jar!\com\mysql\cj\protocol\ColumnDefinition.class * Java compiler version: 8 (52.0) * JD-Core Version: 1.1.3 */
package com.fleet.mysql.multi.aop.config; import com.fleet.mysql.multi.aop.enums.DBType; import org.apache.ibatis.session.SqlSessionFactory; import org.mybatis.spring.SqlSessionFactoryBean; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.jdbc.DataSourceBuilder; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Primary; import org.springframework.core.io.support.PathMatchingResourcePatternResolver; import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource; import javax.sql.DataSource; import java.util.HashMap; import java.util.Map; @Configuration public class DataSourceConfig { @Primary @Bean(name = "master") @ConfigurationProperties("spring.datasource.master") public DataSource master() { return DataSourceBuilder.create().build(); } @Bean(name = "slaver") @ConfigurationProperties("spring.datasource.slaver") public DataSource slaver() { return DataSourceBuilder.create().build(); } @Bean(name = "dynamicDataSource") public DataSource dynamicDataSource(@Qualifier("master") DataSource master, @Qualifier("slaver") DataSource slaver) { DynamicDataSource dynamicDataSource = new DynamicDataSource(); // 设置主库数据源 dynamicDataSource.setDefaultTargetDataSource(master); Map<Object, Object> targetDataSources = new HashMap<>(); targetDataSources.put(DBType.MASTER, master); targetDataSources.put(DBType.SLAVER, slaver); dynamicDataSource.setTargetDataSources(targetDataSources); return dynamicDataSource; } @Bean(name = "sqlSessionFactory") public SqlSessionFactory sqlSessionFactory(@Qualifier("dynamicDataSource") DataSource dynamicDataSource) throws Exception { SqlSessionFactoryBean bean = new SqlSessionFactoryBean(); bean.setDataSource(dynamicDataSource); bean.setMapperLocations(new PathMatchingResourcePatternResolver().getResources("classpath:mybatis/*Mapper.xml")); return bean.getObject(); } public static class DynamicDataSource extends AbstractRoutingDataSource { @Override protected Object determineCurrentLookupKey() { return DataSourceType.getDBType(); } } public static class DataSourceType { private static final ThreadLocal<DBType> threadLocal = new ThreadLocal<>(); public static void setDBType(DBType dbType) { System.out.println("当前数据源类型改为" + dbType); threadLocal.set(dbType); } public static DBType getDBType() { DBType dbType = threadLocal.get() == null ? DBType.MASTER : threadLocal.get(); System.out.println("当前数据源类型为" + dbType); return dbType; } public static void clearDBType() { threadLocal.remove(); } } }
package com.hk.eureka.server; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; /** * <p> * Eureka 高可用(high availability)配置 * * @author kally * @date 2018年2月6日下午5:45:04 */ @EnableEurekaServer @SpringBootApplication public class EurekaHAServerApplication { /** * @param args */ public static void main(String[] args) { SpringApplication.run(EurekaHAServerApplication.class, args); } }
package com.tencent.mm.plugin.collect.b; import com.tencent.mm.ab.e; import com.tencent.mm.ab.l; import com.tencent.mm.sdk.platformtools.x; import java.util.HashMap; import java.util.Map; public final class f implements e { public static f hTN; private final String TAG = "MicroMsg.F2fGetPayUrlManager"; public Map<l, a> diQ = new HashMap(); public final void a(int i, int i2, String str, l lVar) { if (lVar instanceof l) { l lVar2 = (l) lVar; a aVar = (a) this.diQ.get(lVar); if (aVar == null) { x.w("MicroMsg.F2fGetPayUrlManager", "no match callback"); return; } if (i == 0 && i2 == 0) { aVar.a(true, lVar2.hUl); } else { x.e("MicroMsg.F2fGetPayUrlManager", "net error: %s", new Object[]{lVar2}); aVar.a(false, null); } this.diQ.remove(lVar); } } }
package com.github.mikewtao.webf; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import com.github.mikewtao.webf.mvc.URI; import com.github.mikewtao.webf.mvc.WebController; import com.github.mikewtao.webf.utils.ClazzScanner; import com.github.mikewtao.webf.utils.webfUtil; /** * 数据存储 * */ public class WebfConf { public static Map<String, WebController> urlHandlerMap = new ConcurrentHashMap<String, WebController>(); public static Map<String, List<InterceptorAdapter>> interceptorMap = InterceptorManager.interceptorMap; public static List<URI> urilist=new ArrayList<>(); private static Set<String> classSet = ClazzScanner.getClassScan().getClazzset(); public static String contextPath; public static void clearAllConfig() { urlHandlerMap.clear(); classSet.clear(); interceptorMap.clear(); } public static void initPath(String path) { contextPath = path; } public static WebController findController(String key){ if(webfUtil.isEmpty(key)){ return null; } key=webfUtil.base64Encoder(key); for(URI uri:urilist){ if(key.equals(uri.getKey())){ return uri.getController(); } } return null; } }
package com.qgbase.biz.reportSystem.domain; import com.qgbase.common.domain.TBaseEntity; import lombok.Data; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import javax.validation.constraints.NotNull; import com.qgbase.excel.annotation.ExcelColumn; import java.util.Date; /** * Created by Mark on 2019-10-09 * 主要用于:设备使用统计 实体类定义,此代码为自动生成 */ @Data @Entity @Table(name = "rs_device_report") public class RsDeviceReport extends TBaseEntity { @Id @Column(name = "log_id",unique = true,columnDefinition = "varchar(64) COMMENT '记录id'") @ExcelColumn(columnName="记录id",order = 1,exportName = "log_id") @NotNull(message = "记录id不能为空") private String logId;//create by mark 记录id @Column(name = "log_day",unique = true,columnDefinition = "varchar(64) COMMENT '统计天'") @ExcelColumn(columnName="统计天",order = 2,exportName = "log_day") private String logDay;//create by mark 统计天 @Column(name = "log_month",unique = true,columnDefinition = "varchar(64) COMMENT '统计月'") @ExcelColumn(columnName="统计月",order = 3,exportName = "log_month") private String logMonth;//create by mark 统计月 @Column(name = "log_year",unique = true,columnDefinition = "varchar(64) COMMENT '统计日'") @ExcelColumn(columnName="统计日",order = 4,exportName = "log_year") private String logYear;//create by mark 统计日 @Column(name = "log_week",unique = true,columnDefinition = "varchar(64) COMMENT '统计星期'") @ExcelColumn(columnName="统计星期",order = 5,exportName = "log_week") private String logWeek;//create by mark 统计星期 @Column(name = "device_id",unique = true,columnDefinition = "varchar(64) COMMENT '设备id'") @ExcelColumn(columnName="设备id",order = 6,exportName = "device_id") private String deviceId;//create by mark 设备id @Column(name = "device_uuid",unique = true,columnDefinition = "varchar(64) COMMENT '设备uuid'") @ExcelColumn(columnName="设备uuid",order = 7,exportName = "device_uuid") private String deviceUuid;//create by mark 设备uuid @Column(name = "device_type",unique = true,columnDefinition = "varchar(64) COMMENT '设备类型'") @ExcelColumn(columnName="设备类型",order = 8,exportName = "device_type") private String deviceType;//create by mark 设备类型 @Column(name = "dls_id",unique = true,columnDefinition = "varchar(64) COMMENT '代理商id'") @ExcelColumn(columnName="代理商id",order = 9,exportName = "dls_id") private String dlsId;//create by mark 代理商id @Column(name = "yw_user_id",unique = true,columnDefinition = "varchar(64) COMMENT '业务人员id'") @ExcelColumn(columnName="业务人员id",order = 10,exportName = "yw_user_id") private String ywUserId;//create by mark 业务人员id @Column(name = "client_id",unique = true,columnDefinition = "varchar(64) COMMENT '客户id'") @ExcelColumn(columnName="客户id",order = 11,exportName = "client_id") private String clientId;//create by mark 客户id @Column(name = "use_times",unique = true,columnDefinition = "int COMMENT '使用次数'") @ExcelColumn(columnName="使用次数",order = 12,exportName = "use_times") private Integer useTimes;//create by mark 使用次数 @Column(name = "use_time",unique = true,columnDefinition = "int COMMENT '使用时长(s)'") @ExcelColumn(columnName="使用时长(s)",order = 13,exportName = "use_time") private Integer useTime;//create by mark 使用时长(s) @Column(name = "error_times",unique = true,columnDefinition = "int COMMENT '故障次数'") @ExcelColumn(columnName="故障次数",order = 14,exportName = "error_times") private Integer errorTimes;//create by mark 故障次数 @Override public String getPKid() { return logId; } @Override public String getObjName(){ return "RsDeviceReport"; } @Override public String getObjDesc(){ return "设备使用统计"; } }
package com.tenpay.bankcard; import android.view.View; import android.view.View.OnFocusChangeListener; import android.widget.EditText; class TenpaySegmentEditText$2 implements OnFocusChangeListener { final /* synthetic */ TenpaySegmentEditText this$0; final /* synthetic */ EditText val$edit; TenpaySegmentEditText$2(TenpaySegmentEditText tenpaySegmentEditText, EditText editText) { this.this$0 = tenpaySegmentEditText; this.val$edit = editText; } public void onFocusChange(View view, boolean z) { LogUtil.d("MyTag", new Object[]{"edit onFocusChange hasFocus=" + z}); if (z) { if (TenpaySegmentEditText.access$000(this.this$0) != null) { TenpaySegmentEditText.access$000(this.this$0).onClick(view); } if (TenpaySegmentEditText.access$200(this.this$0) != null) { LogUtil.d("MyTag", new Object[]{"keyboard is not null"}); TenpaySegmentEditText.access$200(this.this$0).setXMode(0); TenpaySegmentEditText.access$200(this.this$0).setInputEditText(this.val$edit); } } } }
package de.jmda.app.xstaffr.client.fx.main.contract; import de.jmda.fx.cdi.FXAppRunner; /** * Starts {@link ContractEditorApp} by invoking {@link FXAppRunner#run(Class, String[])} from {@link #main(String[])}. * * @author ruu@jmda.de */ public class ContractEditorAppRunner { public static void main(String[] args) { FXAppRunner.run(ContractEditorApp.class, args); } }
package com.example.rahul.aavegremote; import retrofit2.Call; import retrofit2.http.POST; public interface Api { public final String BASE_URL = "http://192.168.43.199:9000/"; @POST("play") Call<String> playd(); }
package gr.athena.innovation.fagi.preview.statistics; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import gr.athena.innovation.fagi.exception.ApplicationException; import java.io.IOException; import java.util.Map; import org.apache.logging.log4j.LogManager; /** * Container of the statistics. * * @author nkarag */ public class StatisticsContainer { private static final org.apache.logging.log4j.Logger LOG = LogManager.getLogger(StatisticsContainer.class); private boolean complete = false; @JsonIgnore private transient boolean valid; private Map<String, StatisticResultPair> map; /** * Return the JSON String with the values of this container. * @return the JSON String. */ public String toJson() { String formattedJson = null; try { ObjectMapper objectMapper = new ObjectMapper(); objectMapper.configure(SerializationFeature.INDENT_OUTPUT, true); String originalJson = objectMapper.writeValueAsString(this); JsonNode tree = objectMapper.readTree(originalJson); formattedJson = objectMapper.writeValueAsString(tree); } catch (IOException ex) { LOG.error(ex); throw new ApplicationException("Json serialization failed."); } return formattedJson; } /** * Return the JSON map of this container. * * @return the JSON map. */ public String toJsonMap() { if(map == null){ throw new ApplicationException("Statistics container is not initialized properly."); } String formattedJson; if(valid && complete){ try { ObjectMapper objectMapper = new ObjectMapper(); objectMapper.configure(SerializationFeature.INDENT_OUTPUT, true); String originalJson = objectMapper.writeValueAsString(map); JsonNode jsonNode = objectMapper.readTree(originalJson); formattedJson = objectMapper.writeValueAsString(jsonNode); } catch (IOException ex) { LOG.error(ex); throw new ApplicationException("Json serialization failed."); } } else { //TODO: some stats can be still be returned even when container is not complete. formattedJson = "{}"; } return formattedJson; } /** * * @return true if the container is valid. */ public boolean isValid() { return valid; } /** * * @param valid the validity of the container. */ public void setValid(boolean valid) { this.valid = valid; } /** * * @return the map with stat-names as keys and corresponding results as values. */ public Map<String, StatisticResultPair> getMap() { return map; } /** * * @param map the statistics map. */ public void setMap(Map<String, StatisticResultPair> map) { this.map = map; } /** * * @return true if the container is complete. */ public boolean isComplete() { return complete; } /** * Sets this container as complete or not. * * @param complete the complete value. */ public void setComplete(boolean complete) { this.complete = complete; } }
package bootcamp.selenium.basic; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; public class Button { public static void main(String[] args) { WebDriver driver = LaunchBrowser.launch("https://demoqa.com/buttons"); WebElement ele = driver.findElement(By.xpath("//button[text()='Click Me']")); ele.click(); } }
import java.io.BufferedReader; import java.io.InputStreamReader; import java.sql.*; public class ex_8_2 { static String driverClassName = "org.apache.derby.jdbc.ClientDriver" ; static String url = "jdbc:derby://localhost:1527/dblabs" ; static Connection dbConnection = null; static String username = "euclid"; static String passwd = "tbd2017"; static PreparedStatement insertData = null; public static void main (String[] argv) throws Exception { Class.forName (driverClassName); dbConnection = DriverManager.getConnection (url, username, passwd); String insertString = "INSERT INTO SPONSOR VALUES (?, ?, ?)"; insertData = dbConnection.prepareStatement(insertString); int par1 = 0; String par2 = null; String par3 = null; System.out.println("--- Insert values to Sponsor table --- "); BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in)); while(par1 != 999) { System.out.print("Enter sponsor code : "); par1 = Integer.parseInt(keyboard.readLine()); if (par1 != 999) { System.out.print("Enter sponsor name : "); par2 = keyboard.readLine(); System.out.print("Enter relevant to: "); par3 = keyboard.readLine(); insertData.setInt(1, par1); insertData.setString(2, par2); insertData.setString(3, par3); insertData.executeUpdate(); } } System.out.println("--- Insert values to Sponsorship table --- "); insertString = "INSERT INTO SPONSORSHIP VALUES (?, ?)"; insertData = dbConnection.prepareStatement(insertString); int par11 = 0; int par12 = 0; while(par11 != 999) { System.out.print("Enter sponsor code : "); par11 = Integer.parseInt(keyboard.readLine()); if (par11 != 999) { System.out.print("Enter athlete code : "); par12 = Integer.parseInt(keyboard.readLine()); insertData.setInt(1, par11); insertData.setInt(2, par12); insertData.executeUpdate(); } } insertData.close(); dbConnection.close(); } }