query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
sequencelengths 3
101
| negative_scores
sequencelengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Intent intent= new Intent(tutorial3.this,Preference.class); | public void onClick(View v) {
Log.d("test", "Bengali Unicode" + type);
try
{
String str="";
//str = edit.getText().toString();
//str = StringEscapeUtils.unescapeJava(str);
//txt1.setText(d);
str= "\u0017\u0016\u0007";//"\u0986\u09AE\u09Bf";
String Fname= "fonts/Siyamrupali_1_01.ttf";
txt1.setTypeface(Typeface.createFromAsset(getAssets(),Fname));
Log.d("data","data:::::"+str);
txt1.setText(str);
}
catch(Exception ex)
{
txt1.setText("font cannot load: "+ ex.toString() );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void preferences() {\n\tstartActivity (new Intent(getApplicationContext(), PushPreferencesActivity.class));\n}",
"public void go_to_setting(){\n Intent i=new Intent(LoginSelection.this, Configuration.class);\n startActivity(i);\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n startActivity(new Intent(context, Preferences.class));\n }",
"private void studentRoleAction(){\n savePreferenceData(\"student\");\n Intent intent = new Intent(this, StudentMainActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent screenChange = new Intent(getApplicationContext(), settings.class);\n //creating a bundle to store the variables that will be passed into the next\n //activity\n //starting our activity for a result\n startActivity(screenChange);\n }",
"@Override\n public void onClick(View view) {\n Intent goToPantry = new Intent(VegUser.this, ListPantry.class);\n startActivity(goToPantry); //needs to go to pantry so preference activity refreshes\n }",
"private void teacherRoleAction(){\n savePreferenceData(\"teacher\");\n retrieveData();\n\n Intent intent = new Intent(this, TeacherMainActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setClass(AddPlan.this,Favorite_Site.class);\n// Bundle bundle = new Bundle();\n// bundle.putString(\"myChoice\",\"hello\");\n// intent.putExtras(bundle);\n// startActivityForResult(intent,0);\n startActivity(intent);\n// //AddPlan.this.finish();\n finish();\n\n }",
"void mChapie(){\n Intent i = new Intent(context,Peminjaman.class);\n context.startActivity(i);\n\n }",
"public void openActivity3(){\n Intent intent = new Intent(this, Favoris.class);\n startActivity(intent);\n }",
"@Override\r\n \t\t\tpublic void onClick(View arg0) {\n \t\t\t\tIntent intent = new Intent(AppDownloaded.this, SettingActivity.class);\r\n \t\t\t\tstartActivity(intent);\r\n \t\t\t}",
"public void verProfesionista(View view){\n Intent siguiente = new Intent(verEmpleos.this,verProfesionista.class);\n startActivity(siguiente);//se inicia\n }",
"@Override\n public void onClick(View view) {\n Intent i = new Intent(MainActivity.this,createPoll.class);\n startActivity(i);\n\n }",
"public void openSettings(){\n\n Intent startSearch = new Intent(this, Settings.class);\n startActivity(startSearch);\n\n }",
"public void showPreferences(View view) {\n Intent intent = new Intent(this, Preferences.class);\n startActivity(intent);\n }",
"private void openHome(){\n Intent intent2 = new Intent(AddExercises.this, MainActivity.class);\n startActivity(intent2);\n }",
"void mstrange(){\n Intent i = new Intent(context,Pengembalian.class);\n context.startActivity(i);\n }",
"@Override\n public void onClick(View v) {\n {\n SharedPreferences sharedpreferencesRS= getSharedPreferences(\"SCREENNAME\" , MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferencesRS.edit();\n editor.putString(\"screenname\" , \"roundsetting\");\n editor.commit();\n Intent NextScreen = new Intent(RoundSetting.this, SelectCourse.class);\n // NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n }\n\n\n }",
"@Override\r\n public void onClick(View view) {\n\r\n Intent gotoWiFISwitch = new Intent(MainActivity.this, WiFISwitch.class);\r\n startActivity(gotoWiFISwitch);\r\n\r\n\r\n }",
"public void clickPolice(View view){\n Intent i = new Intent(this,Police.class);\n startActivity(i);\n }",
"public void settingsClick(View view)\r\n {\r\n Intent intent=new Intent(MainActivity.this, SettingsActivity.class);\r\n intent.putExtra(\"toggleButton\" , true);\r\n startActivity(intent);\r\n }",
"@Override\n public void onClick(View v) {\n\t \tIntent myIntent = new Intent(MainActivity.this, Profile.class);\n\t \t//myIntent.putExtra(\"key\", value); //Optional parameters\n\t \tMainActivity.this.startActivity(myIntent);\n }",
"@Override\n public void onClick(View v) {\n\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"player1name\", player1Name.getText().toString());\n editor.putString(\"player2name\", player2Name.getText().toString());\n editor.commit();\n\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n i.putExtra(\"isPlayerDetsSet\", true);\n getApplicationContext().startActivity(i);\n\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, SettingsActivity.class);\n startActivity(intent);\n finish();\n }",
"public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }",
"private void homemenu() \n\n{\nstartActivity (new Intent(getApplicationContext(), Home.class));\n\n\t\n}",
"public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, Setup.class);\n startActivity(intent);\n }",
"public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, Setup.class);\n startActivity(intent);\n }",
"public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, Setup.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent myIntent = new Intent(ChooseParty.this, HelpActivity.class);\n // myIntent.putExtra(\"key\", value); //Optional parameters\n myIntent.putExtra(\"username\", mUsername);\n startActivity(myIntent);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n\n Intent i = new Intent(this,MyPref.class);\n i.putExtra(\"id\",\"1\");\n startActivity(i);\n return true;\n }\n if (id == R.id.action_login) {\n\n Intent i = new Intent(this,User.class);\n startActivity(i);\n return true;\n }\n if (id == R.id.item1) {\n AlertDialog.Builder alert = new AlertDialog.Builder(this);\n alert.setTitle(\"About App\")\n .setMessage(R.string.about_app)\n .create()\n .show();\n }\n if (id == R.id.item2) {\n startActivity(new Intent(getApplicationContext(),Me.class));\n\n }\n if (id == R.id.item3) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"public void onClick(DialogInterface dialog, int which) {\n Intent i = new Intent(settingsScr.this,accountScr.class);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n }",
"@Override\n public void onClick(View v) {\n {\n saveRoundSetting();\n SharedPreferences sharedpreferencesRS= getSharedPreferences(\"SCREENNAME\" , MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferencesRS.edit();\n editor.putString(\"screenname\" , \"roundsetting\");\n editor.commit();\n Intent NextScreen = new Intent(RoundSetting.this, SelectCourse.class);\n // NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n }\n\n\n }",
"public void buttonToExam(View view) {\n Log.i(\"BOTTOM NAVIGATION\", \"to exam button clicked\");\n Intent intent = new Intent(getApplicationContext(), ExamActivity.class);\n// intent.putExtra(\"extra\", \"extra\");\n startActivity(intent);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.prefinal);\n\t\t\n\t\tButton btn=(Button)findViewById(R.id.btnf);\n\t\tbtn.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent it=new Intent(\"com.example.btp.FinalDecision\");\n\t\t\t\tstartActivity(it);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}",
"public boolean onPreferenceClick(Preference preference) {\n String url = \"https://github.com/ilayaraja97/ManageAccounts\";\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n startActivity(i);\n return true;\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent settingsActivity = new Intent(HomeActivity.this,SettingsActivity.class);\n\t\t\t\tstartActivity(settingsActivity);\n\t\t\t\t//Toast.makeText(getApplicationContext(), \"LIBRARY\",Toast.LENGTH_SHORT).show();\n\t\t\t}",
"public void addQuestion(View view) {\n startActivity(new Intent(MainActivity.this, DicebreakerQuestions.class));\n\n }",
"public void updatePreferences() {\n\n Toast.makeText(this, \"enter your data\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(this, SipSettingsActivity.class));\n\n }",
"@Override\n public void onClick(View view) {\n\n\n Intent i = new Intent(getApplicationContext(),Selection.class);\n startActivity(i);\n }",
"public void onClick(View v) {\n\n\n\n startActivity(myIntent);\n }",
"void onCreate(Intent intent);",
"@Override\n public void onClick(View v) {\n Intent cambioVentana = new Intent(Portada.this, Preferencias.class);\n startActivity(cambioVentana);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(Visa.this,Recepit.class);\n startActivity(intent);\n\n\n }",
"public void onLaunchPreferenceActivitySelected(Context context);",
"public void catButton(View view){\n Intent intent=new Intent(PM_L1.this,PM_L1_G1.class);\n startActivity(intent);\n\n }",
"private void back_home()\n {\n btn_home.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n Intent myintent=new Intent(getApplicationContext(), Dictionary_MainActivity.class);\n\n startActivity(myintent);\n\n }\n });\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n super.onCreate(savedInstanceState);\n\n addPreferencesFromResource(R.xml.preferences);\n\n // Intent intent = getIntent();\n }",
"private void gotoOptions() {\n Intent launchOptions = new Intent(this, Preferences.class);\n startActivity(launchOptions);\n }",
"@Override\n public void onClick(View view){\n Intent goToList = new Intent(SPQ7Page.this,SPQuestionList.class );\n\n // Executes Intent object.\n startActivity(goToList);\n\n }",
"@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(MainActivity.this, TAXActivity.class);\n// Intent intent = new Intent(MainActivity.this, Main3Activity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(BoilerRoom.this, Inspection.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n\n Intent quizIntent = new Intent(getApplicationContext(), QuizActivity.class);\n startActivity(quizIntent);\n }",
"public void Inicio (View view){\n Intent inicio = new Intent(this, MainActivity.class);\n startActivity(inicio);\n }",
"private void goSomewhere() {\n\n Intent intent = new Intent();\n intent.setClassName(Home.this,this.tip.getTipIntent());\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n // Create a new intent to open the {@link PhrasesActivity}\n Intent intent = new Intent(StartActivity.this, Settings.class);\n\n // Start the new activity\n startActivity(intent);\n }",
"public void sendSettings()\n {\n Intent startSettings = new Intent(this, Main3Activity.class);\n startActivity(startSettings);\n }",
"public void figura1(View view){\n Intent figura1 = new Intent(this,Figura1.class);\n startActivity(figura1);\n }",
"public void settings_clicked(View view) {\n Intent intent = new Intent(this, SettingsActivity.class);\n // EditText editText = (EditText) findViewById(R.id.editText);\n // String message = \"final data\";\n // intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n }",
"public void buttonHintNext(View view) {\n //using finish to activity\n finish();\n\n //create a new object to start new activity\n Intent intent = new Intent(this, Hint.class);\n //pass object to startActivity\n startActivity(intent);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent myIntent = new Intent();\n myIntent = new Intent(picking.this,home_page.class);\n startActivity(myIntent);\n picking.this.finish();\n }",
"@Override\n public void onClick(View view) {\n Intent sleepIntent = new Intent(MainActivity.this, Sleep_Playlist.class);\n // Start the new activity\n startActivity(sleepIntent);\n }",
"public void UniversitySelected(View view) {\n\n SharedPreferences storeduniversity = getSharedPreferences(\"universityfile\",Activity.MODE_PRIVATE);\n SharedPreferences.Editor editor=storeduniversity.edit();\n\n EditText editText = (EditText) findViewById(R.id.enterDescription);\n String uni=editText.getText().toString();\n\n editor.putString(\"university\",uni);\n editor.apply();\n\n\n \n\n\n Intent intent = new Intent(this, ClassAdder.class);\n //String message = String.valueOf(id.UniversitySelect);\n //intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent teacherQuestions = new Intent(context.getApplicationContext(), TeacherQuestions.class);\n teacherQuestions.putExtra(\"topicsID\", listItem.getID());\n teacherQuestions.putExtra(\"topic\", topic);\n context.getApplicationContext().startActivity(teacherQuestions);\n }",
"@Override\n public void onClick(View v) {\n\n saveRoundSetting();\n saveMembers();\n SharedPreferences sharedpreferencesRS= getSharedPreferences(\"SCREENNAME\" , MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferencesRS.edit();\n editor.putString(\"screenname\" , \"roundsetting\");\n editor.commit();\n Bundle bundle = new Bundle();\n // bundle.putString(\"FROMACTIVITY_WHERE\",\"ROUNDSEETING\");\n bundle.putString(\"MemberNumber\",\"forth\");\n bundle.putString(\"Membername\",\"\"+ youtextt[3].getText());\n Intent NextScreen = new Intent(RoundSetting.this, TeeSelection.class);\n NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n\n }",
"@Override\n public void onClick(View v) {\n\n saveRoundSetting();\n saveMembers();\n SharedPreferences sharedpreferencesRS= getSharedPreferences(\"SCREENNAME\" , MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferencesRS.edit();\n editor.putString(\"screenname\" , \"roundsetting\");\n editor.commit();\n Bundle bundle = new Bundle();\n // bundle.putString(\"FROMACTIVITY_WHERE\",\"ROUNDSEETING\");\n bundle.putString(\"MemberNumber\",\"third\");\n bundle.putString(\"Membername\",\"\"+ youtextt[2].getText());\n Intent NextScreen = new Intent(RoundSetting.this, TeeSelection.class);\n NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n\n }",
"public void tohome (View view){\n Intent i = new Intent(this,Intro.class);\n startActivity(i);\n }",
"@Override\n public void onClick(View v) {\n\n saveRoundSetting();\n saveMembers();\n SharedPreferences sharedpreferencesRS= getSharedPreferences(\"SCREENNAME\" , MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferencesRS.edit();\n editor.putString(\"screenname\" , \"roundsetting\");\n editor.commit();\n Bundle bundle = new Bundle();\n // bundle.putString(\"FROMACTIVITY_WHERE\",\"ROUNDSEETING\");\n bundle.putString(\"MemberNumber\",\"second\");\n bundle.putString(\"Membername\",\"\"+ youtextt[1].getText());\n Intent NextScreen = new Intent(RoundSetting.this, TeeSelection.class);\n NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n\n }",
"@Override\n public void onClick(View view)\n {\n Intent intent=new Intent(PantallaSecundaria.this, MainActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent workoutIntent = new Intent(MainActivity.this, Workout_Playlist.class);\n // Start the new activity\n startActivity(workoutIntent);\n }",
"public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(memberinfo.this,story.class);\n startActivity(intent);\n\n }",
"@Override\n public void onClick(View v) {\n Intent libraryIntent = new Intent(MainActivity.this, LibraryActivity.class);\n startActivity(libraryIntent);\n }",
"public void onClick(View v) {\n Intent intent = new Intent(SettingsActivity.this, TemperatureActivity.class);\n startActivity(intent);\n\n // MainActivity.this.startActivity(activityChangeIntent);\n }",
"public void onClick(View v) {\n Intent intent = new Intent(SettingsActivity.this, NotifActivity.class);\n startActivity(intent);\n\n // MainActivity.this.startActivity(activityChangeIntent);\n }",
"public void gotoSettings(View v){\n Intent settings;\n settings = new Intent(getBaseContext(),SettingsActivity.class);\n startActivity(settings);\n }",
"public void proximaTela2(View view) {\n\n Intent intent = new Intent(this, Activity3.class);\n startActivity(intent);\n\n\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t super.onCreate(savedInstanceState);\n\t setContentView(R.layout.rules);\n\t \n\t Chkagree = (CheckBox) findViewById(R.id.checkBoxCheckAgree);\n\t buttonStartExam = (Button) findViewById(R.id.buttonStartExam);\n\t buttonStartExam.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\t\n\t\t\tpublic void onClick(final View e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tif(e == buttonStartExam)\n\t \t{ \n\t\t\t\t\tbuttonStartExam.setBackgroundResource(R.drawable.btn4);\n\t }\n\t\t new Handler().postDelayed(new Runnable() {\n\t\t public void run() {\n\t\t \tif( e == buttonStartExam)\n\t\t \t{\n\t\t \t\tbuttonStartExam.setBackgroundResource(R.drawable.btn2);\n\t\t }\n\t\t }\n\t\t }, 100L); \n\t\t SharedPreferences setting = getSharedPreferences(\"Pref\", 0);\n\t\t String imported= setting.getString(\"imported\", \"\");\n\t\t if(imported.equals(\"Yes\"))\n\t\t {\n\t\t\t\tif(Chkagree.isChecked())\n\t\t\t\t{\n\t\t\tIntent mIntent = new Intent(RulesActivity.this, DispalyQuestion.class);\n\t\t\tstartActivity(mIntent);\n\t\t\tfinish();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(RulesActivity.this, \"Please Agree\",Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t }\n\t\t else\n\t\t {\n\t\t \t Toast.makeText(RulesActivity.this, \"Answers not imported\",Toast.LENGTH_LONG).show();\n\t\t }\n\t\t\t}\n\t\t});\n\t\n\t // TODO Auto-generated method stub\n\t}",
"@Override\n public void onClick(View v) {\n Intent p1page = new Intent(v.getContext(), AshmoleanMusuem.class);\n startActivity(p1page);\n }",
"public void onClick(View v){\n EditText et = findViewById(R.id.et_1);\n String n;\n n = et.getText().toString();\n Bundle bundle = new Bundle();\n bundle.putString(\"url\",n);\n Intent intent = new Intent(getBaseContext(),t1.class);\n intent.putExtras(bundle);\n startActivity(intent);\n }",
"private void ConfirmToken() {\n Intent i = new Intent(RegisterMe.this, ConfirmToken.class);\n startActivity(i);\n}",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setClass(getApplicationContext(), Atividade2.class);\n //envio do parametro chamado parametro1\n intent.putExtra(\"parametro1\", \"este é um parametro\");\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(\n HomeScreen.this, AddPoi.class));\n\n }",
"public void onClickAbout (View v)\n{\n startActivity (new Intent(getApplicationContext(), AboutActivity.class));\n}",
"void startNewActivity(Intent intent);",
"@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }",
"public void repitencia(View view){\n Intent rep = new Intent(this, Repitencia.class);\n startActivity(rep);\n }",
"public void mangoButton(View view){\n Intent intent=new Intent(PM_L1.this,PM_L1_G2.class);\n startActivity(intent);\n\n }",
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.profile);\n\n TextView coupon = (TextView) findViewById(R.id.view);\n\n coupon.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n Intent intentC = new Intent(\"android.intent.action.COUPONS\");\n startActivity(intentC);\n\n }\n });\n\n }",
"@Override\n public void onClick(View v) {\n Intent account = new Intent(Welcome.this, MyAccount.class);\n startActivity(account);\n\n }",
"@Override\n public void onClick(View v) {\n saveRoundSetting();\n saveMembers();\n SharedPreferences sharedpreferencesRS= getSharedPreferences(\"SCREENNAME\" , MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferencesRS.edit();\n editor.putString(\"screenname\" , \"roundsetting\");\n editor.commit();\n Bundle bundle = new Bundle();\n // bundle.putString(\"FROMACTIVITY_WHERE\",\"ROUNDSEETING\");\n bundle.putString(\"MemberNumber\",\"first\");\n bundle.putString(\"Membername\",\"\"+ youtextt[0].getText());\n Intent NextScreen = new Intent(RoundSetting.this, TeeSelection.class);\n NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n //m_newRound.setBackgroundResource(R.drawable.buttonselected);\n\n }",
"@Override\n public void onClick(View view) {\n startActivity(new Intent(MainActivity.this, InputActivity.class));\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n app_preferences = PreferenceManager.getDefaultSharedPreferences(this);\n first_run = app_preferences.getBoolean(\"first_run\", true);\n \n if (first_run) {\n \tnew AlertDialog.Builder(AndroidExamples.this)\n \t\t.setTitle(\"Welcome to Android Developer Examples\")\n \t\t.setMessage(\"This application is a set of advanced examples for http://android.ifies.org.\\nThese examples are available online via the website, where you can download the sourcecode for this application.\")\n \t\t.setNeutralButton(\"Close\", new DialogInterface.OnClickListener() {\n \t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n \t\t\t\tSharedPreferences.Editor editor = app_preferences.edit();\n\t\t\t\t\teditor.putBoolean(\"first_run\", false);\n\t\t\t\t\teditor.commit();\n \t\t\t}\n \t\t})\n \t\t.show();\n }\n \n example_admob = (Button) findViewById(R.id.example_admod);\n example_admob.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent i_AdMob = new Intent(AndroidExamples.this, AdmobExample.class);\n\t\t\t\tstartActivity(i_AdMob);\n\t\t\t}\n \t\n });\n \n example_gallery = (Button) findViewById(R.id.example_gallery);\n example_gallery.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent i_Gallery1 = new Intent(AndroidExamples.this, GalleryExample.class);\n\t\t\t\tstartActivity(i_Gallery1);\n\t\t\t}\n \t\n });\n \n example_alerts = (Button) findViewById(R.id.example_alerts);\n example_alerts.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent i_Alert = new Intent(AndroidExamples.this, AlertExamplesHome.class);\n\t\t\t\tstartActivity(i_Alert);\n\t\t\t}\n \t\n });\n \n example_rss_parser = (Button) findViewById(R.id.example_rss_parser);\n example_rss_parser.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent i_Alert = new Intent(AndroidExamples.this, RssActivity.class);\n\t\t\t\tstartActivity(i_Alert);\n\t\t\t}\n \t\n });\n \n example_webview = (Button) findViewById(R.id.example_webkit_view);\n example_webview.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent i_Alert = new Intent(AndroidExamples.this, ExampleWebkit.class);\n\t\t\t\tstartActivity(i_Alert);\n\t\t\t}\n \t\n });\n \n example_location = (Button) findViewById(R.id.example_location);\n example_location.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent i_Alert = new Intent(AndroidExamples.this, Location.class);\n\t\t\t\tstartActivity(i_Alert);\n\t\t\t}\n \t\n });\n \n }",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(StartPage.this,MainActivity.class));\n }",
"private void startSettingsActivity() {\n Intent intent = new Intent(this, SettingsActivity.class);\n /*start*/\n startActivity(intent);\n }",
"public void bookResource(View view)\r\n {\n startActivity(new Intent(this, BookResource.class));\r\n // Intent intent_bookResource = new Intent(this, BookResource.class );\r\n // intent_bookResource.putExtra(\"userName\", userName);\r\n // this.startActivity(intent_bookResource);\r\n\r\n\r\n\r\n\r\n }",
"public void LocateClick(View view){\n startActivity(new Intent(this,locateKNUST.class));\n\n }",
"@Override\n public void onClick(View v) {\n saveRoundSetting();\n saveMembers();\n SharedPreferences sharedpreferencesRS= getSharedPreferences(\"SCREENNAME\" , MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedpreferencesRS.edit();\n editor.putString(\"screenname\" , \"roundsetting\");\n editor.commit();\n Bundle bundle = new Bundle();\n //bundle.putString(\"FROMACTIVITY_WHERE\",\"ROUNDSEETING\");\n bundle.putString(\"MemberNumber\",\"first\");\n bundle.putString(\"Membername\",\"\"+ youtextt[0].getText());\n Intent NextScreen = new Intent(RoundSetting.this, TeeSelection.class);\n NextScreen.putExtras(bundle);\n startActivity(NextScreen);\n finish();\n //m_newRound.setBackgroundResource(R.drawable.buttonselected);\n\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(context,ProfileActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(getContext(), ProfileActivity.class);\n startActivity(intent);\n\n }",
"public void showAbout(View view){\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(NowPlaying.this, classDestination);\n // starting new activity\n startActivity(intent);\n }"
] | [
"0.75789887",
"0.7313483",
"0.73047924",
"0.71833915",
"0.70170856",
"0.6931952",
"0.68623227",
"0.6827274",
"0.66953164",
"0.6686735",
"0.66802883",
"0.6630417",
"0.6626554",
"0.6619819",
"0.6611802",
"0.66095567",
"0.6596027",
"0.6576148",
"0.6556962",
"0.65321064",
"0.6485815",
"0.64747274",
"0.6467876",
"0.64630175",
"0.6447164",
"0.64433515",
"0.6439212",
"0.6439212",
"0.6439212",
"0.6439145",
"0.64274144",
"0.6425308",
"0.6401838",
"0.6399564",
"0.639521",
"0.6391166",
"0.63859653",
"0.6384996",
"0.63844824",
"0.63777536",
"0.6371815",
"0.63716507",
"0.63584846",
"0.6356226",
"0.63527006",
"0.63501865",
"0.6344466",
"0.63444024",
"0.6341708",
"0.6339944",
"0.6328459",
"0.63259727",
"0.6323037",
"0.6311745",
"0.63016987",
"0.6272872",
"0.6272425",
"0.6263142",
"0.62586313",
"0.6253443",
"0.6249013",
"0.6247125",
"0.623516",
"0.6234518",
"0.6234375",
"0.62331057",
"0.6229104",
"0.6229056",
"0.6227947",
"0.62215245",
"0.621785",
"0.621529",
"0.62114865",
"0.61903673",
"0.6188235",
"0.618697",
"0.61733884",
"0.61730516",
"0.61715126",
"0.6168709",
"0.6167067",
"0.6166657",
"0.6161427",
"0.6159831",
"0.6158579",
"0.6152831",
"0.61483675",
"0.6147616",
"0.6145644",
"0.6139401",
"0.6138981",
"0.6133307",
"0.61240757",
"0.6123911",
"0.61200404",
"0.6117262",
"0.6115855",
"0.6115625",
"0.61149275",
"0.6112271",
"0.61109376"
] | 0.0 | -1 |
The cache size will be measured in kilobytes rather than number of items. | @TargetApi(Build.VERSION_CODES.HONEYCOMB_MR1)
@Override
protected int sizeOf(String key, Bitmap bitmap) {
final int bitmapSize = bitmap.getByteCount() / 1024;
return bitmapSize == 0 ? 1 : bitmapSize;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCacheSize();",
"public int getCacheSize(){ return Integer.parseInt(cacheSize.getText()); }",
"int getCacheSizeInMiB();",
"@Override\n public int getCacheSize() {\n return 4 + 20 * 88;\n }",
"@Override\n public int getCacheSize() {\n return 4 + 20 * (4 + 4 + 8);\n }",
"public int getCacheSize() {\n\t\treturn _cacheSize;\n\t}",
"int getSize() {\n synchronized (lock) {\n return cache.size();\n }\n }",
"public int getCacheSize() {\n return cache.size();\n }",
"@Override\n public int getCacheSize() {\n return 4 * 1024 * 1024;\n }",
"public int size() {\n return cache.size();\n }",
"@Override\n\tpublic long getCacheSize() {\n\t\treturn 0;\n\t}",
"long getCacheHits();",
"int getCurrentCacheSize();",
"public int size() {\r\n\t\treturn cache.size();\r\n\t}",
"public static long getCacheSize() {\n return sDiskLruCache.size();\n }",
"@Override\n public int getCacheSize() {\n return 4 + this.arraySet.getTotalBytesSize();\n }",
"@Override\n\tpublic int size() {\n\t\treadLock.lock();\n\t\ttry {\n\t\t\treturn cache.size();\n\t\t} finally {\n\t\t\treadLock.unlock();\n\t\t}\n\t}",
"@Override\n\tpublic int getSizeToCache() {\n\t\treturn 0;\n\t}",
"public int size()\n {\n // check if the cache needs flushing\n checkFlush();\n\n return super.size();\n }",
"public float getCacheSizeKB() {\n return ((float) cacheHandler.getCurrentCacheSizeBytes() / 1000);\n }",
"@Override\n public synchronized int size() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.size();\n }",
"public long getCacheSize() {\n DiskCacheManager diskCacheManager = getDiskCacheManager();\n if (diskCacheManager == null) return 0;\n return diskCacheManager.getCacheSize();\n }",
"public int size() {\n synchronized (cacheMap) {\n return cacheMap.size();\n }\n }",
"@Override\n\tpublic long getMaxCacheSize() {\n\t\treturn 0;\n\t}",
"public final synchronized int getMaximumSize() {\n\t\treturn cacheSize;\n\t}",
"@Override\n\t\tprotected int sizeOf(CacheKey key, CacheInfo cacheInfo) {\n\t\t\tif (cacheInfo == null)\n\t\t\t\treturn 0;\n\t\t\treturn cacheInfo.size;\n\t\t}",
"int getCachedCount();",
"@Test\n public void testCoh3710_size()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(0, getNamedCache(getCacheName0()).size());\n }\n });\n }",
"public int getCacheMaxSizeKB() {\n return (cacheHandler.getMaxCacheSizeKB());\n }",
"public void setCacheSize(int size) {\n\t\t_cacheSize = size;\n\t}",
"int getMaximumCacheSize();",
"public long getSize() {\n // a char is two bytes\n int size = (key.length() * 2) + 4;\n\n if (id != null) {\n size += ((id.length() * 2) + 4);\n }\n\n if (content != null) {\n if (content.getClass() == String.class) {\n size += ((content.toString().length() * 2) + 4);\n } else if (content instanceof CacheContent) {\n size += ((CacheContent) content).getSize();\n } else {\n return -1;\n }\n\n //add created, lastUpdate, and wasFlushed field sizes (1, 8, and 8)\n return size + 17;\n } else {\n return -1;\n }\n }",
"int getTotalLength() {\n synchronized (lock) {\n return cache.getTotalLength();\n }\n }",
"Builder withCacheSizeInMiB(int sizeInMiB);",
"public int getCachedCount() {\n return cached_.size();\n }",
"public int getCachedCount() {\n return cached_.size();\n }",
"public Cache(Integer size) {\n this.size = size;\n recentlyUsed = new ArrayList<K>();\n cache = new HashMap<>();\n }",
"@Override\n\tpublic void setSizeToCache(int sizeToCache) {\n\t\t\n\t}",
"@Override\n\tpublic void setCacheSize(long bps) {\n\t\t\n\t}",
"public int getCacheCount() {\n DiskCacheManager diskCacheManager = getDiskCacheManager();\n if (diskCacheManager == null) return 0;\n return diskCacheManager.getCacheCount();\n }",
"public int size() {\n processQueue();\n return weakCache.size();\n }",
"private void subLengthFromCacheSize(final IndexedDiskElementDescriptor value)\r\n {\r\n contentSize.addAndGet((value.len + IndexedDisk.HEADER_SIZE_BYTES) / -1024 - 1);\r\n }",
"public int getSize() \n { \n return numberOfEntries;\n }",
"BigDecimal getCacheSpaceAvailable();",
"private void addLengthToCacheSize(final IndexedDiskElementDescriptor value)\r\n {\r\n contentSize.addAndGet((value.len + IndexedDisk.HEADER_SIZE_BYTES) / 1024 + 1);\r\n }",
"public static int getCacheSize(Context ctx) {\n final DisplayMetrics displayMetrics = ctx.getResources().\n getDisplayMetrics();\n final int screenWidth = displayMetrics.widthPixels;\n final int screenHeight = displayMetrics.heightPixels;\n // 4 bytes per pixel\n final int screenBytes = screenWidth * screenHeight * 4;\n\n return screenBytes * 3;\n }",
"@Override\n\tpublic long getSize()\n\t{\n\t\tif (size >= 0)\n\t\t{\n\t\t\treturn size;\n\t\t}\n\t\telse if (cachedContent != null)\n\t\t{\n\t\t\treturn cachedContent.length;\n\t\t}\n\t\telse if (dfos.isInMemory())\n\t\t{\n\t\t\treturn dfos.getData().length;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn dfos.getFile().length();\n\t\t}\n\t}",
"public Long get_cacheutilizedmemorykb() throws Exception {\n\t\treturn this.cacheutilizedmemorykb;\n\t}",
"public int getCachedTasksSize() {\n return cachedTasks.size();\n }",
"public int GetSize() \n\t{\n\t\treturn numEntries; //dummy return so file would compile\n\t}",
"long storageSize();",
"public static Map<String,String> getAdSizeFromCache(){\n\t\tMap<String,String> dataMap=null; \t\n \tif(memcache !=null && memcache.contains(MEDIA_PLAN_ADSIZE_KEY)){\n \t\tdataMap=(Map<String,String>) memcache.get(MEDIA_PLAN_ADSIZE_KEY);\n \t} \t\n \treturn dataMap;\n\t}",
"public final int cacheNodeChunkSize() {\n return -1;\r\n }",
"long getMemorySize() {\n return MemoryBudget.DELTAINFO_OVERHEAD +\n MemoryBudget.byteArraySize(key.length);\n }",
"public String getCacheClusterSize() {\n return cacheClusterSize;\n }",
"long getSize();",
"public Long get_cachetotresponsebytes() throws Exception {\n\t\treturn this.cachetotresponsebytes;\n\t}",
"HandlebarsKnotOptions setCacheSize(Long cacheSize) {\n this.cacheSize = cacheSize;\n return this;\n }",
"public final long getSize() { return size; }",
"public long getSize();",
"public TransactionBuilder setCacheSize(long size);",
"public int getLocalSize();",
"public long getEntrySize() {\n return size;\n }",
"public int get_size();",
"public int get_size();",
"public static long getTotalCacheSize(String packageName) {\n long cacheSize = 0;\n cacheSize += getInternalCacheSize(packageName);\n if (isExternalStorageMounted()) {\n cacheSize += getExternalCacheSize(packageName);\n }\n return cacheSize;\n }",
"public void testSizeManagementWMS() {\n initCache();\n \n ArrayList<WMSTile> wcos = new ArrayList<WMSTile>();\n long putSize = 0;\n long maxSize = 0;\n int cacheSizeDropCount = 0;\n for (int i = 0; i < 1000; i++) {\n WMSTile wco = getDefaultWMSCacheObject(\"q\" + i, 50, true);\n putSize += wco.getSize();\n\n wcos.add(wco);\n long size = wmsCache.getSize();\n\n if (size < maxSize) {\n maxSize = size;\n cacheSizeDropCount++;\n } else {\n maxSize = size;\n }\n\n boolean result = wmsCache.put(wco.getQuery(), wco.getColourmode(), PointType.POINT_1, wco);\n\n //test if cache is full the put was unsuccessful\n //allow for cachecleaner to have reduced the size between put and test\n boolean test = (wmsCache.getSize() + wco.getSize() > wmsCache.getMaxCacheSize()) == !result;\n if (test == false) {\n assertTrue((size + wco.getSize() > wmsCache.getMaxCacheSize()) == !result);\n }\n\n assertTrue(wmsCache.getSize() <= wmsCache.getMaxCacheSize());\n }\n\n //test size calcuations are operating\n assertTrue(putSize > 10000);\n\n //test cache cleaner was run more than once\n assertTrue(cacheSizeDropCount > 1);\n\n //test cache size is under max\n assertTrue(wmsCache.getSize() <= wmsCache.getMaxCacheSize());\n\n //test gets. Anything that is a placeholder will be null.\n int cachedCount = 0;\n for (int i = 0; i < wcos.size(); i++) {\n WMSTile getwco = wmsCache.get(wcos.get(i).getQuery(), wcos.get(i).getColourmode(), PointType.POINT_1);\n if (getwco.getCached()) {\n assertTrue(compareWMSObjects(wcos.get(i), getwco));\n cachedCount++;\n }\n }\n\n //test if at least 2 objects were cached at the end\n assertTrue(cachedCount > 1);\n }",
"public int getMaximumCacheSize() {\n return this.maximumCacheSize;\n }",
"public interface ContentCache extends Cache<List<byte[]>>{\n int notCacheSize();\n}",
"public Long get_cachetotrequests() throws Exception {\n\t\treturn this.cachetotrequests;\n\t}",
"protected Duration getCacheDuration() {\n return Duration.ZERO;\n }",
"@Override\n\tpublic int getSize() {\n\t\treturn numberOfEntries;\n\t}",
"public Long sizeInKB() {\n return this.sizeInKB;\n }",
"public Integer size() { return this.entries.length(); }",
"public int getNumCacheHit() {\n return cacheHandler.getCountCacheHit();\n }",
"public long getSize() {\n return size;\n }",
"public int getPkCacheSize() {\n return 0;\n }",
"@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}",
"public long getSize() {\r\n return size;\r\n }",
"public final int capacity() {\n return packetCache.getCapacity();\n }",
"public int getTotalSize();",
"public Long get_cachetotpethits() throws Exception {\n\t\treturn this.cachetotpethits;\n\t}",
"public long getSize() {\n return size;\n }",
"public long getSize() {\n return size;\n }",
"public long getSize() {\n return size;\n }",
"public long getSize() {\n return size;\n }",
"public InMemoryResponseCache() {\n\t\tthis( 250*1024 ); // 250 KB cache\n\t}",
"public Long get_cachetotflashcachehits() throws Exception {\n\t\treturn this.cachetotflashcachehits;\n\t}",
"public int getSize(){return _size;}",
"public int size() {\n int size = 0;\n\n Collection<CacheableObject> values = new HashSet<CacheableObject>();\n synchronized(theLock) {\n values.addAll(valueMap.values());\n }\n\n for (CacheableObject cObj : values) {\n if (! this.isExpired(cObj)) {\n size++;\n }\n }\n\n return size;\n }",
"long getLocalOnHeapSizeInBytes();",
"public long getSize() {\n return size.get();\n }",
"public long getSize() {\r\n\t\treturn size;\r\n\t}",
"private long size() {\n\t\treturn 0;\n\t}",
"public long estimateSize() {\n/* 1448 */ return this.est;\n/* */ }",
"public int getSize(){\n //To be written by student\n return localSize;\n }",
"int blockSize(ReadableChannel rc) {\n\t\tint size = blockSize;\n\t\tif (size == 0) {\n\t\t\tsize = rc.blockSize();\n\t\t\tif (size <= 0)\n\t\t\t\tsize = cache.getBlockSize();\n\t\t\telse if (size < cache.getBlockSize())\n\t\t\t\tsize = (cache.getBlockSize() / size) * size;\n\t\t\tblockSize = size;\n\t\t}\n\t\treturn size;\n\t}",
"int getCacheConcurrency();",
"int memSize() {\r\n\t\treturn BASE_NODE_SIZE + 5 * 4;\r\n\t}",
"int getLocalSize();",
"public long getSize() {\n\t\treturn size;\n\t}"
] | [
"0.8148039",
"0.81001985",
"0.8051682",
"0.79875827",
"0.79755473",
"0.79708457",
"0.78806233",
"0.78768337",
"0.78429884",
"0.78264433",
"0.77172804",
"0.76785934",
"0.76757085",
"0.7636559",
"0.76053137",
"0.7605307",
"0.75497484",
"0.73752487",
"0.7315802",
"0.7309797",
"0.73060495",
"0.7261541",
"0.72587067",
"0.7251387",
"0.72145134",
"0.72107047",
"0.71777064",
"0.7124641",
"0.71138847",
"0.70795196",
"0.7076096",
"0.69825536",
"0.6930682",
"0.6928592",
"0.69143724",
"0.68501866",
"0.683849",
"0.67512375",
"0.6745234",
"0.67395747",
"0.67206156",
"0.67107695",
"0.66716987",
"0.66583335",
"0.6637707",
"0.659958",
"0.6592167",
"0.65883756",
"0.65804493",
"0.6575709",
"0.6535359",
"0.6532679",
"0.65082616",
"0.648382",
"0.646816",
"0.6444537",
"0.64415085",
"0.6402486",
"0.64007086",
"0.63939184",
"0.63920444",
"0.63633484",
"0.6361709",
"0.6358567",
"0.6358567",
"0.6353804",
"0.634959",
"0.63347906",
"0.6332011",
"0.6316804",
"0.6311702",
"0.62819195",
"0.6279527",
"0.6277453",
"0.6272926",
"0.62599343",
"0.62500745",
"0.6245725",
"0.6243416",
"0.6238539",
"0.6230493",
"0.62250346",
"0.6221551",
"0.6221551",
"0.6221551",
"0.6221551",
"0.62157816",
"0.6207938",
"0.6191486",
"0.61784554",
"0.6171389",
"0.61687773",
"0.6160096",
"0.61557245",
"0.61556",
"0.6151631",
"0.61442876",
"0.61419415",
"0.61412346",
"0.61316586",
"0.61315423"
] | 0.0 | -1 |
No existing ImageCache, create one and store it in RetainFragment | public static MemoryCache getInstance(MemoryCacheParams params) {
if (instance == null) {
instance = new MemoryCache(params);
}
return instance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createImageCache(){\n ImageCacheManager.getInstance().init(this,\n this.getPackageCodePath()\n , DISK_IMAGECACHE_SIZE\n , DISK_IMAGECACHE_COMPRESS_FORMAT\n , DISK_IMAGECACHE_QUALITY\n , ImageCacheManager.CacheType.MEMORY);\n }",
"private ImageCache(Context context) {\n int memClass = ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryClass();\n memClass = memClass > 32 ? 32 : memClass;\n\n final int cacheSize = 1024 * 1024 * memClass / 8;\n memoryCache = new LruCache<String, Bitmap>(cacheSize) {\n protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getRowBytes() * bitmap.getHeight();\n }\n };\n\n File cacheDir = DiskLruCache.getDiskCacheDir(context, DISK_CACHE_SUB_DIR);\n diskCache = DiskLruCache.openCache(context, cacheDir, DISK_CACHE_SIZE);\n }",
"public interface ImageCache {\r\n\tpublic Bitmap getBitmap(String url);\r\n\r\n\tpublic void putBitmap(String url, Bitmap bitmap);\r\n\r\n\tpublic void clear();\r\n}",
"public synchronized void setPictureFromCache() {\n Runnable run = new Runnable() {\n @Override\n public void run() {\n File file = new File(context.getExternalFilesDir(null), pictureName);\n if (file != null) {\n Bitmap myBitmap = BitmapFactory.decodeFile(file.getAbsolutePath());\n if (imageView != null) {\n //imageView.setImageDrawable(new BitmapDrawable(null, myBitmap));\n new ResizeImage(imageView, file.getAbsolutePath()).setImageView();\n }\n }\n }\n };\n new Handler(context.getMainLooper()).post(run);\n }",
"public interface ImageCache {\n public Bitmap get(String url);\n public void put(String url,Bitmap bitmap);\n}",
"public Bitmap getImageCache(Integer cacheKey)\n {\n synchronized (mLinkedHashMap)\n {\n Bitmap bitmap;\n // Get file from cache\n String file = mLinkedHashMap.get(cacheKey);\n if (file != null)\n {\n bitmap = BitmapFactory.decodeFile(file);\n Log.i(\"DiskLruCache\", \"DiskCacheHit for Image with CacheKey: \"+cacheKey.toString());\n return bitmap;\n }\n else\n {\n // Construct existing file path\n String cacheKeyStr = String.valueOf(cacheKey);\n String existingFile = createFilePath(cacheDirectory, cacheKeyStr);\n // Get the file using the constructed file path\n assert existingFile != null;\n File existFile = new File(existingFile);\n if (existFile.exists())\n {\n // If the file exists, we will store the the key in reference list\n referenceAdd(cacheKey, existingFile);\n return BitmapFactory.decodeFile(existingFile);\n }\n }\n return null;\n }//synchronized (mLinkedHashMap)\n }",
"private AsyncImageCache(Context context) {\n mContext = context;\n int memClass = ((ActivityManager) context\n .getSystemService(Context.ACTIVITY_SERVICE)).getMemoryClass() * 1024 * 1024;\n \n if (sMemoryCacheSize ==0 ) {\n // default Heap * 1/8\n sMemoryCacheSize = memClass / 8;\n } else if (sMemoryCacheSize > memClass / 4) {\n // max Heap * 1/4\n sMemoryCacheSize = memClass / 4;\n }\n\n final int cacheSize = sMemoryCacheSize;\n mMemoryCache = new LruCache<String, Bitmap>(cacheSize) {\n\n @Override\n\t\t\tprotected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getRowBytes() * bitmap.getHeight();\n }\n\n };\n\n if (sDiskCacheEnable) {\n File cacheDir = null;\n if (sDiskCacheDir != null) {\n cacheDir = new File(sDiskCacheDir, DISK_CACHE_SUBDIR);\n cacheDir.mkdirs();\n }\n else\n cacheDir= DiskLruCache\n .getDiskCacheDir(context, DISK_CACHE_SUBDIR);\n \n mDiskCache = DiskLruCache.openCache(context, cacheDir, sDiskCacheSize, sDiskCacheCount);\n }\n DisplayMetrics dm = mContext.getResources().getDisplayMetrics();\n sDisplayWidthPixels = dm.widthPixels;\n sDisplayHeightPixels = dm.heightPixels;\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tImageCacheParams cacheParams = new ImageCacheParams(getActivity(), IMAGE_CACHE_DIR);\n\n cacheParams.setMemCacheSizePercent(0.25f); // Set memory cache to 25% of app memory\n\n // The ImageFetcher takes care of loading images into our ImageView children asynchronously\n mImageFetcher = new ImageFetcher(getActivity());\n// mImageFetcher.setLoadingImage(R.drawable.empty_photo);\n mImageFetcher.addImageCache(((FragmentActivity) getActivity()).getSupportFragmentManager(), cacheParams);\n lsnb_temp = new ArrayList<NewsBean>();\n\t}",
"public interface BitmapCache {\n void put(BitmapRequest bitmapRequest, Bitmap bitmap);\n\n Bitmap get(BitmapRequest bitmapRequest);\n\n boolean remove(BitmapRequest bitmapRequest);\n\n void clear();\n}",
"public interface ImageCache {\n Drawable get(Uri uri);\n\n boolean hasEntry(Uri uri);\n\n void preload(Uri uri);\n\n void purge();\n\n void setImageResolver(NotificationInlineImageResolver notificationInlineImageResolver);\n }",
"private void loadCache(Context ctx, ImageLoader img) {\r\n RequestOptions options = getCommonOptions(img);\r\n options.diskCacheStrategy(DiskCacheStrategy.ALL);\r\n\r\n Glide.with(ctx).load(img.getUrl()).apply(options).into(img.getImgView());\r\n }",
"private void cacheUserImages() {\n User user = User.getLoggedInUser(this);\n if (user != null) {\n ImageView view = new ImageView(this);\n Picasso.with(this).load(user.getBannerImageUrl()).into(view);\n\n ImageView view2 = new ImageView(this);\n Picasso.with(this).load(user.getProfileImageUrl()).into(view2);\n }\n }",
"private void loadImage(){\n Log.d(getString(R.string.app_name), \"photoURL: \" + photoURL);\n String hash = photoURL.substring(0, photoURL.lastIndexOf(\".\"));\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(hash.getBytes());\n hash = bytesToHex(md.digest());\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n// File cachedFile = new File(getCacheDir(), photoURL.substring(0, photoURL.lastIndexOf(\".\")));\n File cachedFile = new File(getCacheDir(), hash);\n if(cachedFile.exists()) {\n //load image from cache\n Glide.with(getApplicationContext())\n .load(cachedFile)\n .diskCacheStrategy(DiskCacheStrategy.NONE)\n// .crossFade()\n .into(picture);\n// TileBitmapDrawable.attachTileBitmapDrawable(picture, getCacheDir() + \"/\" + photoURL.split(\"\\\\.\")[0], null, null);\n setupPictureClickListener();\n\n postImageLoaded();\n } else {\n //download image\n setupReloadButtonListener();\n initImageLoader();\n }\n }",
"public static MyRecyclerView newInstance(LruCache<String,Bitmap> mImgMemoryCache) {\r\n\r\n MyRecyclerView fragment = new MyRecyclerView();\r\n// fragment.setImgMemoryCache(mImgMemoryCache);\r\n Bundle args = new Bundle();\r\n fragment.setArguments(args);\r\n return fragment;\r\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tmImageThumbSize = getResources().getDimensionPixelSize(\n\t\t\t\tR.dimen.image_thumbnail_size);\n\t\tImageCache.ImageCacheParams cacheParams = new ImageCache.ImageCacheParams(\n\t\t\t\tgetActivity(), IMAGE_CACHE_DIR);\n\t\tcacheParams.setMemCacheSizePercent(0.25f);\n\t\tmImageFetcher = new ImageFetcher(getActivity(), mImageThumbSize);\n\t\tmImageFetcher.setLoadingImage(R.drawable.empty_photo);\n\t\tmImageFetcher.addImageCache(getActivity().getSupportFragmentManager(),\n\t\t\t\tcacheParams);\n\t}",
"protected Image forceCaching(Image img) throws IOException {\n/* 221 */ if (img instanceof ImageRawStream) {\n/* 222 */ ImageRawStream raw = (ImageRawStream)img;\n/* 223 */ if (log.isDebugEnabled()) {\n/* 224 */ log.debug(\"Image is made cacheable: \" + img.getInfo());\n/* */ }\n/* */ \n/* */ \n/* 228 */ ByteArrayOutputStream baout = new ByteArrayOutputStream();\n/* 229 */ InputStream in = raw.createInputStream();\n/* */ try {\n/* 231 */ IOUtils.copy(in, baout);\n/* */ } finally {\n/* 233 */ IOUtils.closeQuietly(in);\n/* */ } \n/* 235 */ byte[] data = baout.toByteArray();\n/* 236 */ raw.setInputStreamFactory((ImageRawStream.InputStreamFactory)new ImageRawStream.ByteArrayStreamFactory(data));\n/* 237 */ return (Image)raw;\n/* */ } \n/* 239 */ return null;\n/* */ }",
"public static void loadCacheImage(Context context, final ImageView imageView, String imageUrl, String tag) {\n Cache cache = MySingleton.getInstance(context).getRequestQueue().getCache();\n Cache.Entry entry = cache.get(imageUrl);\n if (entry != null) {\n try {\n Bitmap bitmap = BitmapFactory.decodeByteArray(entry.data, 0, entry.data.length);\n imageView.setImageBitmap(bitmap);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"ERROR\", e.getMessage());\n }\n } else {\n cache.invalidate(imageUrl, true);\n cache.clear();\n ImageRequest request = new ImageRequest(imageUrl,\n new Response.Listener<Bitmap>() {\n @Override\n public void onResponse(Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n }\n }, 0, 0, null,\n new Response.ErrorListener() {\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n Log.e(\"ERROR VOLLY 1\", error.getMessage() + \"\");\n imageView.setImageResource(R.drawable.ic_check_black_24dp);\n }\n });\n request.setTag(tag);\n MySingleton.getInstance(context).addToRequestQueue(request);\n }\n }",
"public Bitmap loadImageCache( String url ){\n\t\tString path = createPath(url, context);\n\t\tLog.i( TAG, \"loadImageCache: \" + path );\n\n\t\tBitmap bitmap = null;\n\t\tFile file = new File( path );\n\n \tif( file.exists() ) {\n \t\tLog.i( TAG, \"loadImageCache - Arquivo existe\" );\n\n\t\t\ttry {\n\t\t\t\tFileInputStream infile = new FileInputStream(file);\n\t\t\t\tbitmap = BitmapFactory.decodeStream(infile);\n\t\t\t\tinfile.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tLog.i( TAG, \"ERROR: loadImageCache: \" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.i( TAG, \"ERROR: loadImageCache: \" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n \treturn bitmap;\n\t}",
"public void run() {\n if(request!=null && request.mLoadDelay>0){\n try {\n Thread.sleep(request.mLoadDelay);\n } catch (InterruptedException e){\n if(ImageManager.DEBUG){\n e.printStackTrace();\n }\n }\n }\n\n File file = null;\n\n // If the URL is not a local reseource, grab the file\n if(!getUrl().startsWith(\"content://\")){\n\n // Grab a link to the file\n file = new File(getFullCacheFileName(mContext, getUrl()));\n\n // If the file doesn't exist, grab it from the network\n if (!file.exists()){\n cacheImage( file, request);\n } \n\n // Otherwise let the callback know the image is cached\n else if(request!=null){\n request.sendCachedCallback(getUrl(), true);\n }\n\n // Check if the file is a gif\n boolean isGif = isGif(getUrl());\n\n // If the file downloaded was a gif, tell all the callbacks\n if( isGif && request!=null ){\n request.sendGifCallback(getUrl());\n }\n }\n\n // Check if we should cache the image and the dimens\n boolean shouldCache = false;\n int maxWidth = MAX_WIDTH;\n int maxHeight = MAX_HEIGHT;\n if(request!=null){\n maxWidth = request.mMaxWidth;\n maxHeight = request.mMaxHeight;\n shouldCache = request.mCacheImage;\n }\n\n // If any of the callbacks request the image should be cached, cache it\n if(shouldCache && \n (request!=null&&request.mContext!=null)||request==null){\n\n // First check the image isn't actually in the cache\n Bitmap bitmap = get(getUrl());\n\n // If the bitmap isn't in the cache, try to grab it\n // Or the bitmap was in the cache, but is of no use\n if(bitmap == null){\n\n if(!getUrl().startsWith(\"content://\")){\n bitmap = decodeBitmap(file, maxWidth, maxHeight);\n }else{\n Uri uri = Uri.parse(getUrl());\n try{\n InputStream input = mContext.getContentResolver().openInputStream(uri);\n bitmap = BitmapFactory.decodeStream(input);\n input.close();\n }catch(FileNotFoundException e){\n if(DEBUG){\n e.printStackTrace();\n }\n }catch(IOException e){\n if(DEBUG){\n e.printStackTrace();\n }\n }\n }\n\n // If we grabbed the image ok, add to the cache\n if(bitmap!=null){\n addEntry(getUrl(), bitmap);\n }\n }\n\n // Send the cached callback\n if(request!=null){\n request.sendCallback(getUrl(), bitmap);\n }\n }\n }",
"public BitmapDownloaderTask(ImageView imageView) {\n\t\timageViewReference = new WeakReference<ImageView>(imageView);\n\n\t\t// create a new static cache if there is none\n\t\tif (cache == null) {\n\t\t\tcache = new HashMap<String, Bitmap>();\n\t\t}\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\tImageCacheParams cacheParams = new ImageCacheParams(getActivity(),\n\t\t\t\tConstants.IMAGE_CACHE_DIR);\n\n\t\tcacheParams.setMemCacheSizePercent(0.25f); // Set memory cache to 25% of\n\t\t\t\t\t\t\t\t\t\t\t\t\t// app memory\n\n\t\t// The ImageFetcher takes care of loading images into our ImageView\n\t\t// children asynchronously\n\t\tmImageFetcher = new ImageFetcher(getActivity());\n\t\t// mImageFetcher.setLoadingImage(R.drawable.empty_photo);\n\t\tmImageFetcher.addImageCache(\n\t\t\t\t((FragmentActivity) getActivity()).getSupportFragmentManager(),\n\t\t\t\tcacheParams);\n\t\tlsnb_temp = new ArrayList<NewsBean>();\n\t}",
"private Bitmap loadAndCacheBitmap(File cacheFile, String url) {\n File tempFile = new File(cacheFile.getPath() + \"temp_file\");\n Bitmap bitmap = null;\n HttpURLConnection connection = null;\n OutputStream tempOs = null;\n OutputStream cacheOs = null;\n\n try {\n URL imageUrl = new URL(url);\n\n // Create connection\n connection = (HttpURLConnection) imageUrl.openConnection();\n connection.setConnectTimeout(CONNECTION_TIMEOUT);\n connection.setReadTimeout(CONNECTION_TIMEOUT);\n connection.setInstanceFollowRedirects(true);\n\n // Save image to temp file\n InputStream is = connection.getInputStream();\n tempOs = new FileOutputStream(tempFile);\n StreamUtils.copy(is, tempOs);\n\n Log.d(\"HIHO\", \"bitmap from web\");\n\n // Decode and scale image to reduce memory consumption\n bitmap = decodeAndScale(tempFile);\n\n // Save scaled bitmap to cache file\n cacheOs = new FileOutputStream(cacheFile);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, cacheOs);\n\n } catch (IOException e) {\n Log.e(TAG, \"Error while image was loaded and stored\", e);\n // Remove cached file if something go wrong\n cacheFile.delete();\n } finally {\n StreamUtils.closeQuietly(tempOs);\n StreamUtils.closeQuietly(cacheOs);\n // Remove temp file\n tempFile.delete();\n if (connection != null) connection.disconnect();\n }\n\n return bitmap;\n }",
"@Override\n protected Bitmap doInBackground(String... params) {\n imageUrl = params[0];\n ImageView thumbnail = imageViewReference.get();\n try {\n InputStream is = (InputStream) new URL(imageUrl).getContent();\n Bitmap bitmap = ImageCommons.decodeSampledBitmapFromInputStream(is, thumbnail.getWidth(), thumbnail.getHeight());\n addBitmapToMemoryCache(imageUrl, bitmap);\n return bitmap;\n } catch (IOException e) {\n e.printStackTrace();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n\n Log.d(\"myLog\", getClass().getSimpleName() + \" Erro ao fazer download de imagem\");\n return ImageCommons.decodeSampledBitmapFromResource(context.getResources(), R.drawable.ic_launcher, 70, 70);\n }",
"@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n\n MemoryCache cache = ImageLoader.getInstance().getMemoryCache();\n cache.put(imageUri, loadedImage);\n holder.img.setImageBitmap(loadedImage);\n }",
"@SuppressWarnings(\"unused\")\n \t\tfinal public void cacheImage(final Map<String,String> options) {\n \t\t\tmImagePicker = new ImagePicker(\n \t\t\t\tIntroFlow.this,\n \t\t\t\t152,\n \t\t\t\tnew ImagePickerCB() {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onPictureChosen(Bitmap image) {\n\t\t\t\t\t\t\t\tcachedImage = image;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n \t\t\t).show();\n \t\t}",
"public void requestImage(final ImageRequest request) {\n\n // If the request has no URL, abandon it\n if(request.mUrl==null){\n return;\n }\n\n // Create the image download runnable\n final ImageDownloadThread imageDownloadThread = new ImageDownloadThread(){\n\n public void run() {\n\n // Sleep the request for the specified time\n if(request!=null && request.mLoadDelay>0){\n try {\n Thread.sleep(request.mLoadDelay);\n } catch (InterruptedException e){\n if(ImageManager.DEBUG){\n e.printStackTrace();\n }\n }\n }\n\n File file = null;\n\n // If the URL is not a local reseource, grab the file\n if(!getUrl().startsWith(\"content://\")){\n\n // Grab a link to the file\n file = new File(getFullCacheFileName(mContext, getUrl()));\n\n // If the file doesn't exist, grab it from the network\n if (!file.exists()){\n cacheImage( file, request);\n } \n\n // Otherwise let the callback know the image is cached\n else if(request!=null){\n request.sendCachedCallback(getUrl(), true);\n }\n\n // Check if the file is a gif\n boolean isGif = isGif(getUrl());\n\n // If the file downloaded was a gif, tell all the callbacks\n if( isGif && request!=null ){\n request.sendGifCallback(getUrl());\n }\n }\n\n // Check if we should cache the image and the dimens\n boolean shouldCache = false;\n int maxWidth = MAX_WIDTH;\n int maxHeight = MAX_HEIGHT;\n if(request!=null){\n maxWidth = request.mMaxWidth;\n maxHeight = request.mMaxHeight;\n shouldCache = request.mCacheImage;\n }\n\n // If any of the callbacks request the image should be cached, cache it\n if(shouldCache && \n (request!=null&&request.mContext!=null)||request==null){\n\n // First check the image isn't actually in the cache\n Bitmap bitmap = get(getUrl());\n\n // If the bitmap isn't in the cache, try to grab it\n // Or the bitmap was in the cache, but is of no use\n if(bitmap == null){\n\n if(!getUrl().startsWith(\"content://\")){\n bitmap = decodeBitmap(file, maxWidth, maxHeight);\n }else{\n Uri uri = Uri.parse(getUrl());\n try{\n InputStream input = mContext.getContentResolver().openInputStream(uri);\n bitmap = BitmapFactory.decodeStream(input);\n input.close();\n }catch(FileNotFoundException e){\n if(DEBUG){\n e.printStackTrace();\n }\n }catch(IOException e){\n if(DEBUG){\n e.printStackTrace();\n }\n }\n }\n\n // If we grabbed the image ok, add to the cache\n if(bitmap!=null){\n addEntry(getUrl(), bitmap);\n }\n }\n\n // Send the cached callback\n if(request!=null){\n request.sendCallback(getUrl(), bitmap);\n }\n }\n }\n };\n\n // Set the url of the request\n imageDownloadThread.setUrl(request.mUrl);\n\n // Set the creation time of the request\n imageDownloadThread.setCreated(request.mCreated);\n\n // Assign a priority to the request\n if(request.mImageListener==null){\n // If there is no image listener, assign it background priority\n imageDownloadThread.setPriority(BACKGROUND_PRIORITY);\n }else{\n // If there is an image listener, assign it UI priority\n imageDownloadThread.setPriority(UI_PRIORITY);\n }\n\n // If the new request is not a duplicate of an entry of the active and \n // task queues, add the request to the task queue\n if(!mTaskQueue.contains(imageDownloadThread) && \n !mActiveTasks.contains(imageDownloadThread)){\n mThreadPool.execute(imageDownloadThread);\n }\n\n // If the request is a duplicate, add it to the blocked tasks queue\n else{\n mBlockedTasks.add(imageDownloadThread);\n }\n }",
"public Bitmap getCacheImage(String tag) {\n return getCacheImage(0, 0, tag);\n }",
"public File getPictureFromCache() {\n if (context != null) {\n File file = new File(context.getExternalFilesDir(null), pictureName);\n return file;\n }\n return null;\n }",
"public Drawable getDrawableCache(Integer cacheKey)\n {\n synchronized (mLinkedHashMap)\n {\n Drawable image;\n // Get file from cache\n String file = mLinkedHashMap.get(cacheKey);\n if (file != null)\n {\n image = Drawable.createFromPath(file);\n Log.i(\"DiskLruCache\", \"DiskCacheHit\");\n return image;\n }\n else\n {\n // Construct existing file path\n String cacheKeyStr = String.valueOf(cacheKey);\n String existingFile = createFilePath(cacheDirectory, cacheKeyStr);\n // Get the file using the constructed file path\n assert existingFile != null;\n File existFile = new File(existingFile);\n if (existFile.exists())\n {\n // If the file exists, we will store the the key in reference list\n referenceAdd(cacheKey, existingFile);\n return Drawable.createFromPath(existingFile);\n }\n }\n return null;\n }//synchronized (mLinkedHashMap)\n }",
"@Override\n public void onResourceReady(File image,\n GlideAnimation<? super File> glideAnimation) {\n callback.onCacheHit(image);\n }",
"private void init() {\n mMemoryCache = new LruCache<String, Bitmap>(DEFAULT_MEM_CACHE_SIZE) {\n /**\n * Measure item size in kilobytes rather than units which is more\n * practical for a bitmap cache\n */\n @Override\n protected int sizeOf(String key, Bitmap bitmap) {\n final int bitmapSize = getBitmapSize(bitmap) / 1024;\n return bitmapSize == 0 ? 1 : bitmapSize;\n }\n };\n }",
"@Override\n public boolean isCaching() {\n return false;\n }",
"private Bitmap getBitmap(String url) {\n File file = diskCache.getData(url);\n Bitmap bitmap = decode(file);\n if (bitmap == null) {\n // If no then load it\n bitmap = loadAndCacheBitmap(file, url);\n } else {\n Log.d(\"HIHO\", \"bitmap from memory\");\n }\n\n return bitmap;\n }",
"public static Bitmap getImage(String url){\n\t\tBitmap image = BitmapFactory.decodeStream(\n\t\t\t\topenStream(url));\n\t\tLog.i(\"IMAGE\",\"Cache hit on \"+hashURL(url));\n\t\treturn image;\n\t}",
"private static void putInPersistentCache(final Asset asset) {\n \n \t\tif (!usePersistentCache) {\n \t\t\treturn;\n \t\t}\n \n \t\tif (!assetIsInPersistentCache(asset)) {\n \n \t\t\tfinal File assetFile = getAssetCacheFile(asset);\n \n \t\t\tnew Thread() {\n \t\t\t\t@Override\n \t\t\t\tpublic void run() {\n \n \t\t\t\t\ttry {\n \t\t\t\t\t\tassetFile.getParentFile().mkdirs();\n \t\t\t\t\t\t// Image\n \t\t\t\t\t\tOutputStream out = new FileOutputStream(assetFile);\n \t\t\t\t\t\tout.write(asset.getImage());\n \t\t\t\t\t\tout.close();\n \n \t\t\t\t\t} catch (IOException ioe) {\n \t\t\t\t\t\tlog.error(\"Could not persist asset while writing image data\", ioe);\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}.start();\n \n \t\t}\n \t\tif (!assetInfoIsInPersistentCache(asset)) {\n \n \t\t\tFile infoFile = getAssetInfoFile(asset);\n \n \t\t\ttry {\n \t\t\t\t// Info\n \t\t\t\tOutputStream out = new FileOutputStream(infoFile);\n \t\t\t\tProperties props = new Properties();\n \t\t\t\tprops.put(NAME, asset.getName() != null ? asset.getName() : \"\");\n \t\t\t\tprops.store(out, \"Asset Info\");\n \t\t\t\tout.close();\n \n \t\t\t} catch (IOException ioe) {\n \t\t\t\tlog.error(\"Could not persist asset while writing image properties\", ioe);\n \t\t\t\treturn;\n \t\t\t}\n \n \t\t}\n \t}",
"@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tmImageFetcher.closeCache();\n\t}",
"public ImageFileCache(Context context){\n\t\tFile cacheDir = getCacheDir(context, DISK_CACHE_SUBDIR);\n//\t\tmDiskCache = DiskLruCache.openCache(this, cacheDir, DISK_CACHE_SIZE);\n\t}",
"@Override\n\tpublic void onLowMemory() {\n\t\tif(mImageFetcher != null){\n\t\t\tmImageFetcher.setPauseWork(true);\n\t\t\tmImageFetcher.setExitTasksEarly(true);\n\t\t\tmImageFetcher.flushCache();\n\t\t\tmImageFetcher.closeCache();\n\t\t}\n\t\tsuper.onLowMemory();\n\t}",
"@Override\n\t\t\tpublic Bitmap getBitmap(String url) {\n\t\t\t\treturn cache.get(url);\n\t\t\t}",
"private Bitmap getBitmapFromLruCache(String key) {\r\n return mLruCache.get(key);\r\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif (imageLoader != null) {\n\t\t\timageLoader.clearMemoryCache();\n\t\t}\n\t}",
"@Override\n protected void onPostExecute(Bitmap bitmap) {\n if (isCancelled()) {\n bitmap = null;\n }\n\n // Add bitmap to cache\n if (bitmap != null) {\n synchronized (sHardBitmapCache) {\n sHardBitmapCache.put(resourceId, bitmap);\n }\n }\n\n if (imageViewReference != null) {\n ImageView imageView = imageViewReference.get();\n BitmapDownloaderTask bitmapDownloaderTask = getBitmapDownloaderTask(imageView);\n // Change bitmap only if this process is still associated with it\n if (this == bitmapDownloaderTask) {\n imageView.setImageBitmap(bitmap);\n }\n }\n }",
"private static OkHttpClient createCachedClient(final Context context) {\n File httpCacheDirectory = new File(context.getCacheDir(), \"cache_file\");\n Cache cache = new Cache(httpCacheDirectory, 20 * 1024 * 1024);\n OkHttpClient okHttpClient = new OkHttpClient.Builder().addNetworkInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request originalRequest = chain.request();\n String cacheHeaderValue = isNetworkAvailable(context)\n ? \"public, max-age=2419200\"\n : \"public, only-if-cached, max-stale=2419200\";\n Request request = originalRequest.newBuilder().build();\n Response response = chain.proceed(request);\n return response.newBuilder()\n .removeHeader(\"Pragma\")\n .removeHeader(\"Cache-Control\")\n .header(\"Cache-Control\", cacheHeaderValue)\n .build();\n }\n }).cache(cache).build();\n return okHttpClient;\n }",
"@Override\n protected void onPostExecute(Bitmap bitmap) {\n if (isCancelled()) {\n bitmap = null;\n }\n\n addBitmapToCache(url, bitmap);\n \n // write to cache file at the same time\n // Defect: Because transfer into bitmap, we can't save as GIF with transparent background\n // saveBitmapToCacheFile(url, bitmap);\n \n if (imageViewReference != null) {\n ImageView imageView = imageViewReference.get();\n BitmapDownloaderTask bitmapDownloaderTask = getBitmapDownloaderTask(imageView);\n // Change bitmap only if this process is still associated with it\n // Or if we don't use any bitmap to task association (NO_DOWNLOADED_DRAWABLE mode)\n if ((this == bitmapDownloaderTask) || (mode != Mode.CORRECT)) {\n imageView.setImageBitmap(bitmap);\n }\n }\n }",
"@Override\n\tpublic void onLowMemory() {\n\t\tif (mImageFetcher != null) {\n\t\t\tmImageFetcher.setPauseWork(true);\n\t\t\tmImageFetcher.setExitTasksEarly(true);\n\t\t\tmImageFetcher.flushCache();\n\t\t\tmImageFetcher.closeCache();\n\t\t}\n\t\tsuper.onLowMemory();\n\t}",
"public void run() {\n\t\t\tfinal Bitmap mBitmap = getImage();\n\n\t\t\tPlayUpActivity.handler.post(new Runnable() {\n\t\t\t\tpublic void run() {\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (!isBitmapCacheTask) {\n\n\t\t\t\t\t\t\tif (mBaseAdapters != null\n\t\t\t\t\t\t\t\t\t&& mBaseAdapters.containsKey(url)\n\t\t\t\t\t\t\t\t\t&& mBaseAdapters.get(url) != null\n\t\t\t\t\t\t\t\t\t&& mBaseAdapters.get(url).size() > 0) {\n\t\t\t\t\t\t\t\tif (mBitmap != null) {\n\t\t\t\t\t\t\t\t\tSet<BaseAdapter> baseAdapters = mBaseAdapters\n\t\t\t\t\t\t\t\t\t\t\t.get(url);\n\n\t\t\t\t\t\t\t\t\tfor (BaseAdapter ba : baseAdapters) {\n\n\t\t\t\t\t\t\t\t\t\tba.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (mBaseAdapters != null) {\n\t\t\t\t\t\t\t\t\t\tmBaseAdapters.get(url).clear();\n\t\t\t\t\t\t\t\t\t\tmBaseAdapters.remove(url);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (notify) {\n\t\t\t\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\t\t\t\tmsg.obj = \"updateImage\";\n\t\t\t\t\t\t\t\tPlayupLiveApplication\n\t\t\t\t\t\t\t\t\t\t.callUpdateOnFragmentsNotTopBar(msg);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (imageViews.get(url) != null\n\t\t\t\t\t\t\t\t\t&& imageViews.containsKey(url)\n\t\t\t\t\t\t\t\t\t&& imageViews.get(url) != null\n\t\t\t\t\t\t\t\t\t&& imageViews.get(url).size() > 0) {\n\n\t\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\t\timgView = null;\n\n\t\t\t\t\t\t\t\t\tList<ImageView> iView = imageViews.get(url);\n\n\t\t\t\t\t\t\t\t\tfor (ImageView img : iView) {\n\t\t\t\t\t\t\t\t\t\timgView = img;\n\n\t\t\t\t\t\t\t\t\t\tif (imgView.getVisibility() == View.VISIBLE) {\n\t\t\t\t\t\t\t\t\t\t\timgView.setImageBitmap(mBitmap);\n\t\t\t\t\t\t\t\t\t\t\t// if (bgColor != null &&\n\t\t\t\t\t\t\t\t\t\t\t// bgColor.trim().length() > 0) {\n\t\t\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\t\t\t\t\t// Drawable d =\n\t\t\t\t\t\t\t\t\t\t\t// imgView.getDrawable();\n\t\t\t\t\t\t\t\t\t\t\t// if (d != null) {\n\t\t\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\t\t\t\t\t// d.setAlpha(Integer.parseInt(\"88\",\n\t\t\t\t\t\t\t\t\t\t\t// 16));\n\t\t\t\t\t\t\t\t\t\t\t// d.setColorFilter(Color.parseColor(\"#\"+\n\t\t\t\t\t\t\t\t\t\t\t// bgColor),Mode.DST_OVER);\n\t\t\t\t\t\t\t\t\t\t\t// imgView.setBackgroundDrawable(d);\n\t\t\t\t\t\t\t\t\t\t\t// }\n\t\t\t\t\t\t\t\t\t\t\t// }\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\timgView = null;\n\t\t\t\t\t\t\t\t\tif (linearLayout != null) {\n\n\t\t\t\t\t\t\t\t\t\tif (imageDownloader != null) {\n\t\t\t\t\t\t\t\t\t\t\timageDownloader\n\t\t\t\t\t\t\t\t\t\t\t\t\t.nullViewDrawablesRecursive(linearLayout);\n\t\t\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif (imageDownloaderSports != null) {\n\t\t\t\t\t\t\t\t\t\t\timageDownloaderSports\n\t\t\t\t\t\t\t\t\t\t\t\t\t.nullViewDrawablesRecursive(linearLayout);\n\t\t\t\t\t\t\t\t\t\t\timageDownloaderSports = null;\n\t\t\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t//Logs.show(e);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (mBitmap != null) {\n\n\t\t\t\t\t\t\t\t\tif (imageViews != null) {\n\t\t\t\t\t\t\t\t\t\timageViews.get(url).clear();\n\t\t\t\t\t\t\t\t\t\timageViews.remove(url);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (views != null && views.get(url) != null\n\t\t\t\t\t\t\t\t&& views.get(url).size() > 0) {\n\n\t\t\t\t\t\t\tList<View> layoutViews = views.get(url);\n\n\t\t\t\t\t\t\tfor (View lin : layoutViews) {\n\n\t\t\t\t\t\t\t\tif (lin.getVisibility() == View.VISIBLE) {\n\n\t\t\t\t\t\t\t\t\tlinearLayout = lin;\n\n\t\t\t\t\t\t\t\t\tif (linearLayout instanceof LinearLayout) {\n\n\t\t\t\t\t\t\t\t\t\tdeSelectSports(linearLayout);\n\n\t\t\t\t\t\t\t\t\t\tImageView sportsImage = (ImageView) linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t.findViewById(R.id.mysportsItemImage);\n\n\t\t\t\t\t\t\t\t\t\tsportsImage.setTag(\"1\");\n\t\t\t\t\t\t\t\t\t\tsportsImage.setImageBitmap(mBitmap);\n\n\t\t\t\t\t\t\t\t\t\tsportsImage = null;\n\t\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\n\t\t\t\t\t\t\t\t\t} else if (linearLayout instanceof RelativeLayout) {\n\n\t\t\t\t\t\t\t\t\t\tif (linearLayout.getVisibility() == View.VISIBLE) {\n\n\t\t\t\t\t\t\t\t\t\t\tif (mBitmap != null) {\n\n\t\t\t\t\t\t\t\t\t\t\t\tImageView imageWithSummaryImage = (ImageView) linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.findViewById(R.id.ImageWithSummaryImage);\n\n\t\t\t\t\t\t\t\t\t\t\t\timageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\t\timageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setImageBitmap(mBitmap);\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag(R.id.active_users_no) != null\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag(R.id.active_users_no)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.trim()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.length() > 0) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tString bgColor = linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag(R.id.active_users_no)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString();\n\n\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tDrawable d = new BitmapDrawable(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmBitmap);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (d != null) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (imageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag() != null\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& imageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"show_dark\")) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td.setColorFilter(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColor.parseColor(\"#\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ bgColor),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMode.DST_OVER);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// d.setAlpha(20);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Log.e(\"123\",\"inside after downloades bgcolor != null \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// + ((ImageView)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// linearLayout.findViewById(R.id.ImageWithSummaryImage)).getVisibility());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// d.setColorFilter(Color.parseColor(\"#77\"+\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// bgColor),Mode.DST_OVER);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\timageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setImageDrawable(d);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\timageWithSummaryImage = null;\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (mBitmap != null) {\n\t\t\t\t\t\t\t\tif (views != null) {\n\t\t\t\t\t\t\t\t\tviews.get(url).clear();\n\t\t\t\t\t\t\t\t\tviews.remove(url);\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (requestImageUrls != null\n\t\t\t\t\t\t\t\t&& requestImageUrls.containsKey(url)) {\n\t\t\t\t\t\t\trequestImageUrls.remove(url);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tkey = null;\n\t\t\t\t\t\turl = null;\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t//Logs.show(e);\n\t\t\t\t\t} finally {\n\t\t\t\t\t\t// mBitmap.recycle();\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t});\n\n\t\t}",
"FixedTextureCache()\n {\n textureMap = new HashMap();\n componentMap = new HashMap();\n }",
"@Override\n\t\t\t\tpublic Bitmap onPreSetBitmap(ImageView imageView, Bitmap loadedBitmap, String url, boolean loadedFromCache) {\n\t\t\t\t\treturn loadedBitmap;\n\t\t\t\t}",
"private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, value);\n }\n \n @Override\n public Integer get(AccessPointIdentifier key) {\n if (cache.containsKey(key)) {\n hitRate++;\n }\n return cache.get(key);\n }\n \n \n };\n }",
"public boolean existCache() {\n return false;\n }",
"public static Drawable LoadImageFromWebOperations(String url, File cacheDir) {\n\t\ttry {\n\t\t\tDrawable d = null;\n\t\t\tString[] urlDir = url.split(\"/\");\n\t\t\tint sizeMax=600;\n\t\t\ttry {\n\t\t\t\t// File cacheDir = new File(ruta+File.separator+ urlDir[8]);\n\t\t\t\tif (!cacheDir.exists()) {\n\t\t\t\t\tcacheDir.mkdirs();\n\n\t\t\t\t}\n\t\t\t\tFile cacheDirName = new File(cacheDir + File.separator\n\t\t\t\t\t\t+ urlDir[urlDir.length - 1]);\n\n\t\t\t\tif (!cacheDirName.exists() || cacheDirName.length() == 0) {\n\t\t\t\t\tcacheDirName.createNewFile();\n\t\t\t\t\tInputStream is = (InputStream) new URL(url).getContent();\n\t\t\t\t\tBitmap bit = BitmapFactory.decodeStream(is);\n\t\t\t\t\t//Alto\n\t\t\t\t\tBitmap bit2=null;\n\t\t\t\t\tFileOutputStream fo = new FileOutputStream(cacheDirName);\n\t\t\t\t\t// Drawable d = Drawable.createFromStream(is, \"src name\");\n\t\t\t\t\tif(bit.getHeight()>sizeMax){\n\t\t\t\t\t\tbit2=Bitmap.createScaledBitmap(bit,(sizeMax*bit.getWidth()/bit.getHeight()), sizeMax, false);\n\t\t\t\t\t\tbit2.compress(CompressFormat.JPEG, 95, fo);\n\t\t\t\t\t}else if(bit.getWidth()>sizeMax){\n\t\t\t\t\t\tbit2=Bitmap.createScaledBitmap(bit,sizeMax, (sizeMax* bit.getHeight()/bit.getWidth()), false);\n\t\t\t\t\t\tbit2.compress(CompressFormat.JPEG, 95, fo);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbit.compress(CompressFormat.JPEG, 95, fo);\n\t\t\t\t\t}\n\n\t\t\t\t\tif(Constants.DEBUG) Log.v(Constants.TAG,\"Url: \"+cacheDir + File.separator\n\t\t\t\t\t\t\t+ urlDir[urlDir.length - 1]);\n\t\t\t\t\tif(Constants.DEBUG) Log.v(Constants.TAG,\"Ancho y alto: \"+(bit.getWidth()+\" \"+bit.getHeight()));\n\t\t\t\t\tif(Constants.DEBUG) Log.v(Constants.TAG,\"Size1: \"+(bit.getRowBytes()*bit.getHeight()));\n\t\t\t\t\tbit.recycle();\n\t\t\t\t\tif(bit2!=null){\n\t\t\t\t\t\tif(Constants.DEBUG) Log.v(Constants.TAG,\"Size2: \"+(bit2.getRowBytes()*bit2.getHeight()));\n\t\t\t\t\t\tbit2.recycle();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.gc();\n\t\t\t\tRuntime.getRuntime().gc();\n\t\t\t\td = Drawable.createFromPath(cacheDirName.getPath());\n\t\t\t} catch (OutOfMemoryError e) {\n\t\t\t\tSystem.gc();\n\t\t\t\tRuntime.getRuntime().gc();\n\t\t\t}\n\t\t\t//\n\n\t\t\treturn d;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"private void onCacheFinish(){\n urls = null;\n medias = null;\n }",
"public static void cacheImage(final File file, ImageRequest imageCallback) {\n\n HttpURLConnection urlConnection = null;\n FileOutputStream fileOutputStream = null;\n InputStream inputStream = null;\n boolean isGif = false;\n\n try{\n // Setup the connection\n urlConnection = (HttpURLConnection) new URL(imageCallback.mUrl).openConnection();\n urlConnection.setConnectTimeout(ImageManager.LONG_CONNECTION_TIMEOUT);\n urlConnection.setReadTimeout(ImageManager.LONG_REQUEST_TIMEOUT);\n urlConnection.setUseCaches(true);\n urlConnection.setInstanceFollowRedirects(true);\n\n // Set the progress to 0\n imageCallback.sendProgressUpdate(imageCallback.mUrl, 0);\n\n // Connect\n inputStream = urlConnection.getInputStream();\n\n // Do not proceed if the file wasn't downloaded\n if(urlConnection.getResponseCode()==404){\n urlConnection.disconnect();\n return;\n }\n\n // Check if the image is a GIF\n String contentType = urlConnection.getHeaderField(\"Content-Type\");\n if(contentType!=null){\n isGif = contentType.equals(GIF_MIME);\n }\n\n // Grab the length of the image\n int length = 0;\n try{\n String fileLength = urlConnection.getHeaderField(\"Content-Length\");\n if(fileLength!=null){\n length = Integer.parseInt(fileLength);\n }\n }catch(NumberFormatException e){\n if(ImageManager.DEBUG){\n e.printStackTrace();\n }\n }\n\n // Write the input stream to disk\n fileOutputStream = new FileOutputStream(file, true);\n int byteRead = 0;\n int totalRead = 0;\n final byte[] buffer = new byte[8192];\n int frameCount = 0;\n\n // Download the image\n while ((byteRead = inputStream.read(buffer)) != -1) {\n\n // If the image is a gif, count the start of frames\n if(isGif){\n for(int i=0;i<byteRead-3;i++){\n if( buffer[i] == 33 && buffer[i+1] == -7 && buffer[i+2] == 4 ){\n frameCount++;\n\n // Once we have at least one frame, stop the download\n if(frameCount>1){\n fileOutputStream.write(buffer, 0, i);\n fileOutputStream.close();\n\n imageCallback.sendProgressUpdate(imageCallback.mUrl, 100);\n imageCallback.sendCachedCallback(imageCallback.mUrl, true);\n\n urlConnection.disconnect();\n return;\n }\n }\n }\n }\n\n // Write the buffer to the file and update the total number of bytes\n // read so far (used for the callback)\n fileOutputStream.write(buffer, 0, byteRead);\n totalRead+=byteRead;\n\n // Update the callback with the current progress\n if(length>0){\n imageCallback.sendProgressUpdate(imageCallback.mUrl, \n (int) (((float)totalRead/(float)length)*100) );\n }\n }\n\n // Tidy up after the download\n if (fileOutputStream != null){\n fileOutputStream.close();\n }\n\n // Sent the callback that the image has been downloaded\n imageCallback.sendCachedCallback(imageCallback.mUrl, true);\n\n if (inputStream != null){\n inputStream.close();\n }\n\n // Disconnect the connection\n urlConnection.disconnect();\n } catch (final MalformedURLException e) {\n if (ImageManager.DEBUG){\n e.printStackTrace();\n }\n\n // If the file exists and an error occurred, delete the file\n if (file != null){\n file.delete();\n }\n\n } catch (final IOException e) {\n if (ImageManager.DEBUG){\n e.printStackTrace();\n }\n\n // If the file exists and an error occurred, delete the file\n if (file != null){\n file.delete();\n }\n\n }\n\n }",
"@Override\n public Bitmap getImage(String url) {\n try {\n if (!taskForUrlAlreadyRunning(url)) {\n imageDownloadTaskMap.put(url, startDownload(url));\n }\n } catch (MalformedURLException e) {\n Log.i(\"ImageDownloadManager\", \"Malformed url\" + url);\n }\n return null;\n }",
"@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}",
"public void loadImage(final String path, final ImageView imageView){\r\n imageView.setTag(path);\r\n if (mUIHandler==null){\r\n mUIHandler=new Handler(){\r\n @Override\r\n public void handleMessage(Message msg) {\r\n //Get the image and set its imageView.\r\n ImgBeanHolder holder= (ImgBeanHolder) msg.obj;\r\n Bitmap bitmap = holder.bitmap;\r\n ImageView imageview= holder.imageView;\r\n String path = holder.path;\r\n if (imageview.getTag().toString().equals( path)){\r\n imageview.setImageBitmap(bitmap);\r\n }\r\n }\r\n };\r\n }\r\n //Get the bitmap through the path in the cache.\r\n Bitmap bm=getBitmapFromLruCache(path);\r\n if (bm!=null){\r\n refreshBitmap(bm, path, imageView);\r\n }else{\r\n addTask(() -> {\r\n //Get the size of the image which wants to be displayed.\r\n ImageSize imageSize= getImageViewSize(imageView);\r\n //Compress the image.\r\n Bitmap bm1 =decodeSampledBitmapFromPath(imageSize.width,imageSize.height,path);\r\n //Put the image into the cache.\r\n addBitmapToLruCache(path, bm1);\r\n //Refresh the display of the image.\r\n refreshBitmap(bm1, path, imageView);\r\n mSemaphoreThreadPool.release();\r\n });\r\n }\r\n\r\n }",
"@Override\n public void onResult(@NonNull PhotoCache photoCache) {\n saveImageFile(photoCache, DEFAULT_PATH, MAX_QUALITY, this);\n fullPhotosCaching.put(photoCache.getPhotoId(), photoCache);\n }",
"private void addBitmapToCache(String url, Bitmap bitmap) {\n if (bitmap != null) {\n synchronized (sHardBitmapCache) {\n sHardBitmapCache.put(url, bitmap);\n }\n }\n }",
"private static void setCacheTag(File image, HttpServletRequest request, HttpServletResponse response) {\n String fileName = image.getName();\n long length = image.length();\n long lastModified = image.lastModified();\n String eTag = fileName + \"_\" + length + \"_\" + lastModified;\n long expires = System.currentTimeMillis() + DEFAULT_EXPIRE_TIME;\n\n // Validate request headers for caching ---------------------------------------------------\n\n // If-None-Match header should contain \"*\" or ETag. If so, then return 304.\n String ifNoneMatch = request.getHeader(\"If-None-Match\");\n if (ifNoneMatch != null && matches(ifNoneMatch, eTag)) {\n response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);\n response.setHeader(\"ETag\", eTag); // Required in 304.\n response.setDateHeader(\"Expires\", expires); // Postpone cache with 1 week.\n return;\n }\n\n // If-Modified-Since header should be greater than LastModified. If so, then return 304.\n // This header is ignored if any If-None-Match header is specified.\n long ifModifiedSince = request.getDateHeader(\"If-Modified-Since\");\n if (ifNoneMatch == null && ifModifiedSince != -1 && ifModifiedSince + 1000 > lastModified) {\n response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);\n response.setHeader(\"ETag\", eTag); // Required in 304.\n response.setDateHeader(\"Expires\", expires); // Postpone cache with 1 week.\n return;\n }\n\n if (null == ifNoneMatch && ifModifiedSince == -1) {\n// response.setHeader(HTTPCacheHeader.CACHE_CONTROL.getName(), cacheControl.toString());\n response.setDateHeader(\"Expires\", expires); // Postpone cache with 1 week.\n }\n\n\n }",
"private static void readFromCache(com.facebook.internal.ImageDownloader.RequestKey r2, android.content.Context r3, boolean r4) {\n /*\n r0 = 0;\n r1 = 0;\n if (r4 == 0) goto L_0x0014;\n L_0x0004:\n r4 = r2.uri;\n r4 = com.facebook.internal.UrlRedirectCache.getRedirectedUri(r4);\n if (r4 == 0) goto L_0x0014;\n L_0x000c:\n r4 = com.facebook.internal.ImageResponseCache.getCachedImageStream(r4, r3);\n if (r4 == 0) goto L_0x0015;\n L_0x0012:\n r0 = 1;\n goto L_0x0015;\n L_0x0014:\n r4 = r1;\n L_0x0015:\n if (r0 != 0) goto L_0x001d;\n L_0x0017:\n r4 = r2.uri;\n r4 = com.facebook.internal.ImageResponseCache.getCachedImageStream(r4, r3);\n L_0x001d:\n if (r4 == 0) goto L_0x002a;\n L_0x001f:\n r3 = android.graphics.BitmapFactory.decodeStream(r4);\n com.facebook.internal.Utility.closeQuietly(r4);\n issueResponse(r2, r1, r3, r0);\n goto L_0x0039;\n L_0x002a:\n r3 = removePendingRequest(r2);\n if (r3 == 0) goto L_0x0039;\n L_0x0030:\n r4 = r3.isCancelled;\n if (r4 != 0) goto L_0x0039;\n L_0x0034:\n r3 = r3.request;\n enqueueDownload(r3, r2);\n L_0x0039:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.ImageDownloader.readFromCache(com.facebook.internal.ImageDownloader$RequestKey, android.content.Context, boolean):void\");\n }",
"public boolean searchCache(String url) {\n\t\tif (imageViewReference != null) {\n\t\t\tImageView imageView = imageViewReference.get();\n\t\t\tif (imageView != null) { \t\n\n\t\t\t\t// check for cached copy\n\t\t\t\tif (cache.containsKey(url)) {\n\n\t\t\t\t\t// set bitmap on image view\n\t\t\t\t\timageView.setImageBitmap(cache.get(url));\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"private Bitmap getBitmapFromMemCache(String key) {\n return mLruCache.get(key);\n }",
"static File m61441b(Context context) {\n File file = new File(context.getApplicationContext().getCacheDir(), \"picasso-cache\");\n if (!file.exists()) {\n file.mkdirs();\n }\n return file;\n }",
"public Bitmap getFromCache(final String key) {\n\n\t\ttry {\n\t\t\tif (Constants.CACHE_DIR_PATH.endsWith(\"/\"))\n\t\t\t\treturn BitmapFactory.decodeFile(Constants.CACHE_DIR_PATH + key);\n\t\t\telse\n\t\t\t\treturn BitmapFactory.decodeFile(Constants.CACHE_DIR_PATH + \"/\"\n\t\t\t\t\t\t+ key);\n\t\t} catch (Error e) {\n\n\t\t\t//Logs.show(e);\n\n\t\t}\n\t\treturn null;\n\t}",
"public static void initCacheFileByData(Context context) {\n\t\tfinal String imageDir = getAppFilesDirByData(context)+ CACHE_IMG_DIR_PATH;\n\t\tfinal File imageFileDir = new File(imageDir);\n\t\tif (!imageFileDir.exists()) {\n\t\t\timageFileDir.mkdirs();\n\t\t}\n\t}",
"static CacheResult createCacheFile(String url, int statusCode,\n Headers headers, String mimeType, boolean forceCache) {\n // This method is public but hidden. We break functionality.\n return null;\n }",
"@Override\n public CacheAPI getCacheAPI() {\n return null;\n }",
"@Override\n public boolean onResourceReady(GlideDrawable resource,\n String model,\n Target<GlideDrawable> target,\n boolean isFromMemoryCache,\n boolean isFirstResource) {\n imageView.setTag(imageUrl);\n return false;\n }",
"public UrlCache() throws UrlCacheException {\n\t\tcreateCatalogFileIfNoneExists();\t\t\n\t}",
"private HttpCache(@NonNull Context context) {\n mCache = new Cache(new File(context.getExternalCacheDir(), CacheConfig.FILE_DIR),\n CacheConfig.FILE_SIZE);\n }",
"public void saveImageFromURL(final CacheLoaderCallBack callBack) {\n Executors.newFixedThreadPool(1).execute(new Runnable() {\n @Override\n public void run() {\n if (context != null) {\n OutputStream os = null;\n InputStream is = null;\n final File file = new File(context.getExternalFilesDir(null), pictureName);\n\n try {\n URL url = new URL(loadUrl);\n httpConnection = (HttpURLConnection) url.openConnection();\n httpConnection.setDoInput(true);\n httpConnection.connect();\n is = httpConnection.getInputStream();\n Bitmap bit = BitmapFactory.decodeStream(is);\n os = new FileOutputStream(file);\n bit.compress(Bitmap.CompressFormat.JPEG, 85, os);\n is.close();\n os.close();\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n callBack.onSuccess();\n }\n };\n new Handler(Looper.getMainLooper()).post(runnable);\n httpConnection.disconnect();\n } catch (final IOException e) {\n Log.w(\"ExternalStorage\", \"Error writing \" + file, e);\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n callBack.onError(e.getMessage());\n }\n };\n new Handler(Looper.getMainLooper()).post(runnable);\n } finally {\n if (httpConnection != null) {\n httpConnection.disconnect();\n try {\n os.flush();\n os.close();\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }\n });\n }",
"public void setCached() {\n }",
"private File getCache(String fileName)\n {\n File file = new File(getCacheDir(), fileName);\n\n if (file.exists() && file.length() > 0)\n {\n return file;\n } else\n {\n try\n {\n file = File.createTempFile(fileName, null, this.getCacheDir());\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return file;\n }",
"private static Cache getCacheInstance() {\r\n\t\tif( cache == null ) {\r\n\t\t\ttry {\r\n\t\t\t\tCacheFactory cf = CacheManager.getInstance().getCacheFactory();\r\n\t\t\t\tcache = cf.createCache(Collections.emptyMap());\r\n\t\t\t} catch (CacheException e) {\r\n\t\t\t\tlog.log(Level.SEVERE, \"can not initialize cache\", e);\r\n\t\t\t\tcache = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cache;\r\n\t}",
"private void loadAndCacheImages(Node node, FileContext cachedImageFilesystem) throws Exception\n {\n String imagePathBase = \"/\" + node.getTypeCode() + \"/\" + node.getNid();\n ImagesReponse imagesReponse = this.queryRemoteApi(ImagesReponse.class, imagePathBase + ImagesReponse.PATH, null);\n if (imagesReponse != null && imagesReponse.getNodes() != null && imagesReponse.getNodes().getNode() != null) {\n for (Image i : imagesReponse.getNodes().getNode()) {\n node.addImage(i);\n\n URI imageUri = UriBuilder.fromUri(Settings.instance().getTpAccessApiBaseUrl())\n .path(BASE_PATH)\n .path(imagePathBase + \"/image/\" + i.getData().mediaObjectId + \"/original\")\n .replaceQueryParam(ACCESS_TOKEN_PARAM, this.getAccessToken())\n .replaceQueryParam(FORMAT_PARAM, FORMAT_JSON)\n .build();\n\n ClientConfig config = new ClientConfig();\n Client httpClient = ClientBuilder.newClient(config);\n Response response = httpClient.target(imageUri).request().get();\n if (response.getStatus() == Response.Status.OK.getStatusCode()) {\n org.apache.hadoop.fs.Path nodeImages = new org.apache.hadoop.fs.Path(HDFS_CACHE_ROOT_PATH + node.getNid());\n if (!cachedImageFilesystem.util().exists(nodeImages)) {\n cachedImageFilesystem.mkdir(nodeImages, FsPermission.getDirDefault(), true);\n }\n org.apache.hadoop.fs.Path cachedImage = new org.apache.hadoop.fs.Path(nodeImages, i.getData().mediaObjectId);\n i.setCachedUrl(cachedImage.toUri());\n if (!cachedImageFilesystem.util().exists(cachedImage)) {\n try (OutputStream os = cachedImageFilesystem.create(cachedImage, EnumSet.of(CreateFlag.CREATE, CreateFlag.OVERWRITE))) {\n IOUtils.copy(response.readEntity(InputStream.class), os);\n }\n }\n }\n else {\n throw new IOException(\"Error status returned while fetching remote API data;\" + response);\n }\n\n }\n }\n }",
"public interface IImageLoaderClient {\n public void init(Context context);\n\n public void destroy(Context context);\n\n public File getCacheDir(Context context);\n\n public void clearMemoryCache(Context context);\n\n public void clearDiskCache(Context context);\n\n public Bitmap getBitmapFromCache(Context context, String url);\n\n public void getBitmapFromCache(Context context, String url, IGetBitmapListener listener);\n\n public void displayImage(Context context, int resId, ImageView imageView);\n\n public void displayImage(Context context, String url, ImageView imageView);\n\n public void displayImage(Context context, String url, ImageView imageView, boolean isCache);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, ImageSize size);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, ImageSize size);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, boolean cacheInMemory);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, boolean cacheInMemory);\n\n\n public void displayImage(Context context, String url, ImageView imageView, IImageLoaderListener listener);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, IImageLoaderListener listener);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, IImageLoaderListener listener);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, IImageLoaderListener listener);\n\n\n public void displayCircleImage(Context context, String url, ImageView imageView, int defRes);\n\n public void displayCircleImage(Fragment fragment, String url, ImageView imageView, int defRes);\n @Deprecated\n public void displayRoundImage(Context context, String url, ImageView imageView, int defRes, int radius);\n\n public void displayRoundImage(Fragment fragment, String url, ImageView imageView, int defRes, int radius);\n\n public void displayBlurImage(Context context, String url, int blurRadius, IGetDrawableListener listener);\n\n public void displayBlurImage(Context context, String url, ImageView imageView, int defRes, int blurRadius);\n\n public void displayBlurImage(Context context, int resId, ImageView imageView, int blurRadius);\n\n public void displayBlurImage(Fragment fragment, String url, ImageView imageView, int defRes, int blurRadius);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView, BitmapTransformation transformations);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView, BitmapTransformation transformations);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView, int defRes);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView, int defRes);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n\n //add shiming 2018.4.20 transformation 需要装换的那种图像的风格,错误图片,或者是,正在加载中的错误图\n public void displayImageInResourceTransform(Activity activity, int resId, ImageView imageView, Transformation transformation, int errorResId);\n public void displayImageInResourceTransform(Context context, int resId, ImageView imageView, Transformation transformation, int errorResId);\n public void displayImageInResourceTransform(Fragment fragment, int resId, ImageView imageView, Transformation transformation, int errorResId);\n\n //这是对网络图片,进行的图片操作,使用的glide中的方法\n public void displayImageByNet(Context context, String url, ImageView imageView, int defRes, Transformation transformation);\n public void displayImageByNet(Fragment fragment, String url, ImageView imageView, int defRes, Transformation transformation);\n public void displayImageByNet(Activity activity, String url, ImageView imageView, int defRes, Transformation transformation);\n\n\n /**\n * 停止图片的加载,对某一个的Activity\n * @hide\n */\n public void clear(Activity activity, ImageView imageView);\n /**\n * 停止图片的加载,context\n * {@hide}\n */\n public void clear(Context context, ImageView imageView);\n /**\n * 停止图片的加载,fragment\n * {@hide}\n */\n public void clear(Fragment fragment, ImageView imageView);\n\n\n //如果需要的话,需要指定加载中,或者是失败的图片\n public void displayImageByDiskCacheStrategy(Fragment fragment, String url, DiskCacheStrategy diskCacheStrategy, ImageView imageView);\n public void displayImageByDiskCacheStrategy(Activity activity, String url, DiskCacheStrategy diskCacheStrategy, ImageView imageView);\n public void displayImageByDiskCacheStrategy(Context context, String url, DiskCacheStrategy diskCacheStrategy, ImageView imageView);\n //某些情形下,你可能希望只要图片不在缓存中则加载直接失败(比如省流量模式)\n public void disPlayImageOnlyRetrieveFromCache(Fragment fragment, String url, ImageView imageView);\n public void disPlayImageOnlyRetrieveFromCache(Activity activity, String url, ImageView imageView);\n public void disPlayImageOnlyRetrieveFromCache(Context context, String url, ImageView imageView);\n\n\n\n /**\n *如果你想确保一个特定的请求跳过磁盘和/或内存缓存(比如,图片验证码 –)\n * @param fragment\n * @param url\n * @param imageView\n * @param skipflag 是否跳过内存缓存\n * @param diskCacheStratey 是否跳过磁盘缓存\n */\n public void disPlayImageSkipMemoryCache(Fragment fragment, String url, ImageView imageView, boolean skipflag, boolean diskCacheStratey);\n public void disPlayImageSkipMemoryCache(Activity activity, String url, ImageView imageView, boolean skipflag, boolean diskCacheStratey);\n public void disPlayImageSkipMemoryCache(Context context, String url, ImageView imageView, boolean skipflag, boolean diskCacheStratey);\n\n /**\n * 知道这个图片会加载失败,那么的话,我们可以重新加载\n * @param fragment\n * @param url\n * @param fallbackUrl\n * @param imageView\n */\n //从 Glide 4.3.0 开始,你可以很轻松地使用 .error() 方法。这个方法接受一个任意的 RequestBuilder,它会且只会在主请求失败时开始一个新的请求:\n public void disPlayImageErrorReload(Fragment fragment, String url, String fallbackUrl, ImageView imageView);\n public void disPlayImageErrorReload(Activity activity, String url, String fallbackUrl, ImageView imageView);\n public void disPlayImageErrorReload(Context context, String url, String fallbackUrl, ImageView imageView);\n\n\n /**\n 未来 Glide 将默认加载硬件位图而不需要额外的启用配置,只保留禁用的选项 现在已经默认开启了这个配置,但是在有些情况下需要关闭\n 所以提供了以下的方法,禁用硬件位图 disallowHardwareConfig\n * @param fragment\n * @param url\n * @param imageView\n */\n// 哪些情况不能使用硬件位图?\n// 在显存中存储像素数据意味着这些数据不容易访问到,在某些情况下可能会发生异常。已知的情形列举如下:\n// 在 Java 中读写像素数据,包括:\n// Bitmap#getPixel\n// Bitmap#getPixels\n// Bitmap#copyPixelsToBuffer\n// Bitmap#copyPixelsFromBuffer\n// 在本地 (native) 代码中读写像素数据\n// 使用软件画布 (software Canvas) 渲染硬件位图:\n// Canvas canvas = new Canvas(normalBitmap)\n//canvas.drawBitmap(hardwareBitmap, 0, 0, new Paint());\n// 在绘制位图的 View 上使用软件层 (software layer type) (例如,绘制阴影)\n// ImageView imageView = …\n// imageView.setImageBitmap(hardwareBitmap);\n//imageView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);\n// 打开过多的文件描述符 . 每个硬件位图会消耗一个文件描述符。\n// 这里存在一个每个进程的文件描述符限制 ( Android O 及更早版本一般为 1024,在某些 O-MR1 和更高的构建上是 32K)。\n// Glide 将尝试限制分配的硬件位图以保持在这个限制以内,但如果你已经分配了大量的文件描述符,这可能是一个问题。\n// 需要ARGB_8888 Bitmaps 作为前置条件\n// 在代码中触发截屏操作,它会尝试使用 Canvas 来绘制视图层级。\n// 作为一个替代方案,在 Android O 以上版本你可以使用 PixelCopy.\n// 共享元素过渡 (shared element transition)(OMR1已修复)\n public void disPlayImagedisallowHardwareConfig(Fragment fragment, String url, ImageView imageView);\n public void disPlayImagedisallowHardwareConfig(Activity activity, String url, ImageView imageView);\n public void disPlayImagedisallowHardwareConfig(Context context, String url, ImageView imageView);\n\n //监听图片的下载进度,是否完成,百分比 也可以加载本地图片,扩张一下\n public void disPlayImageProgress(Context context, String url, ImageView imageView, int placeholderResId, int errorResId, OnGlideImageViewListener listener);\n public void disPlayImageProgress(Activity activity, String url, ImageView imageView, int placeholderResId, int errorResId, OnGlideImageViewListener listener);\n public void disPlayImageProgress(Fragment fragment, String url, ImageView imageView, int placeholderResId, int errorResId, OnGlideImageViewListener listener);\n\n public void disPlayImageProgressByOnProgressListener(Context context, String url, ImageView imageView, int placeholderResId, int errorResId, OnProgressListener onProgressListener);\n public void disPlayImageProgressByOnProgressListener(Activity activity, String url, ImageView imageView, int placeholderResId, int errorResId, OnProgressListener onProgressListener);\n public void disPlayImageProgressByOnProgressListener(Fragment fragment, String url, ImageView imageView, int placeholderResId, int errorResId, OnProgressListener onProgressListener);\n\n\n\n// TransitionOptions 用于给一个特定的请求指定过渡。\n// 每个请求可以使用 RequestBuilder 中的 transition()\n// 方法来设定 TransitionOptions 。还可以通过使用\n// BitmapTransitionOptions 或 DrawableTransitionOptions\n// 来指定类型特定的过渡动画。对于 Bitmap 和 Drawable\n// 之外的资源类型,可以使用 GenericTransitionOptions。 Glide v4 将不会默认应用交叉淡入或任何其他的过渡效果。每个请求必须手动应用过渡。\n public void displayImageByTransition(Context context, String url, TransitionOptions transitionOptions, ImageView imageView);\n public void displayImageByTransition(Activity activity, String url, TransitionOptions transitionOptions, ImageView imageView);\n public void displayImageByTransition(Fragment fragment, String url, TransitionOptions transitionOptions, ImageView imageView);\n\n //失去焦点,建议实际的项目中少用,取消求情\n public void glidePauseRequests(Context context);\n public void glidePauseRequests(Activity activity);\n public void glidePauseRequests(Fragment fragment);\n\n //获取焦点,建议实际的项目中少用\n public void glideResumeRequests(Context context);\n public void glideResumeRequests(Activity activity);\n public void glideResumeRequests(Fragment fragment);\n //加载缩图图 int thumbnailSize = 10;//越小,图片越小,低网络的情况,图片越小\n //GlideApp.with(this).load(urlnoData).override(thumbnailSize))// API 来强制 Glide 在缩略图请求中加载一个低分辨率图像\n public void displayImageThumbnail(Context context, String url, String backUrl, int thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Activity activity, String url, String backUrl, int thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Fragment fragment, String url, String backUrl, int thumbnailSize, ImageView imageView);\n //如果没有两个url的话,也想,记载一个缩略图\n public void displayImageThumbnail(Fragment fragment, String url, float thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Activity activity, String url, float thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Context context, String url, float thumbnailSize, ImageView imageView);\n}",
"public ImcacheCacheManager() {\n this(CacheBuilder.heapCache());\n }",
"public void getImage(final String url, final GetImageListener listener) {\n String localFileName = getLocalImageFileName(url);\n final Bitmap image = loadImageFromFile(localFileName);\n if (image == null) { //if image not found - try downloading it from parse\n firebaseModel.getImage(url, new GetImageListener() {\n @Override\n public void onComplete(String url) {\n //2. save the image localy\n String localFileName = getLocalImageFileName(url);\n //Log.d(\"TAG\",\"save image to cache: \" + localFileName);\n saveImageToFile(image,localFileName);\n //3. return the image using the listener\n listener.onComplete(image.toString());\n }\n\n @Override\n public void fail() {\n listener.fail();\n }\n });\n }else {\n //Log.d(\"TAG\",\"OK reading cache image: \" + localFileName);\n listener.onComplete(image.toString());\n }}",
"private void setUpImageLoader() {\n\t\tfinal DisplayMetrics displayMetrics = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n\t\tfinal int height = displayMetrics.heightPixels;\n\t\tfinal int width = displayMetrics.widthPixels;\n\n\t\t// For this sample we'll use half of the longest width to resize our images. As the\n\t\t// image scaling ensures the image is larger than this, we should be left with a\n\t\t// resolution that is appropriate for both portrait and landscape. For best image quality\n\t\t// we shouldn't divide by 2, but this will use more memory and require a larger memory\n\t\t// cache.\n\t\tfinal int longest = (height > width ? height : width) / 4;\n\n\t\tImageCache.ImageCacheParams cacheParams =\n\t\t\t\tnew ImageCache.ImageCacheParams(this, IMAGE_CACHE_DIR);\n\t\tcacheParams.setMemCacheSizePercent(0.25f); // Set memory cache to 25% of app memory\n\n\t\timageResizer = new ImageResizer(this, longest);\n\t\timageResizer.addImageCache(getSupportFragmentManager(), cacheParams);\n\t\timageResizer.setImageFadeIn(true);\n\t}",
"public void loadTo(String url, ImageView imageView) {\n relationsMap.put(imageView, url);\n\n // If image already cached just show it\n Bitmap bitmap = memoryCache.getData(url);\n if (bitmap != null) {\n Log.d(\"HIHO\", \"bitmap from memory\");\n imageView.setImageBitmap(bitmap);\n } else {\n loadAndDisplay(url, imageView);\n }\n }",
"public void loadImageToImageView(MyViewHolder holder, int position) {\n String imageUrl = listOfArticles.get(position).getImage().getImageUrl();\n if (getBitmapFromMemCache(imageUrl) != null) {\n holder.imageView.setImageBitmap(mLruCache.get(imageUrl));\n }\n }",
"private boolean imageViewReused(LoadDataHolder loadDataHolder) {\n String url = relationsMap.get(loadDataHolder.getImageView());\n // Check is url exist in relationsMap and equals to url from holder\n return url == null || !url.equals(loadDataHolder.getUrl());\n }",
"public void getBitmapFromCache(String key, String url, ImageView imgView,\n\t\t\tImageDownloader imageDownloader, boolean notify) {\n\t\tSoftReference<Bitmap> bitmapReference = null;\n\t\tif (softCache != null && key != null)\n\t\t\tbitmapReference = softCache.get(key);\n\n\t\tif (bitmapReference != null) {\n\t\t\tBitmap bitmap = bitmapReference.get();\n\n\t\t\tif (bitmap != null) {\n\n\t\t\t\tif (imgView != null) {\n\t\t\t\t\tif (imageDownloader != null) {\n\t\t\t\t\t\timageDownloader.nullViewDrawablesRecursive(imgView);\n\t\t\t\t\t}\n\n\t\t\t\t\timgView.setImageBitmap(bitmap);\n\t\t\t\t\timgView = null;\n\t\t\t\t}\n\n\t\t\t\tbitmapReference = null;\n\t\t\t\treturn;\n\t\t\t} else {\n\n\t\t\t\t// Soft reference has been Garbage Collected\n\t\t\t\tsoftCache.remove(key);\n\t\t\t}\n\t\t}\n\n\t\tif (requestImageUrls != null && requestImageUrls.containsKey(url)) {\n\n\t\t\tif (imageDownloader.mBaseAdapter != null) {\n\n\t\t\t\tif (mBaseAdapters != null && mBaseAdapters.containsKey(url)) {\n\n\t\t\t\t\tSet<BaseAdapter> baseAdpaters = mBaseAdapters.get(url);\n\t\t\t\t\tif (imageDownloader.mBaseAdapter != null)\n\t\t\t\t\t\tbaseAdpaters.add(imageDownloader.mBaseAdapter);\n\n\t\t\t\t\tmBaseAdapters.put(url, baseAdpaters);\n\n\t\t\t\t} else {\n\n\t\t\t\t\tSet<BaseAdapter> baseAdpaters = new HashSet<BaseAdapter>();\n\t\t\t\t\tif (imageDownloader.mBaseAdapter != null)\n\t\t\t\t\t\tbaseAdpaters.add(imageDownloader.mBaseAdapter);\n\n\t\t\t\t\tmBaseAdapters.put(url, baseAdpaters);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\trequestImageUrls.remove(url);\n\t\t\trequestImageUrls.put(url, url);\n\n\t\t\tif (imageDownloader.mBaseAdapter != null) {\n\n\t\t\t\tif (mBaseAdapters != null && mBaseAdapters.containsKey(url)) {\n\n\t\t\t\t\tSet<BaseAdapter> baseAdpaters = mBaseAdapters.get(url);\n\t\t\t\t\tif (imageDownloader.mBaseAdapter != null)\n\t\t\t\t\t\tbaseAdpaters.add(imageDownloader.mBaseAdapter);\n\n\t\t\t\t\tmBaseAdapters.put(url, baseAdpaters);\n\n\t\t\t\t} else {\n\n\t\t\t\t\tSet<BaseAdapter> baseAdpaters = new HashSet<BaseAdapter>();\n\t\t\t\t\tif (imageDownloader.mBaseAdapter != null)\n\t\t\t\t\t\tbaseAdpaters.add(imageDownloader.mBaseAdapter);\n\n\t\t\t\t\tmBaseAdapters.put(url, baseAdpaters);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tPlayUpActivity.executorPool.execute(new DownloadThread(imgView,\n\t\t\t\t\t\tkey, url, imageDownloader, false, notify));\n\t\t\t} catch (RejectedExecutionException e) {\n\t\t\t\t//Logs.show(e);\n\t\t\t}\n\n\t\t}\n\n\t}",
"@Override\n\t\tprotected Bitmap doInBackground(Integer... params) {\n\t\t\tBitmap bitmap = null;\n\t\t\tthis.url = mList.get(params[0]);\t\t\t\n\t\t\tbitmap = getBitmapFromUrl(url);\n\t\t\tImageLoaderGridViewActivity.gridviewBitmapCaches.put(mList.get(params[0]), bitmap);\t\t\t\n\t\t\treturn bitmap;\n\t\t}",
"public void saveImageCache(Integer key, Bitmap data)\n {\n synchronized(mLinkedHashMap)\n {\n if(mLinkedHashMap.get(key) == null)\n {\n try\n {\n String cacheKeyStr = String.valueOf(key);\n final String filePath = createFilePath(cacheDirectory, cacheKeyStr);\n if (writeBitmapToFile(data, filePath))\n {\n referenceAdd(key, filePath);\n flushCache();\n }\n }\n catch (IOException e)\n {\n Log.e(\"DiskLruCache\", \"Error in put: \" + e.getMessage());\n }\n }// if (mLinkedHashMap.get(key) == null)\n }// synchronized (mLinkedHashMap)\n }",
"private Stack cacheStack(String ename) {\n\t\tStack s = pkCache.get(ename);\n\t\tif (s == null) {\n\t\t\ts = new Stack();\n\t\t\tpkCache.put(ename, s);\n\t\t}\n\t\treturn s;\n\t}",
"@Override\n protected void onPreExecute() {\n imgPlaceDetail.setImageBitmap(getBitmapFromAssets(\"no_image_backdrop.png\"));\n //imgPlaceDetail.setImageResource(R.drawable.no_image_backdrop);\n //imgPlaceDetail.invalidate();\n\n }",
"@Override\n\tprotected String getCacheName() {\n\t\treturn null;\n\t}",
"private Bitmap loadBitmap(String uri, int reqWidth, int reqHeight) {\n Bitmap bitmap = null;\n try {\n bitmap = ImageLoader.getImageDiskLruCache(mContext).get(uri, reqWidth, reqHeight);\n if (bitmap != null) {\n\n ImageLoader.getImageLruCache().put(MD5Utils.hashKeyFromUrl(uri), bitmap);\n return bitmap;\n } else {\n bitmap = loadBitmapFromHttp(uri, reqWidth, reqHeight);\n if (bitmap != null) {\n }\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (bitmap == null && !mIsDiskLruCacheCreated) {\n bitmap = NetworkUtils.downloadBitmapFromUrl(uri);\n }\n return bitmap;\n }",
"@Override\n public void applyOptions(Context context, GlideBuilder builder) {\n builder.setDecodeFormat(DecodeFormat.PREFER_RGB_565);\n builder.setDiskCache(new DiskLruCacheFactory(Environment.getExternalStorageDirectory()\n .getAbsolutePath(), \"jake/cache/.image\", DISK_CACHE_SIZE));\n // builder.setDiskCache(new DiskLruCacheFactory(\n // Environment.getExternalStorageDirectory().getAbsolutePath(),\"jake/cache/.image\",DISK_CACHE_SIZE));\n // builder.setDiskCacheService(new FifoPriorityThreadPoolExecutor(10));\n // builder.setResizeService(new FifoPriorityThreadPoolExecutor(3));\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\ttry {\n\t\t\tFile httpCacheDir = new File(getActivity().getCacheDir(), \"http\");\n\t\t\tlong httpCacheSize = 10 * 1024 * 1024;\n\t\t\tHttpResponseCache.install(httpCacheDir, httpCacheSize);\n\t\t} catch (IOException e) {\n\t\t\tLog.i(TAG, \"HTTP response cache installation failed:\" + e);\n\t\t}\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"@Override\n public void onSnapshotReady(Bitmap arg0) {\n mIsMapStatic = true;\n\n // Creating an imageview with the snapshot\n ImageView imageView = new ImageView(getActivity());\n imageView.setLayoutParams(new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,\n LayoutParams.WRAP_CONTENT));\n imageView.setImageBitmap(arg0);\n\n // Removing all the views (dynamic map) and adding the imageview\n assert getView() != null;\n ((ViewGroup) getView()).removeAllViews();\n ((ViewGroup) getView()).addView(imageView);\n\n mMapDataLoader.onMapCameraChange();\n }",
"@Override\n protected Bitmap doInBackground(Void... arg0) {\n try {\n return bitmapLoader.load(getApplicationContext(), new int[]{metrics.widthPixels, metrics.heightPixels}, strImageUrl);\n } catch (Exception e) {\n return null;\n }\n }",
"private <K extends Resource> K addToCache(K res, String uri) {\n\t\tif (res == null)\n\t\t\tnegCache.put(uri, null);\n\t\treturn res;\n\t}",
"public synchronized void setPictureFromCache(final int width, final int height) {\n Runnable run = new Runnable() {\n @Override\n public void run() {\n File file = new File(context.getExternalFilesDir(null), pictureName);\n if (file != null) {\n Bitmap myBitmap = BitmapFactory.decodeFile(file.getAbsolutePath());\n if (imageView != null) {\n //imageView.setImageDrawable(new BitmapDrawable(null, myBitmap));\n new ResizeImage(imageView, file.getAbsolutePath()).setImageView(width, height);\n }\n }\n }\n };\n new Handler(context.getMainLooper()).post(run);\n }",
"@Override\n protected Bitmap doInBackground(Integer... params) {\n data = params[0];\n final Bitmap bitmap = decodeSampledBitmapFromResource(\n mContext.getResources(), data, 100, 100);\n addBitmapToMemoryCache(String.valueOf(params[0]), bitmap);\n return bitmap;\n }",
"public ArticleListAdapter(LruCache<String, Bitmap> cache) {\n this.mLruCache = cache;\n }",
"public Bitmap get(String url) {\n if(url!=null){\n synchronized (mBitmapCache) {\n\n // Get the image from the cache\n final Bitmap bitmap = mBitmapCache.get(url);\n\n // Check if the bitmap is in the cache\n if (bitmap != null) {\n return bitmap;\n }\n }\n }\n\n return null;\n }",
"private Bitmap downloadBitmap(String url) {\n \tFile bufferFolder = new File(MainActivity.image_cache_dir);\n\t\tif(!bufferFolder.exists()) bufferFolder.mkdirs();\n \t//If it is in the local file, get it from there.\n \tFile imageFile = new File(MainActivity.image_cache_dir + getFileName(url));\n\t\tif(imageFile.exists()) {\n\t\t\tSystem.out.println(\"get image from \" + imageFile.getAbsolutePath());\n\t\t\treturn BitmapFactory.decodeFile(imageFile.getAbsolutePath());\t\t\t\t\t\t\n\t\t}else{\n\t\t\tSystem.out.println(\"image \" + imageFile.getAbsolutePath() + \" doesn't exist!\");\n\t\t}\n \n \tfinal int IO_BUFFER_SIZE = 4 * 1024;\n\n // AndroidHttpClient is not allowed to be used from the main thread\n// final HttpClient client = (mode == Mode.NO_ASYNC_TASK) ? new DefaultHttpClient() :\n// AndroidHttpClient.newInstance(\"Android\");\n// final HttpGet getRequest = new HttpGet(url);\n HttpClient client = new DefaultHttpClient();\n HttpGet getRequest = new HttpGet(url);\n try {\n HttpResponse response = client.execute(getRequest);\n final int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode != HttpStatus.SC_OK) {\n Log.w(\"ImageDownloader\", \"Error \" + statusCode +\n \" while retrieving bitmap from \" + url);\n return null;\n }else{\n \tLog.w(\"ImageDownloader\", \"HttpStatus.SC_OK \" + statusCode +\n \" while retrieving bitmap from \" + url);\n }\n\n final HttpEntity entity = response.getEntity();\n if (entity != null) {\n InputStream inputStream = null;\n try {\n inputStream = entity.getContent();\n // return BitmapFactory.decodeStream(inputStream);\n // Bug on slow connections, fixed in future release.\n \n FlushedInputStream flushedInputStream = new FlushedInputStream(inputStream);\n // Need to be fixed: Save the loaded picture directly and transfer into bitmap then.\n FileOutputStream fout = null;\n \t\ttry {\n \t\t\t\tfout = new FileOutputStream(imageFile);\t\t\t\t\n \t\t\t\t /*\n * Read bytes to the Buffer until there is nothing more to read(-1).\n */\n \t\t\t\tByteArrayBuffer baf = new ByteArrayBuffer(512);\n int current = 0;\n while ((current = flushedInputStream.read()) != -1) {\n baf.append((byte) current);\n }\n fout.write(baf.toByteArray()); \n \t\t\t\t//System.out.println(\"bitmap.compress \" + imageFile.getAbsolutePath());\n \t\t} catch (FileNotFoundException e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\te.printStackTrace();\n \t\t\t}finally{\n \t\t\t\tif(fout != null){\n \t\t\t\t\ttry {\n \t\t\t\t\t\tfout.flush();\n \t\t\t\t\t\tfout.close();\n \t\t\t\t\t} catch (IOException e) {\t\t\t\t\t\t\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t}\t\t\t\t\t\n \t\t\t\t}\t \n \t\t\t} \t\t \n //return BitmapFactory.decodeStream(flushedInputStream);\n \t\t\treturn BitmapFactory.decodeFile(imageFile.getAbsolutePath());\n } finally {\n if (inputStream != null) {\n inputStream.close();\n }\n entity.consumeContent();\n }\n }\n } catch (IOException e) {\n getRequest.abort();\n Log.w(LOG_TAG, \"I/O error while retrieving bitmap from \" + url, e);\n } catch (IllegalStateException e) {\n getRequest.abort();\n Log.w(LOG_TAG, \"Incorrect URL: \" + url);\n } catch (Exception e) {\n getRequest.abort();\n Log.w(LOG_TAG, \"Error while retrieving bitmap from \" + url, e);\n } finally {\n if ((client instanceof AndroidHttpClient)) {\n ((AndroidHttpClient) client).close();\n }\n }\n return null;\n }",
"private void storeImage(Boolean hasImage){\n if (hasImage) {\r\n RequestQueue queue = Volley.newRequestQueue(getBaseContext());\r\n final String command = getString(R.string.server_address) + \"/\" + getString(R.string.get_image_server)\r\n + \"username=\" + username;\r\n// Request a string response from the provided URL.\r\n StringRequest stringRequest = new StringRequest(Request.Method.GET, command,\r\n new Response.Listener<String>() {\r\n @Override\r\n public void onResponse(String response) {\r\n // Display the first 500 characters of the response string.\r\n //Log.d(\"ddd\", \"command :\" + command);\r\n //Log.d(\"ddd\", \"writing :\" + response);\r\n loadImageInGUI(response);\r\n Utility.writeOnPreferences(activity, \"image\", response);\r\n Utility.reloadActivity(activity);\r\n\r\n }\r\n }, new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError error) {\r\n //Log.d(\"aaa\", error.toString());\r\n }\r\n\r\n });\r\n\r\n// Add the request to the RequestQueue.\r\n queue.add(stringRequest);\r\n }\r\n }",
"public void init() {\n\t\tif (cache != null) {\n\t\t\tcache.dispose();\n\t\t\tcache = null;\n\t\t}\n\t\tcache = cacheFactory.create(CacheFactoryDirective.NoDCE, \"test\");\n\t}"
] | [
"0.7423115",
"0.66353047",
"0.66269124",
"0.6527049",
"0.64503986",
"0.6422067",
"0.6398751",
"0.63531715",
"0.63327247",
"0.6328142",
"0.63157374",
"0.63098836",
"0.62888104",
"0.62873703",
"0.6271446",
"0.6248368",
"0.62177545",
"0.6117458",
"0.60816485",
"0.604662",
"0.603973",
"0.603006",
"0.60275906",
"0.6008274",
"0.59916425",
"0.59397805",
"0.59093356",
"0.5905585",
"0.5862427",
"0.5858568",
"0.5844157",
"0.58324116",
"0.5831847",
"0.5799771",
"0.57834685",
"0.57816124",
"0.57671326",
"0.5724318",
"0.57193553",
"0.56804425",
"0.564933",
"0.564837",
"0.56401753",
"0.5632706",
"0.5631824",
"0.5625861",
"0.56197417",
"0.56165755",
"0.56092185",
"0.55986524",
"0.55911803",
"0.55796",
"0.5570984",
"0.5570947",
"0.5553715",
"0.55461025",
"0.5536715",
"0.5534907",
"0.5521968",
"0.5517082",
"0.5516934",
"0.55113214",
"0.5501604",
"0.54988843",
"0.5487983",
"0.54765385",
"0.5472651",
"0.5463652",
"0.5453366",
"0.54524505",
"0.5450152",
"0.54486996",
"0.5442894",
"0.54394025",
"0.5420814",
"0.5417568",
"0.5414536",
"0.54063153",
"0.5403169",
"0.53941554",
"0.53873926",
"0.537094",
"0.53669953",
"0.5365069",
"0.5364604",
"0.5361957",
"0.53530335",
"0.5348239",
"0.53414655",
"0.53405607",
"0.5333185",
"0.5326645",
"0.5320568",
"0.53203493",
"0.5316729",
"0.5312659",
"0.5311522",
"0.53096473",
"0.5308908",
"0.5308189",
"0.52938485"
] | 0.0 | -1 |
Adds a bitmap to both memory cache. | public void addBitmapToMemCache(String data, Bitmap value) {
if (data == null || value == null) {
return;
}
if (getBitmapFromMemCache(data) == null) {
mMemoryCache.put(data, value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addBitmapToCache(String url, Bitmap bitmap) {\n if (bitmap != null) {\n synchronized (sHardBitmapCache) {\n sHardBitmapCache.put(url, bitmap);\n }\n }\n }",
"private void addBitmapToLruCache(String path, Bitmap bm) {\r\n if (getBitmapFromLruCache(path)==null){\r\n if (bm!=null){\r\n mLruCache.put(path,bm);\r\n }\r\n }\r\n }",
"@Override\n\t\t\tpublic void putBitmap(String url, Bitmap bitmap) {\n\t\t\t\tcache.put(url, bitmap);\n\t\t\t}",
"private void addEntry(final String url, final Bitmap bitmap){\n\n if(url == null || bitmap == null){\n return;\n }\n\n synchronized (mBitmapCache) {\n if(mBitmapCache.get(url) == null){\n mBitmapCache.put(url, bitmap);\n }\n }\n }",
"public void addBitmapToSoftCache(final String id, final Bitmap bitmap) {\n\n\t\ttry {\n\n\t\t\tif (bitmap != null) {\n\n\t\t\t\tif (id == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tsoftCache.put(id, new SoftReference<Bitmap>(bitmap));\n\t\t\t\tString cachePath = null;\n\t\t\t\tif (Constants.CACHE_DIR_PATH.endsWith(\"/\")) {\n\t\t\t\t\tcachePath = Constants.CACHE_DIR_PATH + id;\n\t\t\t\t} else {\n\t\t\t\t\tcachePath = Constants.CACHE_DIR_PATH + \"/\" + id;\n\t\t\t\t}\n\n\t\t\t\tif (!(new File(cachePath)).exists()) {\n\t\t\t\t\tcachePath = null;\n\t\t\t\t\tputInCache(id, bitmap);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\n\t\t//\tLogs.show(e);\n\n\t\t} catch (Error e) {\n\n\t\t//\tLogs.show(e);\n\n\t\t}\n\n\t}",
"private void addCecha(String url, Bitmap bitmap) {\n\t\tif (getCechaFromUrl(url) == null) {\r\n\r\n\t\t\tmLruCache.put(url, bitmap);\r\n\t\t}\r\n\t}",
"public interface BitmapCache {\n void put(BitmapRequest bitmapRequest, Bitmap bitmap);\n\n Bitmap get(BitmapRequest bitmapRequest);\n\n boolean remove(BitmapRequest bitmapRequest);\n\n void clear();\n}",
"private Bitmap getBitmapFromMemCache(String key) {\n return mLruCache.get(key);\n }",
"private static void addInBitmapOptions(BitmapFactory.Options options,\n\t\t\tCxBaseDiskCache cache) {\n\t\toptions.inMutable = true;\n\n\t\tif (cache != null) {\n\t\t\t// Try and find a bitmap to use for inBitmap\n\t\t\tBitmap inBitmap = cache.getBitmapFromReusableSet(options, cache);\n\n\t\t\tif (inBitmap != null) {\n\t\t\t\toptions.inBitmap = inBitmap;\n\t\t\t}\n\t\t}\n\t}",
"private static void putInCache(final String key, final Bitmap bitmap) {\n\n\t\tBufferedOutputStream output = null;\n\n\t\ttry {\n\n\t\t\t// trying to get the desired file form cache directory.\n\t\t\tFile cacheFile = null;\n\t\t\tif (Constants.CACHE_DIR_PATH.endsWith(\"/\")) {\n\t\t\t\tcacheFile = new File(Constants.CACHE_DIR_PATH + key);\n\t\t\t} else {\n\t\t\t\tcacheFile = new File(Constants.CACHE_DIR_PATH + \"/\" + key);\n\t\t\t}\n\t\t\t// no need to save the file if already exists. so return\n\t\t\tif (cacheFile.exists())\n\t\t\t\treturn;\n\n\t\t\t// copies the bitmap data into the file in cache directory.\n\t\t\toutput = new BufferedOutputStream(new FileOutputStream(cacheFile),\n\t\t\t\t\tBUFFER_SIZE);\n\t\t\tbitmap.compress(Bitmap.CompressFormat.PNG, 100, output);\n\n\t\t\tcacheFile = null;\n\n\t\t\tFile weededOut = getWeededOut();\n\n\t\t\tif (weededOut != null) {\n\n\t\t\t\tweededOut.delete();\n\t\t\t}\n\t\t\tweededOut = null;\n\n\t\t} catch (FileNotFoundException e) {\n\n\t\t} finally {\n\t\t\tif (output == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\toutput.close();\n\t\t\t\toutput = null;\n\t\t\t} catch (IOException e) {\n\n\t\t\t}\n\t\t}\n\n\t}",
"@Beta\npublic interface BitmapMemoryCache<K> extends MemoryCache<K, Bitmap> {\n\n /**\n * Default maximum percentage of the application memory to use when configuring a bitmap memory\n * cache.\n */\n public static final float DEFAULT_MAX_MEMORY_PERCENTAGE = 10f;\n\n}",
"@Override\n\tpublic Bitmap fetch(String key) {\n\t\treturn (Bitmap) mMemoryCache.get(key);\n\t}",
"public static Bitmap combineBitmap(Bitmap background, Bitmap foreground) {\n if (background == null) {\n return null;\n }\n int bgWidth = background.getWidth();\n int bgHeight = background.getHeight();\n int fgWidth = foreground.getWidth();\n int fgHeight = foreground.getHeight();\n Bitmap newmap = Bitmap.createBitmap(bgWidth, bgHeight, Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(newmap);\n canvas.drawBitmap(background, 0, 0, null);\n canvas.drawBitmap(foreground, (bgWidth - fgWidth) / 2, (bgHeight - fgHeight) / 2, null);\n canvas.save();\n canvas.restore();\n return newmap;\n }",
"public void saveImageCache(Integer key, Bitmap data)\n {\n synchronized(mLinkedHashMap)\n {\n if(mLinkedHashMap.get(key) == null)\n {\n try\n {\n String cacheKeyStr = String.valueOf(key);\n final String filePath = createFilePath(cacheDirectory, cacheKeyStr);\n if (writeBitmapToFile(data, filePath))\n {\n referenceAdd(key, filePath);\n flushCache();\n }\n }\n catch (IOException e)\n {\n Log.e(\"DiskLruCache\", \"Error in put: \" + e.getMessage());\n }\n }// if (mLinkedHashMap.get(key) == null)\n }// synchronized (mLinkedHashMap)\n }",
"public void addToCache () {\n ArrayList <Location> gridCache = getGridCache();\n for (Location l : imageLocs) {\n gridCache.add (l);\n }\n }",
"private Bitmap getBitmapFromLruCache(String key) {\r\n return mLruCache.get(key);\r\n }",
"void setNextBitmap( Bitmap bitmap, boolean update, Matrix matrix ) {\n\t\tlogger.log( \"setNextBitmap\", bitmap, update, matrix );\n\n\t\tif ( null != mBitmapChangeListener ) mBitmapChangeListener.onBitmapChange( bitmap, update, matrix );\n\n\t\tif ( !mBitmap.equals( bitmap ) ) {\n\t\t\tlogger.warning( \"[recycle] original Bitmap: \" + mBitmap );\n\t\t\tmBitmap.recycle();\n\t\t\tmBitmap = null;\n\t\t}\n\t\tmBitmap = bitmap;\n\t}",
"@WorkerThread @UiThread\n public void setBitmap(String url, Bitmap bitmap) {\n synchronized (this) {\n this.bitmaps.put(url, bitmap);\n }\n\n // Tell all registered views that a bitmap changed\n notifyViews(Event.BITMAP_CHANGED);\n }",
"public void put(@NonNull final String key, final Bitmap value) {\n put(key, value, -1);\n }",
"public interface ImageCache {\n public Bitmap get(String url);\n public void put(String url,Bitmap bitmap);\n}",
"@Override\n\t\t\tpublic Bitmap getBitmap(String url) {\n\t\t\t\treturn cache.get(url);\n\t\t\t}",
"@WorkerThread @UiThread\n public void setBitmapsLowRes(String url, Bitmap bitmap) {\n synchronized (this) {\n this.bitmapsLowRes.put(url, bitmap);\n }\n\n // Tell all registered views that a bitmap changed\n notifyViews(Event.BITMAP_LOWRES_CHANGED);\n }",
"public interface ImageCache {\r\n\tpublic Bitmap getBitmap(String url);\r\n\r\n\tpublic void putBitmap(String url, Bitmap bitmap);\r\n\r\n\tpublic void clear();\r\n}",
"public void setBitmap(Bitmap bitmap) {\n\t\t\n\t}",
"Bitmap m7900a(Bitmap bitmap);",
"@Override\n public void postResult(long taskId, Bitmap value) {\n\n// boolean isTop;\n// //This is check for initial case when both topKey and bottomKey will be null\n// //if either of them is null\n// if(mCache.getTopKey() == null || mCache.getBottomKey() == null){\n// isTop = false;\n// } else {\n// isTop = insertOntop(mCache.getTopKey(), (K)key, mCache.getBottomKey());\n// }\n// if(isTop){\n// mCache.addtoTop((K)key, (V)value);\n// } else {\n// mCache.addtoBottom((K)key, (V)value);\n// }\n\n //TODO: Now the value is added to the cache and it is available for retrieval from the imageListadapter\n // We can notify to the listAdapter\n\n\n }",
"void setNextBitmap( Bitmap bitmap, boolean update ) {\n\t\tsetNextBitmap( bitmap, update, null );\n\t}",
"void setNextBitmap( Bitmap bitmap ) {\n\t\tsetNextBitmap( bitmap, true );\n\t}",
"void mo12205a(Bitmap bitmap);",
"public void mo8098a(Bitmap bitmap, Bitmap bitmap2) {\n if (bitmap2 != null) {\n C2342x.m9083a((View) this, (Drawable) new BitmapDrawable(getContext().getResources(), bitmap2));\n } else {\n C2342x.m9082a((View) this, 0);\n }\n if (bitmap != null) {\n this.f6228b = bitmap.getWidth();\n this.f6229c = bitmap.getHeight();\n this.f6227a.setImageBitmap(Bitmap.createBitmap(bitmap));\n return;\n }\n this.f6227a.setImageDrawable(null);\n }",
"protected final void addCache(Cache cache)\r\n/* 33: */ {\r\n/* 34:59 */ this.cacheMap.put(cache.getName(), cache);\r\n/* 35:60 */ this.cacheNames.add(cache.getName());\r\n/* 36: */ }",
"public Texture add(int bitmapAssetPathID) {\n\n Bitmap bitmap = null;\n try {\n bitmap = BitmapFactory.decodeStream(this.getActivity().getAssets().open(\n this.getActivity().getString(bitmapAssetPathID)));\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n Texture texture = new Texture();\n texture.setWidth(bitmap.getWidth());\n texture.setHeight(bitmap.getHeight());\n texture.setRessourceId(bitmapAssetPathID);\n\n this.getTextureList().add(texture);\n return texture;\n }",
"public void addToImageCache(String name, Stack<ColorImage> img) {\n imageCache.put(name, img);\n }",
"private Bitmap loadBitmap(String uri, int reqWidth, int reqHeight) {\n Bitmap bitmap = null;\n try {\n bitmap = ImageLoader.getImageDiskLruCache(mContext).get(uri, reqWidth, reqHeight);\n if (bitmap != null) {\n\n ImageLoader.getImageLruCache().put(MD5Utils.hashKeyFromUrl(uri), bitmap);\n return bitmap;\n } else {\n bitmap = loadBitmapFromHttp(uri, reqWidth, reqHeight);\n if (bitmap != null) {\n }\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (bitmap == null && !mIsDiskLruCacheCreated) {\n bitmap = NetworkUtils.downloadBitmapFromUrl(uri);\n }\n return bitmap;\n }",
"public interface IBitmapCacheHandler {\n /**\n * Attempts to save given bitmap with given id to cache\n * Returns true if successful, false otherwise\n */\n boolean save(String id, Bitmap bitmap);\n\n /**\n * Attempts to load bitmap from cache according to its id\n * Returns bitmap if successful, null otherwise\n */\n Bitmap load(String id);\n\n /**\n * Clears all data\n * Returns true if successful, false otherwise\n */\n boolean clear();\n\n /**\n * Sets given handler as next\n */\n void setNext(IBitmapCacheHandler next);\n}",
"public void drawBitmap(Bitmap cache, float f, float g, Paint cachePaint) {\n\t\t\n\t}",
"public void addToMemoryCache(String fileUrl, Object tag, Object data) {\r\n cache.put(fileUrl, new CacheItem(tag, data));\r\n Log.d(TAG, \"new cache size: \" + cache.size());\r\n }",
"public BitmapMemoryCache() {\r\n //use 25% of available heap size\r\n setLimit(Runtime.getRuntime().maxMemory() / 4);\r\n }",
"private void init() {\n mMemoryCache = new LruCache<String, Bitmap>(DEFAULT_MEM_CACHE_SIZE) {\n /**\n * Measure item size in kilobytes rather than units which is more\n * practical for a bitmap cache\n */\n @Override\n protected int sizeOf(String key, Bitmap bitmap) {\n final int bitmapSize = getBitmapSize(bitmap) / 1024;\n return bitmapSize == 0 ? 1 : bitmapSize;\n }\n };\n }",
"@Override\n protected void onPostExecute(Bitmap bitmap) {\n if (isCancelled()) {\n bitmap = null;\n }\n\n // Add bitmap to cache\n if (bitmap != null) {\n synchronized (sHardBitmapCache) {\n sHardBitmapCache.put(resourceId, bitmap);\n }\n }\n\n if (imageViewReference != null) {\n ImageView imageView = imageViewReference.get();\n BitmapDownloaderTask bitmapDownloaderTask = getBitmapDownloaderTask(imageView);\n // Change bitmap only if this process is still associated with it\n if (this == bitmapDownloaderTask) {\n imageView.setImageBitmap(bitmap);\n }\n }\n }",
"@Override\n\t\t\t\tpublic Bitmap onPreSetBitmap(ImageView imageView, Bitmap loadedBitmap, String url, boolean loadedFromCache) {\n\t\t\t\t\treturn loadedBitmap;\n\t\t\t\t}",
"public abstract void setUpBitmap(Context context);",
"private static Bitmap addBitmapToFace(Bitmap backgroundBitmap, Bitmap emojiBitmap, Face face) {\n Bitmap resultBitmap = Bitmap.createBitmap(backgroundBitmap.getWidth(),\n backgroundBitmap.getHeight(), backgroundBitmap.getConfig());\n\n // Scale the emoji so it looks better on the face\n float scaleFactor = EMOJI_SCALE_FACTOR;\n\n // Determine the size of the emoji to match the width of the face and preserve aspect ratio\n int newEmojiWidth = (int) (face.getWidth() * scaleFactor);\n int newEmojiHeight = (int) (emojiBitmap.getHeight() *\n newEmojiWidth / emojiBitmap.getWidth() * scaleFactor);\n\n\n // Scale the emoji\n emojiBitmap = Bitmap.createScaledBitmap(emojiBitmap, newEmojiWidth, newEmojiHeight, false);\n\n // Determine the emoji position so it best lines up with the face\n float emojiPositionX =\n (face.getPosition().x + face.getWidth() / 2) - emojiBitmap.getWidth() / 2;\n float emojiPositionY =\n (face.getPosition().y + face.getHeight() / 2) - emojiBitmap.getHeight() / 3;\n\n // Create the canvas and draw the bitmaps to it\n Canvas canvas = new Canvas(resultBitmap);\n canvas.drawBitmap(backgroundBitmap, 0, 0, null);\n canvas.drawBitmap(emojiBitmap, emojiPositionX, emojiPositionY, null);\n\n return resultBitmap;\n }",
"public interface OnBitmapLoad {\n void bitmap(Bitmap bitmap);\n}",
"public void showbitmap2() {\n \t\tImageView i = (ImageView)findViewById(R.id.frame2);\n \t\ti.setImageBitmap(mBitmap2);\n \t}",
"public boolean equals(Bitmap bitmap1, Bitmap bitmap2) {\n ByteBuffer buffer1 = ByteBuffer.allocate(bitmap1.getHeight() * bitmap1.getRowBytes());\n bitmap1.copyPixelsToBuffer(buffer1);\n\n ByteBuffer buffer2 = ByteBuffer.allocate(bitmap2.getHeight() * bitmap2.getRowBytes());\n bitmap2.copyPixelsToBuffer(buffer2);\n\n return Arrays.equals(buffer1.array(), buffer2.array());\n }",
"public void put(@NonNull final String key, final Bitmap value, final int saveTime) {\n realPutBytes(TYPE_BITMAP + key, bitmap2Bytes(value), saveTime);\n }",
"public Bitmap mo8554a(BitmapPool bitmapPool, Bitmap bitmap, int i, int i2) {\n float f;\n C12932j.m33818b(bitmapPool, \"pool\");\n C12932j.m33818b(bitmap, \"srcBmp\");\n Bitmap bitmap2 = bitmapPool.get(i, i2, bitmap.getConfig());\n C12932j.m33815a((Object) bitmap2, \"pool.get(outWidth, outHeight, srcBmp.config)\");\n Matrix matrix = new Matrix();\n int i3 = this.f7488e;\n float f2 = (float) i;\n float f3 = (float) i2;\n matrix.setScale(1.0f - ((((float) i3) * 2.0f) / f2), 1.0f - ((((float) i3) * 2.0f) / f3), f2 / 2.0f, f3 / 2.0f);\n C1334a aVar = this.f7487d;\n if (aVar instanceof C1336b) {\n f = ((C1336b) aVar).mo6551b() * ((float) Math.min(i, i2));\n } else if (aVar instanceof C1335a) {\n f = ((C1335a) aVar).mo6547b();\n } else {\n throw new NoWhenBranchMatchedException();\n }\n C7780a aVar2 = new C7780a();\n aVar2.mo19991c(0.0f);\n aVar2.mo19994e(0.0f);\n aVar2.mo19993d(f2);\n aVar2.mo19985a(f3);\n aVar2.mo19989b(f);\n Path a = C7780a.m18885a(aVar2, null, 1, null);\n Canvas canvas = new Canvas(bitmap2);\n canvas.drawPath(a, this.f7485b);\n canvas.drawBitmap(bitmap, matrix, this.f7486c);\n return bitmap2;\n }",
"void setImage(Bitmap bitmap);",
"int add(int pgNum, int clock, char act)\r\n {\r\n int old;\r\n \r\n //If memory is not full\r\n if(pointer!=size)\r\n {\r\n pm[pointer][0] = pgNum;\r\n pm[pointer][1] = clock;\r\n pm[pointer][2] = act=='W' ? 1 : 0;\r\n pointer++;\r\n return pointer;\r\n }\r\n \r\n //If memory is full, replace LRU frame\r\n int lruID = 0;\r\n \r\n for(int i = 1; i<size; i++)\r\n if(pm[i][2]<pm[lruID][2])\r\n lruID = i;\r\n \r\n old = pm[lruID][0];\r\n pm[lruID][0] = pgNum;\r\n pm[lruID][1] = clock;\r\n pm[lruID][2] = act=='W' ? 1 : 0;\r\n \r\n return old;\r\n }",
"public void loadFromSavedBitmap() {\n if (bitmap != null) {\n // genera un nuovo puntatore ad una texture\n GLES20.glGenTextures(1, texture, 0);\n // lega questo puntatore ad una variabile disponibile all'app\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texture[0]);\n\n // setta alcuni parametri che diranno a OpenGL come trattare la texture\n GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n // caricamento della texture\n GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);\n // libera memoria\n bitmap.recycle();\n }\n resourcesLoaded++;\n\n MyGLRenderer.checkGlError(\"loadFromSavedBitmap\");\n }",
"@Override\r\n public void add(IMObject object) {\r\n cache.add(object);\r\n }",
"public Bitmap getBitmapFromMemCache(String data) {\n Bitmap memValue = null;\n\n memValue = mMemoryCache.get(data);\n\n if (BuildConfig.DEBUG && memValue != null) {\n Log.d(TAG, \"Memory cache hit\");\n }\n\n return memValue;\n }",
"@Override\n\t\t\t\t\t\tpublic void OnLoadImage(Bitmap bitmap, String bitmapPath) {\n\t\t\t\t\t\t\tif (bitmap != null) {\n\t\t\t\t\t\t\t\timgMyresumeEditHead.setImageBitmap(bitmap);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (bitmap != null) {\n\t\t\t\t\t\t\t\t\tConstUtils.mCache.addBitmapToDiskCache(MyresumeEditActivity.this, headpic, bitmap);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"private void markBitmap(int frameNo){\n int bit = frameNo/32;\n int mask = frameNo%32;\n bitMap[bit] = bitMap[bit]|MASK[mask];\n }",
"private void saveBitmapToCacheFile(String url, Bitmap bitmap){\n \t\n \tif(bitmap != null){\n \t\tFile bufferFolder = new File(MainActivity.image_cache_dir);\n \t\tif(!bufferFolder.exists()) bufferFolder.mkdirs();\n \t\t\t\t\t\n \t\tFile imageFile = new File(MainActivity.image_cache_dir + getFileName(url));\n \t\t//System.out.println(\"saveBitmapToCacheFile \" + imageFile.getAbsolutePath());\n \t\tif(imageFile.exists()) {\n \t\t\t//If the file already exist, don't save it again.\n \t\t\treturn;\n \t\t\t//imageFile.delete();\n \t\t}\n \t\tFileOutputStream fout = null;\n \t\ttry {\n\t\t\t\tfout = new FileOutputStream(imageFile);\t\t\t\t\n\t\t\t\tbitmap.compress(Bitmap.CompressFormat.JPEG, 100, fout);\t\n\t\t\t\t//System.out.println(\"bitmap.compress \" + imageFile.getAbsolutePath());\n \t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}finally{\n\t\t\t\tif(fout != null){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfout.flush();\n\t\t\t\t\t\tfout.close();\n\t\t\t\t\t} catch (IOException e) {\t\t\t\t\t\t\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\t \n\t\t\t} \t\t \t\t\n \t}\n }",
"protected static android.graphics.Bitmap m6543a(int r1, int r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\t Catch:{ OutOfMemoryError -> 0x0007 }\n r0 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\t Catch:{ OutOfMemoryError -> 0x0007 }\n return r0;\n L_0x0007:\n java.lang.System.gc();\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\n r1 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.a(int, int):android.graphics.Bitmap\");\n }",
"private Bitmap getBitmap(String url) {\n File file = diskCache.getData(url);\n Bitmap bitmap = decode(file);\n if (bitmap == null) {\n // If no then load it\n bitmap = loadAndCacheBitmap(file, url);\n } else {\n Log.d(\"HIHO\", \"bitmap from memory\");\n }\n\n return bitmap;\n }",
"@Override\r\n\t protected void onPostExecute(Bitmap outBitmap) {\r\n\t\t\tLog.d(\"asdf\", \"ONPOSTEXE\");\r\n\t\t\tRectF dest = new RectF(x, y, x + width, y + height);\r\n\t\t\timageWrapper imwrap = new imageWrapper(outBitmap, startState, dest);\r\n\t\t\tfinal HashMap<Integer, imageWrapper> map = mapRef.get();\r\n\t\t\tmap.put(resId, imwrap);\r\n\t }",
"public static boolean put(String key, Bitmap bitmap) {\n if (putToDisk(key, bitmap)) {\n putToMemory(key, bitmap);\n return true;\n }\n return false;\n }",
"public synchronized Bitmap get(ImageInfo paramK) {\n\t\tBitmap bitmap;\n//\t\tif (wrap != null) {\n//\t\t\tbitmap = wrap.getWrap();\n//\t\t\tif (bitmap != null && !bitmap.isRecycled()) {\n//\t\t\t\twrap.hit();\n//\t\t\t\tLog.v(\"GetBitmap\", \"GetBitmap1\");\n//\t\t\t} else {\n//\t\t\t\tbitmap = read(paramK);\n//\t\t\t\twrap.setWrap(bitmap);\n//\t\t\t\tmemoryCache.put(paramK, wrap);\n//\t\t\t\tLog.v(\"GetBitmap\", \"GetBitmap2\");\n//\t\t\t}\n//\t\t\tLog.v(\"GetBitmap\", \"GetBitmap3\");\n//\t\t} else {\n//\t\t\tbitmap = read(paramK);\n//\t\t\tmemoryCache.put(paramK, new BitmapWrap(bitmap));\n//\t\t\tLog.v(\"GetBitmap\", \"GetBitmap4\");\n//\t\t}\n\t\tbitmap =getBitmapFromCache(paramK);\n\t\tif(bitmap==null)\n\t\t{\n\t\t\tbitmap = read(paramK);\n\t\t\tif(bitmap!=null)\n\t\t\t{\n\t\t\t\taddImage2Cache(paramK,bitmap);\n\t\t\t}\n\t\t}\n\t\treturn bitmap;\n\t}",
"public void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public static Bitmap recycleOldBitmapIfDifferent(Bitmap oldBitmap, Bitmap newBitmap) {\n if (oldBitmap != newBitmap) {\n recycle(oldBitmap);\n }\n return newBitmap;\n }",
"private ImageCache(Context context) {\n int memClass = ((ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryClass();\n memClass = memClass > 32 ? 32 : memClass;\n\n final int cacheSize = 1024 * 1024 * memClass / 8;\n memoryCache = new LruCache<String, Bitmap>(cacheSize) {\n protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getRowBytes() * bitmap.getHeight();\n }\n };\n\n File cacheDir = DiskLruCache.getDiskCacheDir(context, DISK_CACHE_SUB_DIR);\n diskCache = DiskLruCache.openCache(context, cacheDir, DISK_CACHE_SIZE);\n }",
"@TargetApi(12)\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected int sizeOf(BareJID key, Bitmap bitmap) {\n\t\t\t\t\t\treturn bitmap == mPlaceHolderBitmap ? 0 : bitmap.getByteCount();\n\t\t\t\t\t}",
"private void callbitmapmethod() {\n\t\ttry {\n\t\t\tencode.clear();\n\t\t\tfor (int i = 0; i < queueItemforApproval.size(); i++) {\n\t\t\t\t/**/\n\t\t\t\tQueueString en = new QueueString();\n\t\t\t\tif (queueItemforApproval.get(i).bitmap != null) {\n\t\t\t\t\tSystem.out.println(\"bitmap is:\"\n\t\t\t\t\t\t\t+ queueItemforApproval.get(i).bitmap);\n\t\t\t\t\ten.path = convertintobase64(queueItemforApproval.get(i).bitmap);\n\t\t\t\t\tSystem.out.println(\"path is :\" + en.path);\n\t\t\t\t\t// Bitmap bitmap = decodeBase64(en.path, i);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"bitmap is null\");\n\t\t\t\t}\n\t\t\t\tencode.add(en);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n\t\t\t\t\tprotected int sizeOf(BareJID key, Bitmap bitmap) {\n\t\t\t\t\t\treturn bitmap == mPlaceHolderBitmap ? 0 : (bitmap.getRowBytes() * bitmap.getHeight());\n\t\t\t\t\t}",
"private <K extends Resource> K addToCache(K res, String uri) {\n\t\tif (res == null)\n\t\t\tnegCache.put(uri, null);\n\t\treturn res;\n\t}",
"private Bitmap loadAndCacheBitmap(File cacheFile, String url) {\n File tempFile = new File(cacheFile.getPath() + \"temp_file\");\n Bitmap bitmap = null;\n HttpURLConnection connection = null;\n OutputStream tempOs = null;\n OutputStream cacheOs = null;\n\n try {\n URL imageUrl = new URL(url);\n\n // Create connection\n connection = (HttpURLConnection) imageUrl.openConnection();\n connection.setConnectTimeout(CONNECTION_TIMEOUT);\n connection.setReadTimeout(CONNECTION_TIMEOUT);\n connection.setInstanceFollowRedirects(true);\n\n // Save image to temp file\n InputStream is = connection.getInputStream();\n tempOs = new FileOutputStream(tempFile);\n StreamUtils.copy(is, tempOs);\n\n Log.d(\"HIHO\", \"bitmap from web\");\n\n // Decode and scale image to reduce memory consumption\n bitmap = decodeAndScale(tempFile);\n\n // Save scaled bitmap to cache file\n cacheOs = new FileOutputStream(cacheFile);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, cacheOs);\n\n } catch (IOException e) {\n Log.e(TAG, \"Error while image was loaded and stored\", e);\n // Remove cached file if something go wrong\n cacheFile.delete();\n } finally {\n StreamUtils.closeQuietly(tempOs);\n StreamUtils.closeQuietly(cacheOs);\n // Remove temp file\n tempFile.delete();\n if (connection != null) connection.disconnect();\n }\n\n return bitmap;\n }",
"public void addLock(I_MemoryLock lock);",
"public void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public void drawResultBitmap(Bitmap barcode) {\n resultBitmap = barcode;\n invalidate();\n }",
"public CLImage2D add(CLImage2D in1, CLImage2D in2) {\n\t\treturn process(addImage, in1, in2);\n\t}",
"public void recycleBitmapData(){\n\t\tif(bmpData != null){\n\t\t\tbmpData.recycle();\n\t\t\tbmpData = null;\n\t\t}\n\t}",
"@Override\n protected void onPostExecute(Bitmap bitmap) {\n if (isCancelled()) {\n bitmap = null;\n }\n\n addBitmapToCache(url, bitmap);\n \n // write to cache file at the same time\n // Defect: Because transfer into bitmap, we can't save as GIF with transparent background\n // saveBitmapToCacheFile(url, bitmap);\n \n if (imageViewReference != null) {\n ImageView imageView = imageViewReference.get();\n BitmapDownloaderTask bitmapDownloaderTask = getBitmapDownloaderTask(imageView);\n // Change bitmap only if this process is still associated with it\n // Or if we don't use any bitmap to task association (NO_DOWNLOADED_DRAWABLE mode)\n if ((this == bitmapDownloaderTask) || (mode != Mode.CORRECT)) {\n imageView.setImageBitmap(bitmap);\n }\n }\n }",
"public void setUseBitmapBuffer(boolean useBitmapBuffer) {\n this.useBitmapBuffer = useBitmapBuffer;\n }",
"private void cacheIntermediateValues(long a, long b, long checksum) {\n Map.Entry<Long, Long> value = new AbstractMap.SimpleEntry<>(a, b);\n this.ABmap.put(checksum, value);\n }",
"private ByteBuffer passTwo() {\r\n\t\t// int hiAddress = ((((instructionCounter.getCurrentLocation() - 1) / SIXTEEN) + 2) * SIXTEEN) - 1;\r\n\t\tint hiAddress = (instructionCounter.getCurrentLocation() - 1) | 0X0F;\r\n\t\tByteBuffer memoryImage = ByteBuffer.allocate(hiAddress + 1);\r\n\r\n\t\tint lowestLocationSet = instructionCounter.getLowestLocationSet();\r\n\t\tinstructionCounter.reset(lowestLocationSet);\r\n\t\tinstructionCounter.setCurrentLocation(lowestLocationSet);\r\n\t\tint currentLocation;\r\n\t\tString instructionImage;\r\n\t\tSourceLineParts sourceLineParts;\r\n\r\n\t\twhile (!allLineParts.isEmpty()) {\r\n\t\t\tinstructionImage = EMPTY_STRING;\r\n\r\n\t\t\tcurrentLocation = instructionCounter.getCurrentLocation();\r\n\t\t\tsourceLineParts = allLineParts.poll();\r\n\r\n\t\t\tif (sourceLineParts.hasInstruction()) {\r\n\t\t\t\tinstructionImage = setMemoryBytesForInstruction(sourceLineParts);\r\n\t\t\t} else if (sourceLineParts.hasDirective()) {\r\n\t\t\t\tinstructionImage = setMemoryBytesForDirective(sourceLineParts);\r\n\t\t\t} // if\r\n\t\t\tmakeListing(currentLocation, instructionImage, sourceLineParts);\r\n\t\t\tif (!instructionImage.equals(EMPTY_STRING)) {\r\n\t\t\t\tbuildMemoryImage(currentLocation, instructionImage, memoryImage);\r\n\t\t\t} // if\r\n\t\t} // while\r\n\r\n\t\ttpListing.setCaretPosition(0);\r\n\t\tmakeXrefListing();\r\n\t\t// makeMemoryFile(memoryImage);\r\n\t\treturn memoryImage;\r\n\t}",
"public <I extends Image<?, I>> I add(I in1, I in2) {\n\t\tCLQueue queue = context.createDefaultQueue();\n\t\t\n\t\tCLImage2D clin1 = CLImageConversion.convert(context, in1);\n\t\tCLImage2D clin2 = CLImageConversion.convert(context, in2);\n\t\tCLImage2D clout = context.createImage2D(CLMem.Usage.Output, clin1.getFormat(), clin1.getWidth(), clin1.getHeight());\n\t\t\n\t\tCLEvent evt = process(addImage, queue, clin1, clin2, clout);\n\t\t\n\t\tI out = CLImageConversion.convert(queue, evt, clout, in1.newInstance(in1.getWidth(), in1.getHeight()));\n\t\t\n\t\tclin1.release();\n\t\tclin2.release();\n\t\tclout.release();\n\t\tqueue.release();\n\t\t\n\t\treturn out;\n\t}",
"@Override\n\tpublic void addToCache(T obj) {\n\t\tcache.add(obj);\n\t}",
"Bitmap load(String id);",
"private void setImage(Bitmap image) {\n }",
"private void referenceAdd(Integer cacheKey, String filePath)\n {\n mLinkedHashMap.put(cacheKey, filePath);\n cacheSize = mLinkedHashMap.size();\n\n // Get current file size and sum with existing file size\n int curFileSize = (int) new File(filePath).length();\n cacheByteSize = cacheByteSize + curFileSize;\n }",
"public CLEvent add(CLQueue queue, CLImage2D in1, CLImage2D in2, CLImage2D out) {\n\t\treturn process(addImage, queue, in1, in2, out);\n\t}",
"public final int mo15605a(Bitmap bitmap) {\n if (bitmap == null) {\n C3900je.m17429b(\"Bitmap is null. Skipping putting into the Memory Map.\");\n return -1;\n }\n int andIncrement = this.f13511b.getAndIncrement();\n this.f13510a.put(Integer.valueOf(andIncrement), bitmap);\n return andIncrement;\n }",
"private void loadBitmap() {\n\n BitmapDrawable bitmapDrawable = (BitmapDrawable) this.getDrawable();\n\n if (bitmapDrawable != null)\n image = bitmapDrawable.getBitmap();\n }",
"public final synchronized void addElement(Object paramObject1, Object paramObject2)\r\n/* 21: */ {\r\n/* 22:111 */ Object localObject = this._table.get(paramObject1);\r\n/* 23:113 */ if (localObject != null)\r\n/* 24: */ {\r\n/* 25:118 */ GenericCacheEntry localGenericCacheEntry = (GenericCacheEntry)localObject;\r\n/* 26:119 */ localGenericCacheEntry._value = paramObject2;\r\n/* 27:120 */ localGenericCacheEntry._key = paramObject1; return;\r\n/* 28: */ }\r\n/* 29: */ int i;\r\n/* 30:126 */ if (!isFull())\r\n/* 31: */ {\r\n/* 32:127 */ i = this._numEntries;\r\n/* 33:128 */ this._numEntries += 1;\r\n/* 34: */ }\r\n/* 35: */ else\r\n/* 36: */ {\r\n/* 37:132 */ i = this.__curent;\r\n/* 38:134 */ if (++this.__curent >= this._cache.length) {\r\n/* 39:135 */ this.__curent = 0;\r\n/* 40: */ }\r\n/* 41:137 */ this._table.remove(this._cache[i]._key);\r\n/* 42: */ }\r\n/* 43:140 */ this._cache[i]._value = paramObject2;\r\n/* 44:141 */ this._cache[i]._key = paramObject1;\r\n/* 45:142 */ this._table.put(paramObject1, this._cache[i]);\r\n/* 46: */ }",
"public void add(int a, int b, int x, int y)\n\t{\n\t\tfor (int r = a; r <= x; r++)\n\t\t\tfor (int c = b; c <= y; c++)\n\t\t\t\ttilesBool[r][c] = true;\n\t}",
"@Override\n public Image merge(Image a, Image b) {\n if (a.getCached() == null) {\n drawImage(a, 0, 0);\n }\n if (b.getCached() == null) {\n drawImage(b, 0, 0);\n }\n Object nativeImage = graphicsEnvironmentImpl.mergeImages(canvas, a, b, a.getCached(), b.getCached());\n Image merged = Image.create(getImageSource(nativeImage));\n merged.cache(nativeImage);\n return merged;\n }",
"public native static void jniaddLink(int srcId, int dstId, float cap, float reservedBw, float metric) throws AddDBException;",
"public org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping addNewClrMap()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTColorMapping)get_store().add_element_user(CLRMAP$2);\n return target;\n }\n }",
"private void populateFromSprite() {\n long start = System.currentTimeMillis();\n int bitSetIndex = 0;\n BufferedImage bImage = (BufferedImage) sprite.m_image;\n //BufferedImage img = ImageIO.read(new File(\"assets/LoopBitmap.bmp\"));\n int color;\n // Loop through image according to scale\n for(int i = 0; i < sprite.getWidth(); i+=scale) {\n for(int j = 0; j < sprite.getHeight(); j+= scale) {\n // Get color at pixel i, j, if black set Bitmap index to true.\n color = bImage.getRGB(i, j);\n if(color == Color.BLACK.getRGB()) { //tempColor.equals(Color.black)) {\n this.set(bitSetIndex, true);\n //System.out.println(\"'BLACK' Color = \"+color + \" i=\"+ i + \", j=\"+j);\n }\n bitSetIndex++;\n }\n }\n long end = System.currentTimeMillis();\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n// System.out.println(\"BITMAP DONE :)\");\n// System.out.println(\"Time to build = \"+(end-start)+\"ms\");\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n }",
"public void setBitmapIn(Bitmap bitmapIn) {\r\n\t\tthis.bitmapIn = bitmapIn;\r\n\t}",
"public void loadBitmap(Activity mainActivity, long id, String imageKey,\r\n ImageView imageView) {\r\n\r\n\r\n final Bitmap bitmap = getBitmapFromCache(imageKey);\r\n mImageViews.put(imageView, imageKey);\r\n\r\n if (bitmap != null) {\r\n imageView.setImageBitmap(bitmap);\r\n } else {\r\n imageView.setImageResource(R.drawable.img_def);\r\n\r\n// String tag = mImageViews.get(imageView);\r\n// if (tag != null && tag.equals(imageKey)) {\r\n// mExecutorService.\r\n// }\r\n if (!mCurrentTasks.contains(imageKey)) {\r\n if (mExecutorService != null && !mExecutorService.isShutdown()) {\r\n mExecutorService.submit(new LoadingImage(id, imageKey, new WeakReference<>(mainActivity), new WeakReference<>(imageView)));\r\n mCurrentTasks.add(imageKey);\r\n }\r\n } else {\r\n Log.e(\"samuel\", \"任务已经存在>>>imageKey:\" + imageKey);\r\n }\r\n }\r\n }",
"public Bitmap getImageCache(Integer cacheKey)\n {\n synchronized (mLinkedHashMap)\n {\n Bitmap bitmap;\n // Get file from cache\n String file = mLinkedHashMap.get(cacheKey);\n if (file != null)\n {\n bitmap = BitmapFactory.decodeFile(file);\n Log.i(\"DiskLruCache\", \"DiskCacheHit for Image with CacheKey: \"+cacheKey.toString());\n return bitmap;\n }\n else\n {\n // Construct existing file path\n String cacheKeyStr = String.valueOf(cacheKey);\n String existingFile = createFilePath(cacheDirectory, cacheKeyStr);\n // Get the file using the constructed file path\n assert existingFile != null;\n File existFile = new File(existingFile);\n if (existFile.exists())\n {\n // If the file exists, we will store the the key in reference list\n referenceAdd(cacheKey, existingFile);\n return BitmapFactory.decodeFile(existingFile);\n }\n }\n return null;\n }//synchronized (mLinkedHashMap)\n }",
"public int addMap(GlobalMap otherMap){\r\n\t\tif(otherMap.getMap().size() < 3) return -1;\r\n\t\t/*map exists, but i need to re-mix it*/\r\n\t\tif(this.getCT() > (SimClock.getTime() - TIMEOUT)){\r\n\t\t\tthis.mapExists = false;\r\n\t\t}\r\n\t\tif(mapExists && synced == -1){\r\n\t\t\tlocalmix();\r\n\t\t}\t\r\n\t\t/*if i cant make a map yet, i use the one i got*/\r\n\t\telse if(!mapExists){\r\n\t\t\tint c = makeGlobal();\r\n\t\t\tif(c < 0){\r\n\t\t\t\tif(otherMap.getCT() > (SimClock.getTime() - TIMEOUT)){\r\n\t\t\t\t\tthis.globalMap = otherMap.globalMap;\r\n\t\t\t\t\tthis.myMapNodes = otherMap.myMapNodes;\r\n\t\t\t\t\tthis.synced = 1;\r\n\t\t\t\t\tthis.mapExists = true;\r\n\t\t\t\t\tthis.ref_id = otherMap.ref_id;\r\n\t\t\t\t\tthis.ref_c = otherMap.ref_c;\r\n\t\t\t\t\t//core.Debug.p(\"a\");\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tthis.synced = 0;\r\n\t\t\t\tthis.mapExists = true;\r\n\t\t\t\t//core.Debug.p(\"b\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*if i have an updated map, just join them preferring the one that used newer data*/\r\n\t\tif(mapExists && (synced == 0 || synced == 1)){\r\n\t\t\t//core.Debug.p(\"nene\");\r\n\t\t\tboolean newer = this.updateTime < otherMap.updateTime ? true : false;\r\n\t\t\t//have to be careful with shifted values!\r\n\t\t\tCoord c = new Coord(this.ref_c.getX() - otherMap.ref_c.getX(), this.ref_c.getY() - otherMap.ref_c.getY());\r\n\t\t\tMap<Integer, Coord> othershifted = shiftMap(otherMap.getMap(), c);\r\n\t\t\t\r\n\t\t\tfor(Map.Entry<Integer, Coord> node : othershifted.entrySet()){\r\n\t\t\t\tif(globalMap.containsKey(node.getKey())){\r\n\t\t\t\t\tif(newer) globalMap.replace(node.getKey(), node.getValue());\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tglobalMap.put(node.getKey(), node.getValue());\r\n\t\t\t\t\tmyMapNodes.add(node.getKey());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn myMapNodes.size();\r\n\t\t}\r\n\t\telse return -1;\r\n\t}",
"public BitmapDownloaderTask(ImageView imageView) {\n\t\timageViewReference = new WeakReference<ImageView>(imageView);\n\n\t\t// create a new static cache if there is none\n\t\tif (cache == null) {\n\t\t\tcache = new HashMap<String, Bitmap>();\n\t\t}\n\t}",
"private void drawBitmap(Canvas canvas, Bitmap map, float x, float y) {\n\t\tint mapWidth = map.getWidth();\n\t\tint mapHeight = map.getHeight();\n\t\tfloat boardPosX = x - mapWidth / 2;\n\t\tfloat boardPosY = y - mapHeight / 2;\n\t\tcanvas.drawBitmap(map, boardPosX, boardPosY, null);\n\t}",
"public void setBitmap(Bitmap bitmap){\n this.bitmap = Bitmap.createScaledBitmap(bitmap,(int)(bitmap.getWidth()*bitmapScale),(int)(bitmap.getHeight()*bitmapScale),false);\n //TODO:Update hitBox to scale to new bitmap\n }",
"static public void addImage(AppImage image) {\n boolean already_exists = false;\n for (AppImage cached_image : images) {\n String reposited_path = cached_image.file.getAbsolutePath();\n String image_path = image.file.getAbsolutePath();\n if (reposited_path.equals(image_path)) {\n already_exists = true;\n }\n }\n if (!already_exists) images.add(0, image);\n }"
] | [
"0.7144699",
"0.68242174",
"0.6671486",
"0.6632754",
"0.63273144",
"0.6325237",
"0.6191164",
"0.6013285",
"0.5874658",
"0.5861296",
"0.5808189",
"0.5756337",
"0.57393295",
"0.5697736",
"0.5673916",
"0.566904",
"0.563054",
"0.5523281",
"0.54835427",
"0.5479536",
"0.5475023",
"0.5429324",
"0.5424094",
"0.5405633",
"0.53844595",
"0.53807795",
"0.53748083",
"0.53615457",
"0.5360041",
"0.53416663",
"0.5323529",
"0.5322108",
"0.5313605",
"0.5312684",
"0.5310926",
"0.52447134",
"0.5242728",
"0.5236947",
"0.52358687",
"0.52282983",
"0.5225922",
"0.5223126",
"0.5219399",
"0.52146685",
"0.52033716",
"0.51967734",
"0.5183822",
"0.51656985",
"0.51327306",
"0.51305175",
"0.51253706",
"0.51123625",
"0.5108973",
"0.5101251",
"0.510011",
"0.506256",
"0.50559217",
"0.5052776",
"0.5046823",
"0.5031953",
"0.50308704",
"0.50308496",
"0.5023137",
"0.5019277",
"0.50145876",
"0.50101787",
"0.5006471",
"0.5005122",
"0.49800012",
"0.49775603",
"0.49613383",
"0.49613383",
"0.4957671",
"0.4948323",
"0.4945171",
"0.49406278",
"0.49176008",
"0.49157536",
"0.4909038",
"0.4908958",
"0.49049285",
"0.4900492",
"0.4894626",
"0.48932764",
"0.48864824",
"0.48857626",
"0.48822403",
"0.48779613",
"0.4876717",
"0.4869813",
"0.4859272",
"0.48559546",
"0.48513073",
"0.484762",
"0.48464203",
"0.48463213",
"0.48404244",
"0.48402706",
"0.48375914",
"0.4837479"
] | 0.6956738 | 1 |
Get from memory cache. | public Bitmap getBitmapFromMemCache(String data) {
Bitmap memValue = null;
memValue = mMemoryCache.get(data);
if (BuildConfig.DEBUG && memValue != null) {
Log.d(TAG, "Memory cache hit");
}
return memValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic V retrieve(K key) {\n\t\tcheckNullKey(key);\n\t\treadLock.lock();\n\t\ttry {\n\t\t\treturn cache.get(key);\n\t\t} finally {\n\t\t\treadLock.unlock();\n\t\t}\n\t}",
"private CacheObject<K, V> getCacheObject(K key){\n return this.cache.get(key);\n }",
"public Object get(String key) {\n\n CacheObject cacheObject = cache.get(key).get();\n if (!cacheObject.isExpired()) {\n cacheObject.updateUseTime();\n return cacheObject.getValue();\n } else {\n cache.remove(key);\n queue.add(cacheObject);\n return null;\n }\n }",
"private Bitmap getBitmapFromMemCache(String key) {\n return mLruCache.get(key);\n }",
"@Override\n\tpublic Bitmap fetch(String key) {\n\t\treturn (Bitmap) mMemoryCache.get(key);\n\t}",
"@SuppressWarnings(\"unchecked\")\n public T get(K key) {\n synchronized (cacheMap) {\n CacheObject c = (CacheObject) cacheMap.get(key);\n\n if (c == null) {\n return null;\n } else {\n c.lastAccessed = System.currentTimeMillis();\n return c.value;\n }\n }\n }",
"@Override\n public V get(K key){\n CacheObject<K, V> cacheObject = this.cache.get(key);\n\n if (cacheObject != null){\n return cacheObject.getObject();\n }\n\n return null;\n }",
"public Object get(Object key) {\n Entry entry = this.cache.get(key);\n\n if (entry == null)\n return null;\n\n // move the recently accessed Entry to the head of list\n moveToHead(entry);\n return entry.value;\n }",
"Object getValueFromLocalCache(Object key);",
"@Override\r\n protected ICacheElement<K, V> processGet(final K key)\r\n {\r\n if (!isAlive())\r\n {\r\n log.error(\"{0}: No longer alive so returning null for key = {1}\",\r\n logCacheName, key);\r\n return null;\r\n }\r\n\r\n log.debug(\"{0}: Trying to get from disk: {1}\", logCacheName, key);\r\n\r\n ICacheElement<K, V> object = null;\r\n try\r\n {\r\n storageLock.readLock().lock();\r\n try\r\n {\r\n object = readElement(key);\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n if (object != null)\r\n {\r\n hitCount.incrementAndGet();\r\n }\r\n }\r\n catch (final IOException ioe)\r\n {\r\n log.error(\"{0}: Failure getting from disk, key = {1}\", logCacheName, key, ioe);\r\n reset();\r\n }\r\n return object;\r\n }",
"@Override\n\tpublic Object getObject(String key) {\n\t\tif (mInternalCache.contains(key)) {\n\t\t\ttry {\n\t\t\t\treturn Base64.fromString(mInternalCache.getString(key, null));\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.e(TAG, \"Failed to get the object from cache !\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Cache getCache(String name)\r\n/* 39: */ {\r\n/* 40:64 */ return (Cache)this.cacheMap.get(name);\r\n/* 41: */ }",
"private Bitmap getBitmapFromLruCache(String key) {\r\n return mLruCache.get(key);\r\n }",
"public static Object getCache(String key) {\n\t\treturn getCache(key, null);\n\t}",
"public V fetch(String name) {\n return mCache.fetch(name, mSource);\n }",
"com.google.protobuf.ByteString getCached(int index);",
"public T get()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn cache.get(KEY, supplier);\n\t\t}\n\t\tcatch (ExecutionException e)\n\t\t{\n\t\t\tfinal Throwable cause = e.getCause();\n\n\t\t\t// Try to rethrow the actual exception so it's easier to understand\n\t\t\tif (cause == null)\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\telse if (cause instanceof RuntimeException)\n\t\t\t\tthrow (RuntimeException) cause;\n\t\t\telse if (cause instanceof Error)\n\t\t\t\tthrow (Error) cause;\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Unexpected error loading item into cache: \" + cause.getMessage(), cause);\n\t\t}\n\t}",
"@Override\n\t\t\tpublic Bitmap getBitmap(String url) {\n\t\t\t\treturn cache.get(url);\n\t\t\t}",
"public static Object getCache(String key) {\n return getCache(key, null);\n }",
"public static Object getCache(String key) {\n return getCache(key, null);\n }",
"public T getIfPresent()\n\t{\n\t\treturn cache.getIfPresent(KEY);\n\t}",
"public V get(K key) {\n CacheableObject cObj;\n\n synchronized(theLock) {\n cObj = valueMap.get(key);\n }\n\n return cObj == null ? null : cObj.cachedObject;\n }",
"public byte[] cache(byte[] contents) {\r\n\t\tif (contents == null)\r\n\t\t\treturn null;\r\n\t\tByteArray ba = new ByteArray(contents);\r\n\t\tcache.putIfAbsent(ba, ba.contents);\r\n\t\treturn cache.get(ba);\r\n\t}",
"@Override\n\tpublic DevApp getCache(String appKey) {\n\t\tDevApp vo = null;\n\t\tvo = (DevApp) memCached.get(AppConstant.MEMCACHE_KEY_APP + appKey);\n\t\tif (vo == null) {\n\t\t\tlog.info(\"mem.AppKey is null appId=\" + appKey);\n\t\t\tvo = developedAppDao.findByAppKey(appKey);\n\t\t\tif (vo != null) {\n\t\t\t\tmemCached.add(AppConstant.MEMCACHE_KEY_APP + appKey,getDevApp(vo.getId()),\n\t\t\t\t\t\tnew Date(AppConstant.CACHE_TIME));\n\t\t\t}\n\t\t}\n\t\treturn vo;\n\t}",
"Cache<String, YourBean> getMyCache() {\n\treturn myCache;\n }",
"public static CatalogStructure getCache() {\n return CACHE.get();\n }",
"public synchronized V getValue(K key) {\n SoftReference<V> ref = cache.get(key);\n\n // Is the key-value pair absent from the cache?\n if (ref == null) {\n return null;\n }\n\n // Is the reference to the value dead?\n V value = ref.get();\n recentlyUsed.remove(key);\n if (value == null) {\n cache.remove(key);\n } else {\n recentlyUsed.add(0, key);\n }\n return value;\n }",
"public Object get(Object key) {\n CacheEntry entry = (CacheEntry)_hash.get(key);\n if (entry != null) {\n touchEntry(entry);\n return entry.getValue();\n } else {\n return null;\n }\n }",
"CloudCache getCache(String cacheName);",
"@Override\n\tpublic byte[] get()\n\t{\n\t\tif (isInMemory())\n\t\t{\n\t\t\tif (cachedContent == null)\n\t\t\t{\n\t\t\t\tcachedContent = dfos.getData();\n\t\t\t}\n\t\t\treturn cachedContent;\n\t\t}\n\n\t\tFile file = dfos.getFile();\n\n\t\ttry\n\t\t{\n\t\t\treturn Files.readBytes(file);\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\tlog.debug(\"failed to read content of file: \" + file.getAbsolutePath(), e);\n\t\t\treturn null;\n\t\t}\n\t}",
"@Test\n public void testCoh3710_get()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertNull(getNamedCache(getCacheName0()).get(Integer.valueOf(1)));\n }\n });\n }",
"public V get(Object key) {\r\n if (cacheDelegate != null) {\r\n cacheDelegate.keyLookup(key);\r\n }\r\n\r\n if (key == null) {\r\n return null;\r\n }\r\n\r\n V value;\r\n CacheData<K, V> cacheData = getEntry(key);\r\n if (cacheData != null) {\r\n // see if the key passed in matches this one\r\n if ((value = cacheData.validateKey(key, cacheDelegate)) != null) {\r\n return value;\r\n }\r\n }\r\n // if we made it here and source!=null use the passthrough\r\n if (source!=null) {\r\n value = source.get(key);\r\n put((K)key, value);\r\n return value;\r\n }\r\n return null;\r\n }",
"@Override\n public KVMessage get(String key) {\n KVMessage rtn;\n lock.lock();\n try {\n String valueInCache = cacheMap.get(key);\n // Key exist in cache.\n if (valueInCache != null) {\n rtn = new Message(KVMessage.StatusType.GET_SUCCESS, key, valueInCache, null);\n // Key does not exist in cache.\n } else {\n String valueOnDisk = loadFromDisk(key);\n // Key exists on disk.\n if (valueOnDisk != null) {\n rtn = new Message(KVMessage.StatusType.GET_SUCCESS, key, valueOnDisk, null);\n cacheMap.put(key, valueOnDisk);\n // Key does not exist on disk.\n } else {\n rtn = new Message(KVMessage.StatusType.GET_ERROR, key, null, null);\n }\n }\n } catch (IOException e) {\n rtn = new Message(KVMessage.StatusType.GET_ERROR, key, null, null);\n } finally {\n lock.unlock();\n }\n return rtn;\n }",
"public T getObject(T object) {\r\n\t\t\r\n\t\tif(cache.contains(object) == false) //if not in the cache\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Element not found.\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcache.get(cache.indexOf(object));\r\n\t\t\treturn object;\r\n\t\t\t\r\n\t\t}\r\n\t\t \r\n\t}",
"public com.google.protobuf.ByteString getCached(int index) {\n return cached_.get(index);\n }",
"@Override\n public Object getResource(String resourceKey)\n {\n synchronized(InProcessCache.class) {\n if(!hasResource(resourceKey)) {\n return null;\n }\n\n WeakReference reference = (WeakReference)_cache.get(resourceKey);\n return reference.get();\n }\n }",
"public com.google.protobuf.ByteString getCached(int index) {\n return cached_.get(index);\n }",
"public T get( @Nonnull final Object... args )\n {\n if ( Arez.shouldCheckApiInvariants() )\n {\n apiInvariant( this::isNotDisposed,\n () -> \"Arez-0161: MemoizeCache named '\" + _name + \"' had get() invoked when disposed.\" );\n }\n return getComputableValue( args ).get();\n }",
"@Override\n public CacheAPI getCacheAPI() {\n return null;\n }",
"@Override\n public ICacheElement<K, V> getCacheElement( final K name )\n {\n return this.getCacheControl().get( name );\n }",
"protected net.sf.ehcache.Ehcache getCache() {\n return cache;\n }",
"private static Cache getCacheInstance() {\r\n\t\tif( cache == null ) {\r\n\t\t\ttry {\r\n\t\t\t\tCacheFactory cf = CacheManager.getInstance().getCacheFactory();\r\n\t\t\t\tcache = cf.createCache(Collections.emptyMap());\r\n\t\t\t} catch (CacheException e) {\r\n\t\t\t\tlog.log(Level.SEVERE, \"can not initialize cache\", e);\r\n\t\t\t\tcache = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cache;\r\n\t}",
"@Override\n public V get( final K name )\n {\n final ICacheElement<K, V> element = this.getCacheControl().get( name );\n\n return ( element != null ) ? element.getVal() : null;\n }",
"protected String getFromCache(String key) throws KeyDoesntExistException {\n \tif (!map.containsKey(key)) {\n \t\tthrow new KeyDoesntExistException(\"Key not found: \" + key);\n \t}\n \tif (!usageCounter.containsKey(key)) {\n \t\tthrow new RuntimeException(\"Cache and usageCounter out of sync!\");\n \t}\n \tusageCounter.put(key, usageCounter.get(key) + 1);\n \treturn map.get(key);\n }",
"@Override\n\tpublic Object get(String name, Serializable key) throws CacheException {\n\t\treturn null;\n\t}",
"@CheckForNull\n\t@SuppressFBWarnings(value = \"RV_RETURN_VALUE_IGNORED_BAD_PRACTICE\")\n\tpublic V get(@Nonnull String key) {\n\t\tFile jsonFile = new File(mCacheLocation, key);\n\t\tif (!jsonFile.exists()) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\treturn mObjectMapper.readValue(jsonFile, mModelClass);\n\t\t} catch (IOException e) {\n\t\t\tLogUtils.logException(TAG, \"Exception when reading \" + key, e);\n\t\t\tjsonFile.delete(); // try to delete damaged file\n\t\t\treturn null;\n\t\t}\n\t}",
"private MProduct getProductFromCache(int M_Product_ID)\n {\n \tif (m_prodCache == null)\n \t\tm_prodCache = new MProductCache(getCtx(),get_TrxName());\n \tif (M_Product_ID <=0)\n \t\treturn null;\n \tMProduct p = m_prodCache.get(M_Product_ID);\n \treturn p;\n }",
"public Object get(String methodName, CallCacheArgs args) {\n Map<CallCacheArgs, Object> cacheArgs = this.cache.get(methodName);\n return cacheArgs == null ? null : cacheArgs.get(args);\n }",
"public Cache.Entry get(String param1) {\n }",
"public Integer get(int key) {\n\t ListNode node = LRUhashtable.get(key); \n\n\t if (node == null) {\n\t return null;\n\t }\n\n\t // the item has been accessed, moved to the front of the cache\n\t moveToHead(node);\n\n\t return node.value;\n\t }",
"public JsonArray getCache() {\n return cache;\n }",
"@Override\n\tpublic synchronized Entry get(String key) {\n\t\tCacheHeader entry = mEntries.get(key);\n\t\t// if the entry does not exist, return.\n\t\tif (entry == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tFile file = getFileForKey(key);\n\t\tCountingInputStream cis = null;\n\t\ttry {\n\t\t\tcis = new CountingInputStream(new FileInputStream(file));\n\t\t\tCacheHeader.readHeader(cis); // eat header\n\t\t\tbyte[] data = streamToBytes(cis,\n\t\t\t\t\t(int) (file.length() - cis.bytesRead));\n\t\t\treturn entry.toCacheEntry(data);\n\t\t} catch (IOException e) {\n\t\t\tVolleyLog.d(\"%s: %s\", file.getAbsolutePath(), e.toString());\n\t\t\tremove(key);\n\t\t\treturn null;\n\t\t} finally {\n\t\t\tif (cis != null) {\n\t\t\t\ttry {\n\t\t\t\t\tcis.close();\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Bitmap getFromCache(final String key) {\n\n\t\ttry {\n\t\t\tif (Constants.CACHE_DIR_PATH.endsWith(\"/\"))\n\t\t\t\treturn BitmapFactory.decodeFile(Constants.CACHE_DIR_PATH + key);\n\t\t\telse\n\t\t\t\treturn BitmapFactory.decodeFile(Constants.CACHE_DIR_PATH + \"/\"\n\t\t\t\t\t\t+ key);\n\t\t} catch (Error e) {\n\n\t\t\t//Logs.show(e);\n\n\t\t}\n\t\treturn null;\n\t}",
"public T get() {\n return cache.getUnchecked(clazz);\n }",
"final CacheData<K, V> getCacheData(int pos) {\r\n return buckets[pos].get();\r\n }",
"public byte[] get(byte[] key) {\n if(key==null){\n throw new IllegalArgumentException(\"remove keys must not null!\");\n }\n Jedis jedis=null;\n try{\n jedis=this.jedisPool.getResource();\n return jedis.get(key);\n }catch (Exception e){\n logger.error(\"RedisManager:get cache error key={}!\",new String(key));\n }finally {\n if(jedis!=null){\n jedis.close();\n }\n }\n return null;\n }",
"public Node<E> getNodeFromCache() {\n if (this.cacheSize == 0) {\n return null;\n }\n Node<E> node = this.firstCachedNode;\n this.firstCachedNode = node.next;\n node.next = null;\n this.cacheSize--;\n return node;\n }",
"@Override\n\tpublic CacheResponse get(URI uri, String rqstMethod, Map<String, List<String>> rqstHeaders) throws IOException {\n\t\tSystem.err.println(\"enter MemoryCache.get()\");\n\t\treturn new CacheResponseImpl();\n\t}",
"@Override\n\tpublic T retrieveItem(T obj) {\n\t\tif(cache.contains(obj)) {\n\t\t\tfor (T objInSet : cache) {\n\t\t\t\tif (objInSet.equals(obj)) {\n\t\t\t\t\treturn objInSet;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private Bitmap getBitmap(String url) {\n File file = diskCache.getData(url);\n Bitmap bitmap = decode(file);\n if (bitmap == null) {\n // If no then load it\n bitmap = loadAndCacheBitmap(file, url);\n } else {\n Log.d(\"HIHO\", \"bitmap from memory\");\n }\n\n return bitmap;\n }",
"public MemoryCacheParams get() {\n return new MemoryCacheParams(m114359b(), 256, Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE, f81939a);\n }",
"long getCacheHits();",
"protected Cache<Request, Result> getNetspeakCache() {\n return this.netspeakCache;\n }",
"public PlayerContinuousSnap getCache(Player player) {\n\t\treturn this.cached.get(player);\n\t}",
"DataElement getFromCache(String dataElementName);",
"public CacheStrategy getCacheStrategy();",
"public static Cache getCache(PageContext pc, int scope)\n {\n return (Cache)pc.getAttribute(Constants.JSPTAG_CACHE_KEY, scope);\n }",
"public V getElementByKey(K key) {\n\t\tif (cacheMap.containsKey(key)) {\n\t\t\telementHit(key);\n\t\t}\n\t\treturn cacheMap.get(key);\n\t}",
"public byte[] cache(InputStream contents) throws IOException {\r\n\t\tif (contents == null)\r\n\t\t\treturn null;\r\n\t\tByteArray ba = new ByteArray(IOUtils.readBytes(contents, 1024));\r\n\t\tcache.putIfAbsent(ba, ba.contents);\r\n\t\treturn cache.get(ba);\r\n\t}",
"public long getCachedData(int memLoc) {\n\t\tfor (Integer memoryCheck : cacheMap.keySet()) {\n\t\t\tif(memoryCheck == memLoc){\n\t\t\t\treturn cacheMap.get(memoryCheck);\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"public CacheEntry searchWithCache(String name) {\n CacheEntry entry = cacheHit(name);\n \n if (entry != null) return entry;\n \n // we grab serial number first; the worst that will happen is we cache a later\n // update with an earlier serial number, which would just flush anyway\n Object token = getCacheToken();\n DynamicMethod method = searchMethodInner(name);\n \n return method != null ? addToCache(name, method, token) : addToCache(name, UndefinedMethod.getInstance(), token);\n }",
"public Bitmap getImageCache(Integer cacheKey)\n {\n synchronized (mLinkedHashMap)\n {\n Bitmap bitmap;\n // Get file from cache\n String file = mLinkedHashMap.get(cacheKey);\n if (file != null)\n {\n bitmap = BitmapFactory.decodeFile(file);\n Log.i(\"DiskLruCache\", \"DiskCacheHit for Image with CacheKey: \"+cacheKey.toString());\n return bitmap;\n }\n else\n {\n // Construct existing file path\n String cacheKeyStr = String.valueOf(cacheKey);\n String existingFile = createFilePath(cacheDirectory, cacheKeyStr);\n // Get the file using the constructed file path\n assert existingFile != null;\n File existFile = new File(existingFile);\n if (existFile.exists())\n {\n // If the file exists, we will store the the key in reference list\n referenceAdd(cacheKey, existingFile);\n return BitmapFactory.decodeFile(existingFile);\n }\n }\n return null;\n }//synchronized (mLinkedHashMap)\n }",
"private Cache<String, String> getCache() {\n if (protobufSchemaCache == null) {\n throw new IllegalStateException(\"Not started yet\");\n }\n return protobufSchemaCache;\n }",
"public Map<String, String> getCache() {\n return cache;\n }",
"final CacheData<K, V> getEntry(final Object key) {\r\n // validateKey the key in the buckets\r\n\r\n // synchronization is not a problem here\r\n // if someone changes or resets a key/value right before this\r\n // it will be properly handled, either it won't find a validateKey in the if or the\r\n // obj being returned will be null, that is fine and expected for a no-validateKey\r\n // then the client will just validateKey whatever data he was looking for in the buckets\r\n return getCacheData(getKeyPosition(key));\r\n }",
"public Value getCachedValue() {\n return cachedValue;\n }",
"CACHE_ELEMENT[] get(Key ... keys);",
"@Override\n public String get(String key) throws DatabaseException {\n if (key == null) {\n throw new IllegalArgumentException();\n }\n String cachedData = cache.get(key);\n if (cachedData != null) {\n return cachedData;\n }\n\n String data = this.database.get(key);\n if (data != null) {\n cache.put(key, data);\n }\n return data;\n }",
"public interface ICache {\n\t\n\t/**\n\t * <p>\n\t * get the Cached Object from cache pool by the cache String key\n\t * @param key\n\t * @return\n\t */\n\tpublic Object get(String key);\n\t\n\t\n\t\n\t/**\n\t * <p>\n\t * \n\t * @param key\n\t * @return old cache object \n\t */\n\tpublic Object put(String key,Object value);\n\t\n\t/**\n\t * <p>\n\t * get the Cached Object from cache pool by the cache String key quietly,\n\t * without update the statistic data\n\t * @param key\n\t * @return\n\t */\n\tpublic Object getQuiet(String key);\n\t\n\t\n\t/**\n\t * <p>\n\t * remove the cached object from cache pool by the cache String key\n\t * @param key\n\t * @return\n\t */\n\tpublic Object remove(String key);\n\t\n\t/**\n\t * <p>\n\t * free specied size mem\n\t * @param size unit in Byte\n\t * @return\n\t */\n\tpublic long free(long size);\n\t\n\t\n\t/**\n\t * <p>\n\t * flush to the underly resource\n\t */\n\tpublic void flush();\n\t\n}",
"public boolean inCache(String key);",
"public interface ContentCache extends DataCache {\r\n String getValue(String code, Locale locale);\r\n\r\n Boolean containsLocale(Locale locale);\r\n\r\n Boolean containsCodeForLocale(String code, Locale locale);\r\n\r\n Map<String, Map<String, String>> getCachedData();\r\n}",
"private static void getFromCache(Session session) {\n\t\tCacheManager cm=CacheManager.getInstance();\n\t\tCache cache=cm.getCache(\"namanCache\");\n\t\tfor(int i=0;i<2;i++){\n\t\t\tif(cache.get(i)!=null){\n\t\t\t\tSystem.out.println(((UserDetails)cache.get(1).getObjectValue()).getName());\n\t\t\t}else{\n\t\t\t\tUserDetails user1=(UserDetails)session.get(UserDetails.class, i);\n\t\t\t\tSystem.out.println(user1.getName());\n\t\t\t\tcache.put(new Element(i+1,user1));\n\t\t\t}\n\t\t}\n\t\tcm.shutdown();\n\t}",
"public V getIfNotExpired(K key) {\n CacheableObject cObj;\n\n synchronized(theLock) {\n cObj = valueMap.get(key);\n }\n\n if (null != cObj) {\n if (isExpired(cObj)) {\n synchronized(theLock) {\n currentCacheSize -= cObj.containmentCount;\n valueMap.remove(key);\n for (CacheListener<K> listener : listeners) {\n listener.expiredElement(key);\n }\n }\n return null;\n } else {\n return cObj.cachedObject;\n }\n } else {\n return null;\n }\n }",
"private Document findInCache(String userId) {\n \t\tString key;\n \t\tSet<String> keys = lruCache.getKeySet();\n \t\tIterator<String> itr = keys.iterator();\n \t\twhile (itr.hasNext()) {\n \t\t\tkey = itr.next();\n \t\t\tDocument data = lruCache.get(key);\n \t\t\t// check if email in profile object is same as input userId\n \t\t\tString email = \"\";\n \t\t\ttry {\n \t\t\t\temail = DOMUtil.value(data, Profile.xpathMap.get(\"email\"), Profile.nameSpaceCtx);\n \t\t\t} catch (XMLException e) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t// cache hit\n \t\t\tif (StringUtil.equalsIgnoreCase(email, userId)) {\n \t\t\t\treturn data;\n \t\t\t}\n \t\t}\n \t\t// Cache miss\n \t\treturn null;\n \t}",
"public boolean isCachedMemory() {\n return false;\n }",
"public PojoCache getPojoCache();",
"List<Link> findLinkByCache();",
"public V deliverCacheEntry(@NonNull T key) {\n return keysToObjectsMap.get(key);\n }",
"private Document findInCache(String userId) {\n\t\tString key;\n\t\tSet<String> keys = cache.keySet();\n\t\tIterator<String> itr = keys.iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tkey = itr.next();\n\t\t\tDocument data = cache.get(key);\n\t\t\t// check if email in profile object is same as input userId\n\t\t\tString email = \"\";\n\t\t\ttry {\n\t\t\t\temail = DOMUtil.value(data, Profile.xpathMap.get(\"email\"), Profile.nameSpaceCtx);\n\t\t\t} catch (XMLException e) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// cache hit\n\t\t\tif (StringUtil.equalsIgnoreCase(email, userId)) {\n\t\t\t\treturn data;\n\t\t\t}\n\t\t}\n\t\t// Cache miss\n\t\treturn null;\n\t}",
"@JsonIgnore\n\tpublic static String getCache(String session) {\n\t\treturn JedisManager.get(KEY + session);\n\t}",
"@Test\n public void testPutGet() {\n cache.put(\"A\", \"first\");\n cache.put(\"C\", \"second\");\n cache.put(\"C\", \"third\");\n \n assertEquals(\"first\", cache.get(\"A\"));\n assertEquals(\"third\", cache.get(\"C\"));\n }",
"public Bitmap get(String url) {\n if(url!=null){\n synchronized (mBitmapCache) {\n\n // Get the image from the cache\n final Bitmap bitmap = mBitmapCache.get(url);\n\n // Check if the bitmap is in the cache\n if (bitmap != null) {\n return bitmap;\n }\n }\n }\n\n return null;\n }",
"public Cache<ImmutableBytesPtr,PMetaDataEntity> getMetaDataCache() {\n Cache<ImmutableBytesPtr,PMetaDataEntity> result = metaDataCache;\n if (result == null) {\n synchronized(this) {\n result = metaDataCache;\n if(result == null) {\n long maxTTL = config.getLong(\n QueryServices.MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_TIME_TO_LIVE_MS);\n long maxSize = config.getLongBytes(\n QueryServices.MAX_SERVER_METADATA_CACHE_SIZE_ATTRIB,\n QueryServicesOptions.DEFAULT_MAX_SERVER_METADATA_CACHE_SIZE);\n metaDataCache = result = CacheBuilder.newBuilder()\n .maximumWeight(maxSize)\n .expireAfterAccess(maxTTL, TimeUnit.MILLISECONDS)\n .weigher(new Weigher<ImmutableBytesPtr, PMetaDataEntity>() {\n @Override\n public int weigh(ImmutableBytesPtr key, PMetaDataEntity table) {\n return SizedUtil.IMMUTABLE_BYTES_PTR_SIZE + key.getLength() + table.getEstimatedSize();\n }\n })\n .build();\n }\n }\n }\n return result;\n }",
"public static <T extends Entity> EntityCache<T> getMemoryEntityCache() {\n\t\tEntityMap<T> entityMap = new MemoryEntityMap<T>();\n\t\treturn new EntityCache<T>(entityMap);\n\t}",
"private BarcodeDataCache getBarcodeData() {\n return cacheData.getValue();\n }",
"java.util.List<com.google.protobuf.ByteString> getCachedList();",
"@Override\n public <T> T getProxy(Key<T> key)\n {\n // We have no equivalent for this in our sessions, so just pass along directly to the decorated cache\n return queryCache.getProxy(key);\n }",
"@Override\n\tpublic Object getBeanCache(String name) {\n\t\treturn null;\n\t}",
"@Override\n public Object get(String key) {\n final String fileName = Util.MD5(key);\n CacheModel model = container.get(fileName);\n if (model == null) {\n String name = Util.formatFileName(fileName, \"\");\n mWriter.deleteFileStartWith(name);\n return null;\n }\n if (model.data instanceof byte[]) {\n return model.data;\n }\n File file = (File) model.data;\n if (!file.exists()) {\n return null;\n }\n for (CachePolicy p : policies) {\n if (!p.modelCheck(model, container)) {\n file.delete();\n return null;\n }\n }\n model.accessUpdate();\n file.setLastModified(model.lastAccessTime);\n return file2ByteArray(file);\n }",
"public int get(int key) {\n ListNode node = hashtable.get(key);\n \n if(node == null){\n return -1;\n }\n \n // Item has been accessed. Move to the front of the cache\n moveToHead(node);\n return node.value;\n }"
] | [
"0.73673993",
"0.7224297",
"0.71980244",
"0.7147583",
"0.7145398",
"0.7106226",
"0.7105263",
"0.70430547",
"0.7006276",
"0.6834099",
"0.6792625",
"0.6769704",
"0.67644686",
"0.6702528",
"0.66976553",
"0.666791",
"0.6638705",
"0.6629129",
"0.6627202",
"0.6627202",
"0.65698814",
"0.6548767",
"0.65156573",
"0.6501088",
"0.64877176",
"0.64749974",
"0.646105",
"0.6460478",
"0.64534724",
"0.6443827",
"0.6443604",
"0.64339787",
"0.64161086",
"0.64139885",
"0.63839877",
"0.63819045",
"0.6359262",
"0.63148546",
"0.631351",
"0.6310175",
"0.63014764",
"0.62987834",
"0.6298376",
"0.6292923",
"0.628053",
"0.62744385",
"0.6272571",
"0.6271416",
"0.6259149",
"0.6257328",
"0.6237229",
"0.62335885",
"0.62282765",
"0.6226107",
"0.62246466",
"0.6206881",
"0.62001795",
"0.6199428",
"0.61984247",
"0.61958855",
"0.61920744",
"0.6183487",
"0.6172854",
"0.6150092",
"0.61476636",
"0.61437356",
"0.61338097",
"0.612572",
"0.6120934",
"0.61105376",
"0.6096832",
"0.6096607",
"0.6096485",
"0.6089443",
"0.6085557",
"0.60848665",
"0.60840976",
"0.6063682",
"0.6045776",
"0.60316175",
"0.60300344",
"0.6011152",
"0.600889",
"0.60059166",
"0.5989054",
"0.59872854",
"0.5986601",
"0.5979511",
"0.5978762",
"0.5967397",
"0.5964517",
"0.59636074",
"0.5962567",
"0.5951574",
"0.59441435",
"0.59272647",
"0.5926311",
"0.59220254",
"0.5913596",
"0.59055877"
] | 0.6314069 | 38 |
Sets the memory cache size based on a percentage of the max available VM memory. Eg. setting percent to 0.2 would set the memory cache to one fifth of the available memory. | public void setMemCacheSizePercent(float percent) {
if (percent < 0.01f || percent > 0.8f) {
throw new IllegalArgumentException("setMemCacheSizePercent - percent must be "
+ "between 0.01 and 0.8 (inclusive)");
}
memCacheSize = Math.round(percent * Runtime.getRuntime().maxMemory() / 1024);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCurrentMemoryFailoverResourcesPercent(int currentMemoryFailoverResourcesPercent) {\r\n this.currentMemoryFailoverResourcesPercent = currentMemoryFailoverResourcesPercent;\r\n }",
"public void setMaxIdleTimeoutPercent(float percent) {\n if (initialized)\n throw new IllegalStateException(INITIALIZED);\n if (percent < 0f || percent > 1f)\n throw new IllegalArgumentException(\"Percent must be between 0 and 1!\");\n maxIdleShrinkPercent = percent;\n }",
"public void setPercent(int percent) {\n\t\tdouble multiplier = Math.pow((double) percent, CURVE)\n\t\t\t\t/ Math.pow(100.00d, CURVE);\n\t\tLog.v(TAG, \"setting percent to: \" + percent + \" via multiplier: \"\n\t\t\t\t+ multiplier);\n\t\tsetMeters(((MAX_METERS - MIN_METERS) * multiplier) + MIN_METERS);\n\t}",
"void setMaximumCacheSize(int maximumCacheSize);",
"public void setMaxMemoryMigrationPercentile(double max_mig_percentile) {\n this.max_mig_percentile = max_mig_percentile;\n reset();\n }",
"public static native void setMaxCacheMem(int max_mem);",
"public void setMaxMemoryCacheSize(int val) {\n this.mMaxMemoryCacheSize = val;\n }",
"private void setMaxCacheMemSize(long maxSize) {\n\t\tif ( maxSize < 25 * 1024 ) {\n\t\t\tthrow new IllegalAccessError(\"Cache size must be at least 25 KB (\"+(25*1024)+\" bytes)\");\n\t\t}\n\t\tlog.info(\"setCacheSize(): New cache size: \"+maxSize+\" bytes.\");\n\t\tfinal boolean shrink = this.maxSize > maxSize;\n\t\tthis.maxSize = maxSize;\n\t\tif ( shrink ) {\n\t\t\tpurgeCache(true);\n\t\t}\n\t}",
"public void setMemMax(long memMax) {\n this.memMax = memMax;\n }",
"public void setExecutionPercentage(double percentage);",
"public static void SPsetMessageTextSizePercentage(Context context, int percent){\n Log.i(\"FUNTEXT textsizeP\", \"size is int value percent of \" +percent);\n SharedPreferences.Editor edit = context.getSharedPreferences(\"DEFAULTS\", Context.MODE_PRIVATE).edit();\n edit.putInt(\"messageTextSize\", percent);\n edit.apply();\n\n ArrayList<Outfit> list = getOutfitList(context);\n if(list.size()>0){\n for(int i = 0 ; i<list.size(); i++){\n list.get(i).setSizePercent(percent);\n }\n saveOutfitJSON(context, list);\n }\n }",
"public void setPercent(double percent) {\r\n\t\tthis.percent = percent;\r\n\t}",
"public void setMaxCacheEntries(int val) {\n this.mMaxCacheEntries = val;\n }",
"public void setMaxMana(float maxMana)\n {\n float percentage;\n\n if (getMaxMana() > 0)\n {\n percentage = getMana() / getMaxMana();\n }\n else\n {\n percentage = 1.0f;\n }\n\n this.maxMana = maxMana;\n\n // Update the mana to continue as the same percentage of the max.\n setMana( getMaxMana() * percentage );\n }",
"public void setMiterLimit(float limit);",
"public MemoryCache() {\n\t\t// use 25% of available heap size\n\t\tsetLimit(Runtime.getRuntime().maxMemory() / 10);\n\t}",
"public void setParallelAnalysisPercentileValue(double percent){\n this.percentile = percent;\n }",
"public void setPercent(float value) {\n this.percent = value;\n }",
"public void setMaxCacheEntrySize(int val) {\n this.mMaxCacheEntrySize = val;\n }",
"public void setMemUsedMax(long memUsedMax) {\n this.memUsedMax = memUsedMax;\n }",
"@Override\n\tpublic void setCacheSize(long bps) {\n\t\t\n\t}",
"public void setUnitsPerPercent(double unitsPerPercent)\n {\n this.unitsPerPercent = unitsPerPercent;\n }",
"public synchronized void updateMemory(){\n \tint memory = Math.round(System.getRuntime().totalMemory()/System.getRuntime().freeMemory());\n \tstore(new DisplayableData(\"memory\", \"M\"+memory+\"%\", memory));\n }",
"public static native void setMaxCache(int max);",
"private void setMemorySize() { }",
"public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }",
"public void setMaximumCacheSize(int i) {\n this.maximumCacheSize = i;\n shrinkCacheToMaximumSize();\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.965 -0500\", hash_original_method = \"B06B3FDC2D2CDF223C79F9432CF6B221\", hash_generated_method = \"EC13B61AE91A640A596BB8C3880035C6\")\n \n public void setCacheSize(int bytes){\n \t//Formerly a native method\n \taddTaint(bytes);\n }",
"protected void setMaxManaPerLevel(double maxManaPerLevel) \r\n\t{\tthis.maxManaPerLevel = maxManaPerLevel;\t}",
"public int getCurrentMemoryFailoverResourcesPercent() {\r\n return currentMemoryFailoverResourcesPercent;\r\n }",
"public void setCurrentCpuFailoverResourcesPercent(int currentCpuFailoverResourcesPercent) {\r\n this.currentCpuFailoverResourcesPercent = currentCpuFailoverResourcesPercent;\r\n }",
"public void setPercentage(Number value) {\n setAttributeInternal(PERCENTAGE, value);\n }",
"public Builder setMaxDiskCacheSize(int val) {\n mMaxDiskCacheSize = val;\n return this;\n }",
"public void megabytesPerSecond(Double val)\n\t{\n\t\tsetValue(val, DataRateUnit.MEGABYTES_PER_SEC);\n\t}",
"public static String retornaPercentualUsadoDeMemoriaJVM() {\r\n\t\tRuntime runtime = Runtime.getRuntime();\r\n\t\t\r\n\t\tlong max = runtime.maxMemory();\r\n\t\tlong free = runtime.freeMemory();\r\n\t\tlong used = max - free;\r\n\r\n\t\tNumberFormat format = NumberFormat.getInstance();\r\n\r\n\t\t// Retorna o percentual da memoria usada\r\n\t\tString percentualMemoriaUsada = format.format(((used * 100) / max));\r\n\r\n\t\treturn percentualMemoriaUsada;\r\n\t}",
"public BitmapMemoryCache() {\r\n //use 25% of available heap size\r\n setLimit(Runtime.getRuntime().maxMemory() / 4);\r\n }",
"long getMemLimit();",
"public void setBaseLimit() {\n //sets the bas and the limit in memory\n machine.memory.setBase(0);\n machine.memory.setLimit(Machine.MEMORY_SIZE);\n }",
"public void setMaxAlturaCM(float max);",
"public MMAge(Context context){\n\t\tthis.context = context;\n\t\tresult = \"MMAge percentage goes here\";\n\t\tpercentage = 40.0;\n\t\tresultAvailable = true;\n\t}",
"int getMaximumCacheSize();",
"public void setFreeDiskSpaceWarningLevel(int percentage) {\n this.mDiskWarningAngle = (360 * percentage) / 100;\n }",
"public static void zoomOutPage(int percent) {\r\n\t\tJavascriptExecutor js = (JavascriptExecutor) base.driver;\r\n\t\tjs.executeScript(\"document.body.style.zoom='\" + percent + \"%'\");\r\n\t}",
"public synchronized void setHighUnits(int cMax)\n {\n if (cMax < 0)\n {\n throw new IllegalArgumentException(\"high units out of bounds\");\n }\n\n boolean fShrink = cMax < m_cMaxUnits;\n\n m_cMaxUnits = cMax;\n\n // ensure that low units are in range\n setLowUnits((int) (m_dflPruneLevel * cMax));\n\n if (fShrink)\n {\n checkSize();\n }\n }",
"protected void setMaxHealthPerLevel(double maxHealthPerLevel) \r\n\t{\tthis.maxHealthPerLevel = maxHealthPerLevel;\t}",
"@Override\n public void setMaxSize(int maxSize){\n if (maxSize < 0){\n throw new IllegalArgumentException(\"Memory cache size must not be negative\");\n }\n\n this.maxSize = maxSize;\n\n if (maxSize == 0){\n // unlimited cache size\n return;\n }\n\n int cacheSize = this.size();\n if (cacheSize > maxSize){\n // max cache size is less than current cache size\n // delete all object that are out of bound\n ArrayList<K> cacheObjects = new ArrayList<>(this.cache.keySet());\n for (int i = maxSize; i < cacheSize; i++){\n this.delete(cacheObjects.get(i));\n }\n }\n }",
"public void setMeasureSpace(float measurespace) {\n\t\tthis.measurespace = measurespace;\n\t}",
"public void setMaxUnit(int max) {\n maxUnit = max;\n }",
"public void setMaxLoadFactor(double loadFactor)\n {\n MAX_LOAD_FACTOR = loadFactor;\n }",
"@Beta\npublic interface BitmapMemoryCache<K> extends MemoryCache<K, Bitmap> {\n\n /**\n * Default maximum percentage of the application memory to use when configuring a bitmap memory\n * cache.\n */\n public static final float DEFAULT_MAX_MEMORY_PERCENTAGE = 10f;\n\n}",
"int getCacheSizeInMiB();",
"public void shrinkCacheToMaximumSize() {\n while (this.cacheSize > this.maximumCacheSize) {\n getNodeFromCache();\n }\n }",
"public void setMaxmemory(String max) {\r\n getCommandLine().setMaxmemory(max);\r\n }",
"public void setMaxHealth(float maxHealth)\n {\n float percentage;\n\n if (getMaxHealth() > 0)\n {\n percentage = getHealth() / getMaxHealth();\n }\n else\n {\n percentage = 1.0f;\n }\n\n this.maxHealth = maxHealth;\n\n // Update the health to continue as the same percentage of the max.\n setHealth( getMaxHealth() * percentage );\n }",
"public void setTotalRamGB (double totalRamGB) \n\t{ \n\t\tfinal Set<Resource> res = n.getResources(RESOURCETYPE_RAM);\n\t\tif (res.size() > 1) throw new Net2PlanException (\"Format error\");\n\t\tif (res.isEmpty()) \n\t\t\tres.add(n.getNetPlan().addResource(RESOURCETYPE_RAM, RESOURCETYPE_RAM, Optional.of(n), totalRamGB, \"GB\", new HashMap<> (), 0.0, null));\n\t\telse \n\t\t\tres.iterator().next().setCapacity(totalRamGB, new HashMap<> ());\n\t}",
"public void setGranularityInMB(long value) {\n this.granularityInMB = value;\n }",
"public abstract void setPercentDead(double percent);",
"private void setProgressPercent(Integer integer) {\n\t\t\n\t}",
"private void setDefaultStepSize(ResourceEnum cacheType) {\n switch (cacheType) {\n case FIELD_DATA_CACHE:\n // Field data cache having step size of 512MB\n this.stepSizeInBytes = (long) 512 * MB_TO_BYTES;\n break;\n case SHARD_REQUEST_CACHE:\n // Shard request cache step size of 512KB\n this.stepSizeInBytes = (long) 512 * KB_TO_BYTES;\n break;\n default:\n throw new IllegalArgumentException(\n String.format(\"Unrecognizable cache type: [%s]\", cacheType.toString()));\n }\n }",
"@Override\n\tpublic void setStorageSpace(int amount) {\n\t\tif(network==null)return;\n\t\tnetwork.setBytesLimit(gibibytesToBytes(amount));\n\t\tNetwork.log(\"Set new storage amount\");\n\t}",
"@Override\r\n\tpublic void setPercentage(BigDecimal percentage) {\r\n\t\tif(percentage==null) return;\r\n\t\tsuper.setCalculationPercent(new Percent(percentage));\r\n\t}",
"public void setPercentThreshold(double d)\n {\n percentThreshold = d;\n }",
"public void setMaxVcpusPerFtVm(java.lang.Integer maxVcpusPerFtVm) {\r\n this.maxVcpusPerFtVm = maxVcpusPerFtVm;\r\n }",
"public Builder setQuality(int percent) {\n if (percent > 0 || percent < 100) {\n this.quality = percent;\n }\n return this;\n }",
"public void setMem(int taille_tache, int n) {\r\n if (n == 1)\r\n this.memoire -= taille_tache; // lors du placement de la tache\r\n\r\n else this.memoire += taille_tache;// lors de la fin de la tache, liberer l'espace memoire\r\n }",
"private void setHealth(double healthPercentage) {\n eliteMob.setHealth(this.maxHealth * healthPercentage);\n }",
"double getLeftoverMemoryPercentile() {\n return MathUtils.toPercentile(getLeftoverMemory(), pm.getMemory());\n }",
"private void percentageScaling() {\n switch (slot) {\n case Torso -> updateBonusStats(1);\n case Head -> updateBonusStats(0.8);\n case Legs -> updateBonusStats(0.6);\n }\n }",
"public void setCacheMaxSizeKB(int maxSizeKB) {\n cacheHandler.setMaxCacheSizeKB(maxSizeKB);\n resetChain();\n }",
"@BindingAdapter(value = {\"app:progressScaled\", \"android:max\"}, requireAll = true)\n public static void setProgress(ProgressBar progressBar,int like,int max){\n if((like * max / 5)>max){\n progressBar.setProgress(max);\n }else{\n progressBar.setProgress(like * max / 5);\n }\n }",
"public int getCacheSize(){ return Integer.parseInt(cacheSize.getText()); }",
"public void setPercentiles(double percMin, double percMax) {\n _clips.setPercentiles(percMin,percMax);\n }",
"public void setProgress(int percent) {\n setProgress((float) percent / 100);\n }",
"public void setCacheSize(int size) {\n\t\t_cacheSize = size;\n\t}",
"public void setChangeRateFactor(double percent) {\r\n\t\tchangeRateFactor = Math.abs(percent);\r\n\t}",
"protected void setBaseMaxMana(int baseMaxMana) \r\n\t{\tthis.baseMaxMana = baseMaxMana;\t}",
"protected void setManaRegenPerLevel(double manaRegenPerLevel)\r\n\t{\tthis.manaRegenPerLevel = manaRegenPerLevel;\t}",
"public void setMaximum( final double max )\n\t{\n\t\tthis.max = max;\n\t\tthis.oneOverMax = 1d / this.max;\n\t}",
"public void _setMax(float max)\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n setMaximum((int) (max * 100));\r\n } else\r\n {\r\n setMaximum((int) max);\r\n }\r\n }",
"public void setTotalCellularityPercentage(double totalCellularityPercentage)\r\n \t{\r\n \t\tthis.totalCellularityPercentage = totalCellularityPercentage;\r\n \t}",
"public static void setDiskCacheSize(long size) {\n sDiskCacheSize = size;\n }",
"public void setMaxHealth(int newMaxHealth)\r\n\t{\r\n\t\tMaxHealth = newMaxHealth;\r\n\t}",
"protected void setBaseMaxHealth(int baseMaxHealth) \r\n\t{\tthis.baseMaxHealth = baseMaxHealth;\t}",
"public void setCost(int maxTemp) {\n\t\tthis.cost = 900 + (200 * (Math.pow( 0.7, ((double)maxTemp/5.0) )));\n\t}",
"@Override\n public int getCacheSize() {\n return 4 + 20 * (4 + 4 + 8);\n }",
"public void getHitPercent(double hitPer) {\r\n\t\thitPercent = hitPer;\r\n\t}",
"private void setRegToMax(int register) {\r\n\t\tsim40.memory[register] = 1024;\r\n\t\tswitchOnFlag(2);\r\n\t}",
"public void setMaxLifeUsage (BigDecimal MaxLifeUsage)\n\t{\n\t\tset_Value (COLUMNNAME_MaxLifeUsage, MaxLifeUsage);\n\t}",
"public T setTargetPercentage(float perc)\n\t{\n\t\tif (isStarted())\n\t\t{\n\t\t\tLttl.Throw(\"Can't change target percentage after tween has started.\");\n\t\t}\n\t\ttargetPercentage = LttlMath.Clamp01(perc);\n\t\treturn (T) this;\n\t}",
"public void setPercentage() {\n\t\tif (this.winnumber == 0) {\n\t\t\tthis.percentage = 0;\n\t\t} else {\n\t\t\tthis.percentage = (double) this.winnumber * 100 / (double) this.gamenumber;\n\t\t}\n\t}",
"public void testPercentSwapFreeAtThreshold() {\n String jvmOptions = null;\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setSwap(1000);\n jvmRun.getJvm().setSwapFree(946);\n jvmRun.doAnalysis();\n Assert.assertEquals(\"Percent swap free not correct.\", 95, jvmRun.getJvm().getPercentSwapFree());\n Assert.assertFalse(Analysis.INFO_SWAPPING + \" analysis incorrectly identified.\",\n jvmRun.getAnalysis().contains(Analysis.INFO_SWAPPING));\n }",
"@Method(selector = \"resizeByPercentage:imagePath:percentage:completionBlock:\")\n\tpublic native void resizeByPercentage(String name, String imagePath, double percentage, @Block App42ResponseBlock completionBlock);",
"public Builder setPercentage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n percentage_ = value;\n onChanged();\n return this;\n }",
"public void setBoundingBoxSize(float percentageWidthReduced,\n float percentageHeightReduced) {\n float width;\n float height;\n float widthReductionAmount = 1.0f - percentageWidthReduced;\n //.8f for 20% (1 - .20)\n float heightReductionAmount = 1.0f - percentageHeightReduced;\n //.8f for 20% (1 - .20)\n if (widthReductionAmount > 0 && widthReductionAmount < 1) {\n width = Entity.FRAME_WIDTH * widthReductionAmount;\n } else {\n width = Entity.FRAME_WIDTH;\n }\n\n if (heightReductionAmount > 0 && heightReductionAmount < 1) {\n height = Entity.FRAME_HEIGHT * heightReductionAmount;\n } else {\n height = Entity.FRAME_HEIGHT;\n }\n\n if (width == 0 || height == 0) {\n Gdx.app.debug(TAG, \"Width and Height are 0!! \" + width + \":\" + height);\n }\n\n //neet do account for the unitscale, since the map coordiantes will be in pixels\n float minX;\n float minY;\n if (MapManager.UNIT_SCALE > 0) {\n minX = _nextEntityPosition.x / MapManager.UNIT_SCALE;\n minY = _nextEntityPosition.y / MapManager.UNIT_SCALE;\n } else {\n minX = _nextEntityPosition.x;\n minY = _nextEntityPosition.y;\n }\n _boundingBox.set(minX, minY, width, height);\n }",
"public Builder setTotalFreeSpaceInBytes(long value) {\n \n totalFreeSpaceInBytes_ = value;\n onChanged();\n return this;\n }",
"public Builder setTotalFreeSpaceInBytes(long value) {\n \n totalFreeSpaceInBytes_ = value;\n onChanged();\n return this;\n }",
"public void setMaxQuota(Integer value) {\n setAttributeInternal(MAXQUOTA, value);\n }",
"BigDecimal getCacheSpaceAvailable();",
"public static void SetMaxPassengers(double inLimit) \r\n {\r\n if (inLimit > 0) \r\n {\r\n maxPassengers = inLimit;\r\n } \r\n else \r\n {\r\n maxPassengers = 0;\r\n }\r\n }",
"@Override\n public int getCacheSize() {\n return 4 + 20 * 88;\n }"
] | [
"0.632179",
"0.6249181",
"0.6249152",
"0.62106633",
"0.6177097",
"0.60246587",
"0.59542394",
"0.5758965",
"0.5691169",
"0.5684162",
"0.5637075",
"0.56105155",
"0.555131",
"0.5513002",
"0.5472681",
"0.5427938",
"0.54101527",
"0.5408252",
"0.5407912",
"0.54069114",
"0.5377022",
"0.5363628",
"0.5360094",
"0.53511125",
"0.5308155",
"0.5280817",
"0.5259788",
"0.5254264",
"0.52438784",
"0.52265245",
"0.52225477",
"0.5157949",
"0.5147054",
"0.5141133",
"0.51240236",
"0.5121203",
"0.5115803",
"0.5113572",
"0.5111071",
"0.5109961",
"0.5086401",
"0.5074858",
"0.5065373",
"0.50636756",
"0.5037213",
"0.5028012",
"0.5025192",
"0.5019166",
"0.50146943",
"0.50048643",
"0.5003912",
"0.49829346",
"0.49748483",
"0.49706903",
"0.49694872",
"0.4963607",
"0.49565265",
"0.49450892",
"0.49397683",
"0.49357274",
"0.49345717",
"0.49344975",
"0.49308452",
"0.49250504",
"0.49117425",
"0.4902113",
"0.49013895",
"0.48783687",
"0.48557773",
"0.4853666",
"0.48528308",
"0.48514244",
"0.48472622",
"0.48422253",
"0.48421618",
"0.48215792",
"0.48202625",
"0.4819812",
"0.4816399",
"0.48079726",
"0.48006433",
"0.47994325",
"0.4796033",
"0.47837347",
"0.47721922",
"0.4771939",
"0.4765119",
"0.47572538",
"0.4757245",
"0.47563747",
"0.4755497",
"0.4747031",
"0.4745318",
"0.47382838",
"0.472572",
"0.472572",
"0.47244245",
"0.4722856",
"0.47190368",
"0.47189555"
] | 0.82679117 | 0 |
Return the byte usage per pixel of a bitmap based on its configuration. | private static int getBytesPerPixel(Bitmap.Config config) {
if (config == Bitmap.Config.ARGB_8888) {
return 4;
} else if (config == Bitmap.Config.RGB_565) {
return 2;
} else if (config == Bitmap.Config.ARGB_4444) {
return 2;
} else if (config == Bitmap.Config.ALPHA_8) {
return 1;
}
return 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int m61449a(Bitmap bitmap) {\n return bitmap.getByteCount();\n }",
"public static int getBitmapSize(Bitmap bitmap){\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR1) {\n return bitmap.getByteCount();\n }\n // Pre HC-MR1\n return bitmap.getRowBytes() * bitmap.getHeight();\n\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR1)\n @Override\n protected int sizeOf(String key, Bitmap bitmap) {\n final int bitmapSize = bitmap.getByteCount() / 1024;\n return bitmapSize == 0 ? 1 : bitmapSize;\n }",
"@Override\n protected int sizeOf(String key, Bitmap bitmap) {\n final int bitmapSize = getBitmapSize(bitmap) / 1024;\n return bitmapSize == 0 ? 1 : bitmapSize;\n }",
"@SuppressLint(\"NewApi\")\n\t\t\t\t@Override\n\t\t\t\tprotected int sizeOf(String key, Bitmap bitmap) {\n\t\t\t\t\treturn bitmap.getByteCount() / 1024;\n\t\t\t\t}",
"@Override\n protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getByteCount() / 1024;\n }",
"@TargetApi(12)\n public static int getBitmapSize(Bitmap bitmap) {\n if (ConfigUtil.hasV12()) {\n return bitmap.getByteCount();\n }\n // Pre HC-MR1\n return bitmap.getRowBytes() * bitmap.getHeight();\n }",
"@Override\n protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getByteCount() / 1024;\n }",
"@Override\n protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getByteCount() / 1024;\n }",
"@Override\n protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getByteCount() / 1024;\n }",
"public int pixelCount()\n {\n int pixelCount = cat.getWidth() * cat.getHeight();\n return pixelCount;\n\n }",
"protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getByteCount();\n }",
"int getBitsPerPixel();",
"@Override\n\t\t\tprotected int sizeOf(String key, Bitmap value) {\n\t\t\t\treturn value.getRowBytes()*value.getHeight();\n\t\t\t}",
"public float getPixelSize() {\n\n\t\tfloat pixelSize = 0;\n\t\tfloat zoom = getFloat(ADACDictionary.ZOOM);\n\n\t\t// Get calibration factor (CALB)\n\t\tString calString = extrasMap.get(ExtrasKvp.CALIB_KEY);\n\n\t\t// Some wholebody images have height > width. Typically 1024x512.\n\t\t// Crocodile eats the biggest.\n\t\tshort height = getHeight();\n\t\tshort width = getWidth();\n\t\tshort dim = height > width ? height : width;\n\n\t\tif (dim > 0 && calString != null) {\n\n\t\t\ttry {\n\n\t\t\t\tfloat cal = Float.parseFloat(calString);\n\n\t\t\t\t// Now calculate the pixel size\n\t\t\t\tpixelSize = (1024 * cal) / (dim * zoom);\n\n\t\t\t} catch (NumberFormatException e) {\n\n\t\t\t\tlogger.log(\"Unable to parse calibration factor\");\n\t\t\t\tpixelSize = getRoughPixelSize();\n\n\t\t\t}\n\t\t} else {\n\t\t\tpixelSize = getRoughPixelSize();\n\t\t}\n\n\t\treturn pixelSize;\n\n\t}",
"public int getPixelSize() {\n\t\treturn pixelSize;\n\t}",
"public static int getBitmapSize(Bitmap bitmap) {\n\t\t// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR1) {\n\t\t// return bitmap.getByteCount();\n\t\t// }\n\t\t// Pre HC-MR1\n\t\treturn bitmap.getRowBytes() * bitmap.getHeight();\n\t}",
"@Override\r\n protected int sizeOf(String key, Bitmap b) {\n return b.getHeight() * b.getWidth() * 4;\r\n }",
"int getCacheSizeInMiB();",
"@Override\n\t \tprotected int sizeOf(Object key, Object value) {\n\t\t\t\tBitmap bitmap = (Bitmap) value;\n\t return bitmap.getRowBytes() * bitmap.getHeight();\n\t \t}",
"public static int getCacheSize(Context ctx) {\n final DisplayMetrics displayMetrics = ctx.getResources().\n getDisplayMetrics();\n final int screenWidth = displayMetrics.widthPixels;\n final int screenHeight = displayMetrics.heightPixels;\n // 4 bytes per pixel\n final int screenBytes = screenWidth * screenHeight * 4;\n\n return screenBytes * 3;\n }",
"private static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n}",
"private float getRoughPixelSize() {\n\n\t\tfloat size = 380; // mm\n\t\tfloat pixels = getHeight();\n\t\treturn pixels > 0 ? size / pixels : 0;\n\n\t}",
"public static long getBitmapResolution(String filename) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(filename, options);\n final int height = options.outHeight;\n final int width = options.outWidth;\n return height * width;\n }",
"private void getBitmapSize(Uri uri) {\n InputStream is = null;\n try {\n\n is = getInputStream(uri);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(is, null, options);\n\n width = options.outWidth;\n height = options.outHeight;\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException ignored) {\n }\n }\n }\n }",
"@TargetApi(12)\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected int sizeOf(BareJID key, Bitmap bitmap) {\n\t\t\t\t\t\treturn bitmap == mPlaceHolderBitmap ? 0 : bitmap.getByteCount();\n\t\t\t\t\t}",
"public static int sizeBits_sampleCnt() {\n return 32;\n }",
"public static int size_sampleCnt() {\n return (32 / 8);\n }",
"public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n}",
"public double getPixelSize() {\n\t\treturn 0;\n\t}",
"private int getBufferSize() {\n int maxBandOff = bandOffsets[0];\n for (int i = 1; i < bandOffsets.length; i++) {\n maxBandOff = Math.max(maxBandOff, bandOffsets[i]);\n }\n\n if (maxBandOff < 0 || maxBandOff > (Integer.MAX_VALUE - 1)) {\n throw new IllegalArgumentException(\"Invalid band offset\");\n }\n\n if (pixelStride < 0 || pixelStride > (Integer.MAX_VALUE / width)) {\n throw new IllegalArgumentException(\"Invalid pixel stride\");\n }\n\n if (scanlineStride < 0 || scanlineStride > (Integer.MAX_VALUE / height)) {\n throw new IllegalArgumentException(\"Invalid scanline stride\");\n }\n\n int size = maxBandOff + 1;\n\n int val = pixelStride * (width - 1);\n\n if (val > (Integer.MAX_VALUE - size)) {\n throw new IllegalArgumentException(\"Invalid pixel stride\");\n }\n\n size += val;\n\n val = scanlineStride * (height - 1);\n\n if (val > (Integer.MAX_VALUE - size)) {\n throw new IllegalArgumentException(\"Invalid scan stride\");\n }\n\n size += val;\n\n return size;\n }",
"protected static int getSizeInBytesFromCardinalityEtc(int card, int numRuns,\n boolean isRunEncoded) {\n if (isRunEncoded) {\n return 2 + numRuns * 2 * 2; // each run uses 2 chars, plus the initial char giving num runs\n }\n boolean isBitmap = card > MappeableArrayContainer.DEFAULT_MAX_SIZE;\n if (isBitmap) {\n return MappeableBitmapContainer.MAX_CAPACITY / 8;\n } else {\n return card * 2;\n }\n\n }",
"private static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n Log.i(\"sampleImage\", \"Displaying img at \" + reqWidth + \"px x \" + reqHeight + \"px (\" + inSampleSize + \" SampleSize)\");\n\n return inSampleSize;\n }",
"private int caculateInSampleSize(BitmapFactory.Options options, int width, int height) {\r\n int outWidth = options.outWidth;\r\n int outHeight = options.outHeight;\r\n int inSampleSize=1;\r\n if (outWidth>width||outHeight>height){\r\n int widthRadio= Math.round(outWidth*1.0f/width);\r\n int heightRadio= Math.round(outHeight*1.0f/height);\r\n inSampleSize= Math.max(widthRadio,heightRadio);\r\n }\r\n\r\n return inSampleSize;\r\n }",
"public int getBytesPerSample();",
"public long totalRAM( long fusedSizeMB, final int bytePerPixel )\n\t\t{\n\t\t\tlong inputImagesMB = 0;\n\n\t\t\tlong maxNumPixelsInput = FusionGUI.maxNumInputPixelsPerInputGroup( data, viewIds, 2 );\n\n\t\t\t// assume he have to load 50% higher resolved data\n\t\t\tdouble inputDownSampling = FusionGUI.isMultiResolution( data ) ? downsampling / 1.5 : 1.0;\n\n\t\t\tfinal int inputBytePerPixel = FusionGUI.inputBytePerPixel( viewIds.get( 0 ), data );\n\n\t\t\tif ( FusionGUI.isImgLoaderVirtual( data ) )\n\t\t\t{\n\t\t\t\t// either 50% of the RAM or 5% of the downsampled input\n\t\t\t\tinputImagesMB = Math.min(\n\t\t\t\t\t\tRuntime.getRuntime().maxMemory() / ( 1024*1024*2 ),\n\t\t\t\t\t\t( ( ( maxNumPixelsInput / Math.round( inputDownSampling * 1024*1024 ) ) * inputBytePerPixel ) / 20 ) );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tinputImagesMB = Math.round( maxNumPixelsInput / ( inputDownSampling * 1024*1024 ) ) * inputBytePerPixel;\n\t\t\t}\n\n\t\t\tlong processingMB = 0;\n\n\t\t\tfusedSizeMB /= Math.max( 1, Math.round( Math.pow( fusedSizeMB, 0.3 ) ) );\n\n\t\t\treturn inputImagesMB + processingMB + fusedSizeMB;\n\t\t}",
"public static int sizeBits_cost() {\n return 16;\n }",
"static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n // Raw height and width of image\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n || (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n return inSampleSize;\n }",
"@Override\n\t\t\t\t\tprotected int sizeOf(BareJID key, Bitmap bitmap) {\n\t\t\t\t\t\treturn bitmap == mPlaceHolderBitmap ? 0 : (bitmap.getRowBytes() * bitmap.getHeight());\n\t\t\t\t\t}",
"int getSampleSize();",
"public int calculateInSampleSize(\r\n\r\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\r\n final int width = options.outWidth;\r\n int inSampleSize = 1;\r\n\r\n if (height > reqHeight || width > reqWidth) {\r\n if (width > height) {\r\n inSampleSize = Math.round((float)height / (float)reqHeight);\r\n } else {\r\n inSampleSize = Math.round((float)width / (float)reqWidth);\r\n }\r\n }\r\n\r\n return inSampleSize;\r\n }",
"public static int totalSizeBits_data() {\n return 480;\n }",
"public static int totalSize_data() {\n return (480 / 8);\n }",
"public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n // Tamaño original del mapa de bits (width 3300 x height 1650).\n // Tamaño deseado (reqWidth 330 x reqHeight 200).\n\n if (height > reqHeight || width > reqWidth) {\n\n // Calculate ratios of height and width to requested height and width\n final int heightRatio = Math.round((float) height / (float) reqHeight); // Res: 8\n final int widthRatio = Math.round((float) width / (float) reqWidth); // Res: 10.\n\n // Choose the smallest ratio as inSampleSize value, this will guarantee\n // a final image with both dimensions larger than or equal to the\n // requested height and width.\n inSampleSize = Math.max(heightRatio, widthRatio);\n }\n return inSampleSize;\n }",
"protected int pixelOneSample() {\r\n\t\treturn getGraphWidth() / section.getLength();\r\n\t}",
"public float getDCMb();",
"private long countPanBytes(int maxRes) {\n\t\tlong numPixels = 0;\n\t\tfor (int n=0; n<panImageList.length; n++) {\n\t\t\tPanImageEntry panEntry = panImageList[n];\n\t\t\tif (panEntry.imageListEntry.enabled) {\n\t\t\t\tint width = panEntry.imageListEntry.getImageMetadataEntry().n_line_samples;\n\t\t\t\tint height = panEntry.imageListEntry.getImageMetadataEntry().n_lines;\n\t\t\t\twidth = PanImageLoader.fixDimension(width);\n\t\t\t\theight = PanImageLoader.fixDimension(height);\n\t\t while ((width > maxRes) || (height > maxRes)) {\n\t\t \twidth = width >> 1;\n\t\t \theight = height >> 1;\n\t\t }\n\t\t if (mipmap) {\n\t\t \twhile ((width>4) || (height>4)) {\n\t\t\t\t\t\tnumPixels = numPixels + width * height * 4;\n\t\t\t \twidth = width >> 1;\n\t\t\t \theight = height >> 1;\n\t\t \t}\n\t\t }\n\t\t else {\n\t\t\t\t\tnumPixels = numPixels + width * height * 4;\n\t\t }\n\t\t\t}\n\t\t}\n\t\treturn numPixels;\t\t\n\t}",
"private int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }",
"private static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n // Raw height and width of image\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n return inSampleSize;\n }",
"public static int size_quality() {\n return (16 / 8);\n }",
"public static int getTileBitSize() {\n return TILE_BIT_SIZE;\n }",
"private static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n\t\tfinal int height = options.outHeight;\r\n\t\tfinal int width = options.outWidth;\r\n\t\tint inSampleSize = 1;\r\n\r\n\t\tif (height > reqHeight || width > reqWidth) {\r\n\t\t\tfinal int halfHeight = height / 2;\r\n\t\t\tfinal int halfWidth = width / 2;\r\n\r\n\t\t\t// Calculate the largest inSampleSize value that is a power of 2 and\r\n\t\t\t// keeps both\r\n\t\t\t// height and width larger than the requested height and width.\r\n\t\t\twhile ((halfHeight / inSampleSize) > reqHeight && (halfWidth / inSampleSize) > reqWidth) {\r\n\t\t\t\tinSampleSize *= 2;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn inSampleSize;\r\n\t}",
"public int calculateSize( int numSamples )\n {\n return numSamples * 2;\n }",
"public int calculateInSampleSize(\n\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n if (width > height) {\n inSampleSize = Math.round((float)height / (float)reqHeight);\n } else {\n inSampleSize = Math.round((float)width / (float)reqWidth);\n }\n }\n\n return inSampleSize;\n }",
"public double getTotalHdGB () { return n.getResources(RESOURCETYPE_HD).stream().mapToDouble(r->r.getCapacity()).sum (); }",
"public static int sizeBits_quality() {\n return 16;\n }",
"private static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n return inSampleSize;\n }",
"private static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }",
"private static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }",
"public int getCallUnderScanValue() {\n return mNumCallsPerPixel;\n }",
"public static int calculateInSampleSize(BitmapFactory.Options options, \n \t\t\tint reqWidth, int reqHeight) {\n \t\t// Raw height and width of image\n \t\tfinal int height = options.outHeight;\n \t\tfinal int width = options.outWidth;\n \t\tint inSampleSize = 1;\n \n \t\tif (height > reqHeight || width > reqWidth) {\n \t\t\tif (width > height) {\n \t\t\t\tinSampleSize = Math.round((float)height / (float)reqHeight); \n \t\t\t} else {\n \t\t\t\tinSampleSize = Math.round((float)width / (float)reqWidth); \n \t\t\t} \n \t\t}\n \n \t\treturn inSampleSize; \n \t}",
"public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n // Raw height and width of image\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n if (width > height) {\n inSampleSize = Math.round((float)height / (float)reqHeight);\n } else {\n inSampleSize = Math.round((float)width / (float)reqWidth);\n }\n }\n return inSampleSize;\n\t}",
"private static int calculateInSampleSize(BitmapFactory.Options options,\n\t\t\tint reqWidth, int reqHeight) {\n\t\tfinal int height = options.outHeight;\n\t\tfinal int width = options.outWidth;\n\t\tint inSampleSize = 1;\n\n\t\tif (height > reqHeight || width > reqWidth) {\n\n\t\t\t// Calculate ratios of height and width to requested height and\n\t\t\t// width\n\t\t\tfinal int heightRatio = Math.round((float) height\n\t\t\t\t\t/ (float) reqHeight);\n\t\t\tfinal int widthRatio = Math.round((float) width / (float) reqWidth);\n\n\t\t\t// Choose the smallest ratio as inSampleSize value, this will\n\t\t\t// guarantee a final image\n\t\t\t// with both dimensions larger than or equal to the requested height\n\t\t\t// and width.\n\t\t\tinSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio;\n\n\t\t\t// This offers some additional logic in case the image has a strange\n\t\t\t// aspect ratio. For example, a panorama may have a much larger\n\t\t\t// width than height. In these cases the total pixels might still\n\t\t\t// end up being too large to fit comfortably in memory, so we should\n\t\t\t// be more aggressive with sample down the image (=larger\n\t\t\t// inSampleSize).\n\n\t\t\tfinal float totalPixels = width * height;\n\n\t\t\t// Anything more than 2x the requested pixels we'll sample down\n\t\t\t// further\n\t\t\tfinal float totalReqPixelsCap = reqWidth * reqHeight * 2;\n\n\t\t\twhile (totalPixels / (inSampleSize * inSampleSize) > totalReqPixelsCap) {\n\t\t\t\tinSampleSize++;\n\t\t\t}\n\t\t}\n\t\treturn inSampleSize;\n\t}",
"public int calculateInSampleSize(\n\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n if (width > height) {\n inSampleSize = Math.round((float) height\n / (float) reqHeight);\n } else {\n inSampleSize = Math.round((float) width / (float) reqWidth);\n }\n }\n\n return inSampleSize;\n }",
"public abstract long getTotalMemoryBytes(int minibatchSize, @NonNull MemoryUseMode memoryUseMode,\n @NonNull CacheMode cacheMode, @NonNull DataType dataType);",
"public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n if (width > height) {\n inSampleSize = Math.round((float) height / (float) reqHeight);\n } else {\n inSampleSize = Math.round((float) width / (float) reqWidth);\n }\n\n return inSampleSize;\n }\n return 1;\n }",
"public static int totalSizeBits_infos_metadata() {\n return 16;\n }",
"public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calcula el más grande de la muestra el valor Tamaño de que es una potencia de 2 y mantiene ambos\n // Altura y la anchura mayor que la altura y el ancho requerido.\n while ((halfHeight / inSampleSize) > reqHeight && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }",
"public int memUsage(){\n\t\tint usage = 36;\n\t\tusage += 12 * point.length;\n\t\tusage += 4 * glComannd.length;\n\t\tusage += 12 * glVertex.length;\n\t\tusage += 24 * state.length;\n\t\treturn usage;\n\t}",
"public int getPaletteCount() {\n return AviDemux.str2ulong( bih, 32 );\n }",
"public float getCacheSizeKB() {\n return ((float) cacheHandler.getCurrentCacheSizeBytes() / 1000);\n }",
"public static int sizeBits_reading() {\n return 16;\n }",
"public static int calculateInSampleSize(\r\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n\t final int height = options.outHeight;\r\n\t final int width = options.outWidth;\r\n\t int inSampleSize = 1;\r\n\t\r\n\t if (height > reqHeight || width > reqWidth) {\r\n\t\r\n\t final int halfHeight = height / 2;\r\n\t final int halfWidth = width / 2;\r\n\t\r\n\t // Calculate the largest inSampleSize value that is a power of 2 and keeps both\r\n\t // height and width larger than the requested height and width.\r\n\t while ((halfHeight / inSampleSize) > reqHeight\r\n\t && (halfWidth / inSampleSize) > reqWidth) {\r\n\t inSampleSize *= 2;\r\n\t }\r\n\t }\r\n\t\r\n\t return inSampleSize;\r\n\t}",
"private static int calculateInSampleSize(BitmapFactory.Options options,\n int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n // Calculate ratios of height and width to requested height and\n // width\n final int heightRatio = Math.round((float) height\n / (float) reqHeight);\n final int widthRatio = Math.round((float) width / (float) reqWidth);\n\n // Choose the smallest ratio as inSampleSize value, this will\n // guarantee\n // a final image with both dimensions larger than or equal to the\n // requested height and width.\n inSampleSize = heightRatio < widthRatio ? widthRatio : heightRatio;\n }\n\n return inSampleSize;\n }",
"private int[] histogram(Bitmap bmp) {\n int[] res = new int[256];\n int w = bmp.getWidth();\n int h = bmp.getHeight();\n Bitmap bmCopy = bmp.copy(bmp.getConfig(), true);\n toGray(bmCopy);\n\n int pixels[] = new int[w*h];\n bmCopy.getPixels(pixels, 0, w, 0, 0, w, h);\n for (int i = 0; i < w*h; i++)\n res[Color.red(pixels[i])]++;\n return res;\n }",
"public static int sizeBits_count() {\n return 16;\n }",
"public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\r\n final int width = options.outWidth;\r\n int inSampleSize = Math.max(height / reqHeight, width / reqWidth);\r\n int inWidthSampleSize = width / reqWidth;\r\n int inHeightSampleSize = height / reqHeight;\r\n if (inWidthSampleSize * reqWidth < width) {\r\n inWidthSampleSize++;\r\n }\r\n if (inHeightSampleSize * reqHeight < height) {\r\n inHeightSampleSize++;\r\n }\r\n\r\n return Math.max(inWidthSampleSize, inHeightSampleSize);\r\n }",
"public abstract int getBitSize();",
"public static int size_count() {\n return (16 / 8);\n }",
"public float calculateSpeedPerPixel(DisplayMetrics displayMetrics) {\n return 100.0f / ((float) displayMetrics.densityDpi);\n }",
"public String getPixelInfo()\n {\n return pixelInfo.toString();\n }",
"public static int sizeBits_counter() {\n return 32;\n }",
"public int getBitsPerComponent() {\n return bitsPerComponent;\n }",
"public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n // Tamaño original de la imagen\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }",
"public int getTotalSizeColor() {\n return totalSizeColor;\n }",
"public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is selector_not_selected power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) >= reqHeight\n && (halfWidth / inSampleSize) >= reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }",
"int getImageQualityPref();",
"public double getOutputSizeInBytes()\n {\n return totalSize;\n }",
"public int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }",
"public int calculateInSampleSize(BitmapFactory.Options options,\n int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n if (width > height) {\n inSampleSize = Math.round((float) height / (float) reqHeight);\n } else {\n inSampleSize = Math.round((float) width / (float) reqWidth);\n }\n\n final float totalPixels = width * height;\n \n final float totalReqPixelsCap = reqWidth * reqHeight * 2;\n\n while (totalPixels / (inSampleSize * inSampleSize) > totalReqPixelsCap) {\n inSampleSize++;\n }\n }\n return inSampleSize;\n }",
"public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n if (DEBUG) {\n Log.d(TAG, \"inSampleSize = \" + inSampleSize);\n }\n return inSampleSize;\n }",
"int imageCount();",
"public static int sizeBits_infos_type() {\n return 16;\n }",
"public static int totalSize_infos_metadata() {\n return (16 / 8);\n }",
"int getTileSize();",
"public int getAnalysisBits();",
"private int calculateInSampleSize(Options options, int reqWidth,\n\t\t\t\tint reqHeight) {\n\t\t\tfinal int height = options.outHeight;\n\t\t\tfinal int width = options.outWidth;\n\t\t\tint inSampleSize = 1;\n\t\t\t\n\t\t\tif (height > reqHeight || width > reqWidth){\n\t\t\t\tif(width > height){ // 작은 크기에 맞춰서 줄이는데 왜? // 큰키게에 맞춰서 줄여야지 여백이 생기더라도 이미지가 잘리지 않을 텐데\n\t\t\t\t\t//600,800경우와 300, 80 경우를 생각을 해보면 req100,100일때... 맞는거 같은데 궁금\n\t\t\t\t\t//그래서 내 생각대로 바꿈\n\t\t\t\t\tinSampleSize = Math.round((float)width / (float)reqWidth);\t\t\t\t\t\n\t\t\t\t} else{\n\t\t\t\t\tinSampleSize = Math.round((float)height / (float)reqHeight);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn inSampleSize;\n\t\t}",
"public double getTotalRamGB () { return n.getResources(RESOURCETYPE_RAM).stream().mapToDouble(r->r.getCapacity()).sum (); }",
"int getImgDataCount();",
"public static int size_cost() {\n return (16 / 8);\n }"
] | [
"0.6267382",
"0.6241848",
"0.6193201",
"0.619268",
"0.61269486",
"0.6121833",
"0.60896295",
"0.6081027",
"0.6081027",
"0.6081027",
"0.60530883",
"0.6017993",
"0.6000483",
"0.59930944",
"0.59813833",
"0.5914934",
"0.59116805",
"0.577801",
"0.5735929",
"0.5657247",
"0.5590471",
"0.5539265",
"0.5510361",
"0.5508892",
"0.54944503",
"0.5477609",
"0.5473504",
"0.5442345",
"0.5405494",
"0.53873247",
"0.5382795",
"0.53522503",
"0.5351217",
"0.5349532",
"0.5327544",
"0.5324909",
"0.53166074",
"0.53105813",
"0.53057224",
"0.5302857",
"0.5282412",
"0.52637917",
"0.5257088",
"0.5250697",
"0.52476865",
"0.5246826",
"0.5240173",
"0.5238013",
"0.5207409",
"0.5194309",
"0.51929224",
"0.51895577",
"0.51840055",
"0.51822954",
"0.518014",
"0.51702833",
"0.5169516",
"0.51671034",
"0.51671034",
"0.514344",
"0.5136973",
"0.512753",
"0.5125485",
"0.51185316",
"0.51182914",
"0.51132846",
"0.5110144",
"0.50968456",
"0.5095093",
"0.5094193",
"0.5090932",
"0.5083668",
"0.50638497",
"0.50632703",
"0.50630265",
"0.50521916",
"0.5047781",
"0.5042628",
"0.50402224",
"0.503725",
"0.5023228",
"0.50179136",
"0.50167215",
"0.50159585",
"0.5012408",
"0.5010482",
"0.5004428",
"0.50036323",
"0.5002078",
"0.5001603",
"0.50002784",
"0.49953339",
"0.49875367",
"0.4986094",
"0.49842498",
"0.4984108",
"0.497728",
"0.4971411",
"0.49683183",
"0.49652457"
] | 0.6914714 | 0 |
Modifica la informacion de una productora. | @PUT
@Path("{id: \\d+}")
public CategoriaDetailDTO editarProductora(@PathParam("id") Long id, CategoriaDetailDTO categoria) throws BusinessLogicException {
LOGGER.log(Level.INFO, "CategoriaResource editarCategoria: input: id: {0} , categoria : {1}", new Object[]{id, categoria});
categoria.setId(id);
if (categoriaLogic.getCategoria(id) == null) {
throw new WebApplicationException("El recurso /categorias/" + id + " no existe.", 404);
}
CategoriaDetailDTO detailDTO = new CategoriaDetailDTO(categoriaLogic.editarCategoria(id, categoria.toEntity()));
LOGGER.log(Level.INFO, "CategoriaResoruce editarCategoria: output: {0}", detailDTO);
return detailDTO;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void modificar() {\r\n\r\n ModificaProducto modprodu = new ModificaProducto(vista, true);//C.P.M instanciamos la forma de modificar producto en modo modal y le mandamos al vista \r\n int Opcion = vista.jTbuscar.getSelectedRow();//C.P.M obtenemos los datos de la fila la cual este seleccionada\r\n modprodu.id = vista.jTbuscar.getValueAt(Opcion, 0).toString();//C.P.M se los mandamos a la forma dentro de sus campos\r\n modprodu.jTbcodigobarras.setText(vista.jTbuscar.getValueAt(Opcion, 1).toString());\r\n modprodu.jTproducto.setText(vista.jTbuscar.getValueAt(Opcion, 2).toString());\r\n modprodu.jTbprecio.setText(vista.jTbuscar.getValueAt(Opcion, 3).toString());\r\n modprodu.jTbcaducidad.setText(vista.jTbuscar.getValueAt(Opcion, 4).toString());\r\n modprodu.jTbexistencia.setText(vista.jTbuscar.getValueAt(Opcion, 5).toString());\r\n modprodu.jTbdescripcion2.setText(vista.jTbuscar.getValueAt(Opcion, 6).toString());\r\n modprodu.jTbespecificaciones.setText(vista.jTbuscar.getValueAt(Opcion, 7).toString());\r\n modprodu.setLocationRelativeTo(vista);//C.P.M centramos la forma a la vista\r\n modprodu.setVisible(true);//C.P.M y la asemos visible\r\n }",
"public void agregarDatosProductoText() {\n if (cantidadProducto != null && cantidadProducto > 0) {\n //agregando detalle a la Lista de Detalle\n listDetalle.add(new Detallefactura(null, this.producto.getCodBarra(),\n this.producto.getNombreProducto(), cantidadProducto, this.producto.getPrecioVenta(),\n this.producto.getPrecioVenta().multiply(new BigDecimal(cantidadProducto))));\n \n //Seteamos el producto al item del detalle\n //Accedemos al ultimo Item agregado a la lista\n listDetalle.get(listDetalle.size()-1).setCodProducto(producto);\n \n //Seteamos la factura al item del detalle\n //Accedemos al ultimo Item agregado a la lista \n // listDetalle.get(listDetalle.size()-1).setCodFactura(factura);\n \n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Invocamos al metodo que calcula el Total de la Venta para la factura\n totalFacturaVenta();\n\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n //Mensaje de confirmacion de exito de la operacion \n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\", \"Producto agregado correctamente!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n } else {\n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n }\n\n }",
"public void verificaAlteracao() {\r\n if (produto != null) {\r\n dialog.getTfNome().setText(produto.getNome());\r\n dialog.getTfCodigoBarra().setText(produto.getCodigoBarra());\r\n dialog.getTfPrecoCompra().setText(produto.getPrecoCompra().toString());\r\n dialog.getTfPrecoVenda().setText(produto.getPrecoVenda().toString());\r\n dialog.getCbCategoria().setSelectedItem(produto.getCategoriaId());\r\n dialog.getCbFornecedor().setSelectedItem(produto.getFornecedorId());\r\n }\r\n }",
"public void acutualizarInfo(){\n String pibId = String.valueOf(comentario.getId());\n labelId.setText(\"#\" + pibId);\n\n String autor = comentario.getAutor().toString();\n labelAutor.setText(autor);\n\n String fecha = comentario.getFechaCreacion().toString();\n labelFecha.setText(fecha);\n \n String contenido = comentario.getContenido();\n textAreaContenido.setText(contenido);\n \n String likes = ((Integer)comentario.totalLikes()).toString();\n labelLikes.setText(likes);\n \n Collection<Comentario> comments = socialNetwork.searchSubComentarios(comentario);\n panelSubComentarios.loadItems(comments, 15);\n \n if(comentario.isSubcomentario()){\n jButton4.setEnabled(true);\n }\n else{\n jButton4.setEnabled(false);\n }\n }",
"public VerInfoProd(Producto prod) {\n initComponents();\n \n Fabrica fabrica = Fabrica.getInstance();\n ICP = fabrica.getICtrlProducto();\n modelo = (DefaultTableModel) jTabla.getModel();\n this.txtNomProd.setText(prod.getNombre());\n this.txtDescProd.setText(prod.getDescripcion());\n String precio = Double.toString(prod.getPrecio());\n this.txtPrecioProd.setText(precio);\n p = prod;\n Promocional prom = (Promocional)p;\n if(prom.isActiva())\n this.txtEstadoPromo.setText(\"ACTIVA\");\n else\n this.txtEstadoPromo.setText(\"INACTIVA\");\n cargartabla();\n }",
"private void actualizaProducto(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tString codArticulo = request.getParameter(\"cArt\");\n\t\tString seccion = request.getParameter(\"seccion\");\n\t\tString nombreArticulo = request.getParameter(\"NArt\");\n\t\tSimpleDateFormat formatoFecha = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = formatoFecha.parse(request.getParameter(\"fecha\"));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdouble precio = Double.parseDouble(request.getParameter(\"precio\"));\n\t\tString importado = request.getParameter(\"importado\");\n\t\tString paisOrigen = request.getParameter(\"POrig\");\n\n\t\t// Crear un objeto producto con la info del formulario\n\n\t\tProducto producto = new Producto(codArticulo, seccion, nombreArticulo, precio, fecha, importado, paisOrigen);\n\t\tSystem.out.println(\"el codArticulo es: \" + codArticulo + \" y los datos del producto\" + producto);\n\t\t// Actualizar la BBDD\n\t\tmodeloProductos.actualizarProducto(producto);\n\n\t\t// Volver al listado con la info actualizada\n\t\tobtenerProductos(request, response);\n\n\t}",
"private void jb_modificarActionPerformed(java.awt.event.ActionEvent evt) {\n String Arch = JOptionPane.showInputDialog(\"INGRESE LA CARPETA A MODIFICAR\");\n String NEWArch = JOptionPane.showInputDialog(\"INGRESE EL NUEVO NOMBRE DE LA CARPETA\");\n ini.ListaGen.modificarCAR(ListaGen.head, NombreUs, Arch, NEWArch);\n }",
"private void modificarReserva() throws Exception {\r\n\t\tif (mngRes.existeReservaPeriodo(getSitio().getId())) {\r\n\t\t\tif (mayorEdad) {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(), null);\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t} else {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(),\r\n\t\t\t\t\t\tgetDniRepresentante() + \";\" + getNombreRepresentante());\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t}\r\n\t\t\tMensaje.crearMensajeINFO(\"Reserva realizada correctamente, no olvide descargar su contrato.\");\r\n\t\t} else {\r\n\t\t\tMensaje.crearMensajeWARN(\"El sitio seleccionado ya esta copado, favor eliga otro.\");\r\n\t\t}\r\n\t}",
"private void modi() { \n try {\n cvo.getId_cliente();\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.actualizar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Modificado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para Modificar registro!\");\n }\n }",
"public boolean ModificarProducto(int id,String nom,String fab,int cant,int precio,String desc,int sucursal) {\n boolean status=false;\n int res =0;\n try {\n conectar(); \n res=state.executeUpdate(\"update producto set nombreproducto='\"+nom+\"', fabricante='\"+fab+\"',cantidad=\"+cant+\",precio=\"+precio+\",descripcion='\"+desc+\"',idsucursal=\"+sucursal+\" where idproducto=\"+id+\";\");\n if(res>=1)\n {\n status=true;\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return status;\n }",
"public void PoblarINFO(String llamado) {//C.P.M Aqui llega como argumento llamado\r\n try {\r\n rs = modelo.Obteninfo();//C.P.M Mandamos a poblar la informacion de negocio\r\n if (llamado.equals(\"\")) {//C.P.M si el llamado llega vacio es que viene de la interface\r\n while (rs.next()) {//C.P.M recorremos el resultado para obtener los datos\r\n vista.jTNombreempresa.setText(rs.getString(1));//C.P.M los datos los enviamos a la vista de la interface\r\n vista.jTDireccion.setText(rs.getString(2));\r\n vista.jTTelefono.setText(rs.getString(3));\r\n vista.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n if (llamado.equals(\"factura\")) {//C.P.M de lo contrario es llamado de factura y los valores se van a la vista de vactura \r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n vistafactura.jTNombreempresa.setText(rs.getString(1));//C.P.M enviamos los datos a la vista de factura\r\n vistafactura.jTDireccion.setText(rs.getString(2));\r\n vistafactura.jTTelefono.setText(rs.getString(3));\r\n vistafactura.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n } catch (SQLException ex) {//C.P.M Notificamos a el usuario si ocurre algun error\r\n JOptionPane.showMessageDialog(null,\"Ocurio un error al intentar consultar la informacion del negocio\");\r\n }\r\n }",
"private static void alterarProduto() throws Exception {\r\n String nomeProduto, descricao, marca, origem;\r\n int idCategoria;\r\n Integer[] idsValidosC;\r\n float preco;\r\n int id;\r\n boolean erro, result, valido;\r\n System.out.println(\"\\t** Alterar produto **\\n\");\r\n do {\r\n erro = false;\r\n System.out.print(\"ID do produto a ser alterado: \");\r\n id = read.nextInt();\r\n if (id <= 0) {\r\n erro = true;\r\n System.out.println(\"ID Inválida! \");\r\n }\r\n System.out.println();\r\n } while (erro);\r\n System.out.print(\"Nome do produto: \");\r\n nomeProduto = read.nextLine();\r\n nomeProduto = read.nextLine();\r\n System.out.print(\"Descricao do produto: \");\r\n descricao = read.nextLine();\r\n System.out.print(\"Preco do produto: \");\r\n preco = read.nextFloat();\r\n System.out.print(\"Marca do produto: \");\r\n marca = read.nextLine();\r\n marca = read.nextLine();\r\n System.out.print(\"Origem do produto: \");\r\n origem = read.nextLine();\r\n System.out.println();\r\n if ((idsValidosC = listaCategoriasCadastradas()) != null) {\r\n System.out.print(\"Escolha uma categoria para o produto,\\ne digite o ID: \");\r\n do {\r\n valido = false;\r\n idCategoria = read.nextInt();\r\n valido = Arrays.asList(idsValidosC).contains(idCategoria);\r\n if (!valido) {\r\n System.out.print(\"Esse ID não é valido!\\nDigite um ID valido: \");\r\n }\r\n } while (!valido);\r\n do {\r\n erro = false;\r\n System.out.println(\"\\nAlterar produto?\");\r\n System.out.print(\"1 - SIM\\n2 - NÂO\\nR: \");\r\n switch (read.nextByte()) {\r\n case 1:\r\n result = arqProdutos.alterar(id, new Produto(nomeProduto, descricao, preco, marca, origem, idCategoria));\r\n if (result) {\r\n System.out.println(\"Alterado com sucesso!\");\r\n } else {\r\n System.out.println(\"Produto para alterar não encontrado!\");\r\n }\r\n break;\r\n case 2:\r\n System.out.println(\"\\nOperação Cancelada!\");\r\n break;\r\n default:\r\n System.out.println(\"\\nOpção Inválida!\\n\");\r\n erro = true;\r\n break;\r\n }\r\n } while (erro);\r\n } else {\r\n System.out.println(\"\\nOps..! Aparentemente não existem categorias para associar ao produto!\");\r\n System.out.println(\"Por favor, crie ao menos uma categoria antes de adicionar um produto!\");\r\n Thread.sleep(1000);\r\n }\r\n }",
"void modificarPresupuesto (String mesAnio,String warehouse_id,String category_id,String department_id,String line_id,String section_id,String registro_id,\n\t\t\tString inventarioInicial,String compras,String ventas,String rebajasTotal,String rebajasDef,String inventarioFinal,String empresa);",
"public void modificarPrograma() {\r\n // Abro y obtengo la conexion\r\n this.conection.abrirConexion();\r\n Connection con = this.conection.getConexion();\r\n\r\n // Preparo la consulta\r\n String sql = \"UPDATE programa SET \\n\"\r\n + \"nombre = ?,\\n\"\r\n + \"version = ?,\\n\"\r\n + \"edicion = ?,\\n\"\r\n + \"tipo_programa = ?,\\n\"\r\n + \"fecha_aprobacion = ?,\\n\"\r\n + \"WHERE programa.codigo = ?\";\r\n System.out.println(sql);\r\n\r\n try {\r\n // La ejecuto\r\n PreparedStatement ps = con.prepareStatement(sql);\r\n ps.setString(1, this.nombre);\r\n ps.setString(2, this.version);\r\n ps.setString(3, this.edicion);\r\n ps.setString(4, this.tipo_programa);\r\n ps.setString(5, this.fecha_aprobacion);\r\n ps.setInt(6, this.codigo);\r\n int rows = ps.executeUpdate();\r\n System.out.println(rows);\r\n // Cierro la conexion\r\n this.conection.cerrarConexion();\r\n } catch (SQLException ex) {\r\n System.out.println(ex.getMessage());\r\n }\r\n }",
"public Producto actualizar(Producto producto) throws IWDaoException;",
"public void modificarCompraComic();",
"public boolean modificarproducto(ProductoDTO c) {\r\n\r\n try {\r\n PreparedStatement ps;\r\n ps = conn.getConn().prepareStatement(SQL_UPDATE);\r\n ps.setString(1, c.getDescripcion());\r\n ps.setString(2, c.getFechaproducto());\r\n ps.setInt(3, c.getStock());\r\n ps.setInt(4, c.getPrecio());\r\n ps.setString(5, c.getNombre());\r\n ps.setString(6, c.getFechacaducidad());\r\n ps.setString(7, c.getFechaelaboracion());\r\n ps.setString(8, c.getNombrecategoria());\r\n ps.setInt(9, c.getId());\r\n\r\n if (ps.executeUpdate() > 0) {\r\n JOptionPane.showMessageDialog(null, \"Modificado correctamente\");\r\n return true;\r\n }\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProductoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n\r\n conn.cerrarconexion();\r\n }\r\n JOptionPane.showMessageDialog(null, \"no se ha podido modificar\");\r\n return false;\r\n }",
"public void update(){\n addNotificaciones(nombre + \" \" + this.sucursal.descuento());\n mostrarNotificaciones();\n notificaciones.clear();\n }",
"@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }",
"public Registrar_Producto() {\n this.setContentPane(fondo);\n initComponents();\n llenaArr();\n llenaCB();\n soloLetras(rp_tx_nombre);\n soloNumeros(rp_tx_cantidad);\n soloNumeros(rp_tx_precio);\n soloLetras(rp_tx_descripcion);\n }",
"@Override\r\n\tprotected void editarObjeto() throws ClassNotFoundException {\n\t\tif (tbJustificaciones.getSelectedRow() != -1\r\n\t\t\t\t&& tbJustificaciones.getValueAt(tbJustificaciones.getSelectedRow(), 0) != null) {\r\n\t\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (MODIFICANDO)\");\r\n\t\t\tthis.opcion = 2;\r\n\t\t\tactivarFormulario();\r\n\t\t\tcargarDatosModificar();\r\n\t\t\ttxtCedula.setEnabled(false);\r\n\t\t\tlimpiarTabla();\r\n\t\t\tthis.panelBotones.habilitar();\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, GlobalUtil.MSG_ITEM_NO_SELECCIONADO, \"ATENCION\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t}",
"private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }",
"public boolean actualizar(){\n\t\tString query = \"UPDATE Almacen SET Marca = \"+this.getMarca()+\", Modelo = \"+this.getModelo()+\", Stock = \"+this.getStock()+\", Id_Proveedor = \"+this.getIdProveedor()+\", Fecha_Recepcion = '\"+this.getFechaEntrada()+\"', Albaran = \"+this.getAlbaran()+\" WHERE Id_Producto = \"+this.getId();\n\t\tif(updateQuery(query)){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic int updateProduct(Product product) {\n\t\treturn 0;\r\n\t}",
"public void modificar() {\r\n if (vista.jTNombreempresa.getText().equals(\"\") || vista.jTTelefono.getText().equals(\"\") || vista.jTRFC.getText().equals(\"\") || vista.jTDireccion.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan Datos: No puede dejar cuadros en blanco\");//C.P.M Verificamos que todas las casillas esten llenas de lo contrario lo notificamos a el usuario\r\n } else {//C.P.M de lo contrario todo esta bien y prosegimos\r\n modelo.setNombre(vista.jTNombreempresa.getText());//C.P.M mandamos al modelo la informacion\r\n modelo.setDireccion(vista.jTDireccion.getText());\r\n modelo.setRfc(vista.jTRFC.getText());\r\n modelo.setTelefono(vista.jTTelefono.getText());\r\n \r\n Error = modelo.modificar();//C.P.M ejecutamos la funcion modificar del modelo y esperamos algun error\r\n if (Error.equals(\"\")) {//C.P.M si el error viene vacio es que no ocurrio algun error \r\n JOptionPane.showMessageDialog(null, \"La configuracion se modifico correctamente\");\r\n } else {//C.P.M de lo contrario lo notificamos a el usuario\r\n JOptionPane.showMessageDialog(null, Error);\r\n }\r\n }\r\n }",
"public void agregarMarcayPeso() {\n int id_producto = Integer.parseInt(TextCodProduct.getText());\n String Descripcion_prod = TextDescripcion.getText();\n double Costo_Venta_prod = Double.parseDouble(TextCostoproduc.getText());\n double Precio_prod = Double.parseDouble(TextPrecio.getText());\n int Codigo_proveedor = ((Proveedor) LitsadeProovedores.getSelectedItem()).getIdProveedor();\n double ivaproducto = Double.parseDouble(txtIvap.getText());\n Object tipodelproducto = jcboxTipoProducto.getSelectedItem();\n\n //Captura el tipo del producto\n //Se crea un nuevo objeto de tipo producto para hacer el llamado al decorador\n Producto p;\n //Switch para Ingresar al tipo de producto deseado \n switch ((String) tipodelproducto) {\n case \"Alimentos\":\n log(String.valueOf(tipodelproducto));\n //Creamos un nuevo producto de tipo en este caso comida y le enviamois\n //el id y el tipo de producto\n p = new Producto_tipo_comida(id_producto, (String) tipodelproducto);\n //el producto p , ahora tendra una adicion de marca del producto\n //ingreso\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n //ingreso\n break;\n case \"Ropa\":\n p = new Producto_tipo_ropa(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Automotor\":\n p = new Producto_tipo_automotor(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Electronico\":\n p = new Producto_tipo_electronico(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n }\n\n }",
"private void actualizarInventarios() {\r\n\t\tfor (InventarioProducto inventarioProducto : inventariosEditar) {\r\n\t\t\tproductoEJB.editarInventarioProducto(inventarioProducto);\r\n\t\t}\r\n\t}",
"public void setInformacion(String informacion) {\n\t\tthis.informacion = informacion;\n\t}",
"@Override\r\n\tpublic Equipo modificar() {\n\t\tLOG.info(\"Mostrar los datos del equipo modificado\");\r\n\t\treturn equipo;\r\n\t}",
"@Override\n\tpublic void atualizar(Produto entidade) {\n\n\t}",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n\n try {\n\n Object o[] = null;\n List<Producto> listP = CProducto.findProductoEntities();\n boolean resp = false; //ESTO ES LA BANDERA PARA SABER SI EL PRODUCTO EXISTE\n int num = 0;\n String nombreP = txtproducto.getText();\n for (int i = 0; i < listP.size(); i++) {\n\n if (listP.get(i).getNombreProducto().equals(txtproducto.getText())) {\n resp = true;\n num = i;\n }\n }\n if (resp != true) { //VA A VENDER UN PRODUCTO QUE NO EXISTE:\n JOptionPane.showMessageDialog(null, \"Estás intentando vender un articulo que no existe!\\nRevisa tu inventario.\", \"ERROR\", JOptionPane.WARNING_MESSAGE);\n\n } else {\n //Obtenemos el valor total y la cantidad que tenemos hasta ahora en inventarios.\n int cantidadTotal = listP.get(num).getCantidadAlmacenada();\n\n //Obtenemos el valor total de la compra que acabamos de realizar\n int cantidadCompra = Integer.parseInt(txtcantidad.getText());\n\n int resultado = cantidadTotal - cantidadCompra;\n if (resultado < 0) {\n JOptionPane.showMessageDialog(null, \"Lo sentimos, no tenemos esa cantidad.\\nActualmente solo le podemos vender \" + cantidadTotal + \" unidades de ese articulo.\", \"Total excedido\", JOptionPane.INFORMATION_MESSAGE);\n\n int respuesta = JOptionPane.showConfirmDialog(null, \"¿Desea realizar una compra por esta cantidad?\", \"Alerta!\", JOptionPane.YES_NO_OPTION);\n\n if (respuesta == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n this.setVisible(false);\n }\n } else if (resultado == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n float valorTotal = listP.get(num).getValorUnitario() * cantidadTotal;\n\n float valorTotalC = Float.parseFloat(txtvalorU.getText()) * cantidadCompra;\n\n //Actualizamos el valor total y la cntidad de inventario (Producto)\n valorTotal = valorTotal - valorTotalC;\n float valorUnitario = valorTotal / resultado; //Este es el costo unitario\n Producto pEdit = CProducto.findProducto(id);\n pEdit.setCantidadAlmacenada(resultado);\n pEdit.setValorUnitario(valorUnitario);\n\n CProducto.edit(pEdit);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n this.setVisible(false);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage() + e.getCause());\n }\n }",
"private void CargaInicial() {\r\n this.setTitle(\"\" + gui.getTitle().concat(\"\").concat(\" - [Modulo: Precio por Producto/Servicio]\"));\r\n }",
"public void ingresarproducto() {\r\n String Error;//C.P.M Creamos una variable para obtener algun error \r\n /*Preguntamos si todos los campos estan llenos sino lo notificamos*/\r\n if (vistaaltaproducto.jTnombre.getText().equals(\"\") || vistaaltaproducto.jTyyyy.getText().equals(\"\") || vistaaltaproducto.jTprecio.getText().equals(\"\")\r\n || vistaaltaproducto.jTexistencia.getText().equals(\"\") || vistaaltaproducto.jTdescripcion.getText().equals(\"\") || vistaaltaproducto.jTespecificaciones.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan datos: No puede dejar cuadros en blanco\");\r\n } else {\r\n modelo.setCodigobarras(vistaaltaproducto.jTcodigobarras.getText());//C.P.M enviamos todos los datos a el modelo\r\n modelo.setNombre(vistaaltaproducto.jTnombre.getText());\r\n modelo.setCaducidad(vistaaltaproducto.jTyyyy.getText() + \"-\" + vistaaltaproducto.jTmm.getText() + \"-\" + vistaaltaproducto.jTdd.getText());\r\n modelo.setExistencia(vistaaltaproducto.jTexistencia.getText());\r\n modelo.setPrecio(vistaaltaproducto.jTprecio.getText());\r\n modelo.setDescripcion(vistaaltaproducto.jTdescripcion.getText());\r\n modelo.setEspecifica(vistaaltaproducto.jTespecificaciones.getText());\r\n Error = modelo.insertar();//C.P.M ejecutamos el metodo del modelo para insertar y esperamos algn error\r\n if (Error.equals(\"\")) {//C.P.M si error llega vacio es que todo salio bien\r\n JOptionPane.showMessageDialog(null, \"Producto: \" + vistaaltaproducto.jTnombre.getText() + \" agregado.\");//C.P.M lo notificamos\r\n vistaaltaproducto.jTnombre.setText(\"\");//C.P.M limpiamos los campos \r\n vistaaltaproducto.jTcodigobarras.setText(\"\");\r\n vistaaltaproducto.jTprecio.setText(\"\");\r\n vistaaltaproducto.jTyyyy.setText(\"\");\r\n vistaaltaproducto.jTmm.setText(\"\");\r\n vistaaltaproducto.jTdd.setText(\"\");\r\n vistaaltaproducto.jTexistencia.setText(\"\");\r\n vistaaltaproducto.jTdescripcion.setText(\"\");\r\n vistaaltaproducto.jTespecificaciones.setText(\"\");\r\n vistaaltaproducto.jTnombre.requestFocus();//C.P.M y ponemos el foco en el primer componente\r\n } else {\r\n JOptionPane.showMessageDialog(null, Error);//C.P.M de lo contrario notificamos el error\r\n }\r\n }\r\n }",
"private void updateDatFile() {\n\t\tIOService<?> ioManager = new IOService<Entity>();\n\t\ttry {\n\t\t\tioManager.writeToFile(FileDataWrapper.productMap.values(), new Product());\n\t\t\tioManager = null;\n\t\t} catch (Exception ex) {\n\t\t\tDisplayUtil.displayValidationError(buttonPanel, StoreConstants.ERROR + \" saving new product\");\n\t\t\tioManager = null;\n\t\t}\n\t}",
"@Override\n\tpublic void cargarInformacion_paciente() {\n\t\tinfoPacientes.cargarInformacion(admision, this,\n\t\t\t\tnew InformacionPacienteIMG() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void ejecutarProceso() {\n\t\t\t\t\t\tif (tbxAccion.getValue().equalsIgnoreCase(\"registrar\")) {\n\n\t\t\t\t\t\t\t// Map<String, Object> parametros = new\n\t\t\t\t\t\t\t// HashMap<String, Object>();\n\t\t\t\t\t\t\t// parametros.put(\"codigo_empresa\", codigo_empresa);\n\t\t\t\t\t\t\t// parametros.put(\"codigo_sucursal\",\n\t\t\t\t\t\t\t// codigo_sucursal);\n\t\t\t\t\t\t\t// parametros.put(\"identificacion\",\n\t\t\t\t\t\t\t// admision.getNro_identificacion());\n\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\ttoolbarbuttonTipo_historia\n\t\t\t\t\t\t\t\t\t.setLabel(\"Creando historia de Urgencia Odontologica\");\n\t\t\t\t\t\t\tadmision.setPrimera_vez(\"S\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"public void alertasexistencia() {\r\n try {\r\n rs = modelo.alertaexistenciapro();//C.P.M consultamos los producto con alerta en existencia\r\n DefaultTableModel tabla = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.Talertas.setModel(tabla);//C.P.M le mandamos el modelo\r\n modelo.estructuraAlrta(tabla);//C.P.M obtenemos la estructura de la tabla \"los encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de las columnas de la consulta\r\n while (rs.next()) {\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con la cantidad de columnas \r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1);//C.P.M y agregamos la informacion de la consulta\r\n }\r\n tabla.addRow(fila);//C.P.M lo agregamos a la tabla como una nueva fila\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio algun error al consultar las alertas\");\r\n }\r\n }",
"public VentanaCrearProducto(ControladorProducto controladorProducto) {\n initComponents();\n this.controladorProducto=controladorProducto;\n txtCodigoCrearProducto.setText(String.valueOf(this.controladorProducto.getCodigo()));\n this.setSize(1000,600);\n }",
"private void modificarProfesor(){\n \n System.out.println(\"-->> MODIFICAR PROFESOR\");\n int opcion;\n String nif=IO_ES.leerCadena(\"Inserte el nif del profesor\");\n if(ValidarCadenas.validarNIF(nif)){\n Profesor profesor=(Profesor) getPersona(LProfesorado, nif);\n if(profesor!=null){\n do{\n System.out.println(profesor);\n System.out.println(\"\\n1. Nombre\");\n System.out.println(\"2. Dirección\");\n System.out.println(\"3. Código Postal\");\n System.out.println(\"4. Teléfono\");\n System.out.println(\"5. Módulo\");\n System.out.println(\"0. Volver\");\n opcion=IO_ES.leerInteger(\"Inserte una opción: \", 0, 5);\n \n \n switch(opcion){\n \n case 1:\n actualizarNombre(profesor);\n break;\n case 2:\n actualizarDireccion(profesor);\n break;\n case 3:\n actualizarCodigoPostal(profesor);\n break;\n case 4:\n actualizarTelefono(profesor);\n break;\n case 5:\n actualizarModulo(profesor);\n break;\n \n \n }\n \n }while(opcion!=0);\n }\n else{\n System.out.println(\"El profesor no existe\");\n }\n \n }\n else {\n System.out.println(\"El nif no es válido\");\n }\n \n }",
"public boolean modificar(DueñoMascota pro) {\n PreparedStatement ps = null;\n Connection con = getConexion();\n\n \n String sql = \"UPDATE datos SET nom_dueño=?, ap_dueño=?, tel=?,nom_mascota=?,observaciones=? WHERE id_datos=? \";\n\n try {\n ps = con.prepareStatement(sql);\n // ps.setInt(1, pro.getId()); //NÚMERe almacena\n ps.setString(1, pro.getNomDueño());\n ps.setString(2, pro.getApDueño());\n ps.setInt(3, pro.getTel());\n ps.setString(4, pro.getNomMascota());\n ps.setString(5, pro.getObservaciones());\n ps.setInt(6, pro.getId());\n ps.execute();\n ps.close();\n return true;\n } catch (SQLException e) {\n System.err.println(e);\n return false;\n } finally {\n try {\n con.close();\n } catch (SQLException e) {\n System.err.println(e);\n }\n }\n }",
"@UICallout public void setM_Product_ID (String oldM_Product_ID, \n\t\t\tString newM_Product_ID, int windowNo) throws Exception\n\t{\n\t\tif (newM_Product_ID == null || newM_Product_ID.length() == 0)\n\t\t\treturn;\n\t\tint M_Product_ID = Integer.parseInt(newM_Product_ID);\n\t\tif (M_Product_ID == 0)\n\t\t{\n\t\t\tsetM_AttributeSetInstance_ID(0);\n\t\t\treturn;\n\t\t}\n\t\t//\n\t\tsuper.setM_Product_ID(M_Product_ID);\n\t\tsetC_Charge_ID(0);\n\t\t\n\t\t//\tSet Attribute & Locator\n\t\tint M_Locator_ID = 0;\n\t\tif (getCtx().getContextAsInt(EnvConstants.WINDOW_INFO, EnvConstants.TAB_INFO, \"M_Product_ID\") == M_Product_ID\n\t\t\t&& getCtx().getContextAsInt(EnvConstants.WINDOW_INFO, EnvConstants.TAB_INFO, \"M_AttributeSetInstance_ID\") != 0)\n\t\t{\n\t\t\tsetM_AttributeSetInstance_ID(getCtx().getContextAsInt(EnvConstants.WINDOW_INFO, EnvConstants.TAB_INFO, \"M_AttributeSetInstance_ID\"));\n\t\t\t//\tLocator from Info Window - ASI\n\t\t\tM_Locator_ID = getCtx().getContextAsInt(EnvConstants.WINDOW_INFO, EnvConstants.TAB_INFO, \"M_Locator_ID\");\n\t\t\tif (M_Locator_ID != 0)\n\t\t\t\tsetM_Locator_ID(M_Locator_ID);\n\t\t}\n\t\telse\n\t\t\tsetM_AttributeSetInstance_ID(0);\n\t\t//\n\t\tboolean IsSOTrx = getCtx().isSOTrx(windowNo);\n\t\tif (IsSOTrx)\n\t\t\treturn;\n\n\t\t//\tPO - Set UOM/Locator/Qty\n\t\tMProduct product = getProduct();\n\t\tsetC_UOM_ID(product.getC_UOM_ID());\n\t\tBigDecimal QtyEntered = getQtyEntered();\n\t\tsetMovementQty(QtyEntered);\n\t\tif (M_Locator_ID != 0)\n\t\t\t;\t\t//\talready set via ASI\n\t\telse\n\t\t{\n\t\t\tint M_Warehouse_ID = getCtx().getContextAsInt(windowNo, \"M_Warehouse_ID\");\n\t\t\tM_Locator_ID = MProductLocator.getFirstM_Locator_ID (product, M_Warehouse_ID);\n\t\t\tif (M_Locator_ID != 0)\n\t\t\t\tsetM_Locator_ID(M_Locator_ID);\n\t\t\telse\n\t\t\t{\n\t\t\t\tMWarehouse wh = MWarehouse.get (getCtx(), M_Warehouse_ID);\n\t\t\t\tif(wh.isWMSEnabled())\n\t\t\t\t\tM_Locator_ID = wh.getM_RcvLocator_ID();\n\t\t\t\t\n\t\t\t\tif(M_Locator_ID == 0)\n\t\t\t\t\tM_Locator_ID = wh.getDefaultM_Locator_ID();\n\t\t\t\t\n\t\t\t\tsetM_Locator_ID(M_Locator_ID);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void k_update(ManufacturersVO MANUFACTURERSVO) {\n\t\t\r\n\t}",
"public boolean alterarInformacoes(Prova prova) {\n\t\tTransactionManager txManager = new TransactionManager();\n\t return txManager.doInTransactionWithReturn((connection) -> {\n\t \t\n\t\t\tps = connection.prepareStatement(\n\t\t\t\t\t\"UPDATE prova SET codDisciplina=?, titulo=?, valorTotal=?, valorQuestoes=?, tempo=?, data=?, allowAfterDate=?, allowMultipleAttempts=? WHERE codigo=?\");\n\t\t\tps.setInt (1, prova.getCodDisciplina());\n\t\t\tps.setString (2, prova.getTitulo());\n\t\t\tps.setFloat (3, prova.getValorTotal());\n\t\t\tps.setFloat (4, prova.getValorQuestoes());\n\t\t\tps.setInt (5, prova.getTempo());\n\t\t\tps.setString (6, prova.getData()); \n\t\t\tps.setBoolean(7, prova.isAllowAfterDate()); \n\t\t\tps.setBoolean(8, prova.isAllowMultipleAttempts()); \n\t\t\tps.setInt (9, prova.getCodigo());\n\t\t\n\t\t\treturn (ps.executeUpdate() > 0) ? true : false;\n\t\t});\t\n\t}",
"private void setProductos(int botonInicial, int botonFinal)\n {\n if(lp != null)\n {\n NombreCategoria.setText(lp.get(0).getCategoria().toUpperCase());\n ImageIcon img;\n int i = 0, j;\n for (i = botonInicial; i < botonFinal; i++) \n {\n j = i % NUMPRODUCTOS;\n productos[j].setVisible(true);\n nombreProductos[j].setVisible(true);\n img = new ImageIcon(lp.get(i).getImagenesEnBuffer()[0]);\n productos[j].setIcon(new ImageIcon(img.getImage().getScaledInstance(AnchoProductoBoton,\n AltoProductoBoton, java.awt.Image.SCALE_DEFAULT)));\n nombreProductos[j].setText(recortarCadena(lp.get(i).getNombre()));\n producto[j] = lp.get(i);\n }\n i = botonFinal - botonInicial;\n for (; i < NUMPRODUCTOS; i++) \n {\n productos[i].setVisible(false);\n nombreProductos[i].setVisible(false);\n }\n }\n \n }",
"@Override\n public void updateProductCounter() {\n\n }",
"public void ModificarPrestamo(PrestamoFila pf) {\n this.conexion.ConectarBD();\n String consulta = \"update prestamos set IdSocio = ?, IdLibro = ?, FechaInicio = ?, FechaFin = ? where IdPrestamo = ?\";\n try {\n this.pstm = this.conexion.getConexion().prepareStatement(consulta);\n //Indicamos los parametros del update\n this.pstm.setInt(1, pf.getIdSocio());\n this.pstm.setInt(2, pf.getIdLibro());\n this.pstm.setDate(3, new java.sql.Date(pf.getFechaInicio().getTime()));\n this.pstm.setDate(4, new java.sql.Date(pf.getFechaFin().getTime()));\n this.pstm.setInt(5, pf.getIdPrestamo());\n //Ejecutamos la consulta\n int res = pstm.executeUpdate();\n } catch (SQLException e) { \n throw new MisException(\"Error al modificar un Prestamo.\\n\"+e.toString());\n \n } catch (Exception e) {\n throw new MisException(\"Error.\\n\"+e.toString());\n \n }\n \n //Desconectamos de la BD\n this.conexion.DesconectarBD(); \n }",
"@Override\r\n\tpublic MensajeBean actualiza(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.actualiza(nuevo);\r\n\t}",
"@Override\n\tpublic boolean update(Produto t) {\n\t\treturn true;\n\t}",
"private void modificarComponentesPanelPadre() {\n panelCrearArticuloClienteDistribuidor_labelTitulo.setText(panelCrearArticuloClienteDistribuidor_labelTitulo.getText() + \"Distribuidor\");\n }",
"private void gestionPriseEnCompte() {\r\n\t\tString raison = new String(\"\");\r\n\t\tDate now = new Date();\r\n\t\tString strSql = \"\";\r\n\t\r\n if (tbAlarme.getRowCount() > 0) {\r\n \tif (tbAlarme.getSelectedRowCount() > 0) {\r\n\t\t int[] selection = tbAlarme.getSelectedRows();\r\n\t\t int indexSelection = selection[0];\r\n\t\t int idCapteur = mdlTpsReelAlarme.getIdCapteur(indexSelection); \r\n\t\t String strTypeAlarme = \"\";\r\n\t\t \r\n\t\t\t\t// Motif Prise En Compte seulement si appel Alert\r\n\t\t strTypeAlarme = (String) mdlTpsReelAlarme.getValueAt(indexSelection, JTABLE_ALARME_TYPE_ALARME);\r\n\t\t if (strTypeAlarme.equals(\"Alarme\")) {\r\n\t\t\t\t\tint idPriseEnCompte = 0;\r\n\t\t \tdo {\r\n\t\t\t\t\t\tObject [] possibilites = new Object[tbPriseEnCompte.size()];\r\n\t\t\t\t\t\tfor(int i = 0; i < tbPriseEnCompte.size(); i++) {\r\n\t\t\t\t\t\t\tpossibilites[i] = tbPriseEnCompte.get(i).getNom();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tString strReponse = (String)JOptionPane.showInputDialog(this, \"Choisir un motif de prise en compte : \", \"Prise en compte\", JOptionPane.QUESTION_MESSAGE, null, possibilites, null);\r\n\t\t\t\t\t\tidPriseEnCompte = 1;\r\n\t\t\t\t\t\tif (strReponse != null) {\r\n\t\t\t\t\t\t\tfor(int i = 0; i < tbPriseEnCompte.size(); i++) {\r\n\t\t\t\t\t\t\t\tif(strReponse.equals(tbPriseEnCompte.get(i).getNom())) {\r\n\t\t\t\t\t\t\t\t\tidPriseEnCompte = (int) tbPriseEnCompte.get(i).getId();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} // fin for\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\traison = \"En attente\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// idPriseEncompte == 1 (Autres)\r\n\t\t\t\t\t\tif(idPriseEnCompte == 1) {\r\n\t\t\t\t\t\t\t// Demande de commentaire\r\n\t\t\t\t\t\t\traison = AE_Fonctions.saisieTexte(\"Veuillez entrer une raison : \", \"Raison commentaire ...\");\r\n\t\t\t\t\t\t\tif (raison == null) raison = \"\";\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\traison = \"---\";\r\n\t\t\t\t\t\t}\r\n\t\t \t} while(raison == \"\");\r\n\t\t \t\r\n\t\t\t\t\tstrSql = \"UPDATE V2_AlarmeEnCours SET idPriseEnCompte = \" + idPriseEnCompte\r\n\t\t\t\t\t\t\t + \" , idUtilisateur = \" + EFS_Client_Variable.idUtilisateur\r\n\t\t\t\t\t\t\t + \" , CommentairePriseEnCompte = '\" + raison + \"'\"\r\n\t\t\t\t\t\t\t + \" WHERE idCapteur = \" + idCapteur;\r\n\t\t\t\t\tctn.fonctionSql(strSql);\r\n\t\t\t\t\tmdlTpsReelAlarme.setMotifIdPriseEncompte(indexSelection, idPriseEnCompte);\r\n\t\t } // fin if appelAlert\r\n\r\n\t\t if(mdlTpsReelAlarme.getValueAt(indexSelection, JTABLE_ALARME_PRISE_EN_COMPTE) == null) {\r\n\t\t\t\t\t// Date prise en compte\r\n\t\t\t\t\tstrSql = \"UPDATE V2_AlarmeEnCours SET DatePriseEnCompte = sysdate, blPriseEnCompte = 1 WHERE idCapteur = \" + idCapteur;\r\n\t\t\t\t\tctn.fonctionSql(strSql);\r\n\t\t\t\t\tmdlTpsReelAlarme.setValueAt(now, indexSelection, JTABLE_ALARME_PRISE_EN_COMPTE);\r\n\t\t } // fin if datePrsieEnCompte\r\n\t\r\n\t\t // Prevenir le programme maitre\r\n\t\t AE_Fonctions.modifierMaitreViaClient(idCapteur, VIA_API_PRISE_EN_COMPTE);\r\n\t\t \r\n\t\t\t\t// Arret klaxon et Alert\r\n//\t\t\t\tgestionKlaxon(false);\r\n//\t\t\t\tgestionAlert(false);\r\n\t\t\t\t\r\n \t} else {\r\n \t JOptionPane.showMessageDialog(this, \"Vous devez sélectionner une ligne pour prendre en compte ...\",\r\n \t \t\t \"GTC Visualize - Programme Maitre\", JOptionPane.WARNING_MESSAGE);\r\n \t}\r\n } else {\r\n//\t\t\tgestionKlaxon(false);\r\n//\t\t\tgestionAlert(false);\r\n }\r\n\t}",
"public void controladorVistoNotif(Controlador controlador){\n this.contVistoNotif = controlador.getVistoNotif();\n notif.setControlVisto(contVistoNotif);\n }",
"private void btnActualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActualizarActionPerformed\n boolean respuesta = false;\n int id =Integer.parseInt(this.txtCodigoPlatDia.getText());\n String valor = this.txtValueModified.getText();\n String atributo = \"\";\n switch (this.cbxTypeModified.getSelectedIndex()) {\n case 1: atributo = \"PDIA_NOMBRE\"; break;\n case 2: atributo = \"PDIA_DESCRIPCION\"; break;\n case 3: atributo = \"PDIA_ENTRADA\"; break;\n case 4: atributo = \"PDIA_PRINCIPIO\"; break;\n case 5: atributo = \"PDIA_BEBIDA\"; break;\n case 6: atributo = \"PDIA_CARNE\"; break;\n case 7: atributo = \"PDIA_PRECIO\"; break;\n default: break;\n }\n if(atributo.equals(\"PDIA_PRECIO\")){\n if(!Utilities.isNumeric(valor)){\n JOptionPane.showMessageDialog(null, \"el precio debe contener valores numericos, VERIFIQUE\");\n return;\n }\n }\n try {\n respuesta = this.servicioRestaurante.updatePlatoDia(id, atributo, valor);\n if(!respuesta){\n JOptionPane.showMessageDialog(null, \"verifique los datos, ITEM NO ENCONTRADO\");\n }else{\n this.listar();\n }\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"ha fallado el servicio, intentelo de nuevo\");\n }\n this.txtCodigoPlatDia.setText(null);\n this.cbxTypeModified.setSelectedIndex(0);\n this.txtValueModified.setText(null);\n this.btnActualizar.setEnabled(false);\n }",
"private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }",
"private void incProduct(double dPor, ProductInfoExt prod) {\n addTicketLine(prod, dPor, prod.getPriceSell());\n }",
"public void rowEdit(RowEditEvent event){\n //obtenemos la instancia de la Fila modificada \n Detallefactura detalle = (Detallefactura)event.getObject();\n \n //obtenemos el indice de la fila modificada\n DataTable table = (DataTable) event.getSource();\n Integer indice = table.getRowIndex();\n \n //Calculamos el nuevo total del producto\n BigDecimal nuevoTotal = detalle.getPrecioVenta().multiply(new BigDecimal(detalle.getCantidad()));\n //seteamos al detalle el nuevo total\n //detalle.setTotal(nuevoTotal);\n \n //Recorremos la lista de Detalle y actualizamos el item correspondiente\n int i =0;\n for(Detallefactura det : listDetalle){\n if(det.getCodBarra().equals(detalle.getCodBarra()) && indice.equals(i)){\n //listDetalle.set(i, detalle);\n listDetalle.get(i).setTotal(nuevoTotal);\n break; //para que se salfa del for de manera inmediata\n }\n i++;\n }\n \n totalFacturaVenta();\n System.out.println(\"TOTAL: \"+ factura.getTotalVenta());\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\"\n , \"Producto: Cantidad de producto Modificado\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }",
"public void actionPerformed(ActionEvent ae) {\r\n //----Valida txt de Intentario---//\r\n validaTxt();\r\n //----Valida txt de Intentario---//\r\n int i = JOptionPane.showConfirmDialog(II, \"¿Seguro quiere modificar este producto?\");\r\n if (i == 0) {\r\n modificaDato();\r\n DTM.setRowCount(0);\r\n llenartabla();\r\n }\r\n }",
"private void updateContent() {\n if (product != null) {\n etProductName.setText(product.getName());\n etPrice.setText(product.getPrice().toString());\n }\n }",
"public void pesquisarArtista() {\n\t\t\r\n\t\tpAController = new ArtistaCtrl();\r\n\t\tObject[] possibilities = pAController.getArtista();\r\n\t\tString s = (String) JOptionPane.showInputDialog(frmAcervo, \"Escolha o artista:\\n\", \"Pesquisar o Artista\",\r\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE, null, possibilities, possibilities[0]);\r\n\t\tif (s != null && s.length() > 0) {\r\n\t\t\tnomeArtista.setText(s);\r\n\t\t\tartistaNome = s;\r\n\t\t\treturn;\r\n\t\t}\r\n\t}",
"public static void apagarProduto(){\n if(ListaDProduto.size() == 0){\n SaidaDados(\"Nehum produto cadastrado!!\");\n return;\n }\n \n String pesquisarNome = Entrada(\"Informe o nome do produto que deseja deletar: \");\n for(int i =0; i < ListaDProduto.size(); i++){\n \n Produto produtoProcurado = ListaDProduto.get(i);\n \n if(pesquisarNome.equalsIgnoreCase(produtoProcurado.getNome())){\n ListaDProduto.remove(i);\n SaidaDados(\"Produto deletado com sucesso!!\");\n }\n \n }\n \n }",
"public static boolean modif(Forma form, String tipo, String operador) {\n if(operador.equals(\"resta\")){\n String disp = \"\";\n String tabla = tipo;\n String query = \"\";\n \n switch (tipo) {\n case \"alumnoMaterial\":\n case \"profeMaterial\":\n tabla = \"material\";\n break;\n case \"profeEquipo\":\n case \"alumnoEquipo\":\n tabla = \"equipo\";\n break;\n case \"profeConsumible\":\n tabla = \"consumible\";\n break;\n case \"profeReactivo\":\n tabla = \"reactivo\";\n break;\n default:\n break;\n }\n try {\n Statement statement = connection.createStatement();\n query = \"SELECT Disponibilidad FROM \" + tabla +\n \" WHERE Nombre = '\" + form.getDesc() + \"'\";\n ResultSet result = statement.executeQuery(query);\n while (result.next()) {\n disp = result.getString(1);\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n //checo que haya suficientes\n int iDisp = Integer.parseInt(disp);\n int iCant = Integer.parseInt(form.getCant());\n iDisp = iDisp - iCant;\n //si no hay, regreso falso para fallar\n if(iDisp < 0) {\n return false;\n } else {\n //si si hay, inserto la nueva dipobilidad en el inventario\n try {\n query = \"UPDATE \" + tabla + \" SET Disponibilidad = ? WHERE Nombre = ?\";\n PreparedStatement preparedStmt = connection.prepareStatement(query);\n preparedStmt.setInt (1, iDisp);\n preparedStmt.setString(2, form.getDesc());\n preparedStmt.executeUpdate();\n \n if (preparedStmt.executeUpdate() == 1) {\n return true;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }\n return false;\n } else {\n String disp = \"\";\n String tabla = tipo;\n String query = \"\";\n \n try {\n Statement statement = connection.createStatement();\n query = \"SELECT Disponibilidad FROM \" + tabla +\n \" WHERE Nombre = '\" + form.getDesc() + \"'\";\n ResultSet result = statement.executeQuery(query);\n while (result.next()) {\n disp = result.getString(1);\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n //checo que haya suficientes\n int iDisp = Integer.parseInt(disp);\n int iCant = Integer.parseInt(form.getCant());\n iDisp = iDisp + iCant;\n //si no hay, regreso falso para fallar\n \n //si si hay, inserto la nueva dipobilidad en el inventario\n try {\n query = \"UPDATE \" + tabla + \" SET Disponibilidad = ? WHERE Nombre = ?\";\n PreparedStatement preparedStmt = connection.prepareStatement(query);\n preparedStmt.setInt (1, iDisp);\n preparedStmt.setString(2, form.getDesc());\n preparedStmt.executeUpdate();\n \n if (preparedStmt.executeUpdate() == 1) {\n return true;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }\n return false;\n }",
"public void Editproduct(Product objproduct) {\n\t\t\n\t}",
"@Override\n public void actualizarPropiedad(Propiedad nuevaPropiedad) {\n int numFinca = nuevaPropiedad.getNumFinca();\n String modalidad = nuevaPropiedad.getModalidad();\n double area = nuevaPropiedad.getAreaTerreno();\n double metro = nuevaPropiedad.getValorMetroCuadrado();\n double fiscal = nuevaPropiedad.getValorFiscal();\n String provincia = nuevaPropiedad.getProvincia();\n String canton = nuevaPropiedad.getCanton();\n String distrito = nuevaPropiedad.getDistrito();\n String dirExacta = nuevaPropiedad.getDirExacta();\n String estado = nuevaPropiedad.getEstado();\n String tipo = nuevaPropiedad.getTipo();\n System.out.println(nuevaPropiedad.getFotografias().size());\n double precio = nuevaPropiedad.getPrecio();\n try {\n bdPropiedad.manipulationQuery(\"UPDATE PROPIEDAD SET MODALIDAD = '\" + modalidad + \"', AREA_TERRENO \"\n + \"= \" + area + \", VALOR_METRO = \" + metro + \", VALOR_FISCAL = \"+ fiscal + \", PROVINCIA = '\" \n + provincia + \"', CANTON = '\" + canton + \"' , DISTRITO = '\" + distrito + \"', DIREXACTA = '\" \n + dirExacta + \"', ESTADO = '\" + estado + \"', PRECIO = \" + precio + \" WHERE ID_PROPIEDAD = \" \n + numFinca);\n bdPropiedad.manipulationQuery(\"DELETE FROM FOTOGRAFIA_PROPIEDAD WHERE ID_PROPIEDAD = \" + numFinca);\n bdPropiedad.insertarFotografias(nuevaPropiedad);\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private static void cadastroProduto() {\n\n\t\tString nome = Entrada(\"PRODUTO\");\n\t\tdouble PrecoComprado = Double.parseDouble(Entrada(\"VALOR COMPRA\"));\n\t\tdouble precoVenda = Double.parseDouble(Entrada(\"VALOR VENDA\"));\n String informacaoProduto = Entrada(\"INFORMAÇÃO DO PRODUTO\");\n String informacaoTecnicas = Entrada(\"INFORMAÇÕES TÉCNICAS\");\n\n\t\tProduto produto = new Produto(nome, PrecoComprado, precoVenda, informacaoProduto,informacaoTecnicas);\n\n\t\tListaDProduto.add(produto);\n\n\t}",
"public boolean ingresarNuevoArticuloAlTicket(Ticket ticket, Articulo articulo, Usuario usuario, boolean esArticuloInicial) {\n try {\n ticket.setFechaDeModificacion(new Date());\n //Se determina el tiempo de actualizacion segun el SLA\n int tiempoDeActualizacion = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTiempoDeActualizacionDeEscalacion();\n Calendar c = Calendar.getInstance();\n //c = Calendar.getInstance();\n c.add(Calendar.HOUR, tiempoDeActualizacion);\n //Se hacen verificaciones por tipo de disponibilidad es decir 24x7 o 8x5\n int horaActual = c.get(Calendar.HOUR_OF_DAY);\n int diaDeLaSemana = c.get(Calendar.DAY_OF_WEEK);\n if (ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") && (diaDeLaSemana == Calendar.SATURDAY || diaDeLaSemana == Calendar.SUNDAY || (diaDeLaSemana == Calendar.FRIDAY && horaActual > 17))) {\n if (diaDeLaSemana == Calendar.FRIDAY) {\n c.add(Calendar.DAY_OF_MONTH, 3);\n } else if (diaDeLaSemana == Calendar.SATURDAY) {\n c.add(Calendar.DAY_OF_MONTH, 2);\n } else {\n c.add(Calendar.DAY_OF_MONTH, 1);\n }\n c.set(Calendar.HOUR_OF_DAY, 8);\n c.set(Calendar.MINUTE, 0);\n c.set(Calendar.SECOND, 0);\n } else if (ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") && (horaActual < 8 || horaActual > 17) && (diaDeLaSemana != Calendar.SATURDAY && diaDeLaSemana != Calendar.SUNDAY)) {\n if (horaActual > 17) {\n c.add(Calendar.DAY_OF_MONTH, 1);\n }\n c.set(Calendar.HOUR_OF_DAY, 8);\n c.set(Calendar.MINUTE, 0);\n c.set(Calendar.SECOND, 0);\n }\n ticket.setFechaDeProximaActualizacion(c.getTime());\n this.ticketFacade.edit(ticket);\n //Se actualiza el notificador\n Timer tarea = this.notificadorServicio.getTareaInfoById(\"t_update\" + ticket.getTicketNumber());\n if (tarea != null) {\n TareaTicketInfo info = (TareaTicketInfo) tarea.getInfo();\n info.setStartDate(c.getTime());\n info.setHour(String.valueOf(c.get(Calendar.HOUR)));\n info.setMinute(String.valueOf(c.get(Calendar.MINUTE)));\n info.setSecond(String.valueOf(c.get(Calendar.SECOND)));\n this.notificadorServicio.updateJob(info);\n }\n articulo.setDe(usuario);\n articulo.setPara(ticket.getUsuarioidcreador());\n StringBuilder cc = new StringBuilder();\n List<String> emails = contactosDeTicket(ticket, true);\n int i = 0;\n for (String email : emails) {\n if (i++ < emails.size()) {\n cc.append(email).append(\";\");\n }\n }\n articulo.setCopia(cc.toString());\n articulo.setTicketticketNumber(ticket);\n articulo.setFechaDeCreacion(new Date());\n articulo.setOrden(this.articuloFacade.obtenerOrdenDeArticuloTicket(ticket));\n articuloFacade.create(articulo);\n HistorialDeTicket historialDeTicket = new HistorialDeTicket();\n historialDeTicket.setEventoTicketcodigo(this.eventoTicketFacade.find(2));\n historialDeTicket.setOrden(this.historialDeTicketFacade.obtenerOrdenDeHistorialDeTicket(ticket));\n historialDeTicket.setTicketticketNumber(ticket);\n historialDeTicket.setFechaDelEvento(new Date());\n historialDeTicket.setUsuarioid(usuario);\n\n //Se envía un correo por ticket nuevo\n UtilidadDeEmail utilidadDeCorreoElectronico = new UtilidadDeEmail();\n DatosSinetcom datosSinetcom = this.datosSinetcomFacade.find(\"1791839692001\");\n if (esArticuloInicial) {\n //Se envia el correo electrónico notificando a todos los interesados \n utilidadDeCorreoElectronico.enviarMensajeConAdjunto(datosSinetcom.getEmailNoResponder(), \"[email protected]\", \"Nueva incidencia - Caso# \" + ticket.getTicketNumber(), crearCuerpoDeCorreoNuevoTicket(ticket, articulo, false), contactosDeTicket(ticket, true), articulo.getContenidoAdjunto() != null ? articulo.getContenidoAdjunto() : null, articulo.getContenidoAdjunto() != null ? ticket.getTicketNumber() + \"_\" + articulo.getId() + \".\" + articulo.getExtensionArchivo() : null);\n //Se envia un correo a todos los tecnicos de Sinetcom\n utilidadDeCorreoElectronico.enviarMensajeConAdjunto(datosSinetcom.getEmailNoResponder(), \"[email protected]\", \"Nueva incidencia - Caso# \" + ticket.getTicketNumber(), crearCuerpoDeCorreoNuevoTicket(ticket, articulo, true), contactosDeTicket(ticket, false), articulo.getContenidoAdjunto() != null ? articulo.getContenidoAdjunto() : null, articulo.getContenidoAdjunto() != null ? ticket.getTicketNumber() + \"_\" + articulo.getId() + \".\" + articulo.getExtensionArchivo() : null);\n } else {\n //Se envia un correo electrónico del nuevo articulo\n utilidadDeCorreoElectronico.enviarMensajeConAdjunto(datosSinetcom.getEmailNoResponder(), \"[email protected]\", \"Actualización - Caso# \" + ticket.getTicketNumber(), crearCuerpoDeCorreoNuevoArticuloEnTicket(articulo), contactosDeTicket(ticket, true), articulo.getContenidoAdjunto() != null ? articulo.getContenidoAdjunto() : null, articulo.getContenidoAdjunto() != null ? ticket.getTicketNumber() + \"_\" + articulo.getId() + \".\" + articulo.getExtensionArchivo() : null);\n }\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n\n return true;\n }",
"private void updateSoldProductInfo() { public static final String COL_SOLD_PRODUCT_CODE = \"sells_code\";\n// public static final String COL_SOLD_PRODUCT_SELL_ID = \"sells_id\";\n// public static final String COL_SOLD_PRODUCT_PRODUCT_ID = \"sells_product_id\";\n// public static final String COL_SOLD_PRODUCT_PRICE = \"product_price\";\n// public static final String COL_SOLD_PRODUCT_QUANTITY = \"quantity\";\n// public static final String COL_SOLD_PRODUCT_TOTAL_PRICE = \"total_price\";\n// public static final String COL_SOLD_PRODUCT_PENDING_STATUS = \"pending_status\";\n//\n\n for (ProductListModel product : products){\n soldProductInfo.storeSoldProductInfo(new SoldProductModel(\n printInfo.getInvoiceTv(),\n printInfo.getInvoiceTv(),\n product.getpCode(),\n product.getpPrice(),\n product.getpSelectQuantity(),\n printInfo.getTotalAmountTv(),\n paymentStatus+\"\"\n ));\n\n }\n }",
"public void menuAlterarProdutos(String username){\n Scanner s= new Scanner(System.in);\n CatalogoProdutos cp=b_dados.getLojas().get(username).getCatalogoProdutos();\n do {\n System.out.println(\"Escolha o que pretende fazer\");\n System.out.println(\"1 - Adicionar um produto\");\n System.out.println(\"2 - Atualizar um produto\");\n System.out.println(\"3 - Remover um produto\");\n System.out.println(\"0 - Retroceder\");\n String opcao=s.nextLine();\n if(opcao.equals(\"0\"))\n break;\n switch (opcao){\n case \"1\":\n System.out.println(\"Escreva a descrição do produto\");\n String descricao=s.nextLine();\n System.out.println(\"Introduza o preço do produto\");\n double preco=s.nextDouble();\n System.out.println(\"Introduza a quantidade disponivel\");\n double stock=s.nextDouble();\n Produto p = b_dados.novoProduto(username,descricao,preco,stock);\n b_dados.addProduto(username,p);\n break;\n case \"2\":\n int i=0;\n while(i==0){\n LogLoja l=b_dados.getLojas().get(username);\n System.out.println(l.getCatalogoProdutos().toString());\n System.out.println(\"Escreva o código de produto que deseja atualizar:\");\n String codigo=s.nextLine();\n if(b_dados.produtoExiste(username,codigo)) {\n i = 1;\n System.out.println(\"Introduza o novo stock do produto:\");\n double newstock = s.nextDouble();\n b_dados.updatestock(username, newstock, codigo);\n }\n\n else\n System.out.println(\"Esse Produto não existe tente de novo\");\n }\n break;\n case \"3\":\n int c=0;\n while(c==0){\n LogLoja l=b_dados.getLojas().get(username);\n System.out.println(l.getCatalogoProdutos().toString());\n System.out.println(\"Escreva o código de produto que deseja remover:\");\n String cod=s.nextLine();\n if(b_dados.produtoExiste(username,cod)){\n c=1;\n Produto prod=b_dados.buscaProduto(username,cod);\n b_dados.removeProduto(username,prod);\n }\n else\n System.out.println(\"Esse Produto não existe tente de novo\");\n }\n break;\n default:\n System.out.println(\"Entrada inválida\");\n break;\n }\n System.out.println(\"O seu catálogo:\");\n System.out.println(b_dados.getLojas().get(username).getCatalogoProdutos().toString());\n\n }while(true);\n }",
"public void localizarExibirProdutoCodigo(Prateleira prat){\n Produto mockup = new Produto();\r\n \r\n //pede o codigo para porcuara\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser procurado\" ));\r\n \r\n \r\n //ordena a prateleira\r\n Collections.sort(prat.getPrateleira());\r\n //seta o valor do codigo no auxiliar\r\n mockup.setCodigo(Codigo);\r\n \r\n //faz uma busca binaria no arraylist usando o auxiliar como parametro\r\n int resultado = Collections.binarySearch(prat.getPrateleira() ,mockup);\r\n \r\n //caso não encontre um\r\n if(resultado<0) \r\n //exibe essa mensagem\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" nao encontrado\");\r\n //caso encontre\r\n else {\r\n //mostrar o produto encontrado\r\n VisualizarProduto vp = new VisualizarProduto();\r\n vp.ver((Produto) prat.get(resultado));\r\n }\r\n }",
"public boolean ingresarPrimerContactoDeTicket(Ticket ticket, Usuario usuario) {\n try {\n //Se agrega la información de actualización y modificación\n ticket.setFechaDeModificacion(new Date());\n Calendar c = Calendar.getInstance();\n c.add(Calendar.HOUR, ticket.getItemProductonumeroSerial().getContratonumero().getSlaid().getTiempoDeActualizacionDeEscalacion());\n ticket.setFechaDeProximaActualizacion(c.getTime());\n //Se modifica el ticket y se agrega en el historial\n this.ticketFacade.edit(ticket);\n HistorialDeTicket historialDeTicket = new HistorialDeTicket();\n historialDeTicket.setEventoTicketcodigo(this.eventoTicketFacade.find(7));\n historialDeTicket.setFechaDelEvento(ticket.getFechaDePrimerContacto());\n historialDeTicket.setOrden(this.historialDeTicketFacade.obtenerOrdenDeHistorialDeTicket(ticket));\n historialDeTicket.setUsuarioid(usuario);\n historialDeTicket.setTicketticketNumber(ticket);\n this.historialDeTicketFacade.create(historialDeTicket);\n //Eliminamos el notificador de primer contacto\n Timer tarea = this.notificadorServicio.getTareaInfoById(\"t_sla\" + ticket.getTicketNumber());\n if (tarea != null) {\n tarea.cancel();\n }\n //Creamos el notificador de actualización de ticket\n TareaTicketInfo tareaTicketInfo = new TareaTicketInfo(\"t_update\" + ticket.getTicketNumber(), \"Notificador Actualizacion ticket# \" + ticket.getTicketNumber(), \"LoteTareaNotificarTiempoDeActualizacion\", ticket);\n Sla ticketSla = ticket.getItemProductonumeroSerial().getContratonumero().getSlaid();\n c = Calendar.getInstance();\n c.add(Calendar.HOUR, ticketSla.getTiempoDeActualizacionDeEscalacion());\n tareaTicketInfo.setStartDate(c.getTime());\n tareaTicketInfo.setSecond(String.valueOf(c.get(Calendar.SECOND)));\n tareaTicketInfo.setMinute(String.valueOf(c.get(Calendar.MINUTE)));\n tareaTicketInfo.setHour(String.valueOf(c.get(Calendar.HOUR_OF_DAY)) + \"/\" + ticketSla.getTiempoDeActualizacionDeEscalacion());\n c = Calendar.getInstance();\n c.add(Calendar.HOUR, ticketSla.getTiempoDeSolucion());\n tareaTicketInfo.setEndDate(c.getTime());\n tareaTicketInfo.setMonth(\"*\");\n tareaTicketInfo.setDayOfMonth(\"*\");\n tareaTicketInfo.setDayOfWeek(ticketSla.getTipoDisponibilidadid().getDisponibilidad().equals(\"8x5\") ? \"Mon, Tue, Wed, Thu, Fri\" : \"*\");\n tareaTicketInfo.setYear(\"*\");\n tareaTicketInfo.setDescription(\"Tarea Actualizacion para ticket# \" + ticket.getTicketNumber());\n this.notificadorServicio.createJob(tareaTicketInfo);\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n return true;\n }",
"public static void productoFinalizado(){\r\n System.out.println(\"Imprimo Producto Finalizado\");\r\n }",
"@FXML\n\t private void setProdInfoToTextArea ( Product prod) {\n\t resultArea.setText(\"Denumire: \" + prod.getDenumire() + \"\\n\" +\"Producator: \" + prod.getProducator() + \"\\n\" + \"Pret: \" + prod.getPrice() + \"\\n\" + \"Marime: \" + prod.getMarime() + \"\\n\" + \"Culoare: \" + prod.getCuloare());\n\t }",
"void actualizarNotaIngresoPorHacer(Integer codigoCompania, Long codigoNotaIngreso, String estadoPorHacer, String observacion, String codigoUsuario)throws SICException;",
"public void actualisePrixDeVente(){\n\t\tArrayList<Catalogue> lis = new ArrayList<Catalogue>();\n\t\tfor (ITransformateur t : this.getTransfos()) {\n\t\t\tlis.add(t.getCatalogue());\n\t\t}\n\t\tthis.setCatalogues(lis);\n\t\tthis.setPrixDeVente();\n\t}",
"public UpdateProduct() {\n\t\tsuper();\t\t\n\t}",
"public static void modificarEstructura(int idEstructura, int cantidad, boolean activo, String version, int idProducto, int idArticulo) {\n String sql = Queries.ESTRUCTURA_ALTAESTRUCTURA;\n sql = sql.replaceAll(\"CANT\", String.valueOf(cantidad));\n sql = sql.replaceAll(\"ACT\", String.valueOf(activo));\n sql = sql.replaceAll(\"VER\", version);\n sql = sql.replaceAll(\"IDPROD\", String.valueOf(idProducto));\n sql = sql.replaceAll(\"IDART\", String.valueOf(idArticulo));\n sql = sql.replaceAll(\"IDEST\", String.valueOf(idEstructura));\n\n DBConnection.execSQL(sql);\n }",
"public static void main(String args[]) {\nProducto p = new Producto(\"123456\", 1987.29f, 2123.10f);\r\nObservadorCodigoBarras ObsCodigo = new ObservadorCodigoBarras();\r\nObservadorCosto ObsCosto = new ObservadorCosto();\r\n// Agregando los Observadores para Producto!\r\np.addObserver(ObsCodigo);\r\np.addObserver(ObsCosto);\r\n// Crear y Manipular Cambios en el Producto.\r\nSystem.out.println(\"----Cambio de Codigo Barras---\");\r\np.setCodigoBarra(\"654321\");\r\nSystem.out.println(\"----Cambio de Costo---\");\r\np.setCosto(18879.6f);\r\n\r\n}",
"private void cargarProductos() {\r\n\t\tproductos = productoEJB.listarInventariosProductos();\r\n\r\n\t\tif (productos.size() == 0) {\r\n\r\n\t\t\tList<Producto> listaProductos = productoEJB.listarProductos();\r\n\r\n\t\t\tif (listaProductos.size() > 0) {\r\n\r\n\t\t\t\tMessages.addFlashGlobalWarn(\"Para realizar una venta debe agregar los productos a un inventario\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}",
"@Override\n\tpublic void update(ExportProduct exportProduct) {\n\t\t\n\t}",
"@Override\n public void actionPerformed(ActionEvent evt) \n {\n Offre E2=new Offre(E.getId_etablissement(),C.getDate(),C2.getDate(),gui_Text_Field_2.getText(),gui_Text_Field_1.getText());\n OffreService service=new OffreService();\n if (E.getId_etablissement().getPartenaire()==0){\n E2.setCode(\"\");\n E2.setPourcentage(0);\n service.updateOffreSans(E, E2);\n \n }\n else {\n E2.setCode(gui_Text_Field_3.getText());\n \n E2.setPourcentage(Float.parseFloat(gui_Text_Field_4.getText()));\n service.updateOffreAvec(E, E2);\n }\n last.refreshTheme();\n last.show();\n \n }",
"private void jbtnModifActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnModifActionPerformed\n if(isNumeric() == true){ \n String sReq = \"from Offre Where Off_Etablissement = '\"+sEtablissementId+\"' And Off_TypeChambre = '\"+sChambresId+\"'\";\n Query q = jfPrincipal.getSession().createQuery(sReq);\n Offre unOffre = (Offre) q.uniqueResult();\n unOffre.setOffNbchambres(Byte.parseByte(jtxtModif.getText()));\n Transaction tx = jfPrincipal.getSession().beginTransaction();\n tx.commit();\n jfPrincipal.getSession().update (unOffre);\n chargeTable(sEtablissementId);\n }\n else{\n JOptionPane.showMessageDialog(null, \"La valeur saisie pour la quantité doit être un chiffre\");\n }\n }",
"public void actualizarStock(Long idProducto, Long cantidad) {\n\t\t\n\t}",
"@Override\n public String getInformacionInstruccion() {\n\treturn \"comando desconocido\";\n }",
"public int modificar(TratamientoVO tratamiento) {\n\t\treturn 0;\n\t}",
"public void alerta() {\r\n try {\r\n rs = modelo.Alerta();//C.P.M consultamos los producto con alerta en existencia\r\n DefaultTableModel alerta = new DefaultTableModel() {//C.P.M Creamos el modelo de nuestra tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M le decimos que no seran editables los componetnes\r\n return false;\r\n }\r\n };\r\n vista.Talertas.setModel(alerta);//C.P.M le mandamos el modelo a la tabla de la vista\r\n modelo.estructuraAlrta(alerta);//C.P.M obtenemos la estructura de la tabla \"los encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M Obtenemos los metadatos para obtener la cantidad del columnas que llegan\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M la cantidad la alojamos dentro de un entero\r\n while (rs.next()) {//C.P.M recorremos la informacion obtenida\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con el tamano de el resultado\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1);//C.P.M y insertamos los valores que trajo del modelo\r\n }\r\n alerta.addRow(fila);//C.P.M agregamos el arreglo como una nueva fila dentro de la tabla\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al consultar los producto con alerta\");\r\n }\r\n }",
"@Override\n\tpublic void entregarProductos(AgenteSaab a, Oferta o) {\n\t\t\n\t}",
"public static void atualizarProduto(long id_produto, String codigo, String descricao,String preco,long idgrupo){\r\n try {\r\n PreparedStatement stmn = connection.prepareStatement(\"Update produto set codigo = ?, descricao =? , preco =?,idgrupo =? where id_produto = ?\");\r\n stmn.setString(1,codigo);\r\n stmn.setString(2,descricao);\r\n stmn.setString(3,preco);\r\n stmn.setLong(4,idgrupo);\r\n stmn.setLong(5,id_produto);\r\n\r\n int row = stmn.executeUpdate();\r\n if(row == 0){\r\n System.out.println(\"Informação não alterada\");\r\n }else{\r\n System.out.println(\"Dados atualizados\");\r\n }\r\n } catch (SQLException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n }",
"@Test\n\tpublic void updateProductTest2() throws Exception {\n Attribute attr1 = ProductAttributeGenerator.generate(Generator.randomString(6, Generator.AlphaChars), \"Date\", \"AdminEntered\", \"Datetime\", false, false, true);\n Attribute createdAttr = AttributeFactory.addAttribute(apiContext, attr1, HttpStatus.SC_CREATED);\n \n\t\t\n\t //update product type\n ProductType myPT = ProductTypeGenerator.generate(createdAttr, Generator.randomString(5, Generator.AlphaChars));\n ProductType createdPT = ProductTypeFactory.addProductType(apiContext, DataViewMode.Live, myPT, HttpStatus.SC_CREATED);\n \n Product myProduct = ProductGenerator.generate(createdPT);\n List<ProductPropertyValue> salePriceDateValue = new ArrayList<ProductPropertyValue>();\n ProductPropertyValue salePriceValue = new ProductPropertyValue();\n DateTime date = DateTime.now();\n salePriceValue.setValue(date);\n salePriceDateValue.add(salePriceValue);\n myProduct.getProperties().get(myProduct.getProperties().size()-1).setValues(salePriceDateValue);\n Product createdProduct = ProductFactory.addProduct(apiContext, DataViewMode.Live, myProduct, HttpStatus.SC_CREATED);\n\t}",
"@Override\n\tpublic void updateDoctorProductByOrder(OrderInfo orderInfo) {\n\t\tif(orderInfo == null) return;\n\t\tStringBuffer sql = new StringBuffer(\"update doctor_product set isProvide='Y' where 1=1\");\n\t\tif(orderInfo != null){\n\t\t\tif(orderInfo.getDoctorId() != null ){\n\t\t\t\tsql.append(\" and doctorId='\"+orderInfo.getDoctorId()+\"'\");\n\t\t\t}\n\t\t\tif(orderInfo.getBespokeDate() != null && \"\".equals(orderInfo.getBespokeDate().trim())){\n\t\t\t\tsql.append(\" and serviceDate='\"+orderInfo.getBespokeDate().trim()+\"'\");\n\t\t\t}\n\t\t\tif(orderInfo.getBespokeTime() != null && \"\".equals(orderInfo.getBespokeTime().trim())){\n\t\t\t\tString bespokeTime = orderInfo.getBespokeTime();\n\t\t\t\tString startTime = bespokeTime.split(\":00\")[0];\n\t\t\t\tString endTime = bespokeTime.split(\":00\")[2];\n\t\t\t\tsql.append(\" AND serviceTimes IN(\"+startTime+\",\"+endTime+\") \");//上门时间\n\t\t\t}\n\t\t}\n\t\tSession session = getHibernateTemplate().getSessionFactory().openSession();\n\t\tsession.createSQLQuery(sql.toString()).executeUpdate();\n\t\tsession.close();\n\t}",
"@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"@Override\n public void modificarConfiguracion(Entity e) throws SQLException {\n Connection conexion;\n ResultSet result = null;\n String select= \"UPDATE config_notificacion SET \" +\n \"con_not_boletin = ?, con_not_recibir =? , \" +\n \"con_not_preferencias = ?, con_not_suscripciones = ?, \" +\n \"con_not_etiquetado = ?, con_not_estadisticas =? \" +\n \"WHERE con_not_id = ?;\";\n PreparedStatement ps = null;\n Entity config = (ConfiguracionNotificaciones) e;\n try {\n conexion = getBdConnect();\n ps = conexion.prepareStatement(select);\n ps.setInt(1, config.get_id());\n }\n catch (SQLException error){\n error.printStackTrace();\n }\n finally {\n closeConnection();\n }\n }",
"private void updateProduct(boolean rebuild) {\n\n // Save the product.\n PshUtil.savePshData(pshData);\n\n // Build report and display.\n if (rebuild) {\n previewProduct = PshUtil.buildPshReport(pshData);\n previewText.setText(previewProduct);\n }\n }",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"private void btnModificaActionPerformed(java.awt.event.ActionEvent evt) { \n try {\n // Exceptie pentru neselectarea unui element\n if (ContactList.isSelectionEmpty()) {\n throw new ItemNotSelectedException();\n }\n // Prelucrarea datelor contactului selectat pentru a le prelua in campurile din fereastra de dialog\n Contact actual = (Contact) model.getElementAt(ContactList.getSelectedIndex());\n String sc[] = actual.toString().split(\",\");\n diAdauga.setVisible(true);\n String name[] = sc[0].split(\" \");\n tfNume.setText(name[0]);\n tfPrenume.setText(name[1]);\n tfNumarTelefon.setText(sc[1].trim());\n if (tfNumarTelefon.getText().substring(0, 2).equals(\"02\") || tfNumarTelefon.getText().substring(0, 2).equals(\"03\")) {\n cbFix.setSelected(true);\n } else {\n cbMobil.setSelected(true);\n }\n String d = sc[2].trim();\n String dataNasterii[] = d.split(\"-\");\n String a = dataNasterii[0];\n String l = dataNasterii[1];\n String z = dataNasterii[2];\n String dt = z + \".\" + l + \".\" + a;\n tfDataNasterii.setText(dt);\n btnConfirma.setVisible(false);\n } catch (ArrayIndexOutOfBoundsException e) {\n JOptionPane.showMessageDialog(this, \"Lista este goala!\");\n } catch (ItemNotSelectedException e) {\n JOptionPane.showMessageDialog(this, \"Nu exista un index selectat\");\n }\n\n\n }",
"@Override\r\n\tpublic void actualizar(int id_evento_vista, Object datos) {\r\n\t\t//Borra lo anterior\r\n \t\r\n \t jFormattedTextFieldPiso.setText(\"\");\r\n jFormattedTextFieldNumero.setText(\"\");\r\n jFormattedTextFieldTipo.setText(\"\");\r\n \r\n\t\t\r\n\t\tif(id_evento_vista == EventoVista.ALTA_HABITACION_EXITO){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Se ha creado la Habitacion con exito\", \"Nuevo Habitacion\", JOptionPane.INFORMATION_MESSAGE);\t\t\r\n\t\t}\t\r\n\t\r\n\t\telse if (id_evento_vista == EventoVista.ALTA_HABITACION_FALLO){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"ERROR!! Ha ocurrido un error con la BD\", \"Nuevo Habitacion\", JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t\t\r\n\t}",
"private static void update(int portNummber, InetAddress address, Product product){\n\n for(SensorData sensorData : actualSensorDatas){\n if((sensorData.getPortNummber() == portNummber)\n || (sensorData.getAddress() == address)\n || (sensorData.getProduct().getNameOfProduct() == product.getNameOfProduct()) ){\n sensorData.setProduct(product) ;\n }\n }\n }",
"public void majInformation (String typeMessage, String moduleMessage, String corpsMessage) {\n Date date = new Date();\n listMessageInfo.addFirst(dateFormat.format(date)+\" - \"+typeMessage+\" - \"+moduleMessage+\" - \"+corpsMessage);\n }",
"@Override\n\tpublic boolean updateProduct(Product p) {\n\t\treturn false;\n\t}",
"public void update(Product product) {\n\n\t}",
"public void cargaDatosInicialesSoloParaModificacionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n selectAuxiliarParaAsignacionModificacion = cntEntidadesService.listaDeAuxiliaresPorEntidad(selectedEntidad);\n //Obtien Ajuste Fin\n\n //Activa formulario para automatico modifica \n switch (selectedEntidad.getNivel()) {\n case 1:\n swParAutomatico = true;\n numeroEspaciador = 200;\n break;\n case 2:\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciador = 200;\n break;\n case 3:\n swParAutomatico = false;\n numeroEspaciador = 1;\n break;\n default:\n break;\n }\n\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n }",
"private void carregaInformacoes() {\n Pessoa pessoa = (Pessoa) getIntent().getExtras().getSerializable(\"pessoa\");\n edtNome.setText(pessoa.getNome());\n edtEmail.setText(pessoa.getEmail());\n edtTelefone.setText(pessoa.getTelefone());\n edtIdade.setText(pessoa.getIdade());\n edtCPF.setText(pessoa.getCpf());\n }",
"void setProduct(x0401.oecdStandardAuditFileTaxPT1.ProductDocument.Product product);",
"public void actualizarClasificacionArticuloProveedor(Collection<ProveedorClasificacionDTO> proveedorClasificacionDTOs, Integer codigoTipoProcesoIntegracion, String idUsuarioRegistro,Boolean sincronizarDescuentoNotaCredito, ProveedorVO proveedorVO, Collection<DatosOrdenCompra> ordenesCompra) throws SICException;"
] | [
"0.67191887",
"0.6344984",
"0.6338284",
"0.62509537",
"0.6135967",
"0.612931",
"0.60474384",
"0.60274035",
"0.6020184",
"0.6016745",
"0.6016424",
"0.59915155",
"0.598893",
"0.59842694",
"0.59583175",
"0.59269685",
"0.5919425",
"0.5914767",
"0.5875464",
"0.5858356",
"0.58547556",
"0.58536965",
"0.5845742",
"0.58384377",
"0.5824303",
"0.58144015",
"0.5807275",
"0.5802963",
"0.5802695",
"0.57990164",
"0.5796985",
"0.5793462",
"0.57900757",
"0.57760835",
"0.5765856",
"0.5765748",
"0.5760057",
"0.5752341",
"0.5744085",
"0.5741238",
"0.57368374",
"0.57235384",
"0.5707248",
"0.5699121",
"0.5672278",
"0.5661432",
"0.5646668",
"0.5643356",
"0.56429553",
"0.56274575",
"0.5621488",
"0.5620946",
"0.56170726",
"0.56166923",
"0.5612677",
"0.5611861",
"0.560301",
"0.5598027",
"0.55977356",
"0.5595631",
"0.55941135",
"0.55928725",
"0.55786973",
"0.5578484",
"0.55763245",
"0.55752033",
"0.5567586",
"0.55654603",
"0.55601823",
"0.5558458",
"0.5556215",
"0.5554392",
"0.5551831",
"0.5541772",
"0.5539357",
"0.55389947",
"0.553127",
"0.55225694",
"0.5519513",
"0.5518351",
"0.55156744",
"0.5509822",
"0.5508886",
"0.5507316",
"0.55071574",
"0.55003023",
"0.5496977",
"0.54965496",
"0.5496476",
"0.5493579",
"0.5489301",
"0.54832447",
"0.5481773",
"0.54803044",
"0.5478771",
"0.5475949",
"0.5475243",
"0.5475025",
"0.547425",
"0.54724103",
"0.5469998"
] | 0.0 | -1 |
Elimina una Categoria por su id. | @DELETE
@Path("{id:\\d+}")
public String eliminarProductora(@PathParam("id") Long id) throws BusinessLogicException {
LOGGER.log(Level.INFO, "ProdcutoraResource eliminarcategoria: input: {0}", id);
CategoriaEntity entity = categoriaLogic.getCategoria(id);
if (entity == null) {
throw new WebApplicationException("El recurso /productoras/" + id + " no existe.", 404);
}
categoriaLogic.borrarCategoria(id);
LOGGER.info("ProduccionResource eliminarProduccion: output: void");
return "Se borro exitosamente la categoria con id: " + id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void delete(Long id) {\n log.debug(\"Request to delete Categoria : {}\", id);\n categoriaRepository.delete(id);\n }",
"void deleteCategory(Integer id);",
"void deleteCategory(long id);",
"public void deleteCategorie(Categorie c);",
"public void delete(Integer id) {\n\t\tfindById(id);\n\n\t\t//fazendo isso pois se tentar remover algum obj que tenha objetos associados com ele\n\t\t//quero que der uma exceção personalizada, em vez de erro 500\n\t\ttry {\n\t\t\trepo.deleteById(id);\n\t\t} catch (Exception e) {\n\t\t\tthrow new DataIntegrityException(\"Não é possível excluir categoria que não possui produto\");\n\t\t}\n\t}",
"public void delete(Long categoriaId) {\n LOGGER.log(Level.INFO, \"Borrando categoria con id = {0}\", categoriaId);\n CategoriaEntity categoriaEntity = em.find(CategoriaEntity.class, categoriaId);\n em.remove(categoriaEntity);\n LOGGER.log(Level.INFO, \"Saliendo de borrar la categoria con id = {0}\", categoriaId);\n }",
"@Override\n\tpublic void deleteCateogry(int id) {\n\t\tcategoryRepository.deleteById(id);\n\t\t\n\t}",
"public void deleteCategory(Long id) throws BusinessException;",
"public es.davinciti.liferay.model.LineaGastoCategoria remove(\n\t\tlong categoriaId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tes.davinciti.liferay.NoSuchLineaGastoCategoriaException;",
"void deleteTrackerListCategory(final Integer id);",
"void deleteCategoryById(int categoryId);",
"public void deleteCategory(int id){\n\t\t// delete all the values in location\n\t\tdb.delete(DBEntryContract.LocationEntry.TABLE_NAME, DBEntryContract.LocationEntry.COLUMN_NAME_CATEGORY +\" = ?\", new String[]{String.valueOf(id)});\n\t\t// delete the category\n\t\tdb.delete(DBEntryContract.CategoryEntry.TABLE_NAME, DBEntryContract.CategoryEntry._ID+\"= ?\", new String[]{String.valueOf(id)});\n\t}",
"public void delete(int id) {\n\t\tcat_vo cv = new cat_vo();\n\t\tcv.setId(id);\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tTransaction tr = s.beginTransaction();\n\n\t\ts.delete(cv);\n\t\ttr.commit();\n\t}",
"public void delete(int id) {\n\t\tCategory function = this.get(id) ;\r\n\t\tthis.getCurrentSession().delete(function);\r\n\t}",
"@Override\n\tpublic ZuelResult removeContentCategoryById(Long id) throws ServiceException {\n\t\ttry {\n TbContentCategory contentCategory = new TbContentCategory();\n contentCategory.setId(id);\n contentCategory.setUpdated(new Date());\n contentCategory.setStatus(ZuelContentStatus.CONTENT_CATEGORY_DELETED);\n boolean isDeleted = service.removeContentCategory(contentCategory);\n if (isDeleted) {\n return ZuelResult.ok();\n }\n }catch (ServiceException e){\n e.printStackTrace();\n throw e;\n }\n return ZuelResult.error(\"服务器忙,请稍后重试\");\n\t}",
"void removeCategory(Category category);",
"public void delete(Long id){\n try {\n categoriaUsuarioRepository.deleteById(id);\n }catch (Exception e){\n System.out.println(e);\n }\n }",
"public void eliminarCajeros(int id);",
"@Override\n public void delete(long id) {\n categoryRepository.deleteById(id);\n }",
"@Override\n\tpublic void eliminaCategoria(String nome) {\n\t\tDB db = getDB();\n\t\tMap<Long, Categoria> categorie = db.getTreeMap(\"categorie\");\n\t\tlong hash = nome.hashCode();\n\t\tcategorie.remove(hash);\n\t\tdb.commit();\n\t}",
"public void setCategoriaId(Long id);",
"@DeleteMapping(\"/categoriesfu/{id}\")\n\t@Secured({ AuthoritiesConstants.ADMIN, AuthoritiesConstants.BOSS, AuthoritiesConstants.MANAGER })\n public synchronized ResponseEntity<Void> deleteCategory(@PathVariable Long id) {\n log.debug(\"REST request to delete Category : {}\", id);\n //fu\n final String user =SecurityUtils.getCurrentUserLogin().get();\n final UserToRestaurant userToRestaurant=userToRestaurantRepository.findOneByUserLogin(user);\n final Restaurant restaurant=userToRestaurant.getRestaurant();\n final Optional<Category> category = categoryRepository.findById(id);\n if(category.get().getRestaurant().getId()!=restaurant.getId()) {\n \tid = null;\n }\n categoryRepository.deleteById(id);\n return ResponseEntity.noContent().headers(HeaderUtil.createEntityDeletionAlert(applicationName, true, ENTITY_NAME, id.toString())).build();\n }",
"public void delete(int id) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tCategoriesTypePojo categoriesTypePojo = findById(id);\n\t\tsession.delete(categoriesTypePojo);\n\t}",
"void deleteCategoryProducts(long id);",
"@Override\n\tpublic void deleteClasse(String id) {\n\t\tclasseRepo.deleteById(id);\n\t}",
"public void removerContaCategoria(Conta conta)\n\t\t\tthrows ErroRepositorioException;",
"@Override\n\tpublic Categories delete(Integer catId) {\n\t\treturn categoriesDAO.delete(catId);\n\t}",
"void deleteCodeCategory(UUID id)\n throws DAOException;",
"@RequestMapping(value = RestConstant.BY_ID, method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic ResponseEntity<Category> deleteById(@PathVariable(\"id\") Long id) {\r\n\t\ttry {\r\n\t\t\tcategoryService.deleteById(id);\r\n\t\t\treturn new ResponseEntity<Category>(HttpStatus.NO_CONTENT);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Failed to delete the category for the id \" + id, e);\r\n\t\t\treturn new ResponseEntity<Category>(HttpStatus.INTERNAL_SERVER_ERROR);\r\n\t\t}\r\n\t}",
"public void clearCategories(int id) {\n\t\tdb.delete(CATEGORIES_TABLE, \"blog_id=\" + id, null);\n\t\t\n\t}",
"@Override\n\tpublic int delete(Long id) {\n\t\treturn foodCategoryDao.delete(id);\n\t}",
"@RequestMapping(value = { \"/delete/category/{id}\" }, method = RequestMethod.GET)\r\n\tpublic String deleteCategory(@PathVariable int id) {\r\n\t\tcategory = categoryDAO.get(id);\r\n\t\tcategoryDAO.deleteCategory(category);\r\n\t\treturn \"redirect:/admin/addcategory?op=delete&status=success&id=\" + id;\r\n\t}",
"public static void deleteCategoryName(Context context, int id) {\r\n DbManager dbManager = new DbManager(context);\r\n SQLiteDatabase db = dbManager.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(CategoryTable.COLUMN_NAME_IS_DELETED, 1);\r\n\r\n db.update(\r\n DbContract.CategoryTable.TABLE_NAME,\r\n values,\r\n DbContract.CategoryTable._ID + \" = ?\",\r\n new String[]{Integer.toString(id)}\r\n );\r\n db.close();\r\n }",
"public Categorie getCategorieById(long id);",
"@Override\n\tpublic int deleteById(String id) {\n\t\treturn SApplicationcategorydao.deleteById(SApplicationcategory.class, id);\n\t}",
"@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n @RequestMapping(value=\"/{id}\", method=RequestMethod.DELETE)\n public ResponseEntity<Void> deleteCategory(@PathVariable Long id){\n try {\n catService.delete(id);\n } catch (Exception e) {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n\n return new ResponseEntity<>(HttpStatus.OK);\n }",
"@Override\n @CacheEvict\n public void delete(Long id) {\n log.debug(\"Request to delete Category : {}\", id);\n categoryRepository.delete(id);\n }",
"void deleteCategory(Category category);",
"public Result deleteCategories(int id){\r\n Result result = new Result();\r\n int numRowsDeleted;\r\n String deleteCommand = \"DELETE FROM Categories WHERE productID= ?\";\r\n\r\n try {\r\n PreparedStatement statement = conn.prepareStatement(deleteCommand);\r\n statement.setInt(1, id);\r\n\r\n numRowsDeleted = statement.executeUpdate();\r\n\r\n if(numRowsDeleted >0)\r\n result.successful();\r\n else\r\n result.failure(\"Failed to delete category\");\r\n\r\n }catch (SQLException e){\r\n result.failure(\"Failed to create a statement\");\r\n }\r\n\r\n return result;\r\n }",
"public void eliminarSolicitud(int id){\n listaSolicitudes.remove(id);\n }",
"public void eliminarTipoAnimal(Long id){\n persistence.delete(id);\n }",
"void deleteCategoryByName(String categoryName);",
"void deleteCachedCodeCategory(UUID id)\n throws DAOException;",
"public void borrarArticulo(int id) {\n\n\t\tcat = Catalogo.getInstance();\n\t\t\n\t\tcat.getArticulos().remove(cat.encuentra((int)vista.getCajaTabla().getValueAt(id, 3)));\n\n\t}",
"@DeleteMapping(\"/category/{id}\")\n ResponseEntity<Category> deleteCategory(@PathVariable Long id){\n categoryRepository.deleteById(id);\n return ResponseEntity.ok().build();\n }",
"@Override\n\tpublic Category removeCategory(String categoryId) throws Exception {\n\t\treturn null;\n\t}",
"public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }",
"@Override\r\n\tpublic boolean deleteCategorie(Categorie categorie) {\n\t\treturn cateDao.deleteCategorie(categorie);\r\n\t}",
"public void remove(Integer id) {\n\t\t\r\n\t}",
"public static void eliminarTodosLosConceptosCatgeorias() {\n\t\tnew Delete().from(ConceptoCategoria.class).execute();\n\t}",
"Boolean deleteCategory(Integer category_Id) throws DvdStoreException;",
"private static ArrayList<Produto> listProdutosPorCategoria(int idCategoria) throws Exception {\r\n ArrayList<Produto> lista = arqProdutos.toList();\r\n lista.removeIf(p -> p.idCategoria != idCategoria);\r\n return lista;\r\n }",
"void remove(String id);",
"void remove(String id);",
"void remove(String id);",
"@Override\n\tpublic void eliminar(Integer id) {\n\t\t\n\t}",
"@Override\n\tpublic void eliminar(Integer id) {\n\t\t\n\t}",
"public void remove(String id) {\n\t\t\n\t}",
"public void delete(Long id) {\n log.debug(\"Request to delete SubCategory : {}\", id);\n subCategoryRepository.delete(id);\n }",
"public DVDCategorie getDVDCategorie(int id);",
"@Override\n\tprotected void destroyRecord(int id) {\n\t\tCategory category = new Category();\n\t\tcategory.setId(id);\n\t\tnew Categories().destroy(category);\t\n\t}",
"public int deleteByPrimaryKey(Integer id) {\n\t\treturn animationcategoryMapper.deleteByPrimaryKey(id);\r\n\t}",
"public void removeInwDepartCompetence(final String id);",
"public void removeByid_(long id_);",
"private static void removerCategoria() throws Exception {\r\n int idCategoria;\r\n int idCategoriaNew;\r\n boolean erro, valido, result = false;\r\n Integer[] idsValidosC;\r\n ArrayList<Produto> lista;\r\n String nomeCategoria = null;\r\n System.out.println(\"\\t** Remover categoria **\\n\");\r\n do {\r\n erro = false;\r\n System.out.print(\"ID da categoria a ser removida: \");\r\n idCategoria = read.nextInt();\r\n if (idCategoria > 0) {\r\n nomeCategoria = getNomeCategoria(idCategoria - 1);\r\n if (nomeCategoria == null) {\r\n erro = true;\r\n System.out.println(\"Categoria inexistente!\");\r\n }\r\n } else {\r\n erro = true;\r\n System.out.println(\"ID Inválida!\");\r\n }\r\n System.out.println();\r\n } while (erro);\r\n\r\n do {\r\n erro = false;\r\n System.out.println(\"\\nRemover a categoria '\" + nomeCategoria + \"' ?\");\r\n System.out.print(\"1 - SIM\\n2 - NÂO\\nR: \");\r\n switch (read.nextByte()) {\r\n case 1:\r\n lista = listProdutosPorCategoria(idCategoria);\r\n if (lista.isEmpty()) {\r\n System.out.println(\"Não ha produtos associados a '\" + nomeCategoria + \"', procedendo com remoção...\");\r\n result = arqCategorias.remover(idCategoria - 1);\r\n if (result) {\r\n System.out.println(\"Removido com sucesso!\");\r\n }\r\n } else {\r\n System.out.println(\"\\nExistem produtos nessa categoria!!\");\r\n System.out.println(\r\n \"O que deseja fazer?\\n\"\r\n + \"0 - Apagar todos os produtos pertencentes e a categoria\\n\"\r\n + \"1 - Mudar a categoria dos produtos e remover\\n\"\r\n + \"2 - Cancelar remoção\\n\"\r\n );\r\n do {\r\n erro = false;\r\n System.out.print(\"Opção: \");\r\n switch (read.nextByte()) {//Inicio switch\r\n case 0:\r\n for (Produto p : lista) {\r\n System.out.println(\"Removendo '\" + p.nomeProduto + \"'...\");\r\n result = arqProdutos.remover(p.getID() - 1);\r\n }\r\n System.out.println(\"Excluindo categoria '\" + nomeCategoria + \"'...\");\r\n result = arqCategorias.remover(idCategoria - 1);\r\n System.out.println(\"Concluido exclusão de \" + lista.size() + \" produtos e 1 categoria.\");\r\n lista = null;\r\n break;\r\n case 1:\r\n idsValidosC = listaCategoriasCadastradas();\r\n if (idsValidosC.length == 1) {\r\n System.out.println(\"\\nOperação não é possivel!\\nSo tem uma categoria!\");\r\n Thread.sleep(1000);\r\n } else {\r\n System.out.println(\"\\nProdutos:\");\r\n for (Produto p : lista) {\r\n System.out.println(\r\n \"\\nId: \" + p.getID()\r\n + \"\\nNome: \" + p.nomeProduto\r\n + \"\\nDescricao: \" + p.descricao\r\n + \"\\nMarca: \" + p.marca\r\n );\r\n System.out.print(\"\\nEscolha uma outra categoria para o produto,\\ne digite o ID: \");\r\n do {\r\n valido = false;\r\n idCategoriaNew = read.nextInt();\r\n valido = Arrays.asList(idsValidosC).contains(idCategoria);\r\n if (!valido) {\r\n System.out.println(\"Esse ID não é valido!\\nDigite um ID valido: \");\r\n } else if (idCategoriaNew == idCategoria) {\r\n System.out.println(\"Não pode escolher a mesma categoria antiga!\\nDigite um ID valido: \");\r\n valido = false;\r\n }\r\n } while (!valido);\r\n p.idCategoria = idCategoriaNew;\r\n if (arqProdutos.alterar(p.getID(), p)) {\r\n System.out.println(\"Movido com sucesso!\");\r\n } else {\r\n System.out.println(\"Algo de errado aconteceu!\\nNão foi possivel mover!\");\r\n }\r\n }\r\n result = arqCategorias.remover(idCategoria - 1);\r\n }//Fim else\r\n break;\r\n case 2:\r\n System.out.println(\"\\nOperação Cancelada!\");\r\n break;\r\n default:\r\n System.out.println(\"\\nOpção Inválida!\\n\");\r\n erro = true;\r\n break;\r\n }//Fim switch\r\n } while (erro);\r\n }\r\n break;\r\n case 2:\r\n System.out.println(\"\\nOperação Cancelada!\");\r\n break;\r\n default:\r\n System.out.println(\"\\nOpção Inválida!\\n\");\r\n erro = true;\r\n break;\r\n }\r\n } while (erro);\r\n }",
"@Override\n public void remove(Integer id) {\n Connection c = null;\n PreparedStatement pstmt = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"DELETE FROM curso WHERE idcurso = ?\");\n\n pstmt.setInt(1, id);\n\n pstmt.executeUpdate();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"@Override\n\tpublic void eliminar(int id) {\n\t\tdao.deleteById(id);;\n\t}",
"Categorie findOne(Long id);",
"public void eliminarTripulante(Long id);",
"public void delete(int id) {\n\t \t\n\t T entity = getEntityManager().find(getEntityClass(), id);\n\t System.out.print(\"------ \" + ((Conexion)entity).getCamposConexion().size()+ \" - - - - - \");\n\t getEntityManager().getTransaction().begin();\n\t getEntityManager().remove(entity);\n\t getEntityManager().getTransaction().commit();\n\t }",
"public static Categorias obtenerCategoria(int id){\n Categorias categoria = new Categorias();\n \n Categorias c = new Categorias();\n \n c.conectar();\n \n c.crearQuery(\"select * from categoria_libro where id = ?\");\n \n c.agregarParametro(1, id);\n \n ResultSet informacion = c.getResultSet();\n \n try {\n if (informacion.next())\n categoria = new Categorias(informacion);\n } catch (Exception error) {}\n \n c.desconectar();\n \n return categoria;\n }",
"@ApiMethod(name = \"removeCategory\",\n path = \"category/{id}\",\n httpMethod = ApiMethod.HttpMethod.DELETE)\n public void removeCategory(final User user, @Named(\"id\") Long id)\n throws NotFoundException, UnauthorizedException {\n\n if (user == null) {\n throw new UnauthorizedException(Constants.AUTHORIZATION_REQUIRED);\n }\n\n mCategoryService.remove(id);\n }",
"public void excluirContaCategoria(Integer idFaturamentoGrupo , Integer anoMesReferencia) throws ErroRepositorioException ;",
"public void remove(Integer id) {\n\r\n\t}",
"public void removeGroup(String id) {\r\n System.out.println(\"conectado con model ---> metodo removeGroup\");\r\n //TODO\r\n }",
"public boolean deleteCategory(int id) {\n\t\ttry{\n\t\t\tSession session = getSession();\n\t\t\tQuery query = session.createQuery(\"from Category where categoryId = ?\");\n\t\t\tquery.setInteger(0, categoryId);\n\t\t\t\n\t\t\tCategory u=(Category) query.uniqueResult();\n\t\t\tsession.delete(u);\n\t\t\tsession.flush();\n\t\t\t\n\t\t\tsession.close();\n\t\t\treturn true;\n\t\t}\n\t\tcatch(HibernateException e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t}",
"@Override\r\n\tpublic void excluir(int id) throws Exception {\n\t\t\r\n\t}",
"public String eliminarComentario(int id){\r\n\t\tcomDao.borrar(id);\r\n\t\tinit();\r\n\t\treturn null;\r\n\t}",
"public boolean eliminarCursoPorId(CatCurso catCurso) throws NSJPNegocioException;",
"@DELETE\n @Path(\"/{id : \\\\d+}\")\n @ApiOperation(value = \"Delete a category\")\n @ApiResponses(value = {\n @ApiResponse(code = 204, message = \"Category has been deleted\"),\n @ApiResponse(code = 400, message = \"Invalid input\")\n })\n public Response deleteCategory(@PathParam(\"id\") Long id) {\n log.debug(\"REST request to delete Category : {}\", id);\n categoryService.delete(id);\n return noContent().build();\n }",
"public void setIdTipoCategoria( Integer idTipoCategoria ) {\n this.idTipoCategoria = idTipoCategoria ;\n }",
"public org.oep.cmon.dao.tlct.model.DanhMucGiayTo remove(long id)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.oep.cmon.dao.tlct.NoSuchDanhMucGiayToException;",
"@Override\n\tpublic void clearDBCategorie() {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"categorie\");\n\t\trisposte.clear();\n\t\tdb.commit();\n\t\t\n\t}",
"@Override\n\tpublic void excluir(Long id) {\n\t\tdao.delete(id);\n\t}",
"public static void deleteCoupon(final Context context, String id)\n {\n Query reff;\n reff= FirebaseDatabase.getInstance().getReference().child(\"coupon\").orderByChild(\"seri\").equalTo(id);\n reff.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot snapshot: dataSnapshot.getChildren())\n {\n Coupon coupon=snapshot.getValue(Coupon.class);\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child(\"coupon\").child(coupon.getIdcoupon());\n ref.removeValue();\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete CatCarburant : {}\", id);\n catCarburantRepository.delete(id);\n }",
"@Override\r\n\tpublic void deleteCategory(Category c) {\n\t\tem.remove(em.find(Category.class, c.getIdCategory()));\r\n\t\t\r\n\t}",
"@Override\r\n public void removerConcursando(long id) throws Exception {\n rnConcursando.remover(id);\r\n }",
"void remove(int id);",
"public void delete(Long id) {\n log.debug(\"Request to delete TipoSituacao : {}\", id);\n tipoSituacaoRepository.delete(id);\n }",
"public void removeMultas(String id) throws SQLException {\n // Prepara conexão p/ receber o comando SQL\n String sql = \"DELETE FROM multa WHERE id_cliente=?\";\n // stmt recebe o comando SQL\n PreparedStatement stmt = this.conexao.prepareStatement(sql);\n\n // Seta o valor do ID p/ a condição de verificação SQL, dentro do stmt\n stmt.setString(1, id);\n\n // Executa o codigo SQL, e fecha\n stmt.execute();\n stmt.close();\n }",
"@Override\r\n\tpublic void deleteConcursoContrataById(int id) {\n\r\n\t}",
"public void eliminar(int id) {\n\t\tvacantesrepo.deleteById(id);\n\t}",
"void remove(Long id);",
"void remove(Long id);",
"@Transactional\r\n\tpublic void delete(final String pk) {\r\n\t\tdao.delete(CmVocabularyCategory.class, pk);\r\n\t}",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tdeleteCategory(myCategory);\n\t\t\t\t}",
"void delete(Category category);",
"public String deleteCategory()\n {\n logger.info(\"**** In deleteCategory in Controller ****\");\n boolean deleteFlag = categoryService.deleteCategory(categoryId);\n if (deleteFlag)\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, Constants.CATEGORY_DELETION_SUCCESS, Constants.CATEGORY_DELETION_SUCCESS);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n\n return searchCategory();\n }",
"public void deleteTCustCategory(final Integer categoryId) {\n\t\tLOGGER.info(\"=========== Delete TCustCategory ===========\");\n\t\tfinal TCustCategory tCustCategory = genericDAO.get(clazz, categoryId);\n\t\tgenericDAO.remove(tCustCategory);\n\t}"
] | [
"0.7649723",
"0.75711036",
"0.7324628",
"0.72436476",
"0.7092475",
"0.7078615",
"0.7047785",
"0.69991636",
"0.69147867",
"0.6894455",
"0.68071604",
"0.66805685",
"0.664833",
"0.660873",
"0.6602789",
"0.6599745",
"0.657016",
"0.65564877",
"0.65459657",
"0.6513476",
"0.6470381",
"0.6450662",
"0.64236534",
"0.64150727",
"0.6411257",
"0.6366819",
"0.6350407",
"0.63043165",
"0.6297933",
"0.62822884",
"0.6263386",
"0.62220156",
"0.6221737",
"0.62053186",
"0.6201339",
"0.6198368",
"0.6198289",
"0.61974025",
"0.61866426",
"0.6185971",
"0.61793786",
"0.6131592",
"0.6111078",
"0.6104412",
"0.60973",
"0.6065002",
"0.60618716",
"0.603873",
"0.6032518",
"0.6022101",
"0.6003729",
"0.5998792",
"0.59952825",
"0.59952825",
"0.59952825",
"0.59916574",
"0.59916574",
"0.5983913",
"0.59609485",
"0.5950548",
"0.5948809",
"0.59455836",
"0.5936292",
"0.5935954",
"0.593147",
"0.59200513",
"0.5907286",
"0.58956844",
"0.5891519",
"0.58897763",
"0.58807683",
"0.58747244",
"0.58736426",
"0.5872152",
"0.58702695",
"0.5855285",
"0.58506215",
"0.5842376",
"0.58281183",
"0.5824372",
"0.58171445",
"0.5812222",
"0.5798613",
"0.57855636",
"0.5784681",
"0.5770669",
"0.5770647",
"0.57549226",
"0.5753821",
"0.57500434",
"0.57453567",
"0.5742639",
"0.57214093",
"0.57205266",
"0.57205266",
"0.5706801",
"0.5704536",
"0.5681797",
"0.56797504",
"0.5675738"
] | 0.63154626 | 27 |
Convierte una lista de CategoriaEntity a una lista de CategoriaDetailDTO. | private List<CategoriaDetailDTO> listEntity2DTO(List<CategoriaEntity> entityList) {
List<CategoriaDetailDTO> list = new ArrayList<>();
for (CategoriaEntity entity : entityList) {
list.add(new CategoriaDetailDTO(entity));
}
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<CategoriaDTO> obtenerCategorias(String estado);",
"public List<Categoria> listarCategorias(){\n //este metodo devuelve una lista.\n return categoriaRepo.findAll(); \n\n }",
"public static List<Categorias> obtenerCategorias(){\n List<Categorias> categorias = new ArrayList<>();\n \n Categorias c = new Categorias();\n \n c.conectar();\n \n c.crearQuery(\"select * from categoria_libro\");\n \n ResultSet informacion = c.getResultSet();\n \n try {\n while (informacion.next())\n categorias.add(new Categorias(informacion));\n } catch (Exception error) {}\n \n c.desconectar();\n \n return categorias;\n }",
"@Override\n public List<CategoryDTO> listAll() {\n List<CategoryDTO> result = new ArrayList<>();\n List<Category> listCategory = categoryRepository.findAll();\n for (Category category: listCategory){\n result.add(categoryConverter.toDTO(category));\n }\n return result;\n }",
"public List<CategoriaEntity> findAll() {\n LOGGER.log(Level.INFO, \"Consultando todas las categorias\");\n // Se crea un query para buscar todas las categorias en la base de datos.\n TypedQuery query = em.createQuery(\"select u from CategoriaEntity u\", CategoriaEntity.class);\n // Note que en el query se hace uso del método getResultList() que obtiene una lista de categorias.\n return query.getResultList();\n }",
"private void listadoCategorias() {\r\n sessionProyecto.getCategorias().clear();\r\n sessionProyecto.setCategorias(itemService.buscarPorCatalogo(CatalogoEnum.CATALOGOPROYECTO.getTipo()));\r\n }",
"private List<EquipoDetailDTO> listEntity2DTO(List<EquipoEntity> listaEntidades)\n {\n List<EquipoDetailDTO> lista = new ArrayList<>();\n for (EquipoEntity e: listaEntidades) \n {\n lista.add(new EquipoDetailDTO(e));\n }\n return lista;\n }",
"@GetMapping\n\t public List<Categories> touslescategories() {\n\t\treturn catsociete.findAll();}",
"public List<Categorie> getAllCategories();",
"private List<ComentarioDTO> listEntity2DTO(List<ComentarioEntity> entityList) {\n List<ComentarioDTO> list = new ArrayList();\n for (ComentarioEntity entity : entityList) {\n list.add(new ComentarioDTO(entity));\n }\n return list;\n }",
"private List<PaseoEcologicoDetailDTO> listEntity2DTO(List<PaseoEcologicoEntity> listaEntrada)\r\n {\r\n List<PaseoEcologicoDetailDTO> l = new ArrayList<>( );\r\n for(PaseoEcologicoEntity entity : listaEntrada)\r\n {\r\n l.add(new PaseoEcologicoDetailDTO(entity));\r\n }\r\n return l; \r\n }",
"public CategoriaDTO(Categoria categoriaObj) {\n\t\tid = categoriaObj.getId();\n\t\tnomeCategoria = categoriaObj.getNomeCategoria();\n\t}",
"public List<CategoriaVO> mostrarCategorias() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<CategoriaVO> resultado = new ArrayList();\n\t\t\tresultado = OwlDAO.obtenerCategorias(mysql);\n\t\t\treturn resultado;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t\treturn null;\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}",
"private List<TrayectoDetail> listEntity2DetailDTO(List<TrayectoEntity> entityList) {\n List<TrayectoDetail> list = new ArrayList<>();\n for (TrayectoEntity entity : entityList) {\n list.add(new TrayectoDetail(entity));\n }\n return list;\n }",
"public List<Category> getCategoriesDetails(){\r\n\t\tList<Category> res = new ArrayList<Category>();\r\n\t\tString req = \"select c.label, sum(f.amount) as total, sum(f.amount)/tmp.totmonth as percent, c.color \"\r\n\t\t\t\t\t+ \"from fee f, category c, (select sum(amount) as totmonth \"\r\n\t\t\t\t\t+ \"from fee \"\r\n\t\t\t\t\t+ \"where strftime('%m%Y', date) = strftime('%m%Y', date('now'))) as tmp \"\r\n\t\t\t\t\t+ \"where c.id = f.categoryid \"\r\n\t\t\t\t\t+ \"and strftime('%m%Y', f.date) = strftime('%m%Y', date('now')) \"\r\n\t\t\t\t\t+ \"group by c.id \"\r\n\t\t\t\t\t+ \"order by total desc;\";\r\n\t\t\r\n\t\tCursor cursor = database.rawQuery(req, null);\t\t\t\t\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\tdo {\r\n\t\t\t\tCategory cat = new Category();\r\n\t\t\t\tcat.setLabel(cursor.getString(0));\r\n\t\t\t\tcat.setTotal(cursor.getString(1));\r\n\t\t\t\tcat.setPercent(cursor.getString(2));\r\n\t\t\t\tcat.setColor(cursor.getString(3));\r\n\t\t\t\tres.add(cat);\r\n\t\t\t} while (cursor.moveToNext());\r\n\t\t}\r\n\t\tif (cursor != null && !cursor.isClosed()) {\r\n\t\t\tcursor.close();\r\n\t\t}\r\n\t\t\r\n\t\treturn res;\r\n\t}",
"public Collection<Categoria> listar() {\n\t\tQuery q = manager.createQuery(\"SELECT p FROM Categoria p\");\n\t\treturn (Collection<Categoria>) q.getResultList();\n\t}",
"List<Categorie> findAll();",
"public Categoria fromDto(CategoriaDTO objDTO) {\n\t\treturn new Categoria(objDTO.getId(), objDTO.getNome());\n\t}",
"@Override\r\n\tpublic List<Categorie> getAllCategorie() {\n\t\treturn cateDao.getAllCategorie();\r\n\t}",
"private List<MarcapasosDTO> listEntity2DTO(List<MarcapasosRealEntity> entityList) {\n List<MarcapasosDTO> list = new ArrayList<>();\n for (MarcapasosRealEntity entity : entityList) {\n list.add(new MarcapasosDTO(entity));\n }\n return list;\n }",
"public ViviendaDetailDTO(ViviendaEntity viviendaEntity) {\r\n super(viviendaEntity);\r\n if (viviendaEntity != null) {\r\n\r\n if (viviendaEntity.getContratos() != null) {\r\n contratos = new ArrayList<>();\r\n for (ContratoEntity entityContrato : viviendaEntity.getContratos()){\r\n contratos.add(new ContratoDTO(entityContrato));\r\n }\r\n }\r\n\r\n if (viviendaEntity.getCuartos() != null) {\r\n cuartos = new ArrayList<>();\r\n for(CuartoEntity entityCuarto : viviendaEntity.getCuartos()){\r\n cuartos.add(new CuartoDTO(entityCuarto));\r\n }\r\n }\r\n\r\n if (viviendaEntity.getSitiosDeInteres() != null){\r\n sitiosDeInteres = new ArrayList<>();\r\n for(SitioInteresEntity sitioEntity : viviendaEntity.getSitiosDeInteres()){\r\n sitiosDeInteres.add(new SitioInteresDTO(sitioEntity));\r\n }\r\n }\r\n\r\n if(viviendaEntity.getCalificaciones() != null ){\r\n calificaciones = new ArrayList<>();\r\n for(CalificacionEntity calificacionEntity : viviendaEntity.getCalificaciones()){\r\n calificaciones.add(new CalificacionDTO(calificacionEntity));\r\n }\r\n }\r\n\r\n if(viviendaEntity.getServiciosAdicionales() != null){\r\n serviciosAdicionales = new ArrayList<>();\r\n for (ServicioAdicionalEntity servicioEntity : viviendaEntity.getServiciosAdicionales()){\r\n serviciosAdicionales.add(new ServicioAdicionalDTO(servicioEntity));\r\n }\r\n }\r\n\r\n if(viviendaEntity.getServiciosIncluidos() != null){\r\n serviciosOfrecidos = new ArrayList<>();\r\n for (String servicio : viviendaEntity.getServiciosIncluidos()){\r\n serviciosOfrecidos.add(servicio);\r\n }\r\n }\r\n }\r\n }",
"@Override\r\n\tpublic List<ComunidadBean> getComunidadList() {\n\t\tList<ComunidadBean> result=new ArrayList<ComunidadBean>();\r\n\t\t\r\n\t\tList<JugComunidad> list= comunidadRepository.getComunidadList();\r\n\t\tfor (JugComunidad entiry : list) \r\n \t\tresult.add(new ComunidadBean(entiry.getId(), entiry.getCodigo(), entiry.getDescripcion()));\t\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"public List<CategoryDTO> getCategories(String bbbChannel, String siteId, List<String> relatedCategories) ;",
"private CategoryDTO getCategoryDto(){\n\t\tCategoryDTO category = new CategoryDTO(Long.valueOf(1L), \"categoryName\", \"categoryDesc\");\n\t\treturn category;\n\t}",
"public Collection<Integer> obterCategorias(Integer idConsumoTarifa) throws ErroRepositorioException;",
"public CuentaDetailDTO(CuentaEntity entity) {\r\n super(entity);\r\n if (entity != null) {\r\n if (entity.getEstudiante() != null) {\r\n this.estudiante = new EstudianteDTO(entity.getEstudiante());\r\n }\r\n if (entity.getTarjeta() != null) {\r\n if (!entity.getTarjeta().isEmpty()) {\r\n tarjeta = new ArrayList<>();\r\n for (TarjetaEntity entityTarjeta : entity.getTarjeta()) {\r\n tarjeta.add(new TarjetaDTO(entityTarjeta));\r\n }\r\n }\r\n }\r\n if (entity.getOrdenPagos() != null) {\r\n if (!entity.getOrdenPagos().isEmpty()) {\r\n ordenPagos = new ArrayList<>();\r\n for (OrdenPagoEntity entityOrdenPago : entity.getOrdenPagos()) {\r\n ordenPagos.add(new OrdenPagoDTO(entityOrdenPago));\r\n }\r\n }\r\n }\r\n }\r\n }",
"public List<VehicleCategoryMasterBean> categoryList() throws Exception;",
"List<ProductCategory> getAll();",
"private List<ComentarioEntity> listDTO2Entity(List<ComentarioDTO> dtos) {\n List<ComentarioEntity> list = new ArrayList<>();\n for (ComentarioDTO dto : dtos) {\n list.add(dto.toEntity());\n }\n return list;\n }",
"List<Category> getAllCategories();",
"@Override\n public Single<List<CategoryModel>> getCategories() {\n return api.getCategories().map(categories -> iVmMapper.mapToViewModel(categories));\n }",
"private List<RestauranteDetailDTO> restauranteListEntity2DTO(List<RestauranteEntity> entityList){\n List<RestauranteDetailDTO> list = new ArrayList<>();\n for (RestauranteEntity entity : entityList) {\n list.add(new RestauranteDetailDTO(entity));\n }\n return list;\n }",
"private List<GroupDetailDTO> listEntity2DTO(List<GroupEntity> entityList) {\n List<GroupDetailDTO> list = new ArrayList<>();\n for (GroupEntity entity : entityList) {\n list.add(new GroupDetailDTO(entity));\n }\n return list;\n }",
"public static void consultarListaCategorias(Activity activity) {\n ConexionSQLite conectar = new ConexionSQLite(activity, BASE_DATOS, null, 1);\n SQLiteDatabase db = conectar.getReadableDatabase();\n CategoriaVo categoria = null;\n listaCategorias = new ArrayList<CategoriaVo>();\n Cursor cursor = db.rawQuery(\"SELECT * FROM \"+TABLA_CATEGORIAS, null);\n\n while (cursor.moveToNext()) {\n categoria = new CategoriaVo();\n categoria.setId(cursor.getInt(0));\n categoria.setCategoria(cursor.getString(1));\n categoria.setDescripcion(cursor.getString(2));\n\n listaCategorias.add(categoria);\n }\n db.close();\n }",
"public static List<CoordinadorDTO> tolistCoordinador(List<CoordinadorEntity> coordinadorEntitys){\n \n List<CoordinadorDTO> listaObjectoCoordinador = new ArrayList<>();\n for (int i = 0; i <coordinadorEntitys.size(); i++) {\n listaObjectoCoordinador.add(new CoordinadorDTO(coordinadorEntitys.get(i)));\n }\n \n return listaObjectoCoordinador;\n }",
"private List<CategoriesResponseDto.Categorie> extractCategories(CategoriesApiResponse response) {\n return response.getSubcategories().get(0).getSubcategories()\n .stream()\n .map(this::mapper)\n .collect(Collectors.toList());\n }",
"private List<PhotoAlbumDetailDTO> listEntity2DTO(List<PhotoAlbumEntity> entityList){\n List<PhotoAlbumDetailDTO> list = new ArrayList<>();\n for (PhotoAlbumEntity entity : entityList) {\n list.add(new PhotoAlbumDetailDTO(entity));\n }\n return list;\n }",
"public List<ProductCatagory> getAllCategory() throws BusinessException;",
"private void buildCategories() {\n List<Category> categories = categoryService.getCategories();\n if (categories == null || categories.size() == 0) {\n throw new UnrecoverableApplicationException(\n \"no item types found in database\");\n }\n\n Map<Category, List<Category>> categoriesMap = new HashMap<Category, List<Category>>();\n for (Category subCategory : categories) {\n Category parent = subCategory.getParentCategory();\n if (categoriesMap.get(parent) == null) {\n categoriesMap.put(parent, new ArrayList<Category>());\n categoriesMap.get(parent).add(subCategory);\n } else {\n categoriesMap.get(parent).add(subCategory);\n }\n }\n\n this.allCategories = categories;\n this.sortedCategories = categoriesMap;\n }",
"public ArrayList<Categoria> listarCategorias();",
"public List listarCategorias() throws Exception {\n PreparedStatement ps = null;\n Connection conn = null;\n ResultSet rs = null;\n\n try {\n conn = this.conn;\n ps = conn.prepareStatement(\"select idRemedio,nome,categoria from Remedios order by nome ASC\");\n rs = ps.executeQuery();\n List<Produto> list = new ArrayList<Produto>();\n while (rs.next()) {\n Integer idRemedio = rs.getInt(1);\n String nome = rs.getString(2);\n String categoria = rs.getString(3);\n list.add(new Produto(idRemedio, nome, null, null, null, null,null, null, null, null, null, null, null, null, categoria, null));\n\n }\n return list;\n\n } catch (SQLException sqle) {\n throw new Exception(sqle);\n } finally {\n Conexao.closeConnection(conn, ps, rs);\n }\n }",
"@Override\n\tpublic ArrayList<Categoria> getCategorie() {\n\t\tDB db = getDB();\n\t\tArrayList<Categoria> categorie = new ArrayList<Categoria>();\n\t\tMap<Long, Categoria> list = db.getTreeMap(\"categorie\");\n\t\tfor(Map.Entry<Long, Categoria> categoria : list.entrySet())\n\t\t\tif(categoria.getValue() instanceof Categoria)\n\t\t\t\tcategorie.add((Categoria)categoria.getValue());\n\t\treturn categorie;\n\t}",
"List<CapituloDTO> findAll();",
"public void actualizarCategoria(CategoriaDTO categoria);",
"public List<CategoriaUsuario> findall(){\n return categoriaUsuarioRepository.findAll();\n }",
"public AtendimentoJuridicoDTO toDTO(AtendimentoJuridicoEntity entity){\n\t\tAtendimentoJuridicoDTO dto = new AtendimentoJuridicoDTO();\n\t\tBeanUtils.copyProperties(entity, dto); \n\t\treturn dto ;\n\t}",
"public Categorie getCategorieById(long id);",
"List<Category> getCategories() throws DAOExceptionHandler;",
"@SuppressWarnings(\"unchecked\")\n public static Observable.Transformer<SetList, List<Category>> mapSetToCategory() {\n return categoryTransformer;\n }",
"public Flowable<List<Category>> getCategories() {\n return findAllData(Category.class);\n }",
"List<CategoryDto> listRecommend();",
"@Override\r\n\tpublic Map<Long, Item> getCatalogoUnidades() {\r\n\t\tMap<Long, Item> unidades = new HashMap<Long, Item>();\r\n\t\tList<Map<String, Object>> rows = jdbcTemplate.queryForList(\"select u.id as codigo, u.descripcion as descripcion from registro_cobranza.cu_cat_uc u where u.id in (select unidad_id from sccl.unidades group by unidad_id)\");\r\n\t\tfor(Map<String, Object> row : rows){\r\n\t\t\tunidades.put((Long)row.get(\"codigo\"), new Item((Long)row.get(\"codigo\"),(String)row.get(\"descripcion\")));\r\n\t\t}\r\n\t\treturn unidades;\r\n\t}",
"List<Category> getAllCategories() throws DaoException;",
"public List listarCategoriasForm() throws Exception {\n PreparedStatement ps = null;\n Connection conn = null;\n ResultSet rs = null;\n\n try {\n conn = this.conn;\n ps = conn.prepareStatement(\"select idRemedio, categoria from Remedios group by categoria order by categoria ASC \");\n rs = ps.executeQuery();\n List<Produto> list = new ArrayList<Produto>();\n while (rs.next()) {\n int idRemedio = rs.getInt(1);\n String categoria = rs.getString(2);\n list.add(new Produto(idRemedio, null, null, null,null, null, null, null, null, null, null, null, null, null, categoria, null));\n\n }\n return list;\n\n } catch (SQLException sqle) {\n throw new Exception(sqle);\n } finally {\n Conexao.closeConnection(conn, ps, rs);\n }\n }",
"public List<DVDCategorie> listDVDCategorie();",
"@GetMapping(\"/categorie/getallcategories\")\n Page<CategorieProduit> getAllCategories(Pageable pageable) {\n return categorieProduitMetier.getAllCategorie(pageable);\n }",
"public List<Cvcategory> findAllCvcategories();",
"List<CategoryImageDTO> findAll();",
"public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }",
"public void librosPorCategorian() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<LibroVO> resultado = new ArrayList();\n\t\t\tOwlDAO.actualizarCategorian(mysql);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}",
"public ArrayList<CategoryCustomer> getCategoryCustomerList(){\n\t\tSession session = HibernateUtils.getSessionFactory().openSession();\n\t\tArrayList<CategoryCustomer> list = new ArrayList<CategoryCustomer>();\n\t\ttry{\n\t\t\tCriteria cr = session.createCriteria(TblCategoryCustomer.class);\n\t\t\tList<TblCategoryCustomer> categorycustomers = cr.list();\n\t\t\tif (categorycustomers.size() > 0){\n\t\t\t\tfor (Iterator<TblCategoryCustomer> iterator = categorycustomers.iterator(); iterator.hasNext();){\n\t\t\t\t\tTblCategoryCustomer tblcategorycustomer = iterator.next();\n\t\t\t\t\tCategoryCustomer categorycustomer = new CategoryCustomer();\n\t\t\t\t\tcategorycustomer.convertFromTable(tblcategorycustomer);\n\t\t\t\t\tlist.add(categorycustomer);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tSystem.err.println(\"ERROR IN LIST!!!!!!\");\n\t\t\te.printStackTrace();\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t\treturn list;\n\t}",
"@PreAuthorize(\"hasAnyRole('ADMIN')\")\n\t@RequestMapping(method=RequestMethod.GET)\n\tpublic ResponseEntity<List<ClienteDTO>> findAll() {\n\t\tList<Cliente> list = servico.findAll();\n\t\t//Converter essa lista de categorias, para ClienteDTO.\n\t\t//A melhor forma é ir no DTO e criar um construtor que receba o objeto correspondete\n\t\t//Lá das entidades de domínio.\n\t\t//Utilizar o Strem para pecorrer a lista de categorias\n\t\t//O map efetuar uma operação para cada elemento da lista\n\t\t//Vou chamar ela de obj e para cada elemento da minha lista\n\t\t// -> aeroFunction = FUNÇÃO anonima\n\t\t//instaciar a minha categoriaDTO passando o obj como parametro\n\t\t//E depois converter para lista de novo com o collect.\n\t\t\n\t\tList<ClienteDTO> listDto = list.stream().map(obj -> new ClienteDTO(obj)).collect(Collectors.toList());\n\t\t\n\t\treturn ResponseEntity.ok().body(listDto);\n\t}",
"public List<StadiumCategoryDTO> getCategories() {\n\t\treturn categories;\n\t}",
"public List<ContratoDTO> getContratos() {\r\n return contratos;\r\n }",
"List<Category> selectCategoryList();",
"CategoriaDTO insertarCategoria(CategoriaDTO categoria);",
"List<Category> getAllCategories() throws DataBaseException;",
"@Override\n\tpublic List<Produto> listarPorCategoria(int categoriaId) {\n\t\treturn null;\n\t}",
"@GetMapping(\"/categorie/getallcategoriesbyclasse/{classe}\")\n Page<CategorieProduit> getCategorieByClasse(@PathVariable String classe, Pageable pageable) {\n return categorieProduitMetier.getAllCategorieByClasse(classe, pageable);\n }",
"@Transactional(readOnly = true)\n public Page<CategoriaDTO> findAll(Pageable pageable) {\n log.info(\"Request to get all Categorias Sort:{}\", pageable.getSort());\n// PageRequest pageRequest = new PageRequest(pageable.getPageNumber(),\n// pageable.getPageSize(), new Sort(pageable.getSort().toString().replace(\"id:%20ASC: ASC\", \"categoria: ASC\")));\n\n return categoriaRepository.findAll(pageable)\n .map(categoriaMapper::toDto);\n }",
"@GetMapping\n\tpublic ResponseEntity<List<Category>> findAll(){\n\t\t\t//Category u = new Category(1L, \"Maria\", \"[email protected]\", \"92313323\", \"12345\");\t\n\t\t\n\t\tList<Category> list = service.findAll();\n\t\t\n\t\t//criar resposta http e no corpo da resposta colocar lista\n\t\treturn ResponseEntity.ok().body(list);\t\n\t\t\n\t}",
"@Override\r\n\tpublic List<Categoria> readAll() {\n\t\tList<Categoria> lista = new ArrayList<>();\r\n\t\tString SQL = \"select *from categoria\";\r\n\t\ttry {\r\n\t\t\tcx = Conexion.getConexion();\r\n\t\t\tps = cx.prepareStatement(SQL);\r\n\t\t\trs = ps.executeQuery(SQL);\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tCategoria r = new Categoria();\r\n\t\t\t\tr.setCategoria_idcategoria(rs.getInt(\"CATEGORIA_IDCATEGORIA\"));\r\n\t\t\t\tr.setNombre(rs.getString(\"NOMBRE\"));\r\n\t\t\t\tlista.add(r);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(\"Error: \"+e);\r\n\t\t}\r\n\t\t\r\n\t\treturn lista;\r\n\t}",
"@Override\n\tpublic List<Categories> getListCat() {\n\t\treturn categoriesDAO.getListCat();\n\t}",
"public void setCategoriaId(Long id);",
"List<Category> findAll();",
"@GetMapping\n\t@ResponseStatus(code = HttpStatus.OK)\n\tpublic List<CategoryDTO> viewCategory() throws ServiceException {\n\t\tList<CategoryDTO> viewResponse = categoryService.listCategory();\n\t\treturn viewResponse;\n\t\t\n\t}",
"@Override\r\n\tpublic List<Category> getAllCategory() {\n\t\treturn categoryDao.getAll();\r\n\t}",
"public List<Category> getCatForMovies(Movie chosenMovie) throws DalException\n {\n ArrayList<Category> allCatForMovies = new ArrayList<>();\n // Attempts to connect to the database.\n try ( Connection con = dbCon.getConnection())\n {\n Integer idMov = chosenMovie.getId();\n // SQL code. \n String sql = \"SELECT * FROM Category INNER JOIN CatMovie ON Category.id = CatMovie.categoryId WHERE movieId='\" + idMov + \"';\";\n // Create statement.\n Statement statement = con.createStatement();\n // Attempts to execute the statement.\n ResultSet rs = statement.executeQuery(sql);\n while (rs.next())\n {\n\n // Add all to a list\n Category category = new Category();\n category.setId(rs.getInt(\"id\"));\n category.setName(rs.getString(\"name\"));\n\n allCatForMovies.add(category);\n }\n //Return\n return allCatForMovies;\n\n } catch (SQLException ex)\n {\n Logger.getLogger(CatMovieDBDAO.class\n .getName()).log(Level.SEVERE, null, ex);\n throw new DalException(\"Can´t do that\");\n }\n }",
"@RequestMapping(value = \"/\", method = RequestMethod.POST, produces = \"application/json\")\n public Iterable<DatasetInfo> findByCategory(@RequestBody DatasetInfo info) {\n return this.datasetService.findByCategory(info);\n }",
"public ArrayList<CandidatoBean> listarCandidatos() {\r\n\r\n Query query = em.createNamedQuery(\"Candidato.findAll\");\r\n ArrayList<CandidatoBean> listCandidatos = new ArrayList<>();\r\n\r\n for (Candidato candidato : (List<Candidato>) query.getResultList()) {\r\n listCandidatos.add(modelMapper.map(candidato, CandidatoBean.class));\r\n }\r\n em.close();\r\n em = null;\r\n return listCandidatos;\r\n }",
"public List<CategoriesTypePojo> getCategoriesType() {\n\t\t Session session = sessionFactory.getCurrentSession();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<CategoriesTypePojo> list= session.createCriteria(CategoriesTypePojo.class).list();\n\t\treturn list;\n\t}",
"@GetMapping(\"/contabancarias\")\n @Timed\n public List<ContabancariaDTO> getAllContabancarias() {\n log.debug(\"REST request to get all Contabancarias\");\n List<Contabancaria> contabancarias = contabancariaRepository.findAll();\n return contabancariaMapper.toDto(contabancarias);\n }",
"@GetMapping(\"/categorie/getcategoriebynom/{nom}\")\n CategorieProduitDTO getCategorieByNom(@PathVariable String nom) {\n return categorieProduitMetier.getCategorieByNom(nom);\n }",
"public Long getCategoriaId();",
"public List<MunicipioDTO> listaMunicipios() throws ClassNotFoundException, SQLException{\n\n\t\t// ativa conexão com BD\n\t\tConnection connection = ConexaoUtil.getInstance().getConnection();\n \n\t\tPreparedStatement statement = null;\n ResultSet rs = null;\n\n List<MunicipioDTO> municipios = new ArrayList<>();\n\n try {\n \t\n\t\t\tString sql = \"SELECT DISTINCT NOME FROM Municipio ORDER BY Nome\";\n\t\t\t// realiza uma ponte entre o java e o BD\n\t\t\tstatement = connection.prepareStatement(sql); \t\n \t\n //stmt = connection.prepareStatement(\"SELECT * FROM topicos\");\n rs = statement.executeQuery();\n\n while (rs.next()) {\n\n \tMunicipioDTO municipio = new MunicipioDTO();\n \t\t\n \t//recupera valores de acordo com as colunas do BD\n// \tmunicipio.setId(rs.getInt(\"Id\"));\n// \tmunicipio.setCodigo(rs.getInt(\"Codigo\"));\n \tmunicipio.setNome(rs.getString(\"Nome\"));\n// \tmunicipio.setUf(rs.getString(\"Uf\"));\n \t//adiciona o municipio na lista de municipios\n \tmunicipios.add(municipio);\n }\n\n } catch (SQLException ex) {\n Logger.getLogger(MunicipioDAO.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n //ConnectionFactory.closeConnection(con, stmt, rs);\n \tstatement.close();\n }\n\n return municipios;\n\n }",
"@Override\n\tpublic List<Category> getAllCategories() {\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(\"FROM \"+Category.class.getName());\n\t\treturn (List<Category>)query.list();\t\t\n\t}",
"public List<Categoria> findAll(EntityManager entityManager) {\n Query query = entityManager.createNamedQuery(\"Categoria.findAll\");\r\n categoriaList = query.getResultList();\r\n return categoriaList;\r\n }",
"private static ArrayList<Produto> listProdutosPorCategoria(int idCategoria) throws Exception {\r\n ArrayList<Produto> lista = arqProdutos.toList();\r\n lista.removeIf(p -> p.idCategoria != idCategoria);\r\n return lista;\r\n }",
"public Categorias() {\n this.id = 0;\n this.categoria = \"\";\n }",
"@GetMapping(\"/category\")\n\t public ResponseEntity<List<Category>> getcategorys() {\n\n\t List<Category> list = categoryService.getAllcategorys();\n\t if (list.size() <= 0) {\n\t return ResponseEntity.status(HttpStatus.NOT_FOUND).build();\n\t }\n\t return ResponseEntity.status(HttpStatus.CREATED).body(list);\n\t }",
"@Test\r\n public void testListarTodos() throws Exception {\r\n limpar();\r\n tx.begin();\r\n Categoria categoria1 = new Categoria(\"Teste categoria1\");\r\n Categoria categoria2 = new Categoria(\"Teste categoria2\");\r\n Categoria categoria3 = new Categoria(\"Teste categoria3\");\r\n dao.persiste(categoria1);\r\n dao.persiste(categoria2);\r\n dao.persiste(categoria3);\r\n tx.commit();\r\n List<Categoria> expResult = dao.listarTodos();\r\n //List<Categoria> result = instance.listarTodos();\r\n //assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n for(Categoria c:expResult){\r\n System.out.println(c.getId() + \" \" + c.getNome());\r\n }\r\n assertEquals(3, expResult.size());\r\n }",
"public List<Category> getAllCategories() {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tQuery query = (Query) session.createQuery(\"from Category\");\r\n\t\tList<Category> categories = query.list();\r\n\r\n\t\treturn categories;\r\n\t}",
"@RequestMapping(value=\"/{id}\",method = RequestMethod.GET)\n\tpublic ResponseEntity<Categoria> listar(@PathVariable Integer id) {\n\t\treturn ResponseEntity.ok(servico.buscar(id));\n\t\t\n\t}",
"List<Category> lisCat() {\n return dao.getAll(Category.class);\n }",
"List<CommunityDTO> findAll();",
"List<D> mapToDTO(List<E> entity);",
"private List<VueloEntity> vuelosListDTO2Entity(List<VueloDTO> dtos) {\n List<VueloEntity> list = new ArrayList<>();\n for (VueloDTO dto : dtos) {\n list.add(dto.toEntity());\n }\n return list;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic String obtenerCategoriaDistintoModelo(PlantaCargoDet det) {\r\n\t\tReferencias ref = referenciasUtilFormController.getReferencia(\r\n\t\t\t\t\"ESTADOS_CATEGORIA\", \"MODELO\");\r\n\t\tif (det != null) {\r\n\t\t\tif (det.getPermanente()) {\r\n\t\t\t\tString cad = \"select pago.* from planificacion.puesto_concepto_pago pago \"\r\n\t\t\t\t\t\t+ \"where pago.obj_codigo = 111 \"\r\n\t\t\t\t\t\t+ \"and pago.id_planta_cargo_det = \"\r\n\t\t\t\t\t\t+ det.getIdPlantaCargoDet()\r\n\t\t\t\t\t\t+ \" and pago.activo is true \"\r\n\t\t\t\t\t\t+ \" and pago.estado != \"\r\n\t\t\t\t\t\t+ ref.getValorNum() + \" order by pago.estado\";\r\n\r\n\t\t\t\tList<PuestoConceptoPago> lista = new ArrayList<PuestoConceptoPago>();\r\n\t\t\t\tlista = em.createNativeQuery(cad, PuestoConceptoPago.class)\r\n\t\t\t\t\t\t.getResultList();\r\n\t\t\t\tString resultado = \"\";\r\n\t\t\t\tif (lista.size() > 0) {\r\n\t\t\t\t\tresultado = lista.get(0).getCategoria();\r\n\t\t\t\t\treturn resultado;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (det.getContratado()) {\r\n\t\t\t\tString cad = \"select concepto.* \"\r\n\t\t\t\t\t\t+ \"from planificacion.puesto_concepto_pago concepto \"\r\n\t\t\t\t\t\t+ \"join planificacion.planta_cargo_det det \"\r\n\t\t\t\t\t\t+ \"on det.id_planta_cargo_det = concepto.id_planta_cargo_det \"\r\n\t\t\t\t\t\t+ \"where det.id_planta_cargo_det = \"\r\n\t\t\t\t\t\t+ det.getIdPlantaCargoDet()\r\n\t\t\t\t\t\t+ \" and concepto.estado != \"\r\n\t\t\t\t\t\t+ ref.getIdReferencias() +\" and concepto.activo is true\"\r\n\t\t\t\t\t\t+ \" order by concepto.estado\";\r\n\t\t\t\tList<PuestoConceptoPago> lista = em.createNativeQuery(cad,\r\n\t\t\t\t\t\tPuestoConceptoPago.class).getResultList();\r\n\t\t\t\tif (lista.size() > 0) {\r\n\t\t\t\t\tString resultado = \"\";\r\n\t\t\t\t\tfor (PuestoConceptoPago l : lista)\r\n\t\t\t\t\t\tresultado = resultado + l.getCategoria();\r\n\t\t\t\t\treturn resultado;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"Sin Categoria\";\r\n\t}",
"@RequestMapping(value = \"/categories\", method = RequestMethod.GET, produces = \"application/json\")\n public Collection<String> getCategories() {\n return this.datasetService.getCategories();\n }",
"public List<Category> getCategories() {\n CategoryRecords cr = company.getCategoryRecords();\n List<Category> catList = cr.getCategories();\n return catList;\n }"
] | [
"0.66435206",
"0.63863873",
"0.637549",
"0.6375099",
"0.63025135",
"0.6255224",
"0.62516344",
"0.61995834",
"0.6124381",
"0.6115788",
"0.6101917",
"0.6097112",
"0.606829",
"0.60651875",
"0.60029477",
"0.5989916",
"0.5985994",
"0.59469193",
"0.59098685",
"0.5905767",
"0.5855797",
"0.58366245",
"0.5826771",
"0.5810749",
"0.58064574",
"0.5798211",
"0.577123",
"0.57344073",
"0.57294863",
"0.5699126",
"0.56903046",
"0.5636459",
"0.5635193",
"0.5626408",
"0.5619635",
"0.55854326",
"0.55729353",
"0.5561003",
"0.55585253",
"0.55379564",
"0.55370796",
"0.55202633",
"0.5510342",
"0.5479404",
"0.54763293",
"0.5473821",
"0.5472393",
"0.54700077",
"0.54678243",
"0.5464608",
"0.5453713",
"0.5435684",
"0.54324114",
"0.5432204",
"0.5430641",
"0.5413685",
"0.5411807",
"0.5387868",
"0.5363502",
"0.53575265",
"0.5355236",
"0.5351755",
"0.5348973",
"0.53485215",
"0.5342749",
"0.52952075",
"0.5292388",
"0.52917016",
"0.5284977",
"0.52714306",
"0.5268941",
"0.526452",
"0.525118",
"0.52291465",
"0.52244353",
"0.52230465",
"0.52230227",
"0.52199805",
"0.52100825",
"0.5206857",
"0.52011085",
"0.52007365",
"0.51967174",
"0.51966727",
"0.5193332",
"0.5176086",
"0.516724",
"0.5165609",
"0.51621646",
"0.51609844",
"0.5160335",
"0.51594293",
"0.51567066",
"0.5146561",
"0.514605",
"0.5145123",
"0.5141745",
"0.5120228",
"0.51175565",
"0.511065"
] | 0.77322924 | 0 |
Check whether type of given object and attributes of given object equals to this object. | @Override
public boolean equals(Object object) {
if (this == object) {
return true;
}
if (object == null || getClass() != object.getClass()) {
return false;
}
CTLAPI CTLAPIPayload = (CTLAPI) object;
return Objects.equals(this.Name, CTLAPIPayload.Name) && Objects.equals(this.Id, CTLAPIPayload.Id)
&& Objects.equals(this.Context, CTLAPIPayload.Context)
&& Objects.equals(this.LifeCycleStatus, CTLAPIPayload.LifeCycleStatus)
&& Objects.equals(this.Provider, CTLAPIPayload.Provider)
&& Objects.equals(this.Version, CTLAPIPayload.Version);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void test_TCM__boolean_equals_Object() {\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\");\n\n assertFalse(\"attribute equal to null\", attribute.equals(null));\n\n final Object object = attribute;\n assertTrue(\"object not equal to attribute\", attribute.equals(object));\n assertTrue(\"attribute not equal to object\", object.equals(attribute));\n\n // current implementation checks only for identity\n// final Attribute clonedAttribute = (Attribute) attribute.clone();\n// assertTrue(\"attribute not equal to its clone\", attribute.equals(clonedAttribute));\n// assertTrue(\"clone not equal to attribute\", clonedAttribute.equals(attribute));\n\t}",
"public boolean equals(Object object);",
"boolean canEqual(Object obj);",
"@Override\n public boolean equals(Object obj) {\n return obj != null &&\n getClass() == obj.getClass() &&\n equalElements(getClass().cast(obj));\n }",
"boolean isAttribute(Object object);",
"boolean equals(Object object);",
"public boolean equals(Object o) {\n\t\tif (o instanceof InstagramObject) {\n\t\t\t//if (((InstagramObject) o).checkClass(element.getAttribute(\"class\")) ) {\n\t\t\t\tif (((InstagramObject) o).getElement().equals(element))\n\t\t\t\t\treturn true;\n\t\t//\t}\n\t\t} return false;\n\t}",
"public boolean equals( Object obj );",
"public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}",
"public abstract boolean equals(Object o);",
"public boolean equals(Object obj);",
"public boolean equals(Object otherObject)\n {\n boolean isEqual = super.equals(otherObject);\n\n if(isEqual)\n {\n if(getClass() == otherObject.getClass())\n {\n isEqual = true;\n }\n else\n {\n isEqual = false;\n }\n }\n\n return isEqual;\n }",
"public void testObjEqual()\n {\n assertEquals( true, Util.objEqual(null,null) );\n assertEquals( false,Util.objEqual(this,null) );\n assertEquals( false,Util.objEqual(null,this) );\n assertEquals( true, Util.objEqual(this,this) );\n assertEquals( true, Util.objEqual(\"12\",\"12\") );\n }",
"static public boolean areEqual(Object aThis, Object aThat) {\r\n // System.out.println(\"Object\");\r\n return aThis == null ? aThat == null : aThis.equals(aThat);\r\n }",
"public boolean equals(Object obj) {\n\n if (!this.getClass().equals(obj.getClass())) {\n System.out.println(\"different classes\");\n return false;\n }\n\n Proto cmd = (Proto)obj;\n for (String key : cmd.getArguments().keySet()) {\n if (this.getArguments().containsKey(key)) {\n if(!this.getArguments().containsValue(cmd.getArgument(key))) {\n return false;\n }\n } else {\n return false;\n }\n }\n return true;\n }",
"public boolean match(MindObject other){\n return other.isSubtypeOf(this) || isSubtypeOf(other);\n }",
"public abstract boolean equals(Object other);",
"public boolean equals(AMRStitchCellAttributes obj)\n {\n return ((CreateCellsOfType == obj.CreateCellsOfType));\n }",
"@Override\n public boolean equals(Object o) {\n return (o!=null && o.getClass().equals(this.getClass()));\n }",
"@Override\n public boolean equals(Object o) {\n return (o!=null && o.getClass().equals(this.getClass()));\n }",
"@Override\n public boolean equals(Object o) {\n return (o!=null && o.getClass().equals(this.getClass()));\n }",
"@Test\n\tpublic void testEqualsObject_True() {\n\t\tbook3 = new Book(DEFAULT_TITLE, DEFAULT_AUTHOR, DEFAULT_YEAR, DEFAULT_ISBN);\n\t\tassertEquals(book1, book3);\n\t}",
"boolean equalTo(ObjectPassDemo o) {\n return (o.a == a && o.b == b);\n }",
"public boolean equals(Object object1) {\n if (object1 != null && object1.getClass() != this.getClass())\n {\n return false;\n }\n else\n {\n Computer c1 = (Computer) object1;\n return (this.brand.equals(c1.brand) && this.model.equals(c1.model) && this.price == c1.price);\n }\n }",
"public boolean equals(Object anObject) {\n\t\t//use short circuit evaluation, so we know that if it gets to isValuesEqual test, anObject is a BinaryMessage\n\t\tif(!isNull(anObject) &&\n\t\t isBinaryMessage(anObject) && \n\t\t isValuesEqual((BinaryMessage)anObject, this)) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean equals(Object obj)\n {\n //first, make sure objects are equal at the base\n //which also handles null and type for person check\n boolean baseResult = super.equals(obj);\n if (!baseResult)\n {\n return false;\n }\n \n //next, make sure it's a commander, and not just any old person\n if (!(obj instanceof Commander))\n {\n return false;\n }\n \n //cast and compare specific properties for equality:\n Commander c = (Commander)obj;\n return (this.getSerialNumber().equals(c.getSerialNumber())\n && this.getRank().equals(c.getRank()));\n }",
"@Override\r\n public boolean equals(Object o)\r\n {\r\n assert(true);\r\n if (o instanceof Size)\r\n {\r\n return ((Size)o).amount==amount&&((Size)o).type==type;\r\n }\r\n return false;\r\n }",
"boolean equals(Object obj);",
"boolean equals(Object obj);",
"@Override\n\tpublic boolean equals(Object object) {\n if (object == null) {\n return false;\n }\n\t\tif (this == object) {\n\t\t\treturn true;\n\t\t}\n\t\tif (getClass() != object.getClass()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn ((Weapon) object).type == this.type;\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Attribute)) {\n return false;\n }\n Attribute other = (Attribute) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"public void testEqualsObject() {\n\t\t\tTipoNodoLeisure tipo1 = new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.0\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo2= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.1\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo3= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.2\")); //$NON-NLS-1$\n\t\t\tif (tipo1 != tipo1)\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.3\")); //$NON-NLS-1$\n\t\t\tif (!tipo1.equals(tipo2))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.4\"));\t\t\t //$NON-NLS-1$\n\t\t\tif (tipo1.equals(tipo3))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.5\"));\t //$NON-NLS-1$\n\t\t}",
"public boolean equalsImpl(Object obj)\n {\n boolean ivarsEqual = true;\n\n final EntityTypeVP rhs = (EntityTypeVP)obj;\n\n if( ! (recordType == rhs.recordType)) ivarsEqual = false;\n if( ! (changeIndicator == rhs.changeIndicator)) ivarsEqual = false;\n if( ! (entityType.equals( rhs.entityType) )) ivarsEqual = false;\n if( ! (padding == rhs.padding)) ivarsEqual = false;\n if( ! (padding1 == rhs.padding1)) ivarsEqual = false;\n return ivarsEqual;\n }",
"public boolean equals(Object o);",
"public static boolean isSameObject(Object a, Object b) {\n return Builtins.isSameObject(a, b);\n }",
"@Override\n public boolean equals(Object obj) {\n // Cast type to correct type\n Student studentObj = (Student) obj;\n\n // Check if first name, last name, and grade are the same and return result\n return studentObj.firstName == this.firstName &&\n studentObj.lastName == this.lastName &&\n studentObj.grade == this.grade;\n }",
"@Override\n public final boolean equals(Object obj) {\n if (!(obj instanceof UniqueID))\n return false;\n UniqueID castObj = (UniqueID)obj;\n return this.leastSigBits == castObj.leastSigBits && this.mostSigBits == castObj.mostSigBits;\n }",
"public boolean equals(Object object) {\n if (this == object) return true;\n if (object == null || this.getClass() != object.getClass()) return false;\n if (super.equals(object)==false) return false;\n else return true;\n }",
"public boolean equals(Object object) {\n\n if (object == null || object.getClass() != this.getClass()) {\n return false;\n }\n\n Card other;\n other = (Card) object;\n\n return getRank() == other.getRank() && getSuit() == other.getSuit();\n }",
"@Override\n public boolean equals(final Object obj) {\n return getClass().isInstance(obj);\n }",
"public boolean equals(Object obj) {\n\n if (obj == this) {\n return true;\n }\n\n if (obj instanceof Row) {\n return ((Row) obj).table == table\n && ((Row) obj).position == position;\n }\n\n return false;\n }",
"public boolean equals(XObject obj2) {\n/* */ try {\n/* 262 */ if (4 == obj2.getType())\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 268 */ return obj2.equals(this);\n/* */ }\n/* 270 */ if (1 == obj2.getType())\n/* */ {\n/* 272 */ return (bool() == obj2.bool());\n/* */ }\n/* 274 */ if (2 == obj2.getType())\n/* */ {\n/* 276 */ return (num() == obj2.num());\n/* */ }\n/* 278 */ if (4 == obj2.getType())\n/* */ {\n/* 280 */ return xstr().equals(obj2.xstr());\n/* */ }\n/* 282 */ if (3 == obj2.getType())\n/* */ {\n/* 284 */ return xstr().equals(obj2.xstr());\n/* */ }\n/* 286 */ if (5 == obj2.getType())\n/* */ {\n/* */ \n/* */ \n/* 290 */ return xstr().equals(obj2.xstr());\n/* */ }\n/* */ \n/* */ \n/* 294 */ return super.equals(obj2);\n/* */ \n/* */ }\n/* 297 */ catch (TransformerException te) {\n/* */ \n/* 299 */ throw new WrappedRuntimeException(te);\n/* */ } \n/* */ }",
"boolean equals(Object o);",
"boolean equals(Object o);",
"boolean equals(Object o);",
"boolean equals(Object o);",
"boolean equals(Object o);",
"public boolean equals(Object obj){\r\n\t\tif(!(obj instanceof BaseballCard))\r\n\t\t\treturn false;\r\n\t\tBaseballCard compareable = (BaseballCard) obj;\r\n\t\t\r\n\t\treturn(this.getPrice()==(compareable.getPrice())&&this.getYear()==\r\n\t\t\t\t(compareable.getYear())&&this.getSizeX()==(compareable.getSizeX())\r\n\t\t\t\t&&this.getSizeY()==(compareable.getSizeY())&&this.getName()==\r\n\t\t\t\tcompareable.getName()&&this.getManufacturer()==compareable.getManufacturer());\r\n\t\t\r\n\t}",
"public boolean equals(Object object) {\n if (!(object instanceof MaxTest.Box<?,?>)) {\n return false;\n }\n MaxTest.Box<?,?> box = (MaxTest.Box<?,?>) object;\n return getFirst().equals(box.getFirst()) && getSecond().equals(box.getSecond());\n }",
"@Override\n public boolean equals(Object object) {\n if (object != null && object instanceof Coord) { // object is Coord type\n Coord coord = (Coord) object; // typecase object to Coord type\n if (this.x == coord.x && this.y == coord.y) { // Equals Coord\n return true;\n }\n }\n return false;\n }",
"public boolean isEqual(Stack msg, Object obj) {\n if (!(obj instanceof ConstNameAndType)) {\n msg.push(\"obj/obj.getClass() = \"\n + (obj == null ? null : obj.getClass()));\n msg.push(\"this.getClass() = \"\n + this.getClass());\n return false;\n }\n ConstNameAndType other = (ConstNameAndType)obj;\n\n if (!super.isEqual(msg, other)) {\n return false;\n }\n\n if (!this.theName.isEqual(msg, other.theName)) {\n msg.push(String.valueOf(\"theName = \"\n + other.theName));\n msg.push(String.valueOf(\"theName = \"\n + this.theName));\n return false;\n }\n if (!this.typeSignature.isEqual(msg, other.typeSignature)) {\n msg.push(String.valueOf(\"typeSignature = \"\n + other.typeSignature));\n msg.push(String.valueOf(\"typeSignature = \"\n + this.typeSignature));\n return false;\n }\n return true;\n }",
"public boolean equals(Object object) {\n if (object == null || !(object instanceof TimeUnit))\n return false;\n TimeUnit other = (TimeUnit) object;\n return this.baseType.equals(other.baseType) && this.factor == other.factor && this.type.equals(other.type);\n }",
"@Override\n public boolean equals(Object obj)\n {\n if(this == obj)\n return true;\n\n if(obj == null)\n return false;\n\n if(!getClass().isAssignableFrom(obj.getClass())) //if(getClass() != obj.getClass())\n return false;\n\n return equalsImpl(obj);\n }",
"@Override\n public boolean equals(Object objectToCompare)\n {\n if (this == objectToCompare)\n {\n return true;\n }\n if (objectToCompare == null || getClass() != objectToCompare.getClass())\n {\n return false;\n }\n TypeDefProperties that = (TypeDefProperties) objectToCompare;\n return Objects.equals(typeDefProperties, that.typeDefProperties);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof PersonType)) {\n return false;\n }\n PersonType other = (PersonType) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (object == null) {\n return false;\n }\n if (!User.class.isAssignableFrom(object.getClass())) {\n return false;\n }\n final User other = (User) object;\n if (this.id != other.id) {\n return false;\n }\n return true;\n }",
"public abstract boolean isObject(T type);",
"public boolean equals(Object other) {\n\n\t\t//Returns false if the object is null or the two objects are from different classes\n\t\tif (other==null||this.getClass()!=other.getClass())\n\t\t\treturn false;\n\n\t\telse {\n\n\t\t\t//Casts the object from class Object to the Airplane class\n\t\t\tAirplane a = (Airplane) other;\n\n\t\t\t//Returns a boolean value indicating if the two objects are equal\n\t\t\treturn (this.brand==a.brand&&this.price==a.price&&this.horsePower==a.horsePower);\n\t\t}\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj) {\n\t\t\treturn true;\n\t\t}\n\n\t\t//System.out.println(\"obj.getClass() is \" + obj.getClass());\n\t\t//System.out.println(\"this.getClass() is \" + this.getClass());\n\t\tif ((obj == null) || (obj.getClass() != this.getClass())) { // (obj.getClass() != this.getClass()) tests that\n\t\t\t// the class of obj is not a subclass of HeavenlyBody or some other class\n\t\t\t// We could have used instanceOf here as well, because HeavenlyBody is a final\n\t\t\t// class and we cannot create a subclass for it\n\t\t\t// String class in java is also final, hence its equals() also uses instanceOf\n\t\t\t// But when the class is not final, this is what we need to do.\n\t\t\t// We're checking for null first, because if we run obj.getClass for a null\n\t\t\t// object we get an exception.\n\n\t\t\treturn false;\n\t\t}\n\n\t\tString objName = ((HeavenlyBody) obj).getName();\n\t\treturn this.name.equals(objName);\n\t}",
"public boolean isObject() {\n\t\t// Object is the class that has itself as superclass\n\t\treturn getSuperClass() == this;\n\t}",
"public boolean betterEquals(Object obj)\n\t{\n\t\tif (obj instanceof Player)\n\t\t{\n\t\t\tPlayer other = (Player) obj;\n\t\t\treturn this.name.equals(other.name) && this.pawn == other.pawn;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean equals(Object other) {\n if (other instanceof Attributes) {\n Attributes otherAttr = (Attributes) other;\n String otherNSTName = MonetUtil.getBBPName(otherAttr.attrNSTName);\n String thisNSTName = MonetUtil.getBBPName(this.attrNSTName);\n return (otherNSTName.equals(thisNSTName));\n }\n return false;\n }",
"public boolean equals(Object obj)\n {\n TAPosition taPosition;\n if(obj instanceof TAPosition)\n {\n taPosition = (TAPosition)obj;\n return position.equals(taPosition.getPosition());\n }\n else\n return false;\n }",
"public static boolean preEq(Object a, Object b) {\n\t\treturn a != null && b != null && a.getClass().equals(b.getClass());\n\t}",
"public boolean mojeEquals(Obj o1, Obj o2) {\r\n\t\t//System.out.println(o1.getName() + \" \" + o2.getName());\r\n\t\tboolean sameRight = true; // 21.06.2020. provera prava pristupa\r\n\t\tboolean sameName = true;\t// 22.06.2020. ako nisu metode ne moraju da imaju isto ime\r\n\t\tboolean sameArrayType = true; //22.6.2020 ako je parametar niz mora isti tip niza da bude\r\n\t\t\r\n\t\tif (o1.getKind() == Obj.Meth && o2.getKind() == Obj.Meth) {\r\n\t\t\tsameRight = o1.getFpPos() == o2.getFpPos()+10; \r\n\t\t\tsameName = o1.getName().equals(o2.getName());\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (o1.getType().getKind() == Struct.Array && o2.getType().getKind() == Struct.Array) {\r\n\t\t\t\tif (!(o1.getType().getElemType() == o2.getType().getElemType())) { // ZA KLASE MOZDA TREBA equals\r\n\t\t\t\t\tsameArrayType = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// 16.08.2020.\r\n//\t\tif (o1.getType().getKind() == Struct.Class || o1.getType().getKind() == Struct.Interface)\r\n//\t\t\treturn true;\r\n\t\t\r\n\t\t\r\n\t\treturn o1.getKind() == o2.getKind() \r\n\t\t\t\t&& sameName\r\n\t\t\t\t&& o1.getType().equals(o2.getType())\r\n\t\t\t\t&& /*adr == other.adr*/ o1.getLevel() == o2.getLevel()\r\n\t\t\t\t&& equalsCompleteHash(o1.getLocalSymbols(), o2.getLocalSymbols())\r\n\t\t\t\t&& sameRight // 21.06.2020. provera prava pristupa\r\n\t\t\t\t&& sameArrayType; //22.6.2020 ako je parametar niz mora isti tip niza da bude\r\n\t}",
"@Override\n public boolean equals(Object other) {\n /* Check this and other refer to the same object */\n if (this == other) {\n return true;\n }\n\n /* Check other is Person and not null */\n if (!(other instanceof Person)) {\n return false;\n }\n\n Person person = (Person) other;\n\n /* Compare all required fields */\n return age == person.age &&\n Objects.equals(firstName, person.firstName) &&\n Objects.equals(lastName, person.lastName);\n }",
"@Override\n public abstract boolean equals(Object obj);",
"@Override\n public boolean equals(Object obj) {\n if (obj instanceof Person) {\n Person comparedObj = (Person) obj;\n return name.equals(comparedObj.getName()) &&\n surname.equals(comparedObj.getSurname()) &&\n birthday.equals(comparedObj.getBirthday());\n }\n return false;\n }",
"public boolean equals(Object obj) {\n if(obj == null) return false;\n if(!(obj instanceof JFMViewRepresentation)) return false;\n JFMViewRepresentation viewObj = (JFMViewRepresentation)obj;\n //if any of the members are null, return false\n if(this.getName() == null || this.getClassName() == null) return false;\n if(viewObj.getName() == null || viewObj.getClassName() == null) return false; \n if(!getName().equals(viewObj.getName())) return false;\n if(!getClassName().equals(viewObj.getClassName())) return false;\n return true;\n }",
"public void testEquals(PCEPObject object1, PCEPObject object2) {\n \tInteger test1=new Integer(2);\n\t\tobject1.equals(test1);\n \t//Test same object\n \tobject1.equals(object1);\n \t//Test change in parent\n \tobject2.setObjectClass(object1.getObjectClass()+1);\n \tobject1.equals(object2);\n \tobject2.setObjectClass(object1.getObjectClass());\n \t//Test changes in fields\n\t\tList<Field> fieldListNS = new ArrayList<Field>();\n\t\tList<Field> fieldList= Arrays.asList(object1.getClass().getDeclaredFields());\n\t\tfor (Field field : fieldList) {\n\t\t\tfieldListNS.add(field);\n\t\t\tType ty=field.getGenericType();\n\t\t\tif (!java.lang.reflect.Modifier.isStatic(field.getModifiers())) {\n\t\t\t\tif (ty instanceof Class){\n\t\t\t\t\tClass c =(Class)ty;\n\t\t\t\t\tSystem.out.println(\"XXXXXXXXXXXXXXXXXClass name: \"+c.getName()); \n\t\t\t\t\tMethod method;\n\t\t\t\t\tMethod methods;\n\t\t\t\t\tif (c.isPrimitive()){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (c.getName().equals(\"boolean\")) {\n\t\t\t\t\t\t\tmethod = object1.getClass().getMethod(\"is\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()));\n\t\t\t\t\t\t\tmethods = object2.getClass().getMethod(\"set\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()),boolean.class);\n\t\t\t\t\t\t\tif (((boolean)method.invoke(object1,null))==true) {\n\t\t\t\t\t\t\t\tmethods.invoke(object2,false);\n\t\t\t\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tmethods.invoke(object2,true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tobject1.equals(object2);\n\t\t\t\t\t\t\tmethods.invoke(object2,(boolean)method.invoke(object1,null));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tmethod = object1.getClass().getMethod(\"get\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()));\n\t\t\t\t\t\t\tmethods = object2.getClass().getMethod(\"set\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()),c);\n\t\t\t\t\t\t\tmethods.invoke(object2,77);\n\t\t\t\t\t\t\tobject1.equals(object2);\n\t\t\t\t\t\t\tmethods.invoke(object2,method.invoke(object1,null));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t\n }",
"public boolean equals(Object obj) {\n // we must deproxy objects before comparison, because hibernate proxy could be received here\n AbstractEntity<ID> thisEntity = HibernateUtils.deproxy(this);\n Object otherEntity = HibernateUtils.deproxy(obj);\n\n ID id = thisEntity.getId();\n\n if (id != null && otherEntity != null && otherEntity.getClass().getName().equals(getClass().getName())) {\n return id.equals(((AbstractEntity) otherEntity).getId());\n }\n\n // fallback to reference equality, original object instance should be used there\n return super.equals(obj);\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn EqualsBuilder.reflectionEquals(this, obj);\n\t}",
"public void testEqualsObject()\n {\n // Null check\n assertFalse(b1.equals(null));\n // Type mismatch\n assertFalse(b1.equals(\"a\"));\n\n // Reflexive\n assertTrue(b1.equals(b1));\n\n // In general, two empty boards\n assertTrue(b1.equals(b2));\n\n // Different contents\n b1.setCell(0, 0, Cell.RED1);\n assertFalse(b1.equals(b2));\n\n // Same Contents\n b2.setCell(0, 0, Cell.RED1);\n assertTrue(b1.equals(b2));\n\n // Some more complex cases\n b1.fromString(\"RRRBEEBBE\");\n assertFalse(b1.equals(b2));\n b2.fromString(\"RRRBEEBBE\");\n assertTrue(b1.equals(b2));\n\n }",
"public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n if (other == null) {\n return false;\n }\n if (!other.getClass().equals(this.getClass())) {\n return false;\n }\n Person that = (Person) other;\n /*if (!this.name.equals(that.name))\n return false;\n if (this.info != that.info) \n return false;\n */\n return (this.name.equals(that.name) && this.info == that.info);\n }",
"public boolean equals(Object obj) {\n if (!super.equals(obj)) {\n return false;\n }\n\n if (obj.getClass() != getClass()) {\n return false;\n }\n \n return true;\n }",
"public static boolean equals(Object obj1, Object obj2)\n {\n return obj1 == obj2;\n }",
"public boolean equal(Object obj) {\n\t\tif((super.equal(obj))==false) {return false;}\n\t\tif (!(this.purpose).equals(((Airborne)obj).purpose)) {return false;}\n\t\treturn true;\n\t}",
"@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n\n if (TkRefexAbstractMember.class.isAssignableFrom(obj.getClass())) {\n TkRefexAbstractMember<?> another = (TkRefexAbstractMember<?>) obj;\n\n // =========================================================\n // Compare properties of 'this' class to the 'another' class\n // =========================================================\n // Compare refsetUuid\n if (!this.refexUuid.equals(another.refexUuid)) {\n return false;\n }\n\n // Compare componentUuid\n if (!this.componentUuid.equals(another.componentUuid)) {\n return false;\n }\n\n // Compare their parents\n return super.equals(obj);\n }\n\n return false;\n }",
"public final boolean equals(Object o) {\r\n\r\n Object payload = getPayload();\r\n if (payload != null && payload.equals(o)) {\r\n return true;\r\n }\r\n\r\n if (o == null || !getClass().equals(o.getClass()))\r\n return false;\r\n\r\n SimpleType other = (SimpleType) o;\r\n if (isBlueprint()) {\r\n // the value is irrelevant. we have the same class, therefore\r\n // the objects are equal, i.e. they represent the same blueprint.\r\n return true;\r\n }\r\n\r\n\r\n Object thisPayload = getPayload();\r\n Object otherPayload = other.getPayload();\r\n\r\n if (thisPayload != null && otherPayload != null) {\r\n return thisPayload.equals(otherPayload);\r\n } else if (thisPayload != null && otherPayload == null) {\r\n return false;\r\n } else if (thisPayload == null && otherPayload != null) {\r\n return false;\r\n }\r\n // both are null!\r\n return true;\r\n }",
"@Override\n public boolean equals(Object o) {\n if(this == o) return true;\n if(this == null) return false;\n if(this.getClass() != o.getClass()) return false;\n MyAllTypesFirst first = (MyAllTypesFirst) o;\n return myInt == first.getMyInt() &&\n myLong == first.getMyLong() &&\n myString.equals(first.getMyString()) &&\n myBool == first.getMyBool() &&\n myOtherInt == first.getMyOtherInt();\n }",
"@Override\n public boolean equals(Object obj) {\n if (obj.getClass() == Vehicle.class){\n Vehicle vehicleObj = (Vehicle) obj;\n return vehicleObj.getId().equals(id) &&\n vehicleObj.getYear().equals(year) &&\n vehicleObj.getMake().equals(make) &&\n vehicleObj.getModel().equals(model);\n }\n return false;\n }",
"@Override public boolean equals(Object object);",
"public boolean equals(Object o) {\n if (!(o instanceof TupleDesc)) return false;\n TupleDesc other = (TupleDesc) o;\n\n if (other.numFields() != numfields) return false;\n for (int i = 0; i < numfields; i += 1) {\n if (other.getType(i) != types[i]) return false;\n }\n return true;\n }",
"public boolean equals(Object obj)\n\t{\n\t\tif(obj == this)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tif(getClass() != obj.getClass())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tNode node = (Node)obj;\n\n\t\treturn userObject == node.getUserObject();\n\t}",
"@NeededForTesting\n public static boolean areObjectsEqual(Object a, Object b) {\n return a == b || (a != null && a.equals(b));\n }",
"@Override\n public boolean equals(Object obj) {\n if (!canonicalizing) // use object identity as equality, except during canonicalization\n return obj == this;\n if (obj == this)\n return true;\n if (!(obj instanceof Value))\n return false;\n Value v = (Value) obj;\n // noinspection StringEquality\n return flags == v.flags\n && (var == v.var || (var != null && v.var != null && var.equals(v.var)))\n && ((num == null && v.num == null) || (num != null && v.num != null && num.equals(v.num)))\n && (str == v.str || (str != null && v.str != null && str.equals(v.str)))\n && (object_labels == v.object_labels || (object_labels != null && v.object_labels != null && object_labels.equals(v.object_labels)))\n && (getters == v.getters || (getters != null && v.getters != null && getters.equals(v.getters)))\n && (setters == v.setters || (setters != null && v.setters != null && setters.equals(v.setters)))\n && (excluded_strings == v.excluded_strings || (excluded_strings != null && v.excluded_strings != null && excluded_strings.equals(v.excluded_strings)))\n && (included_strings == v.included_strings || (included_strings != null && v.included_strings != null && included_strings.equals(v.included_strings)))\n && Objects.equals(functionPartitions, v.functionPartitions)\n && Objects.equals(functionTypeSignatures, v.functionTypeSignatures);\n }",
"@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsUserInfo) {\n BsUserInfo other = (BsUserInfo)obj;\n if (!xSV(_id, other._id)) { return false; }\n return true;\n } else {\n return false;\n }\n }",
"public final boolean isEqualTo (Type type)\n {\n if (this == type)\n return true;\n\n if (!(type instanceof TypeTerm))\n return false;\n\n TypeTerm typeTerm = (TypeTerm)type;\n \n if (kind() != typeTerm.kind() || name() != typeTerm.name() || arity() != typeTerm.arity())\n return false;\n\n for (int i=arity(); i-->0;)\n if (!argument(i).isEqualTo(typeTerm.argument(i)))\n return false;\n\n return true;\n }",
"public final boolean equals(Object obj) {\r\n return this == obj;\r\n }",
"public boolean equals(Object obj)\r\n\t{\r\n\t\tif(obj instanceof Term)\r\n\t\t{\r\n\t\t\tTerm comparedTerm = (Term) obj;\r\n\t\t\treturn coefficient == comparedTerm.getCoefficient() && exponent == comparedTerm.getExponent();\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n public boolean equals(Object obj){\n boolean isEqual = false;\n if (this.getClass() == obj.getClass())\n {\n ItemID itemID = (ItemID) obj;\n if (itemID.id.equals(this.id))\n isEqual = true;\n }\n \n return isEqual;\n }",
"public boolean equals(Object anotherObj) {\n if(!(anotherObj instanceof UMarkerSetDTO))\n throw new ClassCastException(\"Object is of wrong class. UMarkerSetDTO object expected but not found.\");\n return umsid == ((UMarkerSetDTO)anotherObj).getUmsid(); \n }",
"public boolean equals(Object o)\r\n {\r\n // make sure the object passed is actually an account\r\n if (o instanceof Account)\r\n {\r\n // cast to account - this is safe because we checked for it above\r\n Account acct = (Account) o;\r\n \r\n // compare account IDs\r\n if (_id == acct._id)\r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"@Override\n public boolean equals(Object otherObject) {\n //Instantly return false if the other object does not exist or if the class is not a bike station\n if (otherObject == null || this.getClass() != otherObject.getClass()) {\n return false;\n }\n\n BikeStation otherBikeStation = (BikeStation) otherObject;\n\n return this.getLocation().equals(otherBikeStation.getLocation())\n && this.getName().equals(otherBikeStation.getName());\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tif(obj!=null && obj instanceof Test1){\n\t\t\tTest1 obj2 = (Test1)obj;\n\t\t\tif(x==obj2.x && y==obj2.y){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof BlInfo)) {\n return false;\n }\n BlInfo other = (BlInfo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"public boolean equals(Object obj)\r\n\t{\r\n\t\tif (obj instanceof FloatDimension)\r\n\t\t{\r\n\t\t\tFloatDimension dimension = (FloatDimension)obj;\r\n\t\t\treturn dimension.width == width && dimension.height == height;\r\n\t\t}\r\n\t\treturn super.equals(obj);\r\n\t}",
"public boolean equals(Object obj) {\r\n\t\treturn ( this.getX() == ((Coordinate)obj).getX() && this.getY() == ((Coordinate)obj).getY());\r\n\t}",
"public boolean equals(Object obj) {\n\t\tMercator p;\n\t\ttry {\n\t\t\tp = (Mercator)obj;\n\t\t} catch (ClassCastException ex) {\n\t\t\treturn false;\n\t\t}\n\t\tif(!super.equals(p))return false;\n\t\treturn (refY==p.refY) && (scaleY==p.scaleY);\n\t}",
"public boolean equals(Object obj)\n {\n if (! (obj instanceof TableRow))\n return false;\n \n return data.equals(((TableRow) obj).data);\n }",
"@Override\r\n\tpublic boolean equals(Object ob){\n\t\tItem itemob=(Item)ob;\t//transfer object type to Item type\r\n\t\tif(this.UID==itemob.UID && this.TITLE==itemob.TITLE && this.NOOFCOPIES==itemob.NOOFCOPIES) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}"
] | [
"0.68100286",
"0.642197",
"0.63789964",
"0.63331866",
"0.63127494",
"0.6309165",
"0.6293894",
"0.6291706",
"0.6281246",
"0.62612134",
"0.6247626",
"0.6227874",
"0.61878604",
"0.6155949",
"0.6154153",
"0.61541104",
"0.61277705",
"0.6127534",
"0.6124393",
"0.6124393",
"0.6124393",
"0.6104347",
"0.610393",
"0.6098948",
"0.6097467",
"0.60933274",
"0.6087412",
"0.6078843",
"0.6078843",
"0.60728306",
"0.6067841",
"0.60632265",
"0.6060293",
"0.60451496",
"0.60442567",
"0.6022946",
"0.6015656",
"0.59856874",
"0.5981555",
"0.59751296",
"0.59560895",
"0.5953641",
"0.5953495",
"0.5953495",
"0.5953495",
"0.5953495",
"0.5953495",
"0.5945184",
"0.5943536",
"0.59363604",
"0.5928166",
"0.5916651",
"0.5913987",
"0.58978504",
"0.58961886",
"0.589407",
"0.58883184",
"0.5885741",
"0.5879425",
"0.5876569",
"0.58759123",
"0.5871269",
"0.5863856",
"0.58611417",
"0.5849716",
"0.5849176",
"0.58355325",
"0.5831776",
"0.58314323",
"0.58261967",
"0.5806519",
"0.5803064",
"0.58022285",
"0.5795906",
"0.57801294",
"0.5777001",
"0.57747966",
"0.5769756",
"0.57609254",
"0.5758542",
"0.57544374",
"0.5753572",
"0.57527286",
"0.5747656",
"0.5739785",
"0.5731745",
"0.57312524",
"0.5728468",
"0.57263076",
"0.5723624",
"0.5720568",
"0.57204926",
"0.5719836",
"0.5714888",
"0.57089937",
"0.5708821",
"0.569203",
"0.56879354",
"0.568423",
"0.56782436",
"0.56722933"
] | 0.0 | -1 |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(Object object) {
if (object == null) {
return EndpointCentralConstants.NULL_STRING;
}
return object.toString().replace(EndpointCentralConstants.LINE_BREAK,
EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPACES);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String toIndentedString(Object o)\n/* */ {\n/* 128 */ if (o == null) {\n/* 129 */ return \"null\";\n/* */ }\n/* 131 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }",
"private String toIndentedString( Object o )\n {\n if ( o == null )\n {\n return \"null\";\n }\n return o.toString().replace( \"\\n\", \"\\n \" );\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }",
"private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }"
] | [
"0.7549383",
"0.7497253",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267",
"0.74617267"
] | 0.7884413 | 0 |
a proxy support could be set via these parameters note: proxy properties must be set via "D" startup parameters | @Bean
public CloseableHttpClient closeableHttpClient(HttpClientBuilder builder) {
builder.useSystemProperties();
return builder.build();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void applyWebProxySettings() {\n boolean settingsChanged = false;\n boolean enablingProxy = false;\n Properties sysprops = System.getProperties();\n if (proxyHost != null) {\n settingsChanged = true;\n if (proxyHost.length() != 0) {\n traceSettingInfo();\n enablingProxy = true;\n sysprops.put(\"http.proxyHost\", proxyHost);\n String portString = Integer.toString(proxyPort);\n sysprops.put(\"http.proxyPort\", portString);\n sysprops.put(\"https.proxyHost\", proxyHost);\n sysprops.put(\"https.proxyPort\", portString);\n sysprops.put(\"ftp.proxyHost\", proxyHost);\n sysprops.put(\"ftp.proxyPort\", portString);\n if (nonProxyHosts != null) {\n sysprops.put(\"http.nonProxyHosts\", nonProxyHosts);\n sysprops.put(\"https.nonProxyHosts\", nonProxyHosts);\n sysprops.put(\"ftp.nonProxyHosts\", nonProxyHosts);\n }\n if(proxyUser!=null) {\n sysprops.put(\"http.proxyUser\", proxyUser);\n sysprops.put(\"http.proxyPassword\", proxyPassword);\n }\n } else {\n log(\"resetting http proxy\", Project.MSG_VERBOSE);\n sysprops.remove(\"http.proxyHost\");\n sysprops.remove(\"http.proxyPort\");\n sysprops.remove(\"http.proxyUser\");\n sysprops.remove(\"http.proxyPassword\");\n sysprops.remove(\"https.proxyHost\");\n sysprops.remove(\"https.proxyPort\");\n sysprops.remove(\"ftp.proxyHost\");\n sysprops.remove(\"ftp.proxyPort\");\n }\n }\n\n //socks\n if (socksProxyHost != null) {\n settingsChanged = true;\n if (socksProxyHost.length() != 0) {\n enablingProxy = true;\n sysprops.put(\"socksProxyHost\", socksProxyHost);\n sysprops.put(\"socksProxyPort\", Integer.toString(socksProxyPort));\n if (proxyUser != null) {\n //this may be a java1.4 thingy only\n sysprops.put(\"java.net.socks.username\", proxyUser);\n sysprops.put(\"java.net.socks.password\", proxyPassword);\n }\n\n } else {\n log(\"resetting socks proxy\", Project.MSG_VERBOSE);\n sysprops.remove(\"socksProxyHost\");\n sysprops.remove(\"socksProxyPort\");\n sysprops.remove(\"java.net.socks.username\");\n sysprops.remove(\"java.net.socks.password\");\n }\n }\n\n\n //for Java1.1 we need to tell the system that the settings are new\n if (settingsChanged &&\n JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n legacyResetProxySettingsCall(enablingProxy);\n }\n }",
"public void initProxy() {\n\n System.setProperty(\"http.proxyHost\", \"199.101.97.159\"); // set proxy server\n System.setProperty(\"http.proxyPort\", \"60099\"); // set proxy port\n //System.setProperty(\"http.proxyUser\", authUser);\n //System.setProperty(\"http.proxyPassword\", authPassword);\n Authenticator.setDefault(\n new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\n authUser, authPassword.toCharArray());\n }\n }\n );\n }",
"protected static void setProxyLocation(URI proxyLocation) {\n Program.proxyLocation = proxyLocation;\n Program.proxyLocationSet = true;\n }",
"public ProxyConfig createProxyConfig();",
"public void setDefaultProxyConfig(ProxyConfig config);",
"public interface IProxySettings\n{\n /**\n * @return The proxy type to be used. May not be <code>null</code>.\n */\n @Nonnull\n Proxy.Type getProxyType ();\n\n /**\n * @return The proxy host name of IP address. May be <code>null</code> if\n * proxy type is DIRECT.\n */\n @Nullable\n String getProxyHost ();\n\n /**\n * @return The proxy port for this HTTP proxy type. Should be > 0. May be\n * ≤ 0 if the proxy type is DIRECT.\n */\n int getProxyPort ();\n\n /**\n * @return The proxy user name. May be <code>null</code>.\n */\n @Nullable\n String getProxyUserName ();\n\n default boolean hasProxyUserName ()\n {\n return StringHelper.hasText (getProxyUserName ());\n }\n\n /**\n * @return The proxy password for the provided user. May be <code>null</code>.\n * Note: an empty password may be valid. Only <code>null</code>\n * indicates \"no password\".\n */\n @Nullable\n String getProxyPassword ();\n\n default boolean hasProxyPassword ()\n {\n return getProxyPassword () != null;\n }\n\n /**\n * Check if hostname and port match the ones from the provided\n * {@link InetSocketAddress}.\n *\n * @param aAddr\n * The address to compare with. May be <code>null</code>.\n * @return <code>true</code> if the unresolved hostname and the port match.\n */\n default boolean hasInetSocketAddress (@Nullable final InetSocketAddress aAddr)\n {\n return aAddr != null && EqualsHelper.equals (aAddr.getHostString (), getProxyHost ()) && getProxyPort () == aAddr.getPort ();\n }\n\n /**\n * Check if these settings have the provided socket address.\n *\n * @param aAddr\n * The socket address to compare to. May be <code>null</code>.\n * @return <code>true</code> if the proxy type is DIRECT and the address is\n * <code>null</code>, or if the object is of type\n * {@link InetSocketAddress} and the values match.\n * @see #hasInetSocketAddress(InetSocketAddress)\n */\n boolean hasSocketAddress (@Nullable SocketAddress aAddr);\n\n /**\n * @return A non-<code>null</code> {@link Proxy} instance. Only uses proxy\n * host and port.\n * @see #getProxyHost()\n * @see #getProxyPort()\n */\n @Nonnull\n default Proxy getAsProxy ()\n {\n return getAsProxy (true);\n }\n\n /**\n * @param bResolveHostname\n * <code>true</code> to resolve host names (needed in production) or\n * <code>false</code> to not resolve them (mainly for testing\n * purposes). This flag has no impact if the proxy type is DIRECT.\n * @return A non-<code>null</code> {@link Proxy} instance. Only uses proxy\n * host and port.\n * @see #getProxyHost()\n * @see #getProxyPort()\n */\n @Nonnull\n Proxy getAsProxy (boolean bResolveHostname);\n\n /**\n * @return The {@link PasswordAuthentication} instances matching the\n * credentials contained in this object or <code>null</code> if no\n * username is present.\n */\n @Nullable\n default PasswordAuthentication getAsPasswordAuthentication ()\n {\n // If no user name is set, no Authenticator needs to be created\n if (!hasProxyUserName ())\n return null;\n\n final String sProxyPassword = getProxyPassword ();\n // Constructor does not take null password!\n return new PasswordAuthentication (getProxyUserName (),\n sProxyPassword == null ? ArrayHelper.EMPTY_CHAR_ARRAY : sProxyPassword.toCharArray ());\n }\n}",
"public void setProxy(Proxy proxy) {\n\t\tthis.proxy = proxy;\n\t}",
"@Override\n\tpublic boolean usingProxy() {\n\t\treturn false;\n\t}",
"private void setInternalProxy(SimpleClientHttpRequestFactory requestFactory) {\n\t\tif (PAYASIA_MIND_PROXY_ENABLED_FOR_DEV) {\n\t\t\tProxy proxy = new Proxy(Type.HTTP, new InetSocketAddress(\n\t\t\t\t\tPAYASIA_MIND_PROXY_HOSTNAME, PAYASIA_MIND_PROXY_PORT));\n\t\t\trequestFactory.setProxy(proxy);\n\t\t}\n\t}",
"public static boolean initEdgeProxy() {\n /**\n * Configure default proxy based on environment, this can be programmatically overriden\n * for testing purposes\n */\n StringBuilder sb = new StringBuilder(\"restedge.default.proxy.\");\n if (Play.isDev()) {\n sb.append(\"dev\");\n } else if (Play.isTest()) {\n sb.append(\"stage\");\n } else if (Play.isProd()) {\n sb.append(\"prod\");\n }\n PROXIED_HOST = Play.application().configuration().getString(sb.toString());\n if (PROXIED_HOST.isEmpty()) {\n Logger.warn(\"DEFAULT PROXIED HOST IS EMPTY\");\n return false;\n }\n return true;\n }",
"public ProxySettings(Proxy proxy)\n {\n this(proxy, null, null);\n }",
"public Proxy(){\n\t\tthis.useProxy = false;\n\t\tthis.host = null;\n\t\tthis.port = -1;\n\t}",
"@Test\r\n public void testSetProxy() {\r\n // Not required\r\n }",
"public boolean isProxyEnvironment() {\n return \"proxy\".equals(activeProfile);\n }",
"Proxy getProxy();",
"protected void setProxiedClient(URL paramURL, String paramString, int paramInt, boolean paramBoolean) throws IOException {\n/* 143 */ this.delegate.setProxiedClient(paramURL, paramString, paramInt, paramBoolean);\n/* */ }",
"public void setHttpProxyPort(int port);",
"private void traceSettingInfo() {\n log(\"Setting proxy to \"\n + (proxyHost != null ? proxyHost : \"''\")\n + \":\" + proxyPort,\n Project.MSG_VERBOSE);\n }",
"public void setHttpProxyHost(String host);",
"public void addProxyConfig(ProxyConfig config);",
"public static void detectProxy() {\n ProxySearch pSearch = ProxySearch.getDefaultProxySearch();\n /* It's possible to configure components to scan. For example, according\n * to detected OS, we will change research parameters\n */\n final String osName = System.getProperty(\"os.name\").toLowerCase();\n System.out.println(osName);\n if (osName.startsWith(\"windows\")) {\n pSearch.addStrategy(ProxySearch.Strategy.IE);\n pSearch.addStrategy(ProxySearch.Strategy.WIN);\n /* -------------------------------------------- */\n pSearch.addStrategy(ProxySearch.Strategy.JAVA);\n pSearch.addStrategy(ProxySearch.Strategy.BROWSER);\n } else if (osName.startsWith(\"linux\")) {\n pSearch.addStrategy(ProxySearch.Strategy.GNOME);\n pSearch.addStrategy(ProxySearch.Strategy.KDE);\n pSearch.addStrategy(ProxySearch.Strategy.FIREFOX);\n } else {\n pSearch.addStrategy(ProxySearch.Strategy.OS_DEFAULT);\n }\n\n // For proxy-vole to be effective, it must be registered to the JVM\n ProxySelector.setDefault(pSearch.getProxySelector());\n }",
"public void setProxyUser(String proxyUser) {\n this.proxyUser = proxyUser;\n }",
"public MyProxyLogon() {\n super();\n host = System.getenv(\"MYPROXY_SERVER\");\n if (host == null) {\n host = \"myproxy.teragrid.org\";\n }\n String portString = System.getenv(\"MYPROXY_SERVER_PORT\");\n if (portString != null) {\n port = Integer.parseInt(portString);\n }\n username = System.getProperty(\"user.name\");\n }",
"void setProxyConnectionState(ProxyConnectionState proxyConnectionState) {\n this.proxyConnectionState = proxyConnectionState;\n }",
"public boolean isProxyEnabled() {\n return isProxyEnabled;\n }",
"public void setProxyPswd(java.lang.String newProxyPswd)\r\n {\r\n proxyPswd = newProxyPswd;\r\n }",
"public void setProxyEntities(boolean proxyEntities) {\n this.proxyEntities = proxyEntities;\n }",
"public void setProxyBaseUrl(String baseURL) {\n this.proxyBaseUrl = baseURL;\n }",
"protected static void setProxyUsername(String username) {\n Program.proxyUsername = username;\n proxyUsernameSet = true;\n }",
"public void setProxyAddress(String proxyAddress) {\n this.proxyAddress = proxyAddress;\n }",
"public void setProxyHost(java.lang.String newProxyHost)\r\n {\r\n System.out.println(\"Host: \" + newProxyHost);\r\n proxyHost = newProxyHost;\r\n }",
"protected boolean legacyResetProxySettingsCall(boolean setProxy) {\n System.getProperties().put(\"http.proxySet\", new Boolean(setProxy).toString());\n try {\n Class c = Class.forName(\"sun.net.www.http.HttpClient\");\n Method reset = c.getMethod(\"resetProperties\", null);\n reset.invoke(null, null);\n return true;\n }\n catch (ClassNotFoundException cnfe) {\n return false;\n }\n catch (NoSuchMethodException e) {\n return false;\n }\n catch (IllegalAccessException e) {\n return false;\n }\n catch (InvocationTargetException e) {\n return false;\n }\n }",
"public FakeBasicProxyPreparer() {\n\tsuper();\n }",
"public void updateSystemSettings()\r\n {\r\n System.setProperty( \"http.agent\", Environment.getPhexVendor() );\r\n if ( isHttpProxyUsed )\r\n {\r\n System.setProperty( \"http.proxyHost\", httpProxyHost );\r\n System.setProperty( \"http.proxyPort\", String.valueOf( httpProxyPort ) );\r\n }\r\n else\r\n {\r\n System.setProperty( \"http.proxyHost\", \"\" );\r\n System.setProperty( \"http.proxyPort\", \"\" );\r\n }\r\n \r\n // cache DNS name lookups for only 30 minutes\r\n System.setProperty( \"networkaddress.cache.ttl\", \"1800\" );\r\n Security.setProperty( \"networkaddress.cache.ttl\", \"1800\" );\r\n }",
"private boolean saveBoshProxySettings()\n {\n Object sType = spinnerType.getSelectedItem();\n String type = (sType == null) ? NONE : sType.toString();\n\n String boshUrl = ViewUtil.toString(boshURL);\n String host = ViewUtil.toString(proxyHost);\n String port = ViewUtil.toString(proxyPort);\n String userName = ViewUtil.toString(proxyUserName);\n String password = ViewUtil.toString(proxyPassword);\n\n String accPrefix = mAccountUuid + \".\";\n ConfigurationService configSrvc = ProtocolProviderActivator.getConfigurationService();\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.PROXY_TYPE, type);\n jbrReg.setProxyType(type);\n\n switch (type) {\n case BOSH:\n if (boshUrl == null) {\n aTalkApp.showToastMessage(R.string.plugin_proxy_BOSHURL_NULL);\n return false;\n }\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.BOSH_URL, boshUrl);\n jbrReg.setBoshUrl(boshUrl);\n\n boolean isHttpProxy = cbHttpProxy.isChecked();\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.BOSH_PROXY_HTTP_ENABLED, isHttpProxy);\n jbrReg.setBoshHttpProxyEnabled(isHttpProxy);\n\n // Continue with proxy settings checking if BOSH HTTP Proxy is enabled\n if (!isHttpProxy)\n break;\n case HTTP:\n case SOCKS4:\n case SOCKS5:\n if ((host == null) || (port == null)) {\n aTalkApp.showToastMessage(R.string.plugin_proxy_HOST_PORT_NULL);\n return false;\n }\n break;\n case NONE:\n default:\n break;\n }\n\n // value if null will remove the parameter from DB\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.PROXY_ADDRESS, host);\n jbrReg.setProxyAddress(host);\n\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.PROXY_PORT, port);\n jbrReg.setProxyPort(port);\n\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.PROXY_USERNAME, userName);\n jbrReg.setProxyUserName(userName);\n\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.PROXY_PASSWORD, password);\n jbrReg.setProxyPassword(password);\n\n // remove obsolete setting from DB - to be remove on later version (>2.0.4)\n configSrvc.setProperty(accPrefix + ProtocolProviderFactory.IS_USE_PROXY, null);\n\n AccountPreferenceFragment.setUncommittedChanges();\n return true;\n }",
"public void setProxyInjectionMode(boolean proxyInjectionMode) {\n this.proxyInjectionMode = proxyInjectionMode;\n }",
"void shouldUseSocksProxy() {\n }",
"public void setProxyPassword(String proxyPassword) {\n this.proxyPassword = proxyPassword;\n }",
"public void setProxyPassword(String proxyPassword) {\n this.proxyPassword = proxyPassword;\n }",
"public void setProxyPort(String newProxyPort)\r\n {\r\n proxyPort = newProxyPort;\r\n }",
"public void setProxyHost(String hostname) {\n proxyHost = hostname;\n }",
"public void setAvoidProxy(boolean avoidProxy) {\n this.avoidProxy = avoidProxy;\n }",
"public void setProxyPort(int proxyPort) {\n this.proxyPort = proxyPort;\n }",
"public void setProxyPort(int proxyPort) {\n this.proxyPort = proxyPort;\n }",
"boolean isProxyTargetAware() {\n\t\treturn this.proxyTargetAware;\n\t}",
"protected void setProxiedClient(URL paramURL, String paramString, int paramInt) throws IOException {\n/* 127 */ this.delegate.setProxiedClient(paramURL, paramString, paramInt);\n/* */ }",
"public interface ProxyConnector {\n\n /**\n * Comprueba que se cumplan los requisitos para la conexión con el servicio proxy.\n * @throws IOException Cuando ocurre algún error en la comprobación.\n */\n void init() throws IOException;\n\n /**\n * Comprueba si el servicio configurado pertenece a un proxy compatible.\n * @return {@code true} si el proxy configurado es compatible, {@code false} en caso contrario.\n * @throws IOException Cuando se produce un error al conectarse al proxy.\n */\n boolean isCompatibleService() throws IOException;\n\n /**\n * Indica si el servicio de Portafirmas correspondiente a este conector requiere un proceso\n * de login previo.\n * @return {@code true} si el servicio requiere login, {@code false} en caso contrario.\n */\n boolean needLogin();\n\n /**\n * Solicita el acceso para el usuario.\n * @return Respuesta a la petición con el token de acceso.\n * @throws Exception Cuando ocurre un error en la comunicación.\n */\n RequestResult loginRequest() throws Exception;\n\n /**\n * Envia el token de acceso firmado al servidor para validar el acceso del usuario.\n * @param pkcs1 Firma PKCS#1 del token de acceso.\n * @param cert Certificado usado para firmar.\n * @return @code true} si el acceso se completo correctamente, {@code false} en caso contrario.\n * @throws Exception Cuando ocurre un error en la comunicación.\n */\n boolean tokenValidation(byte[] pkcs1, String cert) throws Exception;\n\n /**\n * Enváa una solicitud de cierre de sesión.\n * @throws Exception Cuando se produce un error en la comunicación.\n */\n void logoutRequest() throws Exception;\n\n /**\n * Obtiene la peticiones de firma. Las peticiones devueltas deben cumplir\n * las siguientes condiciones:\n * <ul>\n * <li>Estar en el estado señalado (unresolved, signed o rejected).</li>\n * <li>Que todos los documentos que contiene se tengan que firmar con los\n * formatos de firma indicados (sólo si se indica alguno)</li>\n * <li>Que las solicitudes cumplan con los filtros establecidos. Estos\n * filtros tendran la forma: key=value</li>\n * </ul>\n * @param signRequestState Estado de las peticiones que se desean obtener.\n * @param filters\n * Listado de filtros que deben cumplir las peticiones\n * recuperadas. Los filtros soportados son:\n * <ul>\n * <li><b>orderAscDesc:</b> con valor \"asc\" para que sea orden\n * ascendente en la consulta, en cualquier otro caso será\n * descendente</li>\n * <li><b>initDateFilter:</b> fecha de inicio de las peticiones</li>\n * <li><b>endDateFilter:</b> fecha de fin de las peticiones</li>\n * <li><b>orderAttribute:</b> parámetro para ordenar por\n * una columna de la petición</li>\n * <li><b>searchFilter:</b> busca la cadena introducida en\n * cualquier texto de la petición (asunto, referencia,\n * etc)</li>\n * <li><b>labelFilter:</b> texto con el nombre de una etiqueta.\n * Filtra las peticiones en base a esa etiqueta, ej: \"IMPORTANTE\"\n * </li>\n * <li><b>applicationFilter:</b> texto con el identificador de\n * una aplicación. Filtra las peticiones en base a la\n * aplicación, ej: \"SANCIONES\"</li>\n * </ul>\n * @param numPage Número de página del listado.\n * @param pageSize Número de peticiones por página.\n * @return Lista de peticiones de firma\n * @throws SAXException\n * Si el XML obtenido del servidor no puede analizarse\n * @throws IOException\n * Si ocurre un error de entrada / salida\n */\n PartialSignRequestsList getSignRequests(\n String signRequestState, String[] filters, int numPage, int pageSize)\n throws SAXException, IOException;\n\n /** Inicia la pre-firma remota de las peticiones.\n * @param request Petición de firma.\n * @return Prefirmas de las peticiones enviadas.\n * @throws IOException Si ocurre algun error durante el tratamiento de datos.\n * @throws CertificateEncodingException Si no se puede obtener la codificación del certificado.\n * @throws SAXException Si ocurren errores analizando el XML de respuesta. */\n TriphaseRequest[] preSignRequests(SignRequest request) throws IOException,\n CertificateException,\n SAXException;\n\n /**\n * Inicia la post-firma remota de las peticiones.\n *\n * @param requests\n * Peticiones a post-firmar\n * @return Listado con el resultado de la operación de firma de cada\n * petición.\n * @throws IOException\n * Si ocurre algun error durante el proceso\n * @throws CertificateEncodingException\n * Cuando el certificado está mal codificado.\n * @throws SAXException\n * Si ocurren errores analizando el XML de respuesta\n */\n RequestResult postSignRequests(TriphaseRequest[] requests) throws IOException,\n CertificateEncodingException, SAXException;\n\n /**\n * Obtiene los datos de un documento.\n *\n * @param requestId\n * Identificador de la petición.\n * @return Datos del documento.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe algún problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n RequestDetail getRequestDetail(String requestId) throws SAXException, IOException;\n\n /**\n * Obtiene el listado de aplicaciones para las que hay peticiones de firma.\n * @return Configuracion de aplicación.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe algún problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n AppConfiguration getApplicationList()\n throws SAXException, IOException;\n\n /**\n * Rechaza las peticiones de firma indicadas.\n *\n * @param requestIds\n * Identificadores de las peticiones de firma que se quieren\n * rechazar.\n * @return Resultado de la operacion para cada una de las peticiones de\n * firma.\n * @throws SAXException\n * Si el XML obtenido del servidor no puede analizarse\n * @throws IOException\n * Si ocurre un error de entrada / salida\n */\n RequestResult[] rejectRequests(String[] requestIds,\n String reason) throws SAXException, IOException;\n\n /** Obtiene la previsualización de un documento.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @param mimetype MIME-Type del documento.\n * @return Datos del documento.\n * @throws IOException Cuando existe algún problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewDocument(String documentId,\n String filename,\n String mimetype) throws IOException;\n\n /** Obtiene la previsualización de una firma.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @return Datos del documento.\n * @throws IOException Cuando existe algún problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewSign(String documentId,\n String filename) throws IOException;\n\n /** Obtiene la previsualización de un informe de firma.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @param mimetype MIME-Type del documento.\n * @return Datos del documento.\n * @throws IOException Cuando existe algún problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewReport(String documentId,\n String filename, String mimetype) throws IOException;\n\n /**\n * Aprueba peticiones de firma (les da el visto bueno).\n *\n * @param requestIds\n * Identificador de las peticiones.\n * @return Resultado de la operación.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe algún problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n RequestResult[] approveRequests(String[] requestIds) throws SAXException, IOException;\n\n /**\n * Indica si el conector soporta las funciones de notificación.\n * @return {@code true} si se soportan las notificaciones, {@code false} en caso contrario.\n */\n boolean isNotificationsSupported();\n\n /**\n * Da de alta en el sistema de notificaciones.\n * @param token\n * \t\t\tToken de registro en GCM.\n * @param device\n * \t\t\tIdentificador de dispositivo.\n * @param certB64\n * \t\t\tCertificado en base 64 del usuario.\n * @return Resultado del proceso de alta en el sistema de notificaciones.\n * \t\t\tIndica\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe algún problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n NotificationState signOnNotificationService(\n String token, String device, String certB64)\n throws SAXException, IOException;\n\n\n}",
"public static void main(String[] args) {\n\t\tOfficeInternetAccess access = new ProxyInternetAccess(\"Sohan Chougule\"); \n access.grantInternetAccess(); \n\t}",
"public void setProxyPort(String proxyPort) {\n this.proxyPort = proxyPort;\n }",
"public LoginInfoClientProxy(URL proxyURL) {\n this.proxyURL = proxyURL;\n }",
"public boolean isProxyInjectionMode() {\n return proxyInjectionMode;\n }",
"@Before\r\n public void setUp() { \r\n ApiProxy.setEnvironmentForCurrentThread(new TestEnvironment());\r\n //ApiProxy.setDelegate(new ApiProxyLocalImpl(new File(\".\")){});\r\n \t\r\n //helper.setUp();\r\n }",
"public void setProxyPort(int newProxyPort)\r\n {\r\n System.out.println(\"Port: \" + newProxyPort);\r\n proxyPort = \"\" + newProxyPort;\r\n }",
"public void setProxyServer(String proxyServer) {\n this.proxyServer = proxyServer;\n }",
"public void setProxyHost(String proxyHost) {\n this.proxyHost = proxyHost;\n }",
"private void checkForProxy() {\r\n System.setProperty(\"java.net.useSystemProxies\", \"true\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n TransportLogger.getSysAuditLogger().debug(\"Detecting system proxies\"); //$NON-NLS-1$\r\n List<Proxy> l = null;\r\n try {\r\n l = ProxySelector.getDefault().select(\r\n new URI(\"https://mws.amazonservices.com\")); //$NON-NLS-1$\r\n }\r\n catch (URISyntaxException e) {\r\n e.printStackTrace();\r\n }\r\n if (l != null) {\r\n for (Proxy proxy : l) {\r\n InetSocketAddress addr = (InetSocketAddress) proxy.address();\r\n\r\n if (addr == null) {\r\n TransportLogger.getSysAuditLogger().debug(\r\n \"No system proxies found\"); //$NON-NLS-1$\r\n }\r\n else {\r\n TransportLogger.getSysAuditLogger().info(\r\n \"Proxy hostname: \" + addr.getHostName()); //$NON-NLS-1$\r\n if(System.getProperty(\"https.proxyHost\") == null) \r\n System.setProperty(\"https.proxyHost\", addr.getHostName()); //$NON-NLS-1$\r\n TransportLogger.getSysAuditLogger().info(\r\n \"Proxy Port: \" + addr.getPort()); //$NON-NLS-1$\r\n if(System.getProperty(\"https.proxyPort\") == null)\r\n System.setProperty(\"https.proxyPort\", //$NON-NLS-1$\r\n Integer.toString(addr.getPort()));\r\n break;\r\n }\r\n }\r\n }\r\n }",
"public void setProxyHost(String proxyHost) {\n\t proxyHandler.setProxyHost(proxyHost);\n \n if ((proxyHost != null) && (proxyHost.length() > 1)) {\n isProxyActivated.set(true);\n } \n resetChain();\n\t}",
"protected static void setProxyPassphrase(String passphrase) {\n Program.proxyPassphrase = passphrase;\n }",
"public void setProxyUsername(String proxyUsername) {\n this.proxyUsername = proxyUsername;\n }",
"public static final void preloadProxyInfo(String iniFile)\r\n {\r\n if ( appProps == null )\r\n {\r\n appProps = new AppProperties(iniFile);\r\n }\r\n String AUTHUSERID = \"HTTPClient.proxy_name\";\r\n String AUTHUSERPSWD = \"HTTPClient.proxy_password\";\r\n String AUTHUSERHOST = \"HTTPClient.proxy_host\";\r\n String AUTHUSERPORT = \"HTTPClient.proxy_port\";\r\n String AUTHUSERREALM = \"HTTPClient.proxy_realm\";\r\n String AUTHUSERPROXY_REQ = \"HTTPClient.proxy_required\";\r\n\r\n System.getProperties().setProperty(AUTHUSERID, appProps.getProperty(AUTHUSERID, \"\"));\r\n System.getProperties().setProperty(AUTHUSERPSWD, appProps.getProperty(AUTHUSERPSWD, \"\"));\r\n System.getProperties().setProperty(AUTHUSERHOST, appProps.getProperty(AUTHUSERHOST, \"\"));\r\n System.getProperties().setProperty(AUTHUSERPORT, appProps.getProperty(AUTHUSERPORT, \"\"));\r\n System.getProperties().setProperty(AUTHUSERREALM, appProps.getProperty(AUTHUSERREALM, \"\"));\r\n System.getProperties().setProperty(AUTHUSERPROXY_REQ, appProps.getProperty(AUTHUSERPROXY_REQ, \"\"));\r\n\r\n }",
"private void setResolverAsGoProxy(ArtifactoryManager artifactoryClient) throws Exception {\n String rtUrl = PackageManagerUtils.createArtifactoryUrlWithCredentials(artifactoryClient.getUrl(), resolverUsername, resolverPassword, ARTIFACTORY_GO_API + resolutionRepository);\n String proxyValue = rtUrl + \",\" + GOPROXY_VCS_FALLBACK;\n env.put(GOPROXY_ENV_VAR, proxyValue);\n }",
"public ProxySettings(Proxy proxy, final String username, final char[] password)\n {\n if (proxy == null)\n {\n throw new IllegalArgumentException(\"Proxy cannot be null\");\n }\n\n if (proxy.type() == Type.DIRECT)\n {\n throw new IllegalArgumentException(\"Proxy settings cannot be configured to be DIRECT\");\n }\n\n this.proxy = proxy;\n\n if (username != null && username.isEmpty())\n {\n throw new IllegalArgumentException(\"Username cannot be an empty string\");\n }\n\n if (password != null && password.length == 0)\n {\n throw new IllegalArgumentException(\"Password cannot be an empty string\");\n }\n\n this.username = username;\n this.password = password;\n }",
"public ClientBuilder proxy(@Nullable Proxy proxy) {\n this.proxy = proxy;\n return this;\n }",
"static void saveProxyConfig(final String proxyUrl) {\r\n\t\tAppPreferences.setUrlProxy(proxyUrl);\r\n\t}",
"public void setProxyName(java.lang.String newProxyName)\r\n {\r\n System.out.println(\"Name: \" + newProxyName);\r\n proxyName = newProxyName;\r\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Set the HTTP proxy server.\")\n @JsonProperty(JSON_PROPERTY_HTTP_PROXY)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getHttpProxy() {\n return httpProxy;\n }",
"public void setProxyPort(int port) {\n proxyPort = port;\n }",
"public int getHttpProxyPort();",
"public String getHttpProxyHost();",
"public boolean isAvoidProxy() {\n return avoidProxy;\n }",
"public void setProxyScheme(java.lang.String newProxyScheme)\r\n {\r\n System.out.println(\"Scheme: \" + newProxyScheme);\r\n proxyScheme = newProxyScheme;\r\n }",
"public static void main(String[] args)\n throws ClassNotFoundException, IOException {\n File dir = Files.getClassFile(ProxyManagerImpl.class);\n dir = (dir == null) ? new File(AccessController.doPrivileged(\n J2DoPrivHelper.getPropertyAction(\"user.dir\")))\n : dir.getParentFile();\n\n Options opts = new Options();\n args = opts.setFromCmdLine(args);\n\n List types = new ArrayList(Arrays.asList(args));\n int utils = opts.removeIntProperty(\"utils\", \"u\", 0);\n if (utils >= 4) {\n types.addAll(Arrays.asList(new String[] {\n java.sql.Date.class.getName(),\n java.sql.Time.class.getName(),\n java.sql.Timestamp.class.getName(),\n java.util.ArrayList.class.getName(),\n java.util.Date.class.getName(),\n java.util.GregorianCalendar.class.getName(),\n java.util.HashMap.class.getName(),\n java.util.HashSet.class.getName(),\n java.util.Hashtable.class.getName(),\n java.util.LinkedList.class.getName(),\n java.util.Properties.class.getName(),\n java.util.TreeMap.class.getName(),\n java.util.TreeSet.class.getName(),\n java.util.Vector.class.getName(),\n }));\n }\n if (utils >= 5) {\n types.addAll(Arrays.asList(new String[] {\n \"java.util.EnumMap\",\n \"java.util.IdentityHashMap\",\n \"java.util.LinkedHashMap\",\n \"java.util.LinkedHashSet\",\n \"java.util.PriorityQueue\",\n }));\n }\n\n final ProxyManagerImpl mgr = new ProxyManagerImpl();\n Class cls;\n for (Object type : types) {\n cls = Class.forName((String) type);\n try {\n if (Class.forName(getProxyClassName(cls, false), true,\n GeneratedClasses.getMostDerivedLoader(cls, Proxy.class))\n != null)\n continue;\n }\n catch (Throwable t) {\n // expected if the class hasn't been generated\n }\n\n\n final String proxyClassName = getProxyClassName(cls, false);\n\n byte[] bytes = null;\n\n if (Date.class.isAssignableFrom(cls)) {\n bytes = mgr.generateProxyDateBytecode(cls, false, proxyClassName);\n }\n else if (Calendar.class.isAssignableFrom(cls)) {\n bytes = mgr.generateProxyCalendarBytecode(cls, false, proxyClassName);\n }\n else if (Collection.class.isAssignableFrom(cls)) {\n bytes = mgr.generateProxyCollectionBytecode(cls, false, proxyClassName);\n }\n else if (Map.class.isAssignableFrom(cls)) {\n bytes = mgr.generateProxyMapBytecode(cls, false, proxyClassName);\n }\n else {\n bytes = mgr.generateProxyBeanBytecode(cls, false, proxyClassName);\n }\n\n if (bytes != null) {\n final String fileName = cls.getName().replace('.', '$') + PROXY_SUFFIX + \".class\";\n java.nio.file.Files.write(new File(dir, fileName).toPath(), bytes);\n }\n }\n }",
"int getHttpProxyPort();",
"public void setProxyId(Long proxyId) {\n this.proxyId = proxyId;\n }",
"@Test\n public void testProxy() {\n Dell dell = new Dell();\n Proxy proxy = new Proxy(dell);\n proxy.salePc();\n }",
"@Override\n\tpublic boolean gcSetAutoBackupProxy(BluetoothDevice device, int port, byte security,\n\t\t\tString ssid, String proxy) {\n\t\treturn false;\n\t}",
"private static void initialiseBrowser() {\n\t\tif (System.getProperty(\"proxyname\") != null) {\n\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\t\t\tprofile.setPreference(\"network.proxy.type\", 1);\n\t\t\tprofile.setPreference(\"network.proxy.http\", System.getProperty(\"proxyname\"));\n\t\t\tprofile.setPreference(\"network.proxy.http_port\", 3128);\n\n\t\t\tdriver = new FirefoxDriver(profile);\n\t\t\tsetDriver(driver);\n\t\t}\n\t\telse{\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tsetDriver(driver);\n\t\t}\n\t}",
"public boolean isProxyEnabled() {\n\t\treturn checkBoxProxyEnabled.isSelected();\n\t}",
"public Proxy getProxy() {\n return proxy;\n }",
"String getHttpProxyHost();",
"public boolean isDefined(){\n\t\treturn this.useProxy;\n\t}",
"public static void updateProxySettings(String host,String port,String username,String password){\n\t\tHttpPosterCommons.host\t\t\t= (!host.equals(\"\"))?host:HttpPosterCommons.host;\n\t\tHttpPosterCommons.port \t\t\t= (!port.equals(\"\"))?port:HttpPosterCommons.port;\n\t\tHttpPosterCommons.username\t\t= (!username.equals(\"\"))?username:HttpPosterCommons.username;\n\t\tHttpPosterCommons.password \t\t= (!password.equals(\"\"))?password:HttpPosterCommons.password;\t\t\n\t}",
"public void clearProxyConfig();",
"public interface IRemoteEnvProxyManager extends IRemoteProxyManager {\n \t/**\n \t * Method to get system's environment variables.\n \t *\n\t * @param Project\n\t * IProject\n \t * @return Mapping of environment variables\n \t * @since 2.1\n\t*/\t\n \tpublic Map<String, String> getEnv(IProject project) throws CoreException;\n /**\n * Method to get system's environment variables.\n * \n * @param Resource URI\n * URI\n * @return Mapping of environment variables\n * @since 2.1\n */\n \tpublic Map<String, String> getEnv(URI uri) throws CoreException;\n }",
"public java.lang.String getProxyPswd()\r\n {\r\n return proxyPswd;\r\n }",
"public boolean isArtifactoryProxyBypassed() {\n return artifactoryProxyBypassed;\n }",
"boolean isProxyTargetClass();",
"public void setMessageBusProxySupported(java.lang.Boolean messageBusProxySupported) {\r\n this.messageBusProxySupported = messageBusProxySupported;\r\n }",
"public ProxyConfig[] getProxyConfigList();",
"public void setProxyUser(String proxyUser) {\n\t proxyHandler.setProxyUser(proxyUser);\n\t}",
"boolean isOmniProxyServer();",
"public java.lang.String getProxyHost()\r\n {\r\n return proxyHost;\r\n }",
"public void setProxyPassword(String proxyPassword) {\n\t proxyHandler.setProxyPassword(proxyPassword);\n\t}",
"public java.lang.String getProxyName()\r\n {\r\n return proxyName;\r\n }",
"private void setHttpclientProxy(DefaultHttpClient httpClient) {\r\n Proxy proxy = ProxyProvider.getProxy();\r\n String proxyUser = ProxyProvider.getProxyUserName();\r\n String proxyPwd = ProxyProvider.getProxyUserPassword();\r\n // set by other components like tSetProxy\r\n if (proxy != null) {\r\n\r\n final HttpHost httpHost = new HttpHost(((InetSocketAddress) proxy.address()).getHostName(),\r\n ((InetSocketAddress) proxy.address()).getPort());\r\n // Sets usage of HTTP proxy\r\n httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, httpHost);\r\n\r\n // Sets proxy authentication, if credentials were provided\r\n // TODO Because the proxy of get accesToken can't support authentication. remove this ?\r\n if (proxyUser != null && proxyPwd != null) {\r\n httpClient.getCredentialsProvider().setCredentials(new AuthScope(httpHost),\r\n new UsernamePasswordCredentials(proxyUser, proxyPwd));\r\n }\r\n\r\n }\r\n\r\n }",
"protected static String getProxyPassphrase() {\n if (\"?\".equals(proxyPassphrase)) {\n Console console = System.console();\n if (console != null) {\n proxyPassphrase = new String(console.readPassword(\"Proxy password:\"));\n } else {\n throw new UnsupportedOperationException(\n \"Proxy password must be specified\");\n }\n }\n return proxyPassphrase;\n }",
"public static void main(String args[]) {\n int saveCerts = 0;\n boolean noVerify = false;\n String proxyHost = \"127.0.0.1\";\n int proxyPort = 0;\n ProxyType ptype = ProxyType.NONE;\n boolean error = false;\n Getopt g = new Getopt(\"ssleepget\", args, \"p:y:sz\");\n try {\n int c;\n while ((c = g.getopt()) != -1) {\n switch (c) {\n case 'p':\n String s = g.getOptarg();\n int colon = s.indexOf(':');\n if (colon >= 0) {\n // Todo IPv6 [a:b:c]:4444\n proxyHost = s.substring(0, colon);\n String port = s.substring(colon + 1);\n proxyPort = Integer.parseInt(port);\n } else {\n proxyHost = s;\n // proxyPort remains default\n }\n break;\n\n case 'y':\n String y = g.getOptarg().toUpperCase(Locale.US);\n if (y.equals(\"HTTP\") || y.equals(\"HTTPS\")) {\n ptype = ProxyType.HTTP;\n } else if (y.equals(\"SOCKS4\")) {\n ptype = ProxyType.SOCKS4;\n } else if (y.equals(\"SOCKS5\")) {\n ptype = ProxyType.SOCKS5;\n } else if (y.equals(\"I2P\")) {\n ptype = ProxyType.INTERNAL;\n proxyHost = \"localhost\";\n proxyPort = 4444;\n } else {\n error = true;\n }\n break;\n\n case 's':\n saveCerts++;\n break;\n\n case 'z':\n noVerify = true;\n break;\n\n case '?':\n case ':':\n default:\n error = true;\n break;\n } // switch\n } // while\n } catch (RuntimeException e) {\n e.printStackTrace();\n error = true;\n }\n\n if (error || args.length - g.getOptind() != 1) {\n usage();\n System.exit(1);\n }\n String url = args[g.getOptind()];\n\n String saveAs = suggestName(url);\n\n SSLEepGet get;\n if (proxyHost != null) {\n if (proxyPort == 0) {\n if (ptype == ProxyType.HTTP)\n proxyPort = 8080;\n else\n proxyPort = 1080;\n }\n get = new SSLEepGet(I2PAppContext.getGlobalContext(), ptype, proxyHost, proxyPort, saveAs, url);\n } else {\n get = new SSLEepGet(I2PAppContext.getGlobalContext(), saveAs, url);\n }\n if (saveCerts > 0)\n get._saveCerts = saveCerts;\n if (noVerify)\n get._bypassVerification = true;\n get._commandLine = true;\n get.addStatusListener(get.new CLIStatusListener(1024, 40));\n if(!get.fetch(45*1000, -1, 60*1000))\n System.exit(1);\n }",
"public void setHonorSystemProxy(boolean honorSystemProxy) {\n this.honorSystemProxy = honorSystemProxy;\n }",
"public void setProxyRealm(java.lang.String newProxyRealm)\r\n {\r\n System.out.println(\"Realm: \" + newProxyRealm);\r\n proxyRealm = newProxyRealm;\r\n }",
"public void setSmtpUseSOCKSProxy(boolean value) {\n this.smtpUseSOCKSProxy = value;\n }",
"public static void main(String[] args) throws Exception{\n\t\tProperties properties = System.getProperties();\r\n\t\t//System.out.println(System.lineSeparator());\r\n\t\tSystem.getProperties().put(\"sun.misc.ProxyGenerator.saveGeneratedFiles\", true);\r\n\t\t/*Set<Entry<Object,Object>> entrySet = properties.entrySet();\r\n\t\tfor (Entry<Object, Object> entry : entrySet) {\r\n\t\t\tSystem.out.println(entry.getKey()+\":\"+entry.getValue());\r\n\t\t}*/\r\n\t\t/*HelloProxy hp = new HelloProxy();\r\n\t\tHelloService he = (HelloService) hp.bind(new HelloServiceImpl());\r\n\t\the.sayHello(\"郑金磊\");*/\r\n\t\tClass proxyClazz = Proxy.getProxyClass(HelloService.class.getClassLoader(), HelloService.class);\r\n\t\tConstructor constructor = proxyClazz.getConstructor(InvocationHandler.class);\r\n\t\tHelloService proxy = (HelloService) constructor.newInstance(new HelloProxy(new HelloServiceImpl()));\r\n\t\tproxy.sayHello(\"老狼\");\r\n\t}"
] | [
"0.71497965",
"0.6927181",
"0.69176155",
"0.6809556",
"0.67424995",
"0.665683",
"0.6653077",
"0.66021484",
"0.6491939",
"0.64740986",
"0.6371633",
"0.6365249",
"0.63361984",
"0.6333499",
"0.6325094",
"0.6321481",
"0.62968713",
"0.62863696",
"0.62818015",
"0.62814176",
"0.6278753",
"0.6269919",
"0.6233474",
"0.62010735",
"0.61967",
"0.61813855",
"0.61763877",
"0.6171263",
"0.61577857",
"0.61568505",
"0.61560416",
"0.6134225",
"0.6101488",
"0.61005723",
"0.6066147",
"0.6065235",
"0.59948385",
"0.59612685",
"0.59612685",
"0.59567344",
"0.5949883",
"0.594171",
"0.5901812",
"0.5901812",
"0.5898586",
"0.5898256",
"0.5890766",
"0.5878652",
"0.58718663",
"0.5846078",
"0.58338696",
"0.5831762",
"0.58278525",
"0.58211434",
"0.58031327",
"0.5800276",
"0.579652",
"0.57944876",
"0.57904893",
"0.5765962",
"0.5760409",
"0.57548773",
"0.5750664",
"0.5745627",
"0.57410234",
"0.569258",
"0.56874835",
"0.5676311",
"0.5646661",
"0.5634162",
"0.5631428",
"0.56262624",
"0.56231153",
"0.56175196",
"0.5616005",
"0.5592133",
"0.5585795",
"0.5568145",
"0.5565483",
"0.55567455",
"0.5552614",
"0.5552177",
"0.55324656",
"0.5531604",
"0.5526682",
"0.5522587",
"0.5501998",
"0.5488813",
"0.54845715",
"0.5480616",
"0.547728",
"0.54409534",
"0.54396904",
"0.5439184",
"0.5438386",
"0.5421903",
"0.5417891",
"0.5417642",
"0.5415049",
"0.5404623",
"0.54027146"
] | 0.0 | -1 |
Simple implementation of getNamespaces() method. Returns empty array. | public List<Namespace> getNamespaces(String string)
throws UnknownLanguageException, ClassDataLoaderConfigurationException {
return new ArrayList<Namespace>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList getNamespaces() {\n return m_namespaces;\n }",
"public final String[] getNamespaces() {\n return m_uris;\n }",
"public java.util.Map<String,String> getNamespaces() {\n return (_namespaces);\n }",
"public Map<String,String> getNamespaces() {\n return namespaces;\n }",
"@Override\r\n\tpublic List<String> getXMLNamespaces() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic Set<String> getNamespaces(ResourcePackType p_195759_1_) {\n\t\treturn null;\n\t}",
"Namespaces namespaces();",
"private List<Namespace> namespaces() {\n\t\tList<Namespace> namespaces = new ArrayList<>();\n\t\tfor (OwnerTraceData ancestor = data; ancestor != null; ancestor = ancestor.parent) {\n\t\t\tNamespace ns = new Namespace();\n\t\t\tns.data = ancestor;\n\t\t\tnamespaces.add(ns);\n\t\t}\n\t\tCollections.reverse(namespaces);\n\t\tObject2IntMap<String> numbering = new Object2IntOpenHashMap<>(namespaces.size());\n\t\tfor (Namespace ns : namespaces) {\n\t\t\t/*\n\t\t\t * Make a copy since the alias could be changed in another thread (unlikely but possible).\n\t\t\t */\n\t\t\tString alias = ns.data.alias;\n\t\t\tif (!numbering.containsKey(alias)) {\n\t\t\t\tns.name = alias;\n\t\t\t\tnumbering.put(alias, 2);\n\t\t\t} else {\n\t\t\t\tint number = numbering.getInt(alias);\n\t\t\t\tns.name = alias + number;\n\t\t\t\tnumbering.put(alias, number + 1);\n\t\t\t}\n\t\t}\n\t\treturn namespaces;\n\t}",
"@Override\r\n\tpublic String[] getNamespacePrefixes() throws RepositoryException {\n\t\treturn null;\r\n\t}",
"public NsNamespaces() {\n this(DSL.name(\"ns_namespaces\"), null);\n }",
"@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}",
"@Override\n public ListenableFuture<Set<String>> getNamespaces(AuthHeader authHeader) {\n return Futures.immediateFuture(namespaceLoaders.stream()\n .map(PersistentNamespaceLoader::getAllPersistedNamespaces)\n .flatMap(Set::stream)\n .filter(namespace -> !namespace.value().equals(PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE))\n .map(Client::value)\n .collect(Collectors.toSet()));\n }",
"public final String[][] getExtensionNamespaces() {\n return m_extensionUris;\n }",
"public Map getNamespaceMap() {\n/* 130 */ return this.nsMap;\n/* */ }",
"public XMLNamespaces() {\n this(libsbmlJNI.new_XMLNamespaces__SWIG_0(), true);\n }",
"@DISPID(1091) //= 0x443. The runtime will prefer the VTID if present\n @VTID(11)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject namespaces();",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \\\"*\\\". Note that \\\"*\\\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.\")\n\n public List<String> getNamespaces() {\n return namespaces;\n }",
"public String getNamespace();",
"String getNamespace();",
"String getNamespace();",
"String getNamespace();",
"java.lang.String getNamespace();",
"@Override\n public ListenableFuture<Set<String>> getActiveNamespaces(AuthHeader authHeader) {\n return Futures.immediateFuture(timelockNamespaces.getActiveClients().stream()\n .map(Client::value)\n .filter(value -> !value.equals(PaxosTimeLockConstants.LEADER_PAXOS_NAMESPACE))\n .collect(Collectors.toSet()));\n }",
"private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env) {\r\n java.util.Map returnMap = new java.util.HashMap();\r\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\r\n while (namespaceIterator.hasNext()) {\r\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\r\n returnMap.put(ns.getPrefix(), ns.getNamespaceURI());\r\n }\r\n return returnMap;\r\n }",
"private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\r\n java.util.Map returnMap = new java.util.HashMap();\r\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\r\n while (namespaceIterator.hasNext()) {\r\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\r\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\r\n }\r\n return returnMap;\r\n }",
"private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }",
"private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\r\n java.util.Map returnMap = new java.util.HashMap();\r\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\r\n while (namespaceIterator.hasNext()) {\r\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\r\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\r\n }\r\n return returnMap;\r\n }",
"private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }",
"private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }",
"private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }",
"private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }",
"private java.util.Map getEnvelopeNamespaces(\n\t\t\torg.apache.axiom.soap.SOAPEnvelope env) {\n\t\tjava.util.Map returnMap = new java.util.HashMap();\n\t\tjava.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n\t\twhile (namespaceIterator.hasNext()) {\n\t\t\torg.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator\n\t\t\t\t\t.next();\n\t\t\treturnMap.put(ns.getPrefix(), ns.getNamespaceURI());\n\t\t}\n\t\treturn returnMap;\n\t}",
"public Map<Integer, String> getAllBindingNamespaces()\n {\n Map<Integer, String> allNs = new HashMap<Integer, String>();\n \n for (BindingExpression be : bindingExpressions)\n {\n if (be.getNamespaces() != null)\n {\n allNs.putAll(be.getNamespaces());\n }\n }\n \n return allNs;\n }",
"public ImmutableList<String> getRequiredCssNamespaces() {\n return requiredCssNamespaces;\n }",
"public String getNamespace()\n {\n return NAMESPACE;\n }",
"public Set<String> getImportedNamespaces() {\n Set<EndpointInterface> endpointInterfaces = getEndpointInterfaces();\n if ((endpointInterfaces == null) || (endpointInterfaces.size() == 0)) {\n throw new IllegalStateException(\"WSDL for \" + getTargetNamespace() + \" has no endpoint interfaces!\");\n }\n\n HashSet<String> importedNamespaces = new HashSet<String>();\n //always import the list of known namespaces.\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/http/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/mime/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/soap/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/soap12/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/soap/encoding/\");\n importedNamespaces.add(\"http://www.w3.org/2001/XMLSchema\");\n\n for (EndpointInterface endpointInterface : endpointInterfaces) {\n importedNamespaces.addAll(endpointInterface.getReferencedNamespaces());\n }\n\n if (isInlineSchema()) {\n SchemaInfo associatedSchema = getAssociatedSchema();\n if (associatedSchema != null) {\n importedNamespaces.addAll(associatedSchema.getReferencedNamespaces());\n }\n }\n\n return importedNamespaces;\n }",
"@Override\n\tpublic String getNamespace() {\n\t\treturn nameSpace;\n\t}",
"public String getNamespace()\n/* */ {\n/* 357 */ return this.namespace;\n/* */ }",
"@Override\n\tprotected String getNamespace() {\n\t\treturn NAMESPACE;\n\t}",
"@Override\r\n\tpublic String getNamespace() {\n\t\treturn null;\r\n\t}",
"@Nullable public String getNamespace() {\n return namespace;\n }",
"int getNamespaceUri();",
"@Override\n\tpublic String getNamespace() {\n\t\treturn null;\n\t}",
"@Override\n public Class<NsNamespacesRecord> getRecordType() {\n return NsNamespacesRecord.class;\n }",
"public String getNamespace() {\n return namespace;\n }",
"public final int getTotalNsCount() {\n return mNamespaces.size() >> 1;\n }",
"public String getNamespace() {\n return namespace;\n }",
"public String getNamespace() {\n return namespace;\n }",
"public String getNamespace() {\n return namespace;\n }",
"public void genLoadNamespaces(MethodBuilder mb) {\n \n // first create the array of namespace indexes\n int count = m_namespaces == null ? 0 : m_namespaces.size();\n mb.appendLoadConstant(count);\n mb.appendCreateArray(\"int\");\n genFillNamespaceIndexes(m_namespaces, mb);\n \n // next create the array of prefixes\n mb.appendLoadConstant(count);\n mb.appendCreateArray(\"java.lang.String\");\n genFillNamespacePrefixes(m_namespaces, mb);\n }",
"public String getNamespace() {\n return this.namespace;\n }",
"public String getAllBindingNamespaceDeclarations() \t \n { \t \n return BindingExpression.getNamespaceDeclarations(getAllBindingNamespaces()); \t \n }",
"@Updatable\n public String getNamespace() {\n return namespace;\n }",
"@Override\n protected void initializeNamespaces() {\n\n cds.nsUriToPrefixMap.put(XMI_NS_URI, XMI_NS_PREFIX);\n\n // Add any namespace prefix mappings used by out of type system data.\n // Need to do this before the in-typesystem namespaces so that the prefix\n // used here are reserved and won't be reused for any in-typesystem namespaces.\n\n if (cds.sharedData != null) {\n Iterator<OotsElementData> ootsIter = cds.sharedData.getOutOfTypeSystemElements().iterator();\n while (ootsIter.hasNext()) {\n OotsElementData oed = ootsIter.next();\n String nsUri = oed.elementName.nsUri; // http://... etc\n String qname = oed.elementName.qName; // xxx:yyy\n String localName = oed.elementName.localName; // yyy\n String prefix = qname.substring(0, qname.indexOf(localName) - 1); // xxx\n cds.nsUriToPrefixMap.put(nsUri, prefix);\n cds.nsPrefixesUsed.add(prefix);\n }\n }\n\n /*\n * Convert x.y.z.TypeName to prefix-uri, TypeName, and ns:TypeName\n */\n Iterator<Type> it = cds.tsi.getTypeIterator();\n while (it.hasNext()) {\n TypeImpl t = (TypeImpl) it.next();\n // this also populates the nsUriToPrefix map\n cds.typeCode2namespaceNames[t.getCode()] = uimaTypeName2XmiElementName(t.getName());\n }\n }",
"private SubscriptionList getNamespaceSubscriptions(String baseNS) throws RepositoryException {\n \tSubscriptionResource sr = namespaceCache.get( baseNS );\n \t\n \tif (sr == null) {\n \t\ttry {\n\t\t\t\tsr = new SubscriptionResource( fileUtils, baseNS, null, null );\n\t\t\t\tnamespaceCache.put( baseNS, sr );\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RepositoryException(\"Error loading subscription list content.\", e);\n\t\t\t}\n \t}\n \treturn sr.getResource();\n }",
"public ArrayList<ContentName> getRegisteredPrefixes() {\n ArrayList<ContentName> prefixes = new ArrayList<ContentName>();\n synchronized (_registeredPrefixes) {\n for (ContentName name : _registeredPrefixes.keySet()) {\n prefixes.add(name);\n }\n }\n return prefixes;\n }",
"public boolean hasNamespace() {\n return m_namespaces != null && m_namespaces.size() > 0;\n }",
"String getNamespacePrefix(Object ns);",
"public String getNamespaceName() {\n return namespaceName;\n }",
"protected final Namespace getNamespace()\n {\n return m_namespace;\n }",
"public String[][] getKnownPrefixes() {\n return defaultPrefixes;\n }",
"String getImportedNamespace();",
"java.util.List<KeySpace>\n getKeyspacesList();",
"public void testGetNamespacePrefixes() throws RepositoryException {\n String result[] = { \"prefix1\", \"prefix2\" };\n \n sessionControl.expectAndReturn(session.getNamespacePrefixes(), result);\n sessionControl.replay();\n sfControl.replay();\n \n assertSame(jt.getNamespacePrefixes(), result);\n }",
"public Optional<String> namespace() {\n return Codegen.stringProp(\"namespace\").config(config).get();\n }",
"public String getNameSpace() {\n return this.namespace;\n }",
"public void setNamespaces(java.util.Map<String,String> namespaces) {\n _namespaces = namespaces;\n }",
"@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.423 -0500\", hash_original_method = \"D02303EBFA8DB4A97AF291339C2FB52B\", hash_generated_method = \"D02303EBFA8DB4A97AF291339C2FB52B\")\n \nEnumeration getPrefixes ()\n {\n if (prefixTable == null) {\n return EMPTY_ENUMERATION;\n } else {\n return prefixTable.keys();\n }\n }",
"public boolean isNamespaceAware () {\n return true;\n }",
"public String getNamespaceURL() {\n return namespaceURL;\n }",
"String getReferenceNamespace();",
"public final int getNamespaceCount() {\n int count = m_uris.length;\n if (m_extensionUris != null) {\n for (int i = 0; i < m_extensionUris.length; i++) {\n count += m_extensionUris[i].length;\n }\n }\n return count;\n }",
"public String getNamespaceURI() {\n return this.namespaceUri;\n }",
"public String getNamespace() {\n\t\treturn EPPNameVerificationMapFactory.NS;\n\t}",
"@SuppressWarnings(\"rawtypes\")\n \t\t@Override\n \t\tpublic Iterator getPrefixes(String uri) {\n \t\t\tthrow new UnsupportedOperationException();\n \t\t}",
"private void closeNamespaces() {\n \n // revert prefixes for namespaces included in last declaration\n DeclarationInfo info = (DeclarationInfo)m_namespaceStack.pop();\n int[] deltas = info.m_deltas;\n String[] priors = info.m_priors;\n for (int i = deltas.length - 1; i >= 0; i--) {\n int index = deltas[i];\n undefineNamespace(index);\n if (index < m_prefixes.length) {\n m_prefixes[index] = priors[i];\n } else if (m_extensionUris != null) {\n index -= m_prefixes.length;\n for (int j = 0; j < m_extensionUris.length; j++) {\n int length = m_extensionUris[j].length;\n if (index < length) {\n m_extensionPrefixes[j][index] = priors[i];\n } else {\n index -= length;\n }\n }\n }\n }\n \n // set up for clearing next nested set\n if (m_namespaceStack.empty()) {\n m_namespaceDepth = -1;\n } else {\n m_namespaceDepth =\n ((DeclarationInfo)m_namespaceStack.peek()).m_depth;\n }\n }",
"@DOMSupport(DomLevel.TWO)\r\n @BrowserSupport({BrowserType.FIREFOX_2P, BrowserType.OPERA_9P, BrowserType.IE_9P})\r\n @JsArray(Node.class)\r\n @FactoryFunc\r\n\t@Function NodeList getElementsByTagNameNS(String namespaceURI, String localName);",
"public YANG_NameSpace getNameSpace() {\n\t\treturn namespace;\n\t}",
"Rule Namespace() {\n // No direct effect on value stack\n return FirstOf(\n ScopedNamespace(),\n PhpNamespace(),\n XsdNamespace());\n }",
"@XmlElement(required = true, name = \"namespace\")\n public String getNamespace() {\n return namespace;\n }",
"Rule XsdNamespace() {\n return Sequence(\n \"xsd_namespace\",\n Literal(),\n actions.pushXsdNamespaceNode());\n }",
"List<String> getQualifiedName();",
"Collection<String> getMappingPrefixes();",
"private String getNamespace(Package pkg) {\n/* */ String nsUri;\n/* 223 */ if (pkg == null) return \"\";\n/* */ \n/* */ \n/* 226 */ XmlNamespace ns = pkg.<XmlNamespace>getAnnotation(XmlNamespace.class);\n/* 227 */ if (ns != null) {\n/* 228 */ nsUri = ns.value();\n/* */ } else {\n/* 230 */ nsUri = \"\";\n/* 231 */ } return nsUri;\n/* */ }",
"public Collection<String> getQualifiedClassNamesForManifestNamespaces(\n Set<String> namespaceURIs)\n {\n return getMXMLManifestManager().getQualifiedNamesForNamespaces(\n namespaceURIs, true);\n }",
"public List<MXMLNamespaceMapping> getCompilerNamespacesManifestMappings(Configuration config)\n {\n \treturn config.getCompilerNamespacesManifestMappings();\n }",
"@Override\r\n public Iterator getPrefixes(String uri) {\r\n throw new UnsupportedOperationException();\r\n }",
"public String getNamespace() {\n return getTypeDefinition().getNamespace();\n }",
"@Test\n public void testNamespace() throws Exception {\n NamespaceMeta ns1Meta = new NamespaceMeta.Builder().setName(\"ns1\").build();\n NamespaceMeta ns2Meta = new NamespaceMeta.Builder().setName(\"ns2\").build();\n NamespaceMeta anotherNsMeta = new NamespaceMeta.Builder().setName(\"anotherNs\").build();\n when(nsClient.list()).thenReturn(ImmutableList.of(ns1Meta, ns2Meta, anotherNsMeta));\n\n ResourceLookupContext resourceLookupContext = new ResourceLookupContext();\n resourceLookupContext.setResourceName(\"namespace\");\n // user is entering n and we expect the completion to show ns1 and ns2 as they start with n and not anotherNs\n resourceLookupContext.setUserInput(\"n\");\n resourceLookupContext.setResources(ImmutableMap.of(\"namespace\", Collections.emptyList()));\n List<String> resources = client.getResources(resourceLookupContext);\n Assert.assertEquals(2, resources.size());\n Assert.assertEquals(ImmutableList.of(\"ns1\", \"ns2\"), resources);\n }",
"public Namespace getLocalNamespace() {\n return entities;\n }",
"public int[] openNamespaces(int[] nums, String[] prefs) throws IOException {\n \n // find the number of namespaces actually being declared\n int count = 0;\n loop: for (int i = 0; i < nums.length; i++) {\n \n // set prefix only if different and not changing prefix to default\n String newpref = prefs[i];\n String oldpref = getNamespacePrefix(nums[i]);\n boolean use = false;\n if (!newpref.equals(oldpref) &&\n (!\"\".equals(newpref) || oldpref == null)) {\n use = true;\n for (int j = 0; j < i; j++) {\n if (nums[i] == nums[j]) {\n if (\"\".equals(newpref)) {\n \n // ignore replacing prefix with default in same call\n use = false;\n break;\n \n } else {\n \n // multiple prefixes for namespace, keep only last\n nums[j] = -1;\n continue loop;\n \n }\n }\n }\n }\n if (use) {\n count++;\n } else {\n nums[i] = -1;\n }\n }\n \n // check if there's actually any change\n int[] deltas = EMPTY_INT_ARRAY;\n if (count > 0) {\n \n // get the set of namespace indexes that are changing\n String[] priors = new String[count];\n if (count == nums.length) {\n \n // replace the full set, tracking the prior values\n deltas = nums;\n if (m_translateTable != null) {\n for (int i = 0; i < deltas.length; i++) {\n deltas[i] = m_translateTable[deltas[i]];\n }\n }\n for (int i = 0; i < count; i++) {\n int slot = deltas[i];\n priors[i] = getNamespacePrefix(slot);\n setNamespacePrefix(slot, prefs[i]);\n defineNamespace(slot, prefs[i]);\n }\n \n } else {\n \n // replace only changed ones, tracking both indexes and priors\n int fill = 0;\n deltas = new int[count];\n for (int i = 0; i < nums.length; i++) {\n int slot = nums[i];\n if (slot >= 0) {\n int xlate = translateNamespace(slot);\n deltas[fill] = xlate;\n priors[fill++] = getNamespacePrefix(slot);\n setNamespacePrefix(xlate, prefs[i]);\n defineNamespace(xlate, prefs[i]);\n }\n }\n }\n \n // set up for undeclaring namespaces on close of element\n m_namespaceStack.push\n (new DeclarationInfo(m_nestingDepth, deltas, priors));\n m_namespaceDepth = m_nestingDepth;\n \n }\n return deltas;\n }",
"List<String> getSystemPackages();",
"public ImmutableMap<String, String> getAliasToNamespaceMap() {\n return aliasToNamespaceMap;\n }",
"public com.newco.ofac.webservice.SDN[] getSDNLists() {\r\n return SDNLists;\r\n }",
"private String getNamespace(String qname) {\n StringTokenizer tok = new StringTokenizer(qname, \":\");\n String prefix;\n\n if (tok.countTokens() == 1) {\n return \"\";\n }\n prefix = tok.nextToken();\n\n NamedNodeMap map = mDoc.getDocumentElement().getAttributes();\n for (int j = 0; j < map.getLength(); j++) {\n Node n = map.item(j);\n\n if (n.getLocalName().trim().equals(prefix.trim())) {\n return n.getNodeValue();\n }\n }\n\n return \"\";\n }",
"private void genFillNamespacePrefixes(ArrayList nss, MethodBuilder mb) {\n if (nss != null) {\n for (int i = 0; i < nss.size(); i++) {\n mb.appendDUP();\n mb.appendLoadConstant(i);\n String prefix = ((NamespaceDefinition)nss.get(i)).getPrefix();\n if (prefix == null) {\n prefix = \"\";\n }\n mb.appendLoadConstant(prefix);\n mb.appendAASTORE();\n }\n }\n }"
] | [
"0.84430546",
"0.80714655",
"0.783132",
"0.76413757",
"0.7556401",
"0.7439236",
"0.73440474",
"0.692655",
"0.6727082",
"0.6720408",
"0.6619448",
"0.6619448",
"0.6619448",
"0.6619448",
"0.6619448",
"0.654747",
"0.6494254",
"0.64730954",
"0.6438551",
"0.636841",
"0.6360714",
"0.6341688",
"0.63347775",
"0.63347775",
"0.63347775",
"0.63021326",
"0.62271047",
"0.6219633",
"0.6214853",
"0.6191781",
"0.6182197",
"0.61549085",
"0.61549085",
"0.61549085",
"0.61549085",
"0.6140629",
"0.6111237",
"0.6033193",
"0.6029952",
"0.60234666",
"0.60123837",
"0.6004427",
"0.5983088",
"0.59568954",
"0.59388363",
"0.59242016",
"0.59092367",
"0.5904603",
"0.5896735",
"0.58952874",
"0.5828915",
"0.5828915",
"0.5828915",
"0.5800937",
"0.579033",
"0.57878983",
"0.5697152",
"0.56859934",
"0.56662095",
"0.56637704",
"0.5646482",
"0.5637289",
"0.56361",
"0.5623557",
"0.5620102",
"0.5619114",
"0.56078804",
"0.5606805",
"0.55316055",
"0.5523403",
"0.55055535",
"0.5503995",
"0.54992837",
"0.5499182",
"0.5491663",
"0.54736674",
"0.5469058",
"0.5465195",
"0.54621756",
"0.54540753",
"0.5453388",
"0.5441443",
"0.5432938",
"0.5420809",
"0.5420541",
"0.53768367",
"0.53746843",
"0.5374564",
"0.5365666",
"0.53654855",
"0.53647596",
"0.5348586",
"0.5344546",
"0.5338841",
"0.5334871",
"0.53249943",
"0.5315078",
"0.53127533",
"0.53119886",
"0.5310441"
] | 0.6619825 | 10 |
Create a new collection value | public AbstractCollectionMetaData()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"CollectionItem createCollectionItem();",
"CollectionReferenceElement createCollectionReferenceElement();",
"protected abstract Collection createCollection();",
"<C> CollectionItem<C> createCollectionItem();",
"public void push(Object value) {\n this.collection.add(value);\n }",
"CollectionParameter createCollectionParameter();",
"protected Collection<V> newCollection() {\r\n \treturn new ArrayList<V>();\r\n }",
"protected SafeHashMap.ValuesCollection instantiateValuesCollection()\n {\n return new ValuesCollection();\n }",
"StoreCollection getOrCreateCollection( String name);",
"private PropertyCollection createCollectionProperty(final String descr) {\n\t\treturn createCollectionProperty(descr, null, null);\n\t}",
"@Nullable\n @SuppressWarnings(\"unchecked\")\n protected Collection createCollection(MappingContext context, Object value) {\n if (value instanceof Iterable<?>) {\n TypeInformation entryType = context.getGenericTypeInfoOrFail(0);\n Collection result = createCollectionMatchingType(context);\n\n int index = 0;\n for (Object entry : (Iterable) value) {\n Object convertedEntry = convertValueForType(context.createChild(\"[\" + index + \"]\", entryType), entry);\n if (convertedEntry == null) {\n context.registerError(\"Cannot convert value at index \" + index);\n } else {\n result.add(convertedEntry);\n }\n }\n return result;\n }\n return null;\n }",
"protected Collection createCollectionMatchingType(MappingContext mappingContext) {\n Class<?> collectionType = mappingContext.getTypeInformation().getSafeToWriteClass();\n if (collectionType.isAssignableFrom(ArrayList.class)) {\n return new ArrayList();\n } else if (collectionType.isAssignableFrom(LinkedHashSet.class)) {\n return new LinkedHashSet();\n } else {\n throw new ConfigMeMapperException(mappingContext, \"Unsupported collection type '\" + collectionType + \"'\");\n }\n }",
"public long createCollection(String name)\n {\n SQLiteDatabase db = this.dbHelper.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(CollectionContract.CollectionEntry.COLUMN_NAME_COLLECTION_NAME, name);\n return db.insert(CollectionContract.CollectionEntry.TABLE_NAME,null, values);\n }",
"ListValue createListValue();",
"public void testGetValue() {\n TaskSeriesCollection c = createCollection1();\n }",
"CollectionResource createCollectionResource();",
"public SitbMoneyCollection create(long money_collection_id);",
"private void setCollection(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n collection_ = value;\n }",
"public Builder setCollection(\n java.lang.String value) {\n copyOnWrite();\n instance.setCollection(value);\n return this;\n }",
"public void simpleAddToCollectionChangeRecord(Object referenceKey, Object changeSetToAdd, ObjectChangeSet changeSet, AbstractSession session) {\n AggregateCollectionChangeRecord collectionChangeRecord = (AggregateCollectionChangeRecord)changeSet.getChangesForAttributeNamed(this.getAttributeName());\n if (collectionChangeRecord == null) {\n //if there is no change for this attribute then create a changeSet for it. no need to modify the resulting\n // change record as it should be built from the clone which has the changes allready\n Object cloneObject = ((UnitOfWorkChangeSet)changeSet.getUOWChangeSet()).getUOWCloneForObjectChangeSet(changeSet);\n Object cloneCollection = this.getRealAttributeValueFromObject(cloneObject, session);\n collectionChangeRecord = (AggregateCollectionChangeRecord)convertToChangeRecord(cloneCollection, changeSet, session);\n changeSet.addChange(collectionChangeRecord);\n } else {\n collectionChangeRecord.getChangedValues().add(changeSetToAdd);\n }\n }",
"void addCollectionName(Object newCollectionName);",
"public void updateAttributeAddObjectToCollection(String attributeName, Object mapKey, Object value) {\n DatabaseMapping mapping = this.query.getDescriptor().getMappingForAttributeName(attributeName);\n if (mapping == null) {\n throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor());\n }\n\n Object clone = this.getObject();\n Object cloneValue = value;\n Object original = null;\n\n //only set the original object if we need to update it, ie before the merge takes place\n if ((this.eventCode == DescriptorEventManager.PostCloneEvent) || (this.eventCode == DescriptorEventManager.PostMergeEvent)) {\n original = this.getOriginalObject();\n }\n Object originalValue = value;\n ObjectChangeSet eventChangeSet = this.getChangeSet();\n Object valueForChangeSet = value;\n\n if ((this.query != null) && this.query.isObjectLevelModifyQuery()) {\n clone = ((ObjectLevelModifyQuery)this.query).getObject();\n eventChangeSet = ((ObjectLevelModifyQuery)this.query).getObjectChangeSet();\n }\n ClassDescriptor descriptor = getSession().getDescriptor(value.getClass());\n\n if (descriptor != null) {\n //There is a descriptor for the value being passed in so we must be carefull\n // to convert the value before assigning it.\n if (eventChangeSet != null) {\n valueForChangeSet = descriptor.getObjectBuilder().createObjectChangeSet(value, (UnitOfWorkChangeSet)eventChangeSet.getUOWChangeSet(), getSession());\n }\n if (original != null) {\n // must be a unitOfWork because only the postMerge, and postClone events set this attribute\n originalValue = ((UnitOfWorkImpl)getSession()).getOriginalVersionOfObject(value);\n }\n }\n\n if (clone != null) {\n Object collection = mapping.getRealCollectionAttributeValueFromObject(clone, getSession());\n mapping.getContainerPolicy().addInto(mapKey, cloneValue, collection, getSession());\n }\n if (original != null) {\n Object collection = mapping.getRealCollectionAttributeValueFromObject(original, getSession());\n mapping.getContainerPolicy().addInto(mapKey, originalValue, collection, getSession());\n }\n if (getRecord() != null) {\n AbstractRecord tempRow = getDescriptor().getObjectBuilder().createRecord();\n\n // pass in temp Row because most mappings use row.add() not row.put() for\n // perf reasons. We are using writeFromObjectIntoRow in order to support\n // a large number of types.\n mapping.writeFromObjectIntoRow(clone, tempRow, getSession());\n ((AbstractRecord)getRecord()).mergeFrom(tempRow);\n }\n if (eventChangeSet != null) {\n mapping.simpleAddToCollectionChangeRecord(mapKey, valueForChangeSet, eventChangeSet, getSession());\n }\n }",
"Collection<?> create(int initialCapacity);",
"private void setCollectionBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n collection_ = value.toStringUtf8();\n }",
"public Resource addToCollection(Resource collection, Resource entity) {\n Property hadMember = model.createProperty(\n ProvOntology.getHadMemberExpandedPropertyFullURI());\n model.createStatement(collection, hadMember, entity);\n return collection;\n }",
"Values createValues();",
"private CollectionTypes(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}",
"CollectionLiteralExp createCollectionLiteralExp();",
"public Collection() {\n this.collection = new ArrayList<>();\n }",
"public Collection<V> put(K key, V value) {\r\n\r\n \tCollection<V> values = map.get(key);\r\n\r\n if (values == null) {\r\n \tvalues = newCollection();\r\n \tvalues.add(value);\r\n map.put(key, values);\r\n }\r\n else {\r\n \tvalues.add(value);\r\n }\r\n\r\n return values;\r\n }",
"PropertyArray put(Object value) {\n PropertyObject.testValidity(value);\n this.myArrayList.add(value);\n return this;\n }",
"private CollectionType() {}",
"<C> CollectionLiteralExp<C> createCollectionLiteralExp();",
"ArrayValue createArrayValue();",
"private PropertyCollection createCollectionProperty(final String descr, final String sep, final String esc) {\n\t\tXmlNode propertyNode = XmlNode.getDocumentTopLevel(new ByteArrayInputStream(descr.getBytes()));\n\t\tTypePropertyCollection type = new TypePropertyCollection(new XmlNode[] { propertyNode }, null, \"Collection\",\n\t\t\t\tsep, esc);\n\t\treturn new PropertyCollection(type, null);\n\t}",
"protected Collection getNewBucket()\n {\n return new ArrayList();\n }",
"public static <\n K,\n V> void addToCollectionMap(K key, V valueToAdd, Map<K, Collection<V>> map) {\n if (key != null && valueToAdd != null && map != null) {\n map.computeIfAbsent(key, Suppliers.asFunction(ArrayList::new)).add(valueToAdd);\n }\n }",
"Collect getColl();",
"private void createCollection(String commonLocation) throws RegistryException {\n\t\tRegistry systemRegistry = CommonUtil.getUnchrootedSystemRegistry(requestContext);\n\t\t//Creating a collection if not exists.\n\t\tif (!systemRegistry.resourceExists(commonLocation)) {\n\t\t\tsystemRegistry.put(commonLocation, systemRegistry.newCollection());\n\t\t}\n\t}",
"public CollectionLikeType withValueHandler(Object h)\n/* */ {\n/* 125 */ return new CollectionLikeType(this._class, this._bindings, this._superClass, this._superInterfaces, this._elementType, h, this._typeHandler, this._asStatic);\n/* */ }",
"void setLibroCollection1(Collection<Libro> libroCollection1);",
"public interface CollectionCreator {\n\n /**\n * Creates a new collection instance to be populated by the binder.\n * \n * @param initialCapacity\n * The number of elements that will be added to the collection. To be\n * used with collections that can benefit from this information.\n * @return the newly created empty collection instance.\n */\n Collection<?> create(int initialCapacity);\n\n}",
"public CollectionResource createCollection(String arg0)\n\t\t\tthrows NotAuthorizedException, ConflictException {\n\t\treturn null;\n\t}",
"public void createValue() {\r\n value = new com.timeinc.tcs.epay2.EPay2DTO();\r\n }",
"@Test\n public void initializeFromAnotherCollectionWhenCreating() {\n List<Integer> lst1 = new ArrayList<>(List.of(3, 1, 2));\n assertThat(lst1).hasSize(3);\n\n // create and initialize an ArrayList from Arrays.asList\n List<Integer> lst2 = new ArrayList<>(Arrays.asList(3, 1, 2));\n assertThat(lst2).hasSize(3);\n\n // create and initialize an ArrayList from Java 9+ Set.of\n List<Integer> lst3 = new ArrayList<>(Set.of(5, 4, 6));\n assertThat(lst3).hasSize(3);\n\n // create and initialize from an existing collection\n List<Integer> lst4 = new ArrayList<>(lst3);\n assertThat(lst4).hasSize(3);\n }",
"protected void addChild(DataNode value) {\n m_values.add(value);\n if (isCollection()) {\n \n // make this a complex collection if the added child is something more than a simple value\n if (value.getSchemaComponent() != getSchemaComponent() &&\n value.isInterior() || value.isCollection()) {\n m_complexCollection = true;\n }\n }\n }",
"CollectionRange createCollectionRange();",
"public Builder setCollectionBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setCollectionBytes(value);\n return this;\n }",
"protected abstract Set<String> _addToSet(String key, Collection<String> str);",
"private Object newNamedInstanceForCollection(String collectionPropertyName, Object hostingBean, String name) {\n\n StringBuilder addPropertyNameBuilder = new StringBuilder(\"add\");\n // expect an add... without the plural for named accessors\n if (collectionPropertyName != null && collectionPropertyName.length() > 0) {\n addPropertyNameBuilder.append(Character.toUpperCase(collectionPropertyName.charAt(0)));\n addPropertyNameBuilder.append(collectionPropertyName, 1, collectionPropertyName.length() - 1);\n }\n\n // we don't know the type, infer from add method add(X x) or add(String key, X x)\n final String addPropertyName = addPropertyNameBuilder.toString();\n final Method[] methods = hostingBean.getClass().getMethods();\n final Method candidate = Arrays.stream(methods).filter(method -> method.getName().equals(addPropertyName) &&\n ((method.getParameterCount() == 1) || (method.getParameterCount() == 2\n // has a String key\n && String.class.equals(method.getParameterTypes()[0])\n // but not initialised from a String form (eg: uri)\n && !String.class.equals(method.getParameterTypes()[1]))))\n .sorted((method1, method2) -> method2.getParameterCount() - method1.getParameterCount()).findFirst().orElse(null);\n\n if (candidate == null) {\n throw new IllegalArgumentException(\"failed to locate add method for collection property \" + addPropertyName);\n }\n\n // create one and initialise with name\n try {\n Object instance = candidate.getParameterTypes()[candidate.getParameterCount() - 1].getDeclaredConstructor().newInstance();\n\n try {\n beanUtilsBean.setProperty(instance, \"name\", name);\n } catch (Throwable ignored) {\n // for maps a name attribute is not mandatory\n }\n\n // this is always going to be a little hacky b/c our config is not natively property friendly\n if (instance instanceof TransportConfiguration) {\n beanUtilsBean.setProperty(instance, \"factoryClassName\", \"invm\".equals(name) ? InVMConnectorFactory.class.getName() : NettyConnectorFactory.class.getName());\n }\n return instance;\n\n } catch (Exception e) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"Failed to add entry for {} with method: {}\", name, candidate, e);\n }\n throw new IllegalArgumentException(\"failed to add entry for collection key \" + name, e);\n }\n }",
"QueryElement addOrEmpty(String collectionProperty);",
"String getCollection();",
"public com.msbinfo.expresslync.rct.ArrayOfValuationAggregate1 addNewArrayOfValuationAggregate1()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.msbinfo.expresslync.rct.ArrayOfValuationAggregate1 target = null;\r\n target = (com.msbinfo.expresslync.rct.ArrayOfValuationAggregate1)get_store().add_element_user(ARRAYOFVALUATIONAGGREGATE1$0);\r\n return target;\r\n }\r\n }",
"@Override\n public DietCollection digestion() {\n return new DietCollection();\n }",
"public void setTodo(java.util.Collection aTodo);",
"public Collection()\n {\n // initialisation des variables d'instance\n documents = new ArrayList<>();\n }",
"@Override\n public void collect(T elem) {\n value = elem;\n }",
"int insert(Collect record);",
"public void init(String collectionName) {\n\r\n }",
"public CollectionDataStore(FeatureCollection<SimpleFeatureType,SimpleFeature> collection) {\n this.collection = collection;\n if (collection.size() == 0) {\n this.featureType = FeatureTypes.EMPTY;\n } else {\n this.featureType = collection.getSchema();\n }\n }",
"public void setCreatedCollectives(ArrayList<Collective> createdCollectives) { this.createdCollectives = createdCollectives; }",
"private TaskSeriesCollection createCollection1() {\n TaskSeriesCollection result = new TaskSeriesCollection();\n TaskSeries s1 = new TaskSeries(\"S1\");\n s1.add(new Task(\"Task 1\", new Date(1), new Date(2)));\n s1.add(new Task(\"Task 2\", new Date(3), new Date(4)));\n result.add(s1);\n TaskSeries s2 = new TaskSeries(\"S2\");\n s2.add(new Task(\"Task 3\", new Date(5), new Date(6)));\n result.add(s2);\n return result;\n }",
"java.lang.String getCollection();",
"private static <T> T identity(Collection<T> collection) {\n return identity(collection.iterator());\n }",
"protected SimpleTypeImpl getSimpleCollection() {\n // Single property collection retrieve\n SimpleTypeImpl simpleCollectionString = new SimpleTypeImpl(\"simpleNameSpace\", SIMPLE_TYPE_NAME, null, true, null, null, null);\n return simpleCollectionString;\n }",
"public Resource createCollection(String uri, String label) {\n Resource collection = createStatement(uri, ProvOntology.getRDFTypeFullURI(),\n ProvOntology.getCollectionExpandedClassFullURI());\n labelResource(collection, label);\n return collection;\n }",
"protected abstract <T> Collection<T> createCollection(Class<T> clazz);",
"QueryElement addEmpty(String collectionProperty);",
"public void setCollection(ArrayList<Fonds> collection){\r\n this.collection = collection;\r\n }",
"public Collection() {\n }",
"public void set(R key, Collection<S> value){\n map.remove(key);\n map.put(key, Collections.synchronizedList(Sugar.listFromCollections(value)));\n }",
"private void disableCollection(IJavaObject value) {\n if (fPermStorage == null) {\n fPermStorage = new ArrayList<IJavaObject>(5);\n }\n try {\n value.disableCollection();\n fPermStorage.add(value);\n } catch (CoreException e) {\n JDIDebugPlugin.log(e);\n }\n }",
"@Test\n public void add() {\n\n collection.add(\"test\");\n assertEquals(collection.getLast(),\"test\");\n }",
"public static CollectionTypes get(int value) {\n\t\tswitch (value) {\n\t\t\tcase SET_VALUE: return SET;\n\t\t\tcase BAG_VALUE: return BAG;\n\t\t\tcase SEQUENCE_VALUE: return SEQUENCE;\n\t\t}\n\t\treturn null;\n\t}",
"static List<SubstantiveParametersParameterItem> createSubstantiveParametersParameterItem(List<String> collectionOfItems) {\n List<SubstantiveParametersParameterItem> substantiveParametersParameterItemList = new ArrayList<>();\n for (String item: collectionOfItems) {\n substantiveParametersParameterItemList.add(new SubstantiveParametersParameterItem(item));\n }\n return substantiveParametersParameterItemList;\n }",
"public abstract ImmutableCollection<V> A2u(K k);",
"int insertSelective(Collect record);",
"public static void add(Collection collection) {\n\t\t\n\t}",
"public V addElement(T t) {\n\t\tif(multiSet.containsKey(t)){\n\t\t\tNumber newValue = ((Integer)multiSet.get(t)) + 1;\n\t\t\tmultiSet.replace(t,(V)newValue);\n\t\t\treturn (V)newValue;\n\t\t}\n\t\tNumber firstValue = 1;\n\t\tmultiSet.put(t,(V)firstValue);\n\t\treturn (V)firstValue;\n\t}",
"public void setLBR_Collection_Default_ID (int LBR_Collection_Default_ID);",
"@Test\n public void testSet() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n Integer expResult = 7;\n Integer result = instance.set(2, 9);\n assertEquals(expResult, result);\n\n }",
"protected <V> List<V> newObject(Collection<V> initialValues) {\n return new ArrayList<>(initialValues);\n }",
"@Override\n\tpublic WriteResult insertNewDocCollection(List<Object> lista) {\n\t\treturn null;\n\t}",
"<C> CollectionRange<C> createCollectionRange();",
"public void setLBR_Collection_Default_UU (String LBR_Collection_Default_UU);",
"@Override\r\n\tpublic Integer insert(Wt_collection record) {\n\t\treturn 0;\r\n\t}",
"public void add(Object value) {\n\n\t}",
"public RandomizedCollection() {\n map = new HashMap<>();\n arr = new ArrayList<>();\n }",
"ArrayProxyValue createArrayProxyValue();",
"private void addCollectionType(Class type, Class superType)\r\n\t{\r\n\t\tVector v;\r\n\t\tif(!collectionTypes.containsKey(type))\r\n\t\t{\r\n\t\t\tv = new Vector();\r\n\t\t\tv.add(superType);\r\n\t\t\tcollectionTypes.put(type, v);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tv = (Vector) collectionTypes.get(type);\r\n\t\t\tif(! v.contains(superType))\r\n\t\t\t\tv.add(superType);\r\n\t\t}\r\n\t}",
"QueryElement addOrNotEmpty(String collectionProperty);",
"public static Collection add() {\n\t\tString firstName, lastName, address, city, state, phoneNo, email; // Attributes to be added\n\t\tlong zipCode;\n\n\t\t// asking user input\n\t\tSystem.out.println(\"Please enter details to be added.\");\n\t\tSystem.out.print(\"First Name: \");\n\t\tfirstName = sc.next();\n\t\tSystem.out.print(\"Last Name: \");\n\t\tlastName = sc.next();\n\n\t\t// Checking for duplicates\n\t\tif (record.stream().anyMatch(obj -> obj.firstName.equals(firstName))\n\t\t\t\t&& record.stream().anyMatch(obj -> obj.lastName.equals(lastName))) {\n\t\t\tSystem.out.println(\"This contact already existes. Resetting\");\n\t\t\tadd();\n\t\t\treturn null;\n\t\t}\n\n\t\tSystem.out.print(\"Address: \");\n\t\taddress = sc.next();\n\t\tSystem.out.print(\"City: \");\n\t\tcity = sc.next();\n\t\tSystem.out.print(\"State: \");\n\t\tstate = sc.next();\n\t\tSystem.out.print(\"ZipCode: \");\n\t\tzipCode = sc.nextLong();\n\t\tSystem.out.print(\"Phone No.: \");\n\t\tphoneNo = sc.next();\n\t\tSystem.out.print(\"Email: \");\n\t\temail = sc.next();\n\n\t\t// saving as new entry\n\t\tCollection entry = new Collection(firstName, lastName, address, city, state, zipCode, phoneNo, email);\n\t\tperson_cityMap.put(city, entry);\n\t\tperson_cityMap.put(state, entry);\n\t\treturn entry; // returning entry to main\n\t}",
"@Test\n public void addFirst() {\n\n collection.addFirst(0000);\n collection.addFirst(0001);\n assertEquals(collection.getFirst(),0001);\n }",
"protected abstract T _createWithSingleElement(DeserializationContext ctxt, Object value);",
"static <T> C11725h<Collection<T>> m37693a(Type type, C11760v vVar) {\n return new C11721b(vVar.mo29867a(C11780y.m37896a(type, Collection.class)));\n }",
"public void createCol(String col_name) {\n\t\tif(db.getCollection(col_name) == null)\n\t\t\tdb.createCollection(col_name, null);\n\t}",
"public Return insertCollectionCreator(Parameter _parameter) {\n\n Instance instance = (Instance) _parameter.get(ParameterValues.INSTANCE);\n String abstractlink = ((Long) instance.getId()).toString();\n\n String accessSet =\n (String) ((Map) _parameter.get(ParameterValues.PROPERTIES))\n .get(\"AccessSet\");\n\n try {\n\n Insert insert;\n insert = new Insert(\"TeamWork_Member\");\n insert.add(\"AbstractLink\", abstractlink);\n insert.add(\"AccessSetLink\", getAccessSetID(accessSet));\n insert.add(\"UserAbstractLink\", ((Long) Context.getThreadContext()\n .getPerson().getId()).toString());\n insert.execute();\n\n } catch (EFapsException e) {\n\n LOG.error(\"insertCollectionCreator(Map<TriggerKeys4Values,Object>)\", e);\n }\n return null;\n\n }",
"public static ComicCollectionEntity create(String name, int id, Date dateCreated) {\n return new ComicCollectionEntity(name, id, dateCreated);\n }",
"public void addKeyedCollection(KeyedCollection kColl) throws InvalidArgumentException, DuplicatedDataNameException\r\n\t{\n\t\taddDataElement(kColl);\r\n\r\n\t}",
"PropertyArray(Collection<?> collection) {\n if (collection == null) {\n this.myArrayList = new ArrayList<>();\n } else {\n this.myArrayList = new ArrayList<>(collection.size());\n for (Object o : collection) {\n this.myArrayList.add(PropertyObject.wrap(o));\n }\n }\n }",
"public ArrayList<Collective> getCreatedCollectives() { return this.createdCollectives;}"
] | [
"0.70509213",
"0.66064197",
"0.6580178",
"0.63278085",
"0.6142232",
"0.6053858",
"0.60056794",
"0.5953073",
"0.5928205",
"0.5919749",
"0.587059",
"0.5799771",
"0.57562464",
"0.57166445",
"0.56902397",
"0.5690011",
"0.56839997",
"0.5683702",
"0.5666643",
"0.5644354",
"0.56239617",
"0.55937284",
"0.5577894",
"0.55721533",
"0.5547164",
"0.5525436",
"0.54770494",
"0.5469194",
"0.54653347",
"0.5464708",
"0.543792",
"0.5431268",
"0.54238224",
"0.5422046",
"0.542049",
"0.5344148",
"0.5327264",
"0.5322146",
"0.53073305",
"0.53036726",
"0.5300089",
"0.52710444",
"0.5267513",
"0.5254749",
"0.5241994",
"0.52414",
"0.52393717",
"0.521787",
"0.52105415",
"0.5181634",
"0.5174682",
"0.51717174",
"0.516721",
"0.5141683",
"0.51412535",
"0.51372445",
"0.51363534",
"0.5129361",
"0.5113356",
"0.51122814",
"0.5107626",
"0.5102131",
"0.5090059",
"0.5071523",
"0.50706196",
"0.506659",
"0.506334",
"0.50569683",
"0.5056803",
"0.50566036",
"0.50381064",
"0.50304383",
"0.502545",
"0.5012828",
"0.5003453",
"0.50010663",
"0.49970385",
"0.49914935",
"0.49779046",
"0.49708003",
"0.4966963",
"0.4964798",
"0.49467647",
"0.4938699",
"0.49301726",
"0.49295533",
"0.49267268",
"0.49262372",
"0.49197975",
"0.4915993",
"0.49104267",
"0.4908077",
"0.4903702",
"0.4902921",
"0.48950413",
"0.48942903",
"0.48885843",
"0.48863277",
"0.4886128",
"0.48779616",
"0.4874134"
] | 0.0 | -1 |
Get the element type | public String getElementType()
{
return elementType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TypeElement getTypeElement();",
"public String getElementType() {\n\t\treturn (element_type);\n\t}",
"ElementType getElementType();",
"Type getElementType();",
"public TypeElement getTypeElement() {\n return this.te;\n }",
"public Class getType(ElementList element) {\r\n return element.type();\r\n }",
"MediaPackageElement.Type getElementType();",
"public Class getType(ElementMap element) {\r\n return element.valueType();\r\n }",
"public final solarpowerconversioncalculator.proxies.ElementType getElementType()\n\t{\n\t\treturn getElementType(getContext());\n\t}",
"public String getType()\n\t\t{\n\t\t\tElement typeElement = XMLUtils.findChild(mediaElement, TYPE_ELEMENT_NAME);\n\t\t\treturn typeElement == null ? null : typeElement.getTextContent();\n\t\t}",
"String getModeledType(Object elementID) throws Exception;",
"public Integer getType()\r\n\t\t{ return element instanceof Schema ? SCHEMA : element instanceof Alias ? ALIAS : ELEMENT; }",
"public StringDt getTypeElement() { \n\t\tif (myType == null) {\n\t\t\tmyType = new StringDt();\n\t\t}\n\t\treturn myType;\n\t}",
"public Class getType();",
"QName getType();",
"Element getGenericElement();",
"public Type getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"public String getElementClass ();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"public Class getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"public Class getType(Element element) {\r\n Class type = element.type();\r\n \r\n if(type == void.class) {\r\n return contact.getType();\r\n }\r\n return type;\r\n }",
"public Class getElementClass() {\n return String.class;\n }",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"type getType();",
"public QName getElementType() {\n return fieldElementType;\n }",
"public QName getElementType() {\n\t\treturn mFieldElementType;\n\t}",
"public String obtenirType() {\n\t\treturn this.type;\n\t}",
"public String type();",
"public String getElementType()\n {\n return MENU_ELEMENT_TYPE;\n }",
"public TypeElement<?> getTypeElement(int I) {\n\t\t\tif(this.TypeElementKeys == null)\n\t\t\t\tthis.TypeElementKeys = this.TypeElements.keySet().toArray(new Object[this.TypeElements.size()]);\n\t\t\treturn ((I < 0) || (I >= this.TypeElements.size()))?null:this.TypeElements.get(this.TypeElementKeys[I]);\n\t\t}",
"public String getType()\n\t{\n\t\t// The enumerated type's name satisfies all the type criteria, so use\n\t\t// it.\n\t\treturn name();\n\t}",
"XClass getType();",
"public int getType();",
"public int getType();",
"public int getType();",
"public int getType();",
"public int getType();",
"int getType();",
"int getType();",
"int getType();"
] | [
"0.8668463",
"0.83262014",
"0.81759083",
"0.8125392",
"0.78262824",
"0.76541674",
"0.7593652",
"0.7325844",
"0.72412825",
"0.723121",
"0.7115017",
"0.70720375",
"0.70713043",
"0.7037132",
"0.703177",
"0.7024206",
"0.6979006",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6962662",
"0.6932319",
"0.6915175",
"0.6915175",
"0.6915175",
"0.6915175",
"0.6915175",
"0.6915175",
"0.6915175",
"0.6915175",
"0.6915175",
"0.6915175",
"0.6915175",
"0.6915175",
"0.6915175",
"0.6907408",
"0.689984",
"0.689984",
"0.689984",
"0.689984",
"0.689984",
"0.689984",
"0.689984",
"0.689984",
"0.689984",
"0.689984",
"0.689984",
"0.6893185",
"0.6889741",
"0.6877562",
"0.6877562",
"0.6877562",
"0.6877562",
"0.6877562",
"0.6877562",
"0.6877562",
"0.6877562",
"0.6877562",
"0.6877562",
"0.6877562",
"0.6877562",
"0.6877562",
"0.68584013",
"0.67603415",
"0.67375153",
"0.67355347",
"0.6734802",
"0.6724414",
"0.6707858",
"0.66928756",
"0.66775995",
"0.667502",
"0.667502",
"0.667502",
"0.667502",
"0.667502",
"0.66637504",
"0.66637504",
"0.66637504"
] | 0.7198435 | 10 |
Set the element type | @XmlAttribute(name="elementClass")
public void setElementType(String elementType)
{
this.elementType = elementType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setElementType(String element_type) {\n\t\tthis.element_type = element_type;\n\t}",
"public final void setElementType(solarpowerconversioncalculator.proxies.ElementType elementtype)\n\t{\n\t\tsetElementType(getContext(), elementtype);\n\t}",
"public final void setElementType(com.mendix.systemwideinterfaces.core.IContext context, solarpowerconversioncalculator.proxies.ElementType elementtype)\n\t{\n\t\tif (elementtype != null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.ElementType.toString(), elementtype.toString());\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.ElementType.toString(), null);\n\t}",
"public void setType (String type) { n.setAttribute(ATTNAMECOMMONPREFIX + ATTNAMESUFFIX_TYPE , type); }",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"void setType(java.lang.String type);",
"public void setType(String type)\n\t\t{\n\t\t\tElement typeElement = XMLUtils.findChild(mediaElement, TYPE_ELEMENT_NAME);\n\t\t\tif (type == null || type.equals(\"\")) {\n\t\t\t\tif (typeElement != null)\n\t\t\t\t\tmediaElement.removeChild(typeElement);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (typeElement == null) {\n\t\t\t\t\ttypeElement = document.createElement(TYPE_ELEMENT_NAME);\n\t\t\t\t\tmediaElement.appendChild(typeElement);\n\t\t\t\t}\n\t\t\t\ttypeElement.setTextContent(type);\n\t\t\t}\n\t\t}",
"public final native void setType(String type) /*-{\n this.setType(type);\n }-*/;",
"void xsetType(org.apache.xmlbeans.XmlString type);",
"@Override\n\tpublic void setType(String type) {\n\t}",
"public void setElement(T elem)\n {\n\n element = elem;\n }",
"public void set_type(String t)\n {\n type =t;\n }",
"public void setElement (T element) {\r\n\t\t\r\n\t\tthis.element = element;\r\n\t\r\n\t}",
"public void setType(Type t) {\n type = t;\n }",
"final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }",
"public void setElement(T element) {\n\t\tthis.element = element;\n\t}",
"ElementSetNameType createElementSetNameType();",
"public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }",
"public void setElement(T newvalue);",
"public void setType (String typ) {\n type = typ;\n }",
"void setType(Type type)\n {\n this.type = type;\n }",
"void setType(String type) {\n this.type = type;\n }",
"public void setType(String t) {\n\ttype = t;\n }",
"public void setType(Type t) {\n\t\ttype = t;\n\t}",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type){\n \tthis.type = type;\n }",
"public final void setType(String type){\n\t\tthis.type = type;\t\n\t}",
"public void setType(String inType)\n {\n\ttype = inType;\n }",
"public void setType(String type) \n {\n this.type = type;\n }",
"void setDataType(int type );",
"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}",
"private void setType(String type) {\n mType = type;\n }",
"public void setType(String type){\n this.type = type;\n }",
"public void setType( String type )\n {\n this.type = type;\n }",
"public void setElement(Object e) {\n element = e;\n }",
"public void setType(String name){\n\t\ttype = name;\n\t}",
"public void setType(String type){\r\n if(type == null){\r\n throw new IllegalArgumentException(\"Type can not be null\");\r\n }\r\n this.type = type;\r\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType( Type type ) {\n assert type != null;\n this.type = type;\n }",
"@Override\n public void setType(String type) {\n this.type = type;\n }",
"public void setType(String newValue);",
"public void setType(String newValue);",
"public abstract void setType();",
"public void setType(String value) {\n this.type = value;\n }",
"public void setType(Type type){\n\t\tthis.type = type;\n\t}",
"TypeElement getTypeElement();",
"public void setType(int type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$2);\n }\n target.setIntValue(type);\n }\n }",
"public static void setType(String type) {\n Globals.type = type;\n setProperty(\"type\", type);\n }",
"public void setType(String newtype)\n {\n type = newtype;\n }",
"public void setType( String type ) {\n this.type = type;\n }",
"public void setElementType(final GraphElementType elementType);",
"public void setType(String t) {\n\t\tthis.type = t;\n\t}",
"public void setType(String aType) {\n iType = aType;\n }",
"public void setType(int atype)\n {\n type = atype;\n }",
"public void settInn(T element);",
"@JSProperty(\"type\")\n void setType(Type value);",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(java.lang.String newType) {\n\ttype = newType;\n}",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(int type) {\n type_ = type;\n }",
"public void setType(String type) {\n m_Type = type;\n }",
"public void setElementType(QName elementType) {\n this.fieldElementType = elementType;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) throws JAXRException{\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void xsetType(org.apache.xmlbeans.XmlInt type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(TYPE$2);\n }\n target.set(type);\n }\n }",
"public void setType( int type ) {\r\n typ = type;\r\n }",
"public void setType(String type){\n\t\tthis.type = type;\n\t}",
"@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}",
"public final void setType(String type) {\n this.type = type;\n }",
"public void setType(Class type) {\n\t this.type = type;\n\t }",
"public void setType(String val) {\n type = val;\n }",
"public void setElementClass (String elementClass) throws ModelException;",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }"
] | [
"0.8078184",
"0.7673909",
"0.73294044",
"0.7273801",
"0.6969495",
"0.6969495",
"0.6969495",
"0.695037",
"0.67810184",
"0.67404276",
"0.6719028",
"0.67055917",
"0.66913617",
"0.66814864",
"0.66776514",
"0.6642004",
"0.6629654",
"0.66251594",
"0.66108185",
"0.6598584",
"0.6584442",
"0.6556734",
"0.6553983",
"0.6530176",
"0.6520313",
"0.65034276",
"0.64979124",
"0.6484175",
"0.64759153",
"0.6470527",
"0.64513135",
"0.64369255",
"0.6407872",
"0.6402813",
"0.64010376",
"0.6380329",
"0.63753265",
"0.6361353",
"0.6361341",
"0.6357404",
"0.6357404",
"0.6357404",
"0.63532853",
"0.63516045",
"0.63514245",
"0.6348186",
"0.6348186",
"0.63451135",
"0.6336771",
"0.63270956",
"0.6326869",
"0.63259757",
"0.6319518",
"0.63175094",
"0.631176",
"0.6308112",
"0.6305117",
"0.63013595",
"0.62982804",
"0.62982625",
"0.6296012",
"0.62950647",
"0.62950647",
"0.62950647",
"0.62950647",
"0.62921906",
"0.62921906",
"0.62875885",
"0.62841153",
"0.62841153",
"0.62841153",
"0.6275015",
"0.6270074",
"0.6269533",
"0.62582",
"0.6252798",
"0.62523526",
"0.62523526",
"0.6247735",
"0.6240723",
"0.62337315",
"0.62332535",
"0.6228234",
"0.62225425",
"0.6217685",
"0.621461",
"0.62141764",
"0.62141764",
"0.62141764",
"0.62141764",
"0.62141764",
"0.62141764",
"0.62141764",
"0.62141764",
"0.62141764",
"0.62141764",
"0.62141764",
"0.62141764",
"0.62141764",
"0.62141764"
] | 0.6625378 | 17 |
This method was generated by MyBatis Generator. This method corresponds to the database table girl_info | int deleteByPrimaryKey(Integer id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BaseTableInfo info() {\n return info;\n }",
"@Override\n public List<Information> findAllInfo() {\n return infoDao.findAll();\n }",
"GirlInfo selectByPrimaryKey(Integer id);",
"ResultSet getGeneralInfo() {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \t\tString query = \"SELECT ID, Name, Type1Name, Type2Name, Height, Weight, Hab, evolvesFrom \"\n \t\t\t\t+ \"FROM pokemon \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT TypeID AS T1, Name AS Type1Name FROM types) on type1 = t1 \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT TypeID AS T2, Name AS Type2Name FROM Types) ON type2 = t2 \"\n \t\t\t\t+ \"NATURAL JOIN (SELECT Name AS Hab, HabitatID FROM Habitats) \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT id as tempid, evolvesfrom from pokemon \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT evolvedid, name as evolvesfrom from pokemon, evolutions WHERE pokemon.id = babyid) on id = evolvedid) on id = tempid\";\n \t\t\n \t\treturn search.executeQuery(query);\n \t\t\n \t} catch (SQLException e) {\n \t\te.printStackTrace();\n \t\treturn null;\n \t}\n }",
"@Mapper\npublic interface WeChatInfoDao {\n\n\n /**\n * 插入微信信息\n * @param wechatInfo\n * @return\n */\n @Insert(\"INSERT INTO wechat_info(parentid,unionid,openid,nickname,sex,province,city,country,headImgUrl,\" +\n \"status,ticket_url,ticket,is_guide,reward) VALUES(#{parentid},#{unionid},#{openid},#{nickname},#{sex},#{province}\" +\n \",#{city},#{country},#{headImgUrl},#{status},#{ticketUrl},#{ticket},#{isGuide},#{reward})\")\n @Options(useGeneratedKeys=true, keyProperty=\"id\")\n int insert(WeChatInfoEntity wechatInfo);\n\n /**\n * 根据openID 查找用户信息\n * @param openid\n * @return\n */\n @Select(\"SELECT * FROM wechat_info WHERE openid = #{openid}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"nickname\", property = \"nickname\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity findByOpenID(@Param(\"openid\") String openid);\n\n /**\n * 根据openID 修改二维码信息\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET ticket_url=#{ticketUrl},ticket=#{ticket} WHERE openid=#{openid}\")\n void updateTicketUrlByOpenID(WeChatInfoEntity wechatInfo);\n\n /**\n * 取消关注\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET status=1 WHERE openid=#{openid}\")\n void updateStatusByOpenID(WeChatInfoEntity wechatInfo);\n\n\n /**\n * 更改status 状态\n * @param wechatInfo\n */\n @SelectProvider(type=WeChatInfoSqlProvider.class, method=\"updateByOpenIdSql\")\n void updateStatus(@Param(\"wechatInfo\") WeChatInfoEntity wechatInfo);\n\n @Select(\"SELECT * FROM wechat_info WHERE id = #{ID}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity selectWecahtUserByID(@Param(\"ID\")String ID);\n}",
"public void setInfoTableName(String name)\n\t{\n\t\tm_infosTableName = name;\n\t}",
"organize_infoBean selectByPrimaryKey(Integer id);",
"@Override\n public String getName() {\n return columnInfo.getName();\n }",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"UserInfoDao getUserInfoDao();",
"@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();",
"public ResultSet selectInfoAuto() {\n\t\tPreparedStatement prst;\n\t\ttry {\n\t\t\tprst = connection.prepareStatement(DbManagerUtils.SELECT_INFO_AUTO);\n\n\t\t\treturn prst.executeQuery();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}",
"public String info() {\n\t\t\tString instrumentsString = \" \";\n\t\t\tfor(Instruments i : Instruments.values()){\n\t\t\t\tinstrumentsString +=i.toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn (\"База данных представляет из себя набор старцев(обьектов Olders),\" +\"\\n\"+\n \"каждый из которых имеет поля :\" +\"\\n\"+\n \"id(уникальный идентификатор)\" +\"\\n\"+\n \"name(имя старца)\" +\"\\n\"+\n \"userid(уникальный идентификатор пользователя, который является его владельцем)\" +\"\\n\"+\n \"dateofinit-дата инициализация старца\");\n\t\t}",
"@MyBatisDao\npublic interface UserProfileMapper {\n UserProfile selectByPrimaryKey(long id);\n\n UserProfile selectByUserId(long userId);\n\n UserProfile selectByEmail(String email);\n\n int deleteByPrimaryKey(long id);\n\n int insert(UserProfile userProfile);\n\n int update(UserProfile userProfile);\n\n int updateAvatar(UserProfile userProfile);\n}",
"public PassengerData getInfoColumnData() {\n PassengerData passenger = new PassengerData();\n passenger.setDepBaggage(new Baggage());\n passenger.setRetBaggage(new Baggage());//creating bean for filling data in\n String fullName = InfoColumnPage.getInstance().getPassengerFullName();\n parseAndFillPassengerName(passenger, fullName);\n Set<String> rawBookingData = InfoColumnPage.getInstance().getDepPassengerRawData();//getting raw data from page\n for (String s :\n rawBookingData) {\n parseAndFillPassenger(s, passenger, true); //true stands for departure\n }//parsing raw data and filling bean for departure\n rawBookingData = InfoColumnPage.getInstance().getRetPassengerRawData();\n for (String s :\n rawBookingData) {\n parseAndFillPassenger(s, passenger, false); //true stands for departure\n }//parsing raw data and filling bean for return\n fillNonMentionedWithDefaults(passenger);//filling non mentioned values in page with its default values\n\n return passenger;\n }",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);",
"@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}",
"public String getInfoPkid() {\n return infoPkid;\n }",
"public interface UserInfoDAO {\n void addUserInfo(int id, String name, String surname, int positionId, Date bday, String magazine, String photo);\n List<UserInfo> getTable();\n UserInfo getUserInfoById(int id);\n void updateUserInfo(String newName, String newSurname, Date bday, int newPositionId, String newMagazine, int id);\n List<UserInfo> getForHead(String magazine);\n List<UserInfo> getForJournalist(String magazine);\n List<UserInfo> getForOwner();\n void updateUserPhoto(String photo, int id);\n}",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public String getEmployeeInfo() throws SQLException {\n String SQL = String.format(\"SELECT * FROM %s\", DbSchema.table_employees.name);\n Statement statement = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n ResultSet results = statement.executeQuery(SQL);\n\n //Prepare format stuff\n String tableHeader = String.format(\"%s %s %s %s %s\\n\", table_employees.cols.id, table_employees.cols.first_name, table_employees.cols.last_name, table_employees.cols.age, table_employees.cols.salary);\n StringBuilder output = new StringBuilder(tableHeader);\n DecimalFormat format = new DecimalFormat(\"#,###.00\");\n\n while (results.next()) {\n //Iterate through each row (employee) and add each bit of info to table\n String row = String.format(\"%s %s %s %s %s\\n\",\n results.getInt(table_employees.cols.id),\n results.getString(table_employees.cols.first_name),\n results.getString(table_employees.cols.last_name),\n results.getInt(table_employees.cols.age),\n format.format(results.getDouble(table_employees.cols.salary)));\n output.append(row);\n }\n return output.toString();\n }",
"public void formDatabaseTable() {\n }",
"@SqlQuery(\"select * from PLAYERSTATS\")\n List<PlayerStats> getAll();",
"public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}",
"public String infoName();",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}",
"public interface RelationInfoDao extends BaseDao<RelationInfoDO> {\n\n HashMap<String,String> getDependents(String tableNames);\n\n List<HashMap<String,String>> getParentTable(String tableNames);\n\n List<HashMap<String,String>> getChlidTable(String s);\n}",
"@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}",
"@Override\n public String toString() {\n return String.format(\"[%d] [%d]\", dameFila(), dameColumna());\n }",
"public interface EmpDao {\n\n\n /**\n * 根据参数查询列表\n * @param map\n * @return\n */\n\n// select empno,ENAME,job,mgr,hiredate,sal,comm,deptno from emp\n @Select(\"<script>\" +\n \"select a.empno,a.ename,a.job,a.mgr,to_char(a.hiredate,'yyyy-mm-dd') hiredate,a.sal,a.comm,a.deptno,a.mgrname,a.dname,a.rn from \" +\n \"(select b.*,rownum rn from \" +\n \"(select e.*,d.dname from (select e1.*,e2.ename mgrname from emp e1 left join emp e2 on e1.mgr=e2.empno) e left join dept d on e.deptno=d.deptno \" +\n \"<where>\" +\n \"<if test='ename!=null'>and e.ename like '%'||#{ename}||'%' </if>\" +\n \"<if test='job!=null'>and e.job like '%'||#{job}||'%' </if>\" +\n \"</where>\" +\n \"order by empno desc) b where rownum < #{end}) a where a.rn > #{start}\" +\n \"</script>\")\n List<Map> getList(Map map);\n\n\n /**\n * 带条件查询总条数\n * @param map\n * @return\n */\n @Select(\"<script>\"+\n \"select count(*) from emp <where>\" +\n \"<if test='ename != null'> and ename like '%${ename}%'</if>\"+\n \"<if test='job != null'> and job like '%${job}%'</if>\"+\n \"</where></script>\")\n int getPageCount(Map map);\n /**\n * 添加\n * @param map\n * @return\n */\n// seq_emp_id.nextval,ename, job, hiredate, sal, comm,deptno\n @Insert(\"insert into emp values(seq_emp_id.nextval,#{ENAME},#{JOB},#{MGR},to_date(#{HIREDATE},'yyyy-mm-dd'),#{SAL},#{COMM},#{DEPTNO})\")\n int add(Map map);\n\n\n /**\n * 更新\n * @param map\n * @return\n */\n @Update(\"update emp set ename=#{ENAME},job=#{JOB},mgr=#{MGR},hiredate=to_date(#{HIREDATE},'yyyy-mm-dd'),sal=#{SAL},comm=#{COMM},deptno=#{DEPTNO} where empno=#{EMPNO}\")\n int update(Map map);\n\n /**\n * 删除\n * @param deptNo\n * @return\n */\n @Delete(\"delete from emp where empno=#{EMPNO}\")\n int delete(int deptNo);\n\n /**\n * 获取所有部门,用于页面数据绑定\n * @return\n */\n @Select(\"select deptno,dname from dept\")\n List<Map> getDeptType();\n\n /**\n * 获取所有职位,用于页面数据绑定\n * @return\n */\n @Select(\"select distinct(job) from emp\")\n List<Map> getJob();\n\n /**\n * 获取上司,用于页面数据绑定\n * @return\n */\n @Select(\"select empno,ename from emp where job='PRESIDENT' or job='MANAGER' or job='ANALYST'\")\n List<Map> getMgr();\n\n\n}",
"@Mapper\npublic interface UserInfoDao {\n\n void create(UserInfo userInfo);\n //正常注册用户查询\n UserInfo findByLoginName(@Param(\"loginName\") String loginName);\n //扒取用户信息查询\n UserInfo findByLoginNameCrawler(@Param(\"loginName\") String loginName);\n\n void updateState(UserInfo userInfo);\n\n void updateCreateTime(UserInfo userInfo);\n\n void changePassword(UserInfo userInfo);\n\n UserInfo findByUserId(@Param(\"userId\") String userId);\n\n UserInfo findByUserIdAll(@Param(\"userId\") String userId);\n\n int friend(@Param(\"userId\")String userId,@Param(\"friendId\") String friendId);\n\n List<UserInfo> findByUserName(@Param(\"userName\") String userName);\n\n List<String> allLoginNames();\n}",
"public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }",
"public interface GirlMapper extends JpaRepository<Girl,Integer>{\n\n}",
"public Impiegato getInfoImpiegato() throws SQLException,AziendaException,ParseException {\n\t\tUserQuery uq = ProxyDB.getIstance();\n\t\treturn uq.getInfoImpiegato(utente.getUsername());\n\t}",
"private String _columnInfo(int i, DBField f, boolean isDefined)\n {\n String ndx = StringTools.format(i,\"00\");\n String name = StringTools.leftAlign(f.getName(),22);\n String desc = isDefined? (\": \" + f.getTitle(null)) : \"\";\n String type = f.getSqlType();\n if (f.isPrimaryKey()) { type += \" key\"; }\n if (f.isAlternateKey()) { type += \" altkey\"; }\n if (f.isAutoIncrement()) { type += \" auto\"; }\n if (f.isUTF8()) { type += \" utf8\"; }\n type = StringTools.leftAlign(type, 32);\n return ndx + \") \" + name + \" \" + type + desc;\n }",
"@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }",
"public String getMapTableName() {\n return getTableName(false, false, false, true);\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}",
"public String getNomTable();",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"@Override\n protected Map<TableUniqueName, String> tableSubstitution() {\n return ImmutableMap.of();\n }",
"public String toString() {\n return new ToStringBuilder(this)\n .append(\"name\", this.name)\n .append(\"type\", this.type)\n .append(\"sqlTable\", this.sqlTable)\n .append(\"sqlColumn\", this.sqlColumn)\n .append(\"typeLinkId\", this.typeLinkId)\n .toString();\n }",
"@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();",
"@Override\n public String toString() {\n String output = \"User Info for: \" + getId();\n output += \"\\n\\tName: \" + getFirstName() + \" \" + getLastName();\n output += \"\\n\\tCreated on: \" + DF.format(getEnrolDate());\n output += \"\\n\\tLast access: \" + DF.format(getLastAccess());\n \n return output;\n }",
"public ResultSet getItemInfo() throws SQLException {\n\t\tConnection con = openDBConnection();\n\t\tStatement stmt = con.createStatement();\n\t\t/** Proceeds if user is logged in */\n\t\tString queryString = \"Select * From team1.GABES_ITEM i Where i.ITEM_ID='\"\n\t\t\t\t+ this.item_id + \"'\";\n\t\tResultSet result = stmt.executeQuery(queryString);\n\t\treturn result;\n\t}",
"public String getDbTable() {return dbTable;}",
"@Override\r\n\t\tpublic Alumni getAlumniDetails(String firstName) throws ClassNotFoundException, SQLException {\n\t\t\t\r\n\t\t\tConnection connection=ConnectionManager.openConnection();\r\n\t\t\tPreparedStatement statement=connection.prepareStatement(\"select * from alumni where first_name=?\");\r\n\t\t\tstatement.setString(1, firstName);\r\n\t\t\t\r\n\t\t\tResultSet resultSet=statement.executeQuery();\r\n\t\t\tAlumni alumni=new Alumni();\r\n\t\t\t\twhile(resultSet.next()) {\r\n\t\t\t\t\r\n\t\t\t\talumni.setAlumniId(resultSet.getInt(\"alumni_id\"));\r\n\t\t\t\talumni.setFirstName(resultSet.getString(\"first_name\"));\r\n\t\t\t\talumni.setLastName(resultSet.getString(\"last_name\"));\r\n\t\t\t\talumni.setEmailAddress(resultSet.getString(\"email\"));\r\n\t\t\t\talumni.setPhoneNumber(resultSet.getString(\"phone_number\"));\r\n\t\t alumni.setGender(resultSet.getString(\"gender\"));\r\n\t\t\t\talumni.setPresentStatus(resultSet.getString(\"present_status\"));\r\n\t\t\t\talumni.setYearOfCompletition(resultSet.getInt(\"year_of_completition\"));\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tConnectionManager.closeConnection();\r\n\t\t\treturn alumni;\r\n\t\t}",
"private HashMap<Long, String> getTable() {\n return table;\n }",
"@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}",
"@Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number, id_firstcontact_doctor, password FROM patients;\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"password\", column = \"password\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n List<Patient> getAllPatientsDataToTable();",
"public int getSirinaTable() {\n\t\treturn this.sirinaTable;\n\t}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}",
"public void generateAttributes() throws SQLException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, InstantiationException{\n ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring.xml\");\n //Get the EmployeeDAO Bean\n BasicDataDAO dataDAO = null;\n BasicData newData = null;\n \n \n if (tableName.equals(\"test\")) {\n\t\t\tdataDAO = ctx.getBean(\"testDAO\", TestDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Test(0, 99, \"Hello\", \"sample\", new Date());\n\t\t}else if (tableName.equals(\"utilisateur\")) {\n\t\t\tdataDAO = ctx.getBean(\"utilisateurDAO\", UtilisateurDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Utilisateur(0, \"handa\", \"handa-upsud\", \"admin\", 30);\n\t\t}else if (tableName.equals(\"source\")) {\n\t\t\tdataDAO = ctx.getBean(\"sourceDAO\", SourceDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Source(0, \"http\", \"srouce1\", \"haut\", \"France\", \"vertical\", 10, \"test\");\n\t\t}else if (tableName.equals(\"theme\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeDAO\", ThemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Theme(0, \"testTheme\");\n\t\t}else if (tableName.equals(\"themeRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeRelationDAO\", ThemeRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new ThemeRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"version\")) {\n\t\t\tdataDAO = ctx.getBean(\"versionDAO\", VersionDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Version(0, 1, \"url_serveur\", \"version\", new Date());\n\t\t}else if (tableName.equals(\"abonnementRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"abonnementRelationDAO\", AbonnementRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AbonnementRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"alerteRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"alerteRelationDAO\", AlerteRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AlerteRelation(0, 1, 1, 15, new Date(), \"sujet\", \"type\", \"statut\", \"description\");\n\t\t}else if (tableName.equals(\"blacklistageSysteme\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageSystemeDAO\", BlacklistageSystemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageSysteme(0, 1);\n\t\t}else if (tableName.equals(\"blacklistageUtilisateurRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageUtilisateurRelationDAO\", BlacklistageUtilisateurRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageUtilisateurRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"demandeModifRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"demandeModifRelationDAO\", DemandeModifRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new DemandeModifRelation(0, 1, 1, new Date(), \"type\", \"statut\", \"description\");\n\t\t}\n \n \n this.insert = dataDAO.insert(newData);\n //selecById\n BasicData t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.selectById = t.toString();\n\t\t}else {\n\t\t\tthis.selectById = \"rien\";\n\t\t}\n //update\n this.update = dataDAO.update(t);\n t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.resultatUpdate = t.toString();\n\t\t}else {\n\t\t\tthis.resultatUpdate = \"rien\";\n\t\t}\n //selectAll\n ArrayList<? extends BasicData> alTest = dataDAO.selectAll();\n this.selectAll = alTest.size();\n if (alTest.size()==0) {\n \tthis.ligne1 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne1 = alTest.get(0).toString();\n\t\t}\n //selectWhere\n String condition = \"id > 1\";\n this.condition = condition;\n ArrayList<? extends BasicData> alTest1 = dataDAO.selectWhere(condition);\n this.selectWhere = alTest1.size();\n if (alTest1.size()==0) {\n \tthis.ligne11 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne11 = alTest1.get(0).toString();\n\t\t}\n //deleteById\n this.deleteById = 99;\n //this.deleteById = dataDAO.deleteById(insert);\n }",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"String getTableName();",
"private void statsTable() {\n try (Connection connection = hikari.getConnection()) {\n try (PreparedStatement statement = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS `\" + TABLE_STATS + \"` \" +\n \"(id INT NOT NULL AUTO_INCREMENT UNIQUE, \" +\n \"uuid varchar(255) PRIMARY KEY, \" +\n \"name varchar(255), \" +\n \"kitSelected varchar(255), \" +\n \"points INT, \" +\n \"kills INT, \" +\n \"deaths INT, \" +\n \"killstreaks INT, \" +\n \"currentKillStreak INT, \" +\n \"inGame BOOLEAN)\")) {\n statement.execute();\n statement.close();\n connection.close();\n }\n } catch (SQLException e) {\n LogHandler.getHandler().logException(\"TableCreator:statsTable\", e);\n }\n }",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}",
"@MyBatisRepository\npublic interface UserMybatisDao {\n int register(User user);\n\n int updateUser(User user);\n\n String checkPhone(String phone);\n\n int perfectUserInfo(Map params);\n\n User findByToken(String uid);\n\n int checkIsRegisteredByPhone(String phone);\n\n User findByUserId(Long userId);\n}",
"@Override\n\tpublic List<SupplierView> getAllSupplierInfo() {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type, s.permanent_address, s.temporary_address,h.quantity,h.supplier_unique_id ,h.cost,h.buy_date,h.username,i.product_id, i.product_name FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id INNER JOIN product i on h.product_product_id=i.product_id\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().query(sql,rowmapper);\n\t}",
"@Override\n\tprotected Mapping getMapping() {\n\t\treturn new Mapping()\n\t\t\t.add(\"firstname\", driver.getFirstName())\n\t\t\t.add(\"lastname\", driver.getLastName())\n\t\t\t.add(\"dateofbirth\", driver.getDateOfBirth())\n\t\t\t.add(\"gender\", driver.getGender())\n\t\t\t.add(\"age\", computeAge())\n\t\t\t.add(\"numberOfAccidents\", driver.getNumberOfAccidents())\n\t\t\t.add(\"numberOfTickets\", driver.getNumberOfTickets());\n\t}",
"@Override\n\tprotected DoublyIndexedTable<String, String> getTraitInformationTable() {\n\t\treturn xmlTraitInformation;\n\t}",
"@Override\n\tpublic List<Map<String, Object>> queryrecord(Employee bi, String name, String userinfoid, Integer start,\n\t\t\tInteger limit) {\n\t\tStringBuffer hql = new StringBuffer(\"select gb,ti,mi,u from Giftbox gb,ToysInfo ti,MachineInfo mi,UserInfo u where gb.fuserinfoid = u.id and gb.fmachineid = mi.id and gb.ftoysid = ti.id and gb.fuserinfoid = \")\n\t\t\t\t.append(Long.parseLong(userinfoid));\n\t\thql = hql.append(\" order by gb.createtime desc\");\n\t\tList<Object[]> lst = databaseHelper.getResultListByHql(hql.toString(),start,limit);\n\t\tList<Map<String,Object>> lstMap = new ArrayList<Map<String,Object>>();\n\t\t\n\t\tfor (Object[] objects : lst) {\n\t\t\tGiftbox g = (Giftbox)objects[0];\n\t\t\tToysInfo t =(ToysInfo) objects[1];\n\t\t\tMachineInfo m = (MachineInfo) objects[2];\n\t\t\tUserInfo u = (UserInfo) objects[3];\n\t\t\t\n\t\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\t\tmap.put(\"id\", g.getId());\n\t\t\tmap.put(\"username\", u.getUsername());\n\t\t\tmap.put(\"toyname\", t.getName());\n\t\t\tmap.put(\"machineno\", m.getMachineno());\n\t\t\tmap.put(\"photo\", g.getPhoto());\n\t\t\tmap.put(\"getphoto\", g.getGetphoto());\n\t\t\tmap.put(\"state\", g.getState()==-1?\"失效\":g.getState()==0?\"新获得\":g.getState()==1?\"配货中\":\"已发货\");\n\t\t\tmap.put(\"time\", u.getCreatetime().toString());\n\t\t\t\n\t\t\t\n\t\t\tlstMap.add(map);\n\t\t}\n\t\t\n\t\treturn lstMap;\n\t}",
"@Override\r\n\tpublic String generate() {\r\n\t\tStringBuilder query = new StringBuilder();\r\n\r\n\t\tquery.append(\"INSERT INTO \").append(tableName).append(\" (\");\r\n\t\tfor (int i = 0; i < fieldNames.size(); i++) {\r\n\t\t\tquery.append(fieldNames.get(i));\r\n\t\t\tif (i < fieldNames.size() - 1) {\r\n\t\t\t\tquery.append(\", \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tquery.append(\") VALUES (\");\r\n\t\tfor (int i = 0; i < fieldValues.size(); i++) {\r\n\t\t\tquery.append(\"'\").append(fieldValues.get(i)).append(\"'\");\r\n\t\t\tif (i < fieldValues.size() - 1) {\r\n\t\t\t\tquery.append(\", \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tquery.append(\");\");\r\n\t\treturn query.toString();\r\n\t}",
"public UserInfoEntity toUserInfoEntity(){\n UserInfoEntity userInfoEntity = new UserInfoEntity();\n userInfoEntity.setUserId(IdGen.getNewUserID());\n userInfoEntity.setCreateBy(name);\n userInfoEntity.setCreateOn(DateUtils.getDate());\n return toUserInfoEntity(userInfoEntity);\n }",
"public java.lang.String getInfoId() {\n return infoId;\n }",
"public interface NotationMapper {\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"<script>SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME FROM NOTATION \",\n \"<if test='type != \\\"\\\"'>WHERE TYPE = #{type}, </if>\",\n \"</script>\"})\n List<JSONObject> getNotationList(@Param(\"type\") String type);\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME \",\n \"FROM NOTATION WHERE LOCATE(#{title},TITLE) OR LOCATE(#{title},SUBTITLE)\"\n })\n List<JSONObject> fuzzyByTitle(@Param(\"title\")String title);\n\n @Insert({\"INSERT INTO NOTATION (TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME)\" +\n \"VALUES(#{title},#{subtitle},#{bio},#{notationUrl},#{bmgUrl},#{authorUrl},#{accTitle},#{accUrl},#{type},\" +\n \"#{resourceUrl},#{createTime})\"})\n void addNotation(JSONObject reqJson);\n}",
"public String toString()\n {\n return this.getUntranslatedTableName();\n }",
"public TableInfo getTableInfoParticipantVisit()\n {\n return getSchema().getTable(\"ParticipantVisit\");\n }",
"public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }",
"public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}",
"public String getName() { return _sqlName; }",
"@Override\n public String asTableDbName() {\n return \"user\";\n }",
"protected String getTableName()\n {\n return immutableGetTableName();\n }",
"public String toString() {\n return \"[JDBCRawSqlQueryMetaData : method=\" + method + \"]\";\n }",
"public interface WarningLogMapper {\n\n @Select(\"SELECT * \"\n + \" FROM warning_log \"\n + \"where devEUI = #{devEUI} and status=#{status} \")\n List<WarningLog> queryByDevAndStatus(@Param(\"devEUI\") String devEUI,@Param(\"status\") String status);\n\n @Select(\"SELECT * \"\n + \" FROM warning_log \"\n + \"where id = #{id} \")\n WarningLog queryWarningLog(@Param(\"id\") String id);\n\n @Select(\"<script>\"\n +\"SELECT * FROM warning_log where devEUI in \"\n + \"<foreach collection=\\\"list\\\" open=\\\"(\\\" close=\\\")\\\" separator=\\\",\\\" item=\\\"uid\\\" >\"\n + \"#{uid}\"\n + \"</foreach>\"\n + \"<if test =\\\"status !=null and status!=''\\\"> and status = #{start} </if>\"\n +\" order by status asc, createTime desc \"\n +\"</script>\")\n List<WarningLog> queryWarningLogByDevIds(@Param(\"list\") List<String> list, @Param(\"status\") String status);\n\n @Insert(\"insert into warning_log (devEUI,time,fPort,gatewayCount,rssi,fCnt,loRaSNR,data,devicePath,functionCode,dataLen,status,createTime)\"\n + \" values( #{devEUI},#{time},#{fPort},#{gatewayCount},#{rssi},#{fCnt},#{loRaSNR},#{data},#{devicePath},#{functionCode},#{dataLen}, #{status},#{createTime} ) \")\n int saveWarningLog(WarningLog log);\n\n /**\n * 将故障的设备标记为已修复\n * @param status\n * @param updateTime\n * @param devEUI\n * @return\n */\n @Update(\"update warning_log set status = #{status}, updateTime = #{updateTime} where devEUI=#{devEUI} and status ='0' \")\n int updateStatus(@Param(\"status\") String status, @Param(\"updateTime\") Date updateTime, @Param(\"devEUI\") String devEUI);\n\n @Select(\"<script>\"\n +\"SELECT count(id) FROM warning_log where devEUI in \"\n + \"<foreach collection=\\\"list\\\" open=\\\"(\\\" close=\\\")\\\" separator=\\\",\\\" item=\\\"uid\\\" >\"\n + \"#{uid}\"\n + \"</foreach>\"\n + \"<if test =\\\"status !=null and status!=''\\\"> and status = #{status} </if>\"\n +\"</script>\")\n int queryFaultCount(@Param(\"list\") List<String> list, @Param(\"status\") String status);\n\n\n}",
"public interface TableMetaData {\n\n\t/** Adds normal column. */\n\tpublic void addColumn(final ColumnMetaData column);\n\n\t/** Adds primary key column. */\n\tpublic void addPrimaryKey(final ColumnMetaData column);\n\n\t/** Returns map of column meta data, keyed by the column label (the alias if provided in the query, otherwise the name). */\n\tpublic Map<String, ColumnMetaData> getColumns();\n\n\t/** Returns database name. */\n\tpublic String getDatabaseName();\n\n\t/** Returns ordered list of columns that are primary keys. */\n\tpublic List<ColumnMetaData> getPrimaryKeys();\n\n\t/**\n\t * Returns fully qualified table name in database-specific form for use in SQL statements. MySQL uses the form\n\t * <code>database.table</code>, for example <code>sakila.film</code>. PostgreSQL uses the form\n\t * <code>database.schema.table</code>, for example <code>sakila.public.film</code>.\n\t */\n\tpublic String getQualifiedTableName();\n\n\t/** Returns row alias. */\n\tpublic String getRowAlias();\n\t\n\t/** Returns row set alias. */\n\tpublic String getRowSetAlias();\n\t\n\t/**\n\t * Returns row alias.\n\t * \n * @deprecated As of 0.8.11 use {@link #getRowAlias()}\n\t */\n\t@Deprecated\n\tpublic String getTableAlias();\n\n\t/** Returns table name. */\n\tpublic String getTableName();\n\n\t/** Returns role of table in the SQL Resource. */\n\tpublic TableRole getTableRole();\n\n\t/** Returns true if the SQL Resource role is child. */\n\tpublic boolean isChild();\n\n\t/** Returns true if the SQL Resource role is parent. */\n\tpublic boolean isParent();\n\n\t/** Sets all the row and row set aliases. */\n\tpublic void setAliases(final String alias, final String rowAlias, final String rowSetAlias);\n\n\t/** Sets attributes. */\n\tpublic void setAttributes(final String tableName, final String qualifedTableName,\n\t\t\tfinal String databaseName, final TableRole tableRole);\n\n\t/**\n\t * Sets table alias.\n\t * \n * @deprecated As of 0.8.11 use {@link #setAliases(String, String, String)}\n\t */\n\t@Deprecated\n\tpublic void setTableAlias(final String tableAlias);\n\t\n\t/** Represents all of the roles a table may plan in a SQL Resource. */\n\t@XmlType(namespace = \"http://restsql.org/schema\")\n\tpublic enum TableRole {\n\t\tChild, ChildExtension, Join, Parent, ParentExtension, Unknown;\n\t}\n}",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"public interface ICriteriaWhen {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table sale_classify_good\n *\n * @mbg.generated\n * @project https://github.com/itfsw/mybatis-generator-plugin\n */\n void criteria(Criteria criteria);\n }",
"@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}",
"@Repository\npublic interface UserMapper extends Serializable{\n\n /**\n * get the user info by the user id\n * @param user_id\n * @return\n */\n UserInfo getUserById(Integer user_id);\n\n /**\n * you want to get the user id list by the user nick name\n * @param nick_name the nick name\n * @return the user id list\n */\n List<Integer> getUsersByNickName(String nick_name);\n\n /**\n * you want to get the user info list by the id list\n * @param idList the id list\n * @return the user info list\n */\n List<UserInfo> getUserListByIdLists(List<Integer> idList);\n\n /**\n * you want to get the user info by the user nickname and the sex\n * @param map keys = {'nickname','sex'}\n * @return the result list\n */\n List<UserInfo> getUserByNickNameAndSex(Map<String,String> map);\n\n /**\n * you want to get your friends by your user id\n * @param user_id the user id\n * @return a list contains the friends of you\n */\n List<UserInfo> getFriendsOfMine(Integer user_id);\n\n /**\n * get the user's friends details\n * @param user_id the user id\n * @return the friends list\n */\n UserFriendsEntry getUserFriendsList(Integer user_id);\n\n /**\n * get the friends' friends\n * @param user_id the user id\n * @return the object of com.hujian.mvc.model.UserFriendsFriends\n */\n UserFriendsFriendsEntry getFriendsFriends(Integer user_id);\n\n /**\n * insert an user\n * @param userEntry\n * @return\n */\n Integer insertUser(InsertUserEntry userEntry);\n\n /**\n * remove an user from database\n * @param user_id\n * @return\n */\n Integer removeUserByUserId(Integer user_id);\n\n /**\n * update the user info\n * @param updateEntry the new user info\n * @return -1 means update error\n */\n Integer updateUserInfo(UpdateEntry updateEntry);\n\n\n}",
"public interface Columns {\r\n public static final String LOGIN_ID = \"login_id\";\r\n public static final String PASSWORD = \"password\";\r\n public static final String ADDRESS = \"address\";\r\n public static final String FEE = \"fee\";\r\n public static final String GRACE_PERIOD = \"grace_period\";\r\n public static final String USEREMAIL = \"user_email\";\r\n }",
"public void showInfo() throws SQLException { //to show the info when the page is loaded\n \tshowInfoDump();\n \tshowInfoMatl();\n }",
"@Dao\npublic interface UserDao {\n @Query(\"SELECT * FROM userInfo\")\n List<UserInfo> getAllUser();\n\n @Query(\"SELECT * FROM userInfo where emp_first_name LIKE :firstName AND emp_last_name LIKE :lastName\")\n UserInfo getUserByName(String firstName,String lastName);\n\n @Query(\"SELECT COUNT(*) from userInfo\")\n int getUserCount();\n\n @Insert(onConflict = REPLACE)\n void insertUser(UserInfo... userInfos);\n\n @Delete\n void delete(UserInfo userInfo);\n\n\n}",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}",
"UserInfoUserinfo selectByPrimaryKey(Integer userid);",
"@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);",
"@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}",
"@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}",
"public abstract String toSQL();"
] | [
"0.56877774",
"0.5585806",
"0.5460726",
"0.5428934",
"0.5407207",
"0.5362366",
"0.5336765",
"0.5334818",
"0.52486897",
"0.52254975",
"0.5216251",
"0.5173856",
"0.5155965",
"0.51307267",
"0.5106142",
"0.5097099",
"0.5090775",
"0.5077372",
"0.50720805",
"0.5063526",
"0.50599873",
"0.5054799",
"0.50484335",
"0.50467896",
"0.5044128",
"0.50431025",
"0.50403816",
"0.504005",
"0.5039819",
"0.5021275",
"0.50179523",
"0.50095975",
"0.4996361",
"0.49953246",
"0.4991836",
"0.49891979",
"0.49854547",
"0.49831015",
"0.4982967",
"0.49803442",
"0.4980015",
"0.49644393",
"0.49632588",
"0.49550605",
"0.49519444",
"0.494782",
"0.49399135",
"0.49357998",
"0.4929087",
"0.49208504",
"0.4915889",
"0.49144283",
"0.4913067",
"0.49127272",
"0.49037722",
"0.4903173",
"0.49017927",
"0.4899463",
"0.4899258",
"0.48966077",
"0.48954678",
"0.4888756",
"0.48857304",
"0.48788762",
"0.4876675",
"0.48749042",
"0.48630112",
"0.48575443",
"0.48533067",
"0.48525548",
"0.48489988",
"0.48477343",
"0.48451695",
"0.48395726",
"0.4837483",
"0.4835818",
"0.48303986",
"0.48296058",
"0.48295638",
"0.48228985",
"0.4820667",
"0.48199522",
"0.48175213",
"0.4816316",
"0.48144782",
"0.4810399",
"0.48097676",
"0.480349",
"0.48031986",
"0.4802981",
"0.4801244",
"0.4796831",
"0.47947487",
"0.47921005",
"0.47915855",
"0.47891384",
"0.4788933",
"0.47862542",
"0.4782977",
"0.4776899",
"0.47760165"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table girl_info | int insert(GirlInfo record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BaseTableInfo info() {\n return info;\n }",
"@Override\n public List<Information> findAllInfo() {\n return infoDao.findAll();\n }",
"GirlInfo selectByPrimaryKey(Integer id);",
"ResultSet getGeneralInfo() {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \t\tString query = \"SELECT ID, Name, Type1Name, Type2Name, Height, Weight, Hab, evolvesFrom \"\n \t\t\t\t+ \"FROM pokemon \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT TypeID AS T1, Name AS Type1Name FROM types) on type1 = t1 \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT TypeID AS T2, Name AS Type2Name FROM Types) ON type2 = t2 \"\n \t\t\t\t+ \"NATURAL JOIN (SELECT Name AS Hab, HabitatID FROM Habitats) \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT id as tempid, evolvesfrom from pokemon \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT evolvedid, name as evolvesfrom from pokemon, evolutions WHERE pokemon.id = babyid) on id = evolvedid) on id = tempid\";\n \t\t\n \t\treturn search.executeQuery(query);\n \t\t\n \t} catch (SQLException e) {\n \t\te.printStackTrace();\n \t\treturn null;\n \t}\n }",
"@Mapper\npublic interface WeChatInfoDao {\n\n\n /**\n * 插入微信信息\n * @param wechatInfo\n * @return\n */\n @Insert(\"INSERT INTO wechat_info(parentid,unionid,openid,nickname,sex,province,city,country,headImgUrl,\" +\n \"status,ticket_url,ticket,is_guide,reward) VALUES(#{parentid},#{unionid},#{openid},#{nickname},#{sex},#{province}\" +\n \",#{city},#{country},#{headImgUrl},#{status},#{ticketUrl},#{ticket},#{isGuide},#{reward})\")\n @Options(useGeneratedKeys=true, keyProperty=\"id\")\n int insert(WeChatInfoEntity wechatInfo);\n\n /**\n * 根据openID 查找用户信息\n * @param openid\n * @return\n */\n @Select(\"SELECT * FROM wechat_info WHERE openid = #{openid}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"nickname\", property = \"nickname\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity findByOpenID(@Param(\"openid\") String openid);\n\n /**\n * 根据openID 修改二维码信息\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET ticket_url=#{ticketUrl},ticket=#{ticket} WHERE openid=#{openid}\")\n void updateTicketUrlByOpenID(WeChatInfoEntity wechatInfo);\n\n /**\n * 取消关注\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET status=1 WHERE openid=#{openid}\")\n void updateStatusByOpenID(WeChatInfoEntity wechatInfo);\n\n\n /**\n * 更改status 状态\n * @param wechatInfo\n */\n @SelectProvider(type=WeChatInfoSqlProvider.class, method=\"updateByOpenIdSql\")\n void updateStatus(@Param(\"wechatInfo\") WeChatInfoEntity wechatInfo);\n\n @Select(\"SELECT * FROM wechat_info WHERE id = #{ID}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity selectWecahtUserByID(@Param(\"ID\")String ID);\n}",
"public void setInfoTableName(String name)\n\t{\n\t\tm_infosTableName = name;\n\t}",
"organize_infoBean selectByPrimaryKey(Integer id);",
"@Override\n public String getName() {\n return columnInfo.getName();\n }",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"UserInfoDao getUserInfoDao();",
"@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();",
"public ResultSet selectInfoAuto() {\n\t\tPreparedStatement prst;\n\t\ttry {\n\t\t\tprst = connection.prepareStatement(DbManagerUtils.SELECT_INFO_AUTO);\n\n\t\t\treturn prst.executeQuery();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}",
"public String info() {\n\t\t\tString instrumentsString = \" \";\n\t\t\tfor(Instruments i : Instruments.values()){\n\t\t\t\tinstrumentsString +=i.toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn (\"База данных представляет из себя набор старцев(обьектов Olders),\" +\"\\n\"+\n \"каждый из которых имеет поля :\" +\"\\n\"+\n \"id(уникальный идентификатор)\" +\"\\n\"+\n \"name(имя старца)\" +\"\\n\"+\n \"userid(уникальный идентификатор пользователя, который является его владельцем)\" +\"\\n\"+\n \"dateofinit-дата инициализация старца\");\n\t\t}",
"@MyBatisDao\npublic interface UserProfileMapper {\n UserProfile selectByPrimaryKey(long id);\n\n UserProfile selectByUserId(long userId);\n\n UserProfile selectByEmail(String email);\n\n int deleteByPrimaryKey(long id);\n\n int insert(UserProfile userProfile);\n\n int update(UserProfile userProfile);\n\n int updateAvatar(UserProfile userProfile);\n}",
"public PassengerData getInfoColumnData() {\n PassengerData passenger = new PassengerData();\n passenger.setDepBaggage(new Baggage());\n passenger.setRetBaggage(new Baggage());//creating bean for filling data in\n String fullName = InfoColumnPage.getInstance().getPassengerFullName();\n parseAndFillPassengerName(passenger, fullName);\n Set<String> rawBookingData = InfoColumnPage.getInstance().getDepPassengerRawData();//getting raw data from page\n for (String s :\n rawBookingData) {\n parseAndFillPassenger(s, passenger, true); //true stands for departure\n }//parsing raw data and filling bean for departure\n rawBookingData = InfoColumnPage.getInstance().getRetPassengerRawData();\n for (String s :\n rawBookingData) {\n parseAndFillPassenger(s, passenger, false); //true stands for departure\n }//parsing raw data and filling bean for return\n fillNonMentionedWithDefaults(passenger);//filling non mentioned values in page with its default values\n\n return passenger;\n }",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);",
"@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}",
"public String getInfoPkid() {\n return infoPkid;\n }",
"public interface UserInfoDAO {\n void addUserInfo(int id, String name, String surname, int positionId, Date bday, String magazine, String photo);\n List<UserInfo> getTable();\n UserInfo getUserInfoById(int id);\n void updateUserInfo(String newName, String newSurname, Date bday, int newPositionId, String newMagazine, int id);\n List<UserInfo> getForHead(String magazine);\n List<UserInfo> getForJournalist(String magazine);\n List<UserInfo> getForOwner();\n void updateUserPhoto(String photo, int id);\n}",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public String getEmployeeInfo() throws SQLException {\n String SQL = String.format(\"SELECT * FROM %s\", DbSchema.table_employees.name);\n Statement statement = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n ResultSet results = statement.executeQuery(SQL);\n\n //Prepare format stuff\n String tableHeader = String.format(\"%s %s %s %s %s\\n\", table_employees.cols.id, table_employees.cols.first_name, table_employees.cols.last_name, table_employees.cols.age, table_employees.cols.salary);\n StringBuilder output = new StringBuilder(tableHeader);\n DecimalFormat format = new DecimalFormat(\"#,###.00\");\n\n while (results.next()) {\n //Iterate through each row (employee) and add each bit of info to table\n String row = String.format(\"%s %s %s %s %s\\n\",\n results.getInt(table_employees.cols.id),\n results.getString(table_employees.cols.first_name),\n results.getString(table_employees.cols.last_name),\n results.getInt(table_employees.cols.age),\n format.format(results.getDouble(table_employees.cols.salary)));\n output.append(row);\n }\n return output.toString();\n }",
"public void formDatabaseTable() {\n }",
"@SqlQuery(\"select * from PLAYERSTATS\")\n List<PlayerStats> getAll();",
"public String infoName();",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}",
"@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}",
"public interface RelationInfoDao extends BaseDao<RelationInfoDO> {\n\n HashMap<String,String> getDependents(String tableNames);\n\n List<HashMap<String,String>> getParentTable(String tableNames);\n\n List<HashMap<String,String>> getChlidTable(String s);\n}",
"@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}",
"@Override\n public String toString() {\n return String.format(\"[%d] [%d]\", dameFila(), dameColumna());\n }",
"public interface EmpDao {\n\n\n /**\n * 根据参数查询列表\n * @param map\n * @return\n */\n\n// select empno,ENAME,job,mgr,hiredate,sal,comm,deptno from emp\n @Select(\"<script>\" +\n \"select a.empno,a.ename,a.job,a.mgr,to_char(a.hiredate,'yyyy-mm-dd') hiredate,a.sal,a.comm,a.deptno,a.mgrname,a.dname,a.rn from \" +\n \"(select b.*,rownum rn from \" +\n \"(select e.*,d.dname from (select e1.*,e2.ename mgrname from emp e1 left join emp e2 on e1.mgr=e2.empno) e left join dept d on e.deptno=d.deptno \" +\n \"<where>\" +\n \"<if test='ename!=null'>and e.ename like '%'||#{ename}||'%' </if>\" +\n \"<if test='job!=null'>and e.job like '%'||#{job}||'%' </if>\" +\n \"</where>\" +\n \"order by empno desc) b where rownum < #{end}) a where a.rn > #{start}\" +\n \"</script>\")\n List<Map> getList(Map map);\n\n\n /**\n * 带条件查询总条数\n * @param map\n * @return\n */\n @Select(\"<script>\"+\n \"select count(*) from emp <where>\" +\n \"<if test='ename != null'> and ename like '%${ename}%'</if>\"+\n \"<if test='job != null'> and job like '%${job}%'</if>\"+\n \"</where></script>\")\n int getPageCount(Map map);\n /**\n * 添加\n * @param map\n * @return\n */\n// seq_emp_id.nextval,ename, job, hiredate, sal, comm,deptno\n @Insert(\"insert into emp values(seq_emp_id.nextval,#{ENAME},#{JOB},#{MGR},to_date(#{HIREDATE},'yyyy-mm-dd'),#{SAL},#{COMM},#{DEPTNO})\")\n int add(Map map);\n\n\n /**\n * 更新\n * @param map\n * @return\n */\n @Update(\"update emp set ename=#{ENAME},job=#{JOB},mgr=#{MGR},hiredate=to_date(#{HIREDATE},'yyyy-mm-dd'),sal=#{SAL},comm=#{COMM},deptno=#{DEPTNO} where empno=#{EMPNO}\")\n int update(Map map);\n\n /**\n * 删除\n * @param deptNo\n * @return\n */\n @Delete(\"delete from emp where empno=#{EMPNO}\")\n int delete(int deptNo);\n\n /**\n * 获取所有部门,用于页面数据绑定\n * @return\n */\n @Select(\"select deptno,dname from dept\")\n List<Map> getDeptType();\n\n /**\n * 获取所有职位,用于页面数据绑定\n * @return\n */\n @Select(\"select distinct(job) from emp\")\n List<Map> getJob();\n\n /**\n * 获取上司,用于页面数据绑定\n * @return\n */\n @Select(\"select empno,ename from emp where job='PRESIDENT' or job='MANAGER' or job='ANALYST'\")\n List<Map> getMgr();\n\n\n}",
"@Mapper\npublic interface UserInfoDao {\n\n void create(UserInfo userInfo);\n //正常注册用户查询\n UserInfo findByLoginName(@Param(\"loginName\") String loginName);\n //扒取用户信息查询\n UserInfo findByLoginNameCrawler(@Param(\"loginName\") String loginName);\n\n void updateState(UserInfo userInfo);\n\n void updateCreateTime(UserInfo userInfo);\n\n void changePassword(UserInfo userInfo);\n\n UserInfo findByUserId(@Param(\"userId\") String userId);\n\n UserInfo findByUserIdAll(@Param(\"userId\") String userId);\n\n int friend(@Param(\"userId\")String userId,@Param(\"friendId\") String friendId);\n\n List<UserInfo> findByUserName(@Param(\"userName\") String userName);\n\n List<String> allLoginNames();\n}",
"public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }",
"public interface GirlMapper extends JpaRepository<Girl,Integer>{\n\n}",
"private String _columnInfo(int i, DBField f, boolean isDefined)\n {\n String ndx = StringTools.format(i,\"00\");\n String name = StringTools.leftAlign(f.getName(),22);\n String desc = isDefined? (\": \" + f.getTitle(null)) : \"\";\n String type = f.getSqlType();\n if (f.isPrimaryKey()) { type += \" key\"; }\n if (f.isAlternateKey()) { type += \" altkey\"; }\n if (f.isAutoIncrement()) { type += \" auto\"; }\n if (f.isUTF8()) { type += \" utf8\"; }\n type = StringTools.leftAlign(type, 32);\n return ndx + \") \" + name + \" \" + type + desc;\n }",
"public Impiegato getInfoImpiegato() throws SQLException,AziendaException,ParseException {\n\t\tUserQuery uq = ProxyDB.getIstance();\n\t\treturn uq.getInfoImpiegato(utente.getUsername());\n\t}",
"public String getMapTableName() {\n return getTableName(false, false, false, true);\n }",
"@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}",
"public String getNomTable();",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"@Override\n protected Map<TableUniqueName, String> tableSubstitution() {\n return ImmutableMap.of();\n }",
"public String toString() {\n return new ToStringBuilder(this)\n .append(\"name\", this.name)\n .append(\"type\", this.type)\n .append(\"sqlTable\", this.sqlTable)\n .append(\"sqlColumn\", this.sqlColumn)\n .append(\"typeLinkId\", this.typeLinkId)\n .toString();\n }",
"@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();",
"@Override\n public String toString() {\n String output = \"User Info for: \" + getId();\n output += \"\\n\\tName: \" + getFirstName() + \" \" + getLastName();\n output += \"\\n\\tCreated on: \" + DF.format(getEnrolDate());\n output += \"\\n\\tLast access: \" + DF.format(getLastAccess());\n \n return output;\n }",
"public String getDbTable() {return dbTable;}",
"public ResultSet getItemInfo() throws SQLException {\n\t\tConnection con = openDBConnection();\n\t\tStatement stmt = con.createStatement();\n\t\t/** Proceeds if user is logged in */\n\t\tString queryString = \"Select * From team1.GABES_ITEM i Where i.ITEM_ID='\"\n\t\t\t\t+ this.item_id + \"'\";\n\t\tResultSet result = stmt.executeQuery(queryString);\n\t\treturn result;\n\t}",
"@Override\r\n\t\tpublic Alumni getAlumniDetails(String firstName) throws ClassNotFoundException, SQLException {\n\t\t\t\r\n\t\t\tConnection connection=ConnectionManager.openConnection();\r\n\t\t\tPreparedStatement statement=connection.prepareStatement(\"select * from alumni where first_name=?\");\r\n\t\t\tstatement.setString(1, firstName);\r\n\t\t\t\r\n\t\t\tResultSet resultSet=statement.executeQuery();\r\n\t\t\tAlumni alumni=new Alumni();\r\n\t\t\t\twhile(resultSet.next()) {\r\n\t\t\t\t\r\n\t\t\t\talumni.setAlumniId(resultSet.getInt(\"alumni_id\"));\r\n\t\t\t\talumni.setFirstName(resultSet.getString(\"first_name\"));\r\n\t\t\t\talumni.setLastName(resultSet.getString(\"last_name\"));\r\n\t\t\t\talumni.setEmailAddress(resultSet.getString(\"email\"));\r\n\t\t\t\talumni.setPhoneNumber(resultSet.getString(\"phone_number\"));\r\n\t\t alumni.setGender(resultSet.getString(\"gender\"));\r\n\t\t\t\talumni.setPresentStatus(resultSet.getString(\"present_status\"));\r\n\t\t\t\talumni.setYearOfCompletition(resultSet.getInt(\"year_of_completition\"));\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tConnectionManager.closeConnection();\r\n\t\t\treturn alumni;\r\n\t\t}",
"private HashMap<Long, String> getTable() {\n return table;\n }",
"public int getSirinaTable() {\n\t\treturn this.sirinaTable;\n\t}",
"@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}",
"@Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number, id_firstcontact_doctor, password FROM patients;\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"password\", column = \"password\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n List<Patient> getAllPatientsDataToTable();",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}",
"public void generateAttributes() throws SQLException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, InstantiationException{\n ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring.xml\");\n //Get the EmployeeDAO Bean\n BasicDataDAO dataDAO = null;\n BasicData newData = null;\n \n \n if (tableName.equals(\"test\")) {\n\t\t\tdataDAO = ctx.getBean(\"testDAO\", TestDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Test(0, 99, \"Hello\", \"sample\", new Date());\n\t\t}else if (tableName.equals(\"utilisateur\")) {\n\t\t\tdataDAO = ctx.getBean(\"utilisateurDAO\", UtilisateurDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Utilisateur(0, \"handa\", \"handa-upsud\", \"admin\", 30);\n\t\t}else if (tableName.equals(\"source\")) {\n\t\t\tdataDAO = ctx.getBean(\"sourceDAO\", SourceDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Source(0, \"http\", \"srouce1\", \"haut\", \"France\", \"vertical\", 10, \"test\");\n\t\t}else if (tableName.equals(\"theme\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeDAO\", ThemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Theme(0, \"testTheme\");\n\t\t}else if (tableName.equals(\"themeRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeRelationDAO\", ThemeRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new ThemeRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"version\")) {\n\t\t\tdataDAO = ctx.getBean(\"versionDAO\", VersionDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Version(0, 1, \"url_serveur\", \"version\", new Date());\n\t\t}else if (tableName.equals(\"abonnementRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"abonnementRelationDAO\", AbonnementRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AbonnementRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"alerteRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"alerteRelationDAO\", AlerteRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AlerteRelation(0, 1, 1, 15, new Date(), \"sujet\", \"type\", \"statut\", \"description\");\n\t\t}else if (tableName.equals(\"blacklistageSysteme\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageSystemeDAO\", BlacklistageSystemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageSysteme(0, 1);\n\t\t}else if (tableName.equals(\"blacklistageUtilisateurRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageUtilisateurRelationDAO\", BlacklistageUtilisateurRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageUtilisateurRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"demandeModifRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"demandeModifRelationDAO\", DemandeModifRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new DemandeModifRelation(0, 1, 1, new Date(), \"type\", \"statut\", \"description\");\n\t\t}\n \n \n this.insert = dataDAO.insert(newData);\n //selecById\n BasicData t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.selectById = t.toString();\n\t\t}else {\n\t\t\tthis.selectById = \"rien\";\n\t\t}\n //update\n this.update = dataDAO.update(t);\n t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.resultatUpdate = t.toString();\n\t\t}else {\n\t\t\tthis.resultatUpdate = \"rien\";\n\t\t}\n //selectAll\n ArrayList<? extends BasicData> alTest = dataDAO.selectAll();\n this.selectAll = alTest.size();\n if (alTest.size()==0) {\n \tthis.ligne1 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne1 = alTest.get(0).toString();\n\t\t}\n //selectWhere\n String condition = \"id > 1\";\n this.condition = condition;\n ArrayList<? extends BasicData> alTest1 = dataDAO.selectWhere(condition);\n this.selectWhere = alTest1.size();\n if (alTest1.size()==0) {\n \tthis.ligne11 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne11 = alTest1.get(0).toString();\n\t\t}\n //deleteById\n this.deleteById = 99;\n //this.deleteById = dataDAO.deleteById(insert);\n }",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"String getTableName();",
"private void statsTable() {\n try (Connection connection = hikari.getConnection()) {\n try (PreparedStatement statement = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS `\" + TABLE_STATS + \"` \" +\n \"(id INT NOT NULL AUTO_INCREMENT UNIQUE, \" +\n \"uuid varchar(255) PRIMARY KEY, \" +\n \"name varchar(255), \" +\n \"kitSelected varchar(255), \" +\n \"points INT, \" +\n \"kills INT, \" +\n \"deaths INT, \" +\n \"killstreaks INT, \" +\n \"currentKillStreak INT, \" +\n \"inGame BOOLEAN)\")) {\n statement.execute();\n statement.close();\n connection.close();\n }\n } catch (SQLException e) {\n LogHandler.getHandler().logException(\"TableCreator:statsTable\", e);\n }\n }",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}",
"@MyBatisRepository\npublic interface UserMybatisDao {\n int register(User user);\n\n int updateUser(User user);\n\n String checkPhone(String phone);\n\n int perfectUserInfo(Map params);\n\n User findByToken(String uid);\n\n int checkIsRegisteredByPhone(String phone);\n\n User findByUserId(Long userId);\n}",
"@Override\n\tpublic List<SupplierView> getAllSupplierInfo() {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type, s.permanent_address, s.temporary_address,h.quantity,h.supplier_unique_id ,h.cost,h.buy_date,h.username,i.product_id, i.product_name FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id INNER JOIN product i on h.product_product_id=i.product_id\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().query(sql,rowmapper);\n\t}",
"@Override\n\tprotected Mapping getMapping() {\n\t\treturn new Mapping()\n\t\t\t.add(\"firstname\", driver.getFirstName())\n\t\t\t.add(\"lastname\", driver.getLastName())\n\t\t\t.add(\"dateofbirth\", driver.getDateOfBirth())\n\t\t\t.add(\"gender\", driver.getGender())\n\t\t\t.add(\"age\", computeAge())\n\t\t\t.add(\"numberOfAccidents\", driver.getNumberOfAccidents())\n\t\t\t.add(\"numberOfTickets\", driver.getNumberOfTickets());\n\t}",
"@Override\n\tprotected DoublyIndexedTable<String, String> getTraitInformationTable() {\n\t\treturn xmlTraitInformation;\n\t}",
"@Override\n\tpublic List<Map<String, Object>> queryrecord(Employee bi, String name, String userinfoid, Integer start,\n\t\t\tInteger limit) {\n\t\tStringBuffer hql = new StringBuffer(\"select gb,ti,mi,u from Giftbox gb,ToysInfo ti,MachineInfo mi,UserInfo u where gb.fuserinfoid = u.id and gb.fmachineid = mi.id and gb.ftoysid = ti.id and gb.fuserinfoid = \")\n\t\t\t\t.append(Long.parseLong(userinfoid));\n\t\thql = hql.append(\" order by gb.createtime desc\");\n\t\tList<Object[]> lst = databaseHelper.getResultListByHql(hql.toString(),start,limit);\n\t\tList<Map<String,Object>> lstMap = new ArrayList<Map<String,Object>>();\n\t\t\n\t\tfor (Object[] objects : lst) {\n\t\t\tGiftbox g = (Giftbox)objects[0];\n\t\t\tToysInfo t =(ToysInfo) objects[1];\n\t\t\tMachineInfo m = (MachineInfo) objects[2];\n\t\t\tUserInfo u = (UserInfo) objects[3];\n\t\t\t\n\t\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\t\tmap.put(\"id\", g.getId());\n\t\t\tmap.put(\"username\", u.getUsername());\n\t\t\tmap.put(\"toyname\", t.getName());\n\t\t\tmap.put(\"machineno\", m.getMachineno());\n\t\t\tmap.put(\"photo\", g.getPhoto());\n\t\t\tmap.put(\"getphoto\", g.getGetphoto());\n\t\t\tmap.put(\"state\", g.getState()==-1?\"失效\":g.getState()==0?\"新获得\":g.getState()==1?\"配货中\":\"已发货\");\n\t\t\tmap.put(\"time\", u.getCreatetime().toString());\n\t\t\t\n\t\t\t\n\t\t\tlstMap.add(map);\n\t\t}\n\t\t\n\t\treturn lstMap;\n\t}",
"@Override\r\n\tpublic String generate() {\r\n\t\tStringBuilder query = new StringBuilder();\r\n\r\n\t\tquery.append(\"INSERT INTO \").append(tableName).append(\" (\");\r\n\t\tfor (int i = 0; i < fieldNames.size(); i++) {\r\n\t\t\tquery.append(fieldNames.get(i));\r\n\t\t\tif (i < fieldNames.size() - 1) {\r\n\t\t\t\tquery.append(\", \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tquery.append(\") VALUES (\");\r\n\t\tfor (int i = 0; i < fieldValues.size(); i++) {\r\n\t\t\tquery.append(\"'\").append(fieldValues.get(i)).append(\"'\");\r\n\t\t\tif (i < fieldValues.size() - 1) {\r\n\t\t\t\tquery.append(\", \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tquery.append(\");\");\r\n\t\treturn query.toString();\r\n\t}",
"public UserInfoEntity toUserInfoEntity(){\n UserInfoEntity userInfoEntity = new UserInfoEntity();\n userInfoEntity.setUserId(IdGen.getNewUserID());\n userInfoEntity.setCreateBy(name);\n userInfoEntity.setCreateOn(DateUtils.getDate());\n return toUserInfoEntity(userInfoEntity);\n }",
"public java.lang.String getInfoId() {\n return infoId;\n }",
"public interface NotationMapper {\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"<script>SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME FROM NOTATION \",\n \"<if test='type != \\\"\\\"'>WHERE TYPE = #{type}, </if>\",\n \"</script>\"})\n List<JSONObject> getNotationList(@Param(\"type\") String type);\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME \",\n \"FROM NOTATION WHERE LOCATE(#{title},TITLE) OR LOCATE(#{title},SUBTITLE)\"\n })\n List<JSONObject> fuzzyByTitle(@Param(\"title\")String title);\n\n @Insert({\"INSERT INTO NOTATION (TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME)\" +\n \"VALUES(#{title},#{subtitle},#{bio},#{notationUrl},#{bmgUrl},#{authorUrl},#{accTitle},#{accUrl},#{type},\" +\n \"#{resourceUrl},#{createTime})\"})\n void addNotation(JSONObject reqJson);\n}",
"public String toString()\n {\n return this.getUntranslatedTableName();\n }",
"public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }",
"public TableInfo getTableInfoParticipantVisit()\n {\n return getSchema().getTable(\"ParticipantVisit\");\n }",
"public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}",
"public String getName() { return _sqlName; }",
"@Override\n public String asTableDbName() {\n return \"user\";\n }",
"protected String getTableName()\n {\n return immutableGetTableName();\n }",
"public String toString() {\n return \"[JDBCRawSqlQueryMetaData : method=\" + method + \"]\";\n }",
"public interface WarningLogMapper {\n\n @Select(\"SELECT * \"\n + \" FROM warning_log \"\n + \"where devEUI = #{devEUI} and status=#{status} \")\n List<WarningLog> queryByDevAndStatus(@Param(\"devEUI\") String devEUI,@Param(\"status\") String status);\n\n @Select(\"SELECT * \"\n + \" FROM warning_log \"\n + \"where id = #{id} \")\n WarningLog queryWarningLog(@Param(\"id\") String id);\n\n @Select(\"<script>\"\n +\"SELECT * FROM warning_log where devEUI in \"\n + \"<foreach collection=\\\"list\\\" open=\\\"(\\\" close=\\\")\\\" separator=\\\",\\\" item=\\\"uid\\\" >\"\n + \"#{uid}\"\n + \"</foreach>\"\n + \"<if test =\\\"status !=null and status!=''\\\"> and status = #{start} </if>\"\n +\" order by status asc, createTime desc \"\n +\"</script>\")\n List<WarningLog> queryWarningLogByDevIds(@Param(\"list\") List<String> list, @Param(\"status\") String status);\n\n @Insert(\"insert into warning_log (devEUI,time,fPort,gatewayCount,rssi,fCnt,loRaSNR,data,devicePath,functionCode,dataLen,status,createTime)\"\n + \" values( #{devEUI},#{time},#{fPort},#{gatewayCount},#{rssi},#{fCnt},#{loRaSNR},#{data},#{devicePath},#{functionCode},#{dataLen}, #{status},#{createTime} ) \")\n int saveWarningLog(WarningLog log);\n\n /**\n * 将故障的设备标记为已修复\n * @param status\n * @param updateTime\n * @param devEUI\n * @return\n */\n @Update(\"update warning_log set status = #{status}, updateTime = #{updateTime} where devEUI=#{devEUI} and status ='0' \")\n int updateStatus(@Param(\"status\") String status, @Param(\"updateTime\") Date updateTime, @Param(\"devEUI\") String devEUI);\n\n @Select(\"<script>\"\n +\"SELECT count(id) FROM warning_log where devEUI in \"\n + \"<foreach collection=\\\"list\\\" open=\\\"(\\\" close=\\\")\\\" separator=\\\",\\\" item=\\\"uid\\\" >\"\n + \"#{uid}\"\n + \"</foreach>\"\n + \"<if test =\\\"status !=null and status!=''\\\"> and status = #{status} </if>\"\n +\"</script>\")\n int queryFaultCount(@Param(\"list\") List<String> list, @Param(\"status\") String status);\n\n\n}",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}",
"public interface TableMetaData {\n\n\t/** Adds normal column. */\n\tpublic void addColumn(final ColumnMetaData column);\n\n\t/** Adds primary key column. */\n\tpublic void addPrimaryKey(final ColumnMetaData column);\n\n\t/** Returns map of column meta data, keyed by the column label (the alias if provided in the query, otherwise the name). */\n\tpublic Map<String, ColumnMetaData> getColumns();\n\n\t/** Returns database name. */\n\tpublic String getDatabaseName();\n\n\t/** Returns ordered list of columns that are primary keys. */\n\tpublic List<ColumnMetaData> getPrimaryKeys();\n\n\t/**\n\t * Returns fully qualified table name in database-specific form for use in SQL statements. MySQL uses the form\n\t * <code>database.table</code>, for example <code>sakila.film</code>. PostgreSQL uses the form\n\t * <code>database.schema.table</code>, for example <code>sakila.public.film</code>.\n\t */\n\tpublic String getQualifiedTableName();\n\n\t/** Returns row alias. */\n\tpublic String getRowAlias();\n\t\n\t/** Returns row set alias. */\n\tpublic String getRowSetAlias();\n\t\n\t/**\n\t * Returns row alias.\n\t * \n * @deprecated As of 0.8.11 use {@link #getRowAlias()}\n\t */\n\t@Deprecated\n\tpublic String getTableAlias();\n\n\t/** Returns table name. */\n\tpublic String getTableName();\n\n\t/** Returns role of table in the SQL Resource. */\n\tpublic TableRole getTableRole();\n\n\t/** Returns true if the SQL Resource role is child. */\n\tpublic boolean isChild();\n\n\t/** Returns true if the SQL Resource role is parent. */\n\tpublic boolean isParent();\n\n\t/** Sets all the row and row set aliases. */\n\tpublic void setAliases(final String alias, final String rowAlias, final String rowSetAlias);\n\n\t/** Sets attributes. */\n\tpublic void setAttributes(final String tableName, final String qualifedTableName,\n\t\t\tfinal String databaseName, final TableRole tableRole);\n\n\t/**\n\t * Sets table alias.\n\t * \n * @deprecated As of 0.8.11 use {@link #setAliases(String, String, String)}\n\t */\n\t@Deprecated\n\tpublic void setTableAlias(final String tableAlias);\n\t\n\t/** Represents all of the roles a table may plan in a SQL Resource. */\n\t@XmlType(namespace = \"http://restsql.org/schema\")\n\tpublic enum TableRole {\n\t\tChild, ChildExtension, Join, Parent, ParentExtension, Unknown;\n\t}\n}",
"@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}",
"public interface ICriteriaWhen {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table sale_classify_good\n *\n * @mbg.generated\n * @project https://github.com/itfsw/mybatis-generator-plugin\n */\n void criteria(Criteria criteria);\n }",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"@Repository\npublic interface UserMapper extends Serializable{\n\n /**\n * get the user info by the user id\n * @param user_id\n * @return\n */\n UserInfo getUserById(Integer user_id);\n\n /**\n * you want to get the user id list by the user nick name\n * @param nick_name the nick name\n * @return the user id list\n */\n List<Integer> getUsersByNickName(String nick_name);\n\n /**\n * you want to get the user info list by the id list\n * @param idList the id list\n * @return the user info list\n */\n List<UserInfo> getUserListByIdLists(List<Integer> idList);\n\n /**\n * you want to get the user info by the user nickname and the sex\n * @param map keys = {'nickname','sex'}\n * @return the result list\n */\n List<UserInfo> getUserByNickNameAndSex(Map<String,String> map);\n\n /**\n * you want to get your friends by your user id\n * @param user_id the user id\n * @return a list contains the friends of you\n */\n List<UserInfo> getFriendsOfMine(Integer user_id);\n\n /**\n * get the user's friends details\n * @param user_id the user id\n * @return the friends list\n */\n UserFriendsEntry getUserFriendsList(Integer user_id);\n\n /**\n * get the friends' friends\n * @param user_id the user id\n * @return the object of com.hujian.mvc.model.UserFriendsFriends\n */\n UserFriendsFriendsEntry getFriendsFriends(Integer user_id);\n\n /**\n * insert an user\n * @param userEntry\n * @return\n */\n Integer insertUser(InsertUserEntry userEntry);\n\n /**\n * remove an user from database\n * @param user_id\n * @return\n */\n Integer removeUserByUserId(Integer user_id);\n\n /**\n * update the user info\n * @param updateEntry the new user info\n * @return -1 means update error\n */\n Integer updateUserInfo(UpdateEntry updateEntry);\n\n\n}",
"public interface Columns {\r\n public static final String LOGIN_ID = \"login_id\";\r\n public static final String PASSWORD = \"password\";\r\n public static final String ADDRESS = \"address\";\r\n public static final String FEE = \"fee\";\r\n public static final String GRACE_PERIOD = \"grace_period\";\r\n public static final String USEREMAIL = \"user_email\";\r\n }",
"public void showInfo() throws SQLException { //to show the info when the page is loaded\n \tshowInfoDump();\n \tshowInfoMatl();\n }",
"@Dao\npublic interface UserDao {\n @Query(\"SELECT * FROM userInfo\")\n List<UserInfo> getAllUser();\n\n @Query(\"SELECT * FROM userInfo where emp_first_name LIKE :firstName AND emp_last_name LIKE :lastName\")\n UserInfo getUserByName(String firstName,String lastName);\n\n @Query(\"SELECT COUNT(*) from userInfo\")\n int getUserCount();\n\n @Insert(onConflict = REPLACE)\n void insertUser(UserInfo... userInfos);\n\n @Delete\n void delete(UserInfo userInfo);\n\n\n}",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}",
"UserInfoUserinfo selectByPrimaryKey(Integer userid);",
"@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);",
"@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}",
"@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}",
"public abstract String toSQL();"
] | [
"0.5687458",
"0.5584085",
"0.5461206",
"0.54287654",
"0.54066455",
"0.5362312",
"0.5335768",
"0.53355366",
"0.5247664",
"0.5225035",
"0.52163434",
"0.5172487",
"0.51557827",
"0.5131258",
"0.5104857",
"0.50975364",
"0.50908273",
"0.50768244",
"0.50726014",
"0.5064885",
"0.5059958",
"0.5053947",
"0.50485826",
"0.5046831",
"0.50443697",
"0.50422734",
"0.5040452",
"0.5039394",
"0.50387",
"0.502177",
"0.5018099",
"0.5009295",
"0.49977297",
"0.49945006",
"0.4991253",
"0.4989827",
"0.4986553",
"0.498464",
"0.49826148",
"0.49804068",
"0.49794012",
"0.4963886",
"0.49612933",
"0.49560836",
"0.49524343",
"0.49492282",
"0.49391228",
"0.49364075",
"0.49291378",
"0.49216363",
"0.49173197",
"0.49167642",
"0.4914363",
"0.4913998",
"0.49044693",
"0.4904281",
"0.4902012",
"0.48993382",
"0.4898747",
"0.4896759",
"0.48939592",
"0.48887005",
"0.48849994",
"0.48805228",
"0.48775008",
"0.4874289",
"0.48636612",
"0.4857093",
"0.48534846",
"0.4852284",
"0.48490924",
"0.4847378",
"0.4844718",
"0.48386738",
"0.48376587",
"0.48341355",
"0.48311827",
"0.4829082",
"0.48284927",
"0.48237115",
"0.48221397",
"0.48209152",
"0.48184907",
"0.481658",
"0.48133248",
"0.48114827",
"0.4811215",
"0.48046595",
"0.4802596",
"0.48024914",
"0.48003992",
"0.47978824",
"0.47942898",
"0.47918156",
"0.47916567",
"0.47898138",
"0.47887403",
"0.4786199",
"0.47830078",
"0.47766647",
"0.4775443"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table girl_info | int insertSelective(GirlInfo record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BaseTableInfo info() {\n return info;\n }",
"@Override\n public List<Information> findAllInfo() {\n return infoDao.findAll();\n }",
"GirlInfo selectByPrimaryKey(Integer id);",
"ResultSet getGeneralInfo() {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \t\tString query = \"SELECT ID, Name, Type1Name, Type2Name, Height, Weight, Hab, evolvesFrom \"\n \t\t\t\t+ \"FROM pokemon \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT TypeID AS T1, Name AS Type1Name FROM types) on type1 = t1 \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT TypeID AS T2, Name AS Type2Name FROM Types) ON type2 = t2 \"\n \t\t\t\t+ \"NATURAL JOIN (SELECT Name AS Hab, HabitatID FROM Habitats) \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT id as tempid, evolvesfrom from pokemon \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT evolvedid, name as evolvesfrom from pokemon, evolutions WHERE pokemon.id = babyid) on id = evolvedid) on id = tempid\";\n \t\t\n \t\treturn search.executeQuery(query);\n \t\t\n \t} catch (SQLException e) {\n \t\te.printStackTrace();\n \t\treturn null;\n \t}\n }",
"@Mapper\npublic interface WeChatInfoDao {\n\n\n /**\n * 插入微信信息\n * @param wechatInfo\n * @return\n */\n @Insert(\"INSERT INTO wechat_info(parentid,unionid,openid,nickname,sex,province,city,country,headImgUrl,\" +\n \"status,ticket_url,ticket,is_guide,reward) VALUES(#{parentid},#{unionid},#{openid},#{nickname},#{sex},#{province}\" +\n \",#{city},#{country},#{headImgUrl},#{status},#{ticketUrl},#{ticket},#{isGuide},#{reward})\")\n @Options(useGeneratedKeys=true, keyProperty=\"id\")\n int insert(WeChatInfoEntity wechatInfo);\n\n /**\n * 根据openID 查找用户信息\n * @param openid\n * @return\n */\n @Select(\"SELECT * FROM wechat_info WHERE openid = #{openid}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"nickname\", property = \"nickname\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity findByOpenID(@Param(\"openid\") String openid);\n\n /**\n * 根据openID 修改二维码信息\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET ticket_url=#{ticketUrl},ticket=#{ticket} WHERE openid=#{openid}\")\n void updateTicketUrlByOpenID(WeChatInfoEntity wechatInfo);\n\n /**\n * 取消关注\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET status=1 WHERE openid=#{openid}\")\n void updateStatusByOpenID(WeChatInfoEntity wechatInfo);\n\n\n /**\n * 更改status 状态\n * @param wechatInfo\n */\n @SelectProvider(type=WeChatInfoSqlProvider.class, method=\"updateByOpenIdSql\")\n void updateStatus(@Param(\"wechatInfo\") WeChatInfoEntity wechatInfo);\n\n @Select(\"SELECT * FROM wechat_info WHERE id = #{ID}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity selectWecahtUserByID(@Param(\"ID\")String ID);\n}",
"public void setInfoTableName(String name)\n\t{\n\t\tm_infosTableName = name;\n\t}",
"@Override\n public String getName() {\n return columnInfo.getName();\n }",
"organize_infoBean selectByPrimaryKey(Integer id);",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"UserInfoDao getUserInfoDao();",
"@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();",
"public ResultSet selectInfoAuto() {\n\t\tPreparedStatement prst;\n\t\ttry {\n\t\t\tprst = connection.prepareStatement(DbManagerUtils.SELECT_INFO_AUTO);\n\n\t\t\treturn prst.executeQuery();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}",
"public String info() {\n\t\t\tString instrumentsString = \" \";\n\t\t\tfor(Instruments i : Instruments.values()){\n\t\t\t\tinstrumentsString +=i.toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn (\"База данных представляет из себя набор старцев(обьектов Olders),\" +\"\\n\"+\n \"каждый из которых имеет поля :\" +\"\\n\"+\n \"id(уникальный идентификатор)\" +\"\\n\"+\n \"name(имя старца)\" +\"\\n\"+\n \"userid(уникальный идентификатор пользователя, который является его владельцем)\" +\"\\n\"+\n \"dateofinit-дата инициализация старца\");\n\t\t}",
"@MyBatisDao\npublic interface UserProfileMapper {\n UserProfile selectByPrimaryKey(long id);\n\n UserProfile selectByUserId(long userId);\n\n UserProfile selectByEmail(String email);\n\n int deleteByPrimaryKey(long id);\n\n int insert(UserProfile userProfile);\n\n int update(UserProfile userProfile);\n\n int updateAvatar(UserProfile userProfile);\n}",
"public PassengerData getInfoColumnData() {\n PassengerData passenger = new PassengerData();\n passenger.setDepBaggage(new Baggage());\n passenger.setRetBaggage(new Baggage());//creating bean for filling data in\n String fullName = InfoColumnPage.getInstance().getPassengerFullName();\n parseAndFillPassengerName(passenger, fullName);\n Set<String> rawBookingData = InfoColumnPage.getInstance().getDepPassengerRawData();//getting raw data from page\n for (String s :\n rawBookingData) {\n parseAndFillPassenger(s, passenger, true); //true stands for departure\n }//parsing raw data and filling bean for departure\n rawBookingData = InfoColumnPage.getInstance().getRetPassengerRawData();\n for (String s :\n rawBookingData) {\n parseAndFillPassenger(s, passenger, false); //true stands for departure\n }//parsing raw data and filling bean for return\n fillNonMentionedWithDefaults(passenger);//filling non mentioned values in page with its default values\n\n return passenger;\n }",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);",
"@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}",
"public String getInfoPkid() {\n return infoPkid;\n }",
"public interface UserInfoDAO {\n void addUserInfo(int id, String name, String surname, int positionId, Date bday, String magazine, String photo);\n List<UserInfo> getTable();\n UserInfo getUserInfoById(int id);\n void updateUserInfo(String newName, String newSurname, Date bday, int newPositionId, String newMagazine, int id);\n List<UserInfo> getForHead(String magazine);\n List<UserInfo> getForJournalist(String magazine);\n List<UserInfo> getForOwner();\n void updateUserPhoto(String photo, int id);\n}",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public void formDatabaseTable() {\n }",
"public String getEmployeeInfo() throws SQLException {\n String SQL = String.format(\"SELECT * FROM %s\", DbSchema.table_employees.name);\n Statement statement = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n ResultSet results = statement.executeQuery(SQL);\n\n //Prepare format stuff\n String tableHeader = String.format(\"%s %s %s %s %s\\n\", table_employees.cols.id, table_employees.cols.first_name, table_employees.cols.last_name, table_employees.cols.age, table_employees.cols.salary);\n StringBuilder output = new StringBuilder(tableHeader);\n DecimalFormat format = new DecimalFormat(\"#,###.00\");\n\n while (results.next()) {\n //Iterate through each row (employee) and add each bit of info to table\n String row = String.format(\"%s %s %s %s %s\\n\",\n results.getInt(table_employees.cols.id),\n results.getString(table_employees.cols.first_name),\n results.getString(table_employees.cols.last_name),\n results.getInt(table_employees.cols.age),\n format.format(results.getDouble(table_employees.cols.salary)));\n output.append(row);\n }\n return output.toString();\n }",
"@SqlQuery(\"select * from PLAYERSTATS\")\n List<PlayerStats> getAll();",
"public String infoName();",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}",
"@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}",
"public interface RelationInfoDao extends BaseDao<RelationInfoDO> {\n\n HashMap<String,String> getDependents(String tableNames);\n\n List<HashMap<String,String>> getParentTable(String tableNames);\n\n List<HashMap<String,String>> getChlidTable(String s);\n}",
"@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}",
"@Override\n public String toString() {\n return String.format(\"[%d] [%d]\", dameFila(), dameColumna());\n }",
"public interface EmpDao {\n\n\n /**\n * 根据参数查询列表\n * @param map\n * @return\n */\n\n// select empno,ENAME,job,mgr,hiredate,sal,comm,deptno from emp\n @Select(\"<script>\" +\n \"select a.empno,a.ename,a.job,a.mgr,to_char(a.hiredate,'yyyy-mm-dd') hiredate,a.sal,a.comm,a.deptno,a.mgrname,a.dname,a.rn from \" +\n \"(select b.*,rownum rn from \" +\n \"(select e.*,d.dname from (select e1.*,e2.ename mgrname from emp e1 left join emp e2 on e1.mgr=e2.empno) e left join dept d on e.deptno=d.deptno \" +\n \"<where>\" +\n \"<if test='ename!=null'>and e.ename like '%'||#{ename}||'%' </if>\" +\n \"<if test='job!=null'>and e.job like '%'||#{job}||'%' </if>\" +\n \"</where>\" +\n \"order by empno desc) b where rownum < #{end}) a where a.rn > #{start}\" +\n \"</script>\")\n List<Map> getList(Map map);\n\n\n /**\n * 带条件查询总条数\n * @param map\n * @return\n */\n @Select(\"<script>\"+\n \"select count(*) from emp <where>\" +\n \"<if test='ename != null'> and ename like '%${ename}%'</if>\"+\n \"<if test='job != null'> and job like '%${job}%'</if>\"+\n \"</where></script>\")\n int getPageCount(Map map);\n /**\n * 添加\n * @param map\n * @return\n */\n// seq_emp_id.nextval,ename, job, hiredate, sal, comm,deptno\n @Insert(\"insert into emp values(seq_emp_id.nextval,#{ENAME},#{JOB},#{MGR},to_date(#{HIREDATE},'yyyy-mm-dd'),#{SAL},#{COMM},#{DEPTNO})\")\n int add(Map map);\n\n\n /**\n * 更新\n * @param map\n * @return\n */\n @Update(\"update emp set ename=#{ENAME},job=#{JOB},mgr=#{MGR},hiredate=to_date(#{HIREDATE},'yyyy-mm-dd'),sal=#{SAL},comm=#{COMM},deptno=#{DEPTNO} where empno=#{EMPNO}\")\n int update(Map map);\n\n /**\n * 删除\n * @param deptNo\n * @return\n */\n @Delete(\"delete from emp where empno=#{EMPNO}\")\n int delete(int deptNo);\n\n /**\n * 获取所有部门,用于页面数据绑定\n * @return\n */\n @Select(\"select deptno,dname from dept\")\n List<Map> getDeptType();\n\n /**\n * 获取所有职位,用于页面数据绑定\n * @return\n */\n @Select(\"select distinct(job) from emp\")\n List<Map> getJob();\n\n /**\n * 获取上司,用于页面数据绑定\n * @return\n */\n @Select(\"select empno,ename from emp where job='PRESIDENT' or job='MANAGER' or job='ANALYST'\")\n List<Map> getMgr();\n\n\n}",
"@Mapper\npublic interface UserInfoDao {\n\n void create(UserInfo userInfo);\n //正常注册用户查询\n UserInfo findByLoginName(@Param(\"loginName\") String loginName);\n //扒取用户信息查询\n UserInfo findByLoginNameCrawler(@Param(\"loginName\") String loginName);\n\n void updateState(UserInfo userInfo);\n\n void updateCreateTime(UserInfo userInfo);\n\n void changePassword(UserInfo userInfo);\n\n UserInfo findByUserId(@Param(\"userId\") String userId);\n\n UserInfo findByUserIdAll(@Param(\"userId\") String userId);\n\n int friend(@Param(\"userId\")String userId,@Param(\"friendId\") String friendId);\n\n List<UserInfo> findByUserName(@Param(\"userName\") String userName);\n\n List<String> allLoginNames();\n}",
"public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }",
"public interface GirlMapper extends JpaRepository<Girl,Integer>{\n\n}",
"private String _columnInfo(int i, DBField f, boolean isDefined)\n {\n String ndx = StringTools.format(i,\"00\");\n String name = StringTools.leftAlign(f.getName(),22);\n String desc = isDefined? (\": \" + f.getTitle(null)) : \"\";\n String type = f.getSqlType();\n if (f.isPrimaryKey()) { type += \" key\"; }\n if (f.isAlternateKey()) { type += \" altkey\"; }\n if (f.isAutoIncrement()) { type += \" auto\"; }\n if (f.isUTF8()) { type += \" utf8\"; }\n type = StringTools.leftAlign(type, 32);\n return ndx + \") \" + name + \" \" + type + desc;\n }",
"public Impiegato getInfoImpiegato() throws SQLException,AziendaException,ParseException {\n\t\tUserQuery uq = ProxyDB.getIstance();\n\t\treturn uq.getInfoImpiegato(utente.getUsername());\n\t}",
"public String getMapTableName() {\n return getTableName(false, false, false, true);\n }",
"@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}",
"public String getNomTable();",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"@Override\n protected Map<TableUniqueName, String> tableSubstitution() {\n return ImmutableMap.of();\n }",
"public String toString() {\n return new ToStringBuilder(this)\n .append(\"name\", this.name)\n .append(\"type\", this.type)\n .append(\"sqlTable\", this.sqlTable)\n .append(\"sqlColumn\", this.sqlColumn)\n .append(\"typeLinkId\", this.typeLinkId)\n .toString();\n }",
"@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();",
"@Override\n public String toString() {\n String output = \"User Info for: \" + getId();\n output += \"\\n\\tName: \" + getFirstName() + \" \" + getLastName();\n output += \"\\n\\tCreated on: \" + DF.format(getEnrolDate());\n output += \"\\n\\tLast access: \" + DF.format(getLastAccess());\n \n return output;\n }",
"public String getDbTable() {return dbTable;}",
"public ResultSet getItemInfo() throws SQLException {\n\t\tConnection con = openDBConnection();\n\t\tStatement stmt = con.createStatement();\n\t\t/** Proceeds if user is logged in */\n\t\tString queryString = \"Select * From team1.GABES_ITEM i Where i.ITEM_ID='\"\n\t\t\t\t+ this.item_id + \"'\";\n\t\tResultSet result = stmt.executeQuery(queryString);\n\t\treturn result;\n\t}",
"private HashMap<Long, String> getTable() {\n return table;\n }",
"@Override\r\n\t\tpublic Alumni getAlumniDetails(String firstName) throws ClassNotFoundException, SQLException {\n\t\t\t\r\n\t\t\tConnection connection=ConnectionManager.openConnection();\r\n\t\t\tPreparedStatement statement=connection.prepareStatement(\"select * from alumni where first_name=?\");\r\n\t\t\tstatement.setString(1, firstName);\r\n\t\t\t\r\n\t\t\tResultSet resultSet=statement.executeQuery();\r\n\t\t\tAlumni alumni=new Alumni();\r\n\t\t\t\twhile(resultSet.next()) {\r\n\t\t\t\t\r\n\t\t\t\talumni.setAlumniId(resultSet.getInt(\"alumni_id\"));\r\n\t\t\t\talumni.setFirstName(resultSet.getString(\"first_name\"));\r\n\t\t\t\talumni.setLastName(resultSet.getString(\"last_name\"));\r\n\t\t\t\talumni.setEmailAddress(resultSet.getString(\"email\"));\r\n\t\t\t\talumni.setPhoneNumber(resultSet.getString(\"phone_number\"));\r\n\t\t alumni.setGender(resultSet.getString(\"gender\"));\r\n\t\t\t\talumni.setPresentStatus(resultSet.getString(\"present_status\"));\r\n\t\t\t\talumni.setYearOfCompletition(resultSet.getInt(\"year_of_completition\"));\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tConnectionManager.closeConnection();\r\n\t\t\treturn alumni;\r\n\t\t}",
"@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}",
"public int getSirinaTable() {\n\t\treturn this.sirinaTable;\n\t}",
"@Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number, id_firstcontact_doctor, password FROM patients;\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"password\", column = \"password\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n List<Patient> getAllPatientsDataToTable();",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}",
"public void generateAttributes() throws SQLException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, InstantiationException{\n ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring.xml\");\n //Get the EmployeeDAO Bean\n BasicDataDAO dataDAO = null;\n BasicData newData = null;\n \n \n if (tableName.equals(\"test\")) {\n\t\t\tdataDAO = ctx.getBean(\"testDAO\", TestDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Test(0, 99, \"Hello\", \"sample\", new Date());\n\t\t}else if (tableName.equals(\"utilisateur\")) {\n\t\t\tdataDAO = ctx.getBean(\"utilisateurDAO\", UtilisateurDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Utilisateur(0, \"handa\", \"handa-upsud\", \"admin\", 30);\n\t\t}else if (tableName.equals(\"source\")) {\n\t\t\tdataDAO = ctx.getBean(\"sourceDAO\", SourceDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Source(0, \"http\", \"srouce1\", \"haut\", \"France\", \"vertical\", 10, \"test\");\n\t\t}else if (tableName.equals(\"theme\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeDAO\", ThemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Theme(0, \"testTheme\");\n\t\t}else if (tableName.equals(\"themeRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeRelationDAO\", ThemeRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new ThemeRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"version\")) {\n\t\t\tdataDAO = ctx.getBean(\"versionDAO\", VersionDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Version(0, 1, \"url_serveur\", \"version\", new Date());\n\t\t}else if (tableName.equals(\"abonnementRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"abonnementRelationDAO\", AbonnementRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AbonnementRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"alerteRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"alerteRelationDAO\", AlerteRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AlerteRelation(0, 1, 1, 15, new Date(), \"sujet\", \"type\", \"statut\", \"description\");\n\t\t}else if (tableName.equals(\"blacklistageSysteme\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageSystemeDAO\", BlacklistageSystemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageSysteme(0, 1);\n\t\t}else if (tableName.equals(\"blacklistageUtilisateurRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageUtilisateurRelationDAO\", BlacklistageUtilisateurRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageUtilisateurRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"demandeModifRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"demandeModifRelationDAO\", DemandeModifRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new DemandeModifRelation(0, 1, 1, new Date(), \"type\", \"statut\", \"description\");\n\t\t}\n \n \n this.insert = dataDAO.insert(newData);\n //selecById\n BasicData t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.selectById = t.toString();\n\t\t}else {\n\t\t\tthis.selectById = \"rien\";\n\t\t}\n //update\n this.update = dataDAO.update(t);\n t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.resultatUpdate = t.toString();\n\t\t}else {\n\t\t\tthis.resultatUpdate = \"rien\";\n\t\t}\n //selectAll\n ArrayList<? extends BasicData> alTest = dataDAO.selectAll();\n this.selectAll = alTest.size();\n if (alTest.size()==0) {\n \tthis.ligne1 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne1 = alTest.get(0).toString();\n\t\t}\n //selectWhere\n String condition = \"id > 1\";\n this.condition = condition;\n ArrayList<? extends BasicData> alTest1 = dataDAO.selectWhere(condition);\n this.selectWhere = alTest1.size();\n if (alTest1.size()==0) {\n \tthis.ligne11 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne11 = alTest1.get(0).toString();\n\t\t}\n //deleteById\n this.deleteById = 99;\n //this.deleteById = dataDAO.deleteById(insert);\n }",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"String getTableName();",
"private void statsTable() {\n try (Connection connection = hikari.getConnection()) {\n try (PreparedStatement statement = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS `\" + TABLE_STATS + \"` \" +\n \"(id INT NOT NULL AUTO_INCREMENT UNIQUE, \" +\n \"uuid varchar(255) PRIMARY KEY, \" +\n \"name varchar(255), \" +\n \"kitSelected varchar(255), \" +\n \"points INT, \" +\n \"kills INT, \" +\n \"deaths INT, \" +\n \"killstreaks INT, \" +\n \"currentKillStreak INT, \" +\n \"inGame BOOLEAN)\")) {\n statement.execute();\n statement.close();\n connection.close();\n }\n } catch (SQLException e) {\n LogHandler.getHandler().logException(\"TableCreator:statsTable\", e);\n }\n }",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}",
"@MyBatisRepository\npublic interface UserMybatisDao {\n int register(User user);\n\n int updateUser(User user);\n\n String checkPhone(String phone);\n\n int perfectUserInfo(Map params);\n\n User findByToken(String uid);\n\n int checkIsRegisteredByPhone(String phone);\n\n User findByUserId(Long userId);\n}",
"@Override\n\tpublic List<SupplierView> getAllSupplierInfo() {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type, s.permanent_address, s.temporary_address,h.quantity,h.supplier_unique_id ,h.cost,h.buy_date,h.username,i.product_id, i.product_name FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id INNER JOIN product i on h.product_product_id=i.product_id\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().query(sql,rowmapper);\n\t}",
"@Override\n\tprotected Mapping getMapping() {\n\t\treturn new Mapping()\n\t\t\t.add(\"firstname\", driver.getFirstName())\n\t\t\t.add(\"lastname\", driver.getLastName())\n\t\t\t.add(\"dateofbirth\", driver.getDateOfBirth())\n\t\t\t.add(\"gender\", driver.getGender())\n\t\t\t.add(\"age\", computeAge())\n\t\t\t.add(\"numberOfAccidents\", driver.getNumberOfAccidents())\n\t\t\t.add(\"numberOfTickets\", driver.getNumberOfTickets());\n\t}",
"@Override\n\tprotected DoublyIndexedTable<String, String> getTraitInformationTable() {\n\t\treturn xmlTraitInformation;\n\t}",
"@Override\n\tpublic List<Map<String, Object>> queryrecord(Employee bi, String name, String userinfoid, Integer start,\n\t\t\tInteger limit) {\n\t\tStringBuffer hql = new StringBuffer(\"select gb,ti,mi,u from Giftbox gb,ToysInfo ti,MachineInfo mi,UserInfo u where gb.fuserinfoid = u.id and gb.fmachineid = mi.id and gb.ftoysid = ti.id and gb.fuserinfoid = \")\n\t\t\t\t.append(Long.parseLong(userinfoid));\n\t\thql = hql.append(\" order by gb.createtime desc\");\n\t\tList<Object[]> lst = databaseHelper.getResultListByHql(hql.toString(),start,limit);\n\t\tList<Map<String,Object>> lstMap = new ArrayList<Map<String,Object>>();\n\t\t\n\t\tfor (Object[] objects : lst) {\n\t\t\tGiftbox g = (Giftbox)objects[0];\n\t\t\tToysInfo t =(ToysInfo) objects[1];\n\t\t\tMachineInfo m = (MachineInfo) objects[2];\n\t\t\tUserInfo u = (UserInfo) objects[3];\n\t\t\t\n\t\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\t\tmap.put(\"id\", g.getId());\n\t\t\tmap.put(\"username\", u.getUsername());\n\t\t\tmap.put(\"toyname\", t.getName());\n\t\t\tmap.put(\"machineno\", m.getMachineno());\n\t\t\tmap.put(\"photo\", g.getPhoto());\n\t\t\tmap.put(\"getphoto\", g.getGetphoto());\n\t\t\tmap.put(\"state\", g.getState()==-1?\"失效\":g.getState()==0?\"新获得\":g.getState()==1?\"配货中\":\"已发货\");\n\t\t\tmap.put(\"time\", u.getCreatetime().toString());\n\t\t\t\n\t\t\t\n\t\t\tlstMap.add(map);\n\t\t}\n\t\t\n\t\treturn lstMap;\n\t}",
"@Override\r\n\tpublic String generate() {\r\n\t\tStringBuilder query = new StringBuilder();\r\n\r\n\t\tquery.append(\"INSERT INTO \").append(tableName).append(\" (\");\r\n\t\tfor (int i = 0; i < fieldNames.size(); i++) {\r\n\t\t\tquery.append(fieldNames.get(i));\r\n\t\t\tif (i < fieldNames.size() - 1) {\r\n\t\t\t\tquery.append(\", \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tquery.append(\") VALUES (\");\r\n\t\tfor (int i = 0; i < fieldValues.size(); i++) {\r\n\t\t\tquery.append(\"'\").append(fieldValues.get(i)).append(\"'\");\r\n\t\t\tif (i < fieldValues.size() - 1) {\r\n\t\t\t\tquery.append(\", \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tquery.append(\");\");\r\n\t\treturn query.toString();\r\n\t}",
"public UserInfoEntity toUserInfoEntity(){\n UserInfoEntity userInfoEntity = new UserInfoEntity();\n userInfoEntity.setUserId(IdGen.getNewUserID());\n userInfoEntity.setCreateBy(name);\n userInfoEntity.setCreateOn(DateUtils.getDate());\n return toUserInfoEntity(userInfoEntity);\n }",
"public java.lang.String getInfoId() {\n return infoId;\n }",
"public interface NotationMapper {\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"<script>SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME FROM NOTATION \",\n \"<if test='type != \\\"\\\"'>WHERE TYPE = #{type}, </if>\",\n \"</script>\"})\n List<JSONObject> getNotationList(@Param(\"type\") String type);\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME \",\n \"FROM NOTATION WHERE LOCATE(#{title},TITLE) OR LOCATE(#{title},SUBTITLE)\"\n })\n List<JSONObject> fuzzyByTitle(@Param(\"title\")String title);\n\n @Insert({\"INSERT INTO NOTATION (TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME)\" +\n \"VALUES(#{title},#{subtitle},#{bio},#{notationUrl},#{bmgUrl},#{authorUrl},#{accTitle},#{accUrl},#{type},\" +\n \"#{resourceUrl},#{createTime})\"})\n void addNotation(JSONObject reqJson);\n}",
"public String toString()\n {\n return this.getUntranslatedTableName();\n }",
"public TableInfo getTableInfoParticipantVisit()\n {\n return getSchema().getTable(\"ParticipantVisit\");\n }",
"public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }",
"public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}",
"@Override\n public String asTableDbName() {\n return \"user\";\n }",
"public String getName() { return _sqlName; }",
"protected String getTableName()\n {\n return immutableGetTableName();\n }",
"public String toString() {\n return \"[JDBCRawSqlQueryMetaData : method=\" + method + \"]\";\n }",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}",
"public interface WarningLogMapper {\n\n @Select(\"SELECT * \"\n + \" FROM warning_log \"\n + \"where devEUI = #{devEUI} and status=#{status} \")\n List<WarningLog> queryByDevAndStatus(@Param(\"devEUI\") String devEUI,@Param(\"status\") String status);\n\n @Select(\"SELECT * \"\n + \" FROM warning_log \"\n + \"where id = #{id} \")\n WarningLog queryWarningLog(@Param(\"id\") String id);\n\n @Select(\"<script>\"\n +\"SELECT * FROM warning_log where devEUI in \"\n + \"<foreach collection=\\\"list\\\" open=\\\"(\\\" close=\\\")\\\" separator=\\\",\\\" item=\\\"uid\\\" >\"\n + \"#{uid}\"\n + \"</foreach>\"\n + \"<if test =\\\"status !=null and status!=''\\\"> and status = #{start} </if>\"\n +\" order by status asc, createTime desc \"\n +\"</script>\")\n List<WarningLog> queryWarningLogByDevIds(@Param(\"list\") List<String> list, @Param(\"status\") String status);\n\n @Insert(\"insert into warning_log (devEUI,time,fPort,gatewayCount,rssi,fCnt,loRaSNR,data,devicePath,functionCode,dataLen,status,createTime)\"\n + \" values( #{devEUI},#{time},#{fPort},#{gatewayCount},#{rssi},#{fCnt},#{loRaSNR},#{data},#{devicePath},#{functionCode},#{dataLen}, #{status},#{createTime} ) \")\n int saveWarningLog(WarningLog log);\n\n /**\n * 将故障的设备标记为已修复\n * @param status\n * @param updateTime\n * @param devEUI\n * @return\n */\n @Update(\"update warning_log set status = #{status}, updateTime = #{updateTime} where devEUI=#{devEUI} and status ='0' \")\n int updateStatus(@Param(\"status\") String status, @Param(\"updateTime\") Date updateTime, @Param(\"devEUI\") String devEUI);\n\n @Select(\"<script>\"\n +\"SELECT count(id) FROM warning_log where devEUI in \"\n + \"<foreach collection=\\\"list\\\" open=\\\"(\\\" close=\\\")\\\" separator=\\\",\\\" item=\\\"uid\\\" >\"\n + \"#{uid}\"\n + \"</foreach>\"\n + \"<if test =\\\"status !=null and status!=''\\\"> and status = #{status} </if>\"\n +\"</script>\")\n int queryFaultCount(@Param(\"list\") List<String> list, @Param(\"status\") String status);\n\n\n}",
"public interface TableMetaData {\n\n\t/** Adds normal column. */\n\tpublic void addColumn(final ColumnMetaData column);\n\n\t/** Adds primary key column. */\n\tpublic void addPrimaryKey(final ColumnMetaData column);\n\n\t/** Returns map of column meta data, keyed by the column label (the alias if provided in the query, otherwise the name). */\n\tpublic Map<String, ColumnMetaData> getColumns();\n\n\t/** Returns database name. */\n\tpublic String getDatabaseName();\n\n\t/** Returns ordered list of columns that are primary keys. */\n\tpublic List<ColumnMetaData> getPrimaryKeys();\n\n\t/**\n\t * Returns fully qualified table name in database-specific form for use in SQL statements. MySQL uses the form\n\t * <code>database.table</code>, for example <code>sakila.film</code>. PostgreSQL uses the form\n\t * <code>database.schema.table</code>, for example <code>sakila.public.film</code>.\n\t */\n\tpublic String getQualifiedTableName();\n\n\t/** Returns row alias. */\n\tpublic String getRowAlias();\n\t\n\t/** Returns row set alias. */\n\tpublic String getRowSetAlias();\n\t\n\t/**\n\t * Returns row alias.\n\t * \n * @deprecated As of 0.8.11 use {@link #getRowAlias()}\n\t */\n\t@Deprecated\n\tpublic String getTableAlias();\n\n\t/** Returns table name. */\n\tpublic String getTableName();\n\n\t/** Returns role of table in the SQL Resource. */\n\tpublic TableRole getTableRole();\n\n\t/** Returns true if the SQL Resource role is child. */\n\tpublic boolean isChild();\n\n\t/** Returns true if the SQL Resource role is parent. */\n\tpublic boolean isParent();\n\n\t/** Sets all the row and row set aliases. */\n\tpublic void setAliases(final String alias, final String rowAlias, final String rowSetAlias);\n\n\t/** Sets attributes. */\n\tpublic void setAttributes(final String tableName, final String qualifedTableName,\n\t\t\tfinal String databaseName, final TableRole tableRole);\n\n\t/**\n\t * Sets table alias.\n\t * \n * @deprecated As of 0.8.11 use {@link #setAliases(String, String, String)}\n\t */\n\t@Deprecated\n\tpublic void setTableAlias(final String tableAlias);\n\t\n\t/** Represents all of the roles a table may plan in a SQL Resource. */\n\t@XmlType(namespace = \"http://restsql.org/schema\")\n\tpublic enum TableRole {\n\t\tChild, ChildExtension, Join, Parent, ParentExtension, Unknown;\n\t}\n}",
"@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}",
"public interface ICriteriaWhen {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table sale_classify_good\n *\n * @mbg.generated\n * @project https://github.com/itfsw/mybatis-generator-plugin\n */\n void criteria(Criteria criteria);\n }",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"@Repository\npublic interface UserMapper extends Serializable{\n\n /**\n * get the user info by the user id\n * @param user_id\n * @return\n */\n UserInfo getUserById(Integer user_id);\n\n /**\n * you want to get the user id list by the user nick name\n * @param nick_name the nick name\n * @return the user id list\n */\n List<Integer> getUsersByNickName(String nick_name);\n\n /**\n * you want to get the user info list by the id list\n * @param idList the id list\n * @return the user info list\n */\n List<UserInfo> getUserListByIdLists(List<Integer> idList);\n\n /**\n * you want to get the user info by the user nickname and the sex\n * @param map keys = {'nickname','sex'}\n * @return the result list\n */\n List<UserInfo> getUserByNickNameAndSex(Map<String,String> map);\n\n /**\n * you want to get your friends by your user id\n * @param user_id the user id\n * @return a list contains the friends of you\n */\n List<UserInfo> getFriendsOfMine(Integer user_id);\n\n /**\n * get the user's friends details\n * @param user_id the user id\n * @return the friends list\n */\n UserFriendsEntry getUserFriendsList(Integer user_id);\n\n /**\n * get the friends' friends\n * @param user_id the user id\n * @return the object of com.hujian.mvc.model.UserFriendsFriends\n */\n UserFriendsFriendsEntry getFriendsFriends(Integer user_id);\n\n /**\n * insert an user\n * @param userEntry\n * @return\n */\n Integer insertUser(InsertUserEntry userEntry);\n\n /**\n * remove an user from database\n * @param user_id\n * @return\n */\n Integer removeUserByUserId(Integer user_id);\n\n /**\n * update the user info\n * @param updateEntry the new user info\n * @return -1 means update error\n */\n Integer updateUserInfo(UpdateEntry updateEntry);\n\n\n}",
"public interface Columns {\r\n public static final String LOGIN_ID = \"login_id\";\r\n public static final String PASSWORD = \"password\";\r\n public static final String ADDRESS = \"address\";\r\n public static final String FEE = \"fee\";\r\n public static final String GRACE_PERIOD = \"grace_period\";\r\n public static final String USEREMAIL = \"user_email\";\r\n }",
"public void showInfo() throws SQLException { //to show the info when the page is loaded\n \tshowInfoDump();\n \tshowInfoMatl();\n }",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}",
"@Dao\npublic interface UserDao {\n @Query(\"SELECT * FROM userInfo\")\n List<UserInfo> getAllUser();\n\n @Query(\"SELECT * FROM userInfo where emp_first_name LIKE :firstName AND emp_last_name LIKE :lastName\")\n UserInfo getUserByName(String firstName,String lastName);\n\n @Query(\"SELECT COUNT(*) from userInfo\")\n int getUserCount();\n\n @Insert(onConflict = REPLACE)\n void insertUser(UserInfo... userInfos);\n\n @Delete\n void delete(UserInfo userInfo);\n\n\n}",
"UserInfoUserinfo selectByPrimaryKey(Integer userid);",
"@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);",
"@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}",
"public abstract String toSQL();",
"@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}"
] | [
"0.5685485",
"0.55820286",
"0.5461696",
"0.5428449",
"0.5405064",
"0.5360673",
"0.5335233",
"0.53341687",
"0.52471906",
"0.5223161",
"0.52173954",
"0.51712567",
"0.5155304",
"0.5129311",
"0.5104327",
"0.50960326",
"0.50907195",
"0.50757074",
"0.5071812",
"0.50656956",
"0.5056595",
"0.505251",
"0.5046959",
"0.50458866",
"0.5045078",
"0.50430655",
"0.5038722",
"0.50385916",
"0.5037644",
"0.5019134",
"0.5018356",
"0.5008766",
"0.49971515",
"0.49932882",
"0.49894568",
"0.49891362",
"0.49867392",
"0.49832344",
"0.4981178",
"0.49807543",
"0.49779207",
"0.4964674",
"0.49618402",
"0.49565336",
"0.49509636",
"0.49505332",
"0.4940189",
"0.49358848",
"0.49283263",
"0.49197677",
"0.49182388",
"0.4916642",
"0.4913684",
"0.49123082",
"0.490554",
"0.49038735",
"0.490161",
"0.48989725",
"0.489755",
"0.4895894",
"0.48928505",
"0.48878574",
"0.48845363",
"0.48795",
"0.4878641",
"0.48760113",
"0.4864728",
"0.485572",
"0.48532164",
"0.48512265",
"0.48486066",
"0.48466715",
"0.48455378",
"0.4836225",
"0.48341888",
"0.48334143",
"0.4831437",
"0.48297825",
"0.48293424",
"0.48226923",
"0.4822518",
"0.4822011",
"0.48186862",
"0.4815772",
"0.48123848",
"0.4812189",
"0.48113436",
"0.4803974",
"0.48030925",
"0.48016107",
"0.47995025",
"0.4797653",
"0.47937524",
"0.47914296",
"0.47908086",
"0.47907925",
"0.47873875",
"0.47851524",
"0.4781219",
"0.47757518",
"0.47746983"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table girl_info | GirlInfo selectByPrimaryKey(Integer id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BaseTableInfo info() {\n return info;\n }",
"@Override\n public List<Information> findAllInfo() {\n return infoDao.findAll();\n }",
"ResultSet getGeneralInfo() {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \t\tString query = \"SELECT ID, Name, Type1Name, Type2Name, Height, Weight, Hab, evolvesFrom \"\n \t\t\t\t+ \"FROM pokemon \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT TypeID AS T1, Name AS Type1Name FROM types) on type1 = t1 \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT TypeID AS T2, Name AS Type2Name FROM Types) ON type2 = t2 \"\n \t\t\t\t+ \"NATURAL JOIN (SELECT Name AS Hab, HabitatID FROM Habitats) \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT id as tempid, evolvesfrom from pokemon \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT evolvedid, name as evolvesfrom from pokemon, evolutions WHERE pokemon.id = babyid) on id = evolvedid) on id = tempid\";\n \t\t\n \t\treturn search.executeQuery(query);\n \t\t\n \t} catch (SQLException e) {\n \t\te.printStackTrace();\n \t\treturn null;\n \t}\n }",
"@Mapper\npublic interface WeChatInfoDao {\n\n\n /**\n * 插入微信信息\n * @param wechatInfo\n * @return\n */\n @Insert(\"INSERT INTO wechat_info(parentid,unionid,openid,nickname,sex,province,city,country,headImgUrl,\" +\n \"status,ticket_url,ticket,is_guide,reward) VALUES(#{parentid},#{unionid},#{openid},#{nickname},#{sex},#{province}\" +\n \",#{city},#{country},#{headImgUrl},#{status},#{ticketUrl},#{ticket},#{isGuide},#{reward})\")\n @Options(useGeneratedKeys=true, keyProperty=\"id\")\n int insert(WeChatInfoEntity wechatInfo);\n\n /**\n * 根据openID 查找用户信息\n * @param openid\n * @return\n */\n @Select(\"SELECT * FROM wechat_info WHERE openid = #{openid}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"nickname\", property = \"nickname\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity findByOpenID(@Param(\"openid\") String openid);\n\n /**\n * 根据openID 修改二维码信息\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET ticket_url=#{ticketUrl},ticket=#{ticket} WHERE openid=#{openid}\")\n void updateTicketUrlByOpenID(WeChatInfoEntity wechatInfo);\n\n /**\n * 取消关注\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET status=1 WHERE openid=#{openid}\")\n void updateStatusByOpenID(WeChatInfoEntity wechatInfo);\n\n\n /**\n * 更改status 状态\n * @param wechatInfo\n */\n @SelectProvider(type=WeChatInfoSqlProvider.class, method=\"updateByOpenIdSql\")\n void updateStatus(@Param(\"wechatInfo\") WeChatInfoEntity wechatInfo);\n\n @Select(\"SELECT * FROM wechat_info WHERE id = #{ID}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity selectWecahtUserByID(@Param(\"ID\")String ID);\n}",
"public void setInfoTableName(String name)\n\t{\n\t\tm_infosTableName = name;\n\t}",
"organize_infoBean selectByPrimaryKey(Integer id);",
"@Override\n public String getName() {\n return columnInfo.getName();\n }",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"UserInfoDao getUserInfoDao();",
"@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();",
"public ResultSet selectInfoAuto() {\n\t\tPreparedStatement prst;\n\t\ttry {\n\t\t\tprst = connection.prepareStatement(DbManagerUtils.SELECT_INFO_AUTO);\n\n\t\t\treturn prst.executeQuery();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}",
"public String info() {\n\t\t\tString instrumentsString = \" \";\n\t\t\tfor(Instruments i : Instruments.values()){\n\t\t\t\tinstrumentsString +=i.toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn (\"База данных представляет из себя набор старцев(обьектов Olders),\" +\"\\n\"+\n \"каждый из которых имеет поля :\" +\"\\n\"+\n \"id(уникальный идентификатор)\" +\"\\n\"+\n \"name(имя старца)\" +\"\\n\"+\n \"userid(уникальный идентификатор пользователя, который является его владельцем)\" +\"\\n\"+\n \"dateofinit-дата инициализация старца\");\n\t\t}",
"@MyBatisDao\npublic interface UserProfileMapper {\n UserProfile selectByPrimaryKey(long id);\n\n UserProfile selectByUserId(long userId);\n\n UserProfile selectByEmail(String email);\n\n int deleteByPrimaryKey(long id);\n\n int insert(UserProfile userProfile);\n\n int update(UserProfile userProfile);\n\n int updateAvatar(UserProfile userProfile);\n}",
"public PassengerData getInfoColumnData() {\n PassengerData passenger = new PassengerData();\n passenger.setDepBaggage(new Baggage());\n passenger.setRetBaggage(new Baggage());//creating bean for filling data in\n String fullName = InfoColumnPage.getInstance().getPassengerFullName();\n parseAndFillPassengerName(passenger, fullName);\n Set<String> rawBookingData = InfoColumnPage.getInstance().getDepPassengerRawData();//getting raw data from page\n for (String s :\n rawBookingData) {\n parseAndFillPassenger(s, passenger, true); //true stands for departure\n }//parsing raw data and filling bean for departure\n rawBookingData = InfoColumnPage.getInstance().getRetPassengerRawData();\n for (String s :\n rawBookingData) {\n parseAndFillPassenger(s, passenger, false); //true stands for departure\n }//parsing raw data and filling bean for return\n fillNonMentionedWithDefaults(passenger);//filling non mentioned values in page with its default values\n\n return passenger;\n }",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);",
"@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}",
"public String getInfoPkid() {\n return infoPkid;\n }",
"public interface UserInfoDAO {\n void addUserInfo(int id, String name, String surname, int positionId, Date bday, String magazine, String photo);\n List<UserInfo> getTable();\n UserInfo getUserInfoById(int id);\n void updateUserInfo(String newName, String newSurname, Date bday, int newPositionId, String newMagazine, int id);\n List<UserInfo> getForHead(String magazine);\n List<UserInfo> getForJournalist(String magazine);\n List<UserInfo> getForOwner();\n void updateUserPhoto(String photo, int id);\n}",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public String getEmployeeInfo() throws SQLException {\n String SQL = String.format(\"SELECT * FROM %s\", DbSchema.table_employees.name);\n Statement statement = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n ResultSet results = statement.executeQuery(SQL);\n\n //Prepare format stuff\n String tableHeader = String.format(\"%s %s %s %s %s\\n\", table_employees.cols.id, table_employees.cols.first_name, table_employees.cols.last_name, table_employees.cols.age, table_employees.cols.salary);\n StringBuilder output = new StringBuilder(tableHeader);\n DecimalFormat format = new DecimalFormat(\"#,###.00\");\n\n while (results.next()) {\n //Iterate through each row (employee) and add each bit of info to table\n String row = String.format(\"%s %s %s %s %s\\n\",\n results.getInt(table_employees.cols.id),\n results.getString(table_employees.cols.first_name),\n results.getString(table_employees.cols.last_name),\n results.getInt(table_employees.cols.age),\n format.format(results.getDouble(table_employees.cols.salary)));\n output.append(row);\n }\n return output.toString();\n }",
"public void formDatabaseTable() {\n }",
"@SqlQuery(\"select * from PLAYERSTATS\")\n List<PlayerStats> getAll();",
"public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}",
"public String infoName();",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}",
"public interface RelationInfoDao extends BaseDao<RelationInfoDO> {\n\n HashMap<String,String> getDependents(String tableNames);\n\n List<HashMap<String,String>> getParentTable(String tableNames);\n\n List<HashMap<String,String>> getChlidTable(String s);\n}",
"@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}",
"@Override\n public String toString() {\n return String.format(\"[%d] [%d]\", dameFila(), dameColumna());\n }",
"public interface EmpDao {\n\n\n /**\n * 根据参数查询列表\n * @param map\n * @return\n */\n\n// select empno,ENAME,job,mgr,hiredate,sal,comm,deptno from emp\n @Select(\"<script>\" +\n \"select a.empno,a.ename,a.job,a.mgr,to_char(a.hiredate,'yyyy-mm-dd') hiredate,a.sal,a.comm,a.deptno,a.mgrname,a.dname,a.rn from \" +\n \"(select b.*,rownum rn from \" +\n \"(select e.*,d.dname from (select e1.*,e2.ename mgrname from emp e1 left join emp e2 on e1.mgr=e2.empno) e left join dept d on e.deptno=d.deptno \" +\n \"<where>\" +\n \"<if test='ename!=null'>and e.ename like '%'||#{ename}||'%' </if>\" +\n \"<if test='job!=null'>and e.job like '%'||#{job}||'%' </if>\" +\n \"</where>\" +\n \"order by empno desc) b where rownum < #{end}) a where a.rn > #{start}\" +\n \"</script>\")\n List<Map> getList(Map map);\n\n\n /**\n * 带条件查询总条数\n * @param map\n * @return\n */\n @Select(\"<script>\"+\n \"select count(*) from emp <where>\" +\n \"<if test='ename != null'> and ename like '%${ename}%'</if>\"+\n \"<if test='job != null'> and job like '%${job}%'</if>\"+\n \"</where></script>\")\n int getPageCount(Map map);\n /**\n * 添加\n * @param map\n * @return\n */\n// seq_emp_id.nextval,ename, job, hiredate, sal, comm,deptno\n @Insert(\"insert into emp values(seq_emp_id.nextval,#{ENAME},#{JOB},#{MGR},to_date(#{HIREDATE},'yyyy-mm-dd'),#{SAL},#{COMM},#{DEPTNO})\")\n int add(Map map);\n\n\n /**\n * 更新\n * @param map\n * @return\n */\n @Update(\"update emp set ename=#{ENAME},job=#{JOB},mgr=#{MGR},hiredate=to_date(#{HIREDATE},'yyyy-mm-dd'),sal=#{SAL},comm=#{COMM},deptno=#{DEPTNO} where empno=#{EMPNO}\")\n int update(Map map);\n\n /**\n * 删除\n * @param deptNo\n * @return\n */\n @Delete(\"delete from emp where empno=#{EMPNO}\")\n int delete(int deptNo);\n\n /**\n * 获取所有部门,用于页面数据绑定\n * @return\n */\n @Select(\"select deptno,dname from dept\")\n List<Map> getDeptType();\n\n /**\n * 获取所有职位,用于页面数据绑定\n * @return\n */\n @Select(\"select distinct(job) from emp\")\n List<Map> getJob();\n\n /**\n * 获取上司,用于页面数据绑定\n * @return\n */\n @Select(\"select empno,ename from emp where job='PRESIDENT' or job='MANAGER' or job='ANALYST'\")\n List<Map> getMgr();\n\n\n}",
"@Mapper\npublic interface UserInfoDao {\n\n void create(UserInfo userInfo);\n //正常注册用户查询\n UserInfo findByLoginName(@Param(\"loginName\") String loginName);\n //扒取用户信息查询\n UserInfo findByLoginNameCrawler(@Param(\"loginName\") String loginName);\n\n void updateState(UserInfo userInfo);\n\n void updateCreateTime(UserInfo userInfo);\n\n void changePassword(UserInfo userInfo);\n\n UserInfo findByUserId(@Param(\"userId\") String userId);\n\n UserInfo findByUserIdAll(@Param(\"userId\") String userId);\n\n int friend(@Param(\"userId\")String userId,@Param(\"friendId\") String friendId);\n\n List<UserInfo> findByUserName(@Param(\"userName\") String userName);\n\n List<String> allLoginNames();\n}",
"public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }",
"public interface GirlMapper extends JpaRepository<Girl,Integer>{\n\n}",
"public Impiegato getInfoImpiegato() throws SQLException,AziendaException,ParseException {\n\t\tUserQuery uq = ProxyDB.getIstance();\n\t\treturn uq.getInfoImpiegato(utente.getUsername());\n\t}",
"private String _columnInfo(int i, DBField f, boolean isDefined)\n {\n String ndx = StringTools.format(i,\"00\");\n String name = StringTools.leftAlign(f.getName(),22);\n String desc = isDefined? (\": \" + f.getTitle(null)) : \"\";\n String type = f.getSqlType();\n if (f.isPrimaryKey()) { type += \" key\"; }\n if (f.isAlternateKey()) { type += \" altkey\"; }\n if (f.isAutoIncrement()) { type += \" auto\"; }\n if (f.isUTF8()) { type += \" utf8\"; }\n type = StringTools.leftAlign(type, 32);\n return ndx + \") \" + name + \" \" + type + desc;\n }",
"@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }",
"public String getMapTableName() {\n return getTableName(false, false, false, true);\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}",
"public String getNomTable();",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"@Override\n protected Map<TableUniqueName, String> tableSubstitution() {\n return ImmutableMap.of();\n }",
"public String toString() {\n return new ToStringBuilder(this)\n .append(\"name\", this.name)\n .append(\"type\", this.type)\n .append(\"sqlTable\", this.sqlTable)\n .append(\"sqlColumn\", this.sqlColumn)\n .append(\"typeLinkId\", this.typeLinkId)\n .toString();\n }",
"@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();",
"@Override\n public String toString() {\n String output = \"User Info for: \" + getId();\n output += \"\\n\\tName: \" + getFirstName() + \" \" + getLastName();\n output += \"\\n\\tCreated on: \" + DF.format(getEnrolDate());\n output += \"\\n\\tLast access: \" + DF.format(getLastAccess());\n \n return output;\n }",
"public ResultSet getItemInfo() throws SQLException {\n\t\tConnection con = openDBConnection();\n\t\tStatement stmt = con.createStatement();\n\t\t/** Proceeds if user is logged in */\n\t\tString queryString = \"Select * From team1.GABES_ITEM i Where i.ITEM_ID='\"\n\t\t\t\t+ this.item_id + \"'\";\n\t\tResultSet result = stmt.executeQuery(queryString);\n\t\treturn result;\n\t}",
"public String getDbTable() {return dbTable;}",
"@Override\r\n\t\tpublic Alumni getAlumniDetails(String firstName) throws ClassNotFoundException, SQLException {\n\t\t\t\r\n\t\t\tConnection connection=ConnectionManager.openConnection();\r\n\t\t\tPreparedStatement statement=connection.prepareStatement(\"select * from alumni where first_name=?\");\r\n\t\t\tstatement.setString(1, firstName);\r\n\t\t\t\r\n\t\t\tResultSet resultSet=statement.executeQuery();\r\n\t\t\tAlumni alumni=new Alumni();\r\n\t\t\t\twhile(resultSet.next()) {\r\n\t\t\t\t\r\n\t\t\t\talumni.setAlumniId(resultSet.getInt(\"alumni_id\"));\r\n\t\t\t\talumni.setFirstName(resultSet.getString(\"first_name\"));\r\n\t\t\t\talumni.setLastName(resultSet.getString(\"last_name\"));\r\n\t\t\t\talumni.setEmailAddress(resultSet.getString(\"email\"));\r\n\t\t\t\talumni.setPhoneNumber(resultSet.getString(\"phone_number\"));\r\n\t\t alumni.setGender(resultSet.getString(\"gender\"));\r\n\t\t\t\talumni.setPresentStatus(resultSet.getString(\"present_status\"));\r\n\t\t\t\talumni.setYearOfCompletition(resultSet.getInt(\"year_of_completition\"));\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tConnectionManager.closeConnection();\r\n\t\t\treturn alumni;\r\n\t\t}",
"private HashMap<Long, String> getTable() {\n return table;\n }",
"@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}",
"@Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number, id_firstcontact_doctor, password FROM patients;\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"password\", column = \"password\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n List<Patient> getAllPatientsDataToTable();",
"public int getSirinaTable() {\n\t\treturn this.sirinaTable;\n\t}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}",
"public void generateAttributes() throws SQLException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, InstantiationException{\n ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring.xml\");\n //Get the EmployeeDAO Bean\n BasicDataDAO dataDAO = null;\n BasicData newData = null;\n \n \n if (tableName.equals(\"test\")) {\n\t\t\tdataDAO = ctx.getBean(\"testDAO\", TestDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Test(0, 99, \"Hello\", \"sample\", new Date());\n\t\t}else if (tableName.equals(\"utilisateur\")) {\n\t\t\tdataDAO = ctx.getBean(\"utilisateurDAO\", UtilisateurDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Utilisateur(0, \"handa\", \"handa-upsud\", \"admin\", 30);\n\t\t}else if (tableName.equals(\"source\")) {\n\t\t\tdataDAO = ctx.getBean(\"sourceDAO\", SourceDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Source(0, \"http\", \"srouce1\", \"haut\", \"France\", \"vertical\", 10, \"test\");\n\t\t}else if (tableName.equals(\"theme\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeDAO\", ThemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Theme(0, \"testTheme\");\n\t\t}else if (tableName.equals(\"themeRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeRelationDAO\", ThemeRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new ThemeRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"version\")) {\n\t\t\tdataDAO = ctx.getBean(\"versionDAO\", VersionDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Version(0, 1, \"url_serveur\", \"version\", new Date());\n\t\t}else if (tableName.equals(\"abonnementRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"abonnementRelationDAO\", AbonnementRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AbonnementRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"alerteRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"alerteRelationDAO\", AlerteRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AlerteRelation(0, 1, 1, 15, new Date(), \"sujet\", \"type\", \"statut\", \"description\");\n\t\t}else if (tableName.equals(\"blacklistageSysteme\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageSystemeDAO\", BlacklistageSystemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageSysteme(0, 1);\n\t\t}else if (tableName.equals(\"blacklistageUtilisateurRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageUtilisateurRelationDAO\", BlacklistageUtilisateurRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageUtilisateurRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"demandeModifRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"demandeModifRelationDAO\", DemandeModifRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new DemandeModifRelation(0, 1, 1, new Date(), \"type\", \"statut\", \"description\");\n\t\t}\n \n \n this.insert = dataDAO.insert(newData);\n //selecById\n BasicData t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.selectById = t.toString();\n\t\t}else {\n\t\t\tthis.selectById = \"rien\";\n\t\t}\n //update\n this.update = dataDAO.update(t);\n t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.resultatUpdate = t.toString();\n\t\t}else {\n\t\t\tthis.resultatUpdate = \"rien\";\n\t\t}\n //selectAll\n ArrayList<? extends BasicData> alTest = dataDAO.selectAll();\n this.selectAll = alTest.size();\n if (alTest.size()==0) {\n \tthis.ligne1 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne1 = alTest.get(0).toString();\n\t\t}\n //selectWhere\n String condition = \"id > 1\";\n this.condition = condition;\n ArrayList<? extends BasicData> alTest1 = dataDAO.selectWhere(condition);\n this.selectWhere = alTest1.size();\n if (alTest1.size()==0) {\n \tthis.ligne11 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne11 = alTest1.get(0).toString();\n\t\t}\n //deleteById\n this.deleteById = 99;\n //this.deleteById = dataDAO.deleteById(insert);\n }",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"String getTableName();",
"private void statsTable() {\n try (Connection connection = hikari.getConnection()) {\n try (PreparedStatement statement = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS `\" + TABLE_STATS + \"` \" +\n \"(id INT NOT NULL AUTO_INCREMENT UNIQUE, \" +\n \"uuid varchar(255) PRIMARY KEY, \" +\n \"name varchar(255), \" +\n \"kitSelected varchar(255), \" +\n \"points INT, \" +\n \"kills INT, \" +\n \"deaths INT, \" +\n \"killstreaks INT, \" +\n \"currentKillStreak INT, \" +\n \"inGame BOOLEAN)\")) {\n statement.execute();\n statement.close();\n connection.close();\n }\n } catch (SQLException e) {\n LogHandler.getHandler().logException(\"TableCreator:statsTable\", e);\n }\n }",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}",
"@MyBatisRepository\npublic interface UserMybatisDao {\n int register(User user);\n\n int updateUser(User user);\n\n String checkPhone(String phone);\n\n int perfectUserInfo(Map params);\n\n User findByToken(String uid);\n\n int checkIsRegisteredByPhone(String phone);\n\n User findByUserId(Long userId);\n}",
"@Override\n\tpublic List<SupplierView> getAllSupplierInfo() {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type, s.permanent_address, s.temporary_address,h.quantity,h.supplier_unique_id ,h.cost,h.buy_date,h.username,i.product_id, i.product_name FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id INNER JOIN product i on h.product_product_id=i.product_id\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().query(sql,rowmapper);\n\t}",
"@Override\n\tprotected Mapping getMapping() {\n\t\treturn new Mapping()\n\t\t\t.add(\"firstname\", driver.getFirstName())\n\t\t\t.add(\"lastname\", driver.getLastName())\n\t\t\t.add(\"dateofbirth\", driver.getDateOfBirth())\n\t\t\t.add(\"gender\", driver.getGender())\n\t\t\t.add(\"age\", computeAge())\n\t\t\t.add(\"numberOfAccidents\", driver.getNumberOfAccidents())\n\t\t\t.add(\"numberOfTickets\", driver.getNumberOfTickets());\n\t}",
"@Override\n\tprotected DoublyIndexedTable<String, String> getTraitInformationTable() {\n\t\treturn xmlTraitInformation;\n\t}",
"@Override\n\tpublic List<Map<String, Object>> queryrecord(Employee bi, String name, String userinfoid, Integer start,\n\t\t\tInteger limit) {\n\t\tStringBuffer hql = new StringBuffer(\"select gb,ti,mi,u from Giftbox gb,ToysInfo ti,MachineInfo mi,UserInfo u where gb.fuserinfoid = u.id and gb.fmachineid = mi.id and gb.ftoysid = ti.id and gb.fuserinfoid = \")\n\t\t\t\t.append(Long.parseLong(userinfoid));\n\t\thql = hql.append(\" order by gb.createtime desc\");\n\t\tList<Object[]> lst = databaseHelper.getResultListByHql(hql.toString(),start,limit);\n\t\tList<Map<String,Object>> lstMap = new ArrayList<Map<String,Object>>();\n\t\t\n\t\tfor (Object[] objects : lst) {\n\t\t\tGiftbox g = (Giftbox)objects[0];\n\t\t\tToysInfo t =(ToysInfo) objects[1];\n\t\t\tMachineInfo m = (MachineInfo) objects[2];\n\t\t\tUserInfo u = (UserInfo) objects[3];\n\t\t\t\n\t\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\t\tmap.put(\"id\", g.getId());\n\t\t\tmap.put(\"username\", u.getUsername());\n\t\t\tmap.put(\"toyname\", t.getName());\n\t\t\tmap.put(\"machineno\", m.getMachineno());\n\t\t\tmap.put(\"photo\", g.getPhoto());\n\t\t\tmap.put(\"getphoto\", g.getGetphoto());\n\t\t\tmap.put(\"state\", g.getState()==-1?\"失效\":g.getState()==0?\"新获得\":g.getState()==1?\"配货中\":\"已发货\");\n\t\t\tmap.put(\"time\", u.getCreatetime().toString());\n\t\t\t\n\t\t\t\n\t\t\tlstMap.add(map);\n\t\t}\n\t\t\n\t\treturn lstMap;\n\t}",
"@Override\r\n\tpublic String generate() {\r\n\t\tStringBuilder query = new StringBuilder();\r\n\r\n\t\tquery.append(\"INSERT INTO \").append(tableName).append(\" (\");\r\n\t\tfor (int i = 0; i < fieldNames.size(); i++) {\r\n\t\t\tquery.append(fieldNames.get(i));\r\n\t\t\tif (i < fieldNames.size() - 1) {\r\n\t\t\t\tquery.append(\", \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tquery.append(\") VALUES (\");\r\n\t\tfor (int i = 0; i < fieldValues.size(); i++) {\r\n\t\t\tquery.append(\"'\").append(fieldValues.get(i)).append(\"'\");\r\n\t\t\tif (i < fieldValues.size() - 1) {\r\n\t\t\t\tquery.append(\", \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tquery.append(\");\");\r\n\t\treturn query.toString();\r\n\t}",
"public UserInfoEntity toUserInfoEntity(){\n UserInfoEntity userInfoEntity = new UserInfoEntity();\n userInfoEntity.setUserId(IdGen.getNewUserID());\n userInfoEntity.setCreateBy(name);\n userInfoEntity.setCreateOn(DateUtils.getDate());\n return toUserInfoEntity(userInfoEntity);\n }",
"public java.lang.String getInfoId() {\n return infoId;\n }",
"public interface NotationMapper {\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"<script>SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME FROM NOTATION \",\n \"<if test='type != \\\"\\\"'>WHERE TYPE = #{type}, </if>\",\n \"</script>\"})\n List<JSONObject> getNotationList(@Param(\"type\") String type);\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME \",\n \"FROM NOTATION WHERE LOCATE(#{title},TITLE) OR LOCATE(#{title},SUBTITLE)\"\n })\n List<JSONObject> fuzzyByTitle(@Param(\"title\")String title);\n\n @Insert({\"INSERT INTO NOTATION (TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME)\" +\n \"VALUES(#{title},#{subtitle},#{bio},#{notationUrl},#{bmgUrl},#{authorUrl},#{accTitle},#{accUrl},#{type},\" +\n \"#{resourceUrl},#{createTime})\"})\n void addNotation(JSONObject reqJson);\n}",
"public String toString()\n {\n return this.getUntranslatedTableName();\n }",
"public TableInfo getTableInfoParticipantVisit()\n {\n return getSchema().getTable(\"ParticipantVisit\");\n }",
"public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }",
"public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}",
"public String getName() { return _sqlName; }",
"@Override\n public String asTableDbName() {\n return \"user\";\n }",
"protected String getTableName()\n {\n return immutableGetTableName();\n }",
"public String toString() {\n return \"[JDBCRawSqlQueryMetaData : method=\" + method + \"]\";\n }",
"public interface WarningLogMapper {\n\n @Select(\"SELECT * \"\n + \" FROM warning_log \"\n + \"where devEUI = #{devEUI} and status=#{status} \")\n List<WarningLog> queryByDevAndStatus(@Param(\"devEUI\") String devEUI,@Param(\"status\") String status);\n\n @Select(\"SELECT * \"\n + \" FROM warning_log \"\n + \"where id = #{id} \")\n WarningLog queryWarningLog(@Param(\"id\") String id);\n\n @Select(\"<script>\"\n +\"SELECT * FROM warning_log where devEUI in \"\n + \"<foreach collection=\\\"list\\\" open=\\\"(\\\" close=\\\")\\\" separator=\\\",\\\" item=\\\"uid\\\" >\"\n + \"#{uid}\"\n + \"</foreach>\"\n + \"<if test =\\\"status !=null and status!=''\\\"> and status = #{start} </if>\"\n +\" order by status asc, createTime desc \"\n +\"</script>\")\n List<WarningLog> queryWarningLogByDevIds(@Param(\"list\") List<String> list, @Param(\"status\") String status);\n\n @Insert(\"insert into warning_log (devEUI,time,fPort,gatewayCount,rssi,fCnt,loRaSNR,data,devicePath,functionCode,dataLen,status,createTime)\"\n + \" values( #{devEUI},#{time},#{fPort},#{gatewayCount},#{rssi},#{fCnt},#{loRaSNR},#{data},#{devicePath},#{functionCode},#{dataLen}, #{status},#{createTime} ) \")\n int saveWarningLog(WarningLog log);\n\n /**\n * 将故障的设备标记为已修复\n * @param status\n * @param updateTime\n * @param devEUI\n * @return\n */\n @Update(\"update warning_log set status = #{status}, updateTime = #{updateTime} where devEUI=#{devEUI} and status ='0' \")\n int updateStatus(@Param(\"status\") String status, @Param(\"updateTime\") Date updateTime, @Param(\"devEUI\") String devEUI);\n\n @Select(\"<script>\"\n +\"SELECT count(id) FROM warning_log where devEUI in \"\n + \"<foreach collection=\\\"list\\\" open=\\\"(\\\" close=\\\")\\\" separator=\\\",\\\" item=\\\"uid\\\" >\"\n + \"#{uid}\"\n + \"</foreach>\"\n + \"<if test =\\\"status !=null and status!=''\\\"> and status = #{status} </if>\"\n +\"</script>\")\n int queryFaultCount(@Param(\"list\") List<String> list, @Param(\"status\") String status);\n\n\n}",
"public interface TableMetaData {\n\n\t/** Adds normal column. */\n\tpublic void addColumn(final ColumnMetaData column);\n\n\t/** Adds primary key column. */\n\tpublic void addPrimaryKey(final ColumnMetaData column);\n\n\t/** Returns map of column meta data, keyed by the column label (the alias if provided in the query, otherwise the name). */\n\tpublic Map<String, ColumnMetaData> getColumns();\n\n\t/** Returns database name. */\n\tpublic String getDatabaseName();\n\n\t/** Returns ordered list of columns that are primary keys. */\n\tpublic List<ColumnMetaData> getPrimaryKeys();\n\n\t/**\n\t * Returns fully qualified table name in database-specific form for use in SQL statements. MySQL uses the form\n\t * <code>database.table</code>, for example <code>sakila.film</code>. PostgreSQL uses the form\n\t * <code>database.schema.table</code>, for example <code>sakila.public.film</code>.\n\t */\n\tpublic String getQualifiedTableName();\n\n\t/** Returns row alias. */\n\tpublic String getRowAlias();\n\t\n\t/** Returns row set alias. */\n\tpublic String getRowSetAlias();\n\t\n\t/**\n\t * Returns row alias.\n\t * \n * @deprecated As of 0.8.11 use {@link #getRowAlias()}\n\t */\n\t@Deprecated\n\tpublic String getTableAlias();\n\n\t/** Returns table name. */\n\tpublic String getTableName();\n\n\t/** Returns role of table in the SQL Resource. */\n\tpublic TableRole getTableRole();\n\n\t/** Returns true if the SQL Resource role is child. */\n\tpublic boolean isChild();\n\n\t/** Returns true if the SQL Resource role is parent. */\n\tpublic boolean isParent();\n\n\t/** Sets all the row and row set aliases. */\n\tpublic void setAliases(final String alias, final String rowAlias, final String rowSetAlias);\n\n\t/** Sets attributes. */\n\tpublic void setAttributes(final String tableName, final String qualifedTableName,\n\t\t\tfinal String databaseName, final TableRole tableRole);\n\n\t/**\n\t * Sets table alias.\n\t * \n * @deprecated As of 0.8.11 use {@link #setAliases(String, String, String)}\n\t */\n\t@Deprecated\n\tpublic void setTableAlias(final String tableAlias);\n\t\n\t/** Represents all of the roles a table may plan in a SQL Resource. */\n\t@XmlType(namespace = \"http://restsql.org/schema\")\n\tpublic enum TableRole {\n\t\tChild, ChildExtension, Join, Parent, ParentExtension, Unknown;\n\t}\n}",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"public interface ICriteriaWhen {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table sale_classify_good\n *\n * @mbg.generated\n * @project https://github.com/itfsw/mybatis-generator-plugin\n */\n void criteria(Criteria criteria);\n }",
"@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}",
"@Repository\npublic interface UserMapper extends Serializable{\n\n /**\n * get the user info by the user id\n * @param user_id\n * @return\n */\n UserInfo getUserById(Integer user_id);\n\n /**\n * you want to get the user id list by the user nick name\n * @param nick_name the nick name\n * @return the user id list\n */\n List<Integer> getUsersByNickName(String nick_name);\n\n /**\n * you want to get the user info list by the id list\n * @param idList the id list\n * @return the user info list\n */\n List<UserInfo> getUserListByIdLists(List<Integer> idList);\n\n /**\n * you want to get the user info by the user nickname and the sex\n * @param map keys = {'nickname','sex'}\n * @return the result list\n */\n List<UserInfo> getUserByNickNameAndSex(Map<String,String> map);\n\n /**\n * you want to get your friends by your user id\n * @param user_id the user id\n * @return a list contains the friends of you\n */\n List<UserInfo> getFriendsOfMine(Integer user_id);\n\n /**\n * get the user's friends details\n * @param user_id the user id\n * @return the friends list\n */\n UserFriendsEntry getUserFriendsList(Integer user_id);\n\n /**\n * get the friends' friends\n * @param user_id the user id\n * @return the object of com.hujian.mvc.model.UserFriendsFriends\n */\n UserFriendsFriendsEntry getFriendsFriends(Integer user_id);\n\n /**\n * insert an user\n * @param userEntry\n * @return\n */\n Integer insertUser(InsertUserEntry userEntry);\n\n /**\n * remove an user from database\n * @param user_id\n * @return\n */\n Integer removeUserByUserId(Integer user_id);\n\n /**\n * update the user info\n * @param updateEntry the new user info\n * @return -1 means update error\n */\n Integer updateUserInfo(UpdateEntry updateEntry);\n\n\n}",
"public interface Columns {\r\n public static final String LOGIN_ID = \"login_id\";\r\n public static final String PASSWORD = \"password\";\r\n public static final String ADDRESS = \"address\";\r\n public static final String FEE = \"fee\";\r\n public static final String GRACE_PERIOD = \"grace_period\";\r\n public static final String USEREMAIL = \"user_email\";\r\n }",
"public void showInfo() throws SQLException { //to show the info when the page is loaded\n \tshowInfoDump();\n \tshowInfoMatl();\n }",
"@Dao\npublic interface UserDao {\n @Query(\"SELECT * FROM userInfo\")\n List<UserInfo> getAllUser();\n\n @Query(\"SELECT * FROM userInfo where emp_first_name LIKE :firstName AND emp_last_name LIKE :lastName\")\n UserInfo getUserByName(String firstName,String lastName);\n\n @Query(\"SELECT COUNT(*) from userInfo\")\n int getUserCount();\n\n @Insert(onConflict = REPLACE)\n void insertUser(UserInfo... userInfos);\n\n @Delete\n void delete(UserInfo userInfo);\n\n\n}",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}",
"UserInfoUserinfo selectByPrimaryKey(Integer userid);",
"@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);",
"@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}",
"@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}",
"public abstract String toSQL();"
] | [
"0.56877774",
"0.5585806",
"0.5428934",
"0.5407207",
"0.5362366",
"0.5336765",
"0.5334818",
"0.52486897",
"0.52254975",
"0.5216251",
"0.5173856",
"0.5155965",
"0.51307267",
"0.5106142",
"0.5097099",
"0.5090775",
"0.5077372",
"0.50720805",
"0.5063526",
"0.50599873",
"0.5054799",
"0.50484335",
"0.50467896",
"0.5044128",
"0.50431025",
"0.50403816",
"0.504005",
"0.5039819",
"0.5021275",
"0.50179523",
"0.50095975",
"0.4996361",
"0.49953246",
"0.4991836",
"0.49891979",
"0.49854547",
"0.49831015",
"0.4982967",
"0.49803442",
"0.4980015",
"0.49644393",
"0.49632588",
"0.49550605",
"0.49519444",
"0.494782",
"0.49399135",
"0.49357998",
"0.4929087",
"0.49208504",
"0.4915889",
"0.49144283",
"0.4913067",
"0.49127272",
"0.49037722",
"0.4903173",
"0.49017927",
"0.4899463",
"0.4899258",
"0.48966077",
"0.48954678",
"0.4888756",
"0.48857304",
"0.48788762",
"0.4876675",
"0.48749042",
"0.48630112",
"0.48575443",
"0.48533067",
"0.48525548",
"0.48489988",
"0.48477343",
"0.48451695",
"0.48395726",
"0.4837483",
"0.4835818",
"0.48303986",
"0.48296058",
"0.48295638",
"0.48228985",
"0.4820667",
"0.48199522",
"0.48175213",
"0.4816316",
"0.48144782",
"0.4810399",
"0.48097676",
"0.480349",
"0.48031986",
"0.4802981",
"0.4801244",
"0.4796831",
"0.47947487",
"0.47921005",
"0.47915855",
"0.47891384",
"0.4788933",
"0.47862542",
"0.4782977",
"0.4776899",
"0.47760165"
] | 0.5460726 | 2 |
This method was generated by MyBatis Generator. This method corresponds to the database table girl_info | int updateByPrimaryKeySelective(GirlInfo record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BaseTableInfo info() {\n return info;\n }",
"@Override\n public List<Information> findAllInfo() {\n return infoDao.findAll();\n }",
"GirlInfo selectByPrimaryKey(Integer id);",
"ResultSet getGeneralInfo() {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \t\tString query = \"SELECT ID, Name, Type1Name, Type2Name, Height, Weight, Hab, evolvesFrom \"\n \t\t\t\t+ \"FROM pokemon \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT TypeID AS T1, Name AS Type1Name FROM types) on type1 = t1 \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT TypeID AS T2, Name AS Type2Name FROM Types) ON type2 = t2 \"\n \t\t\t\t+ \"NATURAL JOIN (SELECT Name AS Hab, HabitatID FROM Habitats) \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT id as tempid, evolvesfrom from pokemon \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT evolvedid, name as evolvesfrom from pokemon, evolutions WHERE pokemon.id = babyid) on id = evolvedid) on id = tempid\";\n \t\t\n \t\treturn search.executeQuery(query);\n \t\t\n \t} catch (SQLException e) {\n \t\te.printStackTrace();\n \t\treturn null;\n \t}\n }",
"@Mapper\npublic interface WeChatInfoDao {\n\n\n /**\n * 插入微信信息\n * @param wechatInfo\n * @return\n */\n @Insert(\"INSERT INTO wechat_info(parentid,unionid,openid,nickname,sex,province,city,country,headImgUrl,\" +\n \"status,ticket_url,ticket,is_guide,reward) VALUES(#{parentid},#{unionid},#{openid},#{nickname},#{sex},#{province}\" +\n \",#{city},#{country},#{headImgUrl},#{status},#{ticketUrl},#{ticket},#{isGuide},#{reward})\")\n @Options(useGeneratedKeys=true, keyProperty=\"id\")\n int insert(WeChatInfoEntity wechatInfo);\n\n /**\n * 根据openID 查找用户信息\n * @param openid\n * @return\n */\n @Select(\"SELECT * FROM wechat_info WHERE openid = #{openid}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"nickname\", property = \"nickname\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity findByOpenID(@Param(\"openid\") String openid);\n\n /**\n * 根据openID 修改二维码信息\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET ticket_url=#{ticketUrl},ticket=#{ticket} WHERE openid=#{openid}\")\n void updateTicketUrlByOpenID(WeChatInfoEntity wechatInfo);\n\n /**\n * 取消关注\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET status=1 WHERE openid=#{openid}\")\n void updateStatusByOpenID(WeChatInfoEntity wechatInfo);\n\n\n /**\n * 更改status 状态\n * @param wechatInfo\n */\n @SelectProvider(type=WeChatInfoSqlProvider.class, method=\"updateByOpenIdSql\")\n void updateStatus(@Param(\"wechatInfo\") WeChatInfoEntity wechatInfo);\n\n @Select(\"SELECT * FROM wechat_info WHERE id = #{ID}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity selectWecahtUserByID(@Param(\"ID\")String ID);\n}",
"public void setInfoTableName(String name)\n\t{\n\t\tm_infosTableName = name;\n\t}",
"organize_infoBean selectByPrimaryKey(Integer id);",
"@Override\n public String getName() {\n return columnInfo.getName();\n }",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"UserInfoDao getUserInfoDao();",
"@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();",
"public ResultSet selectInfoAuto() {\n\t\tPreparedStatement prst;\n\t\ttry {\n\t\t\tprst = connection.prepareStatement(DbManagerUtils.SELECT_INFO_AUTO);\n\n\t\t\treturn prst.executeQuery();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}",
"public String info() {\n\t\t\tString instrumentsString = \" \";\n\t\t\tfor(Instruments i : Instruments.values()){\n\t\t\t\tinstrumentsString +=i.toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn (\"База данных представляет из себя набор старцев(обьектов Olders),\" +\"\\n\"+\n \"каждый из которых имеет поля :\" +\"\\n\"+\n \"id(уникальный идентификатор)\" +\"\\n\"+\n \"name(имя старца)\" +\"\\n\"+\n \"userid(уникальный идентификатор пользователя, который является его владельцем)\" +\"\\n\"+\n \"dateofinit-дата инициализация старца\");\n\t\t}",
"@MyBatisDao\npublic interface UserProfileMapper {\n UserProfile selectByPrimaryKey(long id);\n\n UserProfile selectByUserId(long userId);\n\n UserProfile selectByEmail(String email);\n\n int deleteByPrimaryKey(long id);\n\n int insert(UserProfile userProfile);\n\n int update(UserProfile userProfile);\n\n int updateAvatar(UserProfile userProfile);\n}",
"public PassengerData getInfoColumnData() {\n PassengerData passenger = new PassengerData();\n passenger.setDepBaggage(new Baggage());\n passenger.setRetBaggage(new Baggage());//creating bean for filling data in\n String fullName = InfoColumnPage.getInstance().getPassengerFullName();\n parseAndFillPassengerName(passenger, fullName);\n Set<String> rawBookingData = InfoColumnPage.getInstance().getDepPassengerRawData();//getting raw data from page\n for (String s :\n rawBookingData) {\n parseAndFillPassenger(s, passenger, true); //true stands for departure\n }//parsing raw data and filling bean for departure\n rawBookingData = InfoColumnPage.getInstance().getRetPassengerRawData();\n for (String s :\n rawBookingData) {\n parseAndFillPassenger(s, passenger, false); //true stands for departure\n }//parsing raw data and filling bean for return\n fillNonMentionedWithDefaults(passenger);//filling non mentioned values in page with its default values\n\n return passenger;\n }",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);",
"@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}",
"public String getInfoPkid() {\n return infoPkid;\n }",
"public interface UserInfoDAO {\n void addUserInfo(int id, String name, String surname, int positionId, Date bday, String magazine, String photo);\n List<UserInfo> getTable();\n UserInfo getUserInfoById(int id);\n void updateUserInfo(String newName, String newSurname, Date bday, int newPositionId, String newMagazine, int id);\n List<UserInfo> getForHead(String magazine);\n List<UserInfo> getForJournalist(String magazine);\n List<UserInfo> getForOwner();\n void updateUserPhoto(String photo, int id);\n}",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public String getEmployeeInfo() throws SQLException {\n String SQL = String.format(\"SELECT * FROM %s\", DbSchema.table_employees.name);\n Statement statement = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n ResultSet results = statement.executeQuery(SQL);\n\n //Prepare format stuff\n String tableHeader = String.format(\"%s %s %s %s %s\\n\", table_employees.cols.id, table_employees.cols.first_name, table_employees.cols.last_name, table_employees.cols.age, table_employees.cols.salary);\n StringBuilder output = new StringBuilder(tableHeader);\n DecimalFormat format = new DecimalFormat(\"#,###.00\");\n\n while (results.next()) {\n //Iterate through each row (employee) and add each bit of info to table\n String row = String.format(\"%s %s %s %s %s\\n\",\n results.getInt(table_employees.cols.id),\n results.getString(table_employees.cols.first_name),\n results.getString(table_employees.cols.last_name),\n results.getInt(table_employees.cols.age),\n format.format(results.getDouble(table_employees.cols.salary)));\n output.append(row);\n }\n return output.toString();\n }",
"public void formDatabaseTable() {\n }",
"@SqlQuery(\"select * from PLAYERSTATS\")\n List<PlayerStats> getAll();",
"public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}",
"public String infoName();",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}",
"public interface RelationInfoDao extends BaseDao<RelationInfoDO> {\n\n HashMap<String,String> getDependents(String tableNames);\n\n List<HashMap<String,String>> getParentTable(String tableNames);\n\n List<HashMap<String,String>> getChlidTable(String s);\n}",
"@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}",
"@Override\n public String toString() {\n return String.format(\"[%d] [%d]\", dameFila(), dameColumna());\n }",
"public interface EmpDao {\n\n\n /**\n * 根据参数查询列表\n * @param map\n * @return\n */\n\n// select empno,ENAME,job,mgr,hiredate,sal,comm,deptno from emp\n @Select(\"<script>\" +\n \"select a.empno,a.ename,a.job,a.mgr,to_char(a.hiredate,'yyyy-mm-dd') hiredate,a.sal,a.comm,a.deptno,a.mgrname,a.dname,a.rn from \" +\n \"(select b.*,rownum rn from \" +\n \"(select e.*,d.dname from (select e1.*,e2.ename mgrname from emp e1 left join emp e2 on e1.mgr=e2.empno) e left join dept d on e.deptno=d.deptno \" +\n \"<where>\" +\n \"<if test='ename!=null'>and e.ename like '%'||#{ename}||'%' </if>\" +\n \"<if test='job!=null'>and e.job like '%'||#{job}||'%' </if>\" +\n \"</where>\" +\n \"order by empno desc) b where rownum < #{end}) a where a.rn > #{start}\" +\n \"</script>\")\n List<Map> getList(Map map);\n\n\n /**\n * 带条件查询总条数\n * @param map\n * @return\n */\n @Select(\"<script>\"+\n \"select count(*) from emp <where>\" +\n \"<if test='ename != null'> and ename like '%${ename}%'</if>\"+\n \"<if test='job != null'> and job like '%${job}%'</if>\"+\n \"</where></script>\")\n int getPageCount(Map map);\n /**\n * 添加\n * @param map\n * @return\n */\n// seq_emp_id.nextval,ename, job, hiredate, sal, comm,deptno\n @Insert(\"insert into emp values(seq_emp_id.nextval,#{ENAME},#{JOB},#{MGR},to_date(#{HIREDATE},'yyyy-mm-dd'),#{SAL},#{COMM},#{DEPTNO})\")\n int add(Map map);\n\n\n /**\n * 更新\n * @param map\n * @return\n */\n @Update(\"update emp set ename=#{ENAME},job=#{JOB},mgr=#{MGR},hiredate=to_date(#{HIREDATE},'yyyy-mm-dd'),sal=#{SAL},comm=#{COMM},deptno=#{DEPTNO} where empno=#{EMPNO}\")\n int update(Map map);\n\n /**\n * 删除\n * @param deptNo\n * @return\n */\n @Delete(\"delete from emp where empno=#{EMPNO}\")\n int delete(int deptNo);\n\n /**\n * 获取所有部门,用于页面数据绑定\n * @return\n */\n @Select(\"select deptno,dname from dept\")\n List<Map> getDeptType();\n\n /**\n * 获取所有职位,用于页面数据绑定\n * @return\n */\n @Select(\"select distinct(job) from emp\")\n List<Map> getJob();\n\n /**\n * 获取上司,用于页面数据绑定\n * @return\n */\n @Select(\"select empno,ename from emp where job='PRESIDENT' or job='MANAGER' or job='ANALYST'\")\n List<Map> getMgr();\n\n\n}",
"@Mapper\npublic interface UserInfoDao {\n\n void create(UserInfo userInfo);\n //正常注册用户查询\n UserInfo findByLoginName(@Param(\"loginName\") String loginName);\n //扒取用户信息查询\n UserInfo findByLoginNameCrawler(@Param(\"loginName\") String loginName);\n\n void updateState(UserInfo userInfo);\n\n void updateCreateTime(UserInfo userInfo);\n\n void changePassword(UserInfo userInfo);\n\n UserInfo findByUserId(@Param(\"userId\") String userId);\n\n UserInfo findByUserIdAll(@Param(\"userId\") String userId);\n\n int friend(@Param(\"userId\")String userId,@Param(\"friendId\") String friendId);\n\n List<UserInfo> findByUserName(@Param(\"userName\") String userName);\n\n List<String> allLoginNames();\n}",
"public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }",
"public interface GirlMapper extends JpaRepository<Girl,Integer>{\n\n}",
"public Impiegato getInfoImpiegato() throws SQLException,AziendaException,ParseException {\n\t\tUserQuery uq = ProxyDB.getIstance();\n\t\treturn uq.getInfoImpiegato(utente.getUsername());\n\t}",
"private String _columnInfo(int i, DBField f, boolean isDefined)\n {\n String ndx = StringTools.format(i,\"00\");\n String name = StringTools.leftAlign(f.getName(),22);\n String desc = isDefined? (\": \" + f.getTitle(null)) : \"\";\n String type = f.getSqlType();\n if (f.isPrimaryKey()) { type += \" key\"; }\n if (f.isAlternateKey()) { type += \" altkey\"; }\n if (f.isAutoIncrement()) { type += \" auto\"; }\n if (f.isUTF8()) { type += \" utf8\"; }\n type = StringTools.leftAlign(type, 32);\n return ndx + \") \" + name + \" \" + type + desc;\n }",
"@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }",
"public String getMapTableName() {\n return getTableName(false, false, false, true);\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}",
"public String getNomTable();",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"@Override\n protected Map<TableUniqueName, String> tableSubstitution() {\n return ImmutableMap.of();\n }",
"public String toString() {\n return new ToStringBuilder(this)\n .append(\"name\", this.name)\n .append(\"type\", this.type)\n .append(\"sqlTable\", this.sqlTable)\n .append(\"sqlColumn\", this.sqlColumn)\n .append(\"typeLinkId\", this.typeLinkId)\n .toString();\n }",
"@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();",
"@Override\n public String toString() {\n String output = \"User Info for: \" + getId();\n output += \"\\n\\tName: \" + getFirstName() + \" \" + getLastName();\n output += \"\\n\\tCreated on: \" + DF.format(getEnrolDate());\n output += \"\\n\\tLast access: \" + DF.format(getLastAccess());\n \n return output;\n }",
"public ResultSet getItemInfo() throws SQLException {\n\t\tConnection con = openDBConnection();\n\t\tStatement stmt = con.createStatement();\n\t\t/** Proceeds if user is logged in */\n\t\tString queryString = \"Select * From team1.GABES_ITEM i Where i.ITEM_ID='\"\n\t\t\t\t+ this.item_id + \"'\";\n\t\tResultSet result = stmt.executeQuery(queryString);\n\t\treturn result;\n\t}",
"public String getDbTable() {return dbTable;}",
"@Override\r\n\t\tpublic Alumni getAlumniDetails(String firstName) throws ClassNotFoundException, SQLException {\n\t\t\t\r\n\t\t\tConnection connection=ConnectionManager.openConnection();\r\n\t\t\tPreparedStatement statement=connection.prepareStatement(\"select * from alumni where first_name=?\");\r\n\t\t\tstatement.setString(1, firstName);\r\n\t\t\t\r\n\t\t\tResultSet resultSet=statement.executeQuery();\r\n\t\t\tAlumni alumni=new Alumni();\r\n\t\t\t\twhile(resultSet.next()) {\r\n\t\t\t\t\r\n\t\t\t\talumni.setAlumniId(resultSet.getInt(\"alumni_id\"));\r\n\t\t\t\talumni.setFirstName(resultSet.getString(\"first_name\"));\r\n\t\t\t\talumni.setLastName(resultSet.getString(\"last_name\"));\r\n\t\t\t\talumni.setEmailAddress(resultSet.getString(\"email\"));\r\n\t\t\t\talumni.setPhoneNumber(resultSet.getString(\"phone_number\"));\r\n\t\t alumni.setGender(resultSet.getString(\"gender\"));\r\n\t\t\t\talumni.setPresentStatus(resultSet.getString(\"present_status\"));\r\n\t\t\t\talumni.setYearOfCompletition(resultSet.getInt(\"year_of_completition\"));\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tConnectionManager.closeConnection();\r\n\t\t\treturn alumni;\r\n\t\t}",
"private HashMap<Long, String> getTable() {\n return table;\n }",
"@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}",
"@Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number, id_firstcontact_doctor, password FROM patients;\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"password\", column = \"password\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n List<Patient> getAllPatientsDataToTable();",
"public int getSirinaTable() {\n\t\treturn this.sirinaTable;\n\t}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}",
"public void generateAttributes() throws SQLException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, InstantiationException{\n ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring.xml\");\n //Get the EmployeeDAO Bean\n BasicDataDAO dataDAO = null;\n BasicData newData = null;\n \n \n if (tableName.equals(\"test\")) {\n\t\t\tdataDAO = ctx.getBean(\"testDAO\", TestDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Test(0, 99, \"Hello\", \"sample\", new Date());\n\t\t}else if (tableName.equals(\"utilisateur\")) {\n\t\t\tdataDAO = ctx.getBean(\"utilisateurDAO\", UtilisateurDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Utilisateur(0, \"handa\", \"handa-upsud\", \"admin\", 30);\n\t\t}else if (tableName.equals(\"source\")) {\n\t\t\tdataDAO = ctx.getBean(\"sourceDAO\", SourceDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Source(0, \"http\", \"srouce1\", \"haut\", \"France\", \"vertical\", 10, \"test\");\n\t\t}else if (tableName.equals(\"theme\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeDAO\", ThemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Theme(0, \"testTheme\");\n\t\t}else if (tableName.equals(\"themeRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeRelationDAO\", ThemeRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new ThemeRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"version\")) {\n\t\t\tdataDAO = ctx.getBean(\"versionDAO\", VersionDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Version(0, 1, \"url_serveur\", \"version\", new Date());\n\t\t}else if (tableName.equals(\"abonnementRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"abonnementRelationDAO\", AbonnementRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AbonnementRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"alerteRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"alerteRelationDAO\", AlerteRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AlerteRelation(0, 1, 1, 15, new Date(), \"sujet\", \"type\", \"statut\", \"description\");\n\t\t}else if (tableName.equals(\"blacklistageSysteme\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageSystemeDAO\", BlacklistageSystemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageSysteme(0, 1);\n\t\t}else if (tableName.equals(\"blacklistageUtilisateurRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageUtilisateurRelationDAO\", BlacklistageUtilisateurRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageUtilisateurRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"demandeModifRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"demandeModifRelationDAO\", DemandeModifRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new DemandeModifRelation(0, 1, 1, new Date(), \"type\", \"statut\", \"description\");\n\t\t}\n \n \n this.insert = dataDAO.insert(newData);\n //selecById\n BasicData t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.selectById = t.toString();\n\t\t}else {\n\t\t\tthis.selectById = \"rien\";\n\t\t}\n //update\n this.update = dataDAO.update(t);\n t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.resultatUpdate = t.toString();\n\t\t}else {\n\t\t\tthis.resultatUpdate = \"rien\";\n\t\t}\n //selectAll\n ArrayList<? extends BasicData> alTest = dataDAO.selectAll();\n this.selectAll = alTest.size();\n if (alTest.size()==0) {\n \tthis.ligne1 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne1 = alTest.get(0).toString();\n\t\t}\n //selectWhere\n String condition = \"id > 1\";\n this.condition = condition;\n ArrayList<? extends BasicData> alTest1 = dataDAO.selectWhere(condition);\n this.selectWhere = alTest1.size();\n if (alTest1.size()==0) {\n \tthis.ligne11 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne11 = alTest1.get(0).toString();\n\t\t}\n //deleteById\n this.deleteById = 99;\n //this.deleteById = dataDAO.deleteById(insert);\n }",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"String getTableName();",
"private void statsTable() {\n try (Connection connection = hikari.getConnection()) {\n try (PreparedStatement statement = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS `\" + TABLE_STATS + \"` \" +\n \"(id INT NOT NULL AUTO_INCREMENT UNIQUE, \" +\n \"uuid varchar(255) PRIMARY KEY, \" +\n \"name varchar(255), \" +\n \"kitSelected varchar(255), \" +\n \"points INT, \" +\n \"kills INT, \" +\n \"deaths INT, \" +\n \"killstreaks INT, \" +\n \"currentKillStreak INT, \" +\n \"inGame BOOLEAN)\")) {\n statement.execute();\n statement.close();\n connection.close();\n }\n } catch (SQLException e) {\n LogHandler.getHandler().logException(\"TableCreator:statsTable\", e);\n }\n }",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}",
"@MyBatisRepository\npublic interface UserMybatisDao {\n int register(User user);\n\n int updateUser(User user);\n\n String checkPhone(String phone);\n\n int perfectUserInfo(Map params);\n\n User findByToken(String uid);\n\n int checkIsRegisteredByPhone(String phone);\n\n User findByUserId(Long userId);\n}",
"@Override\n\tpublic List<SupplierView> getAllSupplierInfo() {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type, s.permanent_address, s.temporary_address,h.quantity,h.supplier_unique_id ,h.cost,h.buy_date,h.username,i.product_id, i.product_name FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id INNER JOIN product i on h.product_product_id=i.product_id\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().query(sql,rowmapper);\n\t}",
"@Override\n\tprotected Mapping getMapping() {\n\t\treturn new Mapping()\n\t\t\t.add(\"firstname\", driver.getFirstName())\n\t\t\t.add(\"lastname\", driver.getLastName())\n\t\t\t.add(\"dateofbirth\", driver.getDateOfBirth())\n\t\t\t.add(\"gender\", driver.getGender())\n\t\t\t.add(\"age\", computeAge())\n\t\t\t.add(\"numberOfAccidents\", driver.getNumberOfAccidents())\n\t\t\t.add(\"numberOfTickets\", driver.getNumberOfTickets());\n\t}",
"@Override\n\tprotected DoublyIndexedTable<String, String> getTraitInformationTable() {\n\t\treturn xmlTraitInformation;\n\t}",
"@Override\n\tpublic List<Map<String, Object>> queryrecord(Employee bi, String name, String userinfoid, Integer start,\n\t\t\tInteger limit) {\n\t\tStringBuffer hql = new StringBuffer(\"select gb,ti,mi,u from Giftbox gb,ToysInfo ti,MachineInfo mi,UserInfo u where gb.fuserinfoid = u.id and gb.fmachineid = mi.id and gb.ftoysid = ti.id and gb.fuserinfoid = \")\n\t\t\t\t.append(Long.parseLong(userinfoid));\n\t\thql = hql.append(\" order by gb.createtime desc\");\n\t\tList<Object[]> lst = databaseHelper.getResultListByHql(hql.toString(),start,limit);\n\t\tList<Map<String,Object>> lstMap = new ArrayList<Map<String,Object>>();\n\t\t\n\t\tfor (Object[] objects : lst) {\n\t\t\tGiftbox g = (Giftbox)objects[0];\n\t\t\tToysInfo t =(ToysInfo) objects[1];\n\t\t\tMachineInfo m = (MachineInfo) objects[2];\n\t\t\tUserInfo u = (UserInfo) objects[3];\n\t\t\t\n\t\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\t\tmap.put(\"id\", g.getId());\n\t\t\tmap.put(\"username\", u.getUsername());\n\t\t\tmap.put(\"toyname\", t.getName());\n\t\t\tmap.put(\"machineno\", m.getMachineno());\n\t\t\tmap.put(\"photo\", g.getPhoto());\n\t\t\tmap.put(\"getphoto\", g.getGetphoto());\n\t\t\tmap.put(\"state\", g.getState()==-1?\"失效\":g.getState()==0?\"新获得\":g.getState()==1?\"配货中\":\"已发货\");\n\t\t\tmap.put(\"time\", u.getCreatetime().toString());\n\t\t\t\n\t\t\t\n\t\t\tlstMap.add(map);\n\t\t}\n\t\t\n\t\treturn lstMap;\n\t}",
"@Override\r\n\tpublic String generate() {\r\n\t\tStringBuilder query = new StringBuilder();\r\n\r\n\t\tquery.append(\"INSERT INTO \").append(tableName).append(\" (\");\r\n\t\tfor (int i = 0; i < fieldNames.size(); i++) {\r\n\t\t\tquery.append(fieldNames.get(i));\r\n\t\t\tif (i < fieldNames.size() - 1) {\r\n\t\t\t\tquery.append(\", \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tquery.append(\") VALUES (\");\r\n\t\tfor (int i = 0; i < fieldValues.size(); i++) {\r\n\t\t\tquery.append(\"'\").append(fieldValues.get(i)).append(\"'\");\r\n\t\t\tif (i < fieldValues.size() - 1) {\r\n\t\t\t\tquery.append(\", \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tquery.append(\");\");\r\n\t\treturn query.toString();\r\n\t}",
"public UserInfoEntity toUserInfoEntity(){\n UserInfoEntity userInfoEntity = new UserInfoEntity();\n userInfoEntity.setUserId(IdGen.getNewUserID());\n userInfoEntity.setCreateBy(name);\n userInfoEntity.setCreateOn(DateUtils.getDate());\n return toUserInfoEntity(userInfoEntity);\n }",
"public java.lang.String getInfoId() {\n return infoId;\n }",
"public interface NotationMapper {\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"<script>SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME FROM NOTATION \",\n \"<if test='type != \\\"\\\"'>WHERE TYPE = #{type}, </if>\",\n \"</script>\"})\n List<JSONObject> getNotationList(@Param(\"type\") String type);\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME \",\n \"FROM NOTATION WHERE LOCATE(#{title},TITLE) OR LOCATE(#{title},SUBTITLE)\"\n })\n List<JSONObject> fuzzyByTitle(@Param(\"title\")String title);\n\n @Insert({\"INSERT INTO NOTATION (TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME)\" +\n \"VALUES(#{title},#{subtitle},#{bio},#{notationUrl},#{bmgUrl},#{authorUrl},#{accTitle},#{accUrl},#{type},\" +\n \"#{resourceUrl},#{createTime})\"})\n void addNotation(JSONObject reqJson);\n}",
"public String toString()\n {\n return this.getUntranslatedTableName();\n }",
"public TableInfo getTableInfoParticipantVisit()\n {\n return getSchema().getTable(\"ParticipantVisit\");\n }",
"public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }",
"public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}",
"public String getName() { return _sqlName; }",
"@Override\n public String asTableDbName() {\n return \"user\";\n }",
"protected String getTableName()\n {\n return immutableGetTableName();\n }",
"public String toString() {\n return \"[JDBCRawSqlQueryMetaData : method=\" + method + \"]\";\n }",
"public interface WarningLogMapper {\n\n @Select(\"SELECT * \"\n + \" FROM warning_log \"\n + \"where devEUI = #{devEUI} and status=#{status} \")\n List<WarningLog> queryByDevAndStatus(@Param(\"devEUI\") String devEUI,@Param(\"status\") String status);\n\n @Select(\"SELECT * \"\n + \" FROM warning_log \"\n + \"where id = #{id} \")\n WarningLog queryWarningLog(@Param(\"id\") String id);\n\n @Select(\"<script>\"\n +\"SELECT * FROM warning_log where devEUI in \"\n + \"<foreach collection=\\\"list\\\" open=\\\"(\\\" close=\\\")\\\" separator=\\\",\\\" item=\\\"uid\\\" >\"\n + \"#{uid}\"\n + \"</foreach>\"\n + \"<if test =\\\"status !=null and status!=''\\\"> and status = #{start} </if>\"\n +\" order by status asc, createTime desc \"\n +\"</script>\")\n List<WarningLog> queryWarningLogByDevIds(@Param(\"list\") List<String> list, @Param(\"status\") String status);\n\n @Insert(\"insert into warning_log (devEUI,time,fPort,gatewayCount,rssi,fCnt,loRaSNR,data,devicePath,functionCode,dataLen,status,createTime)\"\n + \" values( #{devEUI},#{time},#{fPort},#{gatewayCount},#{rssi},#{fCnt},#{loRaSNR},#{data},#{devicePath},#{functionCode},#{dataLen}, #{status},#{createTime} ) \")\n int saveWarningLog(WarningLog log);\n\n /**\n * 将故障的设备标记为已修复\n * @param status\n * @param updateTime\n * @param devEUI\n * @return\n */\n @Update(\"update warning_log set status = #{status}, updateTime = #{updateTime} where devEUI=#{devEUI} and status ='0' \")\n int updateStatus(@Param(\"status\") String status, @Param(\"updateTime\") Date updateTime, @Param(\"devEUI\") String devEUI);\n\n @Select(\"<script>\"\n +\"SELECT count(id) FROM warning_log where devEUI in \"\n + \"<foreach collection=\\\"list\\\" open=\\\"(\\\" close=\\\")\\\" separator=\\\",\\\" item=\\\"uid\\\" >\"\n + \"#{uid}\"\n + \"</foreach>\"\n + \"<if test =\\\"status !=null and status!=''\\\"> and status = #{status} </if>\"\n +\"</script>\")\n int queryFaultCount(@Param(\"list\") List<String> list, @Param(\"status\") String status);\n\n\n}",
"public interface TableMetaData {\n\n\t/** Adds normal column. */\n\tpublic void addColumn(final ColumnMetaData column);\n\n\t/** Adds primary key column. */\n\tpublic void addPrimaryKey(final ColumnMetaData column);\n\n\t/** Returns map of column meta data, keyed by the column label (the alias if provided in the query, otherwise the name). */\n\tpublic Map<String, ColumnMetaData> getColumns();\n\n\t/** Returns database name. */\n\tpublic String getDatabaseName();\n\n\t/** Returns ordered list of columns that are primary keys. */\n\tpublic List<ColumnMetaData> getPrimaryKeys();\n\n\t/**\n\t * Returns fully qualified table name in database-specific form for use in SQL statements. MySQL uses the form\n\t * <code>database.table</code>, for example <code>sakila.film</code>. PostgreSQL uses the form\n\t * <code>database.schema.table</code>, for example <code>sakila.public.film</code>.\n\t */\n\tpublic String getQualifiedTableName();\n\n\t/** Returns row alias. */\n\tpublic String getRowAlias();\n\t\n\t/** Returns row set alias. */\n\tpublic String getRowSetAlias();\n\t\n\t/**\n\t * Returns row alias.\n\t * \n * @deprecated As of 0.8.11 use {@link #getRowAlias()}\n\t */\n\t@Deprecated\n\tpublic String getTableAlias();\n\n\t/** Returns table name. */\n\tpublic String getTableName();\n\n\t/** Returns role of table in the SQL Resource. */\n\tpublic TableRole getTableRole();\n\n\t/** Returns true if the SQL Resource role is child. */\n\tpublic boolean isChild();\n\n\t/** Returns true if the SQL Resource role is parent. */\n\tpublic boolean isParent();\n\n\t/** Sets all the row and row set aliases. */\n\tpublic void setAliases(final String alias, final String rowAlias, final String rowSetAlias);\n\n\t/** Sets attributes. */\n\tpublic void setAttributes(final String tableName, final String qualifedTableName,\n\t\t\tfinal String databaseName, final TableRole tableRole);\n\n\t/**\n\t * Sets table alias.\n\t * \n * @deprecated As of 0.8.11 use {@link #setAliases(String, String, String)}\n\t */\n\t@Deprecated\n\tpublic void setTableAlias(final String tableAlias);\n\t\n\t/** Represents all of the roles a table may plan in a SQL Resource. */\n\t@XmlType(namespace = \"http://restsql.org/schema\")\n\tpublic enum TableRole {\n\t\tChild, ChildExtension, Join, Parent, ParentExtension, Unknown;\n\t}\n}",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"public interface ICriteriaWhen {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table sale_classify_good\n *\n * @mbg.generated\n * @project https://github.com/itfsw/mybatis-generator-plugin\n */\n void criteria(Criteria criteria);\n }",
"@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}",
"@Repository\npublic interface UserMapper extends Serializable{\n\n /**\n * get the user info by the user id\n * @param user_id\n * @return\n */\n UserInfo getUserById(Integer user_id);\n\n /**\n * you want to get the user id list by the user nick name\n * @param nick_name the nick name\n * @return the user id list\n */\n List<Integer> getUsersByNickName(String nick_name);\n\n /**\n * you want to get the user info list by the id list\n * @param idList the id list\n * @return the user info list\n */\n List<UserInfo> getUserListByIdLists(List<Integer> idList);\n\n /**\n * you want to get the user info by the user nickname and the sex\n * @param map keys = {'nickname','sex'}\n * @return the result list\n */\n List<UserInfo> getUserByNickNameAndSex(Map<String,String> map);\n\n /**\n * you want to get your friends by your user id\n * @param user_id the user id\n * @return a list contains the friends of you\n */\n List<UserInfo> getFriendsOfMine(Integer user_id);\n\n /**\n * get the user's friends details\n * @param user_id the user id\n * @return the friends list\n */\n UserFriendsEntry getUserFriendsList(Integer user_id);\n\n /**\n * get the friends' friends\n * @param user_id the user id\n * @return the object of com.hujian.mvc.model.UserFriendsFriends\n */\n UserFriendsFriendsEntry getFriendsFriends(Integer user_id);\n\n /**\n * insert an user\n * @param userEntry\n * @return\n */\n Integer insertUser(InsertUserEntry userEntry);\n\n /**\n * remove an user from database\n * @param user_id\n * @return\n */\n Integer removeUserByUserId(Integer user_id);\n\n /**\n * update the user info\n * @param updateEntry the new user info\n * @return -1 means update error\n */\n Integer updateUserInfo(UpdateEntry updateEntry);\n\n\n}",
"public interface Columns {\r\n public static final String LOGIN_ID = \"login_id\";\r\n public static final String PASSWORD = \"password\";\r\n public static final String ADDRESS = \"address\";\r\n public static final String FEE = \"fee\";\r\n public static final String GRACE_PERIOD = \"grace_period\";\r\n public static final String USEREMAIL = \"user_email\";\r\n }",
"public void showInfo() throws SQLException { //to show the info when the page is loaded\n \tshowInfoDump();\n \tshowInfoMatl();\n }",
"@Dao\npublic interface UserDao {\n @Query(\"SELECT * FROM userInfo\")\n List<UserInfo> getAllUser();\n\n @Query(\"SELECT * FROM userInfo where emp_first_name LIKE :firstName AND emp_last_name LIKE :lastName\")\n UserInfo getUserByName(String firstName,String lastName);\n\n @Query(\"SELECT COUNT(*) from userInfo\")\n int getUserCount();\n\n @Insert(onConflict = REPLACE)\n void insertUser(UserInfo... userInfos);\n\n @Delete\n void delete(UserInfo userInfo);\n\n\n}",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}",
"UserInfoUserinfo selectByPrimaryKey(Integer userid);",
"@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);",
"@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}",
"@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}",
"public abstract String toSQL();"
] | [
"0.56877774",
"0.5585806",
"0.5460726",
"0.5428934",
"0.5407207",
"0.5362366",
"0.5336765",
"0.5334818",
"0.52486897",
"0.52254975",
"0.5216251",
"0.5173856",
"0.5155965",
"0.51307267",
"0.5106142",
"0.5097099",
"0.5090775",
"0.5077372",
"0.50720805",
"0.5063526",
"0.50599873",
"0.5054799",
"0.50484335",
"0.50467896",
"0.5044128",
"0.50431025",
"0.50403816",
"0.504005",
"0.5039819",
"0.5021275",
"0.50179523",
"0.50095975",
"0.4996361",
"0.49953246",
"0.4991836",
"0.49891979",
"0.49854547",
"0.49831015",
"0.4982967",
"0.49803442",
"0.4980015",
"0.49644393",
"0.49632588",
"0.49550605",
"0.49519444",
"0.494782",
"0.49399135",
"0.49357998",
"0.4929087",
"0.49208504",
"0.4915889",
"0.49144283",
"0.4913067",
"0.49127272",
"0.49037722",
"0.4903173",
"0.49017927",
"0.4899463",
"0.4899258",
"0.48966077",
"0.48954678",
"0.4888756",
"0.48857304",
"0.48788762",
"0.4876675",
"0.48749042",
"0.48630112",
"0.48575443",
"0.48533067",
"0.48525548",
"0.48489988",
"0.48477343",
"0.48451695",
"0.48395726",
"0.4837483",
"0.4835818",
"0.48303986",
"0.48296058",
"0.48295638",
"0.48228985",
"0.4820667",
"0.48199522",
"0.48175213",
"0.4816316",
"0.48144782",
"0.4810399",
"0.48097676",
"0.480349",
"0.48031986",
"0.4802981",
"0.4801244",
"0.4796831",
"0.47947487",
"0.47921005",
"0.47915855",
"0.47891384",
"0.4788933",
"0.47862542",
"0.4782977",
"0.4776899",
"0.47760165"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table girl_info | int updateByPrimaryKey(GirlInfo record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BaseTableInfo info() {\n return info;\n }",
"@Override\n public List<Information> findAllInfo() {\n return infoDao.findAll();\n }",
"GirlInfo selectByPrimaryKey(Integer id);",
"ResultSet getGeneralInfo() {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \t\tString query = \"SELECT ID, Name, Type1Name, Type2Name, Height, Weight, Hab, evolvesFrom \"\n \t\t\t\t+ \"FROM pokemon \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT TypeID AS T1, Name AS Type1Name FROM types) on type1 = t1 \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT TypeID AS T2, Name AS Type2Name FROM Types) ON type2 = t2 \"\n \t\t\t\t+ \"NATURAL JOIN (SELECT Name AS Hab, HabitatID FROM Habitats) \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT id as tempid, evolvesfrom from pokemon \"\n \t\t\t\t+ \"LEFT OUTER JOIN (SELECT evolvedid, name as evolvesfrom from pokemon, evolutions WHERE pokemon.id = babyid) on id = evolvedid) on id = tempid\";\n \t\t\n \t\treturn search.executeQuery(query);\n \t\t\n \t} catch (SQLException e) {\n \t\te.printStackTrace();\n \t\treturn null;\n \t}\n }",
"@Mapper\npublic interface WeChatInfoDao {\n\n\n /**\n * 插入微信信息\n * @param wechatInfo\n * @return\n */\n @Insert(\"INSERT INTO wechat_info(parentid,unionid,openid,nickname,sex,province,city,country,headImgUrl,\" +\n \"status,ticket_url,ticket,is_guide,reward) VALUES(#{parentid},#{unionid},#{openid},#{nickname},#{sex},#{province}\" +\n \",#{city},#{country},#{headImgUrl},#{status},#{ticketUrl},#{ticket},#{isGuide},#{reward})\")\n @Options(useGeneratedKeys=true, keyProperty=\"id\")\n int insert(WeChatInfoEntity wechatInfo);\n\n /**\n * 根据openID 查找用户信息\n * @param openid\n * @return\n */\n @Select(\"SELECT * FROM wechat_info WHERE openid = #{openid}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"nickname\", property = \"nickname\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity findByOpenID(@Param(\"openid\") String openid);\n\n /**\n * 根据openID 修改二维码信息\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET ticket_url=#{ticketUrl},ticket=#{ticket} WHERE openid=#{openid}\")\n void updateTicketUrlByOpenID(WeChatInfoEntity wechatInfo);\n\n /**\n * 取消关注\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET status=1 WHERE openid=#{openid}\")\n void updateStatusByOpenID(WeChatInfoEntity wechatInfo);\n\n\n /**\n * 更改status 状态\n * @param wechatInfo\n */\n @SelectProvider(type=WeChatInfoSqlProvider.class, method=\"updateByOpenIdSql\")\n void updateStatus(@Param(\"wechatInfo\") WeChatInfoEntity wechatInfo);\n\n @Select(\"SELECT * FROM wechat_info WHERE id = #{ID}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity selectWecahtUserByID(@Param(\"ID\")String ID);\n}",
"public void setInfoTableName(String name)\n\t{\n\t\tm_infosTableName = name;\n\t}",
"organize_infoBean selectByPrimaryKey(Integer id);",
"@Override\n public String getName() {\n return columnInfo.getName();\n }",
"@Override\n\tpublic Collection<Tmly> getTmlyInfo() {\n\t\tString sql = \"select ID_,TITLE,CONTENT,state from tmly\";\n\t\tList<Tmly> list = this.jdbcTemplate.query(sql, new RowMapper<Tmly>() {\n\n\t\t\t@Override\n\t\t\tpublic Tmly mapRow(ResultSet result, int i) throws SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tTmly tmly = new Tmly();\n\t\t\t\ttmly.setId(result.getInt(\"id_\"));\n\t\t\t\ttmly.setTitle(result.getString(\"title\"));\n\t\t\t\ttmly.setContent(result.getString(\"content\"));\n\t\t\t\treturn tmly;\n\t\t\t}\n\n\t\t});\n\t\treturn list;\n\t}",
"UserInfoDao getUserInfoDao();",
"@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();",
"public ResultSet selectInfoAuto() {\n\t\tPreparedStatement prst;\n\t\ttry {\n\t\t\tprst = connection.prepareStatement(DbManagerUtils.SELECT_INFO_AUTO);\n\n\t\t\treturn prst.executeQuery();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}",
"public String info() {\n\t\t\tString instrumentsString = \" \";\n\t\t\tfor(Instruments i : Instruments.values()){\n\t\t\t\tinstrumentsString +=i.toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn (\"База данных представляет из себя набор старцев(обьектов Olders),\" +\"\\n\"+\n \"каждый из которых имеет поля :\" +\"\\n\"+\n \"id(уникальный идентификатор)\" +\"\\n\"+\n \"name(имя старца)\" +\"\\n\"+\n \"userid(уникальный идентификатор пользователя, который является его владельцем)\" +\"\\n\"+\n \"dateofinit-дата инициализация старца\");\n\t\t}",
"@MyBatisDao\npublic interface UserProfileMapper {\n UserProfile selectByPrimaryKey(long id);\n\n UserProfile selectByUserId(long userId);\n\n UserProfile selectByEmail(String email);\n\n int deleteByPrimaryKey(long id);\n\n int insert(UserProfile userProfile);\n\n int update(UserProfile userProfile);\n\n int updateAvatar(UserProfile userProfile);\n}",
"public PassengerData getInfoColumnData() {\n PassengerData passenger = new PassengerData();\n passenger.setDepBaggage(new Baggage());\n passenger.setRetBaggage(new Baggage());//creating bean for filling data in\n String fullName = InfoColumnPage.getInstance().getPassengerFullName();\n parseAndFillPassengerName(passenger, fullName);\n Set<String> rawBookingData = InfoColumnPage.getInstance().getDepPassengerRawData();//getting raw data from page\n for (String s :\n rawBookingData) {\n parseAndFillPassenger(s, passenger, true); //true stands for departure\n }//parsing raw data and filling bean for departure\n rawBookingData = InfoColumnPage.getInstance().getRetPassengerRawData();\n for (String s :\n rawBookingData) {\n parseAndFillPassenger(s, passenger, false); //true stands for departure\n }//parsing raw data and filling bean for return\n fillNonMentionedWithDefaults(passenger);//filling non mentioned values in page with its default values\n\n return passenger;\n }",
"public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}",
"@Override\n public ColumnInfo getColumnInfo() {\n return columnInfo;\n }",
"@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);",
"@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}",
"public String getInfoPkid() {\n return infoPkid;\n }",
"public interface UserInfoDAO {\n void addUserInfo(int id, String name, String surname, int positionId, Date bday, String magazine, String photo);\n List<UserInfo> getTable();\n UserInfo getUserInfoById(int id);\n void updateUserInfo(String newName, String newSurname, Date bday, int newPositionId, String newMagazine, int id);\n List<UserInfo> getForHead(String magazine);\n List<UserInfo> getForJournalist(String magazine);\n List<UserInfo> getForOwner();\n void updateUserPhoto(String photo, int id);\n}",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"public String getEmployeeInfo() throws SQLException {\n String SQL = String.format(\"SELECT * FROM %s\", DbSchema.table_employees.name);\n Statement statement = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n ResultSet results = statement.executeQuery(SQL);\n\n //Prepare format stuff\n String tableHeader = String.format(\"%s %s %s %s %s\\n\", table_employees.cols.id, table_employees.cols.first_name, table_employees.cols.last_name, table_employees.cols.age, table_employees.cols.salary);\n StringBuilder output = new StringBuilder(tableHeader);\n DecimalFormat format = new DecimalFormat(\"#,###.00\");\n\n while (results.next()) {\n //Iterate through each row (employee) and add each bit of info to table\n String row = String.format(\"%s %s %s %s %s\\n\",\n results.getInt(table_employees.cols.id),\n results.getString(table_employees.cols.first_name),\n results.getString(table_employees.cols.last_name),\n results.getInt(table_employees.cols.age),\n format.format(results.getDouble(table_employees.cols.salary)));\n output.append(row);\n }\n return output.toString();\n }",
"public void formDatabaseTable() {\n }",
"@SqlQuery(\"select * from PLAYERSTATS\")\n List<PlayerStats> getAll();",
"public String infoName();",
"public interface TableDetailMapper {\n\n @Select(\"select * from dxh_sys.tabledetail where vendorId=0 and tableName='skuProfitDayReport'\")\n List<Map<String, Object>> list();\n\n}",
"public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}",
"@Override\n\tprotected Object mapObj(ResultSet rs) throws SQLException {\n\t\tTbTravelerInfo tbTravelerInfo = new TbTravelerInfo() ;\n\t\ttbTravelerInfo.setId(rs.getInt(\"id\")) ;\n\t\ttbTravelerInfo.setIntBillId(rs.getInt(\"intBillId\")) ;\n\t\ttbTravelerInfo.setStrCountry(rs.getString(\"strCountry\")) ;\n\t\ttbTravelerInfo.setStrIndentyNumber(rs.getString(\"strIndentyNumber\")) ;\n\t\ttbTravelerInfo.setStrTravelerName(rs.getString(\"strTravelerName\")) ;\n\t\ttbTravelerInfo.setStrSex(rs.getString(\"strSex\")) ;\n\t\ttbTravelerInfo.setStrBirthday(rs.getString(\"strBirthday\")) ;\n\t\treturn tbTravelerInfo;\n\t}",
"public interface RelationInfoDao extends BaseDao<RelationInfoDO> {\n\n HashMap<String,String> getDependents(String tableNames);\n\n List<HashMap<String,String>> getParentTable(String tableNames);\n\n List<HashMap<String,String>> getChlidTable(String s);\n}",
"@MyBatisDao\n@Repository\npublic interface DeviceDao {\n\n void addDevice(DeviceDTO deviceDTO);\n\n void updateDevice(DeviceDTO deviceDTO);\n\n void delDevice(Integer id);\n\n List<String> selectAllType();\n\n List getDeviceByInfo(DeviceDTO deviceDTO);\n\n int getDeviceNum(String type);\n\n int deviceBindNum(String type);\n}",
"@Override\n public String toString() {\n return String.format(\"[%d] [%d]\", dameFila(), dameColumna());\n }",
"public interface EmpDao {\n\n\n /**\n * 根据参数查询列表\n * @param map\n * @return\n */\n\n// select empno,ENAME,job,mgr,hiredate,sal,comm,deptno from emp\n @Select(\"<script>\" +\n \"select a.empno,a.ename,a.job,a.mgr,to_char(a.hiredate,'yyyy-mm-dd') hiredate,a.sal,a.comm,a.deptno,a.mgrname,a.dname,a.rn from \" +\n \"(select b.*,rownum rn from \" +\n \"(select e.*,d.dname from (select e1.*,e2.ename mgrname from emp e1 left join emp e2 on e1.mgr=e2.empno) e left join dept d on e.deptno=d.deptno \" +\n \"<where>\" +\n \"<if test='ename!=null'>and e.ename like '%'||#{ename}||'%' </if>\" +\n \"<if test='job!=null'>and e.job like '%'||#{job}||'%' </if>\" +\n \"</where>\" +\n \"order by empno desc) b where rownum < #{end}) a where a.rn > #{start}\" +\n \"</script>\")\n List<Map> getList(Map map);\n\n\n /**\n * 带条件查询总条数\n * @param map\n * @return\n */\n @Select(\"<script>\"+\n \"select count(*) from emp <where>\" +\n \"<if test='ename != null'> and ename like '%${ename}%'</if>\"+\n \"<if test='job != null'> and job like '%${job}%'</if>\"+\n \"</where></script>\")\n int getPageCount(Map map);\n /**\n * 添加\n * @param map\n * @return\n */\n// seq_emp_id.nextval,ename, job, hiredate, sal, comm,deptno\n @Insert(\"insert into emp values(seq_emp_id.nextval,#{ENAME},#{JOB},#{MGR},to_date(#{HIREDATE},'yyyy-mm-dd'),#{SAL},#{COMM},#{DEPTNO})\")\n int add(Map map);\n\n\n /**\n * 更新\n * @param map\n * @return\n */\n @Update(\"update emp set ename=#{ENAME},job=#{JOB},mgr=#{MGR},hiredate=to_date(#{HIREDATE},'yyyy-mm-dd'),sal=#{SAL},comm=#{COMM},deptno=#{DEPTNO} where empno=#{EMPNO}\")\n int update(Map map);\n\n /**\n * 删除\n * @param deptNo\n * @return\n */\n @Delete(\"delete from emp where empno=#{EMPNO}\")\n int delete(int deptNo);\n\n /**\n * 获取所有部门,用于页面数据绑定\n * @return\n */\n @Select(\"select deptno,dname from dept\")\n List<Map> getDeptType();\n\n /**\n * 获取所有职位,用于页面数据绑定\n * @return\n */\n @Select(\"select distinct(job) from emp\")\n List<Map> getJob();\n\n /**\n * 获取上司,用于页面数据绑定\n * @return\n */\n @Select(\"select empno,ename from emp where job='PRESIDENT' or job='MANAGER' or job='ANALYST'\")\n List<Map> getMgr();\n\n\n}",
"@Mapper\npublic interface UserInfoDao {\n\n void create(UserInfo userInfo);\n //正常注册用户查询\n UserInfo findByLoginName(@Param(\"loginName\") String loginName);\n //扒取用户信息查询\n UserInfo findByLoginNameCrawler(@Param(\"loginName\") String loginName);\n\n void updateState(UserInfo userInfo);\n\n void updateCreateTime(UserInfo userInfo);\n\n void changePassword(UserInfo userInfo);\n\n UserInfo findByUserId(@Param(\"userId\") String userId);\n\n UserInfo findByUserIdAll(@Param(\"userId\") String userId);\n\n int friend(@Param(\"userId\")String userId,@Param(\"friendId\") String friendId);\n\n List<UserInfo> findByUserName(@Param(\"userName\") String userName);\n\n List<String> allLoginNames();\n}",
"public void gethotelinfo(){\n String query = \"SELECT Name , HID , Income \"\n + \"FROM Hotel \" ;\n \n String query2 = \"SELECT COUNT(*) AS rowcount\"\n + \" FROM Rooms \" ;\n try {\n PreparedStatement Query = conn.prepareStatement(query);\n PreparedStatement Query2 = conn.prepareStatement(query2);\n ResultSet rs = Query.executeQuery(query);\n ResultSet rs2 = Query2.executeQuery(query2);\n String name =\"\" ;\n int HotelID = 0 , NoOfrooms=0;\n double income = 0.0 ;\n while(rs.next() && rs2.next()){\n name = rs.getString(\"Name\");\n HotelID = rs.getInt(\"HID\");\n NoOfrooms = rs2.getInt(\"rowcount\");\n income = rs.getDouble(\"Income\");\n \n }\n hotel h = new hotel(name , HotelID , income , NoOfrooms);\n \n }\n catch (SQLException ex) {\n \n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n }",
"public interface GirlMapper extends JpaRepository<Girl,Integer>{\n\n}",
"private String _columnInfo(int i, DBField f, boolean isDefined)\n {\n String ndx = StringTools.format(i,\"00\");\n String name = StringTools.leftAlign(f.getName(),22);\n String desc = isDefined? (\": \" + f.getTitle(null)) : \"\";\n String type = f.getSqlType();\n if (f.isPrimaryKey()) { type += \" key\"; }\n if (f.isAlternateKey()) { type += \" altkey\"; }\n if (f.isAutoIncrement()) { type += \" auto\"; }\n if (f.isUTF8()) { type += \" utf8\"; }\n type = StringTools.leftAlign(type, 32);\n return ndx + \") \" + name + \" \" + type + desc;\n }",
"public Impiegato getInfoImpiegato() throws SQLException,AziendaException,ParseException {\n\t\tUserQuery uq = ProxyDB.getIstance();\n\t\treturn uq.getInfoImpiegato(utente.getUsername());\n\t}",
"public String getMapTableName() {\n return getTableName(false, false, false, true);\n }",
"@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}",
"public String getNomTable();",
"@Select({\n \"select\",\n \"id, user_name, password, age, ver\",\n \"from user_t\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n User selectByPrimaryKey(Integer id);",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"@Override\n protected Map<TableUniqueName, String> tableSubstitution() {\n return ImmutableMap.of();\n }",
"public String toString() {\n return new ToStringBuilder(this)\n .append(\"name\", this.name)\n .append(\"type\", this.type)\n .append(\"sqlTable\", this.sqlTable)\n .append(\"sqlColumn\", this.sqlColumn)\n .append(\"typeLinkId\", this.typeLinkId)\n .toString();\n }",
"@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, \",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, id_soggetto_fk, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n List<SoggettoPersonaleScolastico> selectAll();",
"@Override\n public String toString() {\n String output = \"User Info for: \" + getId();\n output += \"\\n\\tName: \" + getFirstName() + \" \" + getLastName();\n output += \"\\n\\tCreated on: \" + DF.format(getEnrolDate());\n output += \"\\n\\tLast access: \" + DF.format(getLastAccess());\n \n return output;\n }",
"public String getDbTable() {return dbTable;}",
"public ResultSet getItemInfo() throws SQLException {\n\t\tConnection con = openDBConnection();\n\t\tStatement stmt = con.createStatement();\n\t\t/** Proceeds if user is logged in */\n\t\tString queryString = \"Select * From team1.GABES_ITEM i Where i.ITEM_ID='\"\n\t\t\t\t+ this.item_id + \"'\";\n\t\tResultSet result = stmt.executeQuery(queryString);\n\t\treturn result;\n\t}",
"@Override\r\n\t\tpublic Alumni getAlumniDetails(String firstName) throws ClassNotFoundException, SQLException {\n\t\t\t\r\n\t\t\tConnection connection=ConnectionManager.openConnection();\r\n\t\t\tPreparedStatement statement=connection.prepareStatement(\"select * from alumni where first_name=?\");\r\n\t\t\tstatement.setString(1, firstName);\r\n\t\t\t\r\n\t\t\tResultSet resultSet=statement.executeQuery();\r\n\t\t\tAlumni alumni=new Alumni();\r\n\t\t\t\twhile(resultSet.next()) {\r\n\t\t\t\t\r\n\t\t\t\talumni.setAlumniId(resultSet.getInt(\"alumni_id\"));\r\n\t\t\t\talumni.setFirstName(resultSet.getString(\"first_name\"));\r\n\t\t\t\talumni.setLastName(resultSet.getString(\"last_name\"));\r\n\t\t\t\talumni.setEmailAddress(resultSet.getString(\"email\"));\r\n\t\t\t\talumni.setPhoneNumber(resultSet.getString(\"phone_number\"));\r\n\t\t alumni.setGender(resultSet.getString(\"gender\"));\r\n\t\t\t\talumni.setPresentStatus(resultSet.getString(\"present_status\"));\r\n\t\t\t\talumni.setYearOfCompletition(resultSet.getInt(\"year_of_completition\"));\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tConnectionManager.closeConnection();\r\n\t\t\treturn alumni;\r\n\t\t}",
"private HashMap<Long, String> getTable() {\n return table;\n }",
"public int getSirinaTable() {\n\t\treturn this.sirinaTable;\n\t}",
"@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}",
"@Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number, id_firstcontact_doctor, password FROM patients;\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"password\", column = \"password\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n List<Patient> getAllPatientsDataToTable();",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"@Override\r\n\t\tpublic DatabaseMetaData getMetaData() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"@Select({\n \"select\",\n \"id_soggetto, codice_fiscale, id_asr, cognome, nome, data_nascita_str, comune_residenza_istat, \",\n \"comune_domicilio_istat, indirizzo_domicilio, telefono_recapito, data_nascita, id_soggetto_fk,\",\n \"asl_residenza, asl_domicilio, email, lat, lng, id_tipo_soggetto, utente_operazione, \",\n \"data_creazione, data_modifica, data_cancellazione, id_medico\",\n \"from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"id_soggetto\", property=\"idSoggetto\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"codice_fiscale\", property=\"codiceFiscale\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_asr\", property=\"idAsr\", jdbcType=JdbcType.BIGINT),\n @Result(column=\"cognome\", property=\"cognome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"nome\", property=\"nome\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita_str\", property=\"dataNascitaStr\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_residenza_istat\", property=\"comuneResidenzaIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"comune_domicilio_istat\", property=\"comuneDomicilioIstat\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"indirizzo_domicilio\", property=\"indirizzoDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"telefono_recapito\", property=\"telefonoRecapito\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_nascita\", property=\"dataNascita\", jdbcType=JdbcType.DATE),\n @Result(column=\"asl_residenza\", property=\"aslResidenza\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"asl_domicilio\", property=\"aslDomicilio\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"email\", property=\"email\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"lat\", property=\"lat\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"lng\", property=\"lng\", jdbcType=JdbcType.NUMERIC),\n @Result(column=\"id_tipo_soggetto\", property=\"idTipoSoggetto\", jdbcType=JdbcType.INTEGER),\n @Result(column = \"id_soggetto_fk\", property = \"idSoggettoFk\", jdbcType = JdbcType.BIGINT),\n @Result(column=\"utente_operazione\", property=\"utenteOperazione\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"data_creazione\", property=\"dataCreazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_modifica\", property=\"dataModifica\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"data_cancellazione\", property=\"dataCancellazione\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"id_medico\", property=\"idMedico\", jdbcType=JdbcType.BIGINT)\n })\n SoggettoPersonaleScolastico selectByPrimaryKey(Long idSoggetto);",
"public interface PlayerStatisticMapper {\n\n @Results({\n @Result(property = \"id\", column = \"id\"),\n @Result(property = \"player\", column = \"id_player\", javaType = Player.class,\n one = @One(select = \"my.antonov.database.impl.logic.mappers.PlayerMapper.selectPlayerById\")),\n\n @Result(property = \"gamesCount\", column = \"games_count\"),\n @Result(property = \"winsCount\", column = \"wins_count\")\n })\n @Select(\"SELECT id, id_player, games_count, wins_count FROM player_statistic WHERE id = #{id}\")\n PlayerStatistic selectStatisticById(Integer id);\n\n @Insert(\"INSERT INTO player_statistic(id_player, games_count, wins_count) VALUES(#{player.id}, #{gamesCount}, #{winsCount})\")\n void insertNewStaticstic(PlayerStatistic statistic);\n\n @Update(\"ALTER TABLE player_statistic AUTO_INCREMENT = #{ai}\")\n void alterAutoIncrement(Integer ai);\n}",
"public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}",
"public void generateAttributes() throws SQLException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, InstantiationException{\n ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring.xml\");\n //Get the EmployeeDAO Bean\n BasicDataDAO dataDAO = null;\n BasicData newData = null;\n \n \n if (tableName.equals(\"test\")) {\n\t\t\tdataDAO = ctx.getBean(\"testDAO\", TestDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Test(0, 99, \"Hello\", \"sample\", new Date());\n\t\t}else if (tableName.equals(\"utilisateur\")) {\n\t\t\tdataDAO = ctx.getBean(\"utilisateurDAO\", UtilisateurDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Utilisateur(0, \"handa\", \"handa-upsud\", \"admin\", 30);\n\t\t}else if (tableName.equals(\"source\")) {\n\t\t\tdataDAO = ctx.getBean(\"sourceDAO\", SourceDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Source(0, \"http\", \"srouce1\", \"haut\", \"France\", \"vertical\", 10, \"test\");\n\t\t}else if (tableName.equals(\"theme\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeDAO\", ThemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Theme(0, \"testTheme\");\n\t\t}else if (tableName.equals(\"themeRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeRelationDAO\", ThemeRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new ThemeRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"version\")) {\n\t\t\tdataDAO = ctx.getBean(\"versionDAO\", VersionDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Version(0, 1, \"url_serveur\", \"version\", new Date());\n\t\t}else if (tableName.equals(\"abonnementRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"abonnementRelationDAO\", AbonnementRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AbonnementRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"alerteRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"alerteRelationDAO\", AlerteRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AlerteRelation(0, 1, 1, 15, new Date(), \"sujet\", \"type\", \"statut\", \"description\");\n\t\t}else if (tableName.equals(\"blacklistageSysteme\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageSystemeDAO\", BlacklistageSystemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageSysteme(0, 1);\n\t\t}else if (tableName.equals(\"blacklistageUtilisateurRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageUtilisateurRelationDAO\", BlacklistageUtilisateurRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageUtilisateurRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"demandeModifRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"demandeModifRelationDAO\", DemandeModifRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new DemandeModifRelation(0, 1, 1, new Date(), \"type\", \"statut\", \"description\");\n\t\t}\n \n \n this.insert = dataDAO.insert(newData);\n //selecById\n BasicData t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.selectById = t.toString();\n\t\t}else {\n\t\t\tthis.selectById = \"rien\";\n\t\t}\n //update\n this.update = dataDAO.update(t);\n t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.resultatUpdate = t.toString();\n\t\t}else {\n\t\t\tthis.resultatUpdate = \"rien\";\n\t\t}\n //selectAll\n ArrayList<? extends BasicData> alTest = dataDAO.selectAll();\n this.selectAll = alTest.size();\n if (alTest.size()==0) {\n \tthis.ligne1 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne1 = alTest.get(0).toString();\n\t\t}\n //selectWhere\n String condition = \"id > 1\";\n this.condition = condition;\n ArrayList<? extends BasicData> alTest1 = dataDAO.selectWhere(condition);\n this.selectWhere = alTest1.size();\n if (alTest1.size()==0) {\n \tthis.ligne11 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne11 = alTest1.get(0).toString();\n\t\t}\n //deleteById\n this.deleteById = 99;\n //this.deleteById = dataDAO.deleteById(insert);\n }",
"@Select({\n \"select\",\n \"recommended_code, user_id, recommended_url, recommended_qrcode, update_time, \",\n \"create_time\",\n \"from user_recommended_code\",\n \"where recommended_code = #{recommendedCode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"recommended_code\", property=\"recommendedCode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_url\", property=\"recommendedUrl\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"recommended_qrcode\", property=\"recommendedQrcode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"update_time\", property=\"updateTime\", jdbcType=JdbcType.TIMESTAMP),\n @Result(column=\"create_time\", property=\"createTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n UserRecommendedCode selectByPrimaryKey(String recommendedCode);",
"String getTableName();",
"private void statsTable() {\n try (Connection connection = hikari.getConnection()) {\n try (PreparedStatement statement = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS `\" + TABLE_STATS + \"` \" +\n \"(id INT NOT NULL AUTO_INCREMENT UNIQUE, \" +\n \"uuid varchar(255) PRIMARY KEY, \" +\n \"name varchar(255), \" +\n \"kitSelected varchar(255), \" +\n \"points INT, \" +\n \"kills INT, \" +\n \"deaths INT, \" +\n \"killstreaks INT, \" +\n \"currentKillStreak INT, \" +\n \"inGame BOOLEAN)\")) {\n statement.execute();\n statement.close();\n connection.close();\n }\n } catch (SQLException e) {\n LogHandler.getHandler().logException(\"TableCreator:statsTable\", e);\n }\n }",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}",
"@MyBatisRepository\npublic interface UserMybatisDao {\n int register(User user);\n\n int updateUser(User user);\n\n String checkPhone(String phone);\n\n int perfectUserInfo(Map params);\n\n User findByToken(String uid);\n\n int checkIsRegisteredByPhone(String phone);\n\n User findByUserId(Long userId);\n}",
"@Override\n\tpublic List<SupplierView> getAllSupplierInfo() {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type, s.permanent_address, s.temporary_address,h.quantity,h.supplier_unique_id ,h.cost,h.buy_date,h.username,i.product_id, i.product_name FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id INNER JOIN product i on h.product_product_id=i.product_id\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().query(sql,rowmapper);\n\t}",
"@Override\n\tprotected Mapping getMapping() {\n\t\treturn new Mapping()\n\t\t\t.add(\"firstname\", driver.getFirstName())\n\t\t\t.add(\"lastname\", driver.getLastName())\n\t\t\t.add(\"dateofbirth\", driver.getDateOfBirth())\n\t\t\t.add(\"gender\", driver.getGender())\n\t\t\t.add(\"age\", computeAge())\n\t\t\t.add(\"numberOfAccidents\", driver.getNumberOfAccidents())\n\t\t\t.add(\"numberOfTickets\", driver.getNumberOfTickets());\n\t}",
"@Override\n\tprotected DoublyIndexedTable<String, String> getTraitInformationTable() {\n\t\treturn xmlTraitInformation;\n\t}",
"@Override\n\tpublic List<Map<String, Object>> queryrecord(Employee bi, String name, String userinfoid, Integer start,\n\t\t\tInteger limit) {\n\t\tStringBuffer hql = new StringBuffer(\"select gb,ti,mi,u from Giftbox gb,ToysInfo ti,MachineInfo mi,UserInfo u where gb.fuserinfoid = u.id and gb.fmachineid = mi.id and gb.ftoysid = ti.id and gb.fuserinfoid = \")\n\t\t\t\t.append(Long.parseLong(userinfoid));\n\t\thql = hql.append(\" order by gb.createtime desc\");\n\t\tList<Object[]> lst = databaseHelper.getResultListByHql(hql.toString(),start,limit);\n\t\tList<Map<String,Object>> lstMap = new ArrayList<Map<String,Object>>();\n\t\t\n\t\tfor (Object[] objects : lst) {\n\t\t\tGiftbox g = (Giftbox)objects[0];\n\t\t\tToysInfo t =(ToysInfo) objects[1];\n\t\t\tMachineInfo m = (MachineInfo) objects[2];\n\t\t\tUserInfo u = (UserInfo) objects[3];\n\t\t\t\n\t\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\t\tmap.put(\"id\", g.getId());\n\t\t\tmap.put(\"username\", u.getUsername());\n\t\t\tmap.put(\"toyname\", t.getName());\n\t\t\tmap.put(\"machineno\", m.getMachineno());\n\t\t\tmap.put(\"photo\", g.getPhoto());\n\t\t\tmap.put(\"getphoto\", g.getGetphoto());\n\t\t\tmap.put(\"state\", g.getState()==-1?\"失效\":g.getState()==0?\"新获得\":g.getState()==1?\"配货中\":\"已发货\");\n\t\t\tmap.put(\"time\", u.getCreatetime().toString());\n\t\t\t\n\t\t\t\n\t\t\tlstMap.add(map);\n\t\t}\n\t\t\n\t\treturn lstMap;\n\t}",
"@Override\r\n\tpublic String generate() {\r\n\t\tStringBuilder query = new StringBuilder();\r\n\r\n\t\tquery.append(\"INSERT INTO \").append(tableName).append(\" (\");\r\n\t\tfor (int i = 0; i < fieldNames.size(); i++) {\r\n\t\t\tquery.append(fieldNames.get(i));\r\n\t\t\tif (i < fieldNames.size() - 1) {\r\n\t\t\t\tquery.append(\", \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tquery.append(\") VALUES (\");\r\n\t\tfor (int i = 0; i < fieldValues.size(); i++) {\r\n\t\t\tquery.append(\"'\").append(fieldValues.get(i)).append(\"'\");\r\n\t\t\tif (i < fieldValues.size() - 1) {\r\n\t\t\t\tquery.append(\", \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tquery.append(\");\");\r\n\t\treturn query.toString();\r\n\t}",
"public UserInfoEntity toUserInfoEntity(){\n UserInfoEntity userInfoEntity = new UserInfoEntity();\n userInfoEntity.setUserId(IdGen.getNewUserID());\n userInfoEntity.setCreateBy(name);\n userInfoEntity.setCreateOn(DateUtils.getDate());\n return toUserInfoEntity(userInfoEntity);\n }",
"public java.lang.String getInfoId() {\n return infoId;\n }",
"public interface NotationMapper {\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"<script>SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME FROM NOTATION \",\n \"<if test='type != \\\"\\\"'>WHERE TYPE = #{type}, </if>\",\n \"</script>\"})\n List<JSONObject> getNotationList(@Param(\"type\") String type);\n @Results({ @Result(property = \"notationId\", column = \"NOTATION_ID\"),\n @Result(property = \"title\", column = \"TITLE\"),\n @Result(property = \"subtitle\", column = \"SUBTITLE\"),\n @Result(property = \"bio\", column = \"BIO\"),\n @Result(property = \"notationUrl\", column = \"NOTATION_URL\"),\n @Result(property = \"bmgUrl\", column = \"BMG_URL\"),\n @Result(property = \"authorUrl\", column = \"AUTHOR_URL\"),\n @Result(property = \"accTitle\", column = \"ACC_TITLE\"),\n @Result(property = \"accUrl\", column = \"ACC_URL\"),\n @Result(property = \"type\", column = \"TYPE\"),\n @Result(property = \"resourceUrl\", column = \"RESOURCE_URL\"),\n @Result(property = \"createTime\", column = \"CREATETIME\") })\n @Select({\"SELECT NOTATION_ID,TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME \",\n \"FROM NOTATION WHERE LOCATE(#{title},TITLE) OR LOCATE(#{title},SUBTITLE)\"\n })\n List<JSONObject> fuzzyByTitle(@Param(\"title\")String title);\n\n @Insert({\"INSERT INTO NOTATION (TITLE,SUBTITLE,BIO,NOTATION_URL,BMG_URL,AUTHOR_URL,ACC_TITLE,ACC_URL,TYPE,RESOURCE_URL,CREATETIME)\" +\n \"VALUES(#{title},#{subtitle},#{bio},#{notationUrl},#{bmgUrl},#{authorUrl},#{accTitle},#{accUrl},#{type},\" +\n \"#{resourceUrl},#{createTime})\"})\n void addNotation(JSONObject reqJson);\n}",
"public String toString()\n {\n return this.getUntranslatedTableName();\n }",
"public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }",
"public TableInfo getTableInfoParticipantVisit()\n {\n return getSchema().getTable(\"ParticipantVisit\");\n }",
"public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}",
"public String getName() { return _sqlName; }",
"@Override\n public String asTableDbName() {\n return \"user\";\n }",
"protected String getTableName()\n {\n return immutableGetTableName();\n }",
"public String toString() {\n return \"[JDBCRawSqlQueryMetaData : method=\" + method + \"]\";\n }",
"public interface WarningLogMapper {\n\n @Select(\"SELECT * \"\n + \" FROM warning_log \"\n + \"where devEUI = #{devEUI} and status=#{status} \")\n List<WarningLog> queryByDevAndStatus(@Param(\"devEUI\") String devEUI,@Param(\"status\") String status);\n\n @Select(\"SELECT * \"\n + \" FROM warning_log \"\n + \"where id = #{id} \")\n WarningLog queryWarningLog(@Param(\"id\") String id);\n\n @Select(\"<script>\"\n +\"SELECT * FROM warning_log where devEUI in \"\n + \"<foreach collection=\\\"list\\\" open=\\\"(\\\" close=\\\")\\\" separator=\\\",\\\" item=\\\"uid\\\" >\"\n + \"#{uid}\"\n + \"</foreach>\"\n + \"<if test =\\\"status !=null and status!=''\\\"> and status = #{start} </if>\"\n +\" order by status asc, createTime desc \"\n +\"</script>\")\n List<WarningLog> queryWarningLogByDevIds(@Param(\"list\") List<String> list, @Param(\"status\") String status);\n\n @Insert(\"insert into warning_log (devEUI,time,fPort,gatewayCount,rssi,fCnt,loRaSNR,data,devicePath,functionCode,dataLen,status,createTime)\"\n + \" values( #{devEUI},#{time},#{fPort},#{gatewayCount},#{rssi},#{fCnt},#{loRaSNR},#{data},#{devicePath},#{functionCode},#{dataLen}, #{status},#{createTime} ) \")\n int saveWarningLog(WarningLog log);\n\n /**\n * 将故障的设备标记为已修复\n * @param status\n * @param updateTime\n * @param devEUI\n * @return\n */\n @Update(\"update warning_log set status = #{status}, updateTime = #{updateTime} where devEUI=#{devEUI} and status ='0' \")\n int updateStatus(@Param(\"status\") String status, @Param(\"updateTime\") Date updateTime, @Param(\"devEUI\") String devEUI);\n\n @Select(\"<script>\"\n +\"SELECT count(id) FROM warning_log where devEUI in \"\n + \"<foreach collection=\\\"list\\\" open=\\\"(\\\" close=\\\")\\\" separator=\\\",\\\" item=\\\"uid\\\" >\"\n + \"#{uid}\"\n + \"</foreach>\"\n + \"<if test =\\\"status !=null and status!=''\\\"> and status = #{status} </if>\"\n +\"</script>\")\n int queryFaultCount(@Param(\"list\") List<String> list, @Param(\"status\") String status);\n\n\n}",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}",
"public interface TableMetaData {\n\n\t/** Adds normal column. */\n\tpublic void addColumn(final ColumnMetaData column);\n\n\t/** Adds primary key column. */\n\tpublic void addPrimaryKey(final ColumnMetaData column);\n\n\t/** Returns map of column meta data, keyed by the column label (the alias if provided in the query, otherwise the name). */\n\tpublic Map<String, ColumnMetaData> getColumns();\n\n\t/** Returns database name. */\n\tpublic String getDatabaseName();\n\n\t/** Returns ordered list of columns that are primary keys. */\n\tpublic List<ColumnMetaData> getPrimaryKeys();\n\n\t/**\n\t * Returns fully qualified table name in database-specific form for use in SQL statements. MySQL uses the form\n\t * <code>database.table</code>, for example <code>sakila.film</code>. PostgreSQL uses the form\n\t * <code>database.schema.table</code>, for example <code>sakila.public.film</code>.\n\t */\n\tpublic String getQualifiedTableName();\n\n\t/** Returns row alias. */\n\tpublic String getRowAlias();\n\t\n\t/** Returns row set alias. */\n\tpublic String getRowSetAlias();\n\t\n\t/**\n\t * Returns row alias.\n\t * \n * @deprecated As of 0.8.11 use {@link #getRowAlias()}\n\t */\n\t@Deprecated\n\tpublic String getTableAlias();\n\n\t/** Returns table name. */\n\tpublic String getTableName();\n\n\t/** Returns role of table in the SQL Resource. */\n\tpublic TableRole getTableRole();\n\n\t/** Returns true if the SQL Resource role is child. */\n\tpublic boolean isChild();\n\n\t/** Returns true if the SQL Resource role is parent. */\n\tpublic boolean isParent();\n\n\t/** Sets all the row and row set aliases. */\n\tpublic void setAliases(final String alias, final String rowAlias, final String rowSetAlias);\n\n\t/** Sets attributes. */\n\tpublic void setAttributes(final String tableName, final String qualifedTableName,\n\t\t\tfinal String databaseName, final TableRole tableRole);\n\n\t/**\n\t * Sets table alias.\n\t * \n * @deprecated As of 0.8.11 use {@link #setAliases(String, String, String)}\n\t */\n\t@Deprecated\n\tpublic void setTableAlias(final String tableAlias);\n\t\n\t/** Represents all of the roles a table may plan in a SQL Resource. */\n\t@XmlType(namespace = \"http://restsql.org/schema\")\n\tpublic enum TableRole {\n\t\tChild, ChildExtension, Join, Parent, ParentExtension, Unknown;\n\t}\n}",
"@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}",
"public interface ICriteriaWhen {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table sale_classify_good\n *\n * @mbg.generated\n * @project https://github.com/itfsw/mybatis-generator-plugin\n */\n void criteria(Criteria criteria);\n }",
"@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime >= #{higherSkuParam.startTime}\",\n \"AND s.updateTime <= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}",
"@Repository\npublic interface UserMapper extends Serializable{\n\n /**\n * get the user info by the user id\n * @param user_id\n * @return\n */\n UserInfo getUserById(Integer user_id);\n\n /**\n * you want to get the user id list by the user nick name\n * @param nick_name the nick name\n * @return the user id list\n */\n List<Integer> getUsersByNickName(String nick_name);\n\n /**\n * you want to get the user info list by the id list\n * @param idList the id list\n * @return the user info list\n */\n List<UserInfo> getUserListByIdLists(List<Integer> idList);\n\n /**\n * you want to get the user info by the user nickname and the sex\n * @param map keys = {'nickname','sex'}\n * @return the result list\n */\n List<UserInfo> getUserByNickNameAndSex(Map<String,String> map);\n\n /**\n * you want to get your friends by your user id\n * @param user_id the user id\n * @return a list contains the friends of you\n */\n List<UserInfo> getFriendsOfMine(Integer user_id);\n\n /**\n * get the user's friends details\n * @param user_id the user id\n * @return the friends list\n */\n UserFriendsEntry getUserFriendsList(Integer user_id);\n\n /**\n * get the friends' friends\n * @param user_id the user id\n * @return the object of com.hujian.mvc.model.UserFriendsFriends\n */\n UserFriendsFriendsEntry getFriendsFriends(Integer user_id);\n\n /**\n * insert an user\n * @param userEntry\n * @return\n */\n Integer insertUser(InsertUserEntry userEntry);\n\n /**\n * remove an user from database\n * @param user_id\n * @return\n */\n Integer removeUserByUserId(Integer user_id);\n\n /**\n * update the user info\n * @param updateEntry the new user info\n * @return -1 means update error\n */\n Integer updateUserInfo(UpdateEntry updateEntry);\n\n\n}",
"public interface Columns {\r\n public static final String LOGIN_ID = \"login_id\";\r\n public static final String PASSWORD = \"password\";\r\n public static final String ADDRESS = \"address\";\r\n public static final String FEE = \"fee\";\r\n public static final String GRACE_PERIOD = \"grace_period\";\r\n public static final String USEREMAIL = \"user_email\";\r\n }",
"public void showInfo() throws SQLException { //to show the info when the page is loaded\n \tshowInfoDump();\n \tshowInfoMatl();\n }",
"@Dao\npublic interface UserDao {\n @Query(\"SELECT * FROM userInfo\")\n List<UserInfo> getAllUser();\n\n @Query(\"SELECT * FROM userInfo where emp_first_name LIKE :firstName AND emp_last_name LIKE :lastName\")\n UserInfo getUserByName(String firstName,String lastName);\n\n @Query(\"SELECT COUNT(*) from userInfo\")\n int getUserCount();\n\n @Insert(onConflict = REPLACE)\n void insertUser(UserInfo... userInfos);\n\n @Delete\n void delete(UserInfo userInfo);\n\n\n}",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}",
"UserInfoUserinfo selectByPrimaryKey(Integer userid);",
"@Select({\n \"select\",\n \"uid, username, password, sex, phonenumber, id_card, bank_card, bank_location, \",\n \"type, salt, is_able, create_time, parent_id, name\",\n \"from xxd_user\",\n \"where uid = #{uid,jdbcType=INTEGER}\"\n })\n @Results({\n @Result(column=\"uid\", property=\"uid\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"sex\", property=\"sex\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"phonenumber\", property=\"phonenumber\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"id_card\", property=\"idCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_card\", property=\"bankCard\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"bank_location\", property=\"bankLocation\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"type\", property=\"type\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"salt\", property=\"salt\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"is_able\", property=\"is_able\", jdbcType=JdbcType.SMALLINT),\n @Result(column=\"create_time\", property=\"create_time\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"parent_id\", property=\"parent_id\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR)\n })\n XxdUser selectByPrimaryKey(Integer uid);",
"@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}",
"@Override\r\n\tpublic MemberDto myInfo(String email) {\n\t\treturn jdbcTemplate.query(\"select * from s_member where email=?\", extractor,email);\r\n\t}",
"public abstract String toSQL();"
] | [
"0.5687458",
"0.5584085",
"0.5461206",
"0.54287654",
"0.54066455",
"0.5362312",
"0.5335768",
"0.53355366",
"0.5247664",
"0.5225035",
"0.52163434",
"0.5172487",
"0.51557827",
"0.5131258",
"0.5104857",
"0.50975364",
"0.50908273",
"0.50768244",
"0.50726014",
"0.5064885",
"0.5059958",
"0.5053947",
"0.50485826",
"0.5046831",
"0.50443697",
"0.50422734",
"0.5040452",
"0.5039394",
"0.50387",
"0.502177",
"0.5018099",
"0.5009295",
"0.49977297",
"0.49945006",
"0.4991253",
"0.4989827",
"0.4986553",
"0.498464",
"0.49826148",
"0.49804068",
"0.49794012",
"0.4963886",
"0.49612933",
"0.49560836",
"0.49524343",
"0.49492282",
"0.49391228",
"0.49364075",
"0.49291378",
"0.49216363",
"0.49173197",
"0.49167642",
"0.4914363",
"0.4913998",
"0.49044693",
"0.4904281",
"0.4902012",
"0.48993382",
"0.4898747",
"0.4896759",
"0.48939592",
"0.48887005",
"0.48849994",
"0.48805228",
"0.48775008",
"0.4874289",
"0.48636612",
"0.4857093",
"0.48534846",
"0.4852284",
"0.48490924",
"0.4847378",
"0.4844718",
"0.48386738",
"0.48376587",
"0.48341355",
"0.48311827",
"0.4829082",
"0.48284927",
"0.48237115",
"0.48221397",
"0.48209152",
"0.48184907",
"0.481658",
"0.48133248",
"0.48114827",
"0.4811215",
"0.48046595",
"0.4802596",
"0.48024914",
"0.48003992",
"0.47978824",
"0.47942898",
"0.47918156",
"0.47916567",
"0.47898138",
"0.47887403",
"0.4786199",
"0.47830078",
"0.47766647",
"0.4775443"
] | 0.0 | -1 |
Set the global Number | public void showDialog() {
if (productsItem.getPrice() != null)
priceOfRate = Double.valueOf(productsItem.getPrice().replace(",", ""));
binding = DataBindingUtil.inflate(LayoutInflater.from(context), R.layout.item_order_product_selection, null, false);
binding.tvProductName.setText( productsItem.getName());
binding.tvProductPrice.setText(String.format(Locale.ENGLISH,"%,.2f", priceOfRate));
binding.tvProductStock.setText(String.format(Locale.ENGLISH,"%,.2f", Double.parseDouble(productsItem.getStock())));
if (selectedProductHelper != null) {
if(!selectedProductHelper.isFree()) {
binding.etProductQty.setText(selectedProductHelper.getProductQuantity());
binding.tvTotalPrice.setText(String.format(Locale.ENGLISH, "%,.2f", Double.valueOf(binding.tvProductPrice.getText().toString().replace(",", "")) * Double.valueOf(binding.etProductQty.getText().toString())));
try {
List<TradePromoionData> tradePromoionData = mDatabaseHandler.getTradePromoion(productsItem.getId());
if (tradePromoionData.size() > 0) {
binding.tvOfferName.setText("Free: " + tradePromoionData.get(0).getFreeProductName());
binding.tvOfferQty.setText(String.format(Locale.ENGLISH, "%,.2f", (Integer.parseInt(binding.etProductQty.getText().toString()) / Integer.parseInt(tradePromoionData.get(0).getPromoionValue())) * Integer.parseInt(tradePromoionData.get(0).getFreeProductQty())));
}
} catch (NumberFormatException e) {
Log.d("tareq_test", "Eroor while reloading Product Selection Dialog: " + e.getMessage());
}
}
}
binding.etProductQty.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
discount = 0.0;
binding.tvOfferName.setText("");
binding.tvOfferQty.setText("");
binding.tvDiscount.setText((String.format(Locale.ENGLISH, "%,.2f", discount)));
binding.tvGrandTotal.setText(String.format(Locale.ENGLISH, "%,.2f", totalPrice));
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
//Price Variation
List<PriceVariationStartEnd> priceVariationList = mDatabaseHandler.getpriceVariationStartEndEprice(productsItem.getId(), outletType, Integer.parseInt(productsItem.getVariantRow()));
List<TradePromoionData> tradePromoionData = mDatabaseHandler.getTradePromoion(productsItem.getId());
String outletTypeName = outletType;
int size = priceVariationList.size();
try {
String inputPrice = s.toString();
double inputFinalPrice = Double.valueOf(inputPrice);
if (!inputPrice.equals(""))
for (int i = 0; i < size; i++) {
if (Math.max(priceVariationList.get(i).getStartRange(), inputFinalPrice) == Math.min(inputFinalPrice, priceVariationList.get(i).getEndRange())) {
//binding.tvProductPrice.setText(String.valueOf(priceVariationList.get(i).getPriceRange()));
priceOfRate = priceVariationList.get(i).getPriceRange();
//binding.tvProductPrice.setText(String.valueOf(priceOfRate));
break;
} else {
priceOfRate = Double.valueOf(productsItem.getPrice());
}
}
binding.tvProductPrice.setText(String.format(Locale.ENGLISH, "%,.2f", priceOfRate));
//binding.tvTotalPrice.setText(String.format("%.2f", Double.valueOf(binding.tvProductPrice.getText().toString().replace(",", "")) * Double.valueOf(binding.etProductQty.getText().toString())));
binding.tvTotalPrice.setText(String.format(Locale.ENGLISH, "%,.2f", Double.valueOf(binding.tvProductPrice.getText().toString().replace(",", "")) * Double.valueOf(binding.etProductQty.getText().toString())));
totalPrice = Double.valueOf(String.valueOf(binding.tvTotalPrice.getText()).replace(",", ""));
if (tradePromoionData.size() > 0){
if (Double.valueOf(tradePromoionData.get(0).getPromoionValue()) <= inputFinalPrice && !inputPrice.equals("")) {
int countOfferNumber = (int) (inputFinalPrice / Double.valueOf(tradePromoionData.get(0).getPromoionValue()));
double offerValue = Double.valueOf(tradePromoionData.get(0).getOfferValue());
switch (tradePromoionData.get(0).getOfferType()) {
case "Percentage":
discount = (totalPrice * offerValue) / 100;
binding.tvOfferName.setText(tradePromoionData.get(0).getPromoionTitle());
binding.tvOfferQty.setText(tradePromoionData.get(0).getOfferType());
binding.tvDiscount.setText((String.format(Locale.ENGLISH, "%,.2f", discount)));
break;
case "Flat":
discount = offerValue * countOfferNumber;
binding.tvOfferName.setText(tradePromoionData.get(0).getPromoionTitle());
binding.tvOfferQty.setText(tradePromoionData.get(0).getOfferType());
binding.tvDiscount.setText((String.format(Locale.ENGLISH, "%,.2f", discount)));
break;
case "Qty":
discount = 0.0;
binding.tvOfferName.setText("Free: " + tradePromoionData.get(0).getFreeProductName());
binding.tvOfferQty.setText(String.valueOf((Integer.parseInt(binding.etProductQty.getText().toString()) / Integer.parseInt(tradePromoionData.get(0).getPromoionValue())) * Integer.parseInt(tradePromoionData.get(0).getFreeProductQty())));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
binding.layoutSelect.setBackground(context.getDrawable(R.color.background));
}
binding.tvDiscount.setText((String.valueOf(discount)));
break;
default:
discount = 0.0;
break;
}
//Changing for specific option
/* binding.tvOffer.setText(tradePromoionData.get(0).getPromoionTitle());
binding.tvDiscountName.setText(tradePromoionData.get(0).getOfferType());
binding.tvDiscount.setText((String.valueOf(discount)));*/
/*
if(tradePromoionData.get(0).getOfferType().equals("Percentage")){
double totalPrice = Double.valueOf(String.valueOf(binding.tvTotalPrice.getText()));
discount = (totalPrice*offerValue) / 100 ;
}
else if(tradePromoionData.get(0).getOfferType().equals("Flat")){
discount = offerValue * countOfferNumber;
}
binding.tvOffer.setText(tradePromoionData.get(0).getPromoionTitle());
binding.tvDiscountName.setText(tradePromoionData.get(0).getOfferType());
binding.tvDiscount.setText((String.valueOf(discount)));
*/
}
}
} catch (Exception e) {
e.printStackTrace();
}
binding.tvGrandTotal.setText(String.format(Locale.ENGLISH, "%,.2f", totalPrice - discount));
}
@Override
public void afterTextChanged(Editable s) {
}
});
binding.btnSelectProduct.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (!binding.etProductQty.getText().toString().equals("")) {
if (!binding.etProductQty.getText().toString().equals("0")) {
List<TradePromoionData> tradePromoionData = mDatabaseHandler.getTradePromoion(productsItem.getId());
SelectedProductHelper selectedOrderProduct = new SelectedProductHelper(
String.valueOf(productsItem.getId()),
productsItem.getName(),
binding.etProductQty.getText().toString(),
//productsItem.getPrice(),
binding.tvProductPrice.getText().toString(),
binding.tvTotalPrice.getText().toString(),
productsItem.getVariantRow() == null ? "0" : productsItem.getVariantRow(),
binding.tvDiscount.getText().toString() == null ? "0" : binding.tvDiscount.getText().toString(),
binding.tvGrandTotal.getText().toString() == null ? "0" : binding.tvGrandTotal.getText().toString(),
false,
binding.tvOfferName.getText().toString().length()>0? binding.tvOfferName.getText().toString()+" - "+binding.tvOfferQty.getText().toString():"PromotionalDiscount"
);
List<SelectedProductHelper> selectedProductHelperList= new ArrayList<>();
selectedProductHelperList.add(selectedOrderProduct);
try {
if(tradePromoionData.size()>0) {
SelectedProductHelper selectedFreeProduct = new SelectedProductHelper(
String.valueOf(tradePromoionData.get(0).getFreeProductId()),
tradePromoionData.get(0).getFreeProductName(),
//Dividing total quantity by promotion value then multiplied by the free quantity
String.valueOf((Integer.parseInt(binding.etProductQty.getText().toString()) / Integer.parseInt(tradePromoionData.get(0).getPromoionValue())) * Integer.parseInt(tradePromoionData.get(0).getFreeProductQty())),
"0",
"0",
"0",
"0",
"0",
true
);
selectedProductHelperList.add(selectedFreeProduct);
}
} catch (NumberFormatException e) {Log.e("tareq_test" , "Free Product not found");
}
Log.d("tareq_test" , "Slected "+new Gson().toJson(selectedProductHelperList));
mOnDialogSelectListener.onOrderSelect(selectedProductHelperList);
// orderProductRecyclerAdapter.onSetSelectedProduct(selectedProduct);
alertDialog.dismiss();
Toast.makeText(context, "Product added successfully", Toast.LENGTH_SHORT).show();
} else {
View view = binding.etProductQty;
binding.etProductQty.setError("0 should not be apply");
view.requestFocus();
}
} else {
View view = binding.etProductQty;
binding.etProductQty.setError(context.getString(R.string.error_field_required));
view.requestFocus();
}
}
});
binding.btnCancel.setOnClickListener(v -> alertDialog.dismiss());
alertDialog.setView(binding.getRoot());
alertDialog.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setNumber(int num) {\r\n\t\tnumber = num;\r\n\t}",
"void set_num(ThreadContext tc, RakudoObject classHandle, double Value);",
"public static void SetNewNumber () {\n number = (int)(Math.random() * 9.1);\r\n\r\n // PROMPT THE USER\r\n System.out.println(\"A new number has been chosen.\");\r\n System.out.println();\r\n\r\n // SAVED ME WHEN DEBUGGING\r\n // System.out.println(number);\r\n }",
"public void setNum(int num) {\r\n this.num = num;\r\n }",
"public void setNum (java.lang.Integer num) {\r\n\t\tthis.num = num;\r\n\t}",
"public void setGivenNum(double input) {\n givenNum = input;\n }",
"public void setNum(Integer num) {\n this.num = num;\n }",
"public void setNum(Integer num) {\n this.num = num;\n }",
"public void setNumber(int number)\n {\n Number = number;\n }",
"public void setValue(Number value) {\n this.value = value;\n }",
"public void setNum(int num) {\n\t\tthis.num = num;\n\t}",
"public void setNumber(int number) {\r\n\t\tthis.num = number;\r\n\t}",
"void setRandomNo() {\n\t\tno = 10000000 + (int) (Math.random() * 90000000);\n\t}",
"public static void setNum(Object holder, Object index, Object value) {\n\n\t\tsetObj(holder, index, new RubyFixnum(getRunTime(holder, index), Long.valueOf(value.toString())));\n\t}",
"public void setGamenumber(int Number) {\n\t\tif (Number != 0) {\n\t\t\tthis.gamenumber = gamenumber + Number;\n\t\t} else {\n\t\t\tthis.gamenumber = 0;\n\t\t}\n\t}",
"public void changeToBaseOne() {\r\n\t\tthis.numberBase = 1;\r\n\t}",
"public void set_int(int param) {\n this.local_int = param;\n }",
"public void setNUMARGEO(int value) {\n this.numargeo = value;\n }",
"public void SetG(byte num) {\r\n\t\tm_numG = num;\r\n\t}",
"public void setNumer(float newNumer){\n\t\tnumer = newNumer;\n\t}",
"private\tNum(int num) { value = num; }",
"public void setValue(int n) {\n\t\t\tthis.value = n;\n\t}",
"public void setNumber(Integer number) {\r\n this.number = number;\r\n }",
"private static void setValueInt(int value)\n {\n Util.valueInt = value;\n }",
"public void setNumber(String newValue);",
"protected void setCurrentTaskNumber( final int value )\r\n {\r\n jProgressBarGlobal.setValue( value );\r\n }",
"public void setNumToProcess(long aNumToProcess) {\n numToProcess = aNumToProcess;\n }",
"public void setCantidadCUVErrado(java.math.BigInteger param){\n \n this.localCantidadCUVErrado=param;\n \n\n }",
"public void setNumber(Integer number) {\n this.number = number;\n }",
"public void setWinnumber(int Number) {\n\t\tif (Number != 0) {\n\t\t\tthis.winnumber = winnumber + Number;\n\t\t} else {\n\t\t\tthis.winnumber = 0;\n\t\t}\n\t}",
"public void setNumber(int number)\n {\n this.number = number;\n }",
"public void setNumber(int number) {\r\n\t\tthis.number = number;\r\n\t}",
"public void setNUMRGSTRO(int value) {\n this.numrgstro = value;\n }",
"public void setBase(Integer base);",
"protected void setNumbertoZero() {\n\t\tnumber = 0;\n\t}",
"public void setNumDigits(int digits) {\r\n \r\n //Set Value\r\n numDigits = digits;\r\n \r\n }",
"public void setNUMSECFO(int value) {\n this.numsecfo = value;\n }",
"public void setValue(Number value) {\n setAttributeInternal(VALUE, value);\n }",
"void setValue(int value);",
"public void setNumber(int number) {\n this.number = number;\n }",
"public void setNPI(int value) {\r\n this.npi = value;\r\n }",
"public void setValue(int value);",
"public void setDefaultNumber(Integer defaultNumber) {\n this.defaultNumber = defaultNumber;\n }",
"private static int getNumber() {\n LOG.info(\"Generating Value\");\n return 1 / 0;\n }",
"public void setOpNum(java.lang.String param) {\r\n localOpNumTracker = param != null;\r\n\r\n this.localOpNum = param;\r\n }",
"public void setNu(double nu) {\n\t\tthis.nu = nu;\n\t }",
"public void setValuePotongan(Number value) {\n setAttributeInternal(VALUEPOTONGAN, value);\n }",
"public void setNEval (int value) {\r\n n_eval = value; }",
"public void setNumber(int number) {\n\t\tthis.number = number;\n\t}",
"public void setNumber(int number) {\n\t\tthis.number = number;\n\t}",
"public void setNumber(int number) {\n\t\tthis.number = number;\n\t}",
"public void setID(Number numID);",
"@Override\n\tpublic double saveNumber()\n\t{\n\t\treturn num;\n\t}",
"public void setGigi(int newValue){\r\n gigi = newValue;\r\n }",
"public void setGBInterval_point(java.math.BigInteger param){\n localGBInterval_pointTracker = param != null;\n \n this.localGBInterval_point=param;\n \n\n }",
"public void setNumeroInicial(int numeroInicial)\r\n/* 185: */ {\r\n/* 186:198 */ this.numeroInicial = numeroInicial;\r\n/* 187: */ }",
"public void setX(long x){\n this.x = x;\n }",
"public void setTON(int value) {\r\n this.ton = value;\r\n }",
"public void setNX(int nx){\n newX=nx;\n }",
"public void setValue(int new_value){\n this.value=new_value;\n }",
"public void setValue(Integer value) {\n _value = value ;\n }",
"public void setValue(int value) {\r\n this.value = value;\r\n }",
"public void setG(double aG);",
"public void set_long(long param) {\n this.local_long = param;\n }",
"public void setInstanceNumber(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(INSTANCENUMBER_PROP.get(), value);\n }",
"void set(long newValue);",
"public void setNumber(int n) {\n if(n<0){\n throw new ArithmeticException(\"Negative Score is not allowed\");\n }else{\n int shift = 0;\n while (n > 0) {\n int d = n / 10;\n int k = n - d * 10;\n n = d;\n background.add(new Digit(k, 30, 360 - shift, 25));\n shift += 30;\n }\n }\n }",
"@Override\r\n\tpublic void setRound(int x) {\n\t\troundNum = x;\r\n\t\tupdate();\r\n\t}",
"public void setUser(int U)\t\n\t{\t//start of setUser mehtod\n\t\tuserNum = U;\n\t}",
"public void setInstanceNumber(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(INSTANCENUMBER_PROP.get(), value);\n }",
"public void set(double val);",
"public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }",
"@Override\n public void setAtomicNumber(int atomicNumber) {\n }",
"@Override\r\npublic void setNumber(int number) {\n\tsuper.setNumber(number);\r\n}",
"protected void setStateNum(int stateNum) {\r\n\t\tthis.stateNum = stateNum;\r\n\t}",
"public void setBaseNumber(int baseNumber) {\r\n\t\tthis.baseNumber = baseNumber;\r\n\t}",
"public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }",
"public void setValue(int val)\r\n {\r\n value = val;\r\n }",
"private void setRegNum(int regNum) {\n this.regNum = regNum;\n }",
"public void setCantidadFaltanteAnunciado(java.math.BigInteger param){\n \n this.localCantidadFaltanteAnunciado=param;\n \n\n }",
"public void setNumerator(int num)\r\n {\r\n this.numerator = num;\r\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value)\n {\n this.value = value;\n }",
"public void set(int value){\n val = value;\n }",
"public int setPoint(float x, float y, int gnum);",
"public void setX(double X)\r\n {\r\n curX = X;\r\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setInteger(int value){}",
"public int getNumberValue() {\r\n return number;\r\n }",
"public void setGi(java.math.BigInteger gi)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GI$22, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(GI$22);\r\n }\r\n target.setBigIntegerValue(gi);\r\n }\r\n }",
"public void set(int value) {\n this.value = BigInteger.valueOf(value).toByteArray();\n }",
"public void setNumero(int index, int value){\r\n\t\tnumeros.set(index, value);\r\n\t}",
"public void setBikeNum(int NewValue){\n bike = NewValue;\n }",
"private static int newNumber()\n\t{\n\t\tdouble initial = Math.random();\n\t\tdouble rangeAdjusted = initial * (10000 - 1001) + 1000;\n\t\tint rounded = (int)Math.round(rangeAdjusted);\n\t\treturn rounded;\n\t}",
"public void setGBInterval_to(java.math.BigInteger param){\n localGBInterval_toTracker = param != null;\n \n this.localGBInterval_to=param;\n \n\n }",
"public void setNumerator (int numer) {\r\n\t\tnumerator = numer;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}"
] | [
"0.68987876",
"0.67771626",
"0.6716476",
"0.6591181",
"0.6589375",
"0.65857685",
"0.655454",
"0.655454",
"0.6534489",
"0.65256983",
"0.64025384",
"0.6339641",
"0.63281035",
"0.63266736",
"0.62942594",
"0.6246421",
"0.62124383",
"0.62035584",
"0.61939085",
"0.6180494",
"0.61556315",
"0.61286217",
"0.6097741",
"0.60877794",
"0.60732967",
"0.60672325",
"0.5963846",
"0.5963602",
"0.59582984",
"0.5909517",
"0.58908486",
"0.5887806",
"0.5887373",
"0.5882345",
"0.587332",
"0.5870683",
"0.5856026",
"0.58402324",
"0.5832735",
"0.58318555",
"0.5808234",
"0.58051103",
"0.5797086",
"0.57820505",
"0.5751863",
"0.5737936",
"0.57271594",
"0.57195425",
"0.57177097",
"0.57177097",
"0.57177097",
"0.57169795",
"0.57144773",
"0.57097846",
"0.570452",
"0.57024765",
"0.56960905",
"0.56839675",
"0.5679645",
"0.56785446",
"0.5663022",
"0.56623966",
"0.56605995",
"0.56593156",
"0.56554765",
"0.5654828",
"0.5650162",
"0.5644972",
"0.5641287",
"0.56288636",
"0.5626184",
"0.5619855",
"0.5609126",
"0.5604499",
"0.560305",
"0.5595551",
"0.5590914",
"0.55792797",
"0.55756754",
"0.55747116",
"0.5570598",
"0.55692554",
"0.55692554",
"0.5554582",
"0.55484444",
"0.5545054",
"0.5531783",
"0.5531504",
"0.5531504",
"0.5531504",
"0.5528866",
"0.552876",
"0.55272126",
"0.5525145",
"0.5524216",
"0.5523579",
"0.55219734",
"0.55211425",
"0.5520132",
"0.5518534",
"0.5518534"
] | 0.0 | -1 |
create a linked list | public static void main(String args[]) {
LinkedList list = new LinkedList();
// add elements to the linked list
list.add("M");
list.add("A");
list.add("N");
list.add("is");
list.add("#");
list.addLast("1");
list.addFirst("A");
list.add(0, "A2");
System.out.println("The contents of the linked list are: " + list);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public linkedList() { // constructs an initially empty list\r\n\r\n }",
"public static <T> LinkedList<T> createLinkedList() {\n \t\treturn new LinkedList<T>();\n \t}",
"private void createNodes() {\n head = new ListNode(30);\n ListNode l2 = new ListNode(40);\n ListNode l3 = new ListNode(50);\n head.next = l2;\n l2.next = l3;\n }",
"public ListNode createList(int len) {\r\n\t\tListNode head = null;\r\n\t\tRandom r = new Random(10);\r\n\t\tfor (int i = 0; i < len; ++i) {\r\n\r\n\t\t\thead = createNode(head, r.nextInt(20) + 1);\r\n\t\t}\r\n\r\n\t\treturn head;\r\n\t}",
"private static Node createLoopedList()\n {\n Node n1 = new Node(1);\n Node n2 = new Node(2);\n Node n3 = new Node(3);\n Node n4 = new Node(4);\n Node n5 = new Node(5);\n Node n6 = new Node(6);\n Node n7 = new Node(7);\n Node n8 = new Node(8);\n Node n9 = new Node(9);\n Node n10 = new Node(10);\n Node n11 = new Node(11);\n\n n1.next = n2;\n n2.next = n3;\n n3.next = n4;\n n4.next = n5;\n n5.next = n6;\n n6.next = n7;\n n7.next = n8;\n n8.next = n9;\n n9.next = n10;\n n10.next = n11;\n n11.next = n5;\n\n return n1;\n }",
"public LinkedList() {\n\t\tthis(\"list\");\n\t}",
"public ListNode(Object newItem){\n\t\tlistItem = newItem;\n\t\tnext = null;\n\t}",
"public MyLinkedList() {\n this.size = 0;\n this.head = new ListNode(0);\n }",
"public MyLinkedList()\n {\n head = new Node(null, null, tail);\n tail = new Node(null, head, null);\n }",
"public LinkedList () {\n\t\tMemoryBlock dummy;\n\t\tdummy = new MemoryBlock(0,0);\n\t\ttail = new Node(dummy);\n\t\tdummy = new MemoryBlock(0,0);\n\t\thead = new Node(dummy);\n\t\ttail.next = head;\n\t\thead.previous = tail;\n\t\tsize = 2;\n\t}",
"private static ListNode initializeListNode() {\n\n\t\tRandom rand = new Random();\n\t\tListNode result = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\tresult.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\tresult.next.next.next.next = new ListNode(rand.nextInt(10)+1);\n\t\t\n\t\treturn result;\n\t}",
"public LinkedListDemo() {\n\t\tlength = 0;\n\t\thead = new ListNode();\n\t\n\t}",
"public LinkList(String data){\n this.head = new Node(data, null);\n this.tail = this.head;\n }",
"public ListNode(Object newItem, ListNode nextNode){\n\t\tlistItem = newItem;\n\t\tnext = nextNode;\n\t}",
"public LinkedList(Object item) {\n\t\tif (item != null) {\n\t\t\tcurrent = end = start = new ListItem(item);// item is the start and end\n\t\t}\n\t}",
"public static Node createList(){\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter size of linked list:\");\n int n = sc.nextInt();\n\n Node head = new Node(sc.nextInt());\n Node ref = head;\n while(--n!=0) {\n head.next = new Node(sc.nextInt());\n head = head.next;\n }\n return ref;\n\n }",
"public Lista()\n {\n empty=true;\n next = null;\n }",
"public static LinkedList_Details createList() {\n\n\t\t\t\t\tSystem.out.print(\"\\nEnter min length of list : \");\n\t\t\t\t\tScanner sc = new Scanner(System.in);\n\t\t\t\t\tint len = sc.nextInt(); //take min length of list \n\t\t\t\t\tint i = 0; //loop counter variable\n\t\t\t\t\tint v; //list values will be assigned to this variable in loop\n\n\t\t\t\t\tNode head = null; //head node declaration\n\t\t\t\t\tNode temp = null; //temp node to keep track of node in loop\n\n\t\t\t\t\t//If we dont want to enter list values manually, we can generate random values\n\t\t\t\t\tSystem.out.println(\"\\nDo you want enter your own values for the list? if Yes, enter 1 \\nif No, enter 0\");\n\t\t\t\t\tScanner rd_sc = new Scanner(System.in);\n\t\t\t\t\tint rd_val = rd_sc.nextInt();\n\t\t\t\t\t\n\t\t\t\t\twhile (i <= len) {\n\n\t\t\t\t\t\t\t\tif( i == len) {\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\nYou have created a list of \" + len + \" values.\"); \n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Do you still want to enter values in the list?\");\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"if Yes, enter the length by which you want to extend the list\");\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"if No, enter 0\");\n\n\t\t\t\t\t\t\t\t\t\tScanner li_sc = new Scanner(System.in);\n\t\t\t\t\t\t\t\t\t\tint ext_len = li_sc.nextInt();\n\t\t\t\t\t\t\t\t\t\tlen = len + ext_len;\n\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\tif(i < len){\t\t\t\t\t\t\t\t\t\n\t\n\t\t\t\t\t\t\t\t\t\tif(rd_val == 0) {\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tRandom rand = new Random(); \n\t\t\t\t\t\t\t\t\t\t\t\t\tv = rand.nextInt(1000);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Enter a value for the list\");\n\t\t\t\t\t\t\t\t\t\t\tScanner val_sc = new Scanner(System.in);\n\t\t\t\t\t\t\t\t\t\t\tv = val_sc.nextInt();\n\t\t\t\t\t\t\t\t\t\t} \n\t\t\n\t\t\t\t\t\t\t\t\t\tif(head == null) { temp = new Node(v); head = temp; }\n\t\t\t\n\t\t\t\t\t\t\t\t\t\telse {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\ttemp.next = new Node(v);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\ttemp = temp.next;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tLinkedList_Details ld = new LinkedList_Details(len, head);\n\n\t\t\t\t\treturn ld;\n\t\t\t}",
"public LinkedListDemo() {\r\n }",
"public Linked_list() {\n pre = new Node();\n post = new Node();\n pre.next = post;\n post.prev = pre;\n }",
"public LinkedLists() {\n }",
"public LinkedList() {\n\t\titems = lastNode = new DblListnode<E>(null);\n\t\tnumItems=0;\n\t}",
"void operateLinkedList() {\n\n List linkedList = new LinkedList();\n linkedList.add( \"syed\" );\n linkedList.add( \"Mohammed\" );\n linkedList.add( \"Younus\" );\n System.out.println( linkedList );\n linkedList.set( 0, \"SYED\" );\n System.out.println( linkedList );\n linkedList.add( 0, \"Mr.\" );\n System.out.println( linkedList );\n\n\n }",
"public LinkedList() {\r\n front = new ListNode(null);\r\n back = new ListNode(null, front, null);\r\n front.next = back;\r\n size = 0;\r\n }",
"public MyLinkedList() \n\t{\n\t\t\n\t}",
"public List(E value) {\n\t\thead = new ListNode(value, null);\n\t}",
"public static ListNode createLinkedList(int low, int high){\n\t \t\tif(low>high) return null;\n\t \t\tListNode head = new ListNode(low);\n\t \t\tListNode temp = head;\n\t \t\tfor(int i = low+1; i <= high; i++){\n\t \t\t\ttemp.next = new ListNode(i);\n\t \t\t\ttemp = temp.next;\n\t \t\t}\n\t \t\treturn head;\n\t \t}",
"public LinkedList(){\n this.size = 0;\n first = null;\n last = null;\n }",
"DListNode() {\n item[0] = 0;\n item[1] = 0;\n item[2] = 0;\n prev = null;\n next = null;\n }",
"public CircularlyLinkedList() { }",
"public MySinglyLinkedList() { }",
"public DLList() {\n head = null;\n tail = null;\n }",
"public WCLinkedList(){\n size=0;\n head = null;\n tail = null;\n }",
"public listNode(String val) {\n\t\t\tdata= val;\n\t\t\tnext= null;\n\t\t\tprevious= null;\n\t\t}",
"Node(Object newItem){\n item = newItem; //--points to a different\n next = null;\n }",
"public MyLinkedList() {\n first = null;\n n = 0;\n }",
"public static LinkedList createEmpty(){\n return new LinkedList();\n }",
"public SingleLinkedList() {\r\n start = null;\r\n System.out.println(\"A List Object was created\");\r\n }",
"public UtillLinkList() {\n\t\tlist = new LinkedList<String>();\n\t}",
"public ListNode(Object d) {\n\t\tdata = d;\n\t\tnext = null;\n\t}",
"LI createLI();",
"public ObjectListNode (Object o) {\n info = o;\n next = null;\n }",
"public LinkedList(){\n count = 0;\n front = rear = null;\n }",
"ListNode(T datum) {\n\t\t\tthis.datum = datum;\n\t\t\tthis.next = null;\n\t\t}",
"public SkipListNode() {\n\t// construct a dummy node\n\tdata = null;\n\tnext = new ArrayList<SkipListNode<K>>();\n\tnext.add(null);\n }",
"public MyLinkedList() {\n dummyHead = new Node();\n size = 0;\n }",
"public SLList()\n {\n head = tail = null;\n }",
"public ListNode(Object d, ListNode n) {\n\t\tdata = d;\n\t\tnext = n;\n\t}",
"public LinkedList(){\n this.head = null;\n this.numNodes = 0;\n }",
"public MyLinkedList() {\n size = 0;\n head = null;\n tail = null;\n }",
"public ObjectListNode() {\n info = null;\n next = null;\n }",
"public ListNode(E d, ListNode<E> node)\n { \n nextNode = node;\n data = d;\n }",
"public ObjectListNode (Object o, ObjectListNode p) {\n info = o;\n next = p;\n }",
"public CS228LinkedList() {\r\n\t\thead = new Node();\r\n\t\ttail = new Node();\r\n\t\thead.next = tail;\r\n\t\ttail.prev = head;\r\n\r\n\t\t// TODO - any other initialization you need\r\n\t}",
"public static MutableLinearList start () {\r\n\t\t\r\n\t\tMutableLinearList list = new MutableLinearList();\r\n\t\tMutableLinearList item2 = new MutableLinearList();\r\n\t\tMutableLinearList item3 = new MutableLinearList();\r\n\t\t\r\n\t\tlist.head = 42;\r\n\t\tlist.tail = item2;\r\n\t\t\r\n\t\titem2.head = 8;\r\n\t\titem2.tail = item3;\r\n\t\t\r\n\t\titem3.head = 15;\r\n\t\titem3.tail = null;\r\n\t\t\r\n\t\t\r\n/*\t\t// alternative Implementierung:\r\n\t\tMutableLinearList list = new MutableLinearList();\r\n\t\tlist.head = 15;\r\n\t\tlist.addInFront(8);\r\n\t\tlist.addInFront(42);\r\n*/\t\t\r\n\t\t\r\n\t\treturn list;\r\n\t}",
"public LinkList() {\n this.head = null;\n this.tail = null;\n }",
"public MyLinkedList() {\n \thead = null;\n \ttail = null;\n }",
"public LinkedList(){\n\t\thead = null;\n\t\ttail = null;\n\t}",
"public LinkedList(String listName) {\n\t\tname = listName;\n\t\tfirstNode = lastNode = null;\n\t\tsize=0;\n\t}",
"@ProtoFactory\n public LinkedList<E> create(int size) {\n return new LinkedList<>();\n }",
"public LL() {\n head = null;\n }",
"public LinkedList(E data, Node<E> next) {\n size++;\n prev = null;\n head = new Node(data, next);\n cursor = head;\n tail = head;\n }",
"public DoublyLinkedList() {\r\n\t\tinitializeDataFields();\r\n\t}",
"public GenLinkedList() {\r\n\t\thead = curr = prev = null;\r\n\t}",
"private void createList(String[] toAdd) {\n FixData fixedList;\n for (int i = 0; i < toAdd.length; ++i) {\n fixedList = new FixData(toAdd[i]);\n if (pickAdjacent(fixedList))\n this.head = createListWrap(this.head, fixedList);\n else\n fixedList = null;\n }\n }",
"public LinkedList()\n\t{\n\t\tthis.head = new Node(null);\n\t\tsize = 0;\n\t}",
"public LinkedList() {\n\t\tfirst = null;\n\t}",
"private void init() {\r\n head = new DLList.Node<T>(null);\r\n head.setNext(tail);\r\n tail = new DLList.Node<T>(null);\r\n tail.setPrevious(head);\r\n size = 0;\r\n }",
"public LinkedList() {\n size = 0;\n head = new DoublyLinkedNode<E>(null);\n tail = new DoublyLinkedNode<E>(null);\n\n head.setNext(tail);\n tail.setPrevious(head);\n }",
"public MyLinkedList() {\n length = 0;\n }",
"public LinkedList() {\n\t\thead = new Node(null, null);\n\t\tsize = 0;\n\t\titerator = null;\n\t}",
"public SinglyLinkedList(){\n this.first = null;\n }",
"public List() {\n\t\tthis.head = null; \n\t}",
"LinkedList(E data){\n\n }",
"public void addToList(E data){\n if(headNode==null){\n headNode=new Node<E>(data);\n currentNode=headNode;\n }\n else{\n currentNode.next=new Node<E>(data);\n currentNode=currentNode.next;\n }\n size++;\n }",
"public LinkedList() {\n head = null;\n numElement = 0;\n }",
"public void addNode(int item) { \n //Create a new node \n Node newNode = new Node(item); \n \n //if list is empty, head and tail points to newNode \n if(head == null) { \n head = tail = newNode; \n //head's previous will be null \n head.previous = null; \n //tail's next will be null \n tail.next = null; \n } \n else { \n //add newNode to the end of list. tail->next set to newNode \n tail.next = newNode; \n //newNode->previous set to tail \n newNode.previous = tail; \n //newNode becomes new tail \n tail = newNode; \n //tail's next point to null \n tail.next = null; \n } \n }",
"public ListNode(E data, ListNode next) {\r\n\t\t\t//this.data = data;\r\n\t\t\tthis(data);\r\n\t\t\tthis.next = next;\r\n\t\t}",
"public MyLinkedList() {\r\n // when the linked list is created head will refer to null\r\n head = null;\r\n }",
"private void insertCreator(Item item) {\n head = new Node(item, null, null); // creates node\n head.next = head;\n head.before = head; // sets itself as both next and before in the list\n }",
"public DesignLinkedList() {\n head = null;\n tail = head;\n len = 0;\n }",
"SkipList()\r\n {\r\n head = new Node<T>(1); //Create a new head of our skip list and give it height 1.\r\n }",
"abstract void makeList();",
"private static void appendTheSpecifiedElementToLinkedList() {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tlist.add(10);\n\t\tlist.add(20);\n\t\tlist.add(30);\n\t\tlist.add(40);\n\t\tlist.add(50);\n\t\tSystem.out.println(\"LinkedList is : \" + list);\n\n\t}",
"public UserDefLinkedList(Student student) {\n head = new Node();\n head.setStudent(student);\n head.setLink(null);\n }",
"DListNode2(Object vertex1) {\r\n vertex = vertex1;\r\n list = null;\r\n prev = null;\r\n next = null;\r\n }",
"public static DoublyLinkedListHeader createList() {\n\t\tSystem.out.println(\"Enter the size of the DLLHeader list \");\r\n\t\tint size = checkInt(); // get size of ll\r\n\t\tDoublyLinkedListHeader list = new DoublyLinkedListHeader();\r\n\t\tInteger scanned_obj;\r\n\t\tfor(int i = 0; i<size;i++) {\r\n\t\t\tSystem.out.println(\"Enter Object \" + (i+1)+\" \");\r\n\t\t\tscanned_obj = checkInt();\r\n\t\t\tlist.add(scanned_obj);\r\n\t\t}\r\n\t\treturn list;\r\n\t}",
"public ListNode(E d)\n {\n nextNode = null;\n data = d;\n }",
"private NodeList createListWrap(NodeList head, FixData fixedList) {\n if (head == null) {\n head = new NodeList(fixedList);\n head.connectNext(null);\n return head;\n }\n head.connectNext(createListWrap(head.returnNext(), fixedList));\n return head;\n }",
"public LinkedList() {\n this.head = null;\n this.tail = null;\n }",
"public DLListIterator() {\r\n node = head;\r\n nextCalled = false;\r\n }",
"ListNode(E data, ListNode prev, ListNode next) {\r\n this.data = data;\r\n this.next = next;\r\n this.prev = prev;\r\n }",
"public LinkedList()\n {\n head = null;\n tail = null;\n }",
"public LinkedList()\n { \n first = null;\n \n }",
"@Test\n public void testList() {\n SLNode one = new SLNode(1, null);\n SLNode twoOne = new SLNode(2, one);\n SLNode threeTwoOne = new SLNode(3, twoOne);\n\n SLNode x = SLNode.of(3, 2, 1);\n assertEquals(threeTwoOne, x);\n }",
"public LinkedList()\r\n {\r\n head = null;\r\n tail = null;\r\n }",
"public ListNode(int mark)\r\n {\r\n // initialise instance variables\r\n this.mark = mark;\r\n this.next = null;\r\n }",
"public Node (Object newItem) {\n next = null; // set intially to null\n item = newItem;\n }",
"public LinkedList()\n\t{\n\t\thead = null;\n\t}",
"public static void testAdd(LinkedList list) {\n\t\tNode n1 = new Node(\"1\");\n\t\tNode n2 = new Node(\"2\");\n\t\tNode n3 = new Node(\"3\");\n\t\tNode n4 = new Node(\"4\");\n\t\t\n\t\t// add to empty list\n\t\tlist.add(n2);\n\t\t\n\t\t// add to end of list\n\t\tlist.add(n4);\n\t\t\n\t\t// add in the middle\n\t\tlist.add(n3);\n\t\t\n\t\t// add at the head\n\t\tlist.add(n1);\n\t\t\n\t\tlist.printForward();\n\t\tSystem.out.println(\"Size: \" + list.getSize());\n\t}",
"public LinkedList() \n\t{\n\t\thead = null;\n\t\ttail = head;\n\t}"
] | [
"0.749157",
"0.74696577",
"0.72483957",
"0.7230346",
"0.71294373",
"0.7033085",
"0.70051867",
"0.6951693",
"0.69363004",
"0.6932975",
"0.69294286",
"0.68638206",
"0.68371",
"0.6830975",
"0.6829318",
"0.682508",
"0.6824437",
"0.67976785",
"0.6795462",
"0.6793856",
"0.6790482",
"0.67854816",
"0.6754359",
"0.67493093",
"0.6738544",
"0.6729604",
"0.671473",
"0.67042935",
"0.6700743",
"0.6693007",
"0.6684915",
"0.6664658",
"0.6662938",
"0.6659933",
"0.6658473",
"0.6645877",
"0.6619479",
"0.65984744",
"0.6592318",
"0.6591524",
"0.6565608",
"0.6565028",
"0.65303904",
"0.6524223",
"0.65238184",
"0.6523815",
"0.65175277",
"0.6515546",
"0.65134656",
"0.65002805",
"0.6499525",
"0.64890754",
"0.6488849",
"0.6479361",
"0.64484113",
"0.6445494",
"0.6438684",
"0.6434017",
"0.64279526",
"0.64270836",
"0.6424516",
"0.6420273",
"0.64134717",
"0.64127916",
"0.6409262",
"0.64057106",
"0.6395922",
"0.6395382",
"0.63878113",
"0.6387343",
"0.6386884",
"0.63742274",
"0.6360332",
"0.63483334",
"0.6347274",
"0.6346848",
"0.63416725",
"0.63263905",
"0.6317564",
"0.6316461",
"0.63150114",
"0.6312727",
"0.6309814",
"0.6304102",
"0.6303426",
"0.6295892",
"0.6288657",
"0.6283022",
"0.6277666",
"0.62748057",
"0.6273114",
"0.626956",
"0.6264779",
"0.62583596",
"0.6257373",
"0.6254711",
"0.62524134",
"0.6250327",
"0.62491935",
"0.62481207",
"0.62429255"
] | 0.0 | -1 |
Finds the visible VDB Editor for the supplied VDB If an editor is NOT open for this vdb, then null is returned. | public VdbEditor getVdbEditor(final IFile vdb) {
final IWorkbenchWindow window = UiPlugin.getDefault()
.getCurrentWorkbenchWindow();
if (window != null) {
final IWorkbenchPage page = window.getActivePage();
if (page != null) {
VdbEditor editor = findEditorPart(page, vdb);
if( editor != null ) {
return editor;
}
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private VdbEditor findEditorPart(final IWorkbenchPage page, IFile vdbFile) {\n \t\tfinal IEditorReference[] editors = page.getEditorReferences();\n \t\tfor (int i = 0; i < editors.length; ++i) {\n \n \t\t\tfinal IEditorPart editor = editors[i].getEditor(false);\n \t\t\tif (editor instanceof VdbEditor) {\n \t\t\t\tfinal VdbEditor vdbEditor = (VdbEditor) editor;\n \t\t\t\tfinal IPath editorVdbPath = vdbEditor.getVdb().getName();\n \t\t\t\tif (vdbFile.getFullPath().equals(editorVdbPath)) \n \t\t\t\t\treturn vdbEditor;\n \n \t\t\t}\n \t\t}\n \n \t\treturn null;\n \t}",
"protected MigrationEditorOperation getEditor() {\n IEditorPart editorPart = PluginUtil.getActiveEditor();\n if (editorPart instanceof MigrationEditorOperation) {\n return (MigrationEditorOperation) editorPart;\n }\n return null;\n }",
"public Editor getEditor() {\n if (currentEditor == null) {\n getTopEditor(); // this will trigger creation of a new top editor if it doesn't exist and currentEditor will be assigned with that one as well\n }\n return currentEditor;\n }",
"public synchronized IEditorPart getActiveEditor() {\n return activeEditorMap.get(currentWindow);\n }",
"public Editor getEditor(String idRevista){\n Editor editor = null;\n String id, nome;\n\n try{\n connection = con.connect();\n PreparedStatement stm = connection.prepareStatement(\"SELECT Editor.* FROM Editor \" +\n \"INNER JOIN Revista \" +\n \"ON Revista.Editor_ID = Editor.ID \" +\n \"WHERE Revista.ID = \" + idRevista);\n ResultSet rs = stm.executeQuery();\n if(rs.next()){\n id = rs.getString(\"ID\");\n nome = rs.getString(\"Nome\");\n editor = new Editor(id,nome);\n }\n }\n catch (Exception e){\n e.getMessage();\n }\n finally {\n con.close(connection);\n }\n return editor;\n }",
"public CellEditor getEditor(String bookmark, Object fieldId) {\n\t\t\treturn null;\n\t\t}",
"public EditorView getEditorView() {\n\t\treturn this.editorView;\n\t}",
"public static IEditorPart getActiveEditor(){\r\n\t\tIWorkbench workbench = PlatformUI.getWorkbench();\r\n\t\tIWorkbenchWindow window = workbench.getActiveWorkbenchWindow();\r\n\t\tIWorkbenchPage page = window.getActivePage();\r\n\t\tIEditorPart editorPart = page.getActiveEditor();\r\n\t\treturn editorPart;\r\n\t}",
"public Editor getEditor() { return editor; }",
"public Component getEditorComponent ()\r\n {\r\n return editor;\r\n }",
"public synchronized IEditorPart getActiveEditor(IWorkbenchWindow window) {\n return activeEditorMap.get(window);\n }",
"public JawbComponent getEditorComponent () {\n if (editorComponent == null)\n initEditorComponent ();\n return editorComponent;\n }",
"public TopEntityEditor getTopEditor() {\n if (topEditor == null) {\n try {\n if (entity == null) {\n entity = createEntity();\n }\n if (entity == null) {\n return null;\n }\n topEditor = new TopEntityEditor(entity, getEditorDao());\n currentEditor = topEditor;\n } catch (InvalidEntityBeanPropertyException iepex) {\n throw new RuntimeException(\"Failed to instantiate EntityEditorManager topEditor - invalid entity bean property exception thrown while creating TopEntityEditor\", iepex);\n } catch (Exception ex) {\n throw new RuntimeException(\"Exception while creating a new entity in EntityEditorManager.createEntity()\", ex);\n }\n }\n return topEditor;\n }",
"public java.awt.Component getInPlaceCustomEditor () {\n if (modifiedEditor instanceof EnhancedPropertyEditor) {\n return ((EnhancedPropertyEditor)modifiedEditor).getInPlaceCustomEditor ();\n } else {\n return null;\n }\n }",
"public Document getDocument() {\n return editor.getDocument();\n }",
"public BaseEditorPanel getEditorPanel ()\n {\n return _epanel;\n }",
"public String getEditor() {\n return (String)getAttributeInternal(EDITOR);\n }",
"public String getEditor() {\n return (String)getAttributeInternal(EDITOR);\n }",
"protected ITextEditor getEditor() {\n return editor;\n }",
"protected IDescriptor getActiveDescriptor() {\n if (editor != null) {\n return editor.getActiveDisplayPane().getDescriptor();\n }\n return null;\n }",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoBrowse getBrowse()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoBrowse target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTShowInfoBrowse)get_store().find_element_user(BROWSE$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"protected Rectangle getVisibleEditorRect() {\n Rectangle alloc = editor.getBounds();\n if ((alloc.width > 0) && (alloc.height > 0)) {\n alloc.x = alloc.y = 0;\n Insets insets = editor.getInsets();\n alloc.x += insets.left;\n alloc.y += insets.top;\n alloc.width -= insets.left + insets.right + caretMargin;\n alloc.height -= insets.top + insets.bottom;\n return alloc;\n }\n return null;\n }",
"private TreeViewer getEntryEditorWidgetTreeViewer()\n {\n if ( entryEditor != null )\n {\n EntryEditorWidget mainWidget = entryEditor.getMainWidget();\n if ( mainWidget != null )\n {\n TreeViewer viewer = mainWidget.getViewer();\n return viewer;\n }\n }\n return null;\n }",
"private EditBuildInfoFragment findInfoFragment() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\treturn (EditBuildInfoFragment) fm.findFragmentByTag(FragmentUtils.makeFragmentName(mPager.getId(), 0));\n\t}",
"public Object \n getCellEditorValue() \n {\n BaseEditor editor = null;\n if(pField.getPluginName() != null) {\n try {\n\tPluginMgrClient pclient = PluginMgrClient.getInstance();\n\teditor = pclient.newEditor(pField.getPluginName(), \n\t\t\t\t pField.getPluginVersionID(), \n\t\t\t\t pField.getPluginVendor());\n }\n catch(PipelineException ex) {\n }\n }\n \n return editor; \n }",
"protected InteractionDrawingEditor getViewEditor()\n {\n return view.getEditor();\n }",
"public PetalEditor getEditor() {\n return petal_editor;\n }",
"public Container getContainer() {\n return editor;\n }",
"public synchronized boolean isVisibleEditor(IWorkbenchWindow currentWindow,\n Object object) {\n Set<IEditorPart> parts = visibleParts.get(currentWindow);\n if (parts != null) {\n return parts.contains(object);\n }\n return false;\n }",
"public MyTextPane getEditor() {\n\t\treturn editor;\n\t}",
"public MWC.GUI.Editable.EditorType getInfo()\n\t{\n\t\tif (_myEditor == null)\n\t\t\t_myEditor = new InvestigateInfo(this);\n\n\t\treturn _myEditor;\n\t}",
"@Api(1.0)\n public HaloPreferencesStorageEditor edit() {\n if (mCurrentEditor == null) {\n mCurrentEditor = new HaloPreferencesStorageEditor(getSharedPreferences());\n }\n return mCurrentEditor;\n }",
"@NotNull\n List<NlComponentEditor> getEditors();",
"@Nullable\n public JComponent getPreferredFocusedComponent() {\n return myEditor;\n }",
"private FindDialog getFindDialog() {\r\n if (findDialog == null) {\r\n findDialog = new FindDialog(textViewer);\r\n findDialog.centerRelativeTo(this);\r\n getViewProperties().addProperties(\"find\",findDialog.getPreferences(),true);\r\n\r\n // Hide the find dialog when this pane becomes invisible\r\n addHierarchyListener(new HierarchyListener() {\r\n public void hierarchyChanged(HierarchyEvent e) {\r\n if (findDialog.isVisible() && !isShowing()) {\r\n findDialog.setVisible(false);\r\n }\r\n }\r\n });\r\n }\r\n return findDialog;\r\n }",
"public static SlideshowEditor getInstance()\n {\n if (instance == null) {\n instance = new SlideshowEditor();\n }\n return instance;\n }",
"public static IProject getCurrentProject() {\n\t\tIProject activeProject = null;\n\t\tIWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tIEditorPart editorPart = window.getActivePage().getActiveEditor();\n\t\tif (editorPart != null) {\n\t\t\tIEditorInput input = editorPart.getEditorInput();\n\t\t\tif (input instanceof IFileEditorInput) {\n\t\t\t\tIFile file = ((IFileEditorInput) input).getFile();\n\t\t\t\tactiveProject = file.getProject();\n\t\t\t}\n\t\t}\n\t\treturn activeProject;\n\t}",
"private ch.softenvironment.view.SimpleEditorPanel getPnlEditor() {\n\tif (ivjPnlEditor == null) {\n\t\ttry {\n\t\t\tivjPnlEditor = new ch.softenvironment.view.SimpleEditorPanel();\n\t\t\tivjPnlEditor.setName(\"PnlEditor\");\n\t\t\tivjPnlEditor.setLayout(new javax.swing.BoxLayout(getPnlEditor(), javax.swing.BoxLayout.X_AXIS));\n\t\t\tivjPnlEditor.setEnabled(true);\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjPnlEditor;\n}",
"@Nullable\n public static VirtualFile getSelectedFile(@Nonnull Project project) {\n StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);\n final FileEditor fileEditor = StatusBarUtil.getCurrentFileEditor(statusBar);\n VirtualFile result = null;\n if (fileEditor != null) {\n if (fileEditor instanceof TextEditor) {\n Document document = ((TextEditor)fileEditor).getEditor().getDocument();\n result = FileDocumentManager.getInstance().getFile(document);\n }\n else {\n result = fileEditor.getFile();\n }\n }\n\n if (result == null) {\n final FileEditorManager manager = FileEditorManager.getInstance(project);\n if (manager != null) {\n Editor editor = manager.getSelectedTextEditor();\n if (editor != null) {\n result = FileDocumentManager.getInstance().getFile(editor.getDocument());\n }\n }\n }\n return result;\n }",
"public MultiViewDescription getActiveDescription() {\n \treturn currentEditor;\n }",
"public Component getCustomEditor() {\n\t\treturn mEditor;\n\t}",
"public File getDisplayDocument() {\n\t\tswitch (type) {\n\t\t\tcase SOURCE : return doc.getSourceDocument();\n\t\t\tcase TARGET : return doc.getWorkingDocument();\n\t\t}\n\t\treturn null;\n\t}",
"public TableEditor openTableEditor(){\n this.save();\n\t\treturn new TableEditor(this.getTitle());\n\t}",
"public d getCurrentBaseFragment() {\n Fragment findFragmentById = getFragmentManager().findFragmentById(16908290);\n if (findFragmentById == null || !(findFragmentById instanceof d)) {\n return null;\n }\n return (d) findFragmentById;\n }",
"public final MWC.GUI.Editable.EditorType getInfo()\r\n\t{\r\n\t\tif (_myEditor == null)\r\n\t\t\t_myEditor = new FieldInfo(this, this.getName());\r\n\r\n\t\treturn _myEditor;\r\n\t}",
"public MapEditor getMapEditor() {\n\t\treturn mapEditor;\n\t}",
"public void testGetEditor() {\n\t\tassertEquals(\"Wrong REDEditor returned.\", fEditor, fFinder.getEditor());\n\t}",
"public synchronized boolean isVisibleEditor(Object object) {\n return isVisibleEditor(currentWindow, object);\n }",
"public static IEditorPart findReusableCompareEditor(IWorkbenchPage aPage, R4EFileVersion aBaseFile,\r\n \t\t\tR4EFileVersion aTargetFile) {\r\n \r\n \t\tfinal IEditorReference[] editorRefs = aPage.getEditorReferences();\r\n \t\tIEditorPart part = null;\r\n \t\tR4ECompareEditorInput input = null;\r\n \t\tITypedElement left = null;\r\n \t\tITypedElement right = null;\r\n \t\t// first loop looking for an editor with the same input\r\n \t\tfor (IEditorReference editorRef : editorRefs) {\r\n \t\t\tpart = editorRef.getEditor(false);\r\n \t\t\tif (null != part && part instanceof IReusableEditor) {\r\n \t\t\t\t// check if the editor input type complies with the types given by the caller\r\n \t\t\t\tif (R4ECompareEditorInput.class.isInstance(part.getEditorInput())) {\r\n \t\t\t\t\t//Now check if the input files are the same as with the found editor\r\n \t\t\t\t\tinput = (R4ECompareEditorInput) part.getEditorInput();\r\n \t\t\t\t\tleft = input.getLeftElement();\r\n \t\t\t\t\tright = input.getRightElement();\r\n \r\n \t\t\t\t\t//Case: No input in editor, that should never happen but guard here just in case\r\n \t\t\t\t\tif (null == left && null == right) {\r\n \t\t\t\t\t\treturn null;\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\t//Get the file versions\r\n \t\t\t\t\tR4EFileVersion leftVersion = null;\r\n \t\t\t\t\tR4EFileVersion rightVersion = null;\r\n \t\t\t\t\tif (left instanceof R4EFileRevisionTypedElement) {\r\n \t\t\t\t\t\tleftVersion = ((R4EFileRevisionTypedElement) left).getFileVersion();\r\n \t\t\t\t\t} else if (left instanceof R4EFileTypedElement) {\r\n \t\t\t\t\t\tleftVersion = ((R4EFileTypedElement) left).getFileVersion();\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (right instanceof R4EFileRevisionTypedElement) {\r\n \t\t\t\t\t\trightVersion = ((R4EFileRevisionTypedElement) right).getFileVersion();\r\n \t\t\t\t\t} else if (right instanceof R4EFileTypedElement) {\r\n \t\t\t\t\t\trightVersion = ((R4EFileTypedElement) right).getFileVersion();\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\t//Case: No target file and base is the same\r\n \t\t\t\t\tif (null == leftVersion && null == aTargetFile && null != rightVersion && null != aBaseFile\r\n \t\t\t\t\t\t\t&& rightVersion.equals(aBaseFile)) {\r\n \t\t\t\t\t\treturn part;\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\t//Case: No base file and target is the same\r\n \t\t\t\t\tif (null == rightVersion && null == aBaseFile && null != leftVersion && null != aTargetFile\r\n \t\t\t\t\t\t\t&& leftVersion.equals(aTargetFile)) {\r\n \t\t\t\t\t\treturn part;\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\t//Case: Base and target are the same\r\n \t\t\t\t\tif (null != leftVersion && null != rightVersion && null != aBaseFile && null != aTargetFile) {\r\n \t\t\t\t\t\tif (leftVersion.equals(aTargetFile) && rightVersion.equals(aBaseFile)) {\r\n \t\t\t\t\t\t\treturn part;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\t// no re-usable editor found\r\n \t\treturn null;\r\n \t}",
"public UserFunctionEditor getUserFunctionEditor() {\n return (UserFunctionEditor) functionEditor;\n }",
"public EditPanel getEditPanel() { return ep; }",
"protected String getCurrentCode() {\n IDocument doc = EditorUtilities.getDocument(editor);\n if (doc != null) {\n return doc.get();\n }\n return null;\n }",
"public boolean hasEditor()\n\t{\n\t\treturn true;\n\t}",
"private TaskEditor getTaskEditor(EditableTask editable) {\n \t\tif (editable.getEditor() == null) {\n // Create a new editor using the extension point data\n \t\t\tTaskEditor editor = TaskEditorManager.getInstance().getEditor(editable.getKind());\n \t\t\tif (editor != null) {\n \t\t\t\tComposite editorPanel = new Composite(taskEditorContainer, SWT.NULL);\n \t\t\t\tGridLayout layout = new GridLayout();\n \t\t\t\tlayout.marginWidth = 0;\n \t\t\t\tlayout.marginHeight = 0;\n \t\t\t\teditorPanel.setLayout(layout);\n \t\t\t\tmform.getToolkit().adapt(editorPanel);\n \t\t\t\teditor.createControl(editorPanel, mform.getToolkit());\n \t\t\t\teditable.setEditor(editor);\n \t\t\t\tGridData gridData = new GridData(GridData.FILL_BOTH);\n \t\t\t\teditor.getControl().setLayoutData(gridData);\n \t\t\t} \n \t\t}\n \t\treturn editable.getEditor();\t\n \t}",
"public ViewObjectImpl getDcmComVsView() {\r\n return (ViewObjectImpl)findViewObject(\"DcmComVsView\");\r\n }",
"public static JFileChooser findJFileChooser() {\n return findJFileChooser(findJFileChooserDialog());\n }",
"public ViewObjectImpl getDcmValidationView() {\r\n return (ViewObjectImpl)findViewObject(\"DcmValidationView\");\r\n }",
"public PsiElement findPsiElement() {\n final String filePath = myLocation == null ? null : FileUtil.toSystemIndependentName(myLocation.getFile());\n final VirtualFile vFile = filePath == null ? null : LocalFileSystem.getInstance().findFileByPath(filePath);\n final PsiFile psiFile = vFile == null ? null : PsiManager.getInstance(myProject).findFile(vFile);\n if (psiFile != null) {\n final int offset = DartAnalysisServerService.getInstance(myProject).getConvertedOffset(vFile, myLocation.getOffset());\n final PsiElement elementAtOffset = psiFile.findElementAt(offset);\n if (elementAtOffset != null) {\n final DartComponentName componentName = PsiTreeUtil.getParentOfType(elementAtOffset, DartComponentName.class);\n if (componentName != null) {\n return componentName;\n }\n if (elementAtOffset.getParent() instanceof DartId && elementAtOffset.getTextRange().getStartOffset() == offset) {\n return elementAtOffset; // example in WEB-25478 (https://github.com/flutter/flutter-intellij/issues/385#issuecomment-278826063)\n }\n }\n }\n return null;\n }",
"protected Diagram getDiagramToOpen() {\n\t\t\t\tIGraphicalEditPart grahicalHostEditPart = (IGraphicalEditPart) getHost();\n\t\t\t\tEObject element = grahicalHostEditPart.resolveSemanticElement();\n\t\t\t\tList<Diagram> diagramL = MultiDiagramUtil\n\t\t\t\t\t\t.getDiagramsAssociatedToElement(element);\n\n\t\t\t\tif (diagramL.isEmpty()) {\n\t\t\t\t\treturn null;\n\t\t\t\t} else if (diagramL.size() == 1) {\n\t\t\t\t\treturn diagramL.get(0);\n\t\t\t\t}\n\n\t\t\t\tElementListSelectionDialog dialog = new ElementListSelectionDialog(\n\t\t\t\t\t\tPlatformUI.getWorkbench().getActiveWorkbenchWindow()\n\t\t\t\t\t\t\t\t.getShell(), new GeneralLabelProvider());\n\t\t\t\tdialog.setMessage(\"Select the diagram to be opened\");\n\t\t\t\tdialog.setTitle(\"Diagram selection\");\n\t\t\t\tdialog.setElements(diagramL.toArray());\n\t\t\t\tif (dialog.open() == Dialog.OK) {\n\t\t\t\t\treturn (Diagram) dialog.getFirstResult();\n\t\t\t\t}\n\n\t\t\t\treturn null;\n\t\t\t}",
"public static IWorkbenchPage getActivePage() {\n\t\tIWorkbench wb = PlatformUI.getWorkbench();\t\t\n\t\tif(wb != null) {\n\t\t\tIWorkbenchWindow win = wb.getActiveWorkbenchWindow();\t\t\t\n\t\t\tif(win != null) {\n\t\t\t\tIWorkbenchPage page = win.getActivePage();\t\t\t\t\n\t\t\t\tif(page != null) {\n\t\t\t\t\treturn page;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Optional<ExpandedComponentInstanceSymbol> getComponentInstance() {\r\n if (!this.getEnclosingScope().getSpanningSymbol().isPresent()) {\r\n return Optional.empty();\r\n }\r\n if (!(this.getEnclosingScope().getSpanningSymbol()\r\n .get() instanceof ExpandedComponentInstanceSymbol)) {\r\n return Optional.empty();\r\n }\r\n return Optional\r\n .of((ExpandedComponentInstanceSymbol) this.getEnclosingScope().getSpanningSymbol().get());\r\n }",
"public static JDialog findJFileChooserDialog() {\n return (JDialogOperator.\n findJDialog(new JFileChooserJDialogFinder(JemmyProperties.\n getCurrentOutput())));\n }",
"public NetworkEditor getNetworkEditor() {\n return panel.getNetworkEditor();\n }",
"void setEditorController(EditorViewController gameEditorViewController);",
"public Stage getStage() {\n com.guidebee.game.engine.scene.Stage stage = internalGroup.getStage();\n if (stage != null) {\n return (Stage) stage.getUserObject();\n }\n\n return null;\n }",
"public AdapterMapEditor getD_MapEditor() {\n return d_MapEditor;\n }",
"public static EditorUI getEditorUI(JTextComponent target) {\n TextUI ui = target.getUI();\n return (ui instanceof BaseTextUI) \n ? ((BaseTextUI)ui).getEditorUI()\n : null;\n }",
"ImmutableList<SchemaOrgType> getEditorList();",
"public ViewObjectImpl getDcmComVsQueryView() {\r\n return (ViewObjectImpl)findViewObject(\"DcmComVsQueryView\");\r\n }",
"public Visa getVisa() {\n String __key = this.visaId;\n if (visa__resolvedKey == null || visa__resolvedKey != __key) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n VisaDao targetDao = daoSession.getVisaDao();\n Visa visaNew = targetDao.load(__key);\n synchronized (this) {\n visa = visaNew;\n visa__resolvedKey = __key;\n }\n }\n return visa;\n }",
"public VideoDefinition getCurrentPreviewVideoDefinition();",
"public Object showDiscreteEditor() throws Exception {\n \t\treturn showEditor(EditorDisplayer.getEditor(this, EditorType.DISCRETE));\n \t}",
"public TabsEditDialog openEditDialog(String dataPath) {\n Commons.openEditableToolbar(dataPath);\n $(Selectors.SELECTOR_CONFIG_BUTTON).click();\n Helpers.waitForElementAnimationFinished($(Selectors.SELECTOR_CONFIG_DIALOG));\n return new TabsEditDialog();\n }",
"protected final JTextComponent getComponent() {\n return editor;\n }",
"public VocabularyConcept getEditableConcept() {\r\n for (VocabularyConcept vc : vocabularyConcepts.getList()) {\r\n if (vc != null) {\r\n return vc;\r\n }\r\n }\r\n return null;\r\n }",
"public static IWorkbenchPage getActivePage() {\n IWorkbenchWindow window = getActiveWorkbenchWindow();\n if (window != null) {\n return window.getActivePage();\n }\n return null;\n }",
"public DevStudio findOne(Long id) {\n return getDevStudioRepository().findOne(id);\n }",
"public String getQuery() {\n\t\tIWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tif (null == window) {\n\t\t\treturn null;\n\t\t}\n\n\t\tIEditorPart editor = window.getActivePage().getActiveEditor();\n\t\tif (editor == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (!(editor instanceof QueryEditorPart)) {\n\t\t\treturn null;\n\t\t}\n\n\t\tQueryEditorPart queryEditorPart = (QueryEditorPart) editor;\n\t\tStyledText stext = queryEditorPart.getSqlEditorWidget();\n\t\treturn stext.getSelectionText();\n\t}",
"public DelegatingCredentialRequestEditor getEditor() {\n return editor;\n }",
"private File showOpenDialog()\n {\n \tJFileChooser fc = new JFileChooser(m_preferences.get(\"path-load-game\"));\n \tint ret = fc.showOpenDialog(this);\n \tif (ret == JFileChooser.APPROVE_OPTION)\n \t return fc.getSelectedFile();\n \treturn null;\n }",
"public gov.nih.nlm.ncbi.www.RsiteRefDocument.RsiteRef.Db getDb()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.RsiteRefDocument.RsiteRef.Db target = null;\r\n target = (gov.nih.nlm.ncbi.www.RsiteRefDocument.RsiteRef.Db)get_store().find_element_user(DB$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"boolean mo117961a(Editor editor);",
"public Component getViewerComponent() {\n\t\treturn null;\n\t}",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Pdb getPdb()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Pdb target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Pdb)get_store().find_element_user(PDB$28, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"private static SharedPreferences.Editor getEditor(Context context) {\n SharedPreferences preferences = getSharedPreferences(context);\n return preferences.edit();\n }",
"public ViewObjectImpl getVehicleDetailsDbVo1() {\n return (ViewObjectImpl) findViewObject(\"VehicleDetailsDbVo1\");\n }",
"public Driving getDB() {\n\t\treturn this.db;\n\t}",
"private JTextArea getSelectedTextArea() {\r\n\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\tif (index == -1) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tJScrollPane sp = (JScrollPane) tabbedPane.getComponent(index);\r\n\t\tJTextArea editor = (JTextArea) sp.getViewport().getView();\r\n\t\t\r\n\t\treturn editor;\r\n\t}",
"public VoodooControl getEditField(String fieldName) throws Exception {\n\t\treturn ((RecordsModule)parentModule).getField(fieldName).editControl;\n\t}",
"public ViewObjectImpl getDcmValidationQueryView() {\r\n return (ViewObjectImpl)findViewObject(\"DcmValidationQueryView\");\r\n }",
"GuiView getGui();",
"public static native TinyMCEditor get(String id)\n\t/*-{\n\t\treturn $wnd.tinyMCE.get(id);\n\t}-*/;",
"public static IProject getSelectedProject() {\n\t\tIProject activeProject = null;\n\t\tIWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tISelectionService selectionService = window.getSelectionService();\n\t\tISelection selection = selectionService.getSelection(IPageLayout.ID_PROJECT_EXPLORER);\n\t\tif (selection instanceof StructuredSelection) {\n\t\t\tIResource resource = (IResource) ((StructuredSelection) selection).getFirstElement();\n\t\t\tactiveProject = resource.getProject();\n\t\t}\n\t\t\n\t\treturn activeProject;\n\t}",
"@Override\n\tpublic AceEditor getCqlAceEditor() {\n\t\treturn cqlAceEditor;\n\t}",
"public Document obtainEditableInstance()\n throws WorkflowException, MappingException, RepositoryException, RemoteException;",
"boolean openPageInEditMode();",
"public boolean getEditfact() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Boolean) __getCache(\"editfact\")).booleanValue());\n }",
"public static IWorkbenchWindow getActiveWorkbenchWindow() {\n if (getDefault() == null) {\n return null;\n }\n IWorkbench workBench = getDefault().getWorkbench();\n if (workBench == null) {\n return null;\n }\n return workBench.getActiveWorkbenchWindow();\n }",
"@Override\n\tpublic java.lang.String getEditorType() {\n\t\treturn _scienceApp.getEditorType();\n\t}",
"public Document getDisplayDOM() {\n\t\tswitch (type) {\n\t\t\tcase SOURCE : return doc.getSourceDOM();\n\t\t\tcase TARGET : return doc.getWorkingDOM();\n\t\t}\n\t\treturn null;\n\t}"
] | [
"0.75510246",
"0.60944176",
"0.6056197",
"0.58349127",
"0.57790464",
"0.57669604",
"0.57573414",
"0.56758195",
"0.5588624",
"0.5584678",
"0.54064244",
"0.53981817",
"0.5353835",
"0.5265627",
"0.52384406",
"0.5219849",
"0.51855797",
"0.51855797",
"0.5173053",
"0.5139602",
"0.5112872",
"0.5080826",
"0.5051149",
"0.5041162",
"0.5028556",
"0.5010039",
"0.50027394",
"0.4980752",
"0.49769437",
"0.49751568",
"0.4952578",
"0.49456516",
"0.4935376",
"0.49343517",
"0.49009192",
"0.48674008",
"0.48569313",
"0.4849309",
"0.48455518",
"0.4838163",
"0.47876754",
"0.47860318",
"0.47570458",
"0.47531292",
"0.47479144",
"0.47353768",
"0.4726136",
"0.47181156",
"0.4713749",
"0.46761423",
"0.46742144",
"0.46655262",
"0.46620187",
"0.46452406",
"0.4644953",
"0.4642587",
"0.46353674",
"0.45813102",
"0.45795193",
"0.45789546",
"0.45766875",
"0.4562225",
"0.45474634",
"0.45474342",
"0.45291907",
"0.45229122",
"0.4517563",
"0.451103",
"0.4509995",
"0.4505941",
"0.4501054",
"0.44976524",
"0.44932872",
"0.44872585",
"0.4473844",
"0.4470037",
"0.44606447",
"0.4455954",
"0.44533283",
"0.44499293",
"0.4445063",
"0.44413668",
"0.4441087",
"0.4430787",
"0.4430645",
"0.442696",
"0.44210747",
"0.44158405",
"0.44125408",
"0.44017",
"0.43792173",
"0.4366527",
"0.43556783",
"0.43453857",
"0.4344332",
"0.4343069",
"0.4342313",
"0.43391082",
"0.433548",
"0.43323618"
] | 0.7714439 | 0 |
look through the open editors and see if there is one available for this model file. | private VdbEditor findEditorPart(final IWorkbenchPage page, IFile vdbFile) {
final IEditorReference[] editors = page.getEditorReferences();
for (int i = 0; i < editors.length; ++i) {
final IEditorPart editor = editors[i].getEditor(false);
if (editor instanceof VdbEditor) {
final VdbEditor vdbEditor = (VdbEditor) editor;
final IPath editorVdbPath = vdbEditor.getVdb().getName();
if (vdbFile.getFullPath().equals(editorVdbPath))
return vdbEditor;
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasEditor()\n\t{\n\t\treturn true;\n\t}",
"private boolean stillOpenElsewhere(IFile file)\n\t{\n\t\tSaveable[] openModels = getSaveableService().getOpenModels();\n\t\tfor (Saveable saveable: openModels)\n\t\t{\n\t\t\t// temporary solution until we will have the same unit of\n\t\t\t// saveability in all the ISaveablesSources (tree editor, table\n\t\t\t// view, etc)\n\t\t\tif (saveable instanceof BasicModelSaveable)\n\t\t\t{\n\t\t\t\tIWorkbenchPart[] partsForSaveable = getSaveableService().getPartsForSaveable(saveable);\n\n\t\t\t\tfor (IWorkbenchPart iWorkbenchPart: partsForSaveable)\n\t\t\t\t{\n\t\t\t\t\tif (iWorkbenchPart instanceof IEditorPart)\n\t\t\t\t\t{\n\t\t\t\t\t\tIEditorInput editorInput = ((IEditorPart) iWorkbenchPart).getEditorInput();\n\t\t\t\t\t\tIFile fileFromEditorInput = EcoreUIUtil.getFileFromEditorInput(editorInput);\n\t\t\t\t\t\tif (file.getFullPath().equals(fileFromEditorInput.getFullPath()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"protected boolean isLinkedWithEditor() {\n return modes.get(BCOConstants.F_LINK_VIEW_TO_EDITOR);\n }",
"private boolean checkEditContent()\n {\n if (etUrl.hasContent() && etFilePath.hasContent())\n {\n return true;\n }\n return false;\n }",
"public synchronized boolean hasEditorSynchronizeQueue(IFile f){\r\n \t\treturn syncEditorJobQueue.containsKey(f);\r\n \t}",
"public boolean isFileInEditMode(String filename)\n {\n try\n {\n waitForWindow(getWaitWindow());\n }\n catch (Exception e)\n {\n // no need to handle this exception, function will always return a boolean value bellow\n }\n return Arrays.asList(getLdtp().getWindowList()).contains(\"frm\" + filename);\n }",
"public synchronized IEditorPart getActiveEditor() {\n return activeEditorMap.get(currentWindow);\n }",
"public boolean hasInPlaceCustomEditor () {\n if (modifiedEditor instanceof EnhancedPropertyEditor) {\n return ((EnhancedPropertyEditor)modifiedEditor).hasInPlaceCustomEditor ();\n } else {\n return false;\n }\n }",
"private boolean getPreview() {\n assert preview == null;\n while (iter.hasNext() && preview == null) {\n preview = fileList.getFileDescForIndex(iter.next());\n }\n return preview != null;\n }",
"public boolean getProjectExternallyEdited()\r\n {\r\n return (m_projectExternallyEdited);\r\n }",
"protected void checkOpenEditors(boolean checkNewSelection) {\n IEditorReference[] editorReferences = getSite().getPage()\n .getEditorReferences();\n if (editorReferences == null || editorReferences.length == 0) {\n deActivateView();\n } else if (checkNewSelection) {\n IEditorPart activeEditor = EclipseUtils.getActiveEditor();\n if (activeEditor instanceof ITextEditor) {\n ITextSelection selection = EclipseUtils\n .getSelection(((ITextEditor) activeEditor)\n .getSelectionProvider());\n handleSelectionChanged(activeEditor, selection);\n } else {\n deActivateView();\n }\n }\n }",
"public synchronized boolean isVisibleEditor(IWorkbenchWindow currentWindow,\n Object object) {\n Set<IEditorPart> parts = visibleParts.get(currentWindow);\n if (parts != null) {\n return parts.contains(object);\n }\n return false;\n }",
"boolean hasCurrentDocument();",
"public void testGetEditor() {\n\t\tassertEquals(\"Wrong REDEditor returned.\", fEditor, fFinder.getEditor());\n\t}",
"private void tryToOpen() {\n if (current != null) {\n if (!this.tryToClose()) return;\n }\n\n //open an existing file...\n JFileChooser chooser = new JFileChooser(new File(\".\"));\n chooser.setDialogTitle(\"Select model file\");\n chooser.setFileFilter(new FileNameExtensionFilter(\n \"Only xml files\",\"xml\"\n ));\n\n int result = chooser.showOpenDialog(this);\n if (result == JFileChooser.APPROVE_OPTION) {\n File file = chooser.getSelectedFile();\n try {\n current = new Document(file);\n this.update();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"ERROR: the file '\" + file.getName() + \"' could not be opened!\", \"An Error Occured\", JOptionPane.ERROR_MESSAGE);\n// e.printStackTrace();\n }\n }\n }",
"protected MigrationEditorOperation getEditor() {\n IEditorPart editorPart = PluginUtil.getActiveEditor();\n if (editorPart instanceof MigrationEditorOperation) {\n return (MigrationEditorOperation) editorPart;\n }\n return null;\n }",
"public Editor getEditor() { return editor; }",
"boolean mo117961a(Editor editor);",
"public MWC.GUI.Editable.EditorType getInfo()\n\t{\n\t\tif (_myEditor == null)\n\t\t\t_myEditor = new InvestigateInfo(this);\n\n\t\treturn _myEditor;\n\t}",
"public boolean modelPresent() {\r\n return models.size() > 0;\r\n }",
"public void runEditorExisting()\r\n\t{\r\n\t\tmainFrame.runEditorExisting();\r\n\t}",
"public boolean supportsCustomEditor() {\n PropertyEditor[] editors = getAllEditors ();\n if (editors.length > 1) return true; // we must allow to choose the editor even if none of them supports custom editing\n if (editors.length == 1) return editors[0].supportsCustomEditor ();\n return false;\n }",
"public Editor getEditor() {\n if (currentEditor == null) {\n getTopEditor(); // this will trigger creation of a new top editor if it doesn't exist and currentEditor will be assigned with that one as well\n }\n return currentEditor;\n }",
"@Override\r\n\tprotected boolean hasEditSupport() {\n\t\treturn false;\r\n\t}",
"public boolean open() {\n try {\n fileStream = new FileReader( this.fileName );\n scanner = new Scanner( fileStream );\n this.found = true;\n } catch ( FileNotFoundException error ) {\n this.found = false;\n System.out.println(error.toString());\n }\n\n return this.found;\n }",
"public boolean editorconfig(String owner, String repo, String filepath) {\n return apiClient.get(String.format(\"/repos/%s/%s/editorconfig/%s\", owner, repo, filepath)).isOk();\n }",
"public boolean isEditable() {\n \treturn model.isEditable();\n }",
"public Component getEditorComponent ()\r\n {\r\n return editor;\r\n }",
"protected String getCurrentCode() {\n IDocument doc = EditorUtilities.getDocument(editor);\n if (doc != null) {\n return doc.get();\n }\n return null;\n }",
"protected boolean handleDirtyConflict() {\r\n\t\treturn MessageDialog.openQuestion(getSite().getShell(),\r\n\t\t\t\tgetString(\"_UI_FileConflict_label\"),\r\n\t\t\t\tgetString(\"_WARN_FileConflict\"));\r\n\t}",
"public boolean allowsEditing() {\n\t\tif (type==SOURCE) return true;\n\t\telse return false;\n\t}",
"public static int getRegisteredEditorCount ()\n {\n return _editors.size();\n }",
"protected ITextEditor getEditor() {\n return editor;\n }",
"public boolean supportsCustomEditor() {\n\t\treturn true;\n\t}",
"public boolean isProjectOpen() {\n\t\treturn (projectFileIO != null);\n\t}",
"public synchronized IEditorPart getActiveEditor(IWorkbenchWindow window) {\n return activeEditorMap.get(window);\n }",
"private synchronized boolean existeIndice() {\r\n\t\tboolean indiceExiste = new File(pastaDoIndice, \"segments.gen\")\r\n\t\t\t\t.exists();\r\n\r\n\t\treturn indiceExiste;\r\n\t}",
"public static void selectedFileIsGrammar(AnActionEvent e) {\n\t\tProject project = getEventProject(e);\n\t\tif ( project==null ) return; // whoa!\n\t\tVirtualFile[] files = LangDataKeys.VIRTUAL_FILE_ARRAY.getData(e.getDataContext());\n\t\tif ( files==null ) return; // no files?\n\t\tboolean grammarFound = false;\n\t\tPsiManager manager = PsiManager.getInstance(project);\n\t\tfor (VirtualFile file : files) {\n\t\t\tif ( manager.findFile(file) instanceof ANTLRv4FileRoot) {\n\t\t\t\tgrammarFound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\te.getPresentation().setEnabled(grammarFound); // enable action if we're looking at grammar file\n\t\te.getPresentation().setVisible(grammarFound);\n\t}",
"public boolean applyDialog() {\n\n\t\tif (!editorsAreValid())\n\t\t\treturn false;\n\t\t\t\n\t\ttry {\n\t\t\tconnection.callRPC(GDL_CONFIGURE_PROC_,\n\t\t\t\tnew Object[]{editedItem, getResultStructures(), connection.retrieveSession()},\n\t\t\t\t30000);\n\t\t} catch (Exception e) {\n\t\t\tTrace.exception(e);\n\t\t\treturn false;\n\t\t}\n\t\tchangedAttributes.clear();\n\t\treturn true;\n\t}",
"public static IEditorPart getActiveEditor(){\r\n\t\tIWorkbench workbench = PlatformUI.getWorkbench();\r\n\t\tIWorkbenchWindow window = workbench.getActiveWorkbenchWindow();\r\n\t\tIWorkbenchPage page = window.getActivePage();\r\n\t\tIEditorPart editorPart = page.getActiveEditor();\r\n\t\treturn editorPart;\r\n\t}",
"protected boolean isEdit(){\n\t\treturn getArguments().getBoolean(ARG_KEY_IS_EDIT);\n\t}",
"@Test\n\tpublic void test5_verifyEditor() throws GeneralLeanFtException {\n\t\t\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(\"Test 5 - Verify Editor Started\");\n\t\t\t\n\t\t\t//Check that the Main window should exist\n\t\t\tassertTrue(mySet.appExistsorNot());\t\t\t\n\n\t\t\t//Toolbar Object\n\t\t\tToolBar toolbar = mySet.OR.MainWindow().ToolBar(); \n\n\t\t\t// Clicking the JEditorPane button displays the Editor test object.\n\t\t\ttoolbar.getButton(\"JEditorPane\").press();\n\n\t\t\t// Create a description for the Editor test object.\n\t\t\tEditor edit = mySet.OR.MainWindow().JEditor();\n\n\t\t\t// Verify that the editor in this AUT is read-only HTML with links.\n\t\t\tassertTrue(edit.isReadOnly());\n\n\t\t\t// Click the link to king.html.\n\t\t\tedit.clickLink(\"king.html\");\n\n\t\t\t// Verify that the correct page loaded by checking the text. \n\t\t\tString expectedTextPrefix = \"Do here most humbly lay this small Present\";\n\t\t\tString text = edit.getText().trim().replaceAll(\"[\\n\\r]\", \"\").replaceAll(Character.toString((char)160), \"\");\n\n\t\t\tSystem.out.println(\"Text fetched - \" + text); \n\n\t\t\tassertTrue(text.startsWith(expectedTextPrefix));\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Unexpected Error Occurred. Message = \" + e.getMessage());\n\t\t\tassertTrue(false);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tSystem.out.println(\"Test 5 - Verify Editor finished\");\t\n\t\t}\n\t}",
"@Override\r\n\tpublic boolean isEnabled() {\r\n\t\tboolean result = false;\r\n\t\tif (getSelection().size() == 1) {\r\n\t\t\tif (getSelection().getFirstElement() instanceof IResource) {\r\n\t\t\t\tIResource resource = (IResource) getSelection().getFirstElement();\r\n\t\t\t\tString pomFileNames = AggregatedProperties.getPomFileNames(resource.getProject());\r\n\t\t\t\tStringTokenizer tkz = new StringTokenizer(pomFileNames, ConfigurationConstants.POM_FILES_SEPARATOR, false);\r\n\t\t\t\twhile (tkz.hasMoreTokens()) {\r\n\t\t\t\t\tif (resource.getName().equalsIgnoreCase(tkz.nextToken())) {\r\n\t\t\t\t\t\tresult = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public boolean hasModel() {\n return false;\r\n }",
"protected boolean isSingleJavaFile() {\r\n System.out.println(\"RefactoringAction.isSingleJavaFile()\");\r\n if (selectedFileSet == null) {\r\n return true;\r\n } else {\r\n return selectedFileSet.isSingleJavaFile();\r\n }\r\n }",
"public boolean canEdit() {\r\n\t\treturn !dslView.isContainsErrors();\r\n\t}",
"boolean isEdit();",
"@Override\n\tpublic java.lang.String getEditorType() {\n\t\treturn _scienceApp.getEditorType();\n\t}",
"@Override\n public boolean isInEditMode() {\n return mEditable;\n }",
"@Override\n public boolean isInEditMode() {\n return mEditable;\n }",
"public boolean isFileOpened() {\r\n \t\tif (curFile == null)\r\n \t\t\treturn false;\r\n \t\telse\r\n \t\t\treturn true;\r\n \t}",
"protected void initializeEditors() {\n\t}",
"boolean hasModel();",
"boolean hasModel();",
"public static IEditorPart findReusableCompareEditor(IWorkbenchPage aPage, R4EFileVersion aBaseFile,\r\n \t\t\tR4EFileVersion aTargetFile) {\r\n \r\n \t\tfinal IEditorReference[] editorRefs = aPage.getEditorReferences();\r\n \t\tIEditorPart part = null;\r\n \t\tR4ECompareEditorInput input = null;\r\n \t\tITypedElement left = null;\r\n \t\tITypedElement right = null;\r\n \t\t// first loop looking for an editor with the same input\r\n \t\tfor (IEditorReference editorRef : editorRefs) {\r\n \t\t\tpart = editorRef.getEditor(false);\r\n \t\t\tif (null != part && part instanceof IReusableEditor) {\r\n \t\t\t\t// check if the editor input type complies with the types given by the caller\r\n \t\t\t\tif (R4ECompareEditorInput.class.isInstance(part.getEditorInput())) {\r\n \t\t\t\t\t//Now check if the input files are the same as with the found editor\r\n \t\t\t\t\tinput = (R4ECompareEditorInput) part.getEditorInput();\r\n \t\t\t\t\tleft = input.getLeftElement();\r\n \t\t\t\t\tright = input.getRightElement();\r\n \r\n \t\t\t\t\t//Case: No input in editor, that should never happen but guard here just in case\r\n \t\t\t\t\tif (null == left && null == right) {\r\n \t\t\t\t\t\treturn null;\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\t//Get the file versions\r\n \t\t\t\t\tR4EFileVersion leftVersion = null;\r\n \t\t\t\t\tR4EFileVersion rightVersion = null;\r\n \t\t\t\t\tif (left instanceof R4EFileRevisionTypedElement) {\r\n \t\t\t\t\t\tleftVersion = ((R4EFileRevisionTypedElement) left).getFileVersion();\r\n \t\t\t\t\t} else if (left instanceof R4EFileTypedElement) {\r\n \t\t\t\t\t\tleftVersion = ((R4EFileTypedElement) left).getFileVersion();\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (right instanceof R4EFileRevisionTypedElement) {\r\n \t\t\t\t\t\trightVersion = ((R4EFileRevisionTypedElement) right).getFileVersion();\r\n \t\t\t\t\t} else if (right instanceof R4EFileTypedElement) {\r\n \t\t\t\t\t\trightVersion = ((R4EFileTypedElement) right).getFileVersion();\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\t//Case: No target file and base is the same\r\n \t\t\t\t\tif (null == leftVersion && null == aTargetFile && null != rightVersion && null != aBaseFile\r\n \t\t\t\t\t\t\t&& rightVersion.equals(aBaseFile)) {\r\n \t\t\t\t\t\treturn part;\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\t//Case: No base file and target is the same\r\n \t\t\t\t\tif (null == rightVersion && null == aBaseFile && null != leftVersion && null != aTargetFile\r\n \t\t\t\t\t\t\t&& leftVersion.equals(aTargetFile)) {\r\n \t\t\t\t\t\treturn part;\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\t//Case: Base and target are the same\r\n \t\t\t\t\tif (null != leftVersion && null != rightVersion && null != aBaseFile && null != aTargetFile) {\r\n \t\t\t\t\t\tif (leftVersion.equals(aTargetFile) && rightVersion.equals(aBaseFile)) {\r\n \t\t\t\t\t\t\treturn part;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\t// no re-usable editor found\r\n \t\treturn null;\r\n \t}",
"public boolean fileFound(){\n\n try{\n\n m_CSVReader = new CSVReader(new FileReader(m_FileName));\n\n } catch (FileNotFoundException e){\n\n System.out.println(\"Input file not found.\");\n\n return false;\n }\n return true;\n }",
"public EditorView getEditorView() {\n\t\treturn this.editorView;\n\t}",
"public boolean hasTaskContextModel() {\n\t\tFile folder = new File(folderPath);\n\t\t\n\t\tFile[] jsonFiles = folder.listFiles(jsonfilter);\n\t\t\n\t\tif ((jsonFiles.length >0)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean sourceExists(String name) {\n \treturn mTemplates.containsKey(name);\n }",
"public boolean getEditfact() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Boolean) __getCache(\"editfact\")).booleanValue());\n }",
"public final boolean isEdited(){\n\t\treturn JsUtils.getNativePropertyBoolean(this, \"edited\");\n\t}",
"@Override\n public void checkEditing() {\n }",
"private boolean worthWaiting() {\n return !PsiDocumentManager.getInstance(myProject).hasUncommitedDocuments() && !ApplicationManager.getApplication().isWriteAccessAllowed() && !FileEditorsSplitters.isOpenedInBulk(myTextEditor.myFile);\n }",
"public synchronized boolean isVisibleEditor(Object object) {\n return isVisibleEditor(currentWindow, object);\n }",
"default boolean isAvailable(@Nonnull PsiFile file) {\n return true;\n }",
"public static boolean exists(){\n \t\treturn everbie != null;\n \t}",
"public boolean isEditing() { RMShape p = getParent(); return p!=null && p.isEditing(); }",
"@Override\r\n\tpublic boolean isExisting() {\n\t\treturn false;\r\n\t}",
"public EditorDriver() {\r\n\t\tgui = new GUI(this);\r\n\t\treadingInputPath = true;\r\n\t\tinputFileFound = false;\r\n\t\teditor = new Editor();\r\n\t\tgui.println(IN_FILE_PROMPT);\r\n\t}",
"private static JEditorPane editorPane()\n {\n try\n {\n JEditorPane editor = new JEditorPane(); //this will be the editor returned\n editor.setPage(Resources.getResource(filename)); //gives the editor the URL of the HTML file\n editor.setEditable(false); //prevents the about page from being edited\n return editor; //return the editor which is now displaying the HTML file\n } catch(Exception e){\n e.printStackTrace();\n JOptionPane.showMessageDialog(null, \"ERROR: could not access about.HTML file\");\n return null; //if the editor could not be built\n }\n }",
"public final MWC.GUI.Editable.EditorType getInfo()\r\n\t{\r\n\t\tif (_myEditor == null)\r\n\t\t\t_myEditor = new FieldInfo(this, this.getName());\r\n\r\n\t\treturn _myEditor;\r\n\t}",
"public boolean hasEditError() {\n return (errors.hasError(Error.EDITED_PROFILE_INCOMPLETE)\n || errors.hasError(Error.EDITED_FRONTEND_INVALID)\n || errors.hasError(Error.EDITED_COLLECTION_INVALID)\n || errors.hasError(Error.EDITED_PROFILE_NAME_EXISTS));\n }",
"public abstract boolean modelFileExists(String filename);",
"public interface IModelDocumentProvider {\r\n\t/** \r\n\t * Locate an existing document or load it. Listen for future changes\r\n\t * to the document and to the file. \r\n\t * @param file full pathed file\r\n\t * @return IDocument instance; return null only if the file does not exist. \r\n\t */\r\n\tIDocument getDocument(File file);\r\n}",
"private boolean compileFile() {\n \n JFileChooser jfc=new JFileChooser();\n jfc.setCurrentDirectory(new File(\"Users/\"+System.getProperty(\"user.name\")+\"/Desktop\"));\n jfc.setDialogTitle(WED_ZERO.lang.getInstruct().get(1)[35]);\n jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n jfc.setAcceptAllFileFilterUsed(false);\n jfc.setVisible(true);\n if (jfc.showSaveDialog(panel)==JFileChooser.APPROVE_OPTION) {\n try {\n new AlternativeSav(FileManaging.processLoc(jfc.getCurrentDirectory(), jfc.getSelectedFile()), Button);\n return true;\n } catch (IOException ex) {\n ERROR.ERROR_363(Launch.frame);\n return false;\n }\n }\n return false;\n \n }",
"@Override\n public boolean onCheckIsTextEditor() {\n return false;\n }",
"boolean openPageInEditMode();",
"public String getEditor() {\n return (String)getAttributeInternal(EDITOR);\n }",
"public String getEditor() {\n return (String)getAttributeInternal(EDITOR);\n }",
"public static void openEditor(IWorkbenchPage aPage, ISelection aSelection, boolean forceSingleEditor) {\r\n \r\n \t\tif (aSelection.isEmpty() || !(aSelection instanceof IStructuredSelection)) {\r\n \t\t\treturn;\r\n \t\t}\r\n \r\n \t\tObject element = null;\r\n \t\tIR4EUIPosition position = null;\r\n \r\n \t\tR4EUIFileContext context = null;\r\n \t\tR4EFileVersion baseFileVersion = null;\r\n \t\tR4EFileVersion targetFileVersion = null;\r\n \r\n \t\tfor (final Iterator<?> iterator = ((IStructuredSelection) aSelection).iterator(); iterator.hasNext();) {\r\n \r\n \t\t\telement = iterator.next();\r\n \t\t\tif (!(element instanceof IR4EUIModelElement)) {\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n \r\n \t\t\t//Depending on which element was selected in the tree, we make the target file editable\r\n \t\t\t//The file is editable if it was opened from the anomaly or comment level, otherwise it is not\r\n \t\t\t//Check to get the position we should put the cursor on and the highlight range in the editor\r\n \t\t\tif (element instanceof R4EUIAnomalyBasic) {\r\n \t\t\t\tposition = ((R4EUIAnomalyBasic) element).getPosition();\r\n \t\t\t} else if (element instanceof R4EUIComment) {\r\n\t\t\t\tposition = ((R4EUIAnomalyBasic) ((R4EUIComment) element).getParent()).getPosition();\r\n \t\t\t} else if (element instanceof R4EUIContent) {\r\n \t\t\t\tposition = ((R4EUIContent) element).getPosition();\r\n \t\t\t}\r\n \r\n \t\t\t//Find the parent FileContextElement\r\n \t\t\twhile (!(element instanceof R4EUIFileContext)) {\r\n \t\t\t\telement = ((IR4EUIModelElement) element).getParent();\r\n \t\t\t\tif (null == element) {\r\n \t\t\t\t\treturn;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tcontext = ((R4EUIFileContext) element);\r\n \r\n \t\t\t//Get files from FileContext\r\n \t\t\tbaseFileVersion = context.getBaseFileVersion();\r\n \t\t\ttargetFileVersion = context.getTargetFileVersion();\r\n \r\n \t\t\t//If the files are the same (or do not exist), open the single editor\r\n \t\t\tif (null == baseFileVersion || null == targetFileVersion\r\n \t\t\t\t\t|| baseFileVersion.getVersionID().equals(targetFileVersion.getVersionID())) {\r\n \t\t\t\tforceSingleEditor = true;\r\n \t\t\t}\r\n \r\n \t\t\t//Check if the base file is set, if so, we will use the compare editor. Otherwise we use the normal editor of the appropriate type\r\n \t\t\tif (context.isFileVersionsComparable() && !forceSingleEditor) {\r\n \t\t\t\topenCompareEditor(aPage, baseFileVersion, targetFileVersion);\r\n \t\t\t} else {\r\n \t\t\t\tif (null != targetFileVersion) {\r\n \t\t\t\t\topenSingleEditor(aPage, targetFileVersion, position);\r\n \t\t\t\t} else {\r\n \t\t\t\t\t//File was removed, open the base then\r\n \t\t\t\t\topenSingleEditor(aPage, baseFileVersion, position);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}",
"@Override\n\tpublic boolean isLocallyLoaded(String instanceId)\n\t{\n\t\treturn m_models.isLocal(instanceId);\n\t}",
"public boolean checkDocument(String fileName) throws IOException;",
"public boolean hasObjectFileKey() {\n return objectFileKey_ != null;\n }",
"public boolean isWalkable() {\r\n if (opened != null) {\r\n if (opened.getId() == 389) {\r\n return false;\r\n }\r\n if (opened.getDefinition().getContext() != null) {\r\n if (opened.getDefinition().getContext().isWalkable()) {\r\n return true;\r\n }\r\n }\r\n }\r\n return true;\r\n }",
"public void testBug72337() {\n IWorkspace workspace = ResourcesPlugin.getWorkspace();\n IPath path = new Path(\"/foo/bar.txt\");\n IFile fileA = workspace.getRoot().getFile(path);\n FileEditorInput inputA1 = new FileEditorInput(fileA);\n OtherFileEditorInput inputA2 = new OtherFileEditorInput(fileA);\n assertTrue(inputA1.equals(inputA2));\n assertTrue(inputA2.equals(inputA1));\n }",
"public boolean exists() {\n try {\n return open() != null;\n } catch (IOException e) {\n return false;\n }\n }",
"public boolean isSetFile() {\n return this.File != null;\n }",
"public boolean isOwnerKnown() {\n\t\tif (owner == null && possibleOwners.size() == 1)\n\t\t\towner = possibleOwners.get(0);\n\t\t\t\n\t\treturn (owner == null);\n\t}",
"public boolean isLoaded() {\n return parser != null;\n }",
"public boolean hasContentFileId() {\n return fieldSetFlags()[0];\n }",
"boolean hasSourceFile();",
"public boolean hasModel() {\n if (this.model == null) {\n throw new NullPointerException(\"Model not set.\");\n }\n return true;\n }",
"public boolean openFile(final File file)\n {\n BufferedReader bufferedReader = null;\n\n try\n {\n bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(file)));\n final StringBuilder stringBuilder = new StringBuilder();\n String line = bufferedReader.readLine();\n\n while(line != null)\n {\n stringBuilder.append(line);\n line = bufferedReader.readLine();\n\n if(line != null)\n {\n stringBuilder.append('\\n');\n }\n }\n\n this.componentEditor.setText(stringBuilder.toString());\n this.currentFile = file;\n this.preferences.setValue(CompilerEditorPanel.PREFERENCE_LAST_FILE, this.currentFile);\n this.preferences.setValue(CompilerEditorPanel.PREFERENCE_LAST_DIRECTORY, this.currentFile.getParentFile());\n this.fileChooser.setStartDirectory(this.currentFile.getParentFile());\n this.title.setText(UtilText.concatenate(\"--\", this.currentFile.getAbsolutePath(), \"--\"));\n return true;\n }\n catch(final Exception exception)\n {\n Debug.printException(exception, \"Failed to load : \" + file.getAbsolutePath());\n this.printMessage(UtilText.concatenate(\"Failed to load file at :\\n\", file.getAbsolutePath(), \"\\nBecause :\\n\", UtilEditor.extractMessage(exception)));\n return false;\n }\n finally\n {\n if(bufferedReader != null)\n {\n try\n {\n bufferedReader.close();\n }\n catch(final Exception ignored)\n {\n }\n }\n }\n }",
"boolean hasCompleteFile();",
"public boolean exist() {\n\t\treturn false;\n\t}",
"public boolean isSetModelo() {\r\n return this.modelo != null;\r\n }",
"@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\treturn ModelEditPlugin.INSTANCE;\r\n\t}",
"public void checkInDocument()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tif (itemlay.isMultirowLayout() && itemset.selectRows()==0)\n\t\t{\n\t\t\tmgr.showAlert(mgr.translate(\"DOCMAWDOCREFERENCENOROWS: No Rows Selected.\"));\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, start\n\t\tif (CheckFileOperationEnable()) \n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, end\n\n\t\ttransferToEdmMacro(\"ORIGINAL\",\"CHECKIN\");\n\t}",
"protected Boolean exists() {\n return nonNull(getModified()) && nonNull(getInteractionModel());\n }",
"public void setEditor(Editor editor)\n {\n this.editor = editor;\n }"
] | [
"0.7043741",
"0.62238085",
"0.58248764",
"0.5772534",
"0.57292724",
"0.57228947",
"0.56810015",
"0.5679113",
"0.5658565",
"0.5608303",
"0.5607497",
"0.5585481",
"0.55772173",
"0.5560249",
"0.5480647",
"0.54004663",
"0.5397294",
"0.5382105",
"0.5367723",
"0.53511584",
"0.53470725",
"0.5334716",
"0.5293789",
"0.5247853",
"0.523433",
"0.5227882",
"0.5212411",
"0.52106935",
"0.52088845",
"0.51975715",
"0.519646",
"0.5152367",
"0.51368386",
"0.5128982",
"0.5114089",
"0.5098265",
"0.509024",
"0.50895983",
"0.50858396",
"0.50832444",
"0.5080792",
"0.5065326",
"0.5045118",
"0.50307137",
"0.5022795",
"0.50043875",
"0.49977297",
"0.49969685",
"0.49941027",
"0.49941027",
"0.4987891",
"0.4983151",
"0.4976522",
"0.4976522",
"0.4965146",
"0.49643978",
"0.49640536",
"0.49628606",
"0.4962559",
"0.49535036",
"0.49505132",
"0.49418423",
"0.49370888",
"0.49365023",
"0.4930245",
"0.49290547",
"0.4928261",
"0.4923906",
"0.492287",
"0.4918706",
"0.49146518",
"0.49114937",
"0.49114648",
"0.49113396",
"0.49056512",
"0.4902817",
"0.49019843",
"0.4901234",
"0.4901234",
"0.489835",
"0.48713833",
"0.48709762",
"0.48704275",
"0.48657995",
"0.4861768",
"0.4858058",
"0.48563507",
"0.48542237",
"0.48520872",
"0.48431656",
"0.48416114",
"0.48388937",
"0.4837477",
"0.48367575",
"0.48357475",
"0.48353964",
"0.48252022",
"0.4819154",
"0.4812597",
"0.48067433"
] | 0.5571646 | 13 |
Return current Meal that is displayed in catalogEditID text field | public Meal getCurrentMeal(){
if(launching)
return new Meal(false, R.theOrigionalMeal);
try {
boolean found=false;
for(int i=0; i<Catalog.size(); i++){
if(Catalog.get(i).getID()== getCatalogEditIDEntry()){
found=true;
return Catalog.get(i);
}
}
if(!found){
alert.error("***Meal not found in Catalog - "+Integer.toString(getCatalogEditIDEntry())+" - getCurrentMeal()***");
alert.error("**-> Returning theOrigionalMeal:");
R.theOrigionalMeal.print();
return new Meal(false, R.theOrigionalMeal);
}
} catch(NumberFormatException exe) {
exe.printStackTrace();
alert.error("***Meal not found in Catalog - "+Integer.toString(getCatalogEditIDEntry())+" - getCurrentMeal()***");
alert.error("Input is not a valid integer - getCurrentMeal()");
alert.error("***Retrivied from catalogEditID.getText() - "+Integer.toString(getCatalogEditIDEntry())+" - getCurrentMeal()***");
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMealCode() {\n return mealCode;\n }",
"public int getAddEditMenuText();",
"public String getMealName() {\n return name.getText().toString();\n }",
"public String getMetaversalID();",
"String getEditore();",
"public String getSelected()\n\t{\n\t\treturn _current.ID;\n\t}",
"protected String text() {\n\t\treturn idSet ? String.valueOf(id) : \"\";\n\t}",
"public String getTxtID() {\n return txtId.getText();\n }",
"public String getEditorial() {\n return editorial;\n }",
"java.lang.String getExperienceText();",
"public String getCommission() {\n return commission.getText();\n }",
"public Object getItem ()\r\n {\r\n return editor.getText ();\r\n }",
"int getBonusMoneyID();",
"String getText(int id);",
"public String getInfo()\r\n\t{\r\n\t\treturn theItem.getNote();\r\n\t}",
"public String getInstance()\n\t{\n\t\tString occursOn = (String)cbOccursOn.getSelectedItem();\n\t\treturn occursOn;\n\t}",
"public String getDealMan() {\n return dealMan;\n }",
"public String getEntrySave() {\r\n return \"-\"+getId() + \"|\" + getFavorite() + \"|\" + getSubject() + \"|\" + date(4) + \"|\" + price.getFull() + \"|\" + getNotes();\r\n }",
"@Override\n\tpublic String Show()\n\t{\n\t\treturn id;\n\t\t\n\t}",
"java.lang.String getMent();",
"public int getCurrent(){\r\n\t\treturn dialogToDisplay;\r\n\t}",
"public java.lang.String getEditInfoResult() {\r\n return localEditInfoResult;\r\n }",
"public String returnStageOfLife(){\n\t\treturn (String) stageofLifeBox.getSelectedItem();//Return the stage of life options\n\t}",
"public MultiViewDescription getActiveDescription() {\n \treturn currentEditor;\n }",
"public Text getText() {\n return this.melding;\n }",
"public static Meal find(int mealID) throws ServletException {\n try{\n //Connect to Database\n Connection con = DatabaseAccess.getConnection();\n //Search through Exercise Table inside Database\n PreparedStatement ps = con.prepareStatement(\n \"SELECT * FROM meal WHERE (id =?)\");\n ps.setInt(1, mealID);\n ResultSet result = ps.executeQuery();//Run statement\n Meal meal = null; //Creating a Meal object to set returned value to\n //If we find Meal set create a new Meal using returned values\n if(result.next()){\n meal = new Meal(mealID,\n result.getString(\"name\"),\n result.getInt(\"calperUnit\"));\n }\n \n con.close(); //Close Connection\n return meal;\n }catch (SQLException ex) {\n throw new ServletException(\"Find Problem: Searching for Meal \", ex);\n }\n }",
"String getIdentifiant();",
"public String showItemInfo()\n {\n return \"The room has 1 \" + currentItem.getDescription() \n + \" weighted \" + currentItem.getWeight() + \" pounds\"; \n }",
"@JsonIgnore public String getMealService() {\n return (String) getValue(\"mealService\");\n }",
"public String ordaindu() {\r\n\t\treturn textField_1.getText();\r\n\t}",
"public String getExpenseName() {\n if (categoryIdentifier == AppController.periodicCategoryIdentifier)\n expenseName = pExpenseNameEt.getText().toString();\n else expenseName = fExpenseNameEt.getText().toString();\n return expenseName;\n }",
"public String getText_txt_Pick_Up_Text(){\r\n\t\treturn txt_Pick_Up_Text.getText();\r\n\t}",
"private void editMeal(String type, int mealID, long time) {\n Intent intent = new Intent(mContext.getApplicationContext(), MealEntryActivity.class);\n intent.putExtra(MealDateContract.Columns._ID, mealID);\n String[] splitType = type.split(\" \");\n intent.putExtra(MealDateContract.Columns.MEAL_TYPE, splitType[0]);\n intent.putExtra(MealDateContract.Columns.MEAL_TIME, time);\n mContext.startActivity(intent);\n }",
"@javax.persistence.Column(name = \"medal\", nullable = false, length = 1)\n\tpublic java.lang.String getMedal() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.MEDAL);\n\t}",
"public int getCatalogEditIDEntry(){\n int entry = 0;\n try{\n if(Integer.parseInt(catalogEditID.getText()) > 0) \n entry = Integer.parseInt(catalogEditID.getText());\n else {\n entry = 0;\n //if(!errorOverride)\n // alert.error(\"Input is not a valid integer - catalogEditID is zero or less than - getCatalogEditIDEntry()\"); //caught elsewhere unneeded\n }\n } catch(NumberFormatException ex) {\n entry = 0;\n // if(!errorOverride) \n alert.error(\"Input is not a valid integer - NumberFormatException - getCatalogEditIDEntry()\");\n alert.error(\"getCatalogEditIDEntry() - Entry: >\"+catalogEditID.getText()+\"<\");\n\n }\n return entry;\n }",
"public String getAboutBoxText();",
"public String getEdificio ()\r\n {\r\n return this.edificio;\r\n }",
"protected String getDifficulty() {\n\t\treturn (String) difficultyChooser.getSelectedItem();\n\t}",
"private void look()\n {\n System.out.println(currentRoom.getLongDescription()); \n }",
"public int getBonusMoneyID() {\n return bonusMoneyID_;\n }",
"public Integer getMedicalid() {\n return medicalid;\n }",
"public String getId() {\n if (id == null)\n return \"\"; //$NON-NLS-1$\n return id;\n }",
"@Override\n public String getPayMemo() {\n return String.format(\"Employee ID: %d, Pay Date: %s\", this.getEmpID(),\n HRUtility.dateToStr(new Date()));\n }",
"public int getMember(){\n String memberString = member.getSelectedItem().toString();\n int memberId = this.memberMap.get(memberString);\n \n System.out.println(\"getMember2: \"+ memberString +\",\"+ memberId);\n return memberId;\n }",
"String getDisplayText();",
"Meal editMeal(MealEditDTO mealEditDTO);",
"public int getEdad();",
"java.lang.String getDeskNo();",
"public String getAMText()\r\n {\r\n return (m_amText);\r\n }",
"public TextInfoBox getTextInfoBox()\r\n {\r\n return textInfoBox;\r\n }",
"public String getText(AppFile anItem) { return anItem.getText(); }",
"public int getBonusMoneyID() {\n return bonusMoneyID_;\n }",
"public String retrieveMerchant() {\n // Check if there's a valid merchant name.\n String merchant = _merchantET.getText().toString();\n if (merchant == null || merchant.equals(\"\")) {\n Toast.makeText(AddActivity.this, \"Please enter a merchant.\", Toast.LENGTH_LONG).show();\n return \"\";\n }\n return merchant;\n }",
"int getMoneyID();",
"int getMoneyID();",
"int getMoneyID();",
"public int getCurrentAlloment() {\n return currentAlloment;\n }",
"public int getVenueText() {\n return mTextItem;\n }",
"public Object getSelectedObject() {\n return (String) itsCombo.getSelectedItem();\n }",
"public void look() \n {\n System.out.println(currentRoom.getLongDescription());\n }",
"public String getUser() {\n\n return (String) comboCreateBox.getSelectedItem();\n }",
"public String get_AssetID_text() {\r\n\t\treturn FetchText(DefineSetup_AssetID_txtBx);\r\n\t}",
"public MyMaid hireMaid(Integer id){\n //return requested Maid\n return mMaidStaff.getMaid(id);\n }",
"public String getModifyEmp() {\n return modifyEmp;\n }",
"public static String display(AssessorDetails item) {\n if (item.getId() == null){\n return item.getValue();\n }\n return item.getId() + \": \" + item.getValue();\n }",
"public String getSelection()\n\t{\n\t\tString hour = (String)cbHour.getSelectedItem();\n\t\tString minutes = (String)cbMinutes.getSelectedItem();\n\t\tString am_pm = (String)cb_Am_Pm.getSelectedItem();\n\t\t\n\t\treturn (hour+\":\"+minutes+\" \"+am_pm);\n\t\t\n\t}",
"public Text getIdAttachHolder()\r\n\t{\r\n\t\treturn idAttachHolder;\r\n\t}",
"public String getCurrentItem() {\n\t\treturn currentItem;\n\t}",
"public int getAlcance() {\n return alcance;\n }",
"public String getInfoText();",
"private String getFormValue(EditText edit){\n if(edit!=null) return edit.getText().toString();\n else return \"\";\n }",
"public String getSalary() {\n return salaryField.getText();\n }",
"@Override\n public String displayUponBeingSelected() {\n\n StringBuilder sb = new StringBuilder();\n sb.append(String.format(\"Information about '%s'\\n\", foodLabel));\n sb.append(String.format(\"Brand: %s\\n\", brand));\n sb.append(String.format(\"Category: %s\\n\", category));\n sb.append(String.format(\"Item type: %s\\n\", StringUtils.capitalize(categoryLabel)));\n sb.append(String.format(\"Measure(s): %s\\n\", StringUtils.join(measures, \", \")));\n sb.append(String.format(\"Food ID: %s\\n\", foodId));\n sb.append(String.format(\"Food URI: %s\\n\", foodUri));\n sb.append(String.format(\"Image link: %s\\n\", imageLink));\n sb.append(String.format(\"Yielding search term: %s\\n\", yieldingSearchTerm));\n sb.append(formatBasicNutrients());\n\n return sb.toString();\n\n }",
"public PL getAdministerAt() { \r\n\t\tPL retVal = this.getTypedField(27, 0);\r\n\t\treturn retVal;\r\n }",
"public String getId(Updatable current) {\n\t\tif (current == null) {\n\t\t\tSystem.out.println(\"inside\");\n\t\t\tcurrent = getAny();\n\t\t}\n\t\treturn Double.toString(current.getId());\n\t}",
"@Override\r\n public int getsaleId() {\n return this.saleId;\r\n }",
"public String getApplicanttel() {\n return applicanttel;\n }",
"public String returnGenderBox(){\n\t\treturn (String) genderBox.getSelectedItem();//Return the gender options\n\t}",
"public Meal(int ID, String mealName, int calsPerUnit) {\n this.ID = ID;\n this.mealName = mealName;\n this.calsPerUnit = calsPerUnit;\n }",
"public String edit() {\n return \"edit\";\n }",
"java.lang.String getHotelText();",
"public String getSelected ()\n {\n return ((GroupItem)gbox.getSelectedItem()).getSelected();\n }",
"public IEntry getSelectedEntry()\n {\n return selectedEntry;\n }",
"public String getItemcd() {\r\n return itemcd;\r\n }",
"java.lang.String getID();",
"public String getMep() {\n return mep;\n }",
"public String getCateId() {\n return cateId;\n }",
"public String getSupEntDeal() {\n return supEntDeal;\n }",
"public String getAmount() {\n\n return amount.getText();\n }",
"public void getCustomerID (){\n\t\t//gets the selected row \n\t\tint selectedRowIndex = listOfAccounts.getSelectedRow();\n\t\t//gets the value of the first element of the row which is the \n\t\t//customerID\n\t\tcustomerID = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 0);\n\t\tcustomerName = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 1);\n\t}",
"public static String informationUpdatedDialog_txt(){\t\t\t\t\t\t\t\n\t\tid = \"divMessageOK\";\t\t\t\t\t\t\n\t\treturn id;\t\t\t\t\t\t\n\t}",
"@Override\n public Meal findById(long id) throws SQLException {\n String sql = \"SELECT * FROM meals WHERE id = \" + id;\n System.out.println(sql);\n ResultSet rs = _sqliteConnection.getCall(sql);\n return new Meal(rs.getLong(\"id\")\n , rs.getInt(\"foodId\")\n , rs.getInt(\"mealTypeId\")\n , rs.getLong(\"locationId\")\n , rs.getLong(\"amount\")\n , rs.getLong(\"calories\")\n , rs.getLong(\"fat\")\n , rs.getLong(\"carbohydrate\")\n , rs.getLong(\"salt\")\n , rs.getLong(\"protein\")\n , rs.getInt(\"isConsumed\")\n , LocalDateTime.parse(rs.getString(\"dateTime\"))\n );\n }",
"public Long getActid() {\r\n return actid;\r\n }",
"protected String getID(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"ID\", sharedPref.getString(\"id\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_ID, null);\n }",
"IProductInfo getM_piSelectedItem();",
"public String getSelectedId() {\n OptionEntry o=getSelectedOption();\n if (o!=null) {\n return o.getId();\n } else {\n return null;\n }\n\n }",
"public Long getPersonalItemId() {\r\n\t\treturn personalItemId;\r\n\t}",
"public String getIdImovel() {\r\n return idImovel;\r\n }",
"@Override\n public void onClick(final View v) {\n PopupMenu popup = new PopupMenu(context, holder.full_name);\n //inflating menu from xml resource\n popup.inflate(R.menu.test);\n //adding click listener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n\n //final String meal_type;\n FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();\n String current_uid = current_user.getUid();\n databaseReference = FirebaseDatabase.getInstance().getReference();\n databaseReference = databaseReference.child(\"users\").child(current_uid);\n databaseReference = databaseReference.child(\"food\");\n HashMap<String , String> userMeal = new HashMap<>();\n userMeal.put( ((TextView) v).getText().toString() , \"IT WORKED!\");\n\n\n switch (item.getItemId()) {\n case R.id.menu_item_1:\n //handle menu1 click\n databaseReference.child(item.toString()).setValue(userMeal);\n\n return true;\n case R.id.menu_item_2:\n //handle menu2 click\n databaseReference.child(item.toString()).setValue(userMeal);\n return true;\n case R.id.menu_item_3:\n //handle menu3 click\n databaseReference.child(item.toString()).setValue(userMeal);\n return true;\n case R.id.menu_item_4:\n //handle menu3 click\n databaseReference.child(item.toString()).setValue(userMeal);\n return true;\n default:\n return false;\n }\n\n\n }\n });\n //displaying the popup\n popup.show();\n\n\n if (holder.getAdapterPosition() == RecyclerView.NO_POSITION) return;\n notifyItemChanged(selectedPos);\n selectedPos = holder.getLayoutPosition();\n notifyItemChanged(selectedPos);\n // Toast.makeText(context, ((TextView) v).getText(), Toast.LENGTH_SHORT).show(); //Here I get the text string\n\n //adding meal to database\n\n\n //Storing the chosen food\n\n\n\n\n }",
"public String getAdmId() {\n return admId;\n }"
] | [
"0.6215578",
"0.59982836",
"0.5985156",
"0.5656415",
"0.5463809",
"0.5460961",
"0.53909457",
"0.53864425",
"0.5335492",
"0.53229064",
"0.53223526",
"0.53073645",
"0.5281818",
"0.5263863",
"0.52618474",
"0.5243297",
"0.52239716",
"0.52161276",
"0.51889986",
"0.5173532",
"0.5143418",
"0.51297987",
"0.51159084",
"0.51042914",
"0.51013225",
"0.51011896",
"0.5069483",
"0.5062491",
"0.50547373",
"0.50395423",
"0.5032003",
"0.5023242",
"0.50209653",
"0.50113034",
"0.49993178",
"0.49987462",
"0.49962312",
"0.49954256",
"0.49939567",
"0.49927965",
"0.49871784",
"0.49836385",
"0.4979071",
"0.49746788",
"0.49733463",
"0.49616984",
"0.49432674",
"0.4930872",
"0.49276793",
"0.49247733",
"0.4921706",
"0.49176747",
"0.49149108",
"0.49106482",
"0.49106482",
"0.49106482",
"0.49094185",
"0.49082917",
"0.4905863",
"0.4897741",
"0.48957804",
"0.48923862",
"0.48892406",
"0.48890257",
"0.48830998",
"0.48808277",
"0.48788404",
"0.4878209",
"0.4870389",
"0.48634413",
"0.48621526",
"0.485637",
"0.4854943",
"0.4850582",
"0.4844421",
"0.48416042",
"0.48404944",
"0.4839939",
"0.48397195",
"0.48383775",
"0.483746",
"0.48360717",
"0.4835249",
"0.48348475",
"0.48271894",
"0.48263538",
"0.4825861",
"0.48193642",
"0.48179215",
"0.48158032",
"0.48112473",
"0.4803368",
"0.48016766",
"0.47996607",
"0.4799082",
"0.47964317",
"0.47924715",
"0.4792255",
"0.4791976",
"0.4791595"
] | 0.67902756 | 0 |
Convert editID text to Integer | public int getCatalogEditIDEntry(){
int entry = 0;
try{
if(Integer.parseInt(catalogEditID.getText()) > 0)
entry = Integer.parseInt(catalogEditID.getText());
else {
entry = 0;
//if(!errorOverride)
// alert.error("Input is not a valid integer - catalogEditID is zero or less than - getCatalogEditIDEntry()"); //caught elsewhere unneeded
}
} catch(NumberFormatException ex) {
entry = 0;
// if(!errorOverride)
alert.error("Input is not a valid integer - NumberFormatException - getCatalogEditIDEntry()");
alert.error("getCatalogEditIDEntry() - Entry: >"+catalogEditID.getText()+"<");
}
return entry;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int getInt(EditText et) {\n String text = getText(et);\n return convertToInt(text);\n }",
"public int toInt(){\n\t\tString s = txt().trim();\n\t\tint i;\n\t\ttry{\n\t\t\ti = Integer.parseInt(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t\treturn i;\t\n\t}",
"public int getInt()\n\t{\n\t\tfinal String text = getText();\n\t\tif (text == null || text.length() == 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\treturn Integer.parseInt(text);\n\t}",
"public static int stringToInt(Object val) {\n String intStr = String.valueOf(val);\n return Integer.parseInt(intStr);\n }",
"public int toInt(String entity) { return ent_2_i.get(entity); }",
"private int getNumber(String taskInfo) throws EditNoIndexException {\n try {\n int numberNextSlash = taskInfo.indexOf(\"/\");\n int number = Integer.parseInt(taskInfo.substring(0, (numberNextSlash - 2)));\n return number;\n } catch (StringIndexOutOfBoundsException | NumberFormatException e) {\n throw new EditNoIndexException();\n }\n }",
"public static int convert(String entry) throws InvalidInputException {\r\n\r\n\t\ttry {\r\n\t\t\tint x = Integer.parseInt(entry);\r\n\t\t\treturn x;\r\n\t\t}catch(NumberFormatException nf) {\r\n\t\t\tthrow new InvalidInputException(\"The input is not an integer\");\r\n\t\t}\r\n\t\t\r\n\t}",
"Integer getTxtOrent();",
"public int getProgramIdFromUI(String programName) throws ParseException;",
"final Integer getIdFromStringPerson(String selectedValue) {\n String [] tokens = selectedValue.split(\":\"); //Split our String\n int idPosition = 1; // ID's position in the our String(See getAsString())\n return Integer.parseInt(tokens[idPosition]); //Extract Id from the string\n }",
"private Integer extractId(Request request) throws InvalidInputException {\n\t\tString intString = (String)request.getAttributes().get(RequestParamConstants.PARAM_META_ID);\n\t\tInteger id = null;\n\t\ttry {\n\t\t\tid = new Integer(intString);\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new InvalidInputException(\"Bad integer format in id: \"+intString, e);\n\t\t}\n\t\treturn id;\n\t}",
"public int getId(){\n if (ID != null) {\n int i = Integer.parseInt(ID);\n return i;\n }\n return 0;\n }",
"public int getAddEditMenuText();",
"private int getOrderId() {\n int orderId;\n try {\n if (orderIdField.getText().isEmpty()) {\n orderId = -1;\n }\n else {\n orderId = Integer.parseInt(orderIdField.getText());\n }\n } catch (NumberFormatException exc) {\n orderId = -1;\n }\n return orderId;\n }",
"public String getTxtID() {\n return txtId.getText();\n }",
"private int getValueOfField(int reference){\n Object obj = getView().findViewById(reference);\n if (obj instanceof EditText)\n if (!((EditText) obj).getText().toString().equalsIgnoreCase(\"\"))\n return Integer.parseInt(((EditText) obj).getText().toString());\n else\n return 0;\n else if (obj instanceof Button)\n if (!((Button) obj).getText().toString().equalsIgnoreCase(\"\"))\n return Integer.parseInt(((Button) obj).getText().toString());\n else\n return 0;\n else\n return -1;\n }",
"private int convertInteger(String val)\n\t{\n\t\tint value = 0;\n\t\ttry {\n\t\t\tvalue = Integer.parseInt(val);\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\tSystem.err.print(\"\");\n\t\t}\n\t\treturn value;\n\t}",
"String getIdNumber();",
"@Test\n public void testEditTextHasCorrectID(){\n ViewInteraction appCompatEditTextView = onView(withId(R.id.input));\n appCompatEditTextView.perform(replaceText(\"testEditTextHasCorrectID\"), closeSoftKeyboard());\n onView(withId(R.id.fab)).perform(click());\n EditText input = messagesActivity.input;\n int ID = input.getId();\n int expectedID = R.id.input;\n assertEquals(ID, expectedID);\n }",
"int toInteger(String value) {\n value = value.trim();\n if (\"9999\".equals(value)) value = \"\";\n return (!\"\".equals(value)\n ? new Integer(value).intValue()\n : Tables.INTNULL);\n }",
"public static int getTextFieldValueAsInt(Text text) {\n\t\tString s = getTextFieldValue(text);\n\t\tif (s == null) {\n\t\t\treturn Integer.MAX_VALUE;\n\t\t}\n\t\tint result = Integer.MAX_VALUE;\n\t\ttry {\n\t\t\tresult = Integer.parseInt(s);\n\t\t} catch(NumberFormatException exc) {\n\t\t\treturn Integer.MAX_VALUE;\n\t\t}\n\t\treturn result;\n\t}",
"public String get_integer_part();",
"private void esteCaretUpdate(javax.swing.event.CaretEvent evt) {\n try{ \n int parseInt = Integer.parseInt(this.getText());\n \n }catch(Exception e){\n }\n \n }",
"public int id () {\r\n int iId;\r\n\r\n if (isNull(\"id_term1\"))\r\n \tiId = getInt(DB.id_term+\"0\");\r\n else if (isNull(\"id_term2\"))\r\n \tiId = getInt(DB.id_term+\"1\");\r\n else if (isNull(\"id_term3\"))\r\n \tiId = getInt(DB.id_term+\"2\");\r\n else if (isNull(\"id_term4\"))\r\n \tiId = getInt(DB.id_term+\"3\");\r\n else if (isNull(\"id_term5\"))\r\n \tiId = getInt(DB.id_term+\"4\");\r\n else if (isNull(\"id_term6\"))\r\n \tiId = getInt(DB.id_term+\"5\");\r\n else if (isNull(\"id_term7\"))\r\n \tiId = getInt(DB.id_term+\"6\");\r\n else if (isNull(\"id_term8\"))\r\n \tiId = getInt(DB.id_term+\"7\");\r\n else if (isNull(\"id_term9\"))\r\n \tiId = getInt(DB.id_term+\"8\");\r\n else\r\n \tiId = getInt(DB.id_term+\"9\");\r\n\r\n return iId;\r\n }",
"protected static final int m2866a(XmlPullParser xmlPullParser, String str) {\n String attributeValue = xmlPullParser.getAttributeValue(null, str);\n if (attributeValue == null) {\n return -1;\n }\n try {\n return Integer.parseInt(attributeValue);\n } catch (NumberFormatException e) {\n throw new ako(e);\n }\n }",
"String getEditore();",
"private int priorityStringToInt(String string) {\n // Convert the priority of the editText from letters to a single digit\n switch (string) {\n case \"High Priority\":\n return 0;\n case \"Medium Priority\":\n return 1;\n case \"Low Priority\":\n return 2;\n default:\n return -1;\n }\n }",
"public static int m2197ao(String str) {\n try {\n return Integer.valueOf(str).intValue();\n } catch (Exception e) {\n return -1;\n }\n }",
"public int intVal() {\r\n\t\t\tassert kind == Kind.INTEGER_LITERAL;\r\n\t\t\treturn Integer.valueOf(String.copyValueOf(chars, pos, length));\r\n\t\t}",
"public Object getEditorValue() {\r\n\t try{\r\n\t\treturn new Integer(getText());\r\n\t }catch(Exception e){}\r\n\t return null;\r\n\t}",
"public int parseInt()\r\n {\r\n String str = feed.findWithinHorizon( INTEGER_PATTERN, 0 );\r\n \r\n if( str == null )\r\n throw new NumberFormatException( \"[Line \" + lineNum + \"] Input did not match an integer\" );\r\n else if( str.length() == 0 )\r\n throw new NumberFormatException( \"Input did not match an integer\" );\r\n \r\n return Integer.parseInt( str );\r\n }",
"public void setId(String tmp) {\n this.id = Integer.parseInt(tmp);\n }",
"public static int parseId(String id) {\n try {\n return Integer.parseInt(id, Character.MAX_RADIX);\n }\n catch (NumberFormatException e) {\n throw e; // just to put a break point\n }\n }",
"public void setText(int str) { this.editText.setText(str); }",
"private int insertEditMenuAnswer()\n {\n boolean valid = false;\n String choice = \"\";\n Scanner content = new Scanner(System.in);\n \n while (!valid)\n {\n menu.editOptions();\n choice = content.nextLine().trim();\n valid = validation.integerValidation(choice, 1, 4);\n }\n \n int ans = Integer.parseInt(choice);\n \n return ans;\n }",
"private String getTextID(String key) {\n return fieldID.get(key).getText();\n }",
"private int extractInt() {\n\t\tint startIndex = index;\n\t\tfor (; index < exprLen; index++) {\n\t\t\tchar c = expr.charAt(index);\n\t\t\tif (!Character.isDigit(c)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tint endIndex = index;\n\t\tint value;\n\t\ttry {\n\t\t\tvalue = Integer.parseInt(expr.substring(startIndex, endIndex));\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new IllegalArgumentException(e.getMessage());\n\t\t}\n\n\t\treturn value;\n\t}",
"private Integer convertSpinnerValueToInt(Object spinnerValue){\n String spinnerAsString = (String) spinnerValue;\n return Integer.parseInt(spinnerAsString);\n }",
"public Integer getViewID()\n {\n String x = center.east() + \"_\" + center.north() + \"_\" + scale + \"_\" +\n getWidth() + \"_\" + getHeight();\n java.util.zip.CRC32 id = new java.util.zip.CRC32();\n id.update(x.getBytes());\n return new Long(id.getValue()).intValue();\n }",
"int leerCodigoIngreso(){\n\t\treturn Integer.parseInt(cboCodigoIngreso.getSelectedItem().toString());\n\t}",
"public int getIdAsInt(String key) {\n Object obj = ids.get(key);\n if (obj == null) {\n return 0;\n }\n if (obj instanceof Integer) {\n return (Integer) obj;\n }\n\n if (obj instanceof String) {\n try {\n return Integer.parseInt((String) obj);\n }\n catch (Exception e) {\n LOGGER.trace(\"could not parse int: {}\", e.getMessage());\n }\n }\n\n return 0;\n }",
"public static int char_to_int(char c){\n\t\tswitch(c){\n\t\t\tcase '1':\n\t\t\t\treturn 1;\n\t\t\tcase '2':\n\t\t\t\treturn 2;\n\t\t\tcase '3':\n\t\t\t\treturn 3;\n\t\t\tcase '4':\n\t\t\t\treturn 4;\n\t\t\tcase '5':\n\t\t\t\treturn 5;\n\t\t\tcase '6':\n\t\t\t\treturn 6;\n\t\t\tcase '7':\n\t\t\t\treturn 7;\n\t\t\tcase '8':\n\t\t\t\treturn 8;\n\t\t\tcase '9':\n\t\t\t\treturn 9;\n\t\t\tcase '0':\n\t\t\t\treturn 0;\n\t\t\tcase 'a':\n\t\t\t\treturn 10;\n\t\t\tcase 'b':\n\t\t\t\treturn 11;\n\t\t\tcase 'c':\n\t\t\t\treturn 12;\n\t\t\tcase 'd':\n\t\t\t\treturn 13;\n\t\t\tcase 'e':\n\t\t\t\treturn 14;\n\t\t\tcase 'f':\n\t\t\t\treturn 15;\n\t\t}\n\t\treturn 0;\n\t}",
"public static Integer getNumber(TextView view) {\n Integer result;\n if (!isEmpty(view)) {\n try {\n result = Integer.parseInt(getString(view));\n } catch (Exception e) {\n result = null;\n }\n } else {\n result = null;\n }\n return result;\n }",
"private static int extractInt(String str) {\n\n String num = \"\";\n for (int i = 0; i < str.length(); i++) {\n if (java.lang.Character.isDigit(str.charAt(i))) num += str.charAt(i);\n }\n return (num.equals(\"\")) ? 0 : java.lang.Integer.parseInt(num);\n\n }",
"public static int toInt(String str){\r\n\t\tInteger i = toInteger(str);\r\n\t\treturn i==null?0:i;\r\n\t}",
"public Paises obtenerPaisPorID(Integer txtPais);",
"public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }",
"public static int getInt() throws IOException {\r\n String s = getString();\r\n return Integer.parseInt(s);\r\n }",
"@Override\n public int getValue() {\n return Integer.parseInt(gValue.getText());\n }",
"public static void setTextFieldInteger(TextField txt) {\n\t\ttxt.textProperty().addListener((obs, oldValue, newValue)->{\n\t\t\tif(newValue!=null && !newValue.matches(\"\\\\d*\"))\n\t\t\t\ttxt.setText(oldValue);\n\t\t});\n\t}",
"int getContents(JTextField tf) {\r\n\t\tString contents = tf.getText();\r\n\t\tif (contents == null || contents.isEmpty()) {\r\n\t\t\t\r\n\t\t\tif (!tf.hasFocus()) {\r\n\t\t\t\ttf.setText(\"00\");\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn Integer.parseInt(contents);\r\n\t}",
"public void LandID(){\n int x = Integer.parseInt(AssetLandCount_txt.getText());\n \n String LandIDwillBe = String.valueOf(x+1);\n \n LandNumber_txt.setText(LandIDwillBe);\n }",
"public static int getInt(String key) throws UnknownID, ArgumentNotValid {\n\t\tString value = get(key);\n\t\ttry {\n\t\t\treturn Integer.parseInt(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString msg = \"Invalid setting. Value '\" + value + \"' for key '\" + key\n\t\t\t\t\t+ \"' could not be parsed as an integer.\";\n\t\t\tthrow new ArgumentNotValid(msg, e);\n\t\t}\n\t}",
"public int getInteger(String key) {\r\n try {\r\n return Integer.decode(getString(key)).intValue();\r\n }\r\n catch (Exception e) {\r\n return 0;\r\n }\r\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\tint id = v.getId();\n\t\tswitch (id) {\n\t\tcase R.id.et1:\n\t\t\tedit(et1, 1);\n\t\t\tbreak;\n\t\tcase R.id.et2:\n\t\t\tedit(et2, 2);\n\t\t\tbreak;\n\t\tcase R.id.et3:\n\t\t\tedit(et3, 3);\n\t\t\tbreak;\n\t\tcase R.id.et4:\n\t\t\tedit(et4, 4);\n\t\t\tbreak;\n\t\tcase R.id.et5:\n\t\t\tedit(et5, 5);\n\t\t\tbreak;\n\t\tcase R.id.et6:\n\t\t\tedit(et6, 6);\n\t\t\tbreak;\n\t\tcase R.id.et7:\n\t\t\tedit(et7, 7);\n\t\t\tbreak;\n\t\tcase R.id.et8:\n\t\t\tedit(et8, 8);\n\t\t\tbreak;\n\t\tcase R.id.et9:\n\t\t\tedit(et9, 9);\n\t\t\tbreak;\n\t\tcase R.id.et10:\n\t\t\tedit(et10, 10);\n\t\t\tbreak;\n\t\tcase R.id.et11:\n\t\t\tedit(et11, 11);\n\t\t\tbreak;\n\t\tcase R.id.et12:\n\t\t\tedit(et12, 12);\n\t\t\tbreak;\n\t\tcase R.id.et13:\n\t\t\tedit(et13, 13);\n\t\t\tbreak;\n\t\tcase R.id.et14:\n\t\t\tedit(et14, 14);\n\t\t\tbreak;\n\t\t}\n\t}",
"public static int getInt() throws IOException {\n String s = getString();\n return Integer.parseInt(s);\n }",
"public int getId() {\n\t\treturn Integer.parseInt(Id);\n\t}",
"@Override\n public int strToInt(String source) {\n try {\n return Integer.parseInt(source);\n } catch (NumberFormatException nfe) {\n return 0;\n }\n }",
"public static int getInt() throws IOException {\n\t\nString s = getString();\nreturn Integer.parseInt(s);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns the integer in the string as an Int.\n\t\n}",
"public static int getInt(String key, int i) {\n\t\tString token = getSystemString(key);\n\t\tif (token == null) {\n\t\t\treturn i;\n\t\t}\n\t\treturn Integer.parseInt(token);\n\t}",
"public void editHandler(View v) {\n LinearLayout vwParentRow = (LinearLayout)v.getParent();\n TextView id =(TextView) vwParentRow.findViewById(R.id._id);\n Intent intent = new Intent(Hates.this, Formulario.class);\n\n intent.putExtra(C_MODO, C_EDITAR);\n intent.putExtra(C_TIPO, love_hate);\n intent.putExtra(mDbHelper.ID, Long.valueOf((String)id.getText()));\n\n\n this.startActivityForResult(intent, C_EDITAR);\n }",
"private static int characterToIntegerDigit(char c) {\n\t\t// since all characters are integers in UTF-16\n\t\tif (c >= 48 && c <= 57) {\n\t\t\treturn (c - 48);\n\t\t}\n\t\treturn -1;\n\t}",
"public static int validateStockInput(Context context, TextInputEditText editText) {\n // store input\n final String rawQuantity = editText.getText().toString().trim();\n\n // return 0 as a default value\n if (TextUtils.isEmpty(rawQuantity))\n return 0;\n\n try {\n int quantityInt = Integer.parseInt(editText.getText().toString().trim());\n if (quantityInt < 0) {\n editText.setError(context.getResources().getString(R.string.editor_edt_invalid_input));\n return -1;\n }\n return quantityInt;\n } catch (NumberFormatException nfe) {\n editText.setError(context.getResources().getString(R.string.editor_edt_invalid_input));\n return -1;\n }\n }",
"private static int m9364v(Intent intent, String str) {\n int i = -10000;\n if (intent == null) {\n return i;\n }\n try {\n return intent.getIntExtra(str, -10000);\n } catch (Exception e) {\n new StringBuilder(\"getIntExtra exception:\").append(e.getMessage());\n return i;\n }\n }",
"private static int transformHexCharToInt(byte val) throws HyracksDataException {\n switch (val) {\n case '0':\n return 0;\n case '1':\n return 1;\n case '2':\n return 2;\n case '3':\n return 3;\n case '4':\n return 4;\n case '5':\n return 5;\n case '6':\n return 6;\n case '7':\n return 7;\n case '8':\n return 8;\n case '9':\n return 9;\n case 'a':\n case 'A':\n return 10;\n case 'b':\n case 'B':\n return 11;\n case 'c':\n case 'C':\n return 12;\n case 'd':\n case 'D':\n return 13;\n case 'e':\n case 'E':\n return 14;\n case 'f':\n case 'F':\n return 15;\n default:\n throw new RuntimeDataException(ErrorCode.INVALID_FORMAT);\n }\n }",
"public final static int toInt(final String id) {\n\t\tfinal byte[] bytes = id.getBytes(StandardCharsets.US_ASCII);\n\t\tint result = 0;\n\t\tif (bytes.length >= 4) {\n\t\t\tresult |= (bytes[3] << 0) & 0x000000FF;\n\t\t\tresult |= (bytes[2] << 8) & 0x0000FF00;\n\t\t\tresult |= (bytes[1] << 16) & 0x00FF0000;\n\t\t\tresult |= (bytes[0] << 24) & 0xFF000000;\n\t\t}\n\t\telse {\n\t\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\t\tresult |= (bytes[i] << (24 - (i << 3)));\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"@Override\n\tpublic void editAction(int id) {\n\t\t\n\t}",
"@Override\n public void handle(KeyEvent t) {\n if(!receiver_id.getText().matches(\"[0-9]*\"))\n {\n receiver_id.setText(receiver_id.getText().replaceAll(\"[^\\\\d]\", \"\"));\n receiver_id.selectPositionCaret(receiver_id.getLength());receiver_id.deselect();\n }\n }",
"public static int getInt(String inputDialog) {\n return(Integer.parseInt(JOptionPane.showInputDialog(inputDialog)));\n }",
"public int getCommand() {\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tint value = Integer.parseInt(getToken(\"\"));\r\n\t\t\t\tif (value >= EXIT && value <= SAVE) {\r\n\t\t\t\t\treturn value;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow new NumberFormatException();\r\n\t\t\t\t}\r\n\t\t\t} catch (NumberFormatException nfe) {\r\n\t\t\t\tSystem.out.print(\"Invalid entry please try again.\");\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t}",
"private static int parseInteger(String s, int index)\n\t{\n\t\tString temp = \"\";\n\t\tint i = index;\n\t\twhile (Character.isDigit(s.charAt(i)))\n\t\t{\n\t\t\ttemp += s.charAt(i++);\n\t\t}\n\t\treturn Integer.parseInt(temp);\n\t}",
"public int toInteger(String stringItem) {\n Integer integerItem = 0;\n try {\n integerItem = Integer.valueOf(stringItem);\n } // try\n catch (NumberFormatException ioError) {\n System.out.print(\"Error converting \" + stringItem);\n System.out.print(\" to an integer number::\");\n System.out.println(\" Termio.ToInteger method.\");\n } // catch\n return integerItem;\n }",
"@Override\n public int getInt(int from, int length) {\n return Integer.parseInt(this.getString().substring(from, from+length));\n }",
"@Override\n public Object stringToValue(String text) {\n String result = text.trim();\n result = result.replaceAll(\"\\\\D\", \"\");\n int difference = result.length() - MAX_LENGTH_AS_STRING;\n if (0 < difference)\n result = result.substring(0, result.length() - difference);\n return result.equals(\"\") ? \"\" : Integer.parseInt(result);\n }",
"private static int convertCharToInt(char charAt) {\n\t\tif(charAt == 48) {\t\n\t\t\treturn 0;\n\t\t}else {\n\t\t\treturn 1;\n\t\t}\n\t}",
"public Integer toInt(String lex) {\r\n\t\tInteger i=-1;\r\n\t\ttry{\r\n\t\t\ti=Integer.parseInt(lex);\r\n\t\t}catch(NumberFormatException e){\r\n\t\t\tSystem.err.println(\"error, numero demasiado largo\");\r\n\t\t}\r\n\t\treturn i;\r\n\t}",
"public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }",
"public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }",
"public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }",
"@Override\n\t\tpublic Integer convert(String s) {\n\t\t\treturn Integer.parseInt(s);\n\t\t}",
"public int toIntDiff(String questionDiff) {\n int diff = 0;\n\n if (questionDiff.equals(\"E\")) {\n diff = 0;\n } else if (questionDiff.equals(\"M\")) {\n diff = 1;\n } else if (questionDiff.equals(\"H\")) {\n diff = 2;\n } else {\n diff = 3;\n }\n\n return diff;\n }",
"private static int getIntValue(String s) {\n try {\n return Integer.parseInt(s, 16);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n return -1;\n }\n }",
"public static int asInt(char c) {\n int temp = 0;\n switch (c) {\n case '2':\n temp = 2;\n break;\n case '3':\n temp = 3;\n break;\n case '4':\n temp = 4;\n break;\n case '5':\n temp = 5;\n break;\n case '6':\n temp = 6;\n break;\n case '7':\n temp = 7;\n break;\n case '8':\n temp = 8;\n break;\n case '9':\n temp = 9;\n break;\n case 'T':\n temp = 10;\n break;\n case 'J':\n temp = 11;\n break;\n case 'Q':\n temp = 12;\n break;\n case 'K':\n temp = 13;\n break;\n case 'A':\n temp = 14;\n break;\n\n default:\n throw new AssertionFailedError(\n \"Invalid Character \" + c + \" in card number column: Expected 1-9,J,Q,K,A\");\n\n }\n return temp;\n }",
"public IntColumn getId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"id\", IntColumn::new) :\n getBinaryColumn(\"id\"));\n }",
"public IntColumn getId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"id\", IntColumn::new) :\n getBinaryColumn(\"id\"));\n }",
"protected final int getSettingAsInteger(String inSettingId, String inDefault) {\r\n\r\n\t\tint outNumber;\r\n\r\n\t\tString lSettingAsText = getSettingAsText(inSettingId, inDefault);\r\n\t\ttry {\r\n\t\t\toutNumber = Integer.valueOf(lSettingAsText);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"Setting [\" + inSettingId + \"] with value [\" + lSettingAsText + \"] must be an integer number!\");\r\n\t\t} // catch\r\n\r\n\t\treturn outNumber;\r\n\t}",
"String getInt_lit();",
"public int getM_Splitting_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Splitting_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"private int toInt(String binary){\n if (bitToInt(binary.charAt(0)) == 0){\n return positiveBinToInt(binary);\n }\n else{\n return negativeBinaryToInt(binary);\n }\n }",
"int toInt(String a){\n\t\tint name=0;\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tname+=(int)a.charAt(i);\r\n\t\t}\r\n\t\treturn name;\r\n\t}",
"@Override\n public void onClick(View v) {\n if(!txtCampo1.getText().toString().equals(\"\")){\n //transformar o valor do campo1 para INTEIRO\n int num1 = Integer.parseInt(txtCampo1.getText().toString());\n int num2 = Integer.parseInt(txtCampo2.getText().toString());\n\n //String.valueOf(numero aqui) = transformar um número em String\n int resultado;\n int[] numeros = {num1, num2};\n resultado = Tools.somarInteiros(numeros);\n\n lblTexto.setText(String.valueOf(resultado));\n\n Tools.exibirMensagem(context,\"Resultado = \" + resultado);\n }\n }",
"public static int convertIntCharToInteger(String input) {\n\t\tint convertedInt = \tinput.charAt(0)-'0';\n\t\tSystem.out.println(convertedInt);\n\t\treturn convertedInt;\n\t}",
"public static int getStringId(String name)\n\t{\n\t\tClass<R.string> c = R.string.class;\n\t\tField f;\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tf = c.getField(name);\n\t\t\ti = f.getInt(f);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(\"RR\", e.toString());\n\t\t}\n\t\treturn i;\n\t}",
"public final int getEditingIndex() {\n\n return this.getWrappedControl().getEditingIndex();\n }",
"public void editCounter() {\n if (CounterValidator.validate(context, editName, editValue, editCurrent)) {\n String name = editName.getText().toString().trim();\n int current = Integer.parseInt(editCurrent.getText().toString().trim());\n int value = Integer.parseInt(editValue.getText().toString().trim());\n String comment = editComment.getText().toString().trim();\n\n cc.editCounter(counter, name, current, value, comment);\n String update_str = context.getString(R.string.edit_toast);\n Toast.makeText(context, update_str, Toast.LENGTH_SHORT).show();\n finish();\n }\n }",
"public static int tipoEventoByInt(String sTipoEvento){\n int nTipoEvento = -1;\n switch (sTipoEvento){\n case \"Bautizo\":\n nTipoEvento = 0;\n break;\n case \"Boda\":\n nTipoEvento = 1;\n break;\n case \"Comunion\":\n nTipoEvento = 2;\n break;\n case \"Compromiso\":\n nTipoEvento = 3;\n break;\n case \"Aniversario\":\n nTipoEvento = 4;\n break;\n case \"Cumpleanios\":\n nTipoEvento = 5;\n break;\n }\n return nTipoEvento;\n }",
"public int getValueAsIntegerValue() throws DataFieldException {\n\t\ttry {\n\t\t\treturn Integer.parseInt(this.value);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tthrow new DataFieldException(\n\t\t\t\t\t\"Couldn't parse value into an integer. Value: \"\n\t\t\t\t\t+ this.value, nfe);\n\t\t}\n\t}",
"private int convertStringToInt(String stringToConvert) throws InvalidFileException {\r\n int convertedInteger = -1;\r\n\r\n try {\r\n convertedInteger = Integer.parseInt(stringToConvert);\r\n } catch (NumberFormatException e) {\r\n throw new InvalidFileException();\r\n }\r\n\r\n return convertedInteger;\r\n }",
"public int convertToInt(String i) {\n\t\tswitch (i) {\n\t\t\tcase \".\": return 0;\n\t\t\tcase \"1\": return 1;\n\t\t\tcase \"2\": return 2;\n\t\t\tcase \"3\": return 3;\n\t\t\tcase \"4\": return 4;\n\t\t\tcase \"5\": return 5;\n\t\t\tcase \"6\": return 6;\n\t\t\tcase \"7\": return 7;\n\t\t\tcase \"8\": return 8;\n\t\t\tcase \"9\": return 9;\n\t\t\tcase \"A\": return 10;\n\t\t\tcase \"B\": return 11;\n\t\t\tcase \"C\": return 12;\n\t\t\tcase \"D\": return 13;\n\t\t\tcase \"E\": return 14;\n\t\t\tcase \"F\": return 15;\n\t\t\tcase \"G\": return 16;\n\t\t\tcase \"H\": return 17;\n\t\t\tcase \"I\": return 18;\n\t\t\tcase \"J\": return 19;\n\t\t\tcase \"K\": return 20;\n\t\t\tcase \"L\": return 21;\n\t\t\tcase \"M\": return 22;\n\t\t\tcase \"N\": return 23;\n\t\t\tcase \"O\": return 24;\n\t\t\tcase \"P\": return 25;\n\t\t\tcase \"Q\": return 26;\n\t\t\tcase \"R\": return 27;\n\t\t\tcase \"S\": return 28;\n\t\t\tcase \"T\": return 29;\n\t\t\tcase \"U\": return 30;\n\t\t\tcase \"V\": return 31;\n\t\t\tcase \"W\": return 32;\n\t\t\tcase \"X\": return 33;\n\t\t\tcase \"Y\": return 34;\n\t\t\tcase \"Z\": return 35;\n\t\t\tdefault: System.out.println(\"The number is too high.\");\n\t\t\t return 9000;\n\t\t}\n }",
"public static Integer getPuzzleId(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(PREF, Context.MODE_PRIVATE);\n Integer NumValue = Integer.parseInt(prefs.getString(\"PuzzleId\", \"0\"));\n return NumValue;\n }"
] | [
"0.6621606",
"0.6322119",
"0.6265973",
"0.583268",
"0.5820928",
"0.57852286",
"0.57776785",
"0.57398796",
"0.5718141",
"0.571296",
"0.5710311",
"0.56793505",
"0.5656629",
"0.5625095",
"0.5589244",
"0.5581941",
"0.555642",
"0.55526996",
"0.55320746",
"0.5482108",
"0.54755837",
"0.54748297",
"0.5466391",
"0.54334956",
"0.53973496",
"0.5383633",
"0.53751403",
"0.5360983",
"0.5331261",
"0.53223217",
"0.5309986",
"0.5304948",
"0.52866596",
"0.5280547",
"0.5273069",
"0.5272036",
"0.5262595",
"0.52474433",
"0.52469784",
"0.5240197",
"0.52383083",
"0.5237859",
"0.5219931",
"0.5212603",
"0.52124697",
"0.52003175",
"0.51983476",
"0.51938486",
"0.5180985",
"0.5178709",
"0.51758784",
"0.51722676",
"0.516425",
"0.5157152",
"0.51556146",
"0.5150411",
"0.51501644",
"0.5149452",
"0.51427394",
"0.514234",
"0.51328796",
"0.51254153",
"0.51101506",
"0.51088977",
"0.5105297",
"0.5089324",
"0.5088384",
"0.50883317",
"0.50811803",
"0.5077655",
"0.5071271",
"0.50678337",
"0.506733",
"0.506641",
"0.50642896",
"0.5063727",
"0.5063065",
"0.5063065",
"0.5063065",
"0.5058246",
"0.5052365",
"0.5041629",
"0.5040329",
"0.50383973",
"0.50383973",
"0.5035971",
"0.5019375",
"0.50154954",
"0.50154686",
"0.501517",
"0.5014455",
"0.50130314",
"0.5011347",
"0.5011035",
"0.50100094",
"0.49974647",
"0.4997008",
"0.49966577",
"0.49880162",
"0.49879074"
] | 0.69447255 | 0 |
Created by Limuyang on 2016/12/9. | public interface IBingPresenter {
void getUrlInfo(List<String> IMAGES);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"private void poetries() {\n\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"public void mo4359a() {\n }",
"private void init() {\n\n\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n void init() {\n }",
"@Override\n public void init() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"private void strin() {\n\n\t}",
"public void mo6081a() {\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public void init() {}",
"public void mo55254a() {\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void init() {\n }",
"private void init() {\n\n\n\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\n\tpublic void init() {\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"Petunia() {\r\n\t\t}",
"@Override\n protected void getExras() {\n }",
"protected boolean func_70814_o() { return true; }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}"
] | [
"0.61023057",
"0.59644306",
"0.587211",
"0.5815701",
"0.5809306",
"0.5809306",
"0.57971185",
"0.5761371",
"0.5742755",
"0.5685529",
"0.56648815",
"0.5660394",
"0.5657991",
"0.56394756",
"0.56339383",
"0.5625925",
"0.56214786",
"0.559814",
"0.55930984",
"0.5589832",
"0.55868787",
"0.5580365",
"0.5580365",
"0.5568007",
"0.5568007",
"0.5568007",
"0.5568007",
"0.5568007",
"0.5562931",
"0.55603945",
"0.5558749",
"0.5553732",
"0.55533093",
"0.55469126",
"0.55359894",
"0.5531163",
"0.5522643",
"0.5514007",
"0.5509027",
"0.54943633",
"0.5491196",
"0.5491196",
"0.5491196",
"0.5491196",
"0.5491196",
"0.5491196",
"0.5491196",
"0.5487194",
"0.54820716",
"0.5474479",
"0.5474479",
"0.5460667",
"0.5460667",
"0.5460667",
"0.5457645",
"0.5457645",
"0.5457645",
"0.5457491",
"0.5448994",
"0.5448587",
"0.543924",
"0.54384005",
"0.5432317",
"0.5432317",
"0.5426622",
"0.54265785",
"0.54265785",
"0.54265785",
"0.54189",
"0.54189",
"0.54189",
"0.54189",
"0.54189",
"0.54189",
"0.54165524",
"0.54030436",
"0.5400839",
"0.5391791",
"0.53830415",
"0.53758955",
"0.53698426",
"0.53672785",
"0.536697",
"0.5363977",
"0.53598773",
"0.53597844",
"0.53586537",
"0.5358035",
"0.53519785",
"0.5348953",
"0.5338754",
"0.533739",
"0.53357035",
"0.5316546",
"0.53155684",
"0.531398",
"0.5295704",
"0.528241",
"0.5273681",
"0.5260087",
"0.5260087"
] | 0.0 | -1 |
Helper method I made up one day, to work around the lack of documentation about font sizes in Android. This function is only "partially debugged" and I do not guarantee its accuracy. | public static float findThePerfectFontSize(float lowerThreshold) {
float fontSize = 1;
Paint p = new Paint();
p.setTextSize(fontSize);
while (true) {
float asc = -p.getFontMetrics().ascent;
if (asc > lowerThreshold) {
break;
}
fontSize++;
p.setTextSize(fontSize);
}
return fontSize;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getFontSize();",
"public float getFontSize();",
"private static void loadTextSizes(Context context)\n\t{\n\t\tDisplayMetrics metrics = context.getResources().getDisplayMetrics();\n\t\tTEXT_SIZE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 14, metrics);\n\t\tTEXT_SIZE_BIG = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 20, metrics);\n\t\tPADDING = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 10, metrics);\n\t\tTEXT_SPACE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 150, metrics);\n\t}",
"public double getFontSize(\n )\n {return fontSize;}",
"private int getFontSize(LabelGeometry geom)\r\n {\r\n float fontSize = AWTUtilities.getFontSize(geom.getRenderProperties().getFont());\r\n\r\n // Scale based on the view\r\n Function<Kilometers, Float> scaleFunction = geom.getRenderProperties().getScaleFunction();\r\n if (scaleFunction != null)\r\n {\r\n float viewScale = scaleFunction.apply(myViewAltitudeSupplier.get()).floatValue();\r\n fontSize *= viewScale;\r\n }\r\n\r\n return Math.round(fontSize);\r\n }",
"private void setupTextSize()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tthis.mTextSize = (int) res.getDimension(R.dimen.tsz_main);\n\t}",
"float getFontSize()\r\n\t{\r\n\t\tif (!appearanceTokens.isEmpty())\r\n\t\t{\r\n\t\t\t// daString looks like \"BMC /Helv 3.4 Tf EMC\"\r\n\t\t\t// use the fontsize of the default existing apperance stream\r\n\t\t\tint fontIndex = appearanceTokens.indexOf(Operator.getOperator(\"Tf\"));\r\n\t\t\tif (fontIndex != -1)\r\n\t\t\t{\r\n\t\t\t\treturn ((COSNumber) appearanceTokens.get(fontIndex - 1)).floatValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 0f;\r\n\t}",
"public int getMyFontSize() {\n return myFont.size; /*Fault:: return 5; */\n }",
"public void setTextSize(float textSize){\n Context context = getContext();\n Resources res;\n\n if(context == null){\n res = Resources.getSystem();\n }else{\n res = context.getResources();\n }\n\n setTextSizePx(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, textSize, res.getDisplayMetrics()));\n }",
"public int getFontSize()\n \t{\n \t\treturn 13;\n \t}",
"public float getTextSizePx() {\n return mPaint.getTextSize();\n }",
"public int getMediumFontSize() {\n\t\treturn 10;\n\t}",
"public void checkTextSize(){\n mShp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n String textSize = mShp.getString(\n getString(R.string.pref_textSize_key),\n getString(R.string.pref_textSize_default)\n );\n float size = Float.parseFloat(textSize);\n mTaleText.setTextSize(TypedValue.COMPLEX_UNIT_SP,size);\n }",
"public short getFontHeightInPoints()\n {\n return ( short ) (font.getFontHeight() / 20);\n }",
"private void calculateCharSize() {\n int charMaxAscent;\n int charLeading;\n FontMetrics fm = getFontMetrics(getFont());\n charWidth = -1; // !!! Does not seem to work: fm.getMaxAdvance();\n charHeight = fm.getHeight() + lineSpaceDelta;\n charMaxAscent = fm.getMaxAscent();\n fm.getMaxDescent();\n charLeading = fm.getLeading();\n baselineIndex = charMaxAscent + charLeading - 1;\n\n if (charWidth == -1) {\n int widths[] = fm.getWidths();\n for (int i=32; i<127; i++) {\n if (widths[i] > charWidth) {\n charWidth = widths[i];\n }\n }\n }\n }",
"public int fontSize() {\n\t\treturn fixedFontSize;\n\t}",
"public int getFontSize()\r\n {\r\n return myFontSize;\r\n }",
"double getFontSizeAdjustment() {\n return fontSizeAdjustment;\n }",
"public float getTextSize() {\n return mTextSize;\n }",
"public void adjustTextFontSize(View view) {\n if (this.minimumFontSizeInPixels >= FONT_SIZE_EPSILON && (view instanceof TextView)) {\n TextView textView = (TextView) view;\n float densityScale = view.getResources().getDisplayMetrics().density;\n if (densityScale <= 0.0f) {\n densityScale = DEFAULT_SHADOW_RADIUS;\n }\n int value = textView.getWidth() - (textView.getTotalPaddingLeft() + textView.getTotalPaddingRight());\n if (!(this.layoutParams == null || this.layoutParams.optionWidth == null || this.layoutParams.autoFillsWidth)) {\n value -= (int) Math.ceil((double) densityScale);\n }\n if (value > 0) {\n float viewContentWidth = (float) value;\n String text = null;\n if (textView.getText() != null) {\n text = textView.getText().toString();\n }\n if (text != null && text.length() > 0) {\n float previousFontSize = textView.getTextSize();\n textView.setTextSize(0, this.unscaledFontSizeInPixels);\n while (true) {\n float currentFontSize = textView.getTextSize();\n if (currentFontSize >= this.minimumFontSizeInPixels + FONT_SIZE_EPSILON) {\n TextPaint textPaint = textView.getPaint();\n if (textPaint == null) {\n break;\n }\n float textWidth = textPaint.measureText(text);\n if (textWidth <= viewContentWidth) {\n break;\n }\n textView.setTextSize(0, Math.max(Math.min((viewContentWidth / textWidth) * currentFontSize, currentFontSize - densityScale), this.minimumFontSizeInPixels));\n } else {\n break;\n }\n }\n if (Math.abs(textView.getTextSize() - previousFontSize) >= FONT_SIZE_EPSILON) {\n final View finalView = view;\n view.post(new Runnable() {\n public void run() {\n finalView.requestLayout();\n }\n });\n }\n }\n }\n }\n }",
"@Override\r\n\tpublic int getFontSize() {\n\t\treturn 0;\r\n\t}",
"public final int getFontSize() {\n return fontSize;\n }",
"public float getFontSize() {\n return fontSize;\n }",
"public short getFontHeight()\n {\n return font.getFontHeight();\n }",
"public static int getAreaButtonTextSize(Context context, Typeface typeface) {\n DisplayMetrics displayMetrics = context.getResources()\n .getDisplayMetrics();\n // int deviceWidth = displayMetrics.widthPixels;\n int deviceWidth = displayMetrics.widthPixels;\n\n return determineTextSize(typeface, (int) (0.23f * (.14f * deviceWidth)));\n\n }",
"public Float getHightlightedTextSize() {\n if (mHightlightedTextSize != null)\n return mHightlightedTextSize;\n return getTextSize();\n }",
"private float getFontHeight(Paint paint) {\n Rect rect = new Rect();\n paint.getTextBounds(\"1\", 0, 1, rect);\n return rect.height();\n }",
"private int calculateFontSize(ImageProcessor processor, double ratioHeightForLabel) {\n // Converts sumSizes into the average size in each dimension\n sumSizes.scale(1.0 / labels.size());\n FontSizeCalculator calculator = new FontSizeCalculator(processor, labels.stream());\n return calculator.calculateOptimalFontSize(sumSizes, ratioHeightForLabel);\n }",
"public short getFontHeightInPoints() {\n\t\treturn fontHeightInPoints;\n\t}",
"public Set<Integer> getFontSizes(String name) {\n return getBitmapFonts(name).keySet();\n }",
"private int calculateTextWidth(String[] lines, FontMetrics fm)\r\n {\r\n int numChars = 0;\r\n String maxString = \"\";\r\n // calculate the number of characters in the line\r\n for (String lineNo : lines)\r\n {\r\n if (numChars < lineNo.length())\r\n {\r\n numChars = lineNo.length();\r\n maxString = lineNo;\r\n }\r\n }\r\n // width will be the numChars * text metrics for the font\r\n int maxWidth = fm.stringWidth(maxString);\r\n return maxWidth;\r\n }",
"private int computeFontSize (double dependencyCount, double maxDependencyCount)\n {\n return (int) (MIN_FONT_SIZE + (dependencyCount / maxDependencyCount) * (MAX_FONT_SIZE - MIN_FONT_SIZE));\n }",
"public void setTextSize(float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mTextSize = Utils.convertDpToPixel(size);\n }",
"public String getFontSizeText()\r\n\t{\r\n\t\treturn fontSizeTextField.getText(); // return the text in the Font Size text field\r\n\t}",
"private Bounds textWidth(double size, SensorValue sensorValue)\r\n\t{\n\t\t\r\n\t\tString showValue = sensorValue.getCurrentValue() + \" \" + sensorValue.getMeasurementUnit();\r\n\t\t\r\n\t\tif(fontBase == null)\r\n\t\t\tfontBase = new Font(\"Verdana\", 12);\r\n\t\tText text = new Text(showValue);\r\n\t\tFont font = Font.font(fontBase.getFamily(), size);\r\n text.setFont(font);\r\n return text.getBoundsInLocal();\r\n\t}",
"public native final String fontSize() /*-{\n\t\treturn this.fontSize;\n\t}-*/;",
"private int getNormalTextSizeWeight() {\n return Integer.parseInt(getMessage(\"report.tabular.normal.text.size.weight\"));\n }",
"public float getTextSize() {\n return mTextContainer.getTextSize();\n }",
"public static float textHeight(BitmapFont fntIn, String sIn){\n return new GlyphLayout(fntIn,sIn).height;\n }",
"public float getFontHeight(float fontSize) {\n Font f = getNormalFont(fontSize);\n FontMetrics fm = svgGenerator.getFontMetrics(f);\n return fm.getHeight();\n }",
"private void setDefaultTextSize() {\n this.text_size = (int) default_text_size;\n }",
"public int getHeight() {\r\n if ( fontMetrics != null ) {\r\n return fontMetrics.getHeight() + 6;\r\n } else {\r\n return 6;\r\n }\r\n }",
"public static int SPgetMessageTextSizePercentage(Context context){\n SharedPreferences pref = context.getSharedPreferences(\"DEFAULTS\", Context.MODE_PRIVATE);\n return pref.getInt(\"messageTextSize\", 70);\n }",
"private void setRawTextSize(float f) {\n if (f != this.mTextView.getPaint().getTextSize()) {\n this.mTextView.getPaint().setTextSize(f);\n boolean bl = false;\n if (Build.VERSION.SDK_INT >= 18) {\n bl = this.mTextView.isInLayout();\n }\n if (this.mTextView.getLayout() != null) {\n this.mNeedsAutoSizeText = false;\n try {\n Method method = this.getTextViewMethod(\"nullLayouts\");\n if (method != null) {\n method.invoke((Object)this.mTextView, new Object[0]);\n }\n }\n catch (Exception exception) {\n Log.w((String)\"ACTVAutoSizeHelper\", (String)\"Failed to invoke TextView#nullLayouts() method\", (Throwable)exception);\n }\n if (!bl) {\n this.mTextView.requestLayout();\n } else {\n this.mTextView.forceLayout();\n }\n this.mTextView.invalidate();\n }\n }\n }",
"public static float textWidth(BitmapFont fntIn, String sIn){\n return new GlyphLayout(fntIn,sIn).width;\n }",
"public void setTextViewSize(float px) {\r\n\t\tfloat scaledDensity = getResources().getDisplayMetrics().scaledDensity;\r\n\t\tint sp = (int) (px / scaledDensity);\r\n\t\tsetTextSize(sp);\r\n\t}",
"public String getFontSize () {\n\t\treturn fontSizeTextField.getText();\n\t}",
"public int scaleForPixelHeight(int size) {\r\n\t\tif (!bitmapped && !FreeType.setPixelSizes(face, 0, size))\r\n\t\t\tthrow new GdxRuntimeException(\"Couldn't set size for font\");\r\n\t\tSizeMetrics fontMetrics = face.getSize().getMetrics();\r\n\t\tint ascent = FreeType.toInt(fontMetrics.getAscender());\r\n\t\tint descent = FreeType.toInt(fontMetrics.getDescender());\r\n\t\treturn size * size / (ascent - descent);\r\n\t}",
"void setFontScale(\n float s);",
"public static int getWorkspaceIconTextSizeInPx(Context context) {\n if (mWorkspaceIconTextSize < 0) {\n mWorkspaceIconTextSize = PrefUtils.getIntPref(context, PrefConstants.KEY_ICON_TEXT_SIZE, -1);\n if (mWorkspaceIconTextSize < 0) {\n mWorkspaceIconTextSize = getDefaultWorkspaceIconTextSizeInPx(context);\n }\n }\n return mWorkspaceIconTextSize;\n }",
"public void setTextSize() {\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n }",
"public short getFontHeight() {\n\t\treturn this.fontHeight;\n\t}",
"private float AdjustLeading(char word, int fontSize) {\n switch(word) {\n // small size\n case 'a':\n fontSize /= 3;\n break;\n case 'b':\n fontSize /= 3;\n break;\n case 'c':\n fontSize /= 3;\n break;\n case 'd':\n fontSize /= 3;\n break;\n case 'e':\n fontSize /= 3;\n break;\n case 'f':\n fontSize /= 2;\n break;\n case 'g':\n fontSize /= 3;\n break;\n case 'h':\n fontSize /= 3;\n break;\n case 'i':\n fontSize /= 2;\n break;\n case 'j':\n fontSize /= 2;\n break;\n case 'k':\n fontSize /= 3;\n break;\n case 'l':\n fontSize /= 2;\n break;\n case 'm':\n return 0.0f;\n case 'n':\n fontSize /= 3;\n break;\n case 'o':\n fontSize /= 3;\n break;\n case 'p':\n fontSize /= 3;\n break;\n case 'q':\n fontSize /= 3;\n break;\n case 'r':\n fontSize /= 2;\n break;\n case 's':\n fontSize /= 3;\n break;\n case 't':\n fontSize /= 2;\n break;\n case 'u':\n fontSize /= 3;\n break;\n case 'v':\n fontSize /= 3;\n break;\n case 'w':\n return 0.0f;\n case 'x':\n fontSize /= 3;\n break;\n case 'y':\n fontSize /= 3;\n break;\n case 'z':\n fontSize /= 3;\n break;\n // big size\n case 'A':\n fontSize /= 4;\n break;\n case 'B':\n fontSize /= 4;\n break;\n case 'C':\n fontSize /= 4;\n break;\n case 'D':\n fontSize /= 4;\n break;\n case 'E':\n fontSize /= 4;\n break;\n case 'F':\n fontSize /= 4;\n break;\n case 'G':\n fontSize /= 4;\n break;\n case 'H':\n fontSize /= 5;\n break;\n case 'I':\n fontSize /= 2;\n break;\n case 'J':\n fontSize /= 4;\n break;\n case 'K':\n fontSize /= 4;\n break;\n case 'L':\n fontSize /= 3;\n break;\n case 'M':\n return 0.0f;\n case 'N':\n fontSize /= 4;\n break;\n case 'O':\n fontSize /= 4;\n break;\n case 'P':\n fontSize /= 4;\n break;\n case 'Q':\n fontSize /= 4;\n break;\n case 'R':\n fontSize /= 4;\n break;\n case 'S':\n fontSize /= 4;\n break;\n case 'T':\n fontSize /= 4;\n break;\n case 'U':\n fontSize /= 4;\n break;\n case 'V':\n fontSize /= 4;\n break;\n case 'W':\n return 0.0f;\n case 'X':\n fontSize /= 4;\n break;\n case 'Y':\n fontSize /= 4;\n break;\n case 'Z':\n fontSize /= 4;\n break;\n default: // space-X\n return fontSize/2;\n }\n return fontSize;\n }",
"@Override\n public String getPreviewString(Object value) {\n assert value instanceof Font;\n Font fontVal = (Font) value;\n if (isIndeterminate()) {\n return \"-\"; //NOI18N\n } else {\n String size = EditorUtils.valAsStr(fontVal.getSize());\n return fontVal.getFamily() + \" \" + size + \"px\" //NOI18N\n + (!fontVal.getName().equals(fontVal.getFamily()) && !\"Regular\".equals(fontVal.getStyle()) ? //NOI18N\n \" (\" + fontVal.getStyle() + \")\" : \"\"); //NOI18N\n }\n }",
"public short getNumberOfFonts() {\n\t\treturn 0;\n\t}",
"public void adjustTextSize(String str) {\n int i;\n int i2 = this.mMinTextSize;\n int height = (this.mEditText.getHeight() - this.mEditText.getCompoundPaddingBottom()) - this.mEditText.getCompoundPaddingTop();\n int width = (this.mEditText.getWidth() - this.mEditText.getCompoundPaddingLeft()) - this.mEditText.getCompoundPaddingRight();\n this.mWidthLimit = width;\n this.mAvailableSpaceRect.right = (float) width;\n this.mAvailableSpaceRect.bottom = (float) height;\n if (!this.mIsMultiLine || Math.min(getRect().width(), getRect().height()) <= 40.0f) {\n i = binarySearch(i2, this.mMaxTextSize, this.mSizeTester, this.mAvailableSpaceRect);\n } else {\n i = 40;\n }\n this.mEditText.setTextSize(0, (float) i);\n }",
"private void getFontSizeShared() {\n\t\t // get shared preference\n\t\t SharedPreferences readeShared = getSharedPreferences(\"fontSize\" , MODE_PRIVATE);\n\n\t\t if ( readeShared != null ) {\n\t\t\t String size = readeShared.getString(\"size\" , null);\n\t\t\t if ( size != null && size.length() > 0 ) {\n\t\t\t\t\tif ( size.equals(\"s\") ) {\n\n\t\t\t\t\t\t setFontSize(18);\n\n\t\t\t\t\t} else if ( size.equals(\"m\") ) {\n\n\t\t\t\t\t\t setFontSize(20);\n\n\t\t\t\t\t} else if ( size.equals(\"l\") ) {\n\n\t\t\t\t\t\t setFontSize(24);\n\t\t\t\t\t}\n\t\t\t }\n\t\t }\n\t }",
"private void checkPaintMeasures() {\r\n\t\t\r\n\t\t//Check from change\r\n\t\tint sizeNow = fontSize;\r\n\t\tif(sizeNow == sizeThen)return;\r\n\t\tsizeThen = sizeNow;\r\n\t\t\r\n\t\t//Set units\r\n\t\tmarkWidth = (double) sizeNow / 15;\r\n\t\tsizePaintLength = p.textLength(text, surface, sizeNow, bold, italic);\r\n\t\tif (viewPaintLength != viewPaintLength) viewPaintLength = sizePaintLength;\r\n\t}",
"@Override\n public void changeFontSize(int i) {\n lyricsTV.setTextSize((float) i);\n PreferencesManager pm = PreferencesManager.getInstance();\n pm.setFontSize(i);\n }",
"private void initLrcFontSize() {\n int screeHeight=getResources().getDisplayMetrics().heightPixels;\n int marginLeft=(int)(1.0*screeHeight/9);\n LrcView.defaultTextSize=DensityUtil.px2sp(this, (marginLeft));//设置默认的歌词大小\n LrcView.defaultDividerHeight=marginLeft/2;\n }",
"private void m13085a() {\n DisplayMetrics displayMetrics = getResources().getDisplayMetrics();\n this.f12281d = new Paint();\n this.f12281d.setColor(this.f12278a);\n this.f12281d.setAntiAlias(true);\n this.f12281d.setTextSize(displayMetrics.scaledDensity * ((float) this.f12279b));\n }",
"private void calculateLineHeight() {\n\tGC gc = getGC();\n\tlineEndSpaceWidth = gc.stringExtent(\" \").x;\t\n\t\n\t// don't assume that bold and normal fonts have the same height\n\t// fixes bug 41773\n\tFont originalFont = gc.getFont();\n\tFontMetrics metrics = gc.getFontMetrics();\n\tascent = Math.max(ascent, metrics.getAscent() + metrics.getLeading());\n\tdescent = Math.max(descent, metrics.getDescent());\n\taverageCharWidth = Math.max(averageCharWidth, metrics.getAverageCharWidth());\n\tgc.setFont(getFont(SWT.BOLD));\n\tmetrics = gc.getFontMetrics();\n\tascent = Math.max(ascent, metrics.getAscent() + metrics.getLeading());\n\tdescent = Math.max(descent, metrics.getDescent());\n\taverageCharWidth = Math.max(averageCharWidth, metrics.getAverageCharWidth());\n\tgc.setFont(getFont(SWT.ITALIC));\n\tmetrics = gc.getFontMetrics();\n\tascent = Math.max(ascent, metrics.getAscent() + metrics.getLeading());\n\tdescent = Math.max(descent, metrics.getDescent());\n\taverageCharWidth = Math.max(averageCharWidth, metrics.getAverageCharWidth());\n\tgc.setFont(getFont(SWT.BOLD | SWT.ITALIC));\n\tmetrics = gc.getFontMetrics();\n\tascent = Math.max(ascent, metrics.getAscent() + metrics.getLeading());\n\tdescent = Math.max(descent, metrics.getDescent());\n\taverageCharWidth = Math.max(averageCharWidth, metrics.getAverageCharWidth());\n\tgc.setFont(originalFont);\n\tdisposeGC(gc);\n\t\n\t// clear the font cache\n\tif (boldFont != null) boldFont.dispose();\n\tif (italicFont != null) italicFont.dispose();\n\tif (boldItalicFont != null) boldItalicFont.dispose();\n\tboldFont = italicFont = boldItalicFont = null;\n}",
"public void setTextSizePx(float size) {\n mPaint.setTextSize(size);\n mSpaceWidth = mPaint.measureText(\" \");\n invalidate();\n }",
"short getPaperSize();",
"public int getTitleFontSize() {\n\t\treturn this.title_fontsize;\n\t}",
"public int getPreferredWidth() \n {\n Font font = Font.getDefault().derive( Font.BOLD, FONT_SIZE );\n return font.getAdvance( m_text ) + HMARGIN;\n }",
"public FontMetrics getFontMetrics(Font f)\r\n\t{\r\n\t\treturn _g2.getFontMetrics();\r\n\t}",
"public int getWidth() {\r\n if ( fontMetrics != null && lbl != null ) {\r\n return fontMetrics.stringWidth(lbl) + 12; \r\n } else {\r\n return 10;\r\n }\r\n }",
"public void updateText()\r\n\t{\r\n\t\tdouble smallest = Math.min(menu.getController().getWidth(), menu.getController().getHeight());\r\n\t\tdouble equivalent12 = smallest/55;//Equivalent of 12 point font on base dimensions\r\n\t\t\r\n\t\ttextRenderer = new TextRenderer(new Font(fontName, Font.PLAIN, (int)(equivalent12*size)), true, true);\r\n\t}",
"private int measureWidth(int measureSpec) {\n\n int result = 0;\n int specMode = MeasureSpec.getMode(measureSpec);\n int specSize = MeasureSpec.getSize(measureSpec);\n\n if (specMode == MeasureSpec.EXACTLY) {\n // We were told how big to be\n result = specSize;\n } else {\n // Measure the text\n result = viewWidth;\n\n }\n\n return result;\n }",
"public int[] verifyFontCanvasSize(Graphics2D g2d, String text, int textWidth, int nodeWidth, int fontSize) {\n while (textWidth >= (nodeWidth - 2)) {\n fontSize = fontSize - 1;\n//\t\tcanvas:attrFont(fontFamily, fontSize, fontStyle);\n g2d.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, fontSize));\n textWidth = (int) Math.round(g2d.getFontMetrics().getStringBounds(text, g2d).getCenterX());\n// labelWidth = canvas:measureText(label);\n }\n return new int[]{textWidth, fontSize};\n }",
"public int getStringWidth(String text);",
"public float getExampleDimension() {\n return mTextSize;\n }",
"public int getTextLabelFontSize() {\n\t\treturn mTextLabelFontSize;\n\t}",
"public int getSwitchTextSize(){\n return switchTextSize;\n }",
"private static void setTextSizeForWidth(Paint paint, String text, float desiredWidth) {\n\n // Pick a reasonably large value for the test. Larger values produce\n // more accurate results, but may cause problems with hardware\n // acceleration. But there are workarounds for that, too; refer to\n // http://stackoverflow.com/questions/6253528/font-size-too-large-to-fit-in-cache\n final float defaultTextSize = 44f;\n paint.setTextSize(defaultTextSize);\n Rect textBounds = new Rect();\n paint.getTextBounds(text, 0, text.length(), textBounds);\n // Calculate the desired size as a proportion of our testTextSize.\n if (textBounds.width() > desiredWidth) {\n float desiredTextSize = defaultTextSize * (desiredWidth / textBounds.width());\n\n // Set the paint for that size.\n paint.setTextSize(desiredTextSize);\n }\n\n }",
"public void setFontSize(float fontSize){\n this.fontSize = fontSize;\n }",
"static FontMetrics pickFont(Graphics2D g2,\n String longString,\n int xSpace) \n\t{\n\t Font font = g2.getFont();\n\t String name = font.getName();\n\t int style = font.getStyle();\n\t\tg2.setFont(font = new Font(name, style, minFontSize+20));\n\t do\n\t\t{\n\t\t\tFontMetrics fontMetrics = g2.getFontMetrics();\n\t \tif ( (fontMetrics.getHeight() <= maxCharHeight)\n \t\t && (fontMetrics.stringWidth(longString)) <= xSpace)\n\t\t\tbreak;\n\t\t\tint size=g2.getFont().getSize();\n\t\t\tg2.setFont(font = new Font(name, style, size-1));\n \t} while (g2.getFont().getSize() > minFontSize);\n\n\t return g2.getFontMetrics();\n\t}",
"String getWidth();",
"String getWidth();",
"@Test\n public void Test_FontList_Size() throws Exception {\n int actual_value = 0;\n int expected_value = 2;\n\n PdfResource resrc = new PdfResource();\n resrc.addFont(new PdfFont(PdfFont.HELVETICA, false, false));\n resrc.addFont(new PdfFont(PdfFont.COURIER, true, true));\n\n actual_value = resrc.getFontList().size();\n\n assertThat(actual_value, equalTo(expected_value));\n }",
"public static String humanize (long size)\n {\n\n long b = 1;\n long Kb = b * 1024;\n long Mb = Kb * 1024;\n long Gb = Mb * 1024;\n long Tb = Gb * 1024;\n long Pb = Tb * 1024;\n long Eb = Pb * 1024;\n\n if (size < Kb) return format2( size ) + \" byte\";\n if (size >= Kb && size < Mb) return format2((double)size / Kb) + \" Kb\";\n if (size >= Mb && size < Gb) return format2((double)size / Mb) + \" Mb\";\n if (size >= Gb && size < Tb) return format2((double)size / Gb) + \" Gb\";\n if (size >= Tb && size < Pb) return format2((double)size / Tb) + \" Tb\";\n if (size >= Pb && size < Eb) return format2((double)size / Pb) + \" Pb\";\n if (size >= Eb) return format2((double)size / Eb) + \" Eb\";\n\n return \"???\";\n }",
"private void improveButtonSize(final FontMetrics fontMetrics) {\n if (fontMetrics == null) {\n return;\n }\n adjustedButtonSize = true;\n int textHeight = fontMetrics.getHeight();\n System.err.println(\"button text height:\" + textHeight);\n double heightAdjustment = (double) textHeight / DEFAULT_TEXT_HEIGHT;\n int maxCharsWidth = 0;\n for (int i = 0; i < LONG_BUTTON_LINES.length; i++) {\n maxCharsWidth =\n Math.max(maxCharsWidth, fontMetrics.charsWidth(\n LONG_BUTTON_LINES[i].toCharArray(), 0, LONG_BUTTON_LINES[i].length()));\n }\n System.err.println(\"button maximum characters width:\" + maxCharsWidth);\n double widthAdjustment = (double) maxCharsWidth / DEFAULT_MAX_CHARS_WIDTH;\n dimButton.setSize(7 * checkboxHeight * widthAdjustment, 2 * checkboxHeight\n * heightAdjustment);\n }",
"protected int getNamesWidth(FontMetrics metrics) {\r\n int maxWidth = 0;\r\n for (int i=0; i<experiment.getNumberOfSamples(); i++) {\r\n maxWidth = Math.max(maxWidth, metrics.stringWidth(data.getSampleName(experiment.getSampleIndex(i))));\r\n }\r\n return maxWidth;\r\n }",
"public void setHightlightedTextSize(Float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mHightlightedTextSize = Utils.convertDpToPixel(size);\n\n }",
"private void setTextSize(ViewHolder holder) {\n // Get the text size string from SharedPreferences and check for the value associated with the key\n String textSize = sharedPrefs.getString(\n mContext.getString(R.string.settings_text_size_key),\n mContext.getString(R.string.settings_text_size_default));\n\n // Change text size of TextView by using the user's stored preferences\n if(textSize.equals(mContext.getString(R.string.settings_text_size_medium_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp22));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n } else if(textSize.equals(mContext.getString(R.string.settings_text_size_small_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp20));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n } else if(textSize.equals(mContext.getString(R.string.settings_text_size_large_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp24));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp18));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n }\n }",
"public void setFontSize(float fs) {\n\t\tif (fs != fontSize) {\n\t\t\tfontSize = fs;\n\t\t\treload();\n\t\t}\n\t}",
"public final /* synthetic */ void mo99828e() {\n int measuredWidth = this.f104232v.getMeasuredWidth();\n this.f104233w.setMaxWidth((C23482j.m77098b(this) - (measuredWidth * 2)) - ((int) C9738o.m28708b((Context) this, 60.0f)));\n this.f104232v.setVisibility(8);\n this.f104232v.setTextSize(1, 17.0f);\n }",
"static int size(FileFormat fileFormat)\n\t\t{\n\t\t\treturn fileFormat.fUnicode ? SIZE_UNICODE : SIZE_ANSI;\n\t\t}",
"public int getLabelTextSize(){\n return labelTextSize;\n }",
"public int getPreferredHeight() \n { \n Font font = Font.getDefault().derive( Font.BOLD, FONT_SIZE );\n return font.getHeight() + VMARGIN;\n }",
"public static String getFormattedSize(long size) {\r\n float localSize = (float)(size / Math.pow(2, 30));\r\n Formatter formatter = new Formatter();\r\n if (localSize > 1) {\r\n return formatter.format(\"%.2fG\", Math.round(localSize * 100) / 100f).toString();\r\n } else if ((localSize = (float)(size / Math.pow(2, 20))) > 1) {\r\n return formatter.format(\"%.2fM\", Math.round(localSize * 100) / 100f).toString();\r\n } else if ((localSize = (float)(size / Math.pow(2, 10))) > 1) {\r\n return formatter.format(\"%.2fK\", Math.round(localSize * 100) / 100f).toString();\r\n } else {\r\n return formatter.format(\"%dB\", size).toString();\r\n }\r\n }",
"public int[] getSuggestedScreenSize();",
"private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f25273T)) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(this.f25273T)));\n } else if (!TextUtils.isEmpty(this.f25302q)) {\n this.f25306u = (int) this.f25288c.measureText(this.f25302q);\n } else {\n for (Object valueOf : this.f25301p) {\n this.f25306u = Math.max(this.f25306u, (int) this.f25288c.measureText(String.valueOf(valueOf)));\n }\n }\n FontMetrics fontMetrics = this.f25288c.getFontMetrics();\n this.f25307v = (int) (fontMetrics.bottom - fontMetrics.top);\n }",
"int getTextStrokeWidth();",
"public float getFontWeight() {\n Object value = library.getObject(entries, FONT_WEIGHT);\n if (value instanceof Number) {\n return ((Number) value).floatValue();\n }\n return 0.0f;\n }",
"public int getButtonTextSize(){\n return buttonTextSize;\n }",
"private void updateFontSet() {\n if (!isBigFontSet()) {\n UIFontUtils.initFontDefaults(UIManager.getDefaults(), null);\n } else {\n// <snip> Install sscaled font\n FontPolicy windowsPolicy = FontPolicies.getDefaultWindowsPolicy();\n FontSet fontSet = windowsPolicy.getFontSet(null, UIManager\n .getLookAndFeelDefaults());\n WrapperFontSet scaled = new WrapperFontSet(fontSet, 5);\n UIFontUtils.initFontDefaults(UIManager.getDefaults(), scaled);\n// </snip>\n }\n updateLookAndFeel();\n }",
"@Override\n public Dimension measureText(String text) {\n return graphicsEnvironmentImpl.measureText(canvas, text);\n }",
"public short getUnitsPerEm() throws PDFNetException {\n/* 843 */ return GetUnitsPerEm(this.a);\n/* */ }"
] | [
"0.7470713",
"0.73779166",
"0.7142127",
"0.6919711",
"0.6906408",
"0.6892034",
"0.68852466",
"0.6862815",
"0.68244874",
"0.6808746",
"0.6686933",
"0.66774446",
"0.66736394",
"0.6605325",
"0.6546584",
"0.650483",
"0.64807945",
"0.64797235",
"0.64729476",
"0.6458243",
"0.6402216",
"0.63980895",
"0.63920426",
"0.6381345",
"0.637672",
"0.6347789",
"0.6344254",
"0.6312802",
"0.6286552",
"0.6250855",
"0.6246775",
"0.6239103",
"0.6238168",
"0.623463",
"0.6194647",
"0.6184488",
"0.6180614",
"0.61799765",
"0.6156613",
"0.6135271",
"0.6125711",
"0.61229503",
"0.61216635",
"0.6096808",
"0.6094542",
"0.6094009",
"0.60805255",
"0.60397404",
"0.60371435",
"0.6024297",
"0.59772563",
"0.5960812",
"0.59447914",
"0.5924231",
"0.58987564",
"0.58939713",
"0.5871248",
"0.58487207",
"0.5847768",
"0.5840754",
"0.5817957",
"0.5811669",
"0.5806795",
"0.5789108",
"0.57814837",
"0.57558495",
"0.5731441",
"0.57148564",
"0.5709647",
"0.5693066",
"0.56912166",
"0.5688393",
"0.5684908",
"0.5683838",
"0.56732553",
"0.5672054",
"0.5641706",
"0.5630631",
"0.562984",
"0.562984",
"0.5624635",
"0.56124115",
"0.5612065",
"0.55838627",
"0.5583083",
"0.55814344",
"0.5567455",
"0.55491596",
"0.55367225",
"0.55283594",
"0.5518116",
"0.55152893",
"0.5510963",
"0.55102134",
"0.55038023",
"0.5500089",
"0.5493832",
"0.5493557",
"0.54844594",
"0.5483709"
] | 0.6176634 | 38 |
TODO override onDestroy, and stop the background music. | @Override
public void onDestroy() {
super.onDestroy();
music.release();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif (mMediaPlayer.isPlaying()) {\n\t\t\tmMediaPlayer.stop();\n\t\t}\n\t}",
"@Override\n protected void onStop() {\n super.onStop();\n stopMusic();\n }",
"public void stopBackgroundMusic()\n {\n background.stop();\n }",
"@Override\n protected void onDestroy() {\n Log.v(\"MediaPlayer\", \"onDestroy\");\n super.onDestroy();\n if (mp.isPlaying()) {\n mp.stop();\n }\n mp.release();\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tMediaPlayUtil.getInstance().stop();\n\t\tMediaPlayUtil.getInstance().release();\n\t}",
"@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tMediaPlayUtil.getInstance().release();\n\t\tMediaPlayUtil.getInstance().stop();\n\n\t}",
"@Override\n public void onDestroy() {\n //super.onDestroy();\n Utils.showToast(this, \"service done\");\n /*if(mediaPlayer.isPlaying()) {\n mediaPlayer.stop();\n }\n mediaPlayer.release();*/\n }",
"@Override\n public void onDestroy() {\n unregisterReceiver(mNoisyAudioStreamReceiver);\n\n // Cancel our Notification\n mNotificationManager.cancel(NotificationTarget.NOTIFICATION_ID);\n\n // Set preference to indication not playing.\n PreferenceManager.getDefaultSharedPreferences(getApplicationContext())\n .edit()\n .putBoolean(MainActivity.PREF_IS_PLAYING, false)\n .commit();\n\n super.onDestroy();\n }",
"@Override\n public void onDestroy() {\n super.onDestroy();\n releasePlayer();\n mMediaSession.setActive(false);\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n \tmediaplayer.release();\n\t}",
"@Override\n public void onDestroy(){\n super.onDestroy();\n releaseMediaPlayerResources();\n }",
"@Override\n protected void onStop() {\n super.onStop();\n // when the activity is stopped, release the media player resources because we won't\n // be playing any more sounds.\n releaseMediaPlayer();\n }",
"@Override\n protected void onStop() {\n super.onStop();\n releaseMediaPlayer();\n }",
"@Override\n protected void onDestroy() {\n \tsuper.onDestroy();\n \t\n \tif(mediaPlayer!=null){\n \t\t\n \t\tmediaPlayer.stop();\n \t\tmediaPlayer=null;\n \t}\n }",
"@Override\n public void onDestroy() {\n super.onDestroy();\n // if (PlayerService.myMediaPlayer != null) {\n // PlayerService.myMediaPlayer.stop();\n // PlayerService.myMediaPlayer.release();\n // PlayerService.myMediaPlayer = null;\n // }\n Log.d(TAG,\"MainActivity destroyed\");\n }",
"@Override\n public void onDestroy(){\n\tandroid.widget.Toast.makeText(getApplicationContext(), \"done \", android.widget.Toast.LENGTH_SHORT).show();\n\tmediaPlayer.release();\n\tmediaPlayer = null;\n\tsuper.onDestroy();\n }",
"@Override\n public void onDestroy() {\n super.onDestroy();\n releasePlayer();\n }",
"@Override\n protected void onDestroy() {\n Spotify.destroyPlayer(this);\n super.onDestroy();\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n if(player != null){\n\n player.stop();\n }\n }",
"@Override\n public void onDestroy() {\n if (mediaPlayer != null)\n mediaPlayer.release();\n\n super.onDestroy();\n // unregister receiver.\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tstop();\n\t}",
"@Override\n protected void onStop() {\n mediaPlayer.release();\n super.onStop();\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tbookCache.clear();\n\n stopService(new Intent(this , AudioService.class));\n\n Global.RemoveTmp();\n\t}",
"@Override\r\n public void onDestroy() {\r\n super.onDestroy();\r\n if (toggleButton1==true) {\r\n Intent intent = new Intent(MainActivity.this, MusicService.class);\r\n stopService(intent);\r\n }\r\n }",
"protected void onDestroy() {\n\t\t if (com.example.main_project.MainActivity.tts!=null) {\n\t\tcom.example.main_project.MainActivity.tts.stop();\n\n\n\t\tcom.example.main_project.MainActivity.tts.shutdown();\n\t\t}\n\t\t super.onDestroy();\n\t\t}",
"@Override\n protected void onPause()\n {\n super.onPause();\n setSound.pauseMusic();\n }",
"@Override\n public void onDestroy() {\n super.onDestroy();\n ytplayer.release();\n }",
"@Override\n public void onPause() {\n super.onPause();\n MusicManager.start(this, false);\n }",
"@Override\n protected void onDestroy() {\n unBoundAudioService();\n super.onDestroy();\n }",
"@Override\n public void onDestroy() {\n super.onDestroy();\n final Intent audioEffectsIntent = new Intent(\n AudioEffect.ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION);\n audioEffectsIntent.putExtra(AudioEffect.EXTRA_AUDIO_SESSION, getAudioSessionId());\n audioEffectsIntent.putExtra(AudioEffect.EXTRA_PACKAGE_NAME, getPackageName());\n sendBroadcast(audioEffectsIntent);\n mPlayerHandler.removeCallbacksAndMessages(null);\n mPlayer.release();\n mPlayer = null;\n mAudioManager.abandonAudioFocus(mOnAudioFocusChangeListener);\n mPlayerHandler.removeCallbacksAndMessages(null);\n mWakeLock.release();\n }",
"public void stop() {\n\t\tmusic.stop();\n\t}",
"@Override\n protected void onDestroy() {\n if (m_tts!=null) {\n m_tts.stop();\n m_tts.shutdown();\n }\n super.onDestroy();\n }",
"public void stop()\n {\n if(AudioDetector.getInstance().isNoAudio() || musicPlayer == null)\n {\n return;\n }\n\n\n musicPlayer.stop();\n }",
"@Override\r\n public void hide() {\r\n bgMusic.pause();\r\n }",
"@Override\n\tpublic void onDestroy() {\n\t\ttelephonyManager.listen(phoneStateListener, PhoneStateListener.LISTEN_NONE); // Stop listen for telephony events\n\t\tnotificationManager.cancel(NOTIFICATION_ID);\n\t\tunregisterReceiver(broadcastReceiver); // Disable broadcast receiver\n\t\t\n\t\tSharedPreferences.Editor editor = preferences.edit();\n\t\teditor.putInt(Preferences.PREFERENCE_PLAY_MODE, playMode);\n\t\tif(bassBoostAvailable) {\n\t\t\teditor.putBoolean(Preferences.PREFERENCE_BASSBOOST, getBassBoostEnabled());\n\t\t\teditor.putInt(Preferences.PREFERENCE_BASSBOOSTSTRENGTH, getBassBoostStrength());\n\t\t} else {\n\t\t\teditor.remove(Preferences.PREFERENCE_BASSBOOST);\n\t\t\teditor.remove(Preferences.PREFERENCE_BASSBOOSTSTRENGTH);\n\t\t}\n\t\teditor.putBoolean(Preferences.PREFERENCE_SHAKEENABLED, isShakeEnabled());\n\t\tif(currentPlayingItem!=null) {\n\t\t\tif(currentPlayingItem instanceof BrowserSong) {\n\t\t\t\teditor.putString(Preferences.PREFERENCE_LASTPLAYINGSONG, currentPlayingItem.getPlayableUri());\n\t\t\t\teditor.putInt(Preferences.PREFERENCE_LASTSONGPOSITION, getCurrentPosition());\n\t\t\t\teditor.putLong(Preferences.PREFERENCE_LASTPLAYINGSONGFROMPLAYLISTID, -1);\n\t\t\t} else if(currentPlayingItem instanceof PlaylistSong) {\n\t\t\t\teditor.putString(Preferences.PREFERENCE_LASTPLAYINGSONG, currentPlayingItem.getPlayableUri());\n\t\t\t\teditor.putInt(Preferences.PREFERENCE_LASTSONGPOSITION, getCurrentPosition());\n\t\t\t\teditor.putLong(Preferences.PREFERENCE_LASTPLAYINGSONGFROMPLAYLISTID, ((PlaylistSong)currentPlayingItem).getId());\n\t\t\t} else {\n\t\t\t\teditor.putString(Preferences.PREFERENCE_LASTPLAYINGSONG, null);\n\t\t\t\teditor.putLong(Preferences.PREFERENCE_LASTPLAYINGSONGFROMPLAYLISTID, -1);\n\t\t\t}\n\t\t} else {\n\t\t\teditor.putString(Preferences.PREFERENCE_LASTPLAYINGSONG, null);\n\t\t\teditor.putLong(Preferences.PREFERENCE_LASTPLAYINGSONGFROMPLAYLISTID, -1);\n\t\t}\n\n\t\tBrowserDirectory currentDir = ((MusicPlayerApplication)getApplication()).getCurrentDirectory();\n\t\tif(currentDir!=null) editor.putString(Preferences.PREFERENCE_LASTDIRECTORY, currentDir.getDirectory().getAbsolutePath());\n\t\teditor.apply();\n\t\t\n\t\taudioManager.unregisterRemoteControlClient(remoteControlClient);\n\t\taudioManager.unregisterMediaButtonEventReceiver(mediaButtonReceiverComponent);\n\t\taudioManager.abandonAudioFocus(null);\n\t\tshakeListener.disable();\n\t\tmediaPlayer.release();\n\t\tstopForeground(true);\n\t\t\n\t\twakeLockRelease(); // Just to be sure the wakelock has been released! ;-)\n\t}",
"public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n mTrackList.clear();\n\n if (isFinishing()) {\n unbindService(serviceConnection);\n mIsBound = false;\n mPlayerService.stopSelf();\n }\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n if (mediaPlayer != null){\n setViewOnFinish();\n mediaPlayer.release();\n }\n\n Intent intent = new Intent(this, VoIpCallDetection.class);\n stopService(intent);\n log(\"VoIpCallDetection Service Stopped.\");\n }",
"@Override\r\n public void onPause() {\r\n super.onPause();\r\n Intent intent = new Intent(MainActivity.this, MusicService.class);\r\n stopService(intent);\r\n }",
"@Override\n public void onResume() {\n super.onResume();\n MusicManager.start(this, prefs.getBoolean(\"bgMusic\", true));\n }",
"@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }",
"@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }",
"@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }",
"@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }",
"@Override\n public void onDestroy() {\n super.onDestroy();\n\n this.stopForeground(true);\n }",
"@Override\n protected void onStop()\n {\n super.onStop();\n ukuleleMediaPlayer.release();\n ipuMediaPlayer.release();\n }",
"@Override\n protected void onDestroy() {\n\tsuper.onDestroy ();\n\tstartService ( new Intent ( getBaseContext (), BackgroundService.class ) );\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n protected void onDestroy() {\n super.onDestroy();\n isPaused = true;\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tFilmOnService.getInstance().stopLoopKeepAlive(getApplicationContext());\n\t\tFilmOnService.release();\n\t\tChannelManagement manager = ChannelManagement.getInstance();\n\t\tmanager.deleteObserver(this);\n\t\tmanager.release();\n\t\tsuper.onDestroy();\n\t}",
"@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n stopMusic();\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n active = false;\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n active = false;\n }",
"@Override\n public void stopSound(){\n gameMusic.stop();\n }",
"@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tsound.release();\n\t\tfinish();\n\t}",
"@Override\n protected void onResume()\n {\n super.onResume();\n setSound.resumeMusic(this);\n }",
"public void onDestroy();",
"public void onDestroy();",
"protected void onDestroy() {\n }",
"@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tCleanup();\r\n\t}",
"@Override\r\n public void onDestroy() {\n if (tts != null) {\r\n tts.stop();\r\n tts.shutdown();\r\n }\r\n super.onDestroy();\r\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif(countDownTimer != null)\n\t\t\tcountDownTimer.cancel();\n\t\tif(shakeListener != null){\n\t\t\tshakeListener.stop();\n\t\t}\n\t}",
"@Override\n public void onStop() {\n Log.d(TAG, \"MediaSessionCallback: onStop()\");\n // In onDestroy(), the player will be released. If you are using ExoPlayer, you will\n // need to manually release the player.\n getActivity().finish();\n }",
"public void destroy() {\n uiView.setMediaPlayer(null);\n mediaLoader.destroy();\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tView view = findViewById(R.id.maths_backound);\n\t\tview.setBackgroundResource(0);\n\t\tSystem.gc();\n\t}",
"public void onStop() {\n LOG.mo8825d(\"[onStop]\");\n if (this.mMediaPlayer != null) {\n if (this.mMediaPlayer.isPlaying()) {\n this.mMediaPlayer.stop();\n }\n this.mMediaPlayer.release();\n this.mMediaPlayer = null;\n }\n super.onStop();\n }",
"@Override\r\n\tprotected void onPause() {\n\t\tsuper.onPause();\r\n//\t\tgv.f = false;\t//如果没有这句,即使退出,run()函数也不停止运行,既游戏界面退出,到后台后仍在运行着。\r\n\t\tMusic.stop();\r\n\t}",
"@Override\r\n\tpublic void onDestroy() {\n\t\t\r\n\t}",
"public static void stopMusic() {\n\t\tcurrentMusic.stop();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\t isbackground=1;\n\t\tsuper.onPause();\n\t\tLog.e(\"AudioDoubt\",\"OnPause called\");\n\t\t\n\t\t\n\t\t////// Code remove////\n\t\t\n\t\t///////Remove this\n\t\t\n\t\n\t\t\n\t\t\n\t}",
"protected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t}",
"void onDestroy();",
"void onDestroy();",
"void onDestroy();",
"void onDestroy();",
"public void destroy() {\n // Stop any play or record\n if (this.player != null) {\n if ((this.state == STATE.MEDIA_RUNNING) || (this.state == STATE.MEDIA_PAUSED)) {\n this.player.stop();\n }\n this.player = null;\n }\n }",
"void stopMusic();",
"public void onDestroy() {\n \twifiLock.release();\n \tstopForeground(true);\n \tradio.stop();\n \tradio.release();\n \tradio = null;\n }",
"public void onDestroy() {\r\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n if (mSpeechRecognizer != null) {\n mSpeechRecognizer.destroy();\n }\n if(tts != null){\n tts.shutdown();\n }\n }",
"abstract void onDestroy();",
"@Override\n protected void onDestroy() {\n if(textToSpeech!=null){\n textToSpeech.stop();\n textToSpeech.shutdown();}\n\n super.onDestroy();\n\n }",
"@Override\n\tprotected void onStop() {\n\t\tsuper.onStop();\n\t\tthis.onDestroy();\n\t}",
"public void onDestroy(){\n if(textToSpeech !=null){\n textToSpeech.stop();\n textToSpeech.shutdown();\n }\n super.onDestroy();\n }",
"@Override\n protected void onDestroy() {\n Initialization.exit(this);\n super.onDestroy();\n }",
"@Override\n\tprotected void onDestroy() {\n\t\t\n\t\tsuper.onDestroy();\n\t}",
"@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tstopTimer();\r\n\t}",
"public synchronized void stopBackgroundAbruptly(){\r\n if(currentLoop0) backgroundMusicLoop0.stopClip();\r\n else backgroundMusicLoop1.stopClip();\r\n }",
"@Override\r\n public void onDestroy() {\n }",
"protected void onDestroy ()\n\t{\n\t\tsuper.onDestroy ();\n\t}",
"public void dispose() {\n\t\tmusic.dispose();\n\t}",
"@Override\n\t\tpublic void onDestroy() {\n\t\t\tsuper.onDestroy();\n\t\t\tmEngin.stop_engine();\n\t\t}",
"@Override\n\tpublic void onDestroy() {\n\t\tif (tts != null) {\n\t\t\tLog.e(TAG, \"Shutting down tts\");\n\t\t\ttts.stop();\n\t\t\ttts.shutdown();\n\t\t}\n\t\tsuper.onDestroy();\n\t}",
"@Override\n\tprotected void onDestroy() {\n\t\tflag=false;\n\t\tsuper.onDestroy();\n\t}",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tmp.release();\n\t\t\n\t}",
"private void stop()\n {\n mPlayer.stop();\n mPlayer = MediaPlayer.create(this, audioUri);\n }",
"public void onDestroy() {\n }",
"@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tLog.e(TAG, \"onDestroy\");\r\n\t}",
"@Override\r\n protected void onDestroy() {\r\n Log.d(LOGTAG, \"onDestroy\");\r\n super.onDestroy();\r\n\r\n try {\r\n vuforiaAppSession.stopAR();\r\n } catch (ArException e) {\r\n Log.e(LOGTAG, e.getString());\r\n }\r\n\r\n // Unload texture:\r\n mTextures.clear();\r\n mTextures = null;\r\n\r\n System.gc();\r\n }",
"@Override\n public void onCatalystInstanceDestroy() {\n super.onCatalystInstanceDestroy();\n\n Set<Map.Entry<Integer, PlayerInfo>> entries = playerPool.entrySet();\n for (Map.Entry<Integer, PlayerInfo> entry : entries) {\n PlayerInfo info = entry.getValue();\n if (info == null) {\n continue;\n }\n AudioPlayer player = info.audioPlayer;\n if (player == null) {\n continue;\n }\n try {\n player.setOnCompletionListener(null);\n player.setOnPreparedListener(null);\n player.setOnErrorListener(null);\n if (player.isPlaying()) {\n player.pause();\n }\n player.reset();\n player.release();\n } catch (Exception ex) {\n Log.e(\"RNSoundModule\", \"Exception when closing audios during app exit. \", ex);\n }\n }\n entries.clear();\n }",
"@Override\n \tprotected void onDestroy() {\n \t\tsuper.onDestroy();\n \t\tLog.d(TAG, \"onDestroy\");\n \t}"
] | [
"0.8293998",
"0.8289883",
"0.8227618",
"0.8128878",
"0.80895054",
"0.80842054",
"0.78227645",
"0.7806463",
"0.77840024",
"0.7764928",
"0.7743231",
"0.7683803",
"0.7648199",
"0.76461565",
"0.76195574",
"0.75817996",
"0.75001925",
"0.7489135",
"0.74425",
"0.7425725",
"0.7404521",
"0.73955476",
"0.7394459",
"0.738788",
"0.73464334",
"0.7330438",
"0.7326223",
"0.73242354",
"0.7322976",
"0.73095036",
"0.7267792",
"0.72559434",
"0.72480315",
"0.72358286",
"0.7221041",
"0.72125506",
"0.7208278",
"0.72078466",
"0.71939",
"0.7163964",
"0.71499753",
"0.71499753",
"0.71499753",
"0.71499753",
"0.7122631",
"0.7112742",
"0.7103411",
"0.71007955",
"0.7069951",
"0.7044287",
"0.70310146",
"0.70310146",
"0.7027678",
"0.7012167",
"0.69812894",
"0.697856",
"0.697856",
"0.695883",
"0.6958708",
"0.6955446",
"0.69553393",
"0.6953051",
"0.6923158",
"0.69178694",
"0.68917567",
"0.68886834",
"0.6878762",
"0.6873308",
"0.6872698",
"0.6867588",
"0.6864905",
"0.6864905",
"0.6864905",
"0.6864905",
"0.6864867",
"0.6861319",
"0.6859014",
"0.6853911",
"0.6849458",
"0.68486",
"0.6846227",
"0.6838263",
"0.6836672",
"0.68339133",
"0.68259937",
"0.6822344",
"0.68205774",
"0.68198234",
"0.68184274",
"0.68148535",
"0.6813689",
"0.6807398",
"0.6797852",
"0.6795365",
"0.6791612",
"0.67913836",
"0.6783726",
"0.6781969",
"0.67791426",
"0.67773086"
] | 0.8641552 | 0 |
Given the loaded Data from the default schema.sql and data.sql | @Test
public void whenFindById_thenReturnSdlcSystem() throws Exception {
SdlcSystem newSdlcSystem = (SdlcSystem)appendDates(getSdlcSystem("https://java.itunufatoki.com"));
newSdlcSystem = entityManager.merge(newSdlcSystem);
entityManager.flush();
// When
SdlcSystem sdlcSystem = sdlcSystemRepository.findById(newSdlcSystem.getId()).get();
// Then
assertThat(sdlcSystem.getId()).isEqualTo(newSdlcSystem.getId());
assertThat(sdlcSystem.getBaseUrl()).isEqualTo(newSdlcSystem.getBaseUrl());
assertThat(sdlcSystem.getDescription()).isEqualTo(newSdlcSystem.getDescription());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void importDefaultData()\n {\n LOG.info(\"Importing Data\");\n Session session = HibernateUtil.currentSession();\n Transaction tx = session.beginTransaction();\n Session dom4jSession = session.getSession(EntityMode.DOM4J);\n\n SAXReader saxReader = new SAXReader();\n try\n {\n Document document = saxReader.read(Setup.class.getResource(\"/DefaultData.xml\"));\n \n for (Object obj : document.selectNodes(\"//name\"))\n {\n Node node = (Node)obj;\n node.setText(node.getText().trim());\n }\n \n List<?> nodes = document.selectNodes(\"/Data/*/*\");\n \n for (Object obj : nodes)\n {\n Node node = (Node)obj;\n \n Class<?> clazz = Class.forName(\"at.easydiet.model.\" + node.getName());\n LOG.info(\"Importing \" + clazz.getName());\n dom4jSession.save(clazz.getName(), node);\n }\n \n session.flush();\n tx.commit();\n HibernateUtil.closeSession();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n tx.rollback();\n }\n LOG.info(\"Importing ended\");\n }",
"private void recreateDatabaseSchema() {\n\t\t// Fetch database schema\n\t\tlogger.info(\"Reading database schema from file\");\n\t\tString[] schemaSql = loadFile(\"blab_schema.sql\", new String[] { \"--\", \"/*\" }, \";\");\n\n\t\tConnection connect = null;\n\t\tStatement stmt = null;\n\t\ttry {\n\t\t\t// Get the Database Connection\n\t\t\tlogger.info(\"Getting Database connection\");\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tconnect = DriverManager.getConnection(Constants.create().getJdbcConnectionString());\n\n\t\t\tstmt = connect.createStatement();\n\n\t\t\tfor (String sql : schemaSql) {\n\t\t\t\tsql = sql.trim(); // Remove any remaining whitespace\n\t\t\t\tif (!sql.isEmpty()) {\n\t\t\t\t\tlogger.info(\"Executing: \" + sql);\n\t\t\t\t\tSystem.out.println(\"Executing: \" + sql);\n\t\t\t\t\tstmt.executeUpdate(sql);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ClassNotFoundException | SQLException ex) {\n\t\t\tlogger.error(ex);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (stmt != null) {\n\t\t\t\t\tstmt.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tlogger.error(ex);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (connect != null) {\n\t\t\t\t\tconnect.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tlogger.error(ex);\n\t\t\t}\n\t\t}\n\t}",
"public void loadInitialData() {\n\t\t\texecuteTransaction(new Transaction<Boolean>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Boolean execute(Connection conn) throws SQLException {\n\t\t\t\t\tList<Item> inventory;\n\t\t\t\t\tList<Location> locationList;\n\t\t\t\t\tList<User> userList;\n\t\t\t\t\tList<JointLocations> jointLocationsList;\n\t\t\t\t\t//List<Description> descriptionList; \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tinventory = InitialData.getInventory();\n\t\t\t\t\t\tlocationList = InitialData.getLocations(); \n\t\t\t\t\t\tuserList = InitialData.getUsers();\n\t\t\t\t\t\tjointLocationsList = InitialData.getJointLocations();\n\t\t\t\t\t\t//descriptionList = //InitialData.getDescriptions();\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tthrow new SQLException(\"Couldn't read initial data\", e);\n\t\t\t\t\t}\n\n\t\t\t\t\tPreparedStatement insertItem = null;\n\t\t\t\t\tPreparedStatement insertLocation = null; \n\t\t\t\t\tPreparedStatement insertUser = null;\n\t\t\t\t\tPreparedStatement insertJointLocations = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// AD: populate locations first since location_id is foreign key in inventory table\n\t\t\t\t\t\tinsertLocation = conn.prepareStatement(\"insert into locations (description_short, description_long) values (?, ?)\" );\n\t\t\t\t\t\tfor (Location location : locationList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertLocation.setString(1, location.getShortDescription());\n\t\t\t\t\t\t\tinsertLocation.setString(2, location.getLongDescription());\n\t\t\t\t\t\t\tinsertLocation.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertLocation.executeBatch(); \n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertJointLocations = conn.prepareStatement(\"insert into jointLocations (fk_location_id, location_north, location_south, location_east, location_west) values (?, ?, ?, ?, ?)\" );\n\t\t\t\t\t\tfor (JointLocations jointLocations: jointLocationsList)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinsertJointLocations.setInt(1, jointLocations.getLocationID());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(2, jointLocations.getLocationNorth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(3, jointLocations.getLocationSouth());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(4, jointLocations.getLocationEast());\n\t\t\t\t\t\t\tinsertJointLocations.setInt(5, jointLocations.getLocationWest());\n\t\t\t\t\t\t\tinsertJointLocations.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertJointLocations.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertItem = conn.prepareStatement(\"insert into inventory (location_id, item_name) values (?, ?)\");\n\t\t\t\t\t\tfor (Item item : inventory) \n\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t// Auto generate itemID\n\t\t\t\t\t\t\tinsertItem.setInt(1, item.getLocationID());\n\t\t\t\t\t\t\tinsertItem.setString(2, item.getName());\n\t\t\t\t\t\t\tinsertItem.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertItem.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tinsertUser = conn.prepareStatement(\"insert into users (username, password) values (?, ?)\");\n\t\t\t\t\t\tfor(User user: userList) {\n\t\t\t\t\t\t\tinsertUser.setString(1, user.getUsername());\n\t\t\t\t\t\t\tinsertUser.setString(2, user.getPassword());\n\t\t\t\t\t\t\tinsertUser.addBatch();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinsertUser.executeBatch();\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"Tables populated\");\n\t\t\t\t\t\t\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tDBUtil.closeQuietly(insertLocation);\t\n\t\t\t\t\t\tDBUtil.closeQuietly(insertItem);\n\t\t\t\t\t\tDBUtil.closeQuietly(insertUser);\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t});\n\t\t}",
"protected abstract void loadData();",
"protected void loadData()\n {\n }",
"private static void loadTableData() {\n\n\t\tBufferedReader in = null;\n\t\ttry {\n\t\t\tin = new BufferedReader(new FileReader(dataDir + tableInfoFile));\n\n\t\t\twhile (true) {\n\n\t\t\t\t// read next line\n\t\t\t\tString line = in.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tString[] tokens = line.split(\" \");\n\t\t\t\tString tableName = tokens[0];\n\t\t\t\tString tableFileName = tokens[1];\n\n\t\t\t\ttableNameToSchema.put(tableName, new HashMap<String, Type>());\n\t\t\t\ttableNameToOrdredSchema.put(tableName,\n\t\t\t\t\t\tnew ArrayList<ColumnInfo>());\n\n\t\t\t\t// attributes data\n\t\t\t\tfor (int i = 2; i < tokens.length;) {\n\n\t\t\t\t\tString attName = tokens[i++];\n\t\t\t\t\tString attTypeName = (tokens[i++]);\n\n\t\t\t\t\tType attType = null;\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Undefined, how to represent dates, crazy longs probably\n\t\t\t\t\t * won't need this for now...\n\t\t\t\t\t */\n\t\t\t\t\tif (attTypeName.equals(\"CHAR\")) {\n\t\t\t\t\t\tattType = Types.getCharType(Integer\n\t\t\t\t\t\t\t\t.valueOf(tokens[i++]));\n\t\t\t\t\t} else if (attTypeName.equals(\"DATE\")) {\n\t\t\t\t\t\tattType = Types.getDateType();\n\t\t\t\t\t} else if (attTypeName.equals(\"DOUBLE\")) {\n\t\t\t\t\t\tattType = Types.getDoubleType();\n\t\t\t\t\t} else if (attTypeName.equals(\"FLOAT\")) {\n\t\t\t\t\t\tattType = Types.getFloatType();\n\t\t\t\t\t} else if (attTypeName.equals(\"INTEGER\")) {\n\t\t\t\t\t\tattType = Types.getIntegerType();\n\t\t\t\t\t} else if (attTypeName.equals(\"LONG\")) {\n\t\t\t\t\t\tattType = Types.getLongType();\n\t\t\t\t\t} else if (attTypeName.equals(\"VARCHAR\")) {\n\t\t\t\t\t\tattType = Types.getVarcharType();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new RuntimeException(\"Invalid type: \"\n\t\t\t\t\t\t\t\t+ attTypeName);\n\t\t\t\t\t}\n\n\t\t\t\t\ttableNameToSchema.get(tableName).put(attName, attType);\n\n\t\t\t\t\tColumnInfo ci = new ColumnInfo(attName, attType);\n\t\t\t\t\ttableNameToOrdredSchema.get(tableName).add(ci);\n\n\t\t\t\t}\n\n\t\t\t\t// at this point, table info loaded.\n\n\t\t\t\t// Create table\n\t\t\t\tmyDatabase.getQueryInterface().createTable(tableName,\n\t\t\t\t\t\ttableNameToSchema.get(tableName));\n\n\t\t\t\t// Now, load data into newly created table\n\t\t\t\treadTable(tableName, tableFileName);\n\n\t\t\t}\n\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tHelpers.print(e.getStackTrace().toString(),\n\t\t\t\t\tutil.Consts.printType.ERROR);\n\t\t}\n\n\t}",
"private void loadDescribedTemplateData() {\r\n if (connect == null) {\r\n System.out.println(\"<internal> DescribedTemplateCore.loadDescribedTemplateData() finds no database connection and exits\");\r\n return;\r\n }\r\n\r\n Statement statement = null;\r\n ResultSet resultSet = null;\r\n try {\r\n String strDTNum = String.valueOf(pk_described_template);\r\n statement = connect.createStatement();\r\n\r\n // acquire described template info; note: template to described_template is 1 to many, so from described_template to template is 1:1\r\n resultSet = statement.executeQuery( \"SELECT fk_version_set, fk_template, description_hash, synchronized, hash, enabled, steps \" +\r\n \"FROM described_template \" +\r\n \"JOIN template ON fk_template = pk_template \" +\r\n \"WHERE pk_described_template = \" + strDTNum );\r\n\r\n if ( resultSet.next() ) {\r\n dbDescribedTemplate.fk_version_set = resultSet.getBytes(\"fk_version_set\");\r\n dbDescribedTemplate.fk_template = resultSet.getLong(\"fk_template\");\r\n dbDescribedTemplate.description_hash = resultSet.getBytes(\"description_hash\");\r\n dbDescribedTemplate.dtSynchronized = resultSet.getBoolean(\"synchronized\");\r\n dbDescribedTemplate.template_hash = resultSet.getBytes(\"hash\");\r\n dbDescribedTemplate.enabled = resultSet.getBoolean(\"enabled\");\r\n dbDescribedTemplate.steps = resultSet.getString(\"steps\");\r\n System.out.println(\" <internal> DescribedTemplateCore.loadDescribedTemplateData() loads data from described template record \" + pk_described_template);\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n } else {\r\n throw new Exception(\"described template data not present\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"DescribedTemplateCore.loadDescribedTemplateData() exception for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n\r\n // acquire matching run info\r\n try {\r\n String strTemplateNum = String.valueOf(dbDescribedTemplate.fk_template);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_run, artifacts, start_time, ready_time, end_time, passed \" +\r\n \"FROM run \" +\r\n \"WHERE fk_template = \" + strTemplateNum );\r\n while ( resultSet.next() ) {\r\n DBRun dbRun = new DBRun(resultSet.getLong(\"pk_run\"));\r\n dbRun.artifacts = resultSet.getBytes(\"artifacts\");\r\n dbRun.start_time = resultSet.getDate(\"start_time\");\r\n dbRun.ready_time = resultSet.getDate(\"ready_time\");\r\n dbRun.end_time = resultSet.getDate(\"end_time\");\r\n dbRun.passed = resultSet.getBoolean(\"passed\");\r\n dbDescribedTemplate.pkdtToDBRun.put(pk_described_template, dbRun);\r\n System.out.println(\" <internal> TemplateCore.loadTemplateData() loads data from described_template-matched run record \" + dbRun.pk_run);\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTemplateData() exception for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n } \r\n \r\n // acquire matching test_instance info; note: described_template to test_instance is 1:1\r\n try {\r\n String strDescribedTemplateNum = String.valueOf(pk_described_template);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_test_instance, fk_run, due_date, phase, synchronized \" +\r\n \"FROM test_instance \" +\r\n \"WHERE fk_described_template = \" + strDescribedTemplateNum);\r\n while ( resultSet.next() ) {\r\n DBTestInstance dbTestInstance = new DBTestInstance(resultSet.getLong(\"pk_test_instance\"));\r\n dbTestInstance.fk_run = resultSet.getLong(\"fk_run\"); // null entry returns 0\r\n dbTestInstance.due_date = resultSet.getDate(\"due_date\");\r\n dbTestInstance.phase = resultSet.getInt(\"phase\");\r\n dbTestInstance.iSynchronized = resultSet.getBoolean(\"synchronized\");\r\n dbDescribedTemplate.pkdtToDBTestInstance.put(pk_described_template, dbTestInstance);\r\n System.out.println(\" <internal> TemplateCore.loadDescribedTemplateData() loads data from described_template-matched test_instance record \" + dbTestInstance.pk_test_instance);\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"DescribedTemplateCore.loadDescribedTemplateData() exception for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n } \r\n\r\n // acquire corresponding multiple lines of data\r\n try {\r\n String strPKDT = String.valueOf(dbDescribedTemplate.pk_described_template);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_dt_line, line, description \" +\r\n \"FROM dt_line \" +\r\n \"WHERE fk_described_template = \" + strPKDT );\r\n while ( resultSet.next() ) {\r\n DBDTLine dtLine = new DBDTLine();\r\n dtLine.pk_dt_line = resultSet.getLong(\"pk_dt_line\"); // null entry returns 0\r\n dtLine.line = resultSet.getInt(\"line\");\r\n dtLine.dtLineDescription = resultSet.getString(\"description\");\r\n System.out.println(\" <internal> DescribedTemplateCore.loadDescribedTemplateData() loads line data from dt_line \" + dtLine.pk_dt_line);\r\n\r\n dbDescribedTemplate.pkdtToDTLine.put(dtLine.pk_dt_line, dtLine);\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"DescribedTemplateCore.loadDescribedTemplateData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n\r\n // get corresponding artifact information; not every dtLine has corresponding artifact information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT is_primary, reason, pk_artifact, fk_version, fk_content, synchronized, platform, internal_build, name \" +\r\n \"FROM artifact_to_dt_line \" +\r\n \"JOIN artifact ON fk_artifact = pk_artifact \" +\r\n \"WHERE fk_dt_line = \" + strPKDTLine );\r\n if ( resultSet.next() ) {\r\n dtLine.is_primary = resultSet.getBoolean(\"is_primary\");\r\n dtLine.reason = resultSet.getString(\"reason\");\r\n dtLine.pk_artifact = resultSet.getLong(\"pk_artifact\");\r\n dtLine.pk_version = resultSet.getLong(\"fk_version\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads artifact data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n\r\n // get corresponding version information; not every dtLine has corresponding version information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKVersion = String.valueOf(dtLine.pk_version);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT version, scheduled_release, actual_release, sort_order \" +\r\n \"FROM version \" +\r\n \"WHERE pk_version = \" + strPKVersion );\r\n if ( resultSet.next() ) {\r\n dtLine.version = resultSet.getString(\"version\");\r\n dtLine.scheduled_release = resultSet.getDate(\"scheduled_release\");\r\n dtLine.actual_release = resultSet.getDate(\"actual_release\");\r\n dtLine.sort_order = resultSet.getInt(\"sort_order\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads version data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n\r\n // get corresponding content information; not every dtLine has corresponding content information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKArtifact = String.valueOf(dtLine.pk_artifact);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT pk_content, is_generated \" +\r\n \"FROM content \" +\r\n \"JOIN artifact ON fk_content = pk_content \" +\r\n \"WHERE pk_artifact = \" + strPKArtifact );\r\n if ( resultSet.next() ) {\r\n dtLine.pk_content = resultSet.getBytes(\"pk_content\");\r\n dtLine.is_generated = resultSet.getBoolean(\"is_generated\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads content data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n\r\n // get corresponding component information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKVersion = String.valueOf(dtLine.pk_version);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT name \" +\r\n \"FROM component \" +\r\n \"JOIN version ON fk_component = pk_component \" +\r\n \"WHERE pk_version = \" + strPKVersion );\r\n if ( resultSet.next() ) {\r\n dtLine.componentName = resultSet.getString(\"name\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads component data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n }\r\n\r\n // get corresponding resource information; not every dtLine has corresponding resource information\r\n for (DBDTLine dtLine: dbDescribedTemplate.pkdtToDTLine.values()) {\r\n try {\r\n String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n statement = connect.createStatement();\r\n resultSet = statement.executeQuery( \"SELECT hash, name, resource.description \" +\r\n \"FROM dt_line \" +\r\n \"JOIN resource ON fk_resource = pk_resource \" +\r\n \"WHERE pk_dt_line = \" + strPKDTLine );\r\n if ( resultSet.next() ) {\r\n dtLine.resourceHash = resultSet.getBytes(\"hash\");\r\n dtLine.resourceName = resultSet.getString(\"name\");\r\n dtLine.resourceDescription = resultSet.getString(\"description\");\r\n System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads resource data for dt_line \" + dtLine.pk_dt_line);\r\n\r\n if (resultSet.next())\r\n throw new Exception(\"resultSet wrongly has more than one entry\");\r\n }\r\n } catch(Exception e) {\r\n System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for dtNum \" + pk_described_template + \": \"+ e);\r\n } finally {\r\n safeClose( resultSet ); resultSet = null;\r\n safeClose( statement ); statement = null;\r\n }\r\n } // end for()\r\n }",
"public void getDataFromFile() throws SQLException{\n \n //SQL database\n getGuestDate_DB();\n getHotelRoomData_DB();\n updateRoomChanges_DB();\n \n //this.displayAll();\n //this.displayAllRooms();\n \n }",
"private void importData(Connection conn,String filename)\n {\n\t\t\n Statement stmt;\n String query;\n try {\n\t\t\t\t// Step 1: Allocate a database \"Connection\" object\n\t\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost:\" + PORT_NUMBER + \"/Experiences?user=root&password=root\"); // MySQL\n\t\t\t\t// Step 2: Allocate a \"Statement\" object in the Connection\n\t\t\t\t stmt = conn.createStatement();\n\t\t\t\t {\n\t\t\t\n\n\t\t} }catch(SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t\t\n\t\t}\n \n \n try\n {\n stmt = conn.createStatement(\n ResultSet.TYPE_SCROLL_SENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n \n \n query = \"LOAD DATA LOCAL INFILE '\"+filename+\"' INTO TABLE t1 FIELDS TERMINATED BY ',' (question1,question2,question3,question4,question5,question6,question7,question8,question9)\";\n \n stmt.executeUpdate(query);\n \n }\n catch(Exception e)\n {\n e.printStackTrace();\n stmt = null;\n }\n }",
"public abstract void loadData();",
"public abstract void loadData();",
"protected void executeSchemaOperations() {\n }",
"private void loadData() {\n\t\tOptional<ServerData> loaded_data = dataSaver.load();\n\t\tif (loaded_data.isPresent()) {\n\t\t\tdata = loaded_data.get();\n\t\t} else {\n\t\t\tdata = new ServerData();\n\t\t}\n\t}",
"@EventListener(ApplicationReadyEvent.class)\n\tpublic void loadData() {\n\t\tList<AppUser> allUsers = appUserRepository.findAll();\n\t\tList<Customer> allCustomers = customerRepository.findAll();\n\t\tList<Part> allPArts = partRepository.findAll();\n\n\t\tif (allUsers.size() == 0 && allCustomers.size() == 0 && allPArts.size() == 0) {\n\t\t\tSystem.out.println(\"Pre-populating the database with test data\");\n\n\t\t\tResourceDatabasePopulator resourceDatabasePopulator = new ResourceDatabasePopulator(\n\t\t\t\tfalse,\n\t\t\t\tfalse,\n\t\t\t\t\"UTF-8\",\n\t\t\t\tnew ClassPathResource(\"data.sql\"));\n\t\t\tresourceDatabasePopulator.execute(dataSource);\n\t\t}\n\t\tSystem.out.println(\"Application successfully started!\");\n\t}",
"public static void insertTestDataLight() throws ArcException {\n\t\tinsertTestData(\"BdDTest/script_test_fonctionnel_sample.sql\");\n\t}",
"void loadData();",
"void loadData();",
"public void loadFromDatabase(){\r\n /**\r\n * Open the file streams to the three files\r\n * Recover the state of data structures\r\n * Close the file streams\r\n */\r\n\r\n try{\r\n //Recover the state of unfinished set from unfinished.dat\r\n unfinishedFileInputStream = new FileInputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetInputStream = new ObjectInputStream(unfinishedFileInputStream);\r\n unfinished = (Set<Task>)unfinishedSetInputStream.readObject();\r\n unfinishedSetInputStream.close();\r\n unfinishedFileInputStream.close();\r\n\r\n //Recover the state of finished list from finished.dat\r\n finishedFileInputStream = new FileInputStream(FINISHED_FILE_PATH);\r\n finishedListInputStream = new ObjectInputStream(finishedFileInputStream);\r\n finished = (ArrayList<Task>)finishedListInputStream.readObject();\r\n finishedListInputStream.close();\r\n finishedFileInputStream.close();\r\n\r\n //Recover the state of activities list from activities.dat\r\n activitiesFileInputStream = new FileInputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListInputStream = new ObjectInputStream(activitiesFileInputStream);\r\n activities = (ArrayList<Activity>)activitiesListInputStream.readObject();\r\n activitiesListInputStream.close();\r\n activitiesFileInputStream.close();\r\n\r\n generateWeeklySchedule();\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }",
"@Override\n public void load(String filename, DatasourceSchema datasourceSchema)\n throws BigQueryLoaderException {\n GcsFileToBqTableLoader gcsFileToBqTableLoader = new GcsFileToBqTableLoader(\n bigQueryRepository, filename, datasourceSchema);\n gcsFileToBqTableLoader.load();\n\n // 2- crée la table si elle n'existe pas\n if (bigQueryRepository.tableExists(datasourceSchema.getTableId())) {\n LOGGER.info(\"Table \" + datasourceSchema.getFullTableName() + \" already exists\");\n } else {\n try {\n bigQueryRepository\n .runDDLQuery(\"CREATE TABLE \" + datasourceSchema.getFullTableName() + \" AS \"\n + \"SELECT *, CURRENT_DATETIME() AS load_date_time FROM \" + datasourceSchema\n .getFullTableTmpName() + \" LIMIT 0\");\n } catch (Exception e) {\n throw new BigQueryLoaderException(\n \"Cannot create table \" + datasourceSchema.getFullTableTmpName(), e);\n }\n }\n\n // 3- déverse tout la table cible avec le champ load date time\n try {\n bigQueryRepository.runDDLQuery(\"INSERT INTO `\" + datasourceSchema.getFullTableName() + \"` \"\n + \"SELECT *, CURRENT_DATETIME() AS load_date_time FROM `\" + datasourceSchema\n .getFullTableTmpName() + \"`\");\n } catch (Exception e) {\n throw new BigQueryLoaderException(\n \"Cannot insert from \" + datasourceSchema.getFullTableTmpName()\n + \" into destination table \" + datasourceSchema.getFullTableName(), e);\n }\n\n // 4- drop la table temporaire\n bigQueryRepository.dropTable(datasourceSchema.getTmpTableId());\n }",
"private void loadTestInstanceData() {\r\n if (connect == null) {\r\n System.out.println(\"<internal> TemplateCore.loadTestInstanceData() finds no database connection and exits\");\r\n return;\r\n }\r\n\r\n Statement statement = null;\r\n ResultSet resultSet = null;\r\n// try {\r\n// String strINum = String.valueOf(pk_test_instance);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT fk_described_template, fk_run, due_date, phase, test_instance.synchronized, fk_version_set, fk_template, description_hash, described_template.synchronized, hash, enabled, steps \" +\r\n// \"FROM test_instance \" +\r\n// \"JOIN described_template ON fk_described_template = pk_described_template \" +\r\n// \"JOIN template ON fk_template = pk_test_instance \" +\r\n// \"WHERE pk_test_instance = \" + strINum );\r\n // everything in this query is 1:1 relationship, so resultSet has exactly 1 or 0 entry\r\n\r\n// if ( resultSet.next() ) {\r\n// dbTestInstance.pk_described_template = resultSet.getLong(\"fk_described_template\"); // null entry returns 0\r\n// dbTestInstance.fk_run = resultSet.getLong(\"fk_run\"); // null entry returns 0\r\n// dbTestInstance.due_date = resultSet.getDate(\"due_date\");\r\n// dbTestInstance.phase = resultSet.getInt(\"phase\");\r\n// dbTestInstance.iSynchronized = resultSet.getBoolean(\"test_instance.synchronized\");\r\n//\r\n// dbTestInstance.fk_version_set = resultSet.getBytes(\"fk_version_set\");\r\n// dbTestInstance.fk_template = resultSet.getLong(\"fk_template\"); // null entry returns 0\r\n// dbTestInstance.description_hash = resultSet.getBytes(\"description_hash\");\r\n// dbTestInstance.dtSynchronized = resultSet.getBoolean(\"described_template.synchronized\");\r\n//\r\n// dbTestInstance.template_hash = resultSet.getBytes(\"hash\");\r\n// dbTestInstance.enabled = resultSet.getBoolean(\"enabled\");\r\n// dbTestInstance.steps = resultSet.getString(\"steps\");\r\n//\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads 1:1 data from test_instance \" + dbTestInstance.pk_test_instance + \", pk_described_template \" + dbTestInstance.pk_described_template +\r\n// \", pk_test_instance \" + dbTestInstance.fk_template + (dbTestInstance.fk_run!=0 ? \", TEST RESULT ALREADY STORED\" : \"\"));\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// } else {\r\n// throw new Exception(\"instance data not present\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n//\r\n// // get corresponding multiple lines of data\r\n// try {\r\n// String strPKDT = String.valueOf(dbTestInstance.pk_described_template);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT pk_dt_line, line, description \" +\r\n// \"FROM dt_line \" +\r\n// \"WHERE fk_described_template = \" + strPKDT );\r\n// while ( resultSet.next() ) {\r\n// DBDTLine dtLine = new DBDTLine();\r\n// dtLine.pk_dt_line = resultSet.getLong(\"pk_dt_line\"); // null entry returns 0\r\n// dtLine.line = resultSet.getInt(\"line\");\r\n// dtLine.dtLineDescription = resultSet.getString(\"description\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads line data from dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// dbTestInstance.pkToDTLine.put(dtLine.pk_dt_line, dtLine);\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n//\r\n// // get corresponding artifact information; not every dtLine has corresponding artifact information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT is_primary, reason, pk_artifact, fk_version, fk_content, synchronized, platform, internal_build, name \" +\r\n// \"FROM artifact_to_dt_line \" +\r\n// \"JOIN artifact ON fk_artifact = pk_artifact \" +\r\n// \"WHERE fk_dt_line = \" + strPKDTLine );\r\n// if ( resultSet.next() ) {\r\n// dtLine.is_primary = resultSet.getBoolean(\"is_primary\");\r\n// dtLine.reason = resultSet.getString(\"reason\");\r\n// dtLine.pk_artifact = resultSet.getLong(\"pk_artifact\");\r\n// dtLine.pk_version = resultSet.getLong(\"fk_version\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads artifact data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding version information; not every dtLine has corresponding version information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKVersion = String.valueOf(dtLine.pk_version);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT version, scheduled_release, actual_release, sort_order \" +\r\n// \"FROM version \" +\r\n// \"WHERE pk_version = \" + strPKVersion );\r\n// if ( resultSet.next() ) {\r\n// dtLine.version = resultSet.getString(\"version\");\r\n// dtLine.scheduled_release = resultSet.getDate(\"scheduled_release\");\r\n// dtLine.actual_release = resultSet.getDate(\"actual_release\");\r\n// dtLine.sort_order = resultSet.getInt(\"sort_order\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads version data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding content information; not every dtLine has corresponding content information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKArtifact = String.valueOf(dtLine.pk_artifact);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT pk_content, is_generated \" +\r\n// \"FROM content \" +\r\n// \"JOIN artifact ON fk_content = pk_content \" +\r\n// \"WHERE pk_artifact = \" + strPKArtifact );\r\n// if ( resultSet.next() ) {\r\n// dtLine.pk_content = resultSet.getBytes(\"pk_content\");\r\n// dtLine.is_generated = resultSet.getBoolean(\"is_generated\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads content data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n//\r\n// // get corresponding component information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKVersion = String.valueOf(dtLine.pk_version);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT name \" +\r\n// \"FROM component \" +\r\n// \"JOIN version ON fk_component = pk_component \" +\r\n// \"WHERE pk_version = \" + strPKVersion );\r\n// if ( resultSet.next() ) {\r\n// dtLine.componentName = resultSet.getString(\"name\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads component data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// }\r\n//\r\n// // get corresponding resource information; not every dtLine has corresponding resource information\r\n// for (DBDTLine dtLine: dbTestInstance.pkToDTLine.values()) {\r\n// try {\r\n// String strPKDTLine = String.valueOf(dtLine.pk_dt_line);\r\n// statement = connect.createStatement();\r\n// resultSet = statement.executeQuery( \"SELECT hash, name, resource.description \" +\r\n// \"FROM dt_line \" +\r\n// \"JOIN resource ON fk_resource = pk_resource \" +\r\n// \"WHERE pk_dt_line = \" + strPKDTLine );\r\n// if ( resultSet.next() ) {\r\n// dtLine.resourceHash = resultSet.getBytes(\"hash\");\r\n// dtLine.resourceName = resultSet.getString(\"name\");\r\n// dtLine.resourceDescription = resultSet.getString(\"description\");\r\n// System.out.println(\" <internal> TemplateCore.loadTestInstanceData() loads resource data for dt_line \" + dtLine.pk_dt_line);\r\n//\r\n// if (resultSet.next())\r\n// throw new Exception(\"resultSet wrongly has more than one entry\");\r\n// }\r\n// } catch(Exception e) {\r\n// System.out.println(\"TemplateCore.loadTestInstanceData() exception on dtLine access for iNum \" + pk_test_instance + \": \"+ e);\r\n// } finally {\r\n// safeClose( resultSet ); resultSet = null;\r\n// safeClose( statement ); statement = null;\r\n// }\r\n// } // end for()\r\n }",
"void populateData();",
"@Before\n public void seedDatabase() {\n final String seedDataScript = loadAsString(\"pacmabooks.sql\");\n\n try (Connection connection = ds.getConnection()) {\n for (String statement : splitStatements(new StringReader(\n seedDataScript), \";\")) {\n connection.prepareStatement(statement).execute();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n System.out.println(\"--------------------------------------------------- Seeding DID NOT WOKK\");\n e.printStackTrace();\n throw new RuntimeException(\"Failed seeding database\", e);\n }\n System.out.println(\"Seeding works\");\n\n }",
"private static void insertTestData(String sqlFileResource) throws ArcException {\t\t\n\t\tString scriptDataTest;\n\t\ttry {\n\t\t\tscriptDataTest = IOUtils.toString(ApiInitialisationService.class.getClassLoader().getResourceAsStream(sqlFileResource), StandardCharsets.UTF_8);\n\t\t} catch (IOException e) {\n\t\t\tthrow new ArcException(e, ArcExceptionMessage.FILE_READ_FAILED);\n\t\t}\n\t\tUtilitaireDao.get(0).executeImmediate(c, scriptDataTest);\n\t\t\n\t}",
"public abstract void loadFromDatabase();",
"private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}",
"void syncSchema(org.kaleta.entity.xml.Schema data);",
"private static void initializeDatabase() {\n\t\tArrayList<String> data = DatabaseHandler.readDatabase(DATABASE_NAME);\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\trecords = serializer.deserialize(data);\n\t}",
"private void loadData(){\n\t\t \n\t\t model.getDataVector().clear();\n\t\t ArrayList<Person> personList = DataBase.getInstance().getPersonList();\n\t\t for(Person person : personList){\n\t\t\t addRow(person.toBasicInfoStringArray());\n\t\t }\n\t\t \n\t }",
"@Override\n public List<School> importData(final String databaseName, final Date dateFrom, final Date dateTo) {\n return null;\n }",
"@Override\n public String toSql(ToSqlOptions options) {\n StringBuilder sb = new StringBuilder(\"LOAD DATA INPATH '\");\n sb.append(sourceDataPath_ + \"' \");\n if (overwrite_) sb.append(\"OVERWRITE \");\n sb.append(\"INTO TABLE \" + tableName_.toString());\n if (partitionSpec_ != null) sb.append(\" \" + partitionSpec_.toSql(options));\n return sb.toString();\n }",
"public static void populateData() {\n\n }",
"public void loadData() {\n Path path= Paths.get(filename);\n Stream<String> lines;\n try {\n lines= Files.lines(path);\n lines.forEach(ln->{\n String[] s=ln.split(\";\");\n if(s.length==3){\n try {\n super.save(new Teme(Integer.parseInt(s[0]),Integer.parseInt(s[1]),s[2]));\n } catch (ValidationException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }else\n System.out.println(\"linie corupta in fisierul teme.txt\");});\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@PostConstruct\n public void loadSchema() throws IOException {\n\n loadDataIntoHSQL();\n\n //get the schema\n File schemaFile = resource.getFile();\n\n //parse the schema\n //Register the schema file\n TypeDefinitionRegistry typeDefinitionRegistry = new SchemaParser().parse(schemaFile);\n\n //build the wiring to connect\n RuntimeWiring wiring = buildRuntimeWiring();\n\n //Generate the schema using registered file and wiring which is nothing but reference.\n GraphQLSchema schema = new SchemaGenerator().makeExecutableSchema(typeDefinitionRegistry, wiring);\n\n //build the graphQL\n graphQL = GraphQL.newGraphQL(schema).build();\n\n List<Vehicle> list = vehicleService.findAll();\n\n for (Vehicle vehicle : list) {\n System.out.println(vehicle.getMake().toString());\n }\n\n }",
"private void reloadData() {\n if (DataFile == null)\n DataFile = new File(dataFolder, DATAFILENAME);\n Data = YamlConfiguration.loadConfiguration(DataFile);\n }",
"private void loadRules() throws DataNormalizationException {\n\t\tloadRules(TableVersion.COMMITTED);\n\t}",
"@Before\r\n\tpublic void setup() {\n\t\tH2Bootstrap.loadSchema(\r\n\t\t\t\tdataSourceLondon, \r\n\t\t\t\t\"/sql/create_bnk_database_h2.sql\", \r\n\t\t\t\t\"/sql/insert_bnk_static_data.sql\",\r\n\t\t\t\t\"/sql/drop_bnk_database.sql\");\r\n\r\n\t\t// H2Boostrap will create and insert the schema just once\r\n\t\tH2Bootstrap.loadSchema(\r\n\t\t\t\tdataSourceNewYork, \r\n\t\t\t\t\"/sql/create_bnk_database_h2.sql\", \r\n\t\t\t\t\"/sql/insert_bnk_static_data.sql\",\r\n\t\t\t\t\"/sql/drop_bnk_database.sql\");\r\n\t}",
"@Override\r\n\tpublic String[] getData(String[] sql) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic Map<String, TableImportResult> importData(String databaseServer,\n\t\t\tString databaseName, File file) {\n\t\t// intialise the results map\n\t\t//\n\t\tMap<String, TableImportResult> results = new HashMap<String, TableImportResult>();\n\n\t\t//\n\t\t// Check we have a file\n\t\t//\n\t\tif (file == null || !file.exists()) {\n\t\t\tlog.debug(\"No database was supplied for data import\");\n\t\t\treturn results;\n\t\t}\n\n\t\t//\n\t\t// Open the DB\n\t\t//\n\t\ttry {\n\t\t\tDatabase database = DatabaseBuilder.open(file);\n\t\t\tList<String> tablesToOmit = new ArrayList<String>();\n\n\t\t\t//\n\t\t\t// First, do a dry run\n\t\t\t//\n\t\t\t//AuthenticationDetails ad = new AuthenticationDetails();\n\t\t\tresults = importData(databaseServer, databaseName, database,tablesToOmit, true);\n\n\t\t\t//\n\t\t\t// Identify tables with problems; we'll omit these\n\t\t\t//\n\t\t\tfor (String key : results.keySet()) {\n\t\t\t\tif (results.get(key).getDataImportResult() == TableImportResult.FAILED) {\n\t\t\t\t\ttablesToOmit.add(key);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlog.debug(\"import preflight complete; \" + tablesToOmit.size()\n\t\t\t\t\t+ \" tables to omit in full run\");\n\n\t\t\t//\n\t\t\t// Now re-run and commit. This should ensure all data is imported\n\t\t\t// that passed preflight.\n\t\t\t//\n\t\t\tMap<String, TableImportResult> finalResults = importData(\n\t\t\t\t\tdatabaseServer, databaseName, database, tablesToOmit, false);\n\n\t\t\t//\n\t\t\t// Merge results\n\t\t\t//\n\t\t\tfor (String key : results.keySet()) {\n\t\t\t\tif (finalResults.containsKey(key)) {\n\t\t\t\t\tresults.get(key).merge(finalResults.get(key));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//\n\t\t\t// Now lets verify the import. While we know how many rows we\n\t\t\t// INSERTed in the batches,\n\t\t\t// once we committed them Postgres will discard rows that break any\n\t\t\t// table constraints.\n\t\t\t//\n\t\t\tfor (String tableName : results.keySet()) {\n\t\t\t\tQueryRunner qr = new QueryRunner(databaseServer, databaseName);\n\t\t\t\tqr.runDBQuery(String.format(\"SELECT COUNT(*) FROM \\\"%s\\\"\",\n\t\t\t\t\t\tgetNormalisedTableName(tableName)));\n\t\t\t\tTableData tableData = qr.getTableData();\n\t\t\t\tint rowsVerified = Integer.parseInt(tableData.rows.iterator()\n\t\t\t\t\t\t.next().cell.get(\"count\").getValue());\n\t\t\t\tresults.get(tableName).setRowsVerified(rowsVerified);\n\t\t\t}\n\t\t\t\n\t\t\t//\n\t\t\t// Finally, we have to update the sequences\n\t\t\t//\n\t\t\tfor (Pair<String, String> sequence : sequences){\n\t\t\t\tQueryRunner qr = new QueryRunner(databaseServer, databaseName);\n\t\t\t\tString key = getNormalisedColumnName(sequence.getLeft());\n\t\t\t\tString table = getNormalisedTableName(sequence.getRight());\n\t\t\t\tString sql = \"SELECT pg_catalog.setval(pg_get_serial_sequence('%s', '%s'), MAX(\\\"%s\\\")) FROM \\\"%s\\\";\";\n\t\t\t\tqr.runDBQuery(String.format(sql, table, key, key, table));\n\t\t\t}\n\n\t\t} catch (IOException | SQLException | ClassNotFoundException\n\t\t\t\t| NumberFormatException e) {\n\t\t\tlog.debug(\"Error importing database file\", e);\n\t\t}\n\t\treturn results;\n\t}",
"private void refreshData() {\n try {\n setDataSource(statement.executeQuery(\"select * from \" + sourceTableName));\n } catch (SQLException e) {\n System.err.println(\"Can't execute statement\");\n e.printStackTrace();\n }\n }",
"private static void dataFiltering() {\n\t\tDataGenerationMngr dtgen = new DataGenerationMngr();\n\t\tdtgen.genenrateData();\n\n\t\t// Perform Java and Gradle code diff in between commit and save the diff\n\t\t// information in database\n\n\t}",
"private void upgradeToDataApprovalWorkflows()\r\n {\r\n if ( executeSql( \"update dataset set approvedata = approvedata where datasetid < 0\" ) < 0 )\r\n {\r\n return; // Already converted because dataset.approvedata no longer exists.\r\n }\r\n\r\n executeSql( \"insert into dataapprovalworkflow ( workflowid, uid, created, lastupdated, name, periodtypeid, userid, publicaccess ) \"\r\n + \"select \" + statementBuilder.getAutoIncrementValue() + \", \" + statementBuilder.getUid() + \", now(), now(), ds.name, ds.periodtypeid, ds.userid, ds.publicaccess \"\r\n + \"from (select datasetid from dataset where approvedata = true union select distinct datasetid from dataapproval) as a \"\r\n + \"join dataset ds on ds.datasetid = a.datasetid\" );\r\n\r\n executeSql( \"insert into dataapprovalworkflowlevels (workflowid, dataapprovallevelid) \"\r\n + \"select w.workflowid, l.dataapprovallevelid from dataapprovalworkflow w \"\r\n + \"cross join dataapprovallevel l\" );\r\n\r\n executeSql( \"update dataset set workflowid = ( select w.workflowid from dataapprovalworkflow w where w.name = dataset.name)\" );\r\n executeSql( \"alter table dataset drop column approvedata cascade\" ); // Cascade to SQL Views, if any.\r\n\r\n executeSql( \"update dataapproval set workflowid = ( select ds.workflowid from dataset ds where ds.datasetid = dataapproval.datasetid)\" );\r\n executeSql( \"alter table dataapproval drop constraint dataapproval_unique_key\" );\r\n executeSql( \"alter table dataapproval drop column datasetid cascade\" ); // Cascade to SQL Views, if any.\r\n\r\n log.info( \"Added any workflows needed for approvble datasets and/or approved data.\" );\r\n }",
"private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }",
"private void analyzeLoadIntoIcebergTable() throws AnalysisException {\n Path sourcePath = sourceDataPath_.getPath();\n String tmpTableName = QueryStringBuilder.createTmpTableName(dbName_,\n tableName_.getTbl());\n QueryStringBuilder.Create createTableQueryBuilder =\n QueryStringBuilder.Create.builder().table(tmpTableName, true);\n try {\n FileSystem fs = sourcePath.getFileSystem(FileSystemUtil.getConfiguration());\n Path filePathForLike = sourcePath;\n // LIKE <file format> clause needs a file to infer schema, for directories: list\n // the files under the directory and pick the first one.\n if (fs.isDirectory(sourcePath)) {\n RemoteIterator<? extends FileStatus> fileStatuses = FileSystemUtil.listFiles(fs,\n sourcePath, true, \"\");\n while (fileStatuses.hasNext()) {\n FileStatus fileStatus = fileStatuses.next();\n String fileName = fileStatus.getPath().getName();\n if (fileStatus.isFile() && !FileSystemUtil.isHiddenFile(fileName)) {\n filePathForLike = fileStatus.getPath();\n break;\n }\n }\n }\n String magicString = FileSystemUtil.readMagicString(filePathForLike);\n if (magicString.substring(0, 4).equals(ParquetFileWriter.MAGIC_STR)) {\n createTableQueryBuilder.like(\"PARQUET\", \"%s\").storedAs(\"PARQUET\");\n } else if (magicString.substring(0, 3).equals(OrcFile.MAGIC)) {\n createTableQueryBuilder.like(\"ORC\", \"%s\").storedAs(\"ORC\");\n } else {\n throw new AnalysisException(String.format(\"INPATH contains unsupported LOAD \"\n + \"format, file '%s' has '%s' magic string.\", filePathForLike, magicString));\n }\n createTableQueryBuilder.tableLocation(\"%s\");\n createTableQueryBuilder.property(\"TEMPORARY\", \"true\");\n } catch (IOException e) {\n throw new AnalysisException(\"Failed to generate CREATE TABLE subquery \"\n + \"statement. \", e);\n }\n createTmpTblQuery_ = createTableQueryBuilder.build();\n QueryStringBuilder.Insert insertTblQueryBuilder = QueryStringBuilder.Insert.builder()\n .overwrite(overwrite_)\n .table(tableName_.toString());\n QueryStringBuilder.Select insertSelectTblQueryBuilder =\n QueryStringBuilder.Select.builder().selectList(\"*\").from(tmpTableName);\n insertTblQueryBuilder.select(insertSelectTblQueryBuilder);\n insertTblQuery_ = insertTblQueryBuilder.build();\n dropTmpTblQuery_ = QueryStringBuilder.Drop.builder().table(tmpTableName).build();\n }",
"private boolean loadDataFiles(Connection conn, String prefix, String[] files) {\n int errors, processed;\n errors = processed = 0;\n for (int i = 0; i < files.length; i++) {\n if (files[i].endsWith(\".data\") && files[i].startsWith(prefix)){\n processed++;\n String tablename = files[i].substring(0, files[i].indexOf(\".\"));\n String sql = DBHelper.loadTableString(tablename, data_dir + \"/\" + files[i]);\n try {\n PreparedStatement loadStmt = conn.prepareStatement(sql);\n loadStmt.execute();\n loadStmt.close();\n } catch (java.sql.SQLException e) {\n logger.log(\"Error executing \" + sql);\n logger.log(e);\n errors++;\n }\n try {\n String synonym = getSynonym(tablename);\n if (synonym != null) {\n sql = \"create synonym \" + synonym + \" for \" + tablename;\n PreparedStatement loadStmt = conn.prepareStatement(sql);\n loadStmt.execute();\n }\n }catch (Exception e) {\n /* This is ok to ignore as synonym might already exist */\n logger.log(\"Ok to ignore exception below\");\n logger.log(e);\n }\n logger.log(\"Successfully executed: \" + sql);\n }\n }\n if (processed == 0) {\n logger.log(\"Could not files matching files :\" + prefix +\"*.data\");\n return (false);\n }\n /* Only return an error if number of processed files == errors */\n if (errors == processed) {\n logger.log(\"\" + errors + \" errors processing \" + processed + \"files\");\n return (false);\n }\n return (true);\n }",
"@Override\n protected void load() {\n //recordId can be null when in batchMode\n if (this.recordId != null && this.properties.isEmpty()) {\n this.sqlgGraph.tx().readWrite();\n if (this.sqlgGraph.getSqlDialect().supportsBatchMode() && this.sqlgGraph.tx().getBatchManager().isStreaming()) {\n throw new IllegalStateException(\"streaming is in progress, first flush or commit before querying.\");\n }\n\n //Generate the columns to prevent 'ERROR: cached plan must not change result type\" error'\n //This happens when the schema changes after the statement is prepared.\n @SuppressWarnings(\"OptionalGetWithoutIsPresent\")\n EdgeLabel edgeLabel = this.sqlgGraph.getTopology().getSchema(this.schema).orElseThrow(() -> new IllegalStateException(String.format(\"Schema %s not found\", this.schema))).getEdgeLabel(this.table).orElseThrow(() -> new IllegalStateException(String.format(\"EdgeLabel %s not found\", this.table)));\n StringBuilder sql = new StringBuilder(\"SELECT\\n\\t\");\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(\"ID\"));\n appendProperties(edgeLabel, sql);\n List<VertexLabel> outForeignKeys = new ArrayList<>();\n for (VertexLabel vertexLabel : edgeLabel.getOutVertexLabels()) {\n outForeignKeys.add(vertexLabel);\n sql.append(\", \");\n if (vertexLabel.hasIDPrimaryKey()) {\n String foreignKey = vertexLabel.getSchema().getName() + \".\" + vertexLabel.getName() + Topology.OUT_VERTEX_COLUMN_END;\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(foreignKey));\n } else {\n int countIdentifier = 1;\n for (String identifier : vertexLabel.getIdentifiers()) {\n PropertyColumn propertyColumn = vertexLabel.getProperty(identifier).orElseThrow(\n () -> new IllegalStateException(String.format(\"identifier %s column must be a property\", identifier))\n );\n PropertyType propertyType = propertyColumn.getPropertyType();\n String[] propertyTypeToSqlDefinition = this.sqlgGraph.getSqlDialect().propertyTypeToSqlDefinition(propertyType);\n int count = 1;\n for (String ignored : propertyTypeToSqlDefinition) {\n if (count > 1) {\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + propertyType.getPostFixes()[count - 2] + Topology.OUT_VERTEX_COLUMN_END));\n } else {\n //The first column existVertexLabel no postfix\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + Topology.OUT_VERTEX_COLUMN_END));\n }\n if (count++ < propertyTypeToSqlDefinition.length) {\n sql.append(\", \");\n }\n }\n if (countIdentifier++ < vertexLabel.getIdentifiers().size()) {\n sql.append(\", \");\n }\n }\n }\n }\n List<VertexLabel> inForeignKeys = new ArrayList<>();\n for (VertexLabel vertexLabel : edgeLabel.getInVertexLabels()) {\n sql.append(\", \");\n inForeignKeys.add(vertexLabel);\n if (vertexLabel.hasIDPrimaryKey()) {\n String foreignKey = vertexLabel.getSchema().getName() + \".\" + vertexLabel.getName() + Topology.IN_VERTEX_COLUMN_END;\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(foreignKey));\n } else {\n int countIdentifier = 1;\n for (String identifier : vertexLabel.getIdentifiers()) {\n PropertyColumn propertyColumn = vertexLabel.getProperty(identifier).orElseThrow(\n () -> new IllegalStateException(String.format(\"identifier %s column must be a property\", identifier))\n );\n PropertyType propertyType = propertyColumn.getPropertyType();\n String[] propertyTypeToSqlDefinition = this.sqlgGraph.getSqlDialect().propertyTypeToSqlDefinition(propertyType);\n int count = 1;\n for (String ignored : propertyTypeToSqlDefinition) {\n if (count > 1) {\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + propertyType.getPostFixes()[count - 2] + Topology.IN_VERTEX_COLUMN_END));\n } else {\n //The first column existVertexLabel no postfix\n sql.append(sqlgGraph.getSqlDialect().maybeWrapInQoutes(vertexLabel.getFullName() + \".\" + identifier + Topology.IN_VERTEX_COLUMN_END));\n }\n if (count++ < propertyTypeToSqlDefinition.length) {\n sql.append(\", \");\n }\n }\n if (countIdentifier++ < vertexLabel.getIdentifiers().size()) {\n sql.append(\", \");\n }\n }\n }\n }\n sql.append(\"\\nFROM\\n\\t\");\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(this.schema));\n sql.append(\".\");\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(EDGE_PREFIX + this.table));\n sql.append(\" WHERE \");\n //noinspection Duplicates\n if (edgeLabel.hasIDPrimaryKey()) {\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(\"ID\"));\n sql.append(\" = ?\");\n } else {\n int count = 1;\n for (String identifier : edgeLabel.getIdentifiers()) {\n sql.append(this.sqlgGraph.getSqlDialect().maybeWrapInQoutes(identifier));\n sql.append(\" = ?\");\n if (count++ < edgeLabel.getIdentifiers().size()) {\n sql.append(\" AND \");\n }\n\n }\n }\n if (this.sqlgGraph.getSqlDialect().needsSemicolon()) {\n sql.append(\";\");\n }\n Connection conn = this.sqlgGraph.tx().getConnection();\n if (logger.isDebugEnabled()) {\n logger.debug(sql.toString());\n }\n try (PreparedStatement preparedStatement = conn.prepareStatement(sql.toString())) {\n if (edgeLabel.hasIDPrimaryKey()) {\n preparedStatement.setLong(1, this.recordId.sequenceId());\n } else {\n int count = 1;\n for (Comparable identifierValue : this.recordId.getIdentifiers()) {\n preparedStatement.setObject(count++, identifierValue);\n }\n }\n ResultSet resultSet = preparedStatement.executeQuery();\n if (resultSet.next()) {\n loadResultSet(resultSet, inForeignKeys, outForeignKeys);\n }\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }\n }",
"abstract void initializeNeededData();",
"public void run(File sqlLiteFile, List<String> colNames) {\n String status = \"\\nConverting Data Format ...\";\n processController.appendStatus(status + \"<br>\");\n\n Connection connection = new Connection(sqlLiteFile);\n String mappingFilepath = getMapping(connection, colNames);\n getTriples(mappingFilepath);\n }",
"public boolean insertOrUpdateDataSchema(String dschemaID, Data_Schema ds);",
"protected void readAllData() {\n \n String query = buildDataQuery();\n \n try {\n ResultSet rs = executeQuery(query);\n ResultSetMetaData md = rs.getMetaData();\n \n //Construct the internal data containers\n _dataMap = new LinkedHashMap<String,double[]>();\n _textDataMap = new LinkedHashMap<String,String[]>();\n \n //Make containers to collect data as we get it from the ResultSet\n int ncol = md.getColumnCount();\n ResizableDoubleArray[] dataArrays = new ResizableDoubleArray[ncol]; //tmp holder for numeric data\n List<String>[] textDataLists = new List[ncol]; //tmp holder for text data\n for (int i=0; i<ncol; i++) {\n dataArrays[i] = new ResizableDoubleArray();\n textDataLists[i] = new ArrayList<String>();\n }\n\n //Define a Calendar so we get our times in the GMT time zone.\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n \n //Read data from the result set into the ResizableDoubleArray-s which are already in the _dataArrayMap.\n while (rs.next()) { \n for (int i=0; i<ncol; i++) {\n double d = Double.NaN;\n //Check type and read as appropriate\n //TODO: check for other variation of time and text types\n int typeID = md.getColumnType(i+1); \n \n if (typeID == java.sql.Types.TIMESTAMP) { //TODO: test for DATE and TIME types?\n //We need to convert timestamps to numerical values.\n Timestamp ts = rs.getTimestamp(i+1, cal);\n d = ts.getTime();\n } else if (typeID == java.sql.Types.VARCHAR || typeID == java.sql.Types.CHAR) {\n //Text column. Save strings apart from other data.\n //They will appear as NaNs in the numeric data values.\n String s = rs.getString(i+1);\n textDataLists[i].add(s);\n } else d = rs.getDouble(i+1);\n \n dataArrays[i].addElement(d);\n }\n }\n \n //Extract the primitive arrays from the ResizableDoubleArray-s and put in data map.\n //Segregate the text data. Don't bother to save \"data\" (NaNs) for String types.\n for (int i=0; i<ncol; i++) {\n String name = md.getColumnName(i+1);\n int typeID = md.getColumnType(i+1);\n if (typeID == java.sql.Types.VARCHAR || typeID == java.sql.Types.CHAR) { \n String[] text = new String[1];\n text = (String[]) textDataLists[i].toArray(text);\n _textDataMap.put(name, text);\n } else {\n double[] data = dataArrays[i].getElements();\n _dataMap.put(name, data);\n }\n }\n \n } catch (SQLException e) {\n String msg = \"Unable to process database query: \" + query;\n _logger.error(msg, e);\n throw new TSSException(msg, e);\n } \n \n }",
"public void loadData(Object[] columnData);",
"public void loadData ( ) {\n\t\tinvokeSafe ( \"loadData\" );\n\t}",
"public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }",
"private void loadDataFromFile() {\n boolean isLoggedInNew = na.isLoggedIn();\n boolean isLoggedIn = uL.isLoggedIn();\n // load data for new users after sucsessful new account creation\n if (isLoggedInNew) {\n String username = na.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n Object[] lines = br.lines().toArray();\n for (int i = 0; i < lines.length; i++) {\n String[] row = lines[i].toString().split(\"\\t\");\n model.addRow(row);\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // load data for existing users after sucsessful login\n if (isLoggedIn) {\n String username = uL.getUsername();\n String fileExt = \"_data.txt\";\n String workingDirectory = System.getProperty(\"user.dir\");\n String filePath = workingDirectory + \"\\\\\" + username + fileExt;\n File file = new File(filePath);\n try {\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n Object[] lines = br.lines().toArray();\n for (int i = 0; i < lines.length; i++) {\n String[] row = lines[i].toString().split(\"\\t\");\n model.addRow(row);\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"protected void importIntoTable(HttpLogData data) throws Exception {\n Db db = getDb();\n st_insert_temp_table.setString(1, data.domain_name);\n st_insert_temp_table.setString(2, data.category);\n st_insert_temp_table.setString(3, data.site_name);\n st_insert_temp_table.setObject(4, null);\n st_insert_temp_table.setTimestamp(5, DateHelper.sql(data.datetime));\n st_insert_temp_table.setLong(6, data.time_taken);\n st_insert_temp_table.setInt(7, getOrCreateAuthorizationId(data.authorization));\n st_insert_temp_table.setLong(8, data.volume_client_to_server);\n st_insert_temp_table.setLong(9, data.volume_server_to_client);\n st_insert_temp_table.setInt(10, data.http_status);\n st_insert_temp_table.setString(11, data.user_agent);\n st_insert_temp_table.setString(12, data.agent_version);\n st_insert_temp_table.setInt(13, data.type);\n st_insert_temp_table.setString(14, data.ip_client);\n st_insert_temp_table.setString(15, obfuscateUsername(data.user_name));\n st_insert_temp_table.setString(16, data.mime_type);\n st_insert_temp_table.setBoolean(17, data.intranet);\n st_insert_temp_table.setString(18, data.path);\n st_insert_temp_table.setInt(19, data.specificFileWithoutReferer ? 1 : 0);\n st_insert_temp_table.setInt(20, data.robotsTxt ? 1 : 0);\n db.executeUpdate(st_insert_temp_table);\n }",
"private void loadData(CopyTable table) throws Exception\n\t{\n\t\tLOG.info(\"Starting to load data of '\" + table.getDescription() + \"' into MonetDB...\");\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\t// verify all temp files are available\n\t\tFile dataFile = new File(config.getTempDirectory(), table.getTempFilePrefix() + \"_data.csv\");\n\t\tFile countFile = new File(config.getTempDirectory(), table.getTempFilePrefix() + \"_count.txt\");\n\t\tFile metaDataFile = new File(config.getTempDirectory(), table.getTempFilePrefix() + \"_metadata.ser\");\n\t\t\n\t\tif (!countFile.exists())\n\t\t{\n\t\t\tthrow new Exception(\"Missing temporary count file for '\" + table.getDescription() + \"'\");\n\t\t}\n\t\t\n\t\tif (!metaDataFile.exists())\n\t\t{\n\t\t\tthrow new Exception(\"Missing temporary metadata file for '\" + table.getDescription() + \"'\");\n\t\t}\n\t\t\n\t\t// read count\n\t\tBufferedReader br = new BufferedReader(new FileReader(countFile));\n\t\tString countStr = br.readLine();\n\t\tbr.close();\n\t\t\n\t\tLong insertCount = null;\n\t\ttry {\n\t\t\tinsertCount = Long.parseLong(countStr);\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new Exception(\"Unable to read row count from temporary count file for '\" + table.getDescription() + \"'\");\n\t\t}\n\t\t\t\n\t\t// read metadata\n\t\tSerializableResultSetMetaData metaData = null;\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(metaDataFile);\n\t\t ObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t metaData = (SerializableResultSetMetaData) in.readObject();\n\t\t in.close();\n\t\t fileIn.close();\n\t\t} catch (IOException | ClassNotFoundException e) {\n\t\t\tthrow new Exception(\"Unable to read metadata from temporary metadata file for '\" + table.getDescription() + \"'\", e);\n\t\t}\n\t\t\n\t\tif (metaData == null)\n\t\t\tthrow new Exception(\"Unable to read metadata from temporary metadata file for '\" + table.getDescription() + \"'\");\n\t\t\n\t\tMonetDBTable copyToTable =\n\t\t\ttable.isCopyViaTempTable() ? table.getTempTable() : table.getCurrentTable();\n\n\t\t// check tables in monetdb\n\t\tcheckTableInMonetDb(copyToTable, metaData);\n\t\t\n\t\t// do truncate?\n\t\tif (table.truncate())\n\t\t{\n\t\t\tMonetDBUtil.truncateMonetDBTable(copyToTable);\n\t\t}\n\t\t\n\t\t// no records to insert? then this method is done\n\t\tif (insertCount == 0)\n\t\t{\n\t\t\tLOG.info(\"Finished loading data into '{}': no data to load\", copyToTable.getName());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// verify data file exists\n\t\tif (!dataFile.exists())\n\t\t{\n\t\t\tthrow new Exception(\"Missing temporary data file for '\" + table.getDescription() + \"'\");\n\t\t}\n\t\t\n\t\t// load data\n\t\tboolean isLoaded = false;\n\t\t\n\t\t// is it allowed to use COPY INTO method?\n\t\tif (copyToTable.getCopyTable().getCopyMethod() != CopyTable.COPY_METHOD_INSERT)\n\t\t{\n\t\t\t// try to load directly via COPY INTO FROM FILE\n\t\t\ttry {\n\t\t\t\tisLoaded = loadDataFromFile(copyToTable, dataFile, metaData, insertCount, table.isUseLockedMode());\n\t\t\t} catch (SQLException e) {\n\t\t\t\tLOG.warn(\"Failed to load data directly from file: \" + e.getMessage());\n\t\t\t}\n\t\t\t\t\t\n\t\t\t// not loaded? then try loading via COPY INTO FROM STDIN\n\t\t\tif (!isLoaded)\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tisLoaded = loadDataFromStdin (copyToTable, dataFile, metaData, insertCount, table.isUseLockedMode());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLOG.warn(\"Failed to load data directly via STDIN: \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// still not loaded? final try with manual INSERTs\n\t\tif (!isLoaded)\n\t\t{\n\t\t\ttry {\n\t\t\t\tisLoaded = loadDataWithInserts (copyToTable, dataFile, metaData, insertCount);\n\t\t\t} catch (Exception e) {\n\t\t\t\tLOG.error(\"Failed to load data with INSERTs: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\t\n\t\t// still not loaded? then unable to load, throw exception\n\t\tif (!isLoaded) \n\t\t{\n\t\t\tthrow new Exception(\"Unable to load data into MonetDB for '\" + table.getDescription() + \"'\");\n\t\t}\n\t\t\n\t\tlong loadTime = (System.currentTimeMillis() - startTime) / 1000;\n\t\tLOG.info(\"Finished loading data into \" + copyToTable.getName() + \" in \" + loadTime + \" seconds\");\n\t}",
"public void convertCsvDataToSQLScrip(List<CorruptionIndex> data, String destinationFile){\n\n }",
"public void updateTableData(String currentSchema,\n\t\t\tTreeMap<Integer,List<String>> tableDataMap,\n\t\t\tTreeMap<Integer,List<String>> tableSchemaMap){\n\t\ttry{\n\t\t\tInsertHelper iH = InsertHelper.getInsertHelperInstance();\n\t\t\tRandomAccessFile tableDataFile = new RandomAccessFile(currentSchema + \".\" + tableName + \".tbl\", \"rw\");\n\n\t\t\t//Table Data Map\n\t\t\tSet<Map.Entry<Integer,List<String>>> tableDataMapSet = tableDataMap.entrySet();\n\t\t\tIterator<Map.Entry<Integer,List<String>>> tableDataMapIterator = tableDataMapSet.iterator();\n\n\t\t\t//Table Schema Map\n\t\t\tSet<Map.Entry<Integer,List<String>>> columnSet = tableSchemaMap.entrySet();\n\t\t\tIterator<Map.Entry<Integer,List<String>>> columnIterator = columnSet.iterator();\n\t\t\tList<String> columnSchema = new ArrayList<String>();\n\n\t\t\t//Adding Column_Name,INT serially in the list\n\t\t\twhile(columnIterator.hasNext()){\n\t\t\t\tMap.Entry<Integer,List<String>> columnME = columnIterator.next();\n\t\t\t\tList<String> currentColumn = columnME.getValue();\n\t\t\t\tcolumnSchema.add(currentColumn.get(0));\n\t\t\t\tcolumnSchema.add(currentColumn.get(1));\n\t\t\t}\n\n\t\t\t//Checks the array list and writes accordingly to the File \n\t\t\twhile(tableDataMapIterator.hasNext()){\n\t\t\t\tMap.Entry<Integer,List<String>> columnME = tableDataMapIterator.next();\n\n\t\t\t\tList<String> currentColumn = columnME.getValue();\n\t\t\t\tint columnDataCounter = currentColumn.size();\n\t\t\t\tint columnSchemaCounter = 0;\n\n\t\t\t\tfor(int i = 0;i < columnDataCounter; i++){\n\t\t\t\t\tlong tableIndexPointer = tableDataFile.getFilePointer();\n\t\t\t\t\tif(columnSchema.get(columnSchemaCounter + 1).contains(\"VARCHAR\")){\n\t\t\t\t\t\ttableDataFile.writeByte(currentColumn.get(i).length());\n\t\t\t\t\t\ttableDataFile.writeBytes(currentColumn.get(i));\n\t\t\t\t\t\tiH.updateIndex(currentSchema, tableName, columnSchema.get(columnSchemaCounter), tableIndexPointer,columnSchema.get(columnSchemaCounter + 1), currentColumn.get(i));\n\t\t\t\t\t\tcolumnSchemaCounter = columnSchemaCounter + 2;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tswitch(columnSchema.get(columnSchemaCounter + 1)){\n\t\t\t\t\t\tcase \"CHAR\":\n\t\t\t\t\t\t\ttableDataFile.writeByte(currentColumn.get(i).length());\n\t\t\t\t\t\t\ttableDataFile.writeBytes(currentColumn.get(i));\n\t\t\t\t\t\t\tiH.updateIndex(currentSchema, tableName, columnSchema.get(columnSchemaCounter), tableIndexPointer,columnSchema.get(columnSchemaCounter + 1), currentColumn.get(i));\n\t\t\t\t\t\t\tcolumnSchemaCounter = columnSchemaCounter + 2;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"BYTE\": \n\t\t\t\t\t\t\ttableDataFile.writeBytes(currentColumn.get(i));\n\t\t\t\t\t\t\tiH.updateIndex(currentSchema, tableName, columnSchema.get(columnSchemaCounter), tableIndexPointer,columnSchema.get(columnSchemaCounter + 1), currentColumn.get(i));\n\t\t\t\t\t\t\tcolumnSchemaCounter = columnSchemaCounter + 2;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"SHORT\":\n\t\t\t\t\t\t\ttableDataFile.writeShort(Integer.parseInt(currentColumn.get(i)));\n\t\t\t\t\t\t\tiH.updateIndex(currentSchema, tableName, columnSchema.get(columnSchemaCounter), tableIndexPointer,columnSchema.get(columnSchemaCounter + 1), currentColumn.get(i));\n\t\t\t\t\t\t\tcolumnSchemaCounter = columnSchemaCounter + 2;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"INT\":\n\t\t\t\t\t\t\ttableDataFile.writeInt(Integer.parseInt(currentColumn.get(i)));\n\t\t\t\t\t\t\tiH.updateIndex(currentSchema, tableName, columnSchema.get(columnSchemaCounter), tableIndexPointer,columnSchema.get(columnSchemaCounter + 1), currentColumn.get(i));\n\t\t\t\t\t\t\tcolumnSchemaCounter = columnSchemaCounter + 2;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"LONG\": \n\t\t\t\t\t\t\ttableDataFile.writeLong(Integer.parseInt(currentColumn.get(i)));\n\t\t\t\t\t\t\tiH.updateIndex(currentSchema, tableName, columnSchema.get(columnSchemaCounter), tableIndexPointer,columnSchema.get(columnSchemaCounter + 1), currentColumn.get(i));\n\t\t\t\t\t\t\tcolumnSchemaCounter = columnSchemaCounter + 2;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"FLOAT\": \n\t\t\t\t\t\t\ttableDataFile.writeFloat(Integer.parseInt(currentColumn.get(i)));\n\t\t\t\t\t\t\tiH.updateIndex(currentSchema, tableName, columnSchema.get(columnSchemaCounter), tableIndexPointer,columnSchema.get(columnSchemaCounter + 1), currentColumn.get(i));\n\t\t\t\t\t\t\tcolumnSchemaCounter = columnSchemaCounter + 2;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"DOUBLE\": \n\t\t\t\t\t\t\ttableDataFile.writeDouble(Integer.parseInt(currentColumn.get(i)));\n\t\t\t\t\t\t\tiH.updateIndex(currentSchema, tableName, columnSchema.get(columnSchemaCounter), tableIndexPointer,columnSchema.get(columnSchemaCounter + 1), currentColumn.get(i));\n\t\t\t\t\t\t\tcolumnSchemaCounter = columnSchemaCounter + 2;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"DATETIME\": \n\t\t\t\t\t\t\tDateFormat dateTimeFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH:mm:ss\", Locale.ENGLISH);\n\t\t\t\t\t\t\tDate dateTime = dateTimeFormat.parse(currentColumn.get(i));\n\t\t\t\t\t\t\ttableDataFile.writeLong(dateTime.getTime());\n\t\t\t\t\t\t\tiH.updateIndex(currentSchema, tableName, columnSchema.get(columnSchemaCounter), tableIndexPointer,columnSchema.get(columnSchemaCounter + 1), currentColumn.get(i));\n\t\t\t\t\t\t\tcolumnSchemaCounter = columnSchemaCounter + 2;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"DATE\": \n\t\t\t\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH);\n\t\t\t\t\t\t\tDate date = dateFormat.parse(currentColumn.get(i));\n\t\t\t\t\t\t\ttableDataFile.writeLong(date.getTime());\n\t\t\t\t\t\t\tiH.updateIndex(currentSchema, tableName, columnSchema.get(columnSchemaCounter), tableIndexPointer,columnSchema.get(columnSchemaCounter + 1), currentColumn.get(i));\n\t\t\t\t\t\t\tcolumnSchemaCounter = columnSchemaCounter + 2;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\ttableDataFile.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void loadData()\r\n\t{\r\n\t\taddProduct(\"Area\", \"Education\");\r\n\t\taddProduct(\"Area\", \"Environment\");\r\n\t\taddProduct(\"Area\", \"Health\");\r\n\r\n\t\taddProduct(\"Domain\", \"Documentation\");\r\n\t\taddProduct(\"Domain\", \"Project Activity\");\r\n\t\taddProduct(\"Domain\", \"Technology\");\r\n\r\n\t\taddProduct(\"City\", \"Bangalore\");\r\n\t\taddProduct(\"City\", \"Hyderabad\");\r\n\t\taddProduct(\"City\", \"Lucknow\");\r\n\r\n\t\taddProduct(\"Activity_Type\", \"Onsite\");\r\n\t\taddProduct(\"Activity_Type\", \"Offsite\");\r\n\r\n\t}",
"public void refreshData(){ \n \t\tif(!mIsFirstRun){\n \t if(mDb == null) mDb = new Sqlite(this.getContext());\n \t if(!mDb.isOpen()) mDb.openRead();\n \t \n \t\t\tgetLoaderManager().restartLoader(0,null,this);\n \t\t}else mIsFirstRun = false;\n \t}",
"private void loadData()\n\t{\n\t\tVector<String> columnNames = new Vector<String>();\n\t\tcolumnNames.add(\"Item Name\");\n\t\tcolumnNames.add(\"Item ID\");\n\t\tcolumnNames.add(\"Current Stock\");\n\t\tcolumnNames.add(\"Unit Price\");\n\t\tcolumnNames.add(\"Section\");\n\t\t\n\t\tVector<Vector<Object>> data= new Vector<Vector<Object>>();\n\t\t\n\t\tResultSet rs = null;\n\t\ttry \n\t\t{\n\t\t\tConnection con = Connector.DBcon();\n\t\t\tString query=\"select * from items natural join sections order by sections.s_name\";\n\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\trs = pst.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tVector<Object> vector = new Vector<Object>();\n\t\t for (int columnIndex = 1; columnIndex <= 9; columnIndex++)\n\t\t {\n\t\t \t\n\t\t \tvector.add(rs.getObject(1));\n\t\t \tvector.add(rs.getObject(2));\n\t\t vector.add(rs.getObject(3));\n\t\t vector.add(rs.getObject(4));\n\t\t vector.add(rs.getObject(6));\n\t\t \n\t\t }\n\t\t data.add(vector);\n\t\t\t}\n\t\t\t\n\t\t\t tableModel.setDataVector(data, columnNames);\n\t\t\t \n\t\t\t rs.close();\n\t\t\t pst.close();\n\t\t\t con.close();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t}\n\t\t\n\t\t\n\t}",
"private void initData() {\n\t}",
"@Test\n public void testUnionOnSchemaNoSchema() throws Exception {\n String expectedErr = \"UNION ONSCHEMA cannot be used with \" +\n \"relations that have null schema\";\n String query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' ;\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : float);\"\n + \"u = union onschema l1, l2;\"\n ; \n checkSchemaEx(query, expectedErr);\n \n query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' ;\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' ;\"\n + \"u = union onschema l1, l2;\"\n ; \n checkSchemaEx(query, expectedErr);\n\n }",
"public void init() {\r\n BufferedReader in = null;\r\n String line;\r\n PreparedStatement iStmt;\r\n String insertStmt = \"INSERT INTO \" + schema + \"ULDSHAPE \"\r\n + \"(SHAPE, ALLHGHT, ALLLENG, ALLWDTH, BIGPIC, DESCR, INTERNALVOLUME, INTHGHT, INTLENG, INTWDTH, \"\r\n + \"MAXGROSSWGHT, RATING, TAREWGHT, THUMBNAIL, UPDATED, UPDTUSER, VERSION) VALUES \"\r\n + \"(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\r\n int count = 0;\r\n\r\n LOG.log(Level.INFO, \"Initialize basic Uldshapes in DB from file [{0}]\", path);\r\n\r\n try {\r\n in = new BufferedReader(new InputStreamReader(new FileInputStream(path), StandardCharsets.UTF_8));\r\n\r\n iStmt = conn.prepareStatement(insertStmt);\r\n\r\n while ((line = in.readLine()) != null) {\r\n LOG.finer(line);\r\n\r\n UldshapeVO uldshapeVO = parseUldshape(line);\r\n\r\n iStmt.setString(1, uldshapeVO.getShape());\r\n iStmt.setInt(2, uldshapeVO.getAllhght());\r\n iStmt.setInt(3, uldshapeVO.getAllleng());\r\n iStmt.setInt(4, uldshapeVO.getAllwdth());\r\n iStmt.setBytes(5, uldshapeVO.getBigpic());\r\n iStmt.setString(6, uldshapeVO.getDescr());\r\n iStmt.setInt(7, uldshapeVO.getInternalvolume());\r\n iStmt.setInt(8, uldshapeVO.getInthght());\r\n iStmt.setInt(9, uldshapeVO.getIntleng());\r\n iStmt.setInt(10, uldshapeVO.getIntwdth());\r\n iStmt.setInt(11, uldshapeVO.getMaxgrosswght());\r\n iStmt.setString(12, uldshapeVO.getRating());\r\n iStmt.setInt(13, uldshapeVO.getTarewght());\r\n iStmt.setBytes(14, uldshapeVO.getThumbnail());\r\n iStmt.setTimestamp(15, DbUtil.getCurrentTimeStamp());\r\n iStmt.setString(16, uldshapeVO.getUpdtuser());\r\n iStmt.setLong(17, 0);\r\n\r\n // execute insert SQL stetement\r\n iStmt.executeUpdate();\r\n\r\n ++count;\r\n }\r\n LOG.log(Level.INFO, \"Finished: [{0}] ULDSHAPES loaded\", count);\r\n\r\n DbUtil.cleanupJdbc();\r\n }\r\n catch (IOException ioex) {\r\n LOG.log(Level.SEVERE, \"An IO error occured. The error message is: {0}\", ioex.getMessage());\r\n }\r\n catch (SQLException ex) {\r\n LOG.log(Level.SEVERE, \"An SQL error occured. The error message is: {0}\", ex.getMessage());\r\n }\r\n finally {\r\n if (in != null) {\r\n try {\r\n in.close();\r\n }\r\n catch (IOException e) {\r\n }\r\n }\r\n }\r\n }",
"@SuppressWarnings({\"unchecked\", \"fallthrough\"})\n public static Class<? extends DataObject> modelFromTables(Connection connection, String classname, Action action, String... tablenames) throws Exception {\n\n /*\n SQL generation\n\n INSERT INTO T ( cols ) VALUES ( vals );\n UPDATE T SET cols WHERE vals;\n DELETE FROM T WHERE vals;\n SELECT * FROM cols WHERE vals;\n */\n\n ClassPool pool = ClassPool.getDefault();\n // this line is necessary for web applications (web container class loader in play)\n pool.appendClassPath(new LoaderClassPath(org.xillium.data.DataObject.class.getClassLoader()));\n\n CtClass cc = pool.makeClass(classname);\n cc.addInterface(pool.getCtClass(\"org.xillium.data.DataObject\"));\n ConstPool cp = cc.getClassFile().getConstPool();\n\n List<String> fragments = new ArrayList<String>();\n Set<String> unique = new HashSet<String>();\n\n/*SQL*/ StringBuilder\n cols = new StringBuilder(), // CREATE: COLUMNS, RETRIEVE: TABLES, UPDATE: SET CLAUSES, DELETE: (not used), SEARCH: TABLES\n vals = new StringBuilder(), // CREATE: VALUES, RETRIEVE: COND'S, UPDATE: COND'S, DELETE: COND'S, SEARCH: COND'S\n flds = new StringBuilder();\n\n // for SEARCH only\n Map<String, List<Pair<Integer, Integer>>> voptional = new HashMap<String, List<Pair<Integer, Integer>>>();\n Map<String, List<Pair<Integer, Integer>>> foptional = new HashMap<String, List<Pair<Integer, Integer>>>();\n Map<String, String> nametrans = new HashMap<String, String>();\n\n DatabaseMetaData meta = connection.getMetaData();\n String schema = meta.getUserName();\n List<String> dominant = new ArrayList<String>();\n\n for (int i = 0; i < tablenames.length; ++i) {\n // Dominant tables are recognized and maintained in 'dominant' list\n if (tablenames[i].charAt(0) == DOMINANT_INDICATOR) {\n tablenames[i] = tablenames[i].substring(1);\n dominant.add(tablenames[i]);\n }\n\n PreparedStatement stmt = connection.prepareStatement(\"SELECT * FROM \" + tablenames[i]);\n ResultSetMetaData rsmeta = stmt.getMetaData();\n Map<String, Integer> colref = new HashMap<String, Integer>();\n for (int j = 1, jj = rsmeta.getColumnCount(); j <= jj; ++j) {\n colref.put(rsmeta.getColumnLabel(j), new Integer(j));\n }\n\n Set<String> primaryKeys = new HashSet<String>();\n ResultSet keys = meta.getPrimaryKeys(connection.getCatalog(), schema, tablenames[i]);\n while (keys.next()) {\n primaryKeys.add(keys.getString(PKEY_COLUMN));\n }\n keys.close();\n\n // RETRIEVE is not compatible with tables without a primary key\n if (primaryKeys.isEmpty() && action.op == Operation.RETRIEVE) {\n throw new RuntimeException(\"Primary key expected for RETRIEVE command, but missing on table \" + tablenames[i]);\n }\n\n // ISA keys and table join conditions\n Set<String> isaKeys = new HashSet<String>();\n if (i > 0) {\n keys = meta.getImportedKeys(connection.getCatalog(), schema, tablenames[i]);\n while (keys.next()) {\n String jointable = null;\n for (int j = 0; j < i; ++j) {\n if (keys.getString(FKEY_REFERENCED_TABLE).equals(tablenames[j])) {\n jointable = tablenames[j];\n break;\n }\n }\n if (jointable != null) {\n String column = keys.getString(FKEY_REFERENCING_COLUMN);\n isaKeys.add(column);\n if (action.op == Operation.RETRIEVE || action.op == Operation.SEARCH) {\n /*SQL*/ vals.append(tablenames[i]).append('.').append(column).append('=').append(jointable).append('.').append(column).append(\" AND \");\n }\n }\n }\n keys.close();\n }\n\n String alias = ((action.op == Operation.RETRIEVE || action.op == Operation.SEARCH) && tablenames.length > 1) ? tablenames[i]+'.' : \"\";\n\n if (action.op != Operation.RETRIEVE && action.op != Operation.SEARCH) {\n cols.setLength(0);\n vals.setLength(0);\n flds.setLength(0);\n } else {\n /*SQL*/ if (cols.length() > 0) cols.append(',');\n /*SQL*/ cols.append(tablenames[i]);\n }\n\n // Go through all columns in action.args for UPDATE and SEARCH operations\n Set<String> requested = new HashSet<String>();\n Set<String> required = new HashSet<String>();\n if (action.op == Operation.UPDATE) {\n // UPDATE: the elements in the SET clause => cols\n for (String column: calcUpdateColumns(action.args, colref, primaryKeys)) {\n // skip all key columns, which might be legally included through the restriction list\n if (primaryKeys.contains(column)) continue;\n // ... and SET others\n Integer idx = colref.get(column);\n if (idx != null) {\n /*SQL*/ if (cols.length() > 0) cols.append(',');\n /*SQL*/ String restriction = action.restriction == null ? null : action.restriction.get(column);\n if (restriction == null) {\n boolean reqd = action.isRequired(column);\n if (reqd) {\n /*SQL*/ cols.append(column).append(\"=?\");\n } else {\n /*SQL*/ cols.append(column).append(\"=COALESCE(?,\").append(column).append(')');\n }\n /*SQL*/ if (flds.length() > 0) flds.append(',');\n flds.append(fieldName(tablenames[i], column)).append(':').append(rsmeta.getColumnType(idx.intValue()));\n requested.add(column);\n if (reqd) required.add(column);\n } else {\n /*SQL*/ cols.append(column).append('=').append(restriction);\n }\n }\n }\n } else if (action.op == Operation.SEARCH && action.args != null) {\n // SEARCH: the elements in the WHERE clause => vals\n for (int c = 0; c < action.args.length; ++c) {\n // skip all ISA columns, which might be legally included through the restriction list\n if (isaKeys.contains(action.args[c])) continue;\n // else ...\n Integer idx = colref.get(action.args[c]);\n if (idx != null) {\n /*SQL*/ String restriction = action.restriction == null ? null : action.restriction.get(action.args[c]);\n /*SQL*/ if (restriction == null || restriction.charAt(0) == NEGATIVE_INDICATOR) {\n if (restriction != null) {\n /*SQL*/ vals.append(tablenames[i]).append('.').append(action.args[c]).append(\"<>\").append(restriction.substring(1)).append(\" AND \");\n }\n int vstart = vals.length(), fstart = flds.length();\n /*SQL*/ vals.append(tablenames[i]).append('.').append(action.args[c]).append(action.cmps[c]).append(\"? AND \");\n flds.append(fieldName(tablenames[i], action.args[c])).append(':').append(rsmeta.getColumnType(idx.intValue())).append(',');\n if (!action.reqd[c]) {\n traceOptional(voptional, action.args[c], vstart, vals.length());\n traceOptional(foptional, action.args[c], fstart, flds.length());\n }\n requested.add(action.args[c]);\n if (action.reqd[c]) required.add(action.args[c]);\n } else {\n /*SQL*/ vals.append(tablenames[i]).append('.').append(action.args[c]).append('=').append(restriction).append(\" AND \");\n }\n }\n }\n }\n\n ResultSet columns = meta.getColumns(connection.getCatalog(), schema, tablenames[i], \"%\");\n columns:while (columns.next()) {\n String name = columns.getString(COLUMN_NAME), fname = fieldName(tablenames[i], name);\n int idx = colref.get(name).intValue();\n\n if ((action.op == Operation.RETRIEVE || action.op == Operation.DELETE) && !primaryKeys.contains(name)) {\n continue;\n } else if (action.op == Operation.UPDATE && !requested.contains(name) && !primaryKeys.contains(name)) {\n continue;\n } else if (action.op == Operation.SEARCH && !requested.contains(name)) {\n continue;\n }\n\n /*SQL*/ String restriction = action.restriction == null ? null : action.restriction.get(name);\n switch (action.op) {\n case CREATE:\n if (action.args != null) for (int j = 0; j < action.args.length; ++j) {\n if (action.args[j].equals(name)) continue columns;\n }\n /*SQL*/ if (cols.length() > 0) {\n /*SQL*/ cols.append(',');\n /*SQL*/ vals.append(',');\n /*SQL*/ }\n /*SQL*/ cols.append(name);\n /*SQL*/ if (restriction == null || restriction.charAt(0) == NEGATIVE_INDICATOR) {\n /*SQL*/ vals.append('?');\n /*SQL*/ if (flds.length() > 0) flds.append(',');\n flds.append(fname).append(':').append(rsmeta.getColumnType(idx));\n } else {\n /*SQL*/ vals.append(restriction);\n }\n break;\n case RETRIEVE:\n if (i > 0) {\n // NOTE: ISA relation dictates that sub-tables' primary key == super-table's primary key\n // therefore the join condition generated above is sufficient already\n break;\n }\n // fall through for the super-table\n case DELETE:\n // only primary key columns\n generateCondition(restriction, vals, flds, alias + name, fname, rsmeta.getColumnType(idx));\n break;\n case UPDATE:\n // only primary key & updating columns\n if (primaryKeys.contains(name)) {\n generateCondition(restriction, vals, flds, name, fname, rsmeta.getColumnType(idx));\n }\n break;\n case SEARCH:\n // file optionals lists under field names\n nametrans.put(name, fname);\n voptional.put(fname, voptional.get(name));\n foptional.put(fname, foptional.get(name));\n break;\n }\n\n if ((restriction != null && restriction.charAt(0) != NEGATIVE_INDICATOR) || isaKeys.contains(name)) {\n continue;\n } else if (unique.contains(name)) {\n continue;\n //throw new RuntimeException(\"Duplicate column in ISA relationship detected \" + tablenames[i] + ':' + name);\n } else {\n unique.add(name);\n }\n\n CtField field = new CtField(pool.getCtClass(MetaDataHelper.getClassName(rsmeta, idx)), fname, cc);\n field.setModifiers(java.lang.reflect.Modifier.PUBLIC);\n AnnotationsAttribute attr = new AnnotationsAttribute(cp, AnnotationsAttribute.visibleTag);\n\n if (required.contains(name)) {\n addAnnotation(attr, cp, \"org.xillium.data.validation.required\");\n } else if (columns.getInt(IS_NULLABLE) == DatabaseMetaData.attributeNoNulls) {\n if ((action.op != Operation.UPDATE || primaryKeys.contains(name)) && action.op != Operation.SEARCH) {\n addAnnotation(attr, cp, \"org.xillium.data.validation.required\");\n }\n }\n\n if (rsmeta.getPrecision(idx) != 0) {\n addAnnotation(attr, cp, \"org.xillium.data.validation.size\", \"value\", new IntegerMemberValue(cp, rsmeta.getPrecision(idx)));\n }\n\n addAnnotation(attr, cp, \"org.xillium.data.persistence.crud.tablename\", \"value\", new StringMemberValue(tablenames[i], cp));\n\n field.getFieldInfo().addAttribute(attr);\n cc.addField(field);\n }\n columns.close();\n stmt.close();\n\n switch (action.op) {\n case CREATE:\n fragments.add(\"org.xillium.data.persistence.ParametricStatement\");\n fragments.add(flds.toString());\n fragments.add(\"INSERT INTO \" + tablenames[i] + '(' + cols.toString() + \") VALUES(\" + vals.toString() + ')');\n fragments.add(Strings.toCamelCase(tablenames[i], '_'));\n break;\n case UPDATE:\n if (cols.length() > 0) {\n fragments.add(\"org.xillium.data.persistence.ParametricStatement\");\n fragments.add(flds.toString());\n fragments.add(\"UPDATE \" + tablenames[i] + \" SET \" + cols.toString() + \" WHERE \" + vals.toString().replaceAll(\" AND *$\", \"\"));\n fragments.add(Strings.toCamelCase(tablenames[i], '_'));\n }\n break;\n case DELETE:\n fragments.add(\"org.xillium.data.persistence.ParametricStatement\");\n fragments.add(flds.toString());\n fragments.add(\"DELETE FROM \" + tablenames[i] + \" WHERE \" + vals.toString().replaceAll(\" AND *$\", \"\"));\n fragments.add(Strings.toCamelCase(tablenames[i], '_'));\n break;\n case RETRIEVE:\n case SEARCH:\n break;\n }\n }\n\n if (action.op == Operation.RETRIEVE) {\n fragments.add(\"org.xillium.data.persistence.ParametricQuery\");\n fragments.add(flds.toString());\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols + \" WHERE \" + vals.toString().replaceAll(\" AND *$\", \"\"));\n fragments.add(\"\");\n } else if (action.op == Operation.SEARCH) {\n if (action.opts != null) {\n for (int i = 0; i < action.opts.length; ++i) {\n action.opts[i] = nametrans.get(action.opts[i]);\n }\n int count = 1 << action.opts.length;\n\n String vtext = vals.toString(), ftext = flds.toString();\n for (int i = 0; i < count; ++i) {\n char[] vchars = vtext.toCharArray(), fchars = ftext.toCharArray();\n for (int j = 0; j < action.opts.length; ++j) {\n List<Pair<Integer, Integer>> vlist = voptional.get(action.opts[j]);\n List<Pair<Integer, Integer>> flist = foptional.get(action.opts[j]);\n if (vlist == null || flist == null) {\n throw new RuntimeException(\"Column{\"+action.opts[j]+\"}NotInRelevantTables\");\n }\n if ((i & (1 << j)) == 0) {\n for (Pair<Integer, Integer> part: vlist) Arrays.fill(vchars, part.first, part.second, ' ');\n for (Pair<Integer, Integer> part: flist) Arrays.fill(fchars, part.first, part.second, ' ');\n }\n }\n\n fragments.add(\"org.xillium.data.persistence.ParametricQuery\");\n fragments.add(new String(fchars).replaceAll(\"\\\\s+\", \" \"));\n String vals0 = new String(vchars).replaceAll(\"\\\\s+\", \" \").replaceAll(\" AND *$\", \"\").trim();\n if (vals0.length() > 0) {\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols + \" WHERE \" + vals0);\n } else {\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols);\n }\n fragments.add(\"\");\n }\n } else {\n fragments.add(\"org.xillium.data.persistence.ParametricQuery\");\n fragments.add(flds.toString());\n if (vals.length() > 0) {\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols + \" WHERE \" + vals.toString().replaceAll(\" AND *$\", \"\"));\n } else {\n fragments.add(\"SELECT \" + selectTarget(dominant) + \" FROM \" + cols);\n }\n fragments.add(\"\");\n }\n }\n\n CtField field = new CtField(pool.getCtClass(\"org.xillium.data.persistence.ParametricStatement[]\"), STATEMENT_FIELD_NAME, cc);\n field.setModifiers(java.lang.reflect.Modifier.PUBLIC | java.lang.reflect.Modifier.STATIC | java.lang.reflect.Modifier.FINAL);\n cc.addField(field, CtField.Initializer.byCallWithParams(\n pool.getCtClass(CrudCommand.class.getName()), \"buildStatements\", fragments.toArray(new String[fragments.size()])\n ));\n\n return (Class<? extends DataObject>)cc.toClass(CrudCommand.class.getClassLoader(), CrudCommand.class.getProtectionDomain());\n }",
"public static void bulkLoadFromInputStream(Connection cnn,String loadDataSql, InputStream dataStream) throws Exception {\n\t\tif(dataStream==null){\n\t\t\tLog.info(\"InputStream is null ,No data is imported\");\n\t\t\tthrow new IOException(\"inputstream is null!\");\n\t\t}\n\n\t\tStatement myStatement = (com.mysql.jdbc.Statement)cnn.createStatement();\n\n\t\tmyStatement.setLocalInfileInputStream(dataStream);\n\t\t\t\t\n\t\tmyStatement.execute(loadDataSql);\n\t}",
"public void LoadLifeloggingData(String XMLFilePath) throws SQLException {\n\t\tString loaddata1 = \"LOAD XML INFILE '\" + XMLFilePath + \"'\"\n\t + \"INTO TABLE minute ROWS IDENTIFIED BY '<minute>'\";\n\t\tString loaddata2 = \"LOAD XML INFILE '\" + XMLFilePath + \"'\"\n\t + \"INTO TABLE image ROWS IDENTIFIED BY '<image-path>'\"; \n\t\t\n\t\tStatement stmt = this.connection.createStatement();\n\t\tstmt.execute(loaddata1);\n\t\tstmt.execute(loaddata2);\n\t\tstmt.close();\n\t}",
"private void loadGeneratedSchema(SchemaDefinition sd) throws ResultException, DmcValueException, DmcNameClashException {\n \t\n \tfor(String schemaName : sd.dependsOnSchemaClasses.keySet()){\n \t\tString schemaClassName = sd.dependsOnSchemaClasses.get(schemaName);\n \t\t\n\t\t\tSchemaDefinition depSchema = isSchema(schemaName);\n\t\t\t\n\t\t\tif (depSchema == null){\n\t\t\t\tClass<?> schemaClass = null;\n\t\t\t\t\n try{\n \tschemaClass = Class.forName(schemaClassName);\n }\n catch(Exception e){\n \tResultException ex = new ResultException();\n \tex.result.addResult(Result.FATAL,\"Couldn't load generated schema class: \" + schemaClassName);\n ex.result.lastResult().moreMessages(e.getMessage());\n ex.result.lastResult().moreMessages(DebugInfo.extractTheStack(e));\n throw(ex);\n }\n\n try{\n \tdepSchema = (SchemaDefinition) schemaClass.newInstance();\n }\n catch(Exception e){\n \tResultException ex = new ResultException();\n \tex.result.addResult(Result.FATAL,\"Couldn't instantiate Java class: \" + schemaClassName);\n \tex.result.lastResult().moreMessages(\"This may be because the class doesn't have a constructor that takes no arguments.\");\n \tex.result.lastResult().moreMessages(\"Or it may be that the class isn't derived from SchemaDefinition.\");\n \tthrow(ex);\n }\n\n loadGeneratedSchema(depSchema);\n\t\t\t}\n\n \t}\n \t\n \tSchemaDefinition theInstance = sd.getInstance();\n \t\n manageSchemaInternal(theInstance);\n \n resolveReferences(theInstance,this);\n \n \t// Now that everything's resolved, we have some unfinished business to take care of\n \tIterator<AttributeDefinition> adl = sd.getAttributeDefList();\n \tresolveNameTypes(adl);\n }",
"public void setTableSchema(List<String> tableNames, List<String> oringinalTableNames){\n tableSchemaMap = new HashMap<>();\n tableSchemaDir = databaseDir + File.separator + \"schema.txt\";\n HashMap<String,String> tableNamesOringinalTableNamesMap = new HashMap<>();\n for(int i = 0; i < tableNames.size(); i++) {\n tableNamesOringinalTableNamesMap.put(tableNames.get(i),oringinalTableNames.get(i));\n }\n //System.out.println(\"tableNamesOringinalTableNamesMap:\"+tableNamesOringinalTableNamesMap);\n try\n {\n FileReader fr = new FileReader(tableSchemaDir);\n BufferedReader br = new BufferedReader(fr);\n String nextline;\n String[] oneSchema;\n while((nextline = br.readLine()) != null)\n {\n oneSchema = nextline.split(\" \");\n String SchemaName = oneSchema[0];\n for(String tableNamesOringinalTableNamesMapKey:tableNamesOringinalTableNamesMap.keySet())\n {\n if(tableNamesOringinalTableNamesMap.get(tableNamesOringinalTableNamesMapKey).equals(SchemaName)){\n String[] newSchema = oneSchema.clone();\n newSchema[0] = tableNamesOringinalTableNamesMapKey;\n for(int i = 1; i < oneSchema.length; i++)\n newSchema[i] = tableNamesOringinalTableNamesMapKey + \".\" + newSchema[i];\n //String newSchemaName = tableNamesOringinalTableNamesMap.get(tableNamesOringinalTableNamesMapKey);\n tableSchemaMap.put(newSchema[0],newSchema);\n //System.out.println(\"tableSchemaMap:\"+ tableSchemaMap);\n }\n }\n }\n }\n catch (Exception e)\n {\n System.err.println(\"Failed to open file\");\n e.printStackTrace();\n }\n }",
"public LoadData(String db_dir, String data_dir) {\n this.db_dir = db_dir;\n this.data_dir = data_dir;\n this.sqlList = new ArrayList<String>();\n this.logger = Logger.getInstance();\n }",
"private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}",
"private void preloadDb() {\n String[] branches = getResources().getStringArray(R.array.branches);\n //Insertion from xml\n for (String b : branches)\n {\n dataSource.getTherapyBranchTable().insertTherapyBranch(b);\n }\n String[] illnesses = getResources().getStringArray(R.array.illnesses);\n for (String i : illnesses)\n {\n dataSource.getIllnessTable().insertIllness(i);\n }\n String[] drugs = getResources().getStringArray(R.array.drugs);\n for (String d : drugs)\n {\n dataSource.getDrugTable().insertDrug(d);\n }\n }",
"@Override\n\t\tvoid loadData() throws IOException {\n\t\t\tsuper.loadData();\n\t\t}",
"private void populateDataAndVerify(ReplicatedEnvironment masterEnv) {\n createTestData();\n populateDB(masterEnv, dbName, keys);\n readDB(masterEnv, dbName, startKey, numKeys);\n logger.info(numKeys + \" records (start key: \" +\n startKey + \") have been populated into db \" +\n dbName + \" and verified\");\n }",
"private void handleStaticData(List<String> staticData, BatchSQLTransformNode transformNode) {\n for (String igniteTableId : staticData) {\n if (!this.sourceNodes.containsKey(igniteTableId)) {\n Map<String, Object> igniteNodeConfMap = new HashMap<>();\n igniteNodeConfMap.put(\"id\", igniteTableId);\n igniteNodeConfMap.put(\"name\", igniteTableId);\n BatchIgniteSourceNode igniteNode =\n (new BatchIgniteSourceNode.BatchIgniteSourceNodeBuilder(igniteNodeConfMap))\n .build();\n this.staticTable.add(igniteTableId);\n transformNode.getParents().add(igniteNode);\n this.sourceNodes.put(igniteTableId, igniteNode);\n LOGGER.info(String.format(\"Added ignite source node %s\", igniteTableId));\n } else {\n transformNode.getParents().add(this.sourceNodes.get(igniteTableId));\n }\n }\n }",
"public static void insertTestDataSirene() throws ArcException {\n\t\tinsertTestData(\"BdDTest/script_test_fonctionnel_sirene.sql\");\n\t}",
"private void initData() {\n }",
"private void InitData() {\n\t}",
"Map<String,DataSource> load(Set<String> existsDataSourceNames) throws Exception;",
"public IDataSet loadMaterializedDataSet(Set<FieldDescriptor> columns) throws DataSourceException;",
"@Override\r\n\tpublic String getDataBaseName(String[] sql) {\n\t\treturn UsedDataBase.getUsedDataBase();\r\n\t}",
"public void loadFirstData() throws Exception {\n\t}",
"@Override\n\tprotected IDataSet getDataSet() throws Exception {\n\t\tInputStream xmlFile = getClass().getResourceAsStream(\"/alumno.xml\");\n\t\treturn new FlatXmlDataSetBuilder().build(xmlFile);\n\t}",
"public void initializeData() {\n _currentDataAll = _purityReportData.getAll();\n }",
"public void ValidateSchema(String DFDLSchema, String Data)\n\t{\n\t\ttry\n\t\t{\n\t\t\t/*\n\t\t\t * Create an instance of Daffodil Compiler. Set validateDFDLSchemas method to true. \n\t\t\t */\n\t\t\tCompiler c = Daffodil.compiler();\n\t\t\tc.setValidateDFDLSchemas(true);\n\n\t\t\t/*\n\t\t\t * Get a URL for the example schema resource. \n\t\t\t */\n\t\t\tURL schemaUrl = getClass().getResource(\"/DFDLSchemas/\" + DFDLSchema);\n\t\t\t\n\t\t\t/*\n\t\t\t * Pass the URI using schemaUrl and pass it to a file.\n\t\t\t * Create an instance of a ProcessorFactory and compile file from the url.\n\t\t\t */\n\t\t\tFile schemaFiles = new File(schemaUrl.toURI());\n\t\t\tProcessorFactory pf = c.compileFile(schemaFiles);\n\n\t\t\t/*\n\t\t\t * Check if there is an error with the ProcessorFactory.\n\t\t\t */\t\t\n\t\t\tif (pf.isError()) \n\t\t\t{\n\t\t\t\tlogger.Log(\"Processor Factory error\");\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Get a DataProcessor from the ProcessorFactory. \n\t\t\t * We use an XPath here.\n\t\t\t */\n\t\t\tDataProcessor dp = pf.onPath(\"/\");\n\n\t\t\t/*\n\t\t\t * Check if there is an error with the DataProcessor.\n\t\t\t */\n\t\t\tif (dp.isError()) \n\t\t\t{\n\t\t\t\tlogger.Log(\"Data Processor error\");\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Get a URL for the example schema resource. \n\t\t\t */\n\t\t\tURL dataUrl = getClass().getResource(\"/TestFiles/\" + Data);\n\t\t\t\n\t\t\t/*\n\t\t\t * Get a File for the test data.\n\t\t\t */\n\t\t\tFile dataFile = new File(dataUrl.toURI());\n\t\t\tFileInputStream fis = new FileInputStream(dataFile);\n\t\t\tReadableByteChannel rbc = Channels.newChannel(fis);\n\n\t\t\t/*\n\t\t\t * We try to parse the sample data.\n\t\t\t */\n\t\t\tParseResult output = dp.parse(rbc);\n\t\t\t\n\t\t\t/*\n\t\t\t * Print the output from the parse result in the console in an XML format.\n\t\t\t */\n\t\t\tDocument doc = output.result();\n\t\t\tXMLOutputter xo = new XMLOutputter();\n\t\t\txo.setFormat(Format.getPrettyFormat());\n\t\t\txo.output(doc, System.out);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tlogger.Log(e.getMessage());\n\t\t} \n\t\tcatch (URISyntaxException e) \n\t\t{\n\t\t\tlogger.Log(e.getMessage());\n\t\t}\n\t}",
"public void process(ImportData data, DBConnection conn)\n throws WBInterfaceException, SQLException{\n \n if (logger.isEnabledFor(org.apache.log4j.Level.DEBUG)) { \n logger.debug( \"SLScheduleTransaction.process: reading staging table row id \" + data.getId() );\n }\n \n this.conn = conn;\n this.data = data;\n\n SkdData skdData = new SkdData();\n skdData.initialize( data );\n \n try { \n preProcess(data, conn);\n \n ScheduleTransactionMapper stMapper = new ScheduleTransactionMapper();\n\n setValidateFieldValues(stMapper, skdData);\n stMapper.setOvrtypId(OverrideData.SCHEDULE_DETAIL_TYPE); \n \n if (ADD.equals(skdData.action)) { \n\t\t\t\taddOverride(OverrideData.SCHEDULE_DETAIL_TYPE, stMapper, skdData );\n }\n \n else if (DEL.equals(skdData.action)) {\n \tdeleteScheduleDetailOvr(stMapper.getEmpId(), skdData);\n }\n \n postProcess(data, stMapper, conn);\n \n } catch( Throwable t ) {\n status = ImportData.STATUS_ERROR;\n message = t.getMessage();\n WBInterfaceException.throwWBInterfaceException(t);\n }\n }",
"DataSet sql(HiveContext context, String sql);",
"@Override\n\tprotected Map<String, List<ProcedureParamSrc>> loadProcedures(String databaseName) throws SQLException {\n\t\t Map<String, List<ProcedureParamSrc>> ret=new HashMap<>();\n\t\t Map<String, StringBuffer> textMap=new HashMap<>();\n\t\tString sql=\"SELECT NAME,TEXT FROM ALL_SOURCE WHERE TYPE='PROCEDURE' \"\n\t\t\t\t+ \"and OWNER='\"+databaseName.toUpperCase()+\"'\"\n\t\t\t\t;\n\t\tsql+=\" order by NAME,LINE asc\";\n try(PreparedStatement preparedStatement= connection.prepareStatement(sql);\n \t\tResultSet resultSet=preparedStatement.executeQuery();){\n\t\twhile(resultSet.next()) {\n\t\t String key=resultSet.getString(1)\n\t\t\t\t ,line=resultSet.getString(2)\n\t\t\t\t ;\n\t\t StringBuffer sbr=textMap.get(key);\n\t\t if(sbr==null) {\n\t\t\t sbr=new StringBuffer(\"\");\n\t\t\t textMap.put(key, sbr);\n\t\t\t \n\t\t }\n\t\t if(line.contains(\"--\")) {\n\t\t\t line=line.substring(0,line.indexOf(\"--\"));\n\t\t\t line.replace(\"\\n\", \"\");\n\t\t }\n\t\t sbr.append(line);\n\t\t}\n }\n \n for(Entry<String, StringBuffer> ent:textMap.entrySet()) {\n \t\n \tList<ProcedureParamSrc> paramSrcs=ret.get(ent.getKey());\n \t\n \tString procName=ent.getKey();\n \tif(paramSrcs==null) {\n \t\tparamSrcs=new ArrayList<>();\n \t\tret.put(procName, paramSrcs);\n \t}\n \t\n \tString text=ent.getValue().toString(),t=text.toLowerCase(),p=\"\";\n \tint s=0,e=0;\n \ts=t.indexOf(procName.toLowerCase())+procName.length();\n \tt=t.substring(s);\n \t\n \t\n \ts=t.indexOf(\"(\");\n \t\n \tif(s>=0&&s<5) {\n \t s++;\n \t \n \t \n \t e=t.indexOf(\")\");\n \t\n \t \n \t \n \t p=t.substring(s,e-1);\n \t}\n \t\n \t\n \t\n \tString[] params=p.split(\",\");\n \tfor(String param: params) {\n \t\t// (is_used OUT number, data_ratio OUT number, clob_rest OUT clob)\n if(param.trim().length()==0)continue;\n \t\tString[] subParams=param.trim().split(\" \");\n \t\t\n \t\tObject[] _params= Stream.of(subParams)\n \t\t\t\t.filter(str->!str.isEmpty()).toArray();\n \t\t\n \t\t//System.out.println(param);\n \t\tString name=_params[0].toString().trim()\n \t\t\t\t,io=\"in\"\n \t\t\t\t,type=\"varchar2\"\n \t\t\t\t;\n \t\tif(_params.length==3) {\n \t\t\tio=_params[1].toString().trim();\n \t\ttype=_params[2].toString().trim();\n \t\t}\n \t\tProcedureParamSrc src=new ProcedureParamSrc();\n \t\tsrc.isOutput=io.toUpperCase().equals(\"out\");\n \t\tsrc.paramName=name;\n \t\tif(\"number\".equals(type)) {\n \t\t\tsrc.sqlType=Types.DOUBLE;\n \t\tsrc.cls=Double.class;\n \t\t}\n \t\telse if(\"date\".equals(type)) {\n \t\t\tsrc.sqlType=Types.DATE;\n \t\tsrc.cls=Date.class;\n \t\t}else {\n \t\t\tsrc.sqlType=Types.VARCHAR;\n \t\tsrc.cls=String.class;\n \t\t}\n \t\t\n \t\tparamSrcs.add(src);\n \t}\n \t\n }\n\t\t\n\t\t\n\t\treturn ret;\n\t}",
"interface DataTableFile extends TableDataSource {\n\n /**\n * Creates a new file of the given table. The table is initialised and\n * contains 0 row entries. If the table already exists in the database then\n * this will throw an exception.\n * <p>\n * On exit, the object will be initialised and loaded with the given table.\n *\n * @param def the definition of the table.\n */\n void create(DataTableDef def) throws IOException;\n\n /**\n * Updates a file of the given table. If the table does not exist, then it\n * is created. If the table already exists but is different, then the\n * existing table is modified to incorporate the new fields structure.\n * <p>\n * The DataTableFile must have previously been 'load(table_name)' before\n * this call.\n * <p>\n * Implementations of this method may choose to reorganise information that\n * the relational schemes are dependant on (the row order for example). If\n * this method returns 'true' then we must also reindex the schemes.\n * <p>\n * <strong>NOTE:</strong> If the new format has columns that are not\n * included in the new format then the columns are deleted.\n *\n * @param def the definition of the table.\n * @return true if the table topology has changed.\n */\n boolean update(DataTableDef def) throws IOException;\n\n /**\n * This is called periodically when this data table file requires some\n * maintenance. It is recommended that this method is called every\n * time the table is initialized (loaded).\n * <p>\n * The DataTableFile must have previously been 'load(table_name)' before\n * this call.\n * <p>\n * This method may change the topology of the rows (delete rows that are\n * marked as deleted), therefore if the method returns true you need to\n * re-index the schemes.\n *\n * @return true if the table topology was changed.\n */\n boolean doMaintenance() throws IOException;\n\n// /**\n// * A recovery method that returns a DataTableDef object for this data\n// * table file that was last used in a call to 'create' or 'update'. This\n// * information should be kept in a secondary table topology store but it\n// * is useful to keep this information in the data table file just incase\n// * something bad happens, or tables are moved to another database.\n// */\n// DataTableDef recoverLastDataTableDef() throws IOException;\n\n /**\n * Loads a previously created table. A table can be loaded in read only\n * mode, in which case any methods that write to the DataTableFile will\n * throw an IOException.\n *\n * @param table_name the name of the table.\n * @param read_only if true then the table file is opened as read-only.\n */\n void load(String table_name, boolean read_only) throws IOException;\n\n /**\n * Shuts down the table. This is called when the table is closed and the\n * resources it uses are to be freed back to the system. This is called\n * as part of the database shut down procedure or called when we want to\n * free the resources associated with this table.\n */\n void shutdown() throws IOException;\n\n /**\n * Deletes the data table file in the file system. This is used to clear\n * up resources after a table has been dropped. The table must be shut\n * down before this method is called.\n * <p>\n * NOTE: Use this with care. All data is lost!\n */\n void drop();\n\n /**\n * Flushes all information that may be cached in memory to disk. This\n * includes any relational data, any cached data that hasn't made it to\n * the file system yet. It will write out all persistant information\n * and leave the table in a state where it is fully represented in the\n * file system.\n */\n void updateFile() throws IOException;\n\n /**\n * Locks the data in the file to prevent the system overwritting entries\n * that have been marked as removed. This is necessary so we may still\n * safely read removed entries from the table while the table is locked.\n */\n void addRowsLock();\n\n /**\n * Unlocks the data in the file to indicate that the system may safely\n * overwrite removed entries in the file.\n */\n void removeRowsLock();\n\n /**\n * Returns true if the file currently has all of its rows locked.\n */\n boolean hasRowsLocked();\n\n// /**\n// * The number of rows that are currently stored in this table. This number\n// * does not include the rows that have been marked as removed.\n// */\n// int rowCount();\n\n /**\n * Returns true if the given row index points to a valid and available\n * row entry. Returns false if the row entry has been marked as removed,\n * or the index goes outside the bounds of the table.\n */\n boolean isRowValid(int record_index) throws IOException;\n\n /**\n * Adds a complete new row into the table. If the table is in a row locked\n * state, then this will always add a new entry to the end of the table.\n * Otherwise, new entries are added where entries were previously removed.\n * <p>\n * This will update any column indices that are set.\n *\n */\n int addRow(RowData row_data) throws IOException;\n\n /**\n * Removes a row from the table at the given index. This will only mark\n * the entry as removed, and will not actually remove the data. This is\n * because a process is allowed to read the data even after the row has been\n * marked as removed (if the rows have been locked).\n * <p>\n * This will update any column indices that are set.\n *\n * @param row_index the raw row index of the entry to be marked as removed.\n */\n void removeRow(int row_index) throws IOException;\n\n// /**\n// * Returns a DataCell object of the entry at the given column, row\n// * index in the table. This will always work provided there was once data\n// * stored at that index, even if the row has been marked as deleted.\n// */\n// DataCell getCellAt(int column, int row) throws IOException;\n\n /**\n * Returns a unique number. This is incremented each time it is accessed.\n */\n long nextUniqueKey() throws IOException;\n\n}",
"private void employeeStatsWithDatasetAndSql(SparkSession spark) {\n\n\t\tlog.info(\"*****employeeStatsWithDatasetAndSql*****\");\n\n\t\tDataset<Row> empData = readEmployeeData(spark);\n\n\t\tDataset<Row> deptData = readDepartmentData(spark);\n\n\t\tlog.info(\"Reading complete. Showing data\");\n\n\t\tempData.show();\n\n\t\tdeptData.show();\n\n\t\tlog.info(\"Creating views for employee and department data\");\n\n\t\tempData.createOrReplaceTempView(\"empView\");\n\t\tdeptData.createOrReplaceTempView(\"deptView\");\n\n\t\tlog.info(\"Showing details for empno 7654\");\n\n\t\tspark.sql(\n\t\t\t\t\"SELECT empno, ename, job, dname \"\n\t\t\t\t\t\t+\t\"FROM empView \"\n\t\t\t\t\t\t+\t\"INNER JOIN deptView on empView.deptno = deptView.deptno \"\n\t\t\t\t\t\t+\t\"WHERE empno = 7654\"\n\t\t\t\t)\n\t\t\t\t.show();\n\n\t}",
"private void loadDatabase()\n\t{\n\t\ttry\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Check to make sure the Bmod Database is there, if not, try \n\t\t\t\t// downloading from the website.\n\t\t\t\tif(!Files.exists(m_databaseFile))\n\t\t\t\t{\n\t\t\t\t\tFiles.createDirectories(m_databaseFile.getParent());\n\t\t\t\t\n\t\t\t\t\tbyte[] file = ExtensionPoints.readURLAsBytes(\"http://\" + Constants.API_HOST + HSQL_DATABASE_PATH);\n\t\t\t\t\tif(file.length != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tFiles.deleteIfExists(m_databaseFile);\n\t\t\t\t\t\tFiles.write(m_databaseFile, file, StandardOpenOption.CREATE, StandardOpenOption.WRITE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// make sure we have the proper scriptformat.\n\t\t\t\tsetScriptFormatCorrectly();\n\t\t\t}catch(NullPointerException|IOException ex)\n\t\t\t{\n\t\t\t\tm_logger.error(\"Could not fetch database from web.\", ex);\n\t\t\t}\n\t\t\t\n\t\n\t\t\t\n\t\t\tClass.forName(\"org.hsqldb.jdbcDriver\");\n\t\t\n\t\t\t\n\t\t\tString db = ExtensionPoints.getBmodDirectory(\"database\").toUri().getPath();\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:file:\" + db, \"sa\", \"\");\n\t\t\t\n\t\t\t// Setup Connection\n\t\t\tCSVRecordLoader ldr = new CSVRecordLoader();\n\t\t\n\t\t\t// Load all of the building independent plugins\n\t\t\tfor(Record<?> cp : ldr.getRecordPluginManagers())\n\t\t\t{\n\t\t\t\tm_logger.debug(\"Creating table: \" + cp.getTableName());\n\t\t\t\t// Create a new table\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tgetPreparedStatement(cp.getSQLTableDefn()).execute();\n\t\t\t\t} catch(SQLException ex)\n\t\t\t\t{\n\t\t\t\t\t// Table exists\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tm_logger.debug(\"Doing index:\" + cp.getIndexDefn());\n\t\t\t\t\tif(cp.getIndexDefn() != null)\n\t\t\t\t\t\tgetPreparedStatement(cp.getIndexDefn()).execute();\n\t\t\t\t}catch(SQLException ex)\n\t\t\t\t{\t// index exists\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t\tif(ex instanceof DatabaseIntegrityException)\n\t\t\t\tDatabase.handleCriticalError((DatabaseIntegrityException)ex);\n\t\t\telse\n\t\t\t\tDatabase.handleCriticalError(new DatabaseIntegrityException(ex));\n\t\t}\n\t\t\n\t}",
"@BeforeClass\n public static void loadData() throws Exception {\n XmlLoader.load( sDatabaseConnectionRule.getConnection(), LabourHoursTest.class,\n new StationCapacityData().getDataFile() );\n }",
"@Override\n\tpublic void CreateDatabaseFromFile() {\n\t\tfinal String FILENAME = \"fandv.sql\";\n\t\tint[] updates = null;\n\t\ttry {\n\t\t\tMyDatabase db = new MyDatabase();\n\t\t\tupdates = db.updateAll(FILENAME);\n\t\t} catch (FileNotFoundException | SQLException | ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Database issue\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < updates.length; i++) {\n\t\t\tsum += updates[i];\n\t\t}\n\t\tSystem.out.println(\"Number of updates: \" + sum);\n\t}",
"public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }",
"public void createDBSchema() throws NoConnectionToDBException, SQLException, IOException {\n \n InputStream in = EDACCApp.class.getClassLoader().getResourceAsStream(\"edacc/resources/edacc.sql\");\n if (in == null) {\n throw new SQLQueryFileNotFoundException();\n }\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String line;\n String text = \"\";\n String l;\n while ((line = br.readLine()) != null) {\n if (!(l = line.replaceAll(\"\\\\s\", \"\")).isEmpty() && !l.startsWith(\"--\")) {\n text += line + \" \";\n }\n }\n in.close();\n Vector<String> queries = new Vector<String>();\n String query = \"\";\n String delimiter = \";\";\n int i = 0;\n while (i < text.length()) {\n if (text.toLowerCase().startsWith(\"delimiter\", i)) {\n i += 10;\n delimiter = text.substring(i, text.indexOf(' ', i));\n i = text.indexOf(' ', i);\n } else if (text.startsWith(delimiter, i)) {\n queries.add(query);\n i += delimiter.length();\n query = \"\";\n } else {\n query += text.charAt(i);\n i++;\n }\n }\n if (!query.replaceAll(\" \", \"\").equals(\"\")) {\n queries.add(query);\n }\n boolean autoCommit = getConn().getAutoCommit();\n try {\n getConn().setAutoCommit(false);\n Statement st = getConn().createStatement();\n for (String q : queries) {\n st.execute(q);\n }\n st.close();\n getConn().commit();\n } catch (SQLException e) {\n getConn().rollback();\n throw e;\n } finally {\n getConn().setAutoCommit(autoCommit);\n }\n }",
"private void initDataLoader() {\n\t}",
"@BeforeAll\n public void init() throws SQLException, IOException {\n dataSource = DBCPDataSource.getDataSource();\n\n DatabaseUtil databaseUtil = new DatabaseUtil(dataSource);\n databaseUtil.dropTables();\n\n String initUsersTable = \"create table users (id serial primary key, email varchar not null, password varchar not null, birthday date);\";\n String initPostsTable = \"create table posts (id serial primary key, image varchar not null, caption varchar, likes integer not null default 0, userId integer not null references users(id));\";\n\n try (Connection connection = dataSource.getConnection()) {\n Statement statement = connection.createStatement();\n\n statement.execute(initUsersTable);\n statement.execute(initPostsTable);\n\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2001, 07, 24));\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2000, 01, 01));\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2001, 02, 01));\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2000, 05, 06));\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2001, 07, 24));\n }\n\n loggerUtil = new LoggerUtil();\n logFilePath = Paths.get(logDirectory, name + \".log\");\n logger = loggerUtil.initFileLogger(logFilePath.toAbsolutePath().toString(), name);\n\n Migrate migrate = new Migrate(dataSource);\n migrate.up(name);\n }",
"@Test\n\tpublic void testPopulateCustomerDataset1() throws CustomerException, LogHandlerException{\n\t\tcustomers = LogHandler.populateCustomerDataset(correctFile1);\n\t}",
"private void runSqlFromFile(String fileName) throws IOException {\n String[] sqlStatements = StreamUtils.copyToString( new ClassPathResource(fileName).getInputStream(), Charset.defaultCharset()).split(\";\");\n for (String sqlStatement : sqlStatements) {\n sqlStatement = sqlStatement.replace(\"CREATE TABLE \", \"CREATE TABLE OLD\");\n sqlStatement = sqlStatement.replace(\"REFERENCES \", \"REFERENCES OLD\");\n sqlStatement = sqlStatement.replace(\"INSERT INTO \", \"INSERT INTO OLD\");\n jdbcTemplate.execute(sqlStatement);\n }\n }",
"private void initTables() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.CREATE_CITIES.toString());\n statement.execute(INIT.CREATE_ROLES.toString());\n statement.execute(INIT.CREATE_MUSIC.toString());\n statement.execute(INIT.CREATE_ADDRESS.toString());\n statement.execute(INIT.CREATE_USERS.toString());\n statement.execute(INIT.CREATE_USERS_TO_MUSIC.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }",
"public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}"
] | [
"0.64185447",
"0.63177365",
"0.6157045",
"0.6093784",
"0.6033812",
"0.59122944",
"0.59074265",
"0.5884914",
"0.58197623",
"0.5811842",
"0.5811842",
"0.5727671",
"0.5717864",
"0.57050675",
"0.56748277",
"0.56563205",
"0.56563205",
"0.56489706",
"0.5619291",
"0.56055456",
"0.56042194",
"0.557429",
"0.5543901",
"0.5534802",
"0.5521087",
"0.5491072",
"0.54851127",
"0.54785025",
"0.5467507",
"0.546307",
"0.5461135",
"0.54606724",
"0.54600435",
"0.5450222",
"0.5438111",
"0.5437939",
"0.54373336",
"0.54280394",
"0.540689",
"0.5388688",
"0.5355334",
"0.5322893",
"0.5309533",
"0.5302154",
"0.52984214",
"0.5296839",
"0.5293904",
"0.5288867",
"0.5287379",
"0.5284356",
"0.5279904",
"0.5255198",
"0.52531445",
"0.52465814",
"0.5243879",
"0.5239599",
"0.52353114",
"0.5234894",
"0.5232789",
"0.5225827",
"0.52256525",
"0.5220154",
"0.52184623",
"0.52053934",
"0.52048934",
"0.51978195",
"0.51944184",
"0.5191184",
"0.51830226",
"0.517807",
"0.5175596",
"0.51673627",
"0.5166252",
"0.51596814",
"0.5158135",
"0.51506215",
"0.5149869",
"0.5148752",
"0.51463956",
"0.51449805",
"0.5144695",
"0.51379615",
"0.5137245",
"0.5135077",
"0.51279175",
"0.51202697",
"0.511702",
"0.51136667",
"0.51025814",
"0.509978",
"0.5098909",
"0.509669",
"0.5096437",
"0.5096417",
"0.50918406",
"0.5091666",
"0.50910246",
"0.5086511",
"0.50856584",
"0.50819504",
"0.50744236"
] | 0.0 | -1 |
Validates the agent values after initializing the default constructor | public void testEmptyConstructor() {
Agent agent = new Agent();
assertNull(agent.getName(), "Agent name should have not been initialized.");
assertNull(agent.getVersion(), "Agent version should have not been initialized.");
assertEquals(agent.toString(), "", "Agent display representation should not be valid.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testConstructor() {\n String name = \"moo\";\n String version = \"1.5\";\n\n Agent agent = new Agent(name, version);\n\n assertEquals(agent.getName(), name, \"Unexpected agent name.\");\n assertEquals(agent.getVersion(), version, \"Unexpected agent version.\");\n assertEquals(agent.toString(), name + \"/\" + version, \"Unexpected agent display representation.\");\n }",
"private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }",
"public void initialiseValues() {\n\t\tif (validationRule == null) { // NOSONAR\n\t\t\tvalidationRule = Optional.empty();\n\t\t}\n\t}",
"private Validate(){\n //private empty constructor to prevent object initiation\n }",
"private void validate() {\n Validate.notNull(uriLocatorFactory);\n Validate.notNull(preProcessorExecutor);\n }",
"public Validate() {\n }",
"private Validador() {\r\n }",
"protected ModelAgent ()\n {\n this (\"ModelAgent\");\n\n }",
"private DatabaseValidationProperties() {}",
"private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }",
"protected LearningAbstractAgent(){}",
"@Override\n\tpublic void initialize(IsValidHobby arg0) {\n\t\t\n\t}",
"private void validateInitialParams() throws IllegalArgumentException {\n if (StringUtils.isBlank(this.apiKey)) {\n throw new IllegalArgumentException(\"API key is not specified!\");\n }\n if (StringUtils.isBlank(this.baseUrl)) {\n throw new IllegalArgumentException(\"The Comet base URL is not specified!\");\n }\n }",
"public CollegeSuiteHealthCheck() {\n super();\n }",
"public BasicValidator(ValueExaminer pValueExaminer)\r\n {\r\n myValueExaminer = pValueExaminer;\r\n }",
"private void validate() throws IllegalStateException {\n if (StringUtils.isBlank(this.experimentKey)) {\n throw new IllegalStateException(\"Experiment key must be present!\");\n }\n if (!this.alive) {\n throw new IllegalStateException(\"Experiment was not initialized. You need to call init().\");\n }\n }",
"public SpecValidator() {\n\t\tsuper();\n\t}",
"public ActionProgrammer(String firstName, String lastName,\r\nString socialSecurityNumber, int month, int year, \r\ndouble wage, double pieces) {\r\nsuper(firstName, lastName, socialSecurityNumber, month, year);\r\n\r\nif (wage < 0.0) { // validate wage\r\n throw new IllegalArgumentException(\r\n \"Hourly wage must be >= 0.0\");\r\n}\r\n\r\nif ((pieces < 0.0) || (pieces > 168.0)) { // validate hours\r\n throw new IllegalArgumentException(\r\n \"Hours worked must be >= 0.0 and <= 168.0\");\r\n}\r\n\r\nthis.wage = wage;\r\nthis.pieces = pieces;\r\n}",
"public void testCtor1Accuracy() {\n ContestEligibilityValidatorException exception = new ContestEligibilityValidatorException();\n assertNotNull(\"Unable to instantiate ContestEligibilityValidatorException.\", exception);\n }",
"protected void validateAndSetValues()\n\t\t{\n\t\t\tif (null == eventDispatcher)\n\t\t\t{\n\t\t\t\teventDispatcher = new DefaultEventDispatcher();\n\t\t\t}\n\t\t\tif (null == sessionAttributes)\n\t\t\t{\n\t\t\t\tsessionAttributes = new HashMap<String, Object>();\n\t\t\t}\n\t\t\tif (null == reconnectPolicy)\n\t\t\t{\n\t\t\t\treconnectPolicy = ReconnectPolicy.NO_RECONNECT;\n\t\t\t}\n\t\t\tcreationTime = System.currentTimeMillis();\n\t\t}",
"private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }",
"public QLearnAgent() {\n\t\tthis(name);\t\n\t}",
"public BundleValidator() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void validate() {\n\t\tsuper.validate();\n\t}",
"@Test\n public void goalEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int goalId = 12135;\n int userId = 1152;\n String name = \"Test Name\";\n int timePeriod = 1;\n int unit = 2;\n double amount = 1000.52;\n\n //Create goal\n Goal goal = new Goal();\n\n goal.setGoalId(goalId);\n goal.setUserId(userId);\n goal.setGoalName(name);\n goal.setTimePeriod(timePeriod);\n goal.setUnit(unit);\n goal.setAmount(amount);\n\n // Verify Values\n assertEquals(goalId, goal.getGoalId());\n assertEquals(userId, goal.getUserId());\n assertEquals(name, goal.getGoalName());\n assertEquals(timePeriod, goal.getTimePeriod());\n assertEquals(unit, goal.getUnit());\n assertEquals(amount, goal.getAmount(),0);\n }",
"private void validateInputParameters(){\n\n }",
"public ActionsValidator() {\n super();\n }",
"protected void validate()\r\n\t{\r\n\t\tif( this.mapper==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the Mapper of this dataset.\");\r\n\t\tif( this.input_format==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the InputFormat of this dataset.\");\r\n\t\tif( this.inputs==null || this.inputs.size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the input path(s) of this dataset\");\r\n\t\tif ( this.getSchema()==null || this.getSchema().size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the schema of this dataset first\");\r\n\t}",
"@Override\n\tpublic void agentSetup() {\n\n\t\t// load the class names of each object\n\t\tString os = dagent.getOfferingStrategy().getClassname();\n\t\tString as = dagent.getAcceptanceStrategy().getClassname();\n\t\tString om = dagent.getOpponentModel().getClassname();\n\t\tString oms = dagent.getOMStrategy().getClassname();\n\n\t\t// createFrom the actual objects using reflexion\n\n\t\tofferingStrategy = BOAagentRepository.getInstance().getOfferingStrategy(os);\n\t\tacceptConditions = BOAagentRepository.getInstance().getAcceptanceStrategy(as);\n\t\topponentModel = BOAagentRepository.getInstance().getOpponentModel(om);\n\t\tomStrategy = BOAagentRepository.getInstance().getOMStrategy(oms);\n\n\t\t// init the components.\n\t\ttry {\n\t\t\topponentModel.init(negotiationSession, dagent.getOpponentModel().getParameters());\n\t\t\topponentModel.setOpponentUtilitySpace(fNegotiation);\n\t\t\tomStrategy.init(negotiationSession, opponentModel, dagent.getOMStrategy().getParameters());\n\t\t\tofferingStrategy.init(negotiationSession, opponentModel, omStrategy,\n\t\t\t\t\tdagent.getOfferingStrategy().getParameters());\n\t\t\tacceptConditions.init(negotiationSession, offeringStrategy, opponentModel,\n\t\t\t\t\tdagent.getAcceptanceStrategy().getParameters());\n\t\t\tacceptConditions.setOpponentUtilitySpace(fNegotiation);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// remove the reference to the information object such that the garbage\n\t\t// collector can remove it.\n\t\tdagent = null;\n\t}",
"private FunctionParametersValidator() {}",
"public AgentInitializationException() {\n\t\treturnValue = 0;\n\t}",
"public VariableNotSetException() {\n }",
"@Test\n public void goalCustomConstructor_isCorrect() throws Exception {\n\n int goalId = 11;\n int userId = 1152;\n String name = \"Test Name\";\n int timePeriod = 1;\n int unit = 2;\n double amount = 1000.52;\n\n\n //Create goal\n Goal goal = new Goal(goalId, userId, name, timePeriod, unit, amount);\n\n // Verify Values\n assertEquals(goalId, goal.getGoalId());\n assertEquals(userId, goal.getUserId());\n assertEquals(name, goal.getGoalName());\n assertEquals(timePeriod, goal.getTimePeriod());\n assertEquals(unit, goal.getUnit());\n assertEquals(amount, goal.getAmount(),0);\n }",
"public Validation() {\n }",
"public RoadAgentBehaviour(Agent a)\r\n\t\t{\r\n\t\t\tsuper(a);\r\n\t\t}",
"private CheckingTools() {\r\n super();\r\n }",
"private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }",
"protected void validate() throws Exception{\t\n\t\tsuper.validate();\n\t\tvalidateProperty(PROPERTY_KEY_USERNAME);\n\t}",
"public ValidationComponent ()\n\t\t{\n\t\t}",
"void initialize (ZyniAgent agent, Object ... args);",
"private void initValues() {\n \n }",
"public ValidateConfiguration() {\n super();\n }",
"protected void validate() {\n // no implementation.\n }",
"public static void init(){\t\t\n\t\tParameters p = RunEnvironment.getInstance().getParameters();\n\n\t\tSIM_RANDOM_SEED = (Integer)p.getValue(\"randomSeed\");\n\t\tSIM_NUM_AGENTS = (Integer)p.getValue(\"maxAgents\");\n\t\tSIM_NORM_VIOLATION_RATE = (Float) p.getValue(\"Norm Violation Rate\");\n\t\tNUM_TICKS_TO_CONVERGE = (Long)p.getValue(\"NumTicksToConverge\");\n\t\tCONTENTS_QUEUE_SIZE = (Long)p.getValue(\"ContentsQueueSize\");\n\t\t\n\t\tNORM_GEN_EFF_THRESHOLD = (Double)p.getValue(\"NormsGenEffThreshold\");\n\t\tNORM_GEN_NEC_THRESHOLD = (Double)p.getValue(\"NormsGenNecThreshold\");\n\t\tNORM_SPEC_EFF_THRESHOLD = (Double)p.getValue(\"NormsSpecEffThreshold\");\n\t\tNORM_SPEC_NEC_THRESHOLD = (Double)p.getValue(\"NormsSpecNecThreshold\");\n\t\tNORM_UTILITY_WINDOW_SIZE = (Integer)p.getValue(\"NormsPerfRangeSize\");\n\t\tNORM_DEFAULT_UTILITY = (Double)p.getValue(\"NormsDefaultUtility\");\n\n\t\tNORM_SYNTHESIS_STRATEGY = (Integer)p.getValue(\"NormSynthesisStrategy\");\n\t\tNORM_GENERATION_REACTIVE = (Boolean)p.getValue(\"NormGenerationReactive\");\n\t\tNORM_GENERALISATION_MODE = (Integer)p.getValue(\"NormGeneralisationMode\");\n\t\tNORM_GENERALISATION_STEP = (Integer)p.getValue(\"NormGeneralisationStep\");\n\t\tNORM_SPEC_THRESHOLD_EPSILON = (Double)p.getValue(\"NormsSpecThresholdEpsilon\");\n\t\tNORMS_MIN_EVALS_CLASSIFY = (Integer)p.getValue(\"NormsMinEvaluationsToClassify\");\n\t\tNORMS_WITH_USER_ID = (Boolean)p.getValue(\"NormsWithUserId\");\n\n\t\t\n\t\t\n\t\t// System goals and their constants\n\t\tsystemGoals = new ArrayList<Goal>();\n\t\tsystemGoals.add(new GComplaints());\n\n\t\t//\t\tdouble tMinusEpsilon = NORM_SPEC_NEC_THRESHOLD - NORM_SPEC_THRESHOLD_EPSILON;\n\t\t//\t\t\n\t\t//\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\t//\t\tif(NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) {\n\t\t//\t\t\tNORM_DEFAULT_UTILITY = (float)(tMinusEpsilon * (NORM_MIN_EVALS+1)); \n\t\t//\t\t}\n\n\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\tif((NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) &&\n\t\t\t\t!NORM_GENERATION_REACTIVE) \n\t\t{\n\t\t\tNORM_DEFAULT_UTILITY = 0f; \n\t\t\tSystem.out.println(\"Norm generation is set as Deliberative\");\n\t\t}\n\t}",
"public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }",
"@Override\r\n public void validate() {\r\n }",
"protected void InitValuables() {\n\t\tsuper.InitValuables();\n\t\t\n\t}",
"@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}",
"@Override\n\tpublic void validate()\n\t{\n\n\t}",
"public void validate() {\n String prefix = this.getClass().getSimpleName() + \" Error: \";\n // validate the config\n if (this.defaultCfg.getScript() == null) {\n throw new IllegalArgumentException(prefix + \"default script is required\");\n }\n if (this.baseHDFSDir == null) {\n throw new IllegalArgumentException(prefix + \"baseHDFSDir is required\");\n }\n\n if (!this.baseHDFSDir.endsWith(\"/\")) {\n setBaseHDFSDir(this.baseHDFSDir + \"/\");\n }\n\n if (this.socketPort < 1025 || socketPort > 65534) {\n throw new IllegalArgumentException(prefix + \"socketPort is required and must be greater than 1024 and less than 65535\");\n }\n\n if (this.flagFileDirectory == null) {\n throw new IllegalArgumentException(prefix + \"flagFileDirectory is required\");\n }\n\n if (this.defaultCfg.getMaxFlags() < 1) {\n throw new IllegalArgumentException(prefix + \"Default Max Flags must be set.\");\n }\n\n if (this.distributorType == null || !this.distributorType.matches(\"(simple|date|folderdate)\")) {\n throw new IllegalArgumentException(\n \"Invalid Distributor type provided: \" + this.distributorType + \". Must be one of the following: simple|date|folderdate\");\n }\n\n for (FlagDataTypeConfig cfg : this.flagCfg) {\n if (cfg.getInputFormat() == null)\n throw new IllegalArgumentException(\"Input Format Class must be specified for data type: \" + cfg.getDataName());\n if (cfg.getIngestPool() == null)\n throw new IllegalArgumentException(\"Ingest Pool must be specified for data type: \" + cfg.getDataName());\n if (cfg.getFlagCountThreshold() == FlagMakerConfig.UNSET) {\n cfg.setFlagCountThreshold(this.flagCountThreshold);\n }\n if (cfg.getTimeoutMilliSecs() == FlagMakerConfig.UNSET) {\n cfg.setTimeoutMilliSecs(this.timeoutMilliSecs);\n }\n cfg.setLast(System.currentTimeMillis() + cfg.getTimeoutMilliSecs());\n if (cfg.getMaxFlags() < 1) {\n cfg.setMaxFlags(this.defaultCfg.getMaxFlags());\n }\n if (cfg.getReducers() < 1) {\n cfg.setReducers(this.defaultCfg.getReducers());\n }\n if (cfg.getScript() == null || \"\".equals(cfg.getScript())) {\n cfg.setScript(this.defaultCfg.getScript());\n }\n if (cfg.getFileListMarker() == null || \"\".equals(cfg.getFileListMarker())) {\n cfg.setFileListMarker(this.defaultCfg.getFileListMarker());\n }\n if (cfg.getFileListMarker() != null) {\n if (cfg.getFileListMarker().indexOf(' ') >= 0) {\n throw new IllegalArgumentException(prefix + \"fileListMarker cannot contain spaces\");\n }\n }\n if (cfg.getCollectMetrics() == null || \"\".equals(cfg.getCollectMetrics())) {\n cfg.setCollectMetrics(this.defaultCfg.getCollectMetrics());\n }\n List<String> folders = cfg.getFolder();\n if (folders == null || folders.isEmpty()) {\n folders = new ArrayList<>();\n cfg.setFolder(folders);\n // add the default path. we'll bomb later if it's not there.\n folders.add(cfg.getDataName());\n }\n List<String> fixedFolders = new ArrayList<>();\n for (int i = 0; i < folders.size(); i++) {\n for (String folder : StringUtils.split(folders.get(i), ',')) {\n folder = folder.trim();\n // let someone specify an absolute path.\n if (!folder.startsWith(\"/\")) {\n fixedFolders.add(this.baseHDFSDir + folder);\n } else {\n fixedFolders.add(folder);\n }\n }\n }\n cfg.setFolder(fixedFolders);\n }\n }",
"public MyPractice()\n\t{\n\t\t//Unless we specify values all data members\n\t\t//are a zero, false, or null\n\t}",
"@Override\n protected void validateReporterParms() throws IOException, ParseFailureException {\n if (this.minPctSubject < 0.0 || this.minPctSubject > 100.0)\n throw new ParseFailureException(\"Minimum subject percent must be between 0 and 100.\");\n if (this.eValue < 0.0)\n throw new ParseFailureException(\"Maximum eValue cannot be negative.\");\n // Insure we have a silva database.\n if (! this.silvaFile.canRead())\n throw new FileNotFoundException(\"Silva FASTA file \" + this.silvaFile + \" is not found or unreadable.\");\n // Insure we have a genome source.\n if (! this.genomeDir.exists())\n throw new FileNotFoundException(\"Input genome source \" + this.genomeDir + \" does not exist.\");\n // Build or load the BLAST database. Note we have to convert the possible InterruptedException.\n try {\n log.info(\"Connecting to BLAST database at {}.\", this.silvaFile);\n this.silvaDB = DnaBlastDB.createOrLoad(this.silvaFile, 11);\n } catch (InterruptedException e) {\n throw new IOException(\"Interruption during BLAST database make: \" + e.toString());\n }\n // Connect to the genome source.\n log.info(\"Loading genomes at {}.\", this.genomeDir);\n this.genomes = this.sourceType.create(this.genomeDir);\n log.info(\"{} genomes found in {}.\", this.genomes.size(), this.genomeDir);\n // Create the blast parameters.\n this.parms = new BlastParms().maxE(this.eValue).pctLenOfSubject(this.minPctSubject);\n }",
"private InterpreterDependencyChecks() {\r\n\t\t// Hides default constructor\r\n\t}",
"public void validate() {\n Validate.notEmpty(filePath, \"Configuration file path not specified\");\n Validate.notEmpty(fileEncoding, \"Configuration file encoding not specified\");\n Validate.notEmpty(syntaxCheckCommand, \"Syntax check command not specified\");\n Validate.notEmpty(restartCommand, \"Restart command not specified\");\n Validate.notNull(hostName, \"Host name not specified\");\n Validate.isTrue(port > 0, \"Port must be greater than zero\");\n Validate.isTrue(checkInterval > 0, \"Health check interval must be greater than zero\");\n Validate.isTrue(checkTimeout > 0, \"Health check timeout must be greater than zero\");\n }",
"protected void validate() {\n // no op\n }",
"private ValidationError() {\n }",
"public AdvConditionParser()\n{\n //nothing to do\n}",
"protected Agent(){\n\t\trand = SeededRandom.getGenerator();\n\t}",
"public AgentTable() {\n this(\"agent\", null);\n }",
"private void validateProperties() throws BuildException {\r\n if (this.port == null || this.port.length() == 0) {\r\n throw new BuildException(\"Attribute 'port' must be set.\");\r\n }\r\n if (this.depotPath == null || this.depotPath.length() == 0) {\r\n throw new BuildException(\"Attribute 'repositoryUrl' must be set.\");\r\n }\r\n if (this.userName == null || this.userName.length() == 0) {\r\n throw new BuildException(\"Attribute 'userName' must be set.\");\r\n }\r\n if (this.password == null || this.password.length() == 0) {\r\n throw new BuildException(\"Attribute 'password' must be set.\");\r\n }\r\n if (this.depotPath == null || this.depotPath.length() == 0) {\r\n throw new BuildException(\"Attribute 'repositoryUrl' must be set.\");\r\n }\r\n if (this.p4ExecutablePath == null || this.p4ExecutablePath.length() == 0) {\r\n throw new BuildException(\"Attribute 'p4ExecutablePath' must be set.\");\r\n }\r\n File p4Executable = new File(this.p4ExecutablePath);\r\n if (!p4Executable.exists()) {\r\n throw new BuildException(\"Attribute 'p4ExecutablePath' \" + this.p4ExecutablePath +\r\n \" does not appear to point to an actual file.\");\r\n }\r\n \r\n // If default* is specified, then all should be specified. \r\n if (((this.defaultHackystatAccount != null) || \r\n (this.defaultHackystatPassword != null) ||\r\n (this.defaultHackystatSensorbase != null)) &&\r\n ((this.defaultHackystatAccount == null) || \r\n (this.defaultHackystatPassword == null) ||\r\n (this.defaultHackystatSensorbase == null))) {\r\n throw new BuildException (\"If one of default Hackystat account, password, or sensorbase \" +\r\n \"is specified, then all must be specified.\");\r\n }\r\n \r\n // Check to make sure that defaultHackystatAccount looks like a real email address.\r\n if (!ValidateEmailSyntax.isValid(this.defaultHackystatAccount)) {\r\n throw new BuildException(\"Attribute 'defaultHackystatAccount' \" + this.defaultHackystatAccount\r\n + \" does not appear to be a valid email address.\");\r\n }\r\n \r\n // If fromDate and toDate not set, we extract commit information for the previous day.\r\n if (this.fromDateString == null && this.toDateString == null) {\r\n Day previousDay = Day.getInstance().inc(-1);\r\n this.fromDate = new Date(previousDay.getFirstTickOfTheDay() - 1);\r\n this.toDate = new Date(previousDay.getLastTickOfTheDay());\r\n }\r\n else {\r\n try {\r\n if (this.hasSetToAndFromDates()) {\r\n this.fromDate = new Date(Day.getInstance(this.dateFormat.parse(this.fromDateString))\r\n .getFirstTickOfTheDay() - 1);\r\n this.toDate = new Date(Day.getInstance(this.dateFormat.parse(this.toDateString))\r\n .getLastTickOfTheDay());\r\n }\r\n else {\r\n throw new BuildException(\r\n \"Attributes 'fromDate' and 'toDate' must either be both set or both not set.\");\r\n }\r\n }\r\n catch (ParseException ex) {\r\n throw new BuildException(\"Unable to parse 'fromDate' or 'toDate'.\", ex);\r\n }\r\n\r\n if (this.fromDate.compareTo(this.toDate) > 0) {\r\n throw new BuildException(\"Attribute 'fromDate' must be a date before 'toDate'.\");\r\n }\r\n }\r\n }",
"public MyAgent(World world)\n {\n w = world; \n }",
"public Agent(String name, double commissionRate) throws ValueOutOfRangeException {\n this.name = name;\n this.collectionOfCurrentListings = new ArrayList<>();\n this.checkCommissionRate(commissionRate);\n this.commissionRate = commissionRate;\n this.totalEarnings = 0;\n }",
"@Override\r\n\tprotected void validate() {\n\t}",
"public void init() {\n\t\tif (this.getAuthority() == null) {\n\t\t\tthrow new EpDomainException(\"Authority for CustomerRole is not set.\");\n\t\t}\n\t}",
"public void testCtor4Accuracy() {\n ContestEligibilityValidatorException exception =\n new ContestEligibilityValidatorException(MESSAGE, CAUSE);\n assertNotNull(\"Unable to instantiate ContestEligibilityValidatorException.\", exception);\n assertEquals(\"Error message is not properly propagated to super class.\", MESSAGE, exception\n .getMessage());\n assertEquals(\"Cause is not properly propagated to super class.\", CAUSE, exception.getCause());\n }",
"@PostConstruct\n public void init() {\n hasLength(env.getProperty(\"grouperClient.webService.url\"),\n \"property 'grouperClient.webService.url' is required\");\n hasLength(env.getProperty(\"grouperClient.webService.login\"),\n \"property 'grouperClient.webService.login' is required\");\n hasLength(env.getProperty(\"grouperClient.webService.password\"),\n \"property 'grouperClient.webService.password' is required\");\n }",
"public Skill(Agent agent) {\n\t\tsuper(agent);\n\t}",
"private void validateContext() {\n\t\tif (irodsAccessObjectFactory == null) {\n\t\t\tthrow new JargonRuntimeException(\"null irodsAccessObjectFactory\");\n\t\t}\n\n\t\tif (dataProfilerSettings == null) {\n\t\t\tthrow new JargonRuntimeException(\"null dataProfilerSettings\");\n\t\t}\n\n\t\tif (dataTypeResolutionServiceFactory == null) {\n\t\t\tthrow new IllegalArgumentException(\"null dataTypeResolutionServiceFactory\");\n\t\t}\n\n\t}",
"public void initDefaultValues() {\n }",
"@Override\n\tpublic void initializeValues() {\n\n\t}",
"private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }",
"ValidatorImp() throws RemoteException {\n\t\tsuper();\n\t}",
"private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }",
"protected void setup(){\n\n\t\tsuper.setup();\n\n\t\tfinal Object[] args = getArguments();\n\t\tif(args!=null && args[0]!=null && args[1]!=null){\n\t\t\tdeployAgent((Environment) args[0],(EntityType)args[1]);\n\t\t}else{\n\t\t\tSystem.err.println(\"Malfunction during parameter's loading of agent\"+ this.getClass().getName());\n System.exit(-1);\n }\n\t\t\n\t\t//############ PARAMS ##########\n\n\t\tthis.nbmodifsmin \t\t= 30;\t\t\t//nb modifs minimum pour renvoyer la carte\n\t\tthis.timeOut \t\t\t= 1000 * 4;\t\t//secondes pour timeout des messages (*1000 car il faut en ms)\n\t\tthis.sleepbetweenmove \t= 200;\t\t\t//in MS\n\t\tthis.nbmoverandom\t\t= 4;\t\t\t// nb random moves by default\n\t\t\n\t\t//#############################\n\t\t//setup graph\n\t\t//setupgraph();\n\t\tthis.graph = new SingleGraph(\"graphAgent\");\n\t\tinitMyGraph();\n\t\tthis.step = 0;\n\t\tthis.stepMap = new HashMap<String, Integer>();\n\t\tthis.path = new ArrayList<String>();\n\t\tthis.mailbox = new Messages(this);\n\t\tthis.lastMsg = null;\n\t\tthis.switchPath = true;\n\t\tthis.lastsender = null;\n\t\tthis.lastSentMap = new HashMap<String, Integer>(); //nbmodifs\n\t\tthis.remakepath = false; // changes to true if the map changed in a way that requires a new path\n\t\tthis.nbmoverandomoriginal = this.nbmoverandom;\n\t\t\n\t\tthis.toSendMap = new HashMap<String, Graph>(); //actual hashmap graph\n\t\t\n\t\tSystem.out.println(\"the agent \"+this.getLocalName()+ \" is started\");\n\t}",
"public Agent(Point start, Point goal) {\n mStart = start;\n mGoal = goal;\n }",
"public void validate() {\n transportStats.validate(this);\n\n for (String unitName : produces) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit name \" + unitName + \" in build unit stats\");\n }\n\n for (Map.Entry<String, String> entry : buildCities.entrySet()) {\n String terrainName = entry.getKey();\n String cityName = entry.getValue();\n Args.validate(!TerrainFactory.hasTerrainForName(terrainName), \"Illegal terrain \" + terrainName + \" in build cities stats\");\n Args.validate(!CityFactory.hasCityForName(cityName), \"Illegal city \" + cityName + \" in build cities stats\");\n }\n\n for (String unitName : supplyUnits) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units stats\");\n }\n\n for (String unitName : supplyUnitsInTransport) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units in transport stats\");\n }\n\n Args.validate(StringUtil.hasContent(primaryWeaponName) && !WeaponFactory.hasWeapon(primaryWeaponName),\n \"Illegal primary weapon \" + primaryWeaponName + \" for unit \" + name);\n Args.validate(StringUtil.hasContent(secondaryWeaponName) && !WeaponFactory.hasWeapon(secondaryWeaponName),\n \"Illegal secondary weapon \" + secondaryWeaponName + \" for unit \" + name);\n }",
"@Test\n\tpublic final void testConstructorValues() throws MPIException {\n\t\tblock.startCommunication();\n\t\tassertEquals(elementsPerDim, block.getElementsPerDim());\n\t\tverifyInnerValues(block, values);\n\t\tverifyGhostRegionValues(block);\n\t\tblock.finishCommunication();\n\t}",
"public void testCtor_NullManager() {\n try {\n new AddActionStateAction(state, activityGraph, null);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }",
"public void validateComponent() throws org.apache.ant.common.util.ExecutionException {\n if (name == null) {\n throw new org.apache.ant.common.util.ExecutionException(\"\\\"name\\\" attribute of \" + \"<property> must be supplied\");\n }\n if (value == null) {\n throw new org.apache.ant.common.util.ExecutionException(\"\\\"value\\\" attribute of \" + \"<property> must be supplied\");\n }\n }",
"@Override\n\tpublic void initVerify() {\n\t\t\n\t}",
"private Agent createAgent(Class agentClass, Vertex vertex,\n Hashtable defaultAgentValues) {\n Agent ag;\n\n try {\n\n ProcessData data = new ProcessData();\n\n ag = (Agent) agentClass.getConstructor().newInstance();\n ag.setSimulator(this);\n ag.setWhiteBoard(defaultAgentValues);\n\t data.vertex = vertex;\n data.agent = ag;\n agents.put(ag, data);\n\n\t addAgentToVertex(vertex, ag);\n\n } catch (Exception e) {\n throw new IllegalArgumentException(e);\n }\n\n stats.add(new AgentCreationStat(ag.getClass()));\n\n return ag;\n }",
"public Odi11AgentImpl() {\n }",
"public Evaluador() {\n aL = new Arguments();\n }",
"public void checkInit() {\r\n super.checkInit();\r\n ValidationUtility.checkNotNull(groupService, \"groupService\",\r\n SecurityGroupsActionConfigurationException.class);\r\n }",
"@Override\n\tpublic void validate() {\n\t}",
"public Valvula(){}",
"private void setDefaultValues()\r\n\t{\r\n\t\tif (m_receiverAddress == null || m_receiverAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_receiverAddress = \"[email protected]\";\r\n\t\t}\r\n\r\n\t\tif (m_replyAddress == null || m_replyAddress.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_replyAddress = \"no return\";\r\n\t\t}\r\n\r\n\t\tif (m_senderName == null || m_senderName.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_senderName = \"Unknown Sender\";\r\n\t\t}\r\n\r\n\t\tif (m_subject == null || m_subject.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_subject = \"AN.ON support request\";\r\n\t\t}\r\n\r\n\t\tif (m_bodyText == null || m_bodyText.equals(\"\") )\r\n\t\t{\r\n\t\t\tm_bodyText = \"message is empty\";\r\n\t\t}\r\n\r\n\t}",
"private RiValCrossValidatedRecsys() {\n }",
"public void testCtor2Accuracy() {\n ContestEligibilityValidatorException exception = new ContestEligibilityValidatorException(MESSAGE);\n assertNotNull(\"Unable to instantiate ContestEligibilityValidatorException.\", exception);\n assertEquals(\"Error message is not properly propagated to super class.\", MESSAGE, exception\n .getMessage());\n }",
"protected void checkInitialized() {\n \tcheckState(this.breeder!=null && this.threads!=null, \"Local state was not correctly set after being deserialized.\");\n }",
"public CheckingAccount() {\n super(); \n }",
"@Override\n\tpublic void initialize(MyConstraint constraint) {\n\t\tSystem.out.println(\"this is my validator init \");\n\t}",
"@PostConstruct\n private void postConstruct() {\n if (customValue == null) {\n throw new RuntimeException(\"[customValue] property is not set \");\n }\n if (customSecondValue == null) {\n throw new RuntimeException(\"[customSecondValue] property is not set \");\n }\n }",
"@Before\n public void initValidString() {\n appStateParcel = new AppStateParcel();\n sessionParcel = new SessionParcel();\n evaluationParcel = new EvaluationParcel();\n appStateParcel.setAppMode(AppStateParcel.NORMAL_MODE);\n appStateParcel.setUserType(AppStateParcel.TEACHER);\n appStateParcel.setUserId(\"1\");\n appStateParcel.setToken(TOKEN);\n }",
"public fbStatusPostingValidation() {\n\t\tsuper();\t\n\t}",
"protected void initialize() {}",
"protected void initialize() {}",
"private void checkInitialization()\r\n\t{\r\n\t\tif ( !initialized )\r\n\t\t{\r\n\t\t\tthrow new SecurityException( \"Calculator is not properly initialized.\" );\r\n\t\t}//end if\r\n\t}",
"@Test\n public void testElfConstructor()\n {\n Elf elf1 = new Elf();\n assertTrue(elf1.getHealth() <= elf1.getMaxHP());\n assertTrue(elf1.getHealth() >= elf1.getMinHP());\n assertTrue(elf1.getStrength() <= elf1.getMaxStr());\n assertTrue(elf1.getStrength() >= elf1.getMinStr());\n }",
"protected Analyzer() {\n super();\n this.inputClasses = null;\n this.outputFeatures = null;\n this.producesRankings = false;\n this.producesScores = false;\n }"
] | [
"0.6300563",
"0.61675054",
"0.6131758",
"0.6091594",
"0.6041405",
"0.598475",
"0.596037",
"0.59183246",
"0.5826038",
"0.579244",
"0.57904714",
"0.57870716",
"0.57549214",
"0.5750004",
"0.57122105",
"0.5693419",
"0.56887025",
"0.56842446",
"0.5674261",
"0.56737614",
"0.56700563",
"0.5651479",
"0.5636121",
"0.5633926",
"0.5608243",
"0.56036913",
"0.5590792",
"0.5576241",
"0.5564421",
"0.55511755",
"0.55506736",
"0.55251646",
"0.552198",
"0.5511071",
"0.5506118",
"0.5503221",
"0.54959494",
"0.54944223",
"0.54938745",
"0.5490728",
"0.54876065",
"0.5487528",
"0.5483658",
"0.547835",
"0.54752135",
"0.5474301",
"0.54616517",
"0.5460423",
"0.54553753",
"0.543173",
"0.5430684",
"0.5428419",
"0.54226553",
"0.542223",
"0.5420057",
"0.54126436",
"0.54125583",
"0.54100037",
"0.54090476",
"0.54079777",
"0.54074144",
"0.54045784",
"0.5401649",
"0.5397486",
"0.53964955",
"0.53929764",
"0.53808314",
"0.53801596",
"0.53782856",
"0.5374191",
"0.5369487",
"0.53635293",
"0.53615516",
"0.5360412",
"0.53557205",
"0.5355497",
"0.5354989",
"0.53484696",
"0.5346631",
"0.534084",
"0.5339751",
"0.53321457",
"0.53279924",
"0.53185165",
"0.5317867",
"0.5317616",
"0.5317202",
"0.53164124",
"0.53138036",
"0.5313529",
"0.531244",
"0.53124344",
"0.53064966",
"0.52903694",
"0.5284506",
"0.5273755",
"0.5273755",
"0.5273092",
"0.5270699",
"0.5270579"
] | 0.6042375 | 4 |
Validates the agent values after initializing the main constructor | public void testConstructor() {
String name = "moo";
String version = "1.5";
Agent agent = new Agent(name, version);
assertEquals(agent.getName(), name, "Unexpected agent name.");
assertEquals(agent.getVersion(), version, "Unexpected agent version.");
assertEquals(agent.toString(), name + "/" + version, "Unexpected agent display representation.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initializeAgent() {\n if (Math.random() < PROBABILITY_START_WITH_AGENT) {\n agent = new SugarscapeAgent();\n }\n }",
"private void validate() {\n Validate.notNull(uriLocatorFactory);\n Validate.notNull(preProcessorExecutor);\n }",
"private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }",
"public static void init(){\t\t\n\t\tParameters p = RunEnvironment.getInstance().getParameters();\n\n\t\tSIM_RANDOM_SEED = (Integer)p.getValue(\"randomSeed\");\n\t\tSIM_NUM_AGENTS = (Integer)p.getValue(\"maxAgents\");\n\t\tSIM_NORM_VIOLATION_RATE = (Float) p.getValue(\"Norm Violation Rate\");\n\t\tNUM_TICKS_TO_CONVERGE = (Long)p.getValue(\"NumTicksToConverge\");\n\t\tCONTENTS_QUEUE_SIZE = (Long)p.getValue(\"ContentsQueueSize\");\n\t\t\n\t\tNORM_GEN_EFF_THRESHOLD = (Double)p.getValue(\"NormsGenEffThreshold\");\n\t\tNORM_GEN_NEC_THRESHOLD = (Double)p.getValue(\"NormsGenNecThreshold\");\n\t\tNORM_SPEC_EFF_THRESHOLD = (Double)p.getValue(\"NormsSpecEffThreshold\");\n\t\tNORM_SPEC_NEC_THRESHOLD = (Double)p.getValue(\"NormsSpecNecThreshold\");\n\t\tNORM_UTILITY_WINDOW_SIZE = (Integer)p.getValue(\"NormsPerfRangeSize\");\n\t\tNORM_DEFAULT_UTILITY = (Double)p.getValue(\"NormsDefaultUtility\");\n\n\t\tNORM_SYNTHESIS_STRATEGY = (Integer)p.getValue(\"NormSynthesisStrategy\");\n\t\tNORM_GENERATION_REACTIVE = (Boolean)p.getValue(\"NormGenerationReactive\");\n\t\tNORM_GENERALISATION_MODE = (Integer)p.getValue(\"NormGeneralisationMode\");\n\t\tNORM_GENERALISATION_STEP = (Integer)p.getValue(\"NormGeneralisationStep\");\n\t\tNORM_SPEC_THRESHOLD_EPSILON = (Double)p.getValue(\"NormsSpecThresholdEpsilon\");\n\t\tNORMS_MIN_EVALS_CLASSIFY = (Integer)p.getValue(\"NormsMinEvaluationsToClassify\");\n\t\tNORMS_WITH_USER_ID = (Boolean)p.getValue(\"NormsWithUserId\");\n\n\t\t\n\t\t\n\t\t// System goals and their constants\n\t\tsystemGoals = new ArrayList<Goal>();\n\t\tsystemGoals.add(new GComplaints());\n\n\t\t//\t\tdouble tMinusEpsilon = NORM_SPEC_NEC_THRESHOLD - NORM_SPEC_THRESHOLD_EPSILON;\n\t\t//\t\t\n\t\t//\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\t//\t\tif(NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) {\n\t\t//\t\t\tNORM_DEFAULT_UTILITY = (float)(tMinusEpsilon * (NORM_MIN_EVALS+1)); \n\t\t//\t\t}\n\n\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\tif((NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) &&\n\t\t\t\t!NORM_GENERATION_REACTIVE) \n\t\t{\n\t\t\tNORM_DEFAULT_UTILITY = 0f; \n\t\t\tSystem.out.println(\"Norm generation is set as Deliberative\");\n\t\t}\n\t}",
"private void validate() throws IllegalStateException {\n if (StringUtils.isBlank(this.experimentKey)) {\n throw new IllegalStateException(\"Experiment key must be present!\");\n }\n if (!this.alive) {\n throw new IllegalStateException(\"Experiment was not initialized. You need to call init().\");\n }\n }",
"private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }",
"private void validateInputParameters(){\n\n }",
"public void initialiseValues() {\n\t\tif (validationRule == null) { // NOSONAR\n\t\t\tvalidationRule = Optional.empty();\n\t\t}\n\t}",
"private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}",
"private void checkInitialization()\r\n\t{\r\n\t\tif ( !initialized )\r\n\t\t{\r\n\t\t\tthrow new SecurityException( \"Calculator is not properly initialized.\" );\r\n\t\t}//end if\r\n\t}",
"private void validateInitialParams() throws IllegalArgumentException {\n if (StringUtils.isBlank(this.apiKey)) {\n throw new IllegalArgumentException(\"API key is not specified!\");\n }\n if (StringUtils.isBlank(this.baseUrl)) {\n throw new IllegalArgumentException(\"The Comet base URL is not specified!\");\n }\n }",
"private void validateContext() {\n\t\tif (irodsAccessObjectFactory == null) {\n\t\t\tthrow new JargonRuntimeException(\"null irodsAccessObjectFactory\");\n\t\t}\n\n\t\tif (dataProfilerSettings == null) {\n\t\t\tthrow new JargonRuntimeException(\"null dataProfilerSettings\");\n\t\t}\n\n\t\tif (dataTypeResolutionServiceFactory == null) {\n\t\t\tthrow new IllegalArgumentException(\"null dataTypeResolutionServiceFactory\");\n\t\t}\n\n\t}",
"private void init() {\n dominator = \"\";\n firstBlood = false;\n jLabel1.setIcon(new ImageIcon(getClass().getResource(\"/multiagent/resources/title.jpg\")));\n dialog = new ConfigurationDlg(this, true);\n setTitle(\"Game server\");\n agentList = new ArrayList<>();\n playerCount = 0;\n running = true;\n aborted = true;\n playersAgentsMap = new HashMap<>();\n iPlayerList = new HashMap<>();\n agentsOnSpawn = new String[][]{{\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}};\n String selected = String.valueOf(dialog.getFieldDimension().getSelectedItem());\n String selected2 = String.valueOf(dialog.getTightnessField().getSelectedItem());\n playingField = new PlayingField(Integer.parseInt(dialog.getResourceField().getText()),\n Integer.parseInt(selected.substring(selected.indexOf(\"x\") + 1)),\n Integer.parseInt(selected2.substring(0, selected2.indexOf(\"%\"))),\n agentList,\n playerCount,\n Integer.parseInt(String.valueOf(dialog.getCountAgents().getSelectedItem())));\n setLocationRelativeTo(null);\n pack();\n }",
"protected void checkInitialized() {\n \tcheckState(this.breeder!=null && this.threads!=null, \"Local state was not correctly set after being deserialized.\");\n }",
"private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }",
"@Override\n protected void validateReporterParms() throws IOException, ParseFailureException {\n if (this.minPctSubject < 0.0 || this.minPctSubject > 100.0)\n throw new ParseFailureException(\"Minimum subject percent must be between 0 and 100.\");\n if (this.eValue < 0.0)\n throw new ParseFailureException(\"Maximum eValue cannot be negative.\");\n // Insure we have a silva database.\n if (! this.silvaFile.canRead())\n throw new FileNotFoundException(\"Silva FASTA file \" + this.silvaFile + \" is not found or unreadable.\");\n // Insure we have a genome source.\n if (! this.genomeDir.exists())\n throw new FileNotFoundException(\"Input genome source \" + this.genomeDir + \" does not exist.\");\n // Build or load the BLAST database. Note we have to convert the possible InterruptedException.\n try {\n log.info(\"Connecting to BLAST database at {}.\", this.silvaFile);\n this.silvaDB = DnaBlastDB.createOrLoad(this.silvaFile, 11);\n } catch (InterruptedException e) {\n throw new IOException(\"Interruption during BLAST database make: \" + e.toString());\n }\n // Connect to the genome source.\n log.info(\"Loading genomes at {}.\", this.genomeDir);\n this.genomes = this.sourceType.create(this.genomeDir);\n log.info(\"{} genomes found in {}.\", this.genomes.size(), this.genomeDir);\n // Create the blast parameters.\n this.parms = new BlastParms().maxE(this.eValue).pctLenOfSubject(this.minPctSubject);\n }",
"private Validate(){\n //private empty constructor to prevent object initiation\n }",
"public void validate() {\n transportStats.validate(this);\n\n for (String unitName : produces) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit name \" + unitName + \" in build unit stats\");\n }\n\n for (Map.Entry<String, String> entry : buildCities.entrySet()) {\n String terrainName = entry.getKey();\n String cityName = entry.getValue();\n Args.validate(!TerrainFactory.hasTerrainForName(terrainName), \"Illegal terrain \" + terrainName + \" in build cities stats\");\n Args.validate(!CityFactory.hasCityForName(cityName), \"Illegal city \" + cityName + \" in build cities stats\");\n }\n\n for (String unitName : supplyUnits) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units stats\");\n }\n\n for (String unitName : supplyUnitsInTransport) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units in transport stats\");\n }\n\n Args.validate(StringUtil.hasContent(primaryWeaponName) && !WeaponFactory.hasWeapon(primaryWeaponName),\n \"Illegal primary weapon \" + primaryWeaponName + \" for unit \" + name);\n Args.validate(StringUtil.hasContent(secondaryWeaponName) && !WeaponFactory.hasWeapon(secondaryWeaponName),\n \"Illegal secondary weapon \" + secondaryWeaponName + \" for unit \" + name);\n }",
"@Override\r\n protected void setup() {\n Number = Double.valueOf((String) getArguments()[0]);\r\n String Name = getAID().getLocalName();\r\n\r\n System.out.println(\"Agent Id: \" + Name +\" number = \" + Number);\r\n\r\n linkedAgents = Arrays.copyOfRange(getArguments(), 1,\r\n getArguments().length, String[].class);\r\n\r\n addBehaviour(new FindAverage\r\n (this, TimeUnit.SECONDS.toMillis(1)));\r\n }",
"private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"ArrayBag object is not initialized \" +\n \"properly.\");\n }",
"public void validate() {\n Validate.notEmpty(filePath, \"Configuration file path not specified\");\n Validate.notEmpty(fileEncoding, \"Configuration file encoding not specified\");\n Validate.notEmpty(syntaxCheckCommand, \"Syntax check command not specified\");\n Validate.notEmpty(restartCommand, \"Restart command not specified\");\n Validate.notNull(hostName, \"Host name not specified\");\n Validate.isTrue(port > 0, \"Port must be greater than zero\");\n Validate.isTrue(checkInterval > 0, \"Health check interval must be greater than zero\");\n Validate.isTrue(checkTimeout > 0, \"Health check timeout must be greater than zero\");\n }",
"private void validateProperties() throws BuildException {\r\n if (this.port == null || this.port.length() == 0) {\r\n throw new BuildException(\"Attribute 'port' must be set.\");\r\n }\r\n if (this.depotPath == null || this.depotPath.length() == 0) {\r\n throw new BuildException(\"Attribute 'repositoryUrl' must be set.\");\r\n }\r\n if (this.userName == null || this.userName.length() == 0) {\r\n throw new BuildException(\"Attribute 'userName' must be set.\");\r\n }\r\n if (this.password == null || this.password.length() == 0) {\r\n throw new BuildException(\"Attribute 'password' must be set.\");\r\n }\r\n if (this.depotPath == null || this.depotPath.length() == 0) {\r\n throw new BuildException(\"Attribute 'repositoryUrl' must be set.\");\r\n }\r\n if (this.p4ExecutablePath == null || this.p4ExecutablePath.length() == 0) {\r\n throw new BuildException(\"Attribute 'p4ExecutablePath' must be set.\");\r\n }\r\n File p4Executable = new File(this.p4ExecutablePath);\r\n if (!p4Executable.exists()) {\r\n throw new BuildException(\"Attribute 'p4ExecutablePath' \" + this.p4ExecutablePath +\r\n \" does not appear to point to an actual file.\");\r\n }\r\n \r\n // If default* is specified, then all should be specified. \r\n if (((this.defaultHackystatAccount != null) || \r\n (this.defaultHackystatPassword != null) ||\r\n (this.defaultHackystatSensorbase != null)) &&\r\n ((this.defaultHackystatAccount == null) || \r\n (this.defaultHackystatPassword == null) ||\r\n (this.defaultHackystatSensorbase == null))) {\r\n throw new BuildException (\"If one of default Hackystat account, password, or sensorbase \" +\r\n \"is specified, then all must be specified.\");\r\n }\r\n \r\n // Check to make sure that defaultHackystatAccount looks like a real email address.\r\n if (!ValidateEmailSyntax.isValid(this.defaultHackystatAccount)) {\r\n throw new BuildException(\"Attribute 'defaultHackystatAccount' \" + this.defaultHackystatAccount\r\n + \" does not appear to be a valid email address.\");\r\n }\r\n \r\n // If fromDate and toDate not set, we extract commit information for the previous day.\r\n if (this.fromDateString == null && this.toDateString == null) {\r\n Day previousDay = Day.getInstance().inc(-1);\r\n this.fromDate = new Date(previousDay.getFirstTickOfTheDay() - 1);\r\n this.toDate = new Date(previousDay.getLastTickOfTheDay());\r\n }\r\n else {\r\n try {\r\n if (this.hasSetToAndFromDates()) {\r\n this.fromDate = new Date(Day.getInstance(this.dateFormat.parse(this.fromDateString))\r\n .getFirstTickOfTheDay() - 1);\r\n this.toDate = new Date(Day.getInstance(this.dateFormat.parse(this.toDateString))\r\n .getLastTickOfTheDay());\r\n }\r\n else {\r\n throw new BuildException(\r\n \"Attributes 'fromDate' and 'toDate' must either be both set or both not set.\");\r\n }\r\n }\r\n catch (ParseException ex) {\r\n throw new BuildException(\"Unable to parse 'fromDate' or 'toDate'.\", ex);\r\n }\r\n\r\n if (this.fromDate.compareTo(this.toDate) > 0) {\r\n throw new BuildException(\"Attribute 'fromDate' must be a date before 'toDate'.\");\r\n }\r\n }\r\n }",
"protected void setup(){\n\n\t\tsuper.setup();\n\n\t\tfinal Object[] args = getArguments();\n\t\tif(args!=null && args[0]!=null && args[1]!=null){\n\t\t\tdeployAgent((Environment) args[0],(EntityType)args[1]);\n\t\t}else{\n\t\t\tSystem.err.println(\"Malfunction during parameter's loading of agent\"+ this.getClass().getName());\n System.exit(-1);\n }\n\t\t\n\t\t//############ PARAMS ##########\n\n\t\tthis.nbmodifsmin \t\t= 30;\t\t\t//nb modifs minimum pour renvoyer la carte\n\t\tthis.timeOut \t\t\t= 1000 * 4;\t\t//secondes pour timeout des messages (*1000 car il faut en ms)\n\t\tthis.sleepbetweenmove \t= 200;\t\t\t//in MS\n\t\tthis.nbmoverandom\t\t= 4;\t\t\t// nb random moves by default\n\t\t\n\t\t//#############################\n\t\t//setup graph\n\t\t//setupgraph();\n\t\tthis.graph = new SingleGraph(\"graphAgent\");\n\t\tinitMyGraph();\n\t\tthis.step = 0;\n\t\tthis.stepMap = new HashMap<String, Integer>();\n\t\tthis.path = new ArrayList<String>();\n\t\tthis.mailbox = new Messages(this);\n\t\tthis.lastMsg = null;\n\t\tthis.switchPath = true;\n\t\tthis.lastsender = null;\n\t\tthis.lastSentMap = new HashMap<String, Integer>(); //nbmodifs\n\t\tthis.remakepath = false; // changes to true if the map changed in a way that requires a new path\n\t\tthis.nbmoverandomoriginal = this.nbmoverandom;\n\t\t\n\t\tthis.toSendMap = new HashMap<String, Graph>(); //actual hashmap graph\n\t\t\n\t\tSystem.out.println(\"the agent \"+this.getLocalName()+ \" is started\");\n\t}",
"protected void checkComponents() throws Exception {\r\n if (InitialData == null) {\r\n throw new Exception(\"Initial data not set.\");\r\n }\r\n if (Oracle == null) {\r\n throw new Exception(\"Oracle not set.\");\r\n }\r\n if (SearchSpace == null) {\r\n throw new Exception(\"Search space not set.\");\r\n }\r\n if (ObjectiveFunction == null) {\r\n throw new Exception(\"Ranker not set.\");\r\n }\r\n }",
"@Override\n\tpublic void agentSetup() {\n\n\t\t// load the class names of each object\n\t\tString os = dagent.getOfferingStrategy().getClassname();\n\t\tString as = dagent.getAcceptanceStrategy().getClassname();\n\t\tString om = dagent.getOpponentModel().getClassname();\n\t\tString oms = dagent.getOMStrategy().getClassname();\n\n\t\t// createFrom the actual objects using reflexion\n\n\t\tofferingStrategy = BOAagentRepository.getInstance().getOfferingStrategy(os);\n\t\tacceptConditions = BOAagentRepository.getInstance().getAcceptanceStrategy(as);\n\t\topponentModel = BOAagentRepository.getInstance().getOpponentModel(om);\n\t\tomStrategy = BOAagentRepository.getInstance().getOMStrategy(oms);\n\n\t\t// init the components.\n\t\ttry {\n\t\t\topponentModel.init(negotiationSession, dagent.getOpponentModel().getParameters());\n\t\t\topponentModel.setOpponentUtilitySpace(fNegotiation);\n\t\t\tomStrategy.init(negotiationSession, opponentModel, dagent.getOMStrategy().getParameters());\n\t\t\tofferingStrategy.init(negotiationSession, opponentModel, omStrategy,\n\t\t\t\t\tdagent.getOfferingStrategy().getParameters());\n\t\t\tacceptConditions.init(negotiationSession, offeringStrategy, opponentModel,\n\t\t\t\t\tdagent.getAcceptanceStrategy().getParameters());\n\t\t\tacceptConditions.setOpponentUtilitySpace(fNegotiation);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// remove the reference to the information object such that the garbage\n\t\t// collector can remove it.\n\t\tdagent = null;\n\t}",
"protected void validate()\r\n\t{\r\n\t\tif( this.mapper==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the Mapper of this dataset.\");\r\n\t\tif( this.input_format==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the InputFormat of this dataset.\");\r\n\t\tif( this.inputs==null || this.inputs.size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the input path(s) of this dataset\");\r\n\t\tif ( this.getSchema()==null || this.getSchema().size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the schema of this dataset first\");\r\n\t}",
"@PostConstruct\n protected void checkInitialization() {\n ValidationUtility.checkNotNullNorEmpty(profileTaskCheckers, \"profileTaskCheckers\",\n ProfileActionConfigurationException.class);\n ValidationUtility.checkNotNullElements(profileTaskCheckers, \"profileTaskCheckers\",\n ProfileActionConfigurationException.class);\n }",
"protected void validateAndSetValues()\n\t\t{\n\t\t\tif (null == eventDispatcher)\n\t\t\t{\n\t\t\t\teventDispatcher = new DefaultEventDispatcher();\n\t\t\t}\n\t\t\tif (null == sessionAttributes)\n\t\t\t{\n\t\t\t\tsessionAttributes = new HashMap<String, Object>();\n\t\t\t}\n\t\t\tif (null == reconnectPolicy)\n\t\t\t{\n\t\t\t\treconnectPolicy = ReconnectPolicy.NO_RECONNECT;\n\t\t\t}\n\t\t\tcreationTime = System.currentTimeMillis();\n\t\t}",
"@PostConstruct\n public void init() {\n hasLength(env.getProperty(\"grouperClient.webService.url\"),\n \"property 'grouperClient.webService.url' is required\");\n hasLength(env.getProperty(\"grouperClient.webService.login\"),\n \"property 'grouperClient.webService.login' is required\");\n hasLength(env.getProperty(\"grouperClient.webService.password\"),\n \"property 'grouperClient.webService.password' is required\");\n }",
"@Override\n protected void postInitializeMethod() {\n Debug.printLogError(TAG, \"postInitializeMethod_1: \" + Validator.getInstance().checkEmpty(\"\", 0), false);\n Debug.printLogError(TAG, \"postInitializeMethod_2: \" + Validator.getInstance().checkEmpty(\"\", 0.00), false);\n Debug.printLogError(TAG, \"postInitializeMethod_3: \" + Validator.getInstance().checkEmpty(\"\", \"no_data\"), false);\n\n ValueExtractor valueExtractor = new ValueExtractor(this);\n Debug.printLogError(TAG, \"postInitializeMethod_4: \"\n + valueExtractor.getValue(\"hasValue\", \"\"), false);\n\n /*\n * Fetch value on second screen which is passed through intent.putExtra();\n * */\n String firstValue = valueExtractor.getValue(\"value1\", \"1\");\n int secondValue = valueExtractor.getValue(\"value2\", 2);\n boolean isAdd = valueExtractor.getValue(\"value3\", false);\n\n /*\n * SharedPreferences class\n * */\n SharedPreferencesUtility sp = new SharedPreferencesUtility(mContext);\n sp.setString(\"key1\", \"komal\");\n sp.setInteger(\"key2\", 1224);\n sp.setBoolean(\"isPass\", false);\n\n String str1 = sp.getString(\"key1\", \"komal\");\n int int1 = sp.getInteger(\"key2\", 0);\n boolean b1 = sp.getBoolean(\"isPass\", false);\n }",
"private Validador() {\r\n }",
"private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"VectorStack object is not initialized \" +\n \"properly.\");\n }",
"private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }",
"public void validate() {\n String prefix = this.getClass().getSimpleName() + \" Error: \";\n // validate the config\n if (this.defaultCfg.getScript() == null) {\n throw new IllegalArgumentException(prefix + \"default script is required\");\n }\n if (this.baseHDFSDir == null) {\n throw new IllegalArgumentException(prefix + \"baseHDFSDir is required\");\n }\n\n if (!this.baseHDFSDir.endsWith(\"/\")) {\n setBaseHDFSDir(this.baseHDFSDir + \"/\");\n }\n\n if (this.socketPort < 1025 || socketPort > 65534) {\n throw new IllegalArgumentException(prefix + \"socketPort is required and must be greater than 1024 and less than 65535\");\n }\n\n if (this.flagFileDirectory == null) {\n throw new IllegalArgumentException(prefix + \"flagFileDirectory is required\");\n }\n\n if (this.defaultCfg.getMaxFlags() < 1) {\n throw new IllegalArgumentException(prefix + \"Default Max Flags must be set.\");\n }\n\n if (this.distributorType == null || !this.distributorType.matches(\"(simple|date|folderdate)\")) {\n throw new IllegalArgumentException(\n \"Invalid Distributor type provided: \" + this.distributorType + \". Must be one of the following: simple|date|folderdate\");\n }\n\n for (FlagDataTypeConfig cfg : this.flagCfg) {\n if (cfg.getInputFormat() == null)\n throw new IllegalArgumentException(\"Input Format Class must be specified for data type: \" + cfg.getDataName());\n if (cfg.getIngestPool() == null)\n throw new IllegalArgumentException(\"Ingest Pool must be specified for data type: \" + cfg.getDataName());\n if (cfg.getFlagCountThreshold() == FlagMakerConfig.UNSET) {\n cfg.setFlagCountThreshold(this.flagCountThreshold);\n }\n if (cfg.getTimeoutMilliSecs() == FlagMakerConfig.UNSET) {\n cfg.setTimeoutMilliSecs(this.timeoutMilliSecs);\n }\n cfg.setLast(System.currentTimeMillis() + cfg.getTimeoutMilliSecs());\n if (cfg.getMaxFlags() < 1) {\n cfg.setMaxFlags(this.defaultCfg.getMaxFlags());\n }\n if (cfg.getReducers() < 1) {\n cfg.setReducers(this.defaultCfg.getReducers());\n }\n if (cfg.getScript() == null || \"\".equals(cfg.getScript())) {\n cfg.setScript(this.defaultCfg.getScript());\n }\n if (cfg.getFileListMarker() == null || \"\".equals(cfg.getFileListMarker())) {\n cfg.setFileListMarker(this.defaultCfg.getFileListMarker());\n }\n if (cfg.getFileListMarker() != null) {\n if (cfg.getFileListMarker().indexOf(' ') >= 0) {\n throw new IllegalArgumentException(prefix + \"fileListMarker cannot contain spaces\");\n }\n }\n if (cfg.getCollectMetrics() == null || \"\".equals(cfg.getCollectMetrics())) {\n cfg.setCollectMetrics(this.defaultCfg.getCollectMetrics());\n }\n List<String> folders = cfg.getFolder();\n if (folders == null || folders.isEmpty()) {\n folders = new ArrayList<>();\n cfg.setFolder(folders);\n // add the default path. we'll bomb later if it's not there.\n folders.add(cfg.getDataName());\n }\n List<String> fixedFolders = new ArrayList<>();\n for (int i = 0; i < folders.size(); i++) {\n for (String folder : StringUtils.split(folders.get(i), ',')) {\n folder = folder.trim();\n // let someone specify an absolute path.\n if (!folder.startsWith(\"/\")) {\n fixedFolders.add(this.baseHDFSDir + folder);\n } else {\n fixedFolders.add(folder);\n }\n }\n }\n cfg.setFolder(fixedFolders);\n }\n }",
"@Before\n public void initValidString() {\n appStateParcel = new AppStateParcel();\n sessionParcel = new SessionParcel();\n evaluationParcel = new EvaluationParcel();\n appStateParcel.setAppMode(AppStateParcel.NORMAL_MODE);\n appStateParcel.setUserType(AppStateParcel.TEACHER);\n appStateParcel.setUserId(\"1\");\n appStateParcel.setToken(TOKEN);\n }",
"protected void validate() throws Exception{\t\n\t\tsuper.validate();\n\t\tvalidateProperty(PROPERTY_KEY_USERNAME);\n\t}",
"public void checkInit() {\r\n super.checkInit();\r\n ValidationUtility.checkNotNull(groupService, \"groupService\",\r\n SecurityGroupsActionConfigurationException.class);\r\n }",
"protected void validate() {\n // no op\n }",
"public void testEmptyConstructor() {\n Agent agent = new Agent();\n assertNull(agent.getName(), \"Agent name should have not been initialized.\");\n assertNull(agent.getVersion(), \"Agent version should have not been initialized.\");\n assertEquals(agent.toString(), \"\", \"Agent display representation should not be valid.\");\n }",
"@Override\n\tpublic void initialize(IsValidHobby arg0) {\n\t\t\n\t}",
"@Override\n public void preVerify() throws Exception{\n Logger.getLogger(IdentityReconciliationProcessor.class.getName()).log(Level.INFO, \"Validating Input File Parameters.\");\n validateInputParams();\n // Validate OIM managed server is up and running. \n try{\n OIMClient client = getOIMClient();\n // This step is done as client.login migth not throw LoginException based on authenticator configured control param.\n client.getService(SchedulerService.class).getStatus();\n }catch(Exception e){\n throw new Exception(\"Either OIM server is not running or OIM input parameters are incorrect. Please verify values for \" +\n \"[OIM_WLS_MANAGED_SERVER_HOST, OIM_WLS_MANAGED_SERVER_PORT, OIM_ADMIN_USERNAME, OIM_ADMIN_USER_PASSWORD]\");\n }\n // TODO Validate IT resource configuration\n validateITResource();\n Logger.getLogger(IdentityReconciliationProcessor.class.getName()).log(Level.INFO, \"PreVerify Validation Successful.\");\n }",
"private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }",
"void initialize (ZyniAgent agent, Object ... args);",
"private void initValues() {\n \n }",
"public AgentInitializationException() {\n\t\treturnValue = 0;\n\t}",
"public Validate() {\n }",
"protected void initVars() {}",
"@Override\n\tpublic void initVerify() {\n\t\t\n\t}",
"@Override\n\tpublic void validate() {\n\t\tsuper.validate();\n\t}",
"public CollegeSuiteHealthCheck() {\n super();\n }",
"private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"ArrayQueue object is corrupt.\");\n }",
"@Override\n public void afterPropertiesSet() {\n validateProperties();\n }",
"public void validateComponent() throws org.apache.ant.common.util.ExecutionException {\n if (name == null) {\n throw new org.apache.ant.common.util.ExecutionException(\"\\\"name\\\" attribute of \" + \"<property> must be supplied\");\n }\n if (value == null) {\n throw new org.apache.ant.common.util.ExecutionException(\"\\\"value\\\" attribute of \" + \"<property> must be supplied\");\n }\n }",
"private static void verifyArgs()\r\n\t{\r\n\t\tif(goFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GO file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(annotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input annotation file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(goSlimFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GOslim file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(slimAnnotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an output file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t}",
"protected void InitValuables() {\n\t\tsuper.InitValuables();\n\t\t\n\t}",
"protected void initialize() {\n \tRobot.m_elevator.setSetpoint(setpoint);\n \tRobot.m_elevator.setAbsoluteTolerance(tolerance);\n \tRobot.m_elevator.setPID(.3, 0, 0);\n \tRobot.m_elevator.enable();\n }",
"private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }",
"private DatabaseValidationProperties() {}",
"@Test\n\tpublic final void testConstructorValues() throws MPIException {\n\t\tblock.startCommunication();\n\t\tassertEquals(elementsPerDim, block.getElementsPerDim());\n\t\tverifyInnerValues(block, values);\n\t\tverifyGhostRegionValues(block);\n\t\tblock.finishCommunication();\n\t}",
"@PostConstruct\n private void postConstruct() {\n if (customValue == null) {\n throw new RuntimeException(\"[customValue] property is not set \");\n }\n if (customSecondValue == null) {\n throw new RuntimeException(\"[customSecondValue] property is not set \");\n }\n }",
"public void initialise() {\n number_of_rays = 4; // how many rays are fired from the boat\n ray_angle_range = 145; // the range of the angles that the boat will fire rays out at\n ray_range = 30; // the range of each ray\n ray_step_size = (float) 10;\n regen = false;\n }",
"public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}",
"@Override\n public void \n validatePhase()\n throws PipelineException\n {\n super.validatePhase();\n \n pShotNamer = \n ShotNamer.getNamerFromNodeName\n (pSubmitNode, pClient, pQueue, getBuilderInformation());\n pProjectNamer = \n ProjectNamer.getGeneratedNamer\n (pClient, pQueue, getBuilderInformation(), pProjectName);\n \n pRequiredNodes = new TreeSet<String>();\n pRequiredNodes.add(pProjectNamer.getLightingProductMEL());\n }",
"private void validateData() {\n }",
"private void validarCampos() {\n }",
"@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}",
"private void inputValidation(String[] args) {\r\n\t\t// Must have two argument inputs - grammar and sample input\r\n\t\tif (args.length != 2) {\r\n\t\t\tSystem.out.println(\"Invalid parameters. Try:\\njava Main <path/to/grammar> <path/to/input>\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}",
"private void init() {\n // see if a serialized FilterAgent exists\n try {\n FilterAgent tmpFilterAgent = FilterAgent.restoreFromFile(FilterAgent.fileName);\n if (tmpFilterAgent != null) filterAgent = tmpFilterAgent;\n } catch (Exception e) {\n // no error, just catch the exception and use default/new agent\n }\n filterAgent.infoFilter = this;\n filterAgent.addCIAgentEventListener(this); // for trace msgs\n\n newsReaderAgent.addCIAgentEventListener(this);\n newsReaderAgent.initialize(); // intialize it\n newsReaderAgent.startAgentProcessing(); // start it running\n uRLReaderAgent.addCIAgentEventListener(this);\n uRLReaderAgent.initialize(); // initialize it\n uRLReaderAgent.startAgentProcessing(); // start it running\n filterAgent.initialize(); // initialize it\n filterAgent.startAgentProcessing(); // start the Filter agent thread\n openFileDialog = new java.awt.FileDialog(this);\n openFileDialog.setMode(FileDialog.LOAD);\n openFileDialog.setTitle(\"Open\");\n saveFileDialog = new java.awt.FileDialog(this);\n saveFileDialog.setMode(FileDialog.SAVE);\n saveFileDialog.setTitle(\"Save\");\n }",
"private void validate() throws FlightCreationException {\n validateNotNull(\"number\", number);\n validateNotNull(\"company name\", companyName);\n validateNotNull(\"aircraft\", aircraft);\n validateNotNull(\"pilot\", pilot);\n validateNotNull(\"origin\", origin);\n validateNotNull(\"destination\", destination);\n validateNotNull(\"departure time\", scheduledDepartureTime);\n\n if (scheduledDepartureTime.isPast()) {\n throw new FlightCreationException(\"The departure time cannot be in the past\");\n }\n\n if (origin.equals(destination)) {\n throw new FlightCreationException(\"The origin and destination cannot be the same\");\n }\n }",
"public ActionProgrammer(String firstName, String lastName,\r\nString socialSecurityNumber, int month, int year, \r\ndouble wage, double pieces) {\r\nsuper(firstName, lastName, socialSecurityNumber, month, year);\r\n\r\nif (wage < 0.0) { // validate wage\r\n throw new IllegalArgumentException(\r\n \"Hourly wage must be >= 0.0\");\r\n}\r\n\r\nif ((pieces < 0.0) || (pieces > 168.0)) { // validate hours\r\n throw new IllegalArgumentException(\r\n \"Hours worked must be >= 0.0 and <= 168.0\");\r\n}\r\n\r\nthis.wage = wage;\r\nthis.pieces = pieces;\r\n}",
"@Override\n public void initializeValidationData(IProgressMonitor arg0)\n {\n\n }",
"protected void validate() {\n // no implementation.\n }",
"void initSafeties(){\n gyroSafety();\n tensorFlowSafety();\n\n telemetry.addLine(\"Init finalized successfully\");\n telemetry.update();\n }",
"public void afterPropertiesSet() {\n super.afterPropertiesSet();\n\n debug(\"Plugin validated\");\n\n }",
"@Test(expectedExceptions=InvalidArgumentValueException.class)\n public void argumentValidationTest() {\n String[] commandLine = new String[] {\"--value\",\"521\"};\n\n parsingEngine.addArgumentSource( ValidatingArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n ValidatingArgProvider argProvider = new ValidatingArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 521, \"Argument is not correctly initialized\");\n\n // Try some invalid arguments\n commandLine = new String[] {\"--value\",\"foo\"};\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n }",
"@Override\n\tpublic void validate()\n\t{\n\n\t}",
"@Value.Check\n default void checkPreconditions()\n {\n RangeCheck.checkIncludedInInteger(\n this.feedback(),\n \"Feedback\",\n RangeInclusiveI.of(0, 7),\n \"Valid feedback values\");\n\n RangeCheck.checkIncludedInInteger(\n this.transpose(),\n \"Transpose\",\n RangeInclusiveI.of(-24, 24),\n \"Valid transpose values\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR1Level(),\n \"Pitch R1 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR1Rate(),\n \"Pitch R1 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR2Level(),\n \"Pitch R2 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR2Rate(),\n \"Pitch R2 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR3Level(),\n \"Pitch R3 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR3Rate(),\n \"Pitch R3 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR4Level(),\n \"Pitch R4 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR4Rate(),\n \"Pitch R4 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoPitchModulationDepth(),\n \"LFO Pitch Modulation Depth\",\n RangeInclusiveI.of(0, 99),\n \"Valid pitch modulation depth values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoPitchModulationSensitivity(),\n \"LFO Pitch Modulation Sensitivity\",\n RangeInclusiveI.of(0, 7),\n \"Valid pitch modulation sensitivity values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoAmplitudeModulationDepth(),\n \"LFO Amplitude Modulation Depth\",\n RangeInclusiveI.of(0, 99),\n \"Valid amplitude modulation depth values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoSpeed(),\n \"LFO Speed\",\n RangeInclusiveI.of(0, 99),\n \"Valid LFO speed values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoDelay(),\n \"LFO Delay\",\n RangeInclusiveI.of(0, 99),\n \"Valid LFO delay values\");\n }",
"public void init()\n\t// throws GameException\n\t{\n\t\tnextPlayer = Game.FIRST_PLAYER;\n\t\tsomeoneQuit = false;\n\t\tonePlayerLeft = null;\n\t\tisGameNew = true;\n\t\twinningPlayer = Game.GAME_NOT_OVER;\n\t\tinitializeCMNGame();\n\t\t// if (WINS.size() <= 0)\n\t\t// throw new GameException (\"Unacceptable input C = \" + CC +\n\t\t// \", M = \" + MM + \", N = \" + NN +\n\t\t// \".\\nExiting...\");\n\t}",
"protected void initialize() {\n \tRobot.hand.setWrist(moveValue);\n }",
"private void validateParameter(){\n\t\tif(hrNum > upperBound){\n\t\t\thrNum = upperBound;\n\t\t}\n\t\telse if(hrNum < lowerBound){\n\t\t\thrNum = lowerBound;\n\t\t}\n\t}",
"public BasicValidator(ValueExaminer pValueExaminer)\r\n {\r\n myValueExaminer = pValueExaminer;\r\n }",
"@Override\r\n public void validate() {\r\n }",
"@Override\n public void init(String[] args) {\n super.init(args);\n\t\tbridge.connect(\"ws://localhost:9090\", true);\n\t\tlogger.info(\"Environment started, connection with ROS established.\");\t\n\t\t\n\t\t/* Subscribe for calculating the distance between the Gantry and the human */\n\t\tbridge.subscribe(SubscriptionRequestMsg.generate(\"/ariac_human/state\") \n\t\t\t\t.setType(\"ariac_msgs/msg/HumanState\") \n\t\t\t\t.setThrottleRate(1)\n\t\t\t\t.setQueueLength(1),\n\t\t\tnew RosListenDelegate() {\n\t\t\t\tpublic void receive(JsonNode data, String stringRep) {\n\t\t\t\t\tMessageUnpacker<HumanState> unpacker = new MessageUnpacker<HumanState>(HumanState.class);\n\t\t\t\t\tHumanState msg = unpacker.unpackRosMessage(data);\n\n\t\t\t\t\tgpX = msg.robot_position.x; hpX = msg.human_position.x;\n\t\t\t\t\tgpY = msg.robot_position.y; hpY = msg.human_position.y;\n\t\t\t\t\tgpZ = msg.robot_position.z;\n\t\t\t\t\t\n\t\t\t\t\tdouble distance_robotHuman = calculateDistanceRH(msg);\n\t\t\t\t\tdouble safe_distanceRH = calSafeDistanceRH(msg);\n\n\t\t\t\t\t//Check if they are approximating (getting close from each other)\n\t\t\t\t\tif(distance_robotHuman < previousDistance)\n\t\t\t\t\t\tisAproximating = true;\n\t\t\t\t\telse \n\t\t\t\t\t\tisAproximating = false;\n\t\t\t\t\tpreviousDistance = distance_robotHuman;\n\n\t\t\t\t\tlong timeNow = System.currentTimeMillis(); //Time check\n\n\t\t\t\t\tif ((distance_robotHuman < safe_distanceRH*1.75) && \n\t\t\t\t\t\t(timeNow-lastHumanState_MsgT > 20000) && (isAproximating == true)){\n\t\t\t\t\t\t//clearPercepts(\"human\");\n\t\t\t\t\t\tlastHumanState_MsgT=timeNow;\n\t\t\t\t\t\tlogger.info(\"SAFE[\"+ safe_distanceRH +\"] I see the Gantry robot in \" + distance_robotHuman +\" meters: gantry_detected\");\n\t\t\t\t\t\tLiteral gDetectedLit = new LiteralImpl(\"gantry_detected\"); \n\t\t\t\t\t\tgDetectedLit.addTerm(new NumberTermImpl(ctrDt++)); \n\t\t\t\t\t\tif(simulationStarted==true)\n\t\t\t\t\t\t\taddPercept(\"human\",gDetectedLit); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t); // END bridge.subscribe(...\"/ariac_human/state\") \n\t\n\t\t/* Subscriber for getting the information that the Gantry has been disabled */\n\t\tbridge.subscribe(SubscriptionRequestMsg.generate(\"/ariac_human/unsafe_distance\") \n\t\t\t\t.setType(\"std_msgs/Bool\")\n\t\t\t\t.setThrottleRate(1)\n\t\t\t\t.setQueueLength(1),\n\t\t\tnew RosListenDelegate() {\n\t\t\t\tpublic void receive(JsonNode data, String stringRep) {\n\t\t\t\t\tlong timeNow = System.currentTimeMillis(); //Time check\n\n\t\t\t\t\tMessageUnpacker<PrimitiveMsg<Boolean>> unpacker = new MessageUnpacker<PrimitiveMsg<Boolean>>(PrimitiveMsg.class);\n\t\t\t\t\tPrimitiveMsg<Boolean> msg = unpacker.unpackRosMessage(data);\n\t\t\t\t\tif((simulationStarted==true) && (timeNow-lastUnsafeD_MsgT > 10000)){ \n\t\t\t\t\t\t//clearPercepts(\"human\");\n\t\t\t\t\t\tlastUnsafeD_MsgT = timeNow;\n\n\t\t\t\t\t\tif(msg.data){ \n\t\t\t\t\t\t\tlogger.info(\"Gantry has been disabled!\");\n\t\t\t\t\t\t\tLiteral gUnsafeLit = new LiteralImpl(\"gantry_disabled\"); \n\t\t\t\t\t\t\tgUnsafeLit.addTerm(new NumberTermImpl(ctrUnsf++)); \n\t\t\t\t\t\t\taddPercept(\"human\",gUnsafeLit); \n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{ \n\t\t\t\t\t\t\tlogger.info(\"UAV danger!\");\n\t\t\t\t\t\t\tLiteral gUnsafeLit = new LiteralImpl(\"agv_danger\"); \n\t\t\t\t\t\t\tgUnsafeLit.addTerm(new NumberTermImpl(ctrUnsf++)); \n\t\t\t\t\t\t\taddPercept(\"human\",gUnsafeLit); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t); // END bridge.subscribe(...\"/ariac_human/unsafe_distance\") \n\t\n\t\t/* Subscriber for move_base result */\t\t\n\t\tbridge.subscribe(SubscriptionRequestMsg.generate(\"/ariac_human/position_reached\")\n\t\t\t\t.setType(\"std_msgs/Bool\")\n\t\t\t\t.setThrottleRate(1)\n\t\t\t\t.setQueueLength(1),\n\t\t\tnew RosListenDelegate() {\n\t\t\t\tpublic void receive(JsonNode data, String stringRep) {\n\t\t\t\t\tMessageUnpacker<PrimitiveMsg<Boolean>> unpacker = new MessageUnpacker<PrimitiveMsg<Boolean>>(PrimitiveMsg.class);\n\t\t\t\t\tPrimitiveMsg<Boolean> msg = unpacker.unpackRosMessage(data);\n\t\t\t\t\t//clearPercepts(\"human\");\n\t\t\t\t\tlogger.info(\"Human reached waypoint\t!\");\n\t\t\t\t\tLiteral movebase_result = new LiteralImpl(\"work_completed\"); \n\t\t\t\t\tmovebase_result.addTerm(new NumberTermImpl(cont++)); \n\t\t\t\t\tlogger.info(\"cont: \"+cont);\n\t\t\t\t\tif(simulationStarted==true)\n\t\t\t\t\t\t\taddPercept(\"human\", movebase_result);\n\t\t\t\t}\n\t\t\t}\n\t ); // END bridge.subscribe(...\"/ariac_human/position_reached\")\n\t\t\n\t\t/* Subscriber for getting the START message */\n\t\tbridge.subscribe(SubscriptionRequestMsg.generate(\"/ariac/start_human\") \n\t\t\t\t.setType(\"std_msgs/Bool\")\n\t\t\t\t.setThrottleRate(1)\n\t\t\t\t.setQueueLength(1),\n\t\t\tnew RosListenDelegate() {\n\t\t\t\tpublic void receive(JsonNode data, String stringRep) {\n\t\t\t\t\tMessageUnpacker<PrimitiveMsg<Boolean>> unpacker = new MessageUnpacker<PrimitiveMsg<Boolean>>(PrimitiveMsg.class);\n\t\t\t\t\tPrimitiveMsg<Boolean> msg = unpacker.unpackRosMessage(data);\n\t\t\t\t\t//logger.info(\"Simulation will start!\");\n\t\t\t\t\tif (msg.data){\n\t\t\t\t\t\t//clearPercepts(\"human\");\n\t\t\t\t\t\tlogger.info(\"Simulation started!\");\n\t\t\t\t\t\taddPercept(\"human\",Literal.parseLiteral(\"human_start\"));\n\t\t\t\t\t\tsimulationStarted = true; \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t); // END bridge.subscribe(...\"/ariac/start_human\")\n\t}",
"private CheckingTools() {\r\n super();\r\n }",
"private void checkUserAgent() {\n val userAgent = config.getString(\"user_agent\");\n\n checkArgument(!isNullOrEmpty(userAgent), \"user_agent is not set!\");\n }",
"protected ModelAgent ()\n {\n this (\"ModelAgent\");\n\n }",
"protected void setup() {\n \tObject[] args = getArguments();\r\n \tif (args != null && args.length > 0) {\r\n \t\tnResponders = args.length;\r\n \t\tenvironment = (String) args[0];\r\n \t\t\r\n \t\tACLMessage msg = new ACLMessage(ACLMessage.QUERY_IF);\r\n \t\tmsg.addReceiver(new AID(environment, AID.ISLOCALNAME));\r\n \t\tmsg.setContent(WARN_ME_ABOUT_VIOLATORS);\r\n \t\tsend(msg);\r\n \t\tACLMessage msg2 = null;\r\n \t\twhile (msg2 == null) {\r\n \t\t\tmsg2 = receive();\r\n \t\t\tif (msg2 != null && \"OK\".equals(msg2.getContent())) {\r\n \t\t\t\tprintAgentMessage(\"Guarda de transito inicia ronda!\");\r\n \t\t\t\taddBehaviour(new LookforViolator(this));\r\n \t\t\t}\r\n \t\t\telse msg2 = null;\r\n \t\t}\r\n \t\t\r\n \t}\r\n \telse {\r\n \t\tSystem.out.println(\"No responder specified.\");\r\n \t}\r\n }",
"public void validate() {}",
"public static void startValidation() {\n errList = new ArrayList<>();\n }",
"private ValorantManager() {\n this.resourceHandler = new ResourceHandler();\n\n JSONObject agentsData = getAssetJson(\"agents.json\");\n\n // Agents require roles so read them first\n this.roles = readRoles(agentsData.getJSONArray(\"roles\"));\n\n this.agents = readAgents(agentsData.getJSONObject(\"agents\"));\n this.weapons = readWeapons();\n this.ranks = createRankMap();\n }",
"@Override\r\n\tprotected void validate() {\n\t}",
"void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }",
"protected void initialize() {\n\t\tint position = Robot.wrist.getCurrentPosition();\n\t\tSystem.out.println(\"Wrist position: \" + position);\n\t\tif (position < safePosition) {\n\t\t\tisSafe = false;\n\t\t\tRobot.wrist.setTargetPosition(homePosition);\n\t\t} else {\n\t\t\tisSafe = true;\n\t\t}\n\t\tSystem.out.println(\"Wrist is safe: \" + isSafe);\n\t}",
"private InterpreterDependencyChecks() {\r\n\t\t// Hides default constructor\r\n\t}",
"private FunctionParametersValidator() {}",
"public BundleValidator() {\n\t\tsuper();\n\t}",
"private void init() \n\t{\n\t\tgoalReached = false;\n\t\tGdx.input.setInputProcessor(this);\n\t\tcameraHelper = new CameraHelper();\n\t\tlives = Constants.LIVES_START;\n\t\tlivesVisual = lives;\n\t\ttimeLeftGameOverDelay = 0;\n\t\tinitLevel();\n\n\t}",
"public void validate() throws org.apache.thrift.TException {\n if (levelInfo != null) {\r\n levelInfo.validate();\r\n }\r\n }",
"private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }",
"public SpecValidator() {\n\t\tsuper();\n\t}"
] | [
"0.62526715",
"0.6069351",
"0.5994545",
"0.59797156",
"0.59701985",
"0.59652764",
"0.5954975",
"0.59029794",
"0.58794636",
"0.5802833",
"0.5781097",
"0.57424",
"0.5715985",
"0.57075727",
"0.5704958",
"0.5704676",
"0.56481934",
"0.56384265",
"0.5635752",
"0.56346196",
"0.56310624",
"0.5628996",
"0.5621756",
"0.56175",
"0.5615902",
"0.56138235",
"0.56097054",
"0.5601222",
"0.55945027",
"0.5575286",
"0.5564213",
"0.5547909",
"0.55475765",
"0.5540615",
"0.5516449",
"0.5512366",
"0.5510269",
"0.55038893",
"0.5502394",
"0.54989326",
"0.5498403",
"0.54981047",
"0.5488716",
"0.5487947",
"0.5485233",
"0.5467715",
"0.54603875",
"0.5435225",
"0.54302406",
"0.54301715",
"0.5420224",
"0.5418088",
"0.5414586",
"0.5413812",
"0.54135984",
"0.54128563",
"0.5390819",
"0.5387668",
"0.53863174",
"0.5374239",
"0.5365261",
"0.53651357",
"0.5361844",
"0.5358514",
"0.535605",
"0.53518987",
"0.53506505",
"0.5349964",
"0.53424525",
"0.53409535",
"0.53347975",
"0.53271955",
"0.53122866",
"0.5310234",
"0.5308552",
"0.5307358",
"0.5296852",
"0.52920926",
"0.5289823",
"0.5284957",
"0.52825826",
"0.5281783",
"0.52787477",
"0.52723074",
"0.52683926",
"0.5264495",
"0.52539545",
"0.5252829",
"0.52488846",
"0.5245694",
"0.52429724",
"0.524134",
"0.52389085",
"0.52328277",
"0.5232443",
"0.523061",
"0.52305335",
"0.5229084",
"0.5228569",
"0.52233267"
] | 0.5820505 | 9 |
Validates the agent values after using the agent setters | public void testSetters() {
String name = "pop";
String version = "2.3";
Agent agent = new Agent("moo", "1.5");
agent.setName(name);
agent.setVersion(version);
assertEquals(agent.getName(), name, "Unexpected agent name.");
assertEquals(agent.getVersion(), version, "Unexpected agent version.");
assertEquals(agent.toString(), name + "/" + version, "Unexpected agent display representation.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void validate() throws Exception{\t\n\t\tsuper.validate();\n\t\tvalidateProperty(PROPERTY_KEY_USERNAME);\n\t}",
"@Override\n public void afterPropertiesSet() {\n validateProperties();\n }",
"private void validateInputParameters(){\n\n }",
"private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }",
"private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }",
"void validateProperties() {\n super.validateProperties();\n validatePropertySet(\"token\", getToken());\n }",
"private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }",
"public void validate() {\n\t\tthis.invalidated = false;\n\t}",
"protected void validate() {\n // no op\n }",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"public void validateObjectMetier() throws NSValidation.ValidationException {\n\n\t}",
"protected void validateAndSetValues()\n\t\t{\n\t\t\tif (null == eventDispatcher)\n\t\t\t{\n\t\t\t\teventDispatcher = new DefaultEventDispatcher();\n\t\t\t}\n\t\t\tif (null == sessionAttributes)\n\t\t\t{\n\t\t\t\tsessionAttributes = new HashMap<String, Object>();\n\t\t\t}\n\t\t\tif (null == reconnectPolicy)\n\t\t\t{\n\t\t\t\treconnectPolicy = ReconnectPolicy.NO_RECONNECT;\n\t\t\t}\n\t\t\tcreationTime = System.currentTimeMillis();\n\t\t}",
"@Override\n\tpublic void validate() {\n\t\tsuper.validate();\n\t}",
"public void validate() {\n transportStats.validate(this);\n\n for (String unitName : produces) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit name \" + unitName + \" in build unit stats\");\n }\n\n for (Map.Entry<String, String> entry : buildCities.entrySet()) {\n String terrainName = entry.getKey();\n String cityName = entry.getValue();\n Args.validate(!TerrainFactory.hasTerrainForName(terrainName), \"Illegal terrain \" + terrainName + \" in build cities stats\");\n Args.validate(!CityFactory.hasCityForName(cityName), \"Illegal city \" + cityName + \" in build cities stats\");\n }\n\n for (String unitName : supplyUnits) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units stats\");\n }\n\n for (String unitName : supplyUnitsInTransport) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units in transport stats\");\n }\n\n Args.validate(StringUtil.hasContent(primaryWeaponName) && !WeaponFactory.hasWeapon(primaryWeaponName),\n \"Illegal primary weapon \" + primaryWeaponName + \" for unit \" + name);\n Args.validate(StringUtil.hasContent(secondaryWeaponName) && !WeaponFactory.hasWeapon(secondaryWeaponName),\n \"Illegal secondary weapon \" + secondaryWeaponName + \" for unit \" + name);\n }",
"@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}",
"private void validateArgumentValues() throws ArgBoxException {\n\t\tfinal List<String> errorMessages = new ArrayList<>();\n\t\tparsedArguments.values().stream()\n\t\t\t\t.filter(parsedArg -> parsedArg.isValueRequired())\n\t\t\t\t.filter(parsedArg -> {\n\t\t\t\t\tfinal boolean emptyValue = null == parsedArg.getValue();\n\t\t\t\t\tif (emptyValue) {\n\t\t\t\t\t\terrorMessages.add(String.format(\"The argument %1s has no value !\", parsedArg.getCommandArg()));\n\t\t\t\t\t}\n\t\t\t\t\treturn !emptyValue;\n\t\t\t\t})\n\t\t\t\t.peek(parsedArg -> {\n\t\t\t\t\tif (parsedArg.getValidator().negate().test(parsedArg.getValue())) {\n\t\t\t\t\t\terrorMessages.add(String.format(\"The value %1s for the argument %2s is not valid !\",\n\t\t\t\t\t\t\t\tparsedArg.getValue(), parsedArg.getCommandArg()));\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.close();\n\t\tthrowException(() -> CollectionUtils.isNotEmpty(errorMessages),\n\t\t\t\tgetArgBoxExceptionSupplier(\"One or more arguments have errors with their values !\", errorMessages));\n\t}",
"private void validateData() {\n }",
"private void validateProperties() throws BuildException {\r\n if (this.port == null || this.port.length() == 0) {\r\n throw new BuildException(\"Attribute 'port' must be set.\");\r\n }\r\n if (this.depotPath == null || this.depotPath.length() == 0) {\r\n throw new BuildException(\"Attribute 'repositoryUrl' must be set.\");\r\n }\r\n if (this.userName == null || this.userName.length() == 0) {\r\n throw new BuildException(\"Attribute 'userName' must be set.\");\r\n }\r\n if (this.password == null || this.password.length() == 0) {\r\n throw new BuildException(\"Attribute 'password' must be set.\");\r\n }\r\n if (this.depotPath == null || this.depotPath.length() == 0) {\r\n throw new BuildException(\"Attribute 'repositoryUrl' must be set.\");\r\n }\r\n if (this.p4ExecutablePath == null || this.p4ExecutablePath.length() == 0) {\r\n throw new BuildException(\"Attribute 'p4ExecutablePath' must be set.\");\r\n }\r\n File p4Executable = new File(this.p4ExecutablePath);\r\n if (!p4Executable.exists()) {\r\n throw new BuildException(\"Attribute 'p4ExecutablePath' \" + this.p4ExecutablePath +\r\n \" does not appear to point to an actual file.\");\r\n }\r\n \r\n // If default* is specified, then all should be specified. \r\n if (((this.defaultHackystatAccount != null) || \r\n (this.defaultHackystatPassword != null) ||\r\n (this.defaultHackystatSensorbase != null)) &&\r\n ((this.defaultHackystatAccount == null) || \r\n (this.defaultHackystatPassword == null) ||\r\n (this.defaultHackystatSensorbase == null))) {\r\n throw new BuildException (\"If one of default Hackystat account, password, or sensorbase \" +\r\n \"is specified, then all must be specified.\");\r\n }\r\n \r\n // Check to make sure that defaultHackystatAccount looks like a real email address.\r\n if (!ValidateEmailSyntax.isValid(this.defaultHackystatAccount)) {\r\n throw new BuildException(\"Attribute 'defaultHackystatAccount' \" + this.defaultHackystatAccount\r\n + \" does not appear to be a valid email address.\");\r\n }\r\n \r\n // If fromDate and toDate not set, we extract commit information for the previous day.\r\n if (this.fromDateString == null && this.toDateString == null) {\r\n Day previousDay = Day.getInstance().inc(-1);\r\n this.fromDate = new Date(previousDay.getFirstTickOfTheDay() - 1);\r\n this.toDate = new Date(previousDay.getLastTickOfTheDay());\r\n }\r\n else {\r\n try {\r\n if (this.hasSetToAndFromDates()) {\r\n this.fromDate = new Date(Day.getInstance(this.dateFormat.parse(this.fromDateString))\r\n .getFirstTickOfTheDay() - 1);\r\n this.toDate = new Date(Day.getInstance(this.dateFormat.parse(this.toDateString))\r\n .getLastTickOfTheDay());\r\n }\r\n else {\r\n throw new BuildException(\r\n \"Attributes 'fromDate' and 'toDate' must either be both set or both not set.\");\r\n }\r\n }\r\n catch (ParseException ex) {\r\n throw new BuildException(\"Unable to parse 'fromDate' or 'toDate'.\", ex);\r\n }\r\n\r\n if (this.fromDate.compareTo(this.toDate) > 0) {\r\n throw new BuildException(\"Attribute 'fromDate' must be a date before 'toDate'.\");\r\n }\r\n }\r\n }",
"@Override\r\n public void validate() {\r\n }",
"@Override\n\tpublic void validate()\n\t{\n\n\t}",
"public void validate() {}",
"private void validate() {\n\t\t// just in case;\n\t\tfor (int i=0;i<NR_OF_FIELDS; i++) {\n\t\t\tvalid[i] = \"0\";\n\t\t}\n\t\t//\n\t\t// Validate name and surname:\n\t\t//\n\t\tif ( ! this.isUpperAlpha(nume)) {\n\t\t\tfields[0] = \"1\";\n\t\t}\n\t\t\n\t\tif ( ! this.isUpperAlphaWithSpace(nume)) {\n\t\t\tfields[1] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate seria\n\t\t//\n\t\tvalid[2] = \"1\";\t\t\t\t\t\t\t// presupun ca seria este invalida, si incerc sa o validez\n\t\tfor (int i=0; i<seriiBuletin.length; i++) {\n\t\t\tif (seriiBuletin[i].equals(seria)) {\n\t\t\t\tvalid[2] = \"0\";\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// validate numarul\n\t\t//\n\t\ttry {\n\t\t\tvalid[3] = \"1\";\n\t\t\tint nr = Integer.valueOf(numarul);\n\t\t\tif ( nr >= 100000 && nr <= 999999 ) {\n\t\t\t\tvalid[3] = \"0\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.d(TAG, \"Error validating seria.\");\n\t\t}\n\n\t\t//\n\t\t// validate sex\n\t\t//\n\t\tif ( ! (sex == 'M' || sex == 'F')) {\n\t\t\tvalid[6] = \"1\";\n\t\t}\n\t\t//\n\t\t// Validate valabilitate\n\t\t//\n\t\tif ( ! isNumber(this.valabilitate)) {\n\t\t\tvalid[7] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate CNP\n\t\t//\n\t\tif ( ! (isNumber(CNP) && isValidCNP(CNP))) {\n\t\t\tvalid[8] = \"1\";\n\t\t}\n\t\t\n\t}",
"private static void checkRequiredProperties()\n\t{\n\t\tfor (ServerProperty prop : ServerProperty.values())\n\t\t{\n\t\t\tif (prop.isRequired())\n\t\t\t{\n\t\t\t\t// TODO\n//\t\t\t\tswitch (prop)\n//\t\t\t\t{\n//\t\t\t\t\tcase GERMINATE_AVAILABLE_PAGES:\n//\t\t\t\t\t\tSet<Page> availablePages = getSet(prop, Page.class);\n//\t\t\t\t\t\tif (CollectionUtils.isEmpty(availablePages))\n//\t\t\t\t\t\t\tthrowException(prop);\n//\t\t\t\t\t\tbreak;\n//\n//\t\t\t\t\tcase GERMINATE_USE_AUTHENTICATION:\n//\t\t\t\t\t\tboolean useAuthentication = getBoolean(prop);\n//\t\t\t\t\t\tif (useAuthentication)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tif (StringUtils.isEmpty(get(ServerProperty.GERMINATE_GATEKEEPER_SERVER)))\n//\t\t\t\t\t\t\t\tthrowException(ServerProperty.GERMINATE_GATEKEEPER_SERVER);\n//\t\t\t\t\t\t\tif (StringUtils.isEmpty(get(ServerProperty.GERMINATE_GATEKEEPER_NAME)))\n//\t\t\t\t\t\t\t\tthrowException(ServerProperty.GERMINATE_GATEKEEPER_NAME);\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tbreak;\n//\n//\t\t\t\t\tcase GERMINATE_GATEKEEPER_REGISTRATION_ENABLED:\n//\t\t\t\t\t\tboolean registrationNeedsGatekeeper = getBoolean(prop);\n//\n//\t\t\t\t\t\tif (registrationNeedsGatekeeper)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tString gatekeeperUrl = get(ServerProperty.GERMINATE_GATEKEEPER_URL);\n//\n//\t\t\t\t\t\t\tif (StringUtils.isEmpty(gatekeeperUrl))\n//\t\t\t\t\t\t\t\tthrowException(ServerProperty.GERMINATE_GATEKEEPER_URL);\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tbreak;\n//\n//\t\t\t\t\tdefault:\n\t\t\t\tif (StringUtils.isEmpty(get(prop)))\n\t\t\t\t\tthrowException(prop);\n//\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void setValidators() {\n getUtils().addNoNumbers(getOriginTxt(), getValidatorTxt());\n getUtils().addNoNumbers(getDestinationTxt(), getValidatorTxt());\n getUtils().addNoNumbers(getCollectionPlaceTxt(), getValidatorTxt());\n getUtils().addNoNumbers(getDeliveryPlaceTxt(), getValidatorTxt());\n getUtils().eurosListener(getTravelValueTxt(), getValidatorTxt());\n getUtils().eurosListener(getMoneyforDriverTxt(), getValidatorTxt());\n getUtils().eurosListener(getCustomsTxt(), getValidatorTxt());\n getUtils().eurosListener(getOtherExpensesTxt(), getValidatorTxt());\n getUtils().eurosListener(getShippingExpensesTxt(), getValidatorTxt());\n //No listenerValidator for distance because, finally it is a string\n// getUtils().distanceListener(getDistanceTxt(), getValidatorTxt());\n getUtils().dateValidator(getDateTxt(), getValidatorTxt());\n getUtils().timeListener(getArriveHourTxt(), getValidatorTxt());\n getUtils().timeListener(getExitHourTxt(), getValidatorTxt());\n getUtils().timeListener(getProvidedHourTxt(), getValidatorTxt());\n\n }",
"public void validate() throws org.apache.thrift.TException {\n if (sourceCharged != null) {\n sourceCharged.validate();\n }\n if (targetDeposit != null) {\n targetDeposit.validate();\n }\n }",
"@Override\r\n\tprotected void validate() {\n\t}",
"protected void validateEntity()\n {\n super.validateEntity();\n \n Date startDate = getStartDate();\n Date endDate = getEndDate();\n \n validateStartDate(startDate);\n validateEndDate(endDate);\n\n // We validate the following here instead of from within an attribute because\n // we need to make sure that both values are set before we perform the test.\n\n if (endDate != null)\n {\n // Note that we want to truncate these values to allow for the possibility\n // that we're trying to set them to be the same day. Calling \n // dateValue( ) does not include time. Were we to want the time element,\n // we would call timestampValue(). Finally, whenever comparing jbo\n // Date objects, we have to convert to long values.\n \n long endDateLong = endDate.dateValue().getTime();\n\n // We can assume we have a Start Date or the validation of this \n // value would have thrown an exception.\n \n if (endDateLong < startDate.dateValue().getTime())\n {\n throw new OARowValException(OARowValException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(),\n getPrimaryKey(),\n \"AK\", // Message product short name\n \"FWK_TBX_T_START_END_BAD\"); // Message name\n } \n } \n \n }",
"public void validateComponent() throws org.apache.ant.common.util.ExecutionException {\n if (name == null) {\n throw new org.apache.ant.common.util.ExecutionException(\"\\\"name\\\" attribute of \" + \"<property> must be supplied\");\n }\n if (value == null) {\n throw new org.apache.ant.common.util.ExecutionException(\"\\\"value\\\" attribute of \" + \"<property> must be supplied\");\n }\n }",
"protected void validate() {\n Validator mandatoryValidator = validateMandatoryOptions();\n Validator exclusionsValidator = validateOptionExclusions();\n Validator inapplicableOptionValidator = validateInapplicableOptions();\n Validator optionalValidator = validateOptionalParameters();\n\n List<String> validationMessages = new LinkedList<>();\n\n validationMessages.addAll(mandatoryValidator.getValidationMessages());\n validationMessages.addAll(exclusionsValidator.getValidationMessages());\n validationMessages.addAll(optionalValidator.getValidationMessages());\n validationMessages.addAll(inapplicableOptionValidator.getValidationMessages());\n\n if (!validationMessages.isEmpty()) {\n String tablePathString =\n (tablePath != null) ? SourceUtils.pathToString(tablePath) : \"null\";\n throw new DeltaOptionValidationException(tablePathString, validationMessages);\n }\n }",
"@Override\n\tpublic void validate() {\n\t}",
"@Override\r\n public boolean validate() {\n return true;\r\n }",
"private void validarCampos() {\n }",
"private void validate() throws FlightCreationException {\n validateNotNull(\"number\", number);\n validateNotNull(\"company name\", companyName);\n validateNotNull(\"aircraft\", aircraft);\n validateNotNull(\"pilot\", pilot);\n validateNotNull(\"origin\", origin);\n validateNotNull(\"destination\", destination);\n validateNotNull(\"departure time\", scheduledDepartureTime);\n\n if (scheduledDepartureTime.isPast()) {\n throw new FlightCreationException(\"The departure time cannot be in the past\");\n }\n\n if (origin.equals(destination)) {\n throw new FlightCreationException(\"The origin and destination cannot be the same\");\n }\n }",
"protected void validate()\r\n\t{\r\n\t\tif( this.mapper==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the Mapper of this dataset.\");\r\n\t\tif( this.input_format==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the InputFormat of this dataset.\");\r\n\t\tif( this.inputs==null || this.inputs.size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the input path(s) of this dataset\");\r\n\t\tif ( this.getSchema()==null || this.getSchema().size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the schema of this dataset first\");\r\n\t}",
"public void doRequiredCheck() {\n\t\tthis.checkValue(listener);\n\t}",
"@Override\n\tprotected void validateParameterValues() {\n\t\t\n\t}",
"public FormValidation doCheckExecutionParameters(@QueryParameter String value, @QueryParameter String agentId) {\n if (StringUtils.isEmpty(value) && StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n JsonObject executionParams = null;\n try {\n executionParams = SerializationHelper.fromJson(value, JsonObject.class);\n\n // In case the value parameter is empty\n if (executionParams == null)\n return FormValidation.ok();\n\n } catch (JsonSyntaxException e) {\n return FormValidation.error(\"Invalid JSON object\");\n }\n\n // In case the user did not select agent from the dropdown and/or in the JSON object, return ok.\n if ((executionParams.get(\"agentId\") != null && StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString())) || StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n // In case the user has selected the same agentId in the dropdown and in the JSON object, no need to show a warning\n if ((executionParams.get(\"agentId\") != null && StringUtils.equals(executionParams.get(\"agentId\").getAsString(), agentId)))\n return FormValidation.ok();\n\n // In case the user has selected two different agents in the dropdown and in the JSON object, show warning\n if (executionParams.get(\"agentId\") != null &&\n !StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString()) &&\n !StringUtils.isEmpty(agentId))\n return FormValidation.warning(\"You've selected an agent and specified a different one in executionParameters. The job will be executed on the selected agent.\");\n\n return FormValidation.ok();\n }",
"public void check() {\n\t\tif (!hasAnimVal) {\n\t\t\tif (baseVal == null) {\n\t\t\t\tbaseVal = new BaseSVGPointList();\n\t\t\t}\n\t\t\tbaseVal.revalidate();\n\t\t\tif (baseVal.missing) {\n\t\t\t\tthrow new LiveAttributeException(element, localName, LiveAttributeException.ERR_ATTRIBUTE_MISSING,\n\t\t\t\t\t\tnull);\n\t\t\t}\n\t\t\tif (baseVal.malformed) {\n\t\t\t\tthrow new LiveAttributeException(element, localName, LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,\n\t\t\t\t\t\tbaseVal.getValueAsString());\n\t\t\t}\n\t\t}\n\t}",
"private void validate() {\n Validate.notNull(uriLocatorFactory);\n Validate.notNull(preProcessorExecutor);\n }",
"protected void validate() {\n // no implementation.\n }",
"@Override\n\t\tpublic void validate() throws ValidationError {\n\t\t\tif (newValueOfPropertyToChange < 0) {\n\t\t\t\tthrow new TestFailure(\"propertyToChange is not ok\");\n\t\t\t}\n\t\t}",
"private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}",
"public void validate() throws org.apache.thrift.TException {\n if (stampedeId != null) {\n stampedeId.validate();\n }\n if (runId != null) {\n runId.validate();\n }\n }",
"private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }",
"@Override\r\n\tpublic boolean validate() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean validate() {\n\t\treturn true;\r\n\t}",
"private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }",
"public void initialiseValues() {\n\t\tif (validationRule == null) { // NOSONAR\n\t\t\tvalidationRule = Optional.empty();\n\t\t}\n\t}",
"@Override\n\tpublic void validate(Object target, Errors errors) {\n\t\tVoyage voyageValidator=(Voyage) target;\n\t\tif(voyageValidator.getDepartureDate()==null)\n\t\t\terrors.rejectValue(\"departureDate\", \"\",\"departureDate.required\");\n\t\tif(voyageValidator.getDepartureHourId()==null)\n\t\t\terrors.rejectValue(\"departureHour\", \"\",\"departureHourId.required\");\n\t\tif(voyageValidator.getPathId()==null)\n\t\t\terrors.rejectValue(\"path\", \"\",\"pathId.required\");\n\t\tif(!Utils.isNumeric(voyageValidator.getNumberOfPlace()+\"\"))\n\t\t\terrors.rejectValue(\"numberOfPlace\", \"\",\"numberOfPlace.numeric\");\n\t}",
"private void validate() throws IllegalStateException {\n if (StringUtils.isBlank(this.experimentKey)) {\n throw new IllegalStateException(\"Experiment key must be present!\");\n }\n if (!this.alive) {\n throw new IllegalStateException(\"Experiment was not initialized. You need to call init().\");\n }\n }",
"public void afterPropertiesSet() {\n super.afterPropertiesSet();\n\n debug(\"Plugin validated\");\n\n }",
"public void validate() throws org.apache.thrift.TException {\n if (!is_set_destApp()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destApp' is unset! Struct:\" + toString());\n }\n\n if (!is_set_destPellet()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'destPellet' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n }",
"private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }",
"public void validate(){\n if (validated){\n validated = false;\n } else {\n validated = true;\n }\n }",
"@Override\n protected void validateReporterParms() throws IOException, ParseFailureException {\n if (this.minPctSubject < 0.0 || this.minPctSubject > 100.0)\n throw new ParseFailureException(\"Minimum subject percent must be between 0 and 100.\");\n if (this.eValue < 0.0)\n throw new ParseFailureException(\"Maximum eValue cannot be negative.\");\n // Insure we have a silva database.\n if (! this.silvaFile.canRead())\n throw new FileNotFoundException(\"Silva FASTA file \" + this.silvaFile + \" is not found or unreadable.\");\n // Insure we have a genome source.\n if (! this.genomeDir.exists())\n throw new FileNotFoundException(\"Input genome source \" + this.genomeDir + \" does not exist.\");\n // Build or load the BLAST database. Note we have to convert the possible InterruptedException.\n try {\n log.info(\"Connecting to BLAST database at {}.\", this.silvaFile);\n this.silvaDB = DnaBlastDB.createOrLoad(this.silvaFile, 11);\n } catch (InterruptedException e) {\n throw new IOException(\"Interruption during BLAST database make: \" + e.toString());\n }\n // Connect to the genome source.\n log.info(\"Loading genomes at {}.\", this.genomeDir);\n this.genomes = this.sourceType.create(this.genomeDir);\n log.info(\"{} genomes found in {}.\", this.genomes.size(), this.genomeDir);\n // Create the blast parameters.\n this.parms = new BlastParms().maxE(this.eValue).pctLenOfSubject(this.minPctSubject);\n }",
"public abstract Value validateValue(Value value);",
"void validate();",
"void validate();",
"private boolean checkFields() {\n if (editTxtName.getText().equals(\"\")) return false;//name\n if (editTxtDesc.getText().equals(\"\")) return false;//desc\n if (editClrColor.getValue() == null) return false;//color\n if (oldEnvironment == null) return false;//environment is null\n return true;//everything is valid\n }",
"public void validate() {\n Validate.notEmpty(filePath, \"Configuration file path not specified\");\n Validate.notEmpty(fileEncoding, \"Configuration file encoding not specified\");\n Validate.notEmpty(syntaxCheckCommand, \"Syntax check command not specified\");\n Validate.notEmpty(restartCommand, \"Restart command not specified\");\n Validate.notNull(hostName, \"Host name not specified\");\n Validate.isTrue(port > 0, \"Port must be greater than zero\");\n Validate.isTrue(checkInterval > 0, \"Health check interval must be greater than zero\");\n Validate.isTrue(checkTimeout > 0, \"Health check timeout must be greater than zero\");\n }",
"private void validate() {\n for (DBRow row : rows) {\n for (DBColumn column : columns) {\n Cell cell = Cell.at(row, column);\n DBValue value = values.get(cell);\n notNull(value,\"Cell \" + cell);\n }\n }\n }",
"public void setRuleAgentProperties(KeyValuePairSet kvps) {\r\n ruleAgentProperties = kvps;\r\n }",
"public void validate() throws org.apache.thrift.TException {\n if (levelInfo != null) {\r\n levelInfo.validate();\r\n }\r\n }",
"public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}",
"private void validate() {\n mergeTransplantOpBase\n .mergeKeyBehaviors()\n .forEach(\n (key, mergeKeyBehavior) -> {\n switch (mergeKeyBehavior.getMergeBehavior()) {\n case NORMAL:\n if (mergeKeyBehavior.getResolvedContent() != null) {\n checkArgument(\n mergeKeyBehavior.getExpectedTargetContent() != null,\n \"MergeKeyBehavior.resolvedContent requires setting MergeKeyBehavior.expectedTarget as well for key %s\",\n key);\n }\n break;\n case DROP:\n case FORCE:\n checkArgument(\n mergeKeyBehavior.getResolvedContent() == null,\n \"MergeKeyBehavior.resolvedContent must be null for MergeBehavior.%s for %s\",\n mergeKeyBehavior.getMergeBehavior(),\n key);\n break;\n default:\n throw new IllegalArgumentException(\n \"Unknown MergeBehavior \" + mergeKeyBehavior.getMergeBehavior());\n }\n });\n }",
"@Then(\"^Validate the fields present in the result page$\") // Move to UserStep Definition\r\n\tpublic void attribute_validation(){\r\n\t\tenduser.attri_field();\r\n\t}",
"protected void validateEntity() {\n super.validateEntity();\n }",
"void validate(Inspector inspector) throws ValidationException;",
"private void validateParameter(){\n\t\tif(hrNum > upperBound){\n\t\t\thrNum = upperBound;\n\t\t}\n\t\telse if(hrNum < lowerBound){\n\t\t\thrNum = lowerBound;\n\t\t}\n\t}",
"protected void updateValidity(){}",
"public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n if (am_handle == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'am_handle' was not present! Struct: \" + toString());\n }\n if (user == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'user' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'gang' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (am_handle != null) {\n am_handle.validate();\n }\n if (reservation_id != null) {\n reservation_id.validate();\n }\n }",
"private void fillMandatoryFields() {\n\n }",
"public void validate() {\n\t\tClass<?> clazz = this.getModelObject().getClass();\n\t\tif (!ArenaUtils.isObservable(clazz)) {\n\t\t\tthrow new RuntimeException(\"La clase \" + clazz.getName() + \" no tiene alguna de estas annotations \" + ArenaUtils.getRequiredAnnotationForModels() + \" que son necesarias para ser modelo de una vista en Arena\");\n\t\t}\n\t\t// TODO: Validate children bindings?\n\t}",
"private void checkNoGettersSetters() {\n if (getters != null || setters != null)\n throw new AnalysisException(\"Unexpected getter/setter value!\");\n }",
"public void validarPostagem() {\n\t\t// validando se o nome motorista ou carona foram preenchidos\n\t\tint verif = 0;\n\t\ttry {\n\t\t\tif (txtCarona.getText() == null\n\t\t\t\t\t|| txtCarona.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (txtMotorista.getText() == null\n\t\t\t\t\t|| txtMotorista.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (verif == 2) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t\tif (txtDestino.getText() == null\n\t\t\t\t\t|| txtDestino.getText().trim().equals(\"\")) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(\n\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\"Para postar no quadro é necessário informar nome (motorista ou passageiro) \"\n\t\t\t\t\t\t\t\t\t+ \"\t\t\t\t\t\t\te local. \\n Por favor certifique se os campos foram preenchidos e tente novamente.\");\n\t\t}\n\n\t}",
"public void validate() throws ParameterValuesException {\n\t\tif (txtTenTaiSan.getText().isEmpty())\n\t\t\tthrow new ParameterValuesException(\"Bạn cần nhập tên tài sản\", null);\n\t}",
"public void validate() throws Exception {\n }",
"private void checkAttributes() throws JellyTagException\n {\n if (getField() == null)\n {\n throw new MissingAttributeException(\"field\");\n }\n if (getVar() == null)\n {\n if (!(getParent() instanceof ValueSupport))\n {\n throw new JellyTagException(\n \"No target for the resolved value: \"\n + \"Specify the var attribute or place the tag \"\n + \"in the body of a ValueSupport tag.\");\n }\n }\n }",
"private void validateDate() {\n if (dtpSightingDate.isEmpty()) {\n dtpSightingDate.setErrorMessage(\"This field cannot be left empty.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n // Check that the selected date is after research began (range check)\n else if (!validator.checkDateAfterMin(dtpSightingDate.getValue())) {\n dtpSightingDate.setErrorMessage(\"Please enter from \" + researchDetails.MIN_DATE + \" and afterwards. This is when the research period began.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n // Check that the selected date is not in the future (range check / logic check)\n else if (!validator.checkDateNotInFuture(dtpSightingDate.getValue())) {\n dtpSightingDate.setErrorMessage(\"Please enter a date from today or before. Sighting date cannot be in the future.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (!is_set_status()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'status' is unset! Struct:\" + toString());\n }\n\n if (!is_set_data()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'data' is unset! Struct:\" + toString());\n }\n\n if (!is_set_feature()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'feature' is unset! Struct:\" + toString());\n }\n\n if (!is_set_predictResult()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'predictResult' is unset! Struct:\" + toString());\n }\n\n if (!is_set_msg()) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'msg' is unset! Struct:\" + toString());\n }\n\n // check for sub-struct validity\n if (feature != null) {\n feature.validate();\n }\n }",
"public void verifyValues() {\r\n // update the values view to the latest version, then proceed to verify\r\n // as usual. \r\n values = map.values();\r\n super.verifyValues();\r\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (options != null) {\n options.validate();\n }\n }",
"void setupInvalidators() {\n addInvalidator(varLower.sym, makeInvalidateLower());\n addInvalidator(varUpper.sym, makeInvalidateUpper());\n if (varStep != null) {\n addInvalidator(varStep.sym, makeInvalidateStep());\n }\n addInvalidator(varSize.sym, makeInvalidateSize());\n }"
] | [
"0.5912037",
"0.5901056",
"0.5818946",
"0.5772689",
"0.5757928",
"0.5742319",
"0.57246643",
"0.5691682",
"0.56870574",
"0.56759167",
"0.56759167",
"0.56759167",
"0.5635271",
"0.5616466",
"0.5589546",
"0.5575645",
"0.55575305",
"0.5529436",
"0.55104095",
"0.54985434",
"0.5490324",
"0.54812074",
"0.54810417",
"0.54657793",
"0.5451386",
"0.54365385",
"0.54358995",
"0.5433762",
"0.5430697",
"0.54028326",
"0.53992695",
"0.5390231",
"0.538255",
"0.53757006",
"0.5364535",
"0.53536636",
"0.53512573",
"0.5337878",
"0.5333865",
"0.53295845",
"0.53154504",
"0.53150445",
"0.5305445",
"0.5285462",
"0.5279666",
"0.5261504",
"0.5261504",
"0.5246716",
"0.52426195",
"0.52274245",
"0.52266186",
"0.5222915",
"0.5218876",
"0.5218742",
"0.5202419",
"0.52022964",
"0.51932985",
"0.5192433",
"0.5192433",
"0.5182406",
"0.51813847",
"0.51730806",
"0.5172017",
"0.51719314",
"0.51542526",
"0.5145938",
"0.51420075",
"0.5141435",
"0.5141338",
"0.51401335",
"0.5135943",
"0.5135815",
"0.51268196",
"0.5116809",
"0.51088375",
"0.5107779",
"0.5098397",
"0.5094358",
"0.50929356",
"0.5092362",
"0.5085951",
"0.5084723",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5081009",
"0.5080374"
] | 0.5238618 | 49 |
Obtenccion del certificado para poder trabajar con twitter | public static Twitter crearTwitter(){
ConfigurationBuilder cb = new ConfigurationBuilder();
cb.setDebugEnabled(true)
.setOAuthConsumerKey("WX0FvnWENusasa09R8IVG6FFm")
.setOAuthConsumerSecret("Z6cXLTiqkU6NvlhqEHD7Br3S0jhmtUiLPvOPXCqLcrhQKFMYNr")
.setOAuthAccessToken("509341639-6R41f6i6WUAQn1xfzI8uNbPeyIhQvkMnXYaszNv6")
.setOAuthAccessTokenSecret("We08mCgnLMPXn6zl8UrKwGegac0Z4ksrI0LwhAbBoxp5q");
TwitterFactory tf = new TwitterFactory(cb.build());
return tf.getInstance();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void obtenerCertificado() {\n\n\t\tcertificado = generarCertificado(lasLlaves);\n\n\t\ttry {\n\n\t\t\tString cert = in.readLine();\n\t\t\tbyte[] esto = parseBase64Binary(cert);\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\tInputStream is = new ByteArrayInputStream(esto);\n\t\t\tX509Certificate certServer = (X509Certificate) cf.generateCertificate(is);\n\n\t\t\tllavePublica = certServer.getPublicKey(); \n\t\t\tSystem.out.println(\"Llave Publica obtenida\");\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"String getCertificate();",
"public void setCertificado(boolean certificado) {\n this.certificado = certificado;\n }",
"public void twitterConfiguration() {\n ConfigurationBuilder cb = new ConfigurationBuilder();\n\n cb.setDebugEnabled(true);\n//Cl\\u00e9 3\n cb.setOAuthConsumerKey(\"bHAfupgNYRVoSC27eHRqg\");\n cb.setOAuthConsumerSecret(\"GgxgSLDO8Rqaoctl2cPlPct95dNtq31rPF8HHNmi9g\");\n cb.setOAuthAccessToken(\"1272243708-zVoQBEQPJZpPuuzzq6nhhiVfveo8VaxzSaVLpJj\");\n cb.setOAuthAccessTokenSecret(\"VcwmL284xm80uZHIYUarkWRmsqyFM2WWsX8qdm1qoQpAe\");\n //Cl\\u00e9 4\n // cb.setOAuthConsumerKey(\"Pbi0uLWNe1fIEZLUGKTwqA\");\n // cb.setOAuthConsumerSecret(\"LWf4225LihNfBUEplzkEMXcoqsG5XP3sjOJpavwahqc\");\n // cb.setOAuthAccessToken(\"1272243708-S0bIRKBCfwzEwdc1FY8EMZFPsbtcwj4kz400wyV\");\n // cb.setOAuthAccessTokenSecret(\"0Dw1q4CjoJym3GlccCBdmoaRpBfvOTVfIryWVjqX51pWv\");\n\n c = cb.build();\n TwitterFactory tf = new TwitterFactory(c);\n twitter = tf.getInstance();\n}",
"public static String getCertificadoCacert(String ambiente)\n\t\t\tthrows NfeException {\n\n\t\tif (ambiente.equals(\"DES\")) {\n\t\t\treturn NfeUtil.class.getResource(\"/ARQUIVO_JKS.jks\").getPath();\n\t\t} else if (ambiente.equals(\"PROD\")) {\n\t\t\treturn NfeUtil.class.getResource(\"/ARQUIVO_JKS.jks\").getPath();\n\t\t} else {\n\t\t\tthrow new NfeException(\"Selecione o ambiente PROD/DES\");\n\n\t\t}\n\t}",
"@Then(\"extract broker certificate\")\n public void extractBrokerCertificate() {\n Secret secret = OpenShiftUtils.getInstance().getSecret(\"my-cluster-kafka-brokers\");\n String secrets = secret.toString();\n\n // 2. extract values:\n String cert = extractValue(\"crt\", secrets);\n\n // 3. put values into account:\n Account kafkaTlsAccount = AccountsDirectory.getInstance().get(\"kafka-autodetect-tls\");\n Map<String, String> kafkaAutodetectTlsParameters = kafkaTlsAccount.getProperties();\n kafkaAutodetectTlsParameters.put(\"brokercertificate\", cert);\n kafkaTlsAccount.setProperties(kafkaAutodetectTlsParameters);\n }",
"public String call_google_certificate() throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n // From https://www.washington.edu/itconnect/security/ca/load-der.crt\n InputStream caInput = getResources().openRawResource(R.raw.loadder);\n Certificate ca;\n try {\n ca = cf.generateCertificate(caInput);\n System.out.println(\"ca=\" + ((X509Certificate) ca).getSubjectDN());\n } finally {\n caInput.close();\n }\n // Create a KeyStore containing our trusted CAs\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n keyStore.setCertificateEntry(\"ca\", ca);\n // Create a TrustManager that trusts the CAs in our KeyStore\n String tmfAlgorithm = TrustManagerFactory.getDefaultAlgorithm();\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(tmfAlgorithm);\n tmf.init(keyStore);\n // Create an SSLContext that uses our TrustManager\n SSLContext context = SSLContext.getInstance(\"TLS\");\n context.init(null, tmf.getTrustManagers(), null);\n // Tell the URLConnection to use a SocketFactory from our SSLContext\n URL url = new URL(\"https://certs.cac.washington.edu/CAtest/\");\n HttpsURLConnection urlConnection =\n (HttpsURLConnection) url.openConnection();\n urlConnection.setSSLSocketFactory(context.getSocketFactory());\n InputStream in = urlConnection.getInputStream();\n return getStringFromInputStream(in);\n }",
"public String getCertification() {\n return certification;\n }",
"public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testtraerInfoParaCertificado() {\n\t\tLong idDeuda = 1l;\r\n\t\tString username = \"alonsoir\";\r\n\t\tInfoCertificadoDeuda info = despachoService.traerInfoParaCertificado(\r\n\t\t\t\tidDeuda, username); //\r\n\t\tLOG.info(info.toString());\r\n\t\tAssert.assertNotNull(info);\r\n\t}",
"public static String getCertificadoCliente() {\n\n\t\treturn NfeUtil.class.getResource(\"/CERTIFICADO.pfx\").getPath();\n\n\t}",
"public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public String getTlsCert();",
"private void setHascert() {\r\n\t\tthis.hascert = true;\r\n\t}",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"private String issuer() {\n return \"spoqn.com\";\n }",
"public static void main(String[] args) {\n\t\tKeyStore truststore;\r\n\t\tString filepath = System.getenv(\"JAVA_HOME\") + \"\\\\jre\\\\lib\\\\security\\\\cacerts\";\r\n\t\tString passwd=\"changeit\";\r\n\t\t//String filepath =\"d:\\\\12306.jks\";\r\n\t\t//String passwd=\"111111\";\r\n\t\ttry {\r\n\t\t\ttruststore = KeyStore.getInstance(KeyStore.getDefaultType());\r\n\t\t\ttruststore.load(new FileInputStream(new File(filepath)), passwd.toCharArray());\r\n\r\n\t\t\tSSLContext sslContext = SSLContexts.custom().loadTrustMaterial(truststore, new MyTrustSelfSignedStrategy())\r\n\t\t\t\t\t.build();\r\n\t\t\t\r\n//\t\t\tSSLContext sslContext = SSLContexts.custom().loadTrustMaterial(truststore)\r\n//\t\t\t\t\t.build();\r\n\t\t\tSSLConnectionSocketFactory sslcsf = new SSLConnectionSocketFactory(sslContext, new String[] { \"TLSv1\" },\r\n\t\t\t\t\tnull, SSLConnectionSocketFactory.BROWSER_COMPATIBLE_HOSTNAME_VERIFIER);\r\n\t\t\tCloseableHttpClient httpclient = HttpClients.custom().setSSLSocketFactory(sslcsf).build();\r\n\r\n\t\t\tHttpPost httppost = new HttpPost(\"https://ebank.95559.com.cn/corporbank/NsTrans\");\r\n\r\n\t\t\tSystem.out.println(\"executing request\" + httppost.getRequestLine());\r\n\r\n\t\t\tCloseableHttpResponse response = httpclient.execute(httppost);\r\n\t\t\ttry {\r\n\t\t\t\tHttpEntity entity = response.getEntity();\r\n\r\n\t\t\t\tSystem.out.println(\"----------------------------------------\");\r\n\t\t\t\tSystem.out.println(response.getStatusLine());\r\n\t\t\t\tif (entity != null) {\r\n\t\t\t\t\tSystem.out.println(\"Response content length: \" + entity.getContentLength());\r\n\t\t\t\t}\r\n\t\t\t\tEntityUtils.consume(entity);\r\n\t\t\t} finally {\r\n\t\t\t\tresponse.close();\r\n\t\t\t}\r\n\r\n\t\t} catch (KeyStoreException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\r\n\t\t} catch (KeyManagementException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClientProtocolException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (CertificateException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"private void connectUsingCertificate() {\n\t\tfinal String METHOD = \"connectUsingCertificate\";\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"wss://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WSS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"ssl://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTTS_PORT;\n\t\t\t}\n\t\t} \n\n\t\tString mqttServer = getMQTTServer();\n\t\t\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, DATA_STORE);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t\tmqttClientOptions.setAutomaticReconnect(isAutomaticReconnect());\n\t\t\t\n\t\t\t/* This isn't needed as the production messaging.internetofthings.ibmcloud.com \n\t\t\t * certificate should already be in trust chain.\n\t\t\t * \n\t\t\t * See: \n\t\t\t * http://stackoverflow.com/questions/859111/how-do-i-accept-a-self-signed-certificate-with-a-java-httpsurlconnection\n\t\t\t * https://gerrydevstory.com/2014/05/01/trusting-x509-base64-pem-ssl-certificate-in-java/\n\t\t\t * http://stackoverflow.com/questions/12501117/programmatically-obtain-keystore-from-pem\n\t\t\t * https://gist.github.com/sharonbn/4104301\n\t\t\t * \n\t\t\t * CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\t * InputStream certFile = AbstractClient.class.getResourceAsStream(\"messaging.pem\");\n\t\t\t * Certificate ca = cf.generateCertificate(certFile);\n\t\t\t *\n\t\t\t * KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t * keyStore.load(null, null);\n\t\t\t * keyStore.setCertificateEntry(\"ca\", ca);\n\t\t\t * TrustManager trustManager = TrustManagerUtils.getDefaultTrustManager(keyStore);\n\t\t\t * SSLContext sslContext = SSLContextUtils.createSSLContext(\"TLSv1.2\", null, trustManager);\n\t\t\t * \n\t\t\t */\n\n\t\t\tSSLContext sslContext = SSLContext.getInstance(\"TLSv1.2\");\n\t\t\tsslContext.init(null, null, null);\n\t\t\t\n\t\t\t//Validate the availability of Server Certificate\n\t\t\t\n\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tserverCert = trimedValue(options.getProperty(\"Server-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Server Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Client Certificate\n\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tclientCert = trimedValue(options.getProperty(\"Client-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t//Validate the availability of Client Certificate Key\n\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")).contains(\".key\")){\n\t\t\t\t\tclientCertKey = trimedValue(options.getProperty(\"Client-Key\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only Certificate key in .key format is supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Key is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Certificate Password\n\t\t\ttry{\n\t\t\tif (trimedValue(options.getProperty(\"Certificate-Password\")) != null){\n\t\t\t\tcertPassword = trimedValue(options.getProperty(\"Certificate-Password\"));\n\t\t\t\t} else {\n\t\t\t\t\tcertPassword = \"\";\n\t\t\t\t}\n\t\t\t} catch (Exception e){\n\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Certificate Password is missing\", e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setSocketFactory(getSocketFactory(serverCert, clientCert, clientCertKey, certPassword));\n\n\t\t} catch (Exception e) {\n\t\t\tLoggerUtility.warn(CLASS_NAME, METHOD, \"Unable to configure TLSv1.2 connection: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n protected void execute() throws Exception {\r\n log.debug(\"Downloading SAML certificate and adding it to the keystore\");\r\n TlsPolicy tlsPolicy = TlsPolicyBuilder.factory().strictWithKeystore(trustagentConfiguration.getTrustagentKeystoreFile(), trustagentConfiguration.getTrustagentKeystorePassword()).build();\r\n TlsConnection tlsConnection = new TlsConnection(new URL(url), tlsPolicy);\r\n \r\n Properties clientConfiguration = new Properties();\r\n clientConfiguration.setProperty(TrustagentConfiguration.MTWILSON_API_USERNAME, username);\r\n clientConfiguration.setProperty(TrustagentConfiguration.MTWILSON_API_PASSWORD, password);\r\n \r\n CaCertificates client = new CaCertificates(clientConfiguration, tlsConnection);\r\n X509Certificate certificate = client.retrieveCaCertificate(\"saml\");\r\n keystore.addTrustedCaCertificate(certificate, \"saml\");\r\n// X509Certificate endorsementCertificate = client.retrieveCaCertificate(\"endorsement\");\r\n// keystore.addTrustedCaCertificate(endorsementCertificate, \"endorsement\");\r\n keystore.save();\r\n }",
"private static void storeActivation(Context context) {\n\t\t//securely store in shared preference\n\t\tSharedPreferences secureSettings = new SecurePreferences(context);\n\t\tString account = UserEmailFetcher.getEmail(context);\n\n\t\t//update preference\n\t\tSharedPreferences.Editor secureEdit = secureSettings.edit();\n\t\tsecureEdit.putBoolean(account + \"_paid\", true);\n\t\tsecureEdit.apply();\n\t}",
"@Override\n\tpublic void credite() {\n\t\t\n\t}",
"public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }",
"com.soa.SolicitarCreditoDocument.SolicitarCredito getSolicitarCredito();",
"private X509Certificate generarCertificado(KeyPair keyPair2) {\n\t\tX509Certificate cert = null;\n\n\t\tX509V3CertificateGenerator gen = new X509V3CertificateGenerator();\n\t\tX500Principal prin = new X500Principal(\"CN=Grupo MPG\");\n\t\tgen.setSerialNumber(BigInteger.valueOf(System.currentTimeMillis()));\n\t\tgen.setIssuerDN(prin);\n\t\tgen.setNotBefore(new Date(System.currentTimeMillis() - 50000));\n\t\tgen.setNotAfter(new Date(System.currentTimeMillis() - 50000));\n\t\tgen.setSubjectDN(prin);\n\t\tgen.setPublicKey(keyPair2.getPublic());\n\t\tgen.setSignatureAlgorithm(\"MD2withRSA\");\n\t\ttry {\n\t\t\tcert = gen.generate(keyPair2.getPrivate());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn cert;\n\t}",
"public int getExternalIssuer();",
"boolean hasCertificate();",
"public double getValorCertificado() { return this.valorCertificado; }",
"private SSLContext createSSLContext() throws KeyStoreException,\n NoSuchAlgorithmException, KeyManagementException, IOException, CertificateException {\n TrustManager localTrustManager = new X509TrustManager() {\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n System.out.println(\"X509TrustManager#getAcceptedIssuers\");\n return new X509Certificate[]{};\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain,\n String authType) throws CertificateException {\n System.out.println(\"X509TrustManager#checkServerTrusted\");\n }\n\n @Override\n public void checkClientTrusted(X509Certificate[] chain,\n String authType) throws CertificateException {\n System.out.println(\"X509TrustManager#checkClientTrusted\");\n }\n };\n\n\n SSLContext sslContext = SSLContext.getInstance(\"TLS\");\n sslContext.init(null, new TrustManager[]{localTrustManager}, new SecureRandom());\n\n return sslContext;\n }",
"public String chaveSecundaria(){\r\n return this.email;\r\n }",
"public String getCertification() {\r\n\t\treturn certification;\r\n\t}",
"java.lang.String getIssuer();",
"java.lang.String getLicensesCertificationsRaw();",
"@Test\n\tpublic void testGetCACerts_TAandTLS() {\n\t\tSystem.out.println(\"Beginning TC2002\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate myCert1 = null;\n\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(mCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t// get a good cert to use for tls credentials\n\t\tmyCert1 = getTrustedCert();\n\t\tec.setTLSAuthenticationCredentials(myCert1, mKey);\n\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (CertificateException | IOException | CACertsException\n\t\t\t\t| BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tassertNotNull(newCACerts);\n\t\tif (newCACerts != null) {\n\t\t\tassertFalse(newCACerts.isEmpty());\n\t\t}\n\n\t\tfor (X509Certificate c : newCACerts) {\n\t\t\t// System.out.println(c.toString());\n\t\t\tSystem.out.println(\"Issuer: \" + c.getIssuerDN().getName());\n\t\t\tassertNotNull(c.getIssuerDN().getName());\n\t\t\tassertFalse(c.getIssuerDN().getName().equals(\"\"));\n\t\t}\n\t\tSystem.out.println(\"Ending TC2002\");\n\t}",
"@Override public int doIt(){\r\n log.println();\r\n log.println(twoLineStartMsg().append('\\n'));\r\n \r\n if (isTest()) {\r\n log.println(prop.toString());\r\n } // >= TEST\r\n \r\n try { // open input\r\n if (fromCert) {\r\n certFileName = w0;\r\n } else if (certFileName == null) {\r\n certFileName = System.getProperty(\"user.home\") + \"/.keystore\"; \r\n }\r\n fis = new FileInputStream(certFileName);\r\n } catch (FileNotFoundException e) {\r\n if (isTest()) {\r\n log.println(formMessage(\"openexcp\", certFileName));\r\n e.printStackTrace(log);\r\n }\r\n return errMeld(17, formMessage(\"openexcp\", e));\r\n } // open input\r\n \r\n if (fromCert) { // cert (else keystore)\r\n pubKeyFil = w1;\r\n try {\r\n cFac = CertificateFactory.getInstance(certType);\r\n cert = cFac.generateCertificate(fis);\r\n } catch (CertificateException e1) {\r\n log.println(formMessage(\"pukynotgtb\", certFileName));\r\n return errMeld(19, e1);\r\n }\r\n pubKey = cert.getPublicKey();\r\n log.println(formMessage(\"pukyfrcert\", certFileName));\r\n } else { // cert else keystore\r\n keyAlias = w0;\r\n pubKeyFil = w1;\r\n storePassW = TextHelper.trimUq(storePassW, null);\r\n if (storePassW != null) {\r\n passWord = storePassW.toCharArray();\r\n } else {\r\n passWord = AskDialog.getAnswerText(\r\n valueLang(\"pkexpdtit\"), // titel PKextr password dialog\r\n keyAlias, // upper\r\n true, // upper monospaced\r\n valueLang(\"pkexpasye\"), valueLang(\"pkexpasno\"), // yes, cancel\r\n 990, // waitMax = 99s\r\n valueLang(\"pkexpassr\"),\r\n null, true); //Color bg password \r\n } // storePassw \r\n \r\n try {\r\n ks = KeyStore.getInstance(certType);\r\n } catch (KeyStoreException e1) {\r\n return errMeld(21, e1);\r\n }\r\n\r\n try {\r\n ks.load(fis, passWord);\r\n fis.close();\r\n cert = ks.getCertificate(keyAlias);\r\n } catch (Exception e2) {\r\n return errMeld(29, e2);\r\n }\r\n // alias \r\n if (exportPrivate) {\r\n Key key = null;\r\n try {\r\n key = ks.getKey(keyAlias, passWord);\r\n } catch (Exception e) {\r\n return errorExit(39, e, \"could not get the key from keystore.\");\r\n }\r\n if (key instanceof PrivateKey) {\r\n // ex history: BASE64Encoder myB64 = new BASE64Encoder();\r\n // since 24.06.2016 String b64 = myB64.encode(key.getEncoded());\r\n Base64.Encoder mimeEncoder = java.util.Base64.getMimeEncoder();\r\n String b64 = mimeEncoder.encodeToString( key.getEncoded());\r\n \r\n log.println(\"-----BEGIN PRIVATE KEY-----\");\r\n log.println(b64);\r\n log.println(\"-----END PRIVATE KEY-----\\n\\n\");\r\n\r\n if (pubKeyFil == null) return 0;\r\n \r\n log.println(formMessage(\"prkywrite\", pubKeyFil));\r\n try {\r\n keyfos = new FileOutputStream(pubKeyFil);\r\n } catch (FileNotFoundException e1) {\r\n return errMeld(31, e1);\r\n }\r\n Writer osw = new OutputStreamWriter(keyfos); \r\n try {\r\n osw.write(\"-----BEGIN PRIVATE KEY-----\\n\");\r\n osw.write(b64);\r\n osw.write(\"\\n-----END PRIVATE KEY-----\\n\");\r\n osw.close();\r\n } catch (IOException e2) {\r\n return errMeld(31, e2);\r\n }\r\n\r\n return 0;\r\n \r\n }\r\n return errorExit(39, \"no private key found\");\r\n } // export private \r\n pubKey = cert.getPublicKey();\r\n log.println(formMessage(\"pukyfrstor\",\r\n new String[]{keyAlias, certFileName}));\r\n } // else from keystore\r\n \r\n log.println(\"\\n----\\n\" + pubKey.toString() + \"\\n----\\n\\n\");\r\n \r\n if (pubKeyFil == null) return 0;\r\n\r\n // got the public key and listed it to log\r\n log.println(formMessage(\"pukywrite\", pubKeyFil));\r\n //\" Write public key to \\\"\" + pubKeyFil + \"\\\"\\n\");\r\n byte[] key = pubKey.getEncoded();\r\n try {\r\n keyfos = new FileOutputStream(pubKeyFil);\r\n } catch (FileNotFoundException e1) {\r\n return errMeld(31, e1);\r\n }\r\n try {\r\n keyfos.write(key);\r\n keyfos.close();\r\n } catch (IOException e2) {\r\n return errMeld(31, e2);\r\n }\r\n return 0;\r\n }",
"private void Initiat_Service(Object serviceAdm,Utilisateur user_en_cours) {\n\t\tlog.debug(\"user_en_cours.trustedApplication:\"+user_en_cours.trustedApplication);\n\t\t\t\tString filename =propIdentification.getProperty(Long.toString(user_en_cours.trustedApplication));\n\t\t\t\tlog.debug(\"filename:\"+filename);\n\t\t\t\t//System.out.println(\"my file \"+filename);\n\t\t\t\tFileInputStream is=null;\n\t\t\t\ttry {\n\t\t\t\t\tis = new FileInputStream(filename);\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tKeyStore myKeyStore=null;\n\t\t\t\ttry {\n\t\t\t\t\tmyKeyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t\t} catch (KeyStoreException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t\tString password =propIdentification.getProperty(Long.toString(user_en_cours.trustedApplication)+\".password\");\n\n\t\t\t\ttry {\n\t\t\t\t\tmyKeyStore.load(is, password.toCharArray());\n\t\t\t\t} catch (NoSuchAlgorithmException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t} catch (CertificateException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tString filenameTrust =prop.getProperty(\"clienttrustore\");\n\t\t\t\tFileInputStream myKeys = null;\n\t\t\t\ttry {\n\t\t\t\t\tmyKeys = new FileInputStream(filenameTrust);\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t// Load your TrustedStore\n\t\t\t\tKeyStore myTrustedStore=null;\n\t\t\t\ttry {\n\t\t\t\t\tmyTrustedStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t\t} catch (KeyStoreException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tmyTrustedStore.load(myKeys, prop.getProperty(\"clienttrustore.password\").toCharArray());\n\t\t\t\t} catch (NoSuchAlgorithmException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (CertificateException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tWSConnection.setupTLS(serviceAdm, myKeyStore, password, myTrustedStore);\n\t\t\t\t} catch (GeneralSecurityException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t}",
"public void setValorCertificado(double p) { this.valorCertificado = p; }",
"public static String generateCert(String certPem) {\n try {\n String tempPemPath = \"/tmp/tempPem\";\n Files.write(Paths.get(tempPemPath), certPem.getBytes());\n\n DefaultExecutor executor = new DefaultExecutor();\n CommandLine cmdLine = CommandLine.parse(\"openssl\");\n cmdLine.addArgument(\"x509\");\n cmdLine.addArgument(\"-in\");\n cmdLine.addArgument(tempPemPath);\n cmdLine.addArgument(\"-text\");\n\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n PumpStreamHandler streamHandler = new PumpStreamHandler(baos);\n executor.setStreamHandler(streamHandler);\n\n executor.execute(cmdLine);\n return baos.toString(\"UTF-8\");\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"private @NonNull WpcCrtChn getChn() throws IOException, GeneralSecurityException {\n int siz = MAX_CRT; // Initialize the requested length for the GET_CERTIFICATE Request\n int ofs = 0; // Initialize the offset for the GET_CERTIFICATE Request\n int len = 0; // Initialize length of Certificate Chain\n ByteArrayOutputStream bas = new ByteArrayOutputStream(MAX_CRT); // Create stream for Certificate Chain\n do {\n ByteBuffer req = getMsg(REQ_CRT, 4); // Create GET_CERTIFICATE request message\n req.position(1); // Set buffer pointer to offset\n req.put((byte) (((ofs & 0x0300) >> 2) | SLOT_0)); // Add slot byte\n req.put((byte) ofs); // Add offset\n req.put((byte) siz); // Add Length\n ByteBuffer res = sndMsg(req, WpcAthRsp.RES_CRT); // Send GET_CERTIFICATE Request\n if (ofs == 0) { // First GET_CERTIFICATE Request?\n len = res.getShort(); // Get the total length of the Certificate Chain\n if (len < siz) { // Certificate Chain too small?\n WpcLog.logErr(\"Wrong WPC Certificate Chain length\"); // Log error\n throw new IOException(); // Abort authentication\n }\n }\n byte[] buf = res.array(); // Get CERTIFICATE Response\n if ((siz != (buf.length - 1))) { // Incorrect Certificate Chain fragment size?\n WpcLog.logErr(\"Invalid WPC Certificate Chain length\"); // Log error\n throw new IOException(); // Abort authentication\n }\n bas.write(buf, 1, siz); // Add Certificate fragment to the Certificate Chain\n len = len - siz; // Calculate remaining bytes in the Certificate Chain\n ofs = ofs + siz; // Calculate offset for the next GET_CERTIFICATE Request\n if (len > MAX_CRT) { // Remaining Certificate Chain does not fit into one GET_CERTIFICATE Request?\n siz = MAX_CRT; // Request the maximum fragment for the next GET_CERTIFICATE Request\n } else { // Remaining Certificate Chain fits into one GET_CERTIFICATE Request\n siz = len; // Request the remaining bytes of the Certificate Chain\n }\n } while (len > 0); // Repeat until whole Certificate Chain is received\n byte[] ba = bas.toByteArray(); // Convert WPC Certificate Chain into a byte array\n WpcCrtChn chn = new WpcCrtChn(ba); // Create the Certificate Chain\n chn.verify(); // Verify the Certificate Chain\n mCom.setChn(chn); // Announce used WPC Certificate Chain\n WpcLog.log(WpcLog.EvtTyp.CHN, ba); // Log the received WPC Certificate Chain\n return chn; // Return the Certificate Chain\n }",
"public abstract T useTransportSecurity(File certChain, File privateKey);",
"dkk mo4509g();",
"private void loadTM() throws ERMgmtException{\n try{\n KeyStore ts = KeyStore.getInstance(KeyStore.getDefaultType());\n //random number generate to generated aliases for the new keystore\n Random generator = new Random();\n \n ts.load(null, null);\n \n if(mCertList.size() > 0){\n for(int i=0; i<mCertList.size(); i++){\n int randomInt = generator.nextInt();\n while(ts.containsAlias(\"certificate\"+randomInt)){\n randomInt = generator.nextInt();\n }\n ts.setCertificateEntry(\"certificate\"+randomInt, (X509Certificate) mCertList.get(i));\n } \n mTrustManagerFactory.init(ts); \n } else { \n mTrustManagerFactory.init((KeyStore) null);\n }\n \n TrustManager[] tm = mTrustManagerFactory.getTrustManagers();\n for(int i=0; i<tm.length; i++){\n if (tm[i] instanceof X509TrustManager) {\n mTrustManager = (X509TrustManager)tm[i]; \n break;\n }\n }\n \n } catch (Exception e){ \n throw new ERMgmtException(\"Trust Manager Error\", e);\n }\n \n }",
"private void importTrustedCertificate() {\n\t\t// Let the user choose a file containing trusted certificate(s) to\n\t\t// import\n\t\tFile certFile = selectImportExportFile(\n\t\t\t\t\"Certificate file to import from\", // title\n\t\t\t\tnew String[] { \".pem\", \".crt\", \".cer\", \".der\", \"p7\", \".p7c\" }, // file extensions filters\n\t\t\t\t\"Certificate Files (*.pem, *.crt, , *.cer, *.der, *.p7, *.p7c)\", // filter descriptions\n\t\t\t\t\"Import\", // text for the file chooser's approve button\n\t\t\t\t\"trustedCertDir\"); // preference string for saving the last chosen directory\n\t\tif (certFile == null)\n\t\t\treturn;\n\n\t\t// Load the certificate(s) from the file\n\t\tArrayList<X509Certificate> trustCertsList = new ArrayList<>();\n\t\tCertificateFactory cf;\n\t\ttry {\n\t\t\tcf = CertificateFactory.getInstance(\"X.509\");\n\t\t} catch (Exception e) {\n\t\t\t// Nothing we can do! Things are badly misconfigured\n\t\t\tcf = null;\n\t\t}\n\n\t\tif (cf != null) {\n\t\t\ttry (FileInputStream fis = new FileInputStream(certFile)) {\n\t\t\t\tfor (Certificate cert : cf.generateCertificates(fis))\n\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t} catch (Exception cex) {\n\t\t\t\t// Do nothing\n\t\t\t}\n\n\t\t\tif (trustCertsList.size() == 0) {\n\t\t\t\t// Could not load certificates as any of the above types\n\t\t\t\ttry (FileInputStream fis = new FileInputStream(certFile);\n\t\t\t\t\t\tPEMReader pr = new PEMReader(\n\t\t\t\t\t\t\t\tnew InputStreamReader(fis), null, cf\n\t\t\t\t\t\t\t\t\t\t.getProvider().getName())) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Try as openssl PEM format - which sligtly differs from\n\t\t\t\t\t * the one supported by JCE\n\t\t\t\t\t */\n\t\t\t\t\tObject cert;\n\t\t\t\t\twhile ((cert = pr.readObject()) != null)\n\t\t\t\t\t\tif (cert instanceof X509Certificate)\n\t\t\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t\t} catch (Exception cex) {\n\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (trustCertsList.size() == 0) {\n\t\t\t/* Failed to load certifcate(s) using any of the known encodings */\n\t\t\tshowMessageDialog(this,\n\t\t\t\t\t\"Failed to load certificate(s) using any of the known encodings -\\n\"\n\t\t\t\t\t\t\t+ \"file format not recognised.\", ERROR_TITLE,\n\t\t\t\t\tERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Show the list of certificates contained in the file for the user to\n\t\t// select the ones to import\n\t\tNewTrustCertsDialog importTrustCertsDialog = new NewTrustCertsDialog(this,\n\t\t\t\t\"Credential Manager\", true, trustCertsList, dnParser);\n\n\t\timportTrustCertsDialog.setLocationRelativeTo(this);\n\t\timportTrustCertsDialog.setVisible(true);\n\t\tList<X509Certificate> selectedTrustCerts = importTrustCertsDialog\n\t\t\t\t.getTrustedCertificates(); // user-selected trusted certs to import\n\n\t\t// If user cancelled or did not select any cert to import\n\t\tif (selectedTrustCerts == null || selectedTrustCerts.isEmpty())\n\t\t\treturn;\n\n\t\ttry {\n\t\t\tfor (X509Certificate cert : selectedTrustCerts)\n\t\t\t\t// Import the selected trusted certificates\n\t\t\t\tcredManager.addTrustedCertificate(cert);\n\n\t\t\t// Display success message\n\t\t\tshowMessageDialog(this, \"Trusted certificate(s) import successful\",\n\t\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\t} catch (CMException cme) {\n\t\t\tString exMessage = \"Failed to import trusted certificate(s) to the Truststore\";\n\t\t\tlogger.error(exMessage, cme);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}",
"public X509Certificate getCertificate();",
"@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}",
"private void initTwitterConfigs() {\n consumerKey = getString(com.socialscoutt.R.string.twitter_consumer_key);\n consumerSecret = getString(com.socialscoutt.R.string.twitter_consumer_secret);\n }",
"public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }",
"public static Map<String, String> listTokenFromCSP()\r\n\t\t\tthrows BkavSignaturesException {\r\n\t\tMap<String, String> result = new HashMap<>();\r\n\t\ttry {\r\n\t\t\tSunMSCAPI providerMSCAPI = new SunMSCAPI();\r\n\t\t\tSecurity.addProvider(providerMSCAPI);\r\n\t\t\tKeyStore ks = KeyStore.getInstance(CSP_KEYSTORE);\r\n\t\t\tks.load(null, null);\r\n\r\n\t\t\tEnumeration<String> aliases = ks.aliases();\r\n\t\t\tString alias = null;\r\n\r\n\t\t\twhile (aliases.hasMoreElements()) {\r\n\t\t\t\talias = aliases.nextElement();\r\n\t\t\t\tCertificate cert = ks.getCertificate(alias);\r\n\t\t\t\tif (cert instanceof X509Certificate) {\r\n\t\t\t\t\tX509Certificate x509Cert = (X509Certificate) cert;\r\n\t\t\t\t\tString certSerial = x509Cert.getSerialNumber().toString(16);\r\n\r\n\t\t\t\t\tString subjectDN = x509Cert.getSubjectDN().getName();\r\n\t\t\t\t\tString author = \"\";\r\n\t\t\t\t\tLdapName ldap;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tldap = new LdapName(subjectDN);\r\n\t\t\t\t\t\tfor (Rdn rdn : ldap.getRdns()) {\r\n\t\t\t\t\t\t\tif (\"CN\".equalsIgnoreCase(rdn.getType())) {\r\n\t\t\t\t\t\t\t\tauthor = rdn.getValue().toString();\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (InvalidNameException e) {\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tresult.put(certSerial, author);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (KeyStoreException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"KeyStoreException\", e);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"NoSuchAlgorithmException\", e);\r\n\t\t} catch (CertificateException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"CertificateException\", e);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"IOException\", e);\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Certificat)) {\r\n return false;\r\n }\r\n Certificat other = (Certificat) object;\r\n if ((this.idCertificat == null && other.idCertificat != null) || (this.idCertificat != null && !this.idCertificat.equals(other.idCertificat))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public void ShowSSLDialog(java.lang.String r23, byte[] r24, android.net.http.SslCertificate r25, boolean r26) {\n /*\n r22 = this;\n r3 = com.adobe.air.AndroidActivityWrapper.GetAndroidActivityWrapper();\n r10 = r3.getActivity();\n if (r10 != 0) goto L_0x000e;\n L_0x000a:\n r10 = r3.WaitForNewActivity();\n L_0x000e:\n r7 = new com.adobe.air.AndroidAlertDialog;\n r7.<init>(r10);\n r16 = r7.GetAlertDialogBuilder();\n r9 = r10.getLayoutInflater();\n r14 = r10.getResources();\n r19 = \"ssl_certificate_warning\";\n r0 = r19;\n r17 = com.adobe.air.utils.Utils.GetLayoutView(r0, r14, r9);\n if (r17 == 0) goto L_0x0178;\n L_0x0029:\n r18 = r17.getResources();\n r19 = \"ServerName\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r15 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r15 = (android.widget.TextView) r15;\n r19 = new java.lang.StringBuilder;\n r19.<init>();\n r20 = r15.getText();\n r19 = r19.append(r20);\n r20 = \" \";\n r19 = r19.append(r20);\n r0 = r19;\n r1 = r23;\n r19 = r0.append(r1);\n r19 = r19.toString();\n r0 = r19;\n r15.setText(r0);\n r5 = 0;\n if (r24 == 0) goto L_0x0179;\n L_0x0062:\n r5 = new com.adobe.air.Certificate;\n r5.<init>();\n r0 = r24;\n r5.setCertificate(r0);\n L_0x006c:\n r19 = \"IDA_CERTIFICATE_DETAILS\";\n r0 = r19;\n r6 = com.adobe.air.utils.Utils.GetResourceString(r0, r14);\n r19 = 8;\n r0 = r19;\n r0 = new java.lang.Object[r0];\n r19 = r0;\n r20 = 0;\n r21 = r5.getIssuedToCommonName();\n r19[r20] = r21;\n r20 = 1;\n r21 = r5.getIssuedToOrganization();\n r19[r20] = r21;\n r20 = 2;\n r21 = r5.getIssuedToOrganizationalUnit();\n r19[r20] = r21;\n r20 = 3;\n r21 = r5.getIssuedByCommonName();\n r19[r20] = r21;\n r20 = 4;\n r21 = r5.getIssuedByOrganization();\n r19[r20] = r21;\n r20 = 5;\n r21 = r5.getIssuedByOrganizationalUnit();\n r19[r20] = r21;\n r20 = 6;\n r21 = r5.getIssuedOn();\n r19[r20] = r21;\n r20 = 7;\n r21 = r5.getExpiresOn();\n r19[r20] = r21;\n r0 = r19;\n r8 = java.lang.String.format(r6, r0);\n r19 = \"CertificateDetails\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r4 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r4 = (android.widget.TextView) r4;\n r19 = android.widget.TextView.BufferType.SPANNABLE;\n r0 = r19;\n r4.setText(r8, r0);\n r19 = \"NeutralButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r12 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r12 = (android.widget.Button) r12;\n r19 = new com.adobe.air.SSLSecurityDialog$1;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r12.setOnClickListener(r0);\n r19 = \"PositiveButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r13 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r13 = (android.widget.Button) r13;\n if (r26 == 0) goto L_0x0182;\n L_0x0103:\n r19 = new com.adobe.air.SSLSecurityDialog$2;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r13.setOnClickListener(r0);\n r19 = 0;\n r0 = r19;\n r13.setVisibility(r0);\n L_0x0118:\n r19 = \"NegativeButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r11 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r11 = (android.widget.Button) r11;\n r19 = new com.adobe.air.SSLSecurityDialog$3;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r11.setOnClickListener(r0);\n r16.setView(r17);\n r19 = new com.adobe.air.SSLSecurityDialog$4;\n r0 = r19;\n r1 = r22;\n r0.<init>();\n r0 = r16;\n r1 = r19;\n r0.setOnKeyListener(r1);\n r19 = new com.adobe.air.SSLSecurityDialog$5;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r10.runOnUiThread(r0);\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.lock();\n r0 = r22;\n r0 = r0.m_useraction;\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n r19 = r0;\n if (r19 != 0) goto L_0x016f;\n L_0x0166:\n r0 = r22;\n r0 = r0.m_condition;\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n r19 = r0;\n r19.await();\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n L_0x016f:\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.unlock();\n L_0x0178:\n return;\n L_0x0179:\n r5 = new com.adobe.air.Certificate;\n r0 = r25;\n r5.<init>(r0);\n goto L_0x006c;\n L_0x0182:\n r19 = 8;\n r0 = r19;\n r13.setVisibility(r0);\n goto L_0x0118;\n L_0x018a:\n r19 = move-exception;\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.unlock();\n goto L_0x0178;\n L_0x0195:\n r19 = move-exception;\n r0 = r22;\n r0 = r0.m_lock;\n r20 = r0;\n r20.unlock();\n throw r19;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.adobe.air.SSLSecurityDialog.ShowSSLDialog(java.lang.String, byte[], android.net.http.SslCertificate, boolean):void\");\n }",
"private JugComunidadCertificado getCertificadoActivo(ComunidadQueryBean query) {\r\n\t\tif(query.getIdComunidad()!=null)\r\n\t\t\treturn comunidadRepository.getCertificadoActivoComunidad(query);\r\n\t\treturn null;\r\n\t\t}",
"@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}",
"private static SSLContext createSSLContext() {\n\t try {\n\t SSLContext context = SSLContext.getInstance(\"SSL\");\n\t if (devMode) {\n\t \t context.init( null, new TrustManager[] {new RESTX509TrustManager(null)}, null); \n\t } else {\n\t TrustManager[] trustManagers = tmf.getTrustManagers();\n\t if ( kmf!=null) {\n\t KeyManager[] keyManagers = kmf.getKeyManagers();\n\t \n\t // key manager and trust manager\n\t context.init(keyManagers,trustManagers,null);\n\t }\n\t else\n\t \t// no key managers\n\t \tcontext.init(null,trustManagers,null);\n\t }\n\t return context;\n\t } \n\t catch (Exception e) {\n\t \t logger.error(e.toString());\n\t throw new HttpClientError(e.toString());\n\t \t }\n }",
"public static void initializeTwitterAccount()\n\t{\n\t\tString cK = \"\";\n\t\tString cS = \"\";\n\t\tString aT = \"\";\n\t\tString aTS = \"\";\n\t\ttA = new TwitterAccount(cK, cS, aT, aTS);\n\t}",
"private void runSmpl() throws GeneralSecurityException, IOException {\n WpcCrtChn chn = getChn(); // Request the WPC Certificate Chain\n ByteBuffer msg = getAth(); // Create CHALLENGE request\n byte[] res = sndAth(msg); // Send the CHALLENGE Request message\n byte[] dig = WpcAthRsp.getSigDig(chn.getDig(), msg.array(), res); // Get the Digest for the challenge\n byte[] sig = Arrays.copyOfRange(res, WpcAthRsp.LEN_ATH, res.length); // Get the signature from the CHALLENGE_AUTH Response\n verify(dig, sig, chn.getPu()); // Verify the signature\n }",
"public String getTlsCertPath();",
"public EnviarXml(String caminhoCacerts, String caminhoCertificadoA1, String senhaCertificadoA1) {\n\t\ttry {\n\t\t\tcertificado = EsocialUtils.getCertificadoA1(caminhoCertificadoA1, senhaCertificadoA1);\n\t\t\tEsocialUtils.inicializarCertificadSocketDinamico(caminhoCacerts, certificado);\n\t\t} catch (CertificadoException | FileNotFoundException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n \tSystem.out.println(\"essai2=\"+Accueil_clientController.utilisateurConnecte.getEmail());\r\n // TODO\r\n }",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);",
"public void checkServerTrusted ( X509Certificate[] chain, String authType ) throws CertificateException { \n //String to hold the issuer of first member in the chain\n String issuer = \"\";\n //String to hold the subject of the first member in the chain\n String subject = \"\";\n //Calendar to get the valid on and expires on date\n Calendar cal=Calendar.getInstance();\n //Date and String to hold the date the certificate was issued on\n Date issuedOn = null;\n String issuedOnString = new String(\"\");\n //Date and String to hold the date the certificate is valid until\n Date expiresOn = null;\n String expiresOnString = new String(\"\");\n //BigInteger to hold the serial number of the certificate\n BigInteger serial = null;\n //the highest certificate in the chain (the root)\n X509Certificate highestCert = null;\n \n try {\n highestCert = chain[0];\n issuer = highestCert.getIssuerX500Principal().toString();\n subject = highestCert.getSubjectX500Principal().toString();\n serial = highestCert.getSerialNumber();\n \n issuedOn = highestCert.getNotBefore();\n cal.setTime(issuedOn);\n issuedOnString = new String((cal.get(Calendar.MONTH)+1) + \"/\"+cal.get(Calendar.DAY_OF_MONTH)+\"/\"+cal.get(Calendar.YEAR));\n expiresOn = highestCert.getNotAfter();\n cal.setTime(expiresOn);\n expiresOnString = new String( (cal.get(Calendar.MONTH)+1) + \"/\"+cal.get(Calendar.DAY_OF_MONTH)+\"/\"+cal.get(Calendar.YEAR));\n \n mTrustManager.checkServerTrusted(chain, authType);\n } catch (CertificateException cx) { \n \t if ( !mAllowUntrusted )\n \t {\n \t\t ERTrustManagerCertificateException erce = new ERTrustManagerCertificateException(\"\\nUntrusted Certificate Found: \"+\n \"\\nIssued by: \"+ issuer + \n \"\\nIssued to: \" + subject + \n \"\\nIssued on: \" + issuedOnString + \n \"\\nExpires on: \" + expiresOnString + \n \"\\nSerial: \" + serial); \n \t\t erce.setCertificate(highestCert);\n \n \t throw erce;\n \t }\n }\n\n }",
"private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }",
"public interface X509Credential\n{\n\t/**\n\t * Returns the credential in a keystore.\n\t * @return the KeyStore\n\t */\n\tpublic KeyStore getKeyStore();\n\t\n\t/**\n\t * Returns a KeyManager which accompanies the KeyStore. \n\t * @return the KeyManager\n\t */\n\tpublic X509ExtendedKeyManager getKeyManager();\n\t\n\t/**\n\t * Returns a password which can be used to obtain PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method, \n\t * with the alias returned by the {@link #getKeyAlias()} method.\n\t * @return key password\n\t */\n\tpublic char[] getKeyPassword();\n\t\n\t/**\n\t * Returns an alias which can be used to obtain the PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method.\n\t * @return key alias\n\t */\n\tpublic String getKeyAlias();\n\t\n\t/**\n\t * Helper method to get private key from the underlying keystore\n\t * @return private key\n\t */\n\tpublic PrivateKey getKey();\n\n\t/**\n\t * Helper method to get certificate from the underlying keystore\n\t * @return certificate\n\t */\n\tpublic X509Certificate getCertificate();\n\n\t/**\n \t * Helper method to get certificate chain from the underlying keystore\n\t * @return certificate chain\n\t */\n\tpublic X509Certificate[] getCertificateChain();\n\t\n\t/**\n\t * @return RFC 2253 distinguished name of the certificate subject\n\t * @since 1.1.0\n\t */\n\tpublic String getSubjectName();\n}",
"@Override\n public void fetchFromSource(){\n System.out.println(\"pull the user credential from gmail\");\n }",
"public static X509Certificate loadAndroidKeyAttestationCertificate() {\n String certificate =\n \"-----BEGIN CERTIFICATE-----\\n\"\n + \"MIIByTCCAXCgAwIBAgIBATAKBggqhkjOPQQDAjAcMRowGAYDVQQDDBFBbmRyb2lkIE\"\n + \"tleW1hc3Rl cjAgFw03MDAxMDEwMDAwMDBaGA8yMTA2MDIwNzA2MjgxNVowGjEYMBY\"\n + \"GA1UEAwwPQSBLZXltYXN0 ZXIgS2V5MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE\"\n + \"FpsFUWID9p2QPAvtfal4MRf9vJg0tNc3 vKJwoDhhSCMm7If0FljgvmroBYQyCIbnn\"\n + \"Bxh2OU9SKxI/manPwIIUqOBojCBnzALBgNVHQ8EBAMC B4AwbwYKKwYBBAHWeQIBEQ\"\n + \"RhMF8CAQEKAQACAQEKAQEEBWhlbGxvBAAwDL+FPQgCBgFWDy29GDA6 oQUxAwIBAqI\"\n + \"DAgEDowQCAgEApQUxAwIBBKoDAgEBv4N4AwIBA7+DeQQCAgEsv4U+AwIBAL+FPwIF \"\n + \"ADAfBgNVHSMEGDAWgBQ//KzWGrE6noEguNUlHMVlux6RqTAKBggqhkjOPQQDAgNHAD\"\n + \"BEAiBKzJSk 9VNauKu4dr+ZJ5jMTNlAxSI99XkKEkXSolsGSAIgCnd5T99gv3B/IqM\"\n + \"CHn0yZ7Wuu/jisU0epRRo xh8otA8=\\n\"\n + \"-----END CERTIFICATE-----\";\n return createCertificate(certificate);\n }",
"public void enviarAlertaDeQueEstaOnline(){\n //mandaria un mail a los usuarios avisando que ya esta disponible para ver.\n System.out.println(\"Enviando mail con url \" + this.url);\n }",
"private static void estamblishConnection(final String phoneNumber, final String textToBeSigned) {\r\n \t\t\t\r\n \t\t\tXMLConfiguration config = null;\r\n \t\t\ttry {\r\n \t\t\t config = new XMLConfiguration(\"fi/laverca/samples/configuration.xml\");\r\n \t\t\t} catch(ConfigurationException e) {\r\n \t\t\t log.info(\"configuration file not found\", e);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tlog.info(\"setting up ssl\");\r\n \t\t\tJvmSsl.setSSL(config.getString(\"ssl.trustStore\"),\r\n \t\t\t\t\tconfig.getString(\"ssl.trustStorePassword\"),\r\n \t\t\t\t\tconfig.getString(\"ssl.keyStore\"),\r\n \t\t\t\t\tconfig.getString(\"ssl.keyStorePassword\"),\r\n \t\t\t\t\tconfig.getString(\"ssl.keyStoreType\"));\r\n \t\t\t\r\n \t\t\tString apId = config.getString(\"ap.apId\");\r\n \t String apPwd = config.getString(\"ap.apPwd\");\r\n \r\n \t String msspSignatureUrl = config.getString(\"mssp.msspSignatureUrl\");\r\n \t String msspStatusUrl = config.getString(\"mssp.msspStatusUrl\");\r\n \t String msspReceiptUrl = config.getString(\"mssp.msspReceiptUrl\");\r\n \r\n \t log.info(\"creating FiComClient\");\r\n \t FiComClient fiComClient = new FiComClient(apId, \r\n \t apPwd, \r\n \t msspSignatureUrl, \r\n \t msspStatusUrl, \r\n \t msspReceiptUrl);\r\n \t \r\n \t Long currentTimeMillis = System.currentTimeMillis();\r\n \t String apTransId = \"A\"+currentTimeMillis;\r\n \t final String eventId = \"A\"+ currentTimeMillis.toString().substring(currentTimeMillis.toString().length()-4);\r\n \t \r\n \t Service eventIdService = FiComAdditionalServices.createEventIdService(eventId);\r\n \t Service noSpamService = FiComAdditionalServices.createNoSpamService(\"A12\", false);\r\n \t \r\n \t LinkedList<Service> additionalServices = new LinkedList<Service>();\r\n \t LinkedList<String> attributeNames = new LinkedList<String>();\r\n \t \r\n \t attributeNames.add(FiComAdditionalServices.PERSON_ID_VALIDUNTIL);\r\n \t Service personIdService = FiComAdditionalServices.createPersonIdService(attributeNames);\r\n \t additionalServices.add(personIdService);\r\n \t \r\n\t DTBS dtbs = new DTBS(textToBeSigned, DTBS.ENCODING_UTF8, DTBS.MIME_TEXTPLAIN);\r\n \t \r\n \t try {\r\n \t \tlog.info(\"calling signText\");\r\n \t \treq = \r\n \t\t \tfiComClient.call(apTransId, \r\n \t\t \t\t\tdtbs, \r\n \t\t \t\t\tphoneNumber, \r\n \t\t \t\t\tnoSpamService,\r\n \t\t \t\t\teventIdService,\r\n \t\t \t\t\tadditionalServices, \r\n\t\t \t\t\tFiComSignatureProfiles.SIGNATURE,\r\n \t\t \t\t\tFiComMSS_Formats.PKCS7,\r\n \t\t \t\t\tnew FiComResponseHandler() {\r\n \t\t\t\t \t\t@Override\r\n \t\t\t\t \t\tpublic void onResponse(FiComRequest req, FiComResponse resp) {\r\n \t\t\t\t \t\t\tlog.info(\"Got response\");\r\n \t\t\t\t \t\t\tsendButton.setEnabled(true);\r\n \t\t\t\t\t\t\t\t\tcallStateProgressBar.setIndeterminate(false);\r\n \t\t\t\t \t\t\ttry {\r\n \t\t\t\t \t\t\t\tresponseBox.setText(\"MSS Signature: \" + \r\n \t\t\t\t \t\t\t\t\t\tnew String(Base64.encode(resp.getMSS_StatusResp().\r\n \t\t\t\t \t\t\t\t\t\tgetMSS_Signature().getBase64Signature()), \"ASCII\") +\r\n \t\t\t\t \t\t\t\t\t\t\"\\n\\n\" + responseBox.getText());\r\n \t\t\t\t \t\t\t} catch (UnsupportedEncodingException e) {\r\n \t\t\t\t \t\t\t\tlog.info(\"Unsupported encoding\", e);\r\n \t\t\t\t \t\t\t}\r\n \t\t\t\t \t\t\tfor(PersonIdAttribute a : resp.getPersonIdAttributes()) {\r\n \t\t\t\t \t\t\t\tlog.info(a.getName() + \" \" + a.getStringValue());\r\n \t\t\t\t \t\t\t\tresponseBox.setText(a.getStringValue() + \"\\n\" + responseBox.getText());\r\n \t\t\t\t \t\t\t}\t\t\t\t \t\t\t\r\n \t\t\t\t \t\t\tresponseBox.setText(\"Event ID: \" + eventId + \"\\nSigned text: \" + textToBeSigned + \"\\n\" + responseBox.getText());\r\n \t\t\t\t \t\t}\r\n \t\t\t\t\r\n \t\t\t\t \t\t@Override\r\n \t\t\t\t \t\tpublic void onError(FiComRequest req, Throwable throwable) {\r\n \t\t\t\t \t\t\tlog.info(\"got error\", throwable);\r\n \t\t\t\t\t\t\t\t\tcallStateProgressBar.setIndeterminate(false);\r\n \t\t\t\t \t\t\tresponseBox.setText(\"ERROR, \" + phoneNumber + \"\\n\" +\r\n \t\t\t\t \t\t\t\t\tresponseBox.getText());\r\n \t\t\t\t \t\t}\r\n \r\n \t\t\t\t\t\t\t\t@Override\r\n \t\t\t\t\t\t\t\tpublic void onOutstandingProgress(FiComRequest req,\r\n \t\t\t\t\t\t\t\t\t\tProgressUpdate prgUpdate) {\r\n \t\t\t\t\t\t\t\t}\r\n \t\t \t\t\t});\r\n \t }\r\n \t catch (IOException e) {\r\n \t log.info(\"error establishing connection\", e);\r\n \t }\r\n \r\n \t fiComClient.shutdown();\r\n \t\t}",
"public void enviarEmail(String c, Ciudadano a){\n\t}",
"private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }",
"public void customLoginTwitter() {\n //check if user is already authenticated or not\n if (getTwitterSession() == null) {\n\n //if user is not authenticated start authenticating\n client.authorize(this, new Callback<TwitterSession>() {\n @Override\n public void success(Result<TwitterSession> result) {\n\n // Do something with result, which provides a TwitterSession for making API calls\n TwitterSession twitterSession = result.data;\n fetchTwitterEmail(twitterSession);\n }\n\n @Override\n public void failure(TwitterException e) {\n // Do something on failure\n Toast.makeText(SignInActivity.this, \"Failed to authenticate. Please try again.\", Toast.LENGTH_SHORT).show();\n }\n });\n } else {\n //if user is already authenticated direct call fetch twitter email api\n Toast.makeText(this, \"User already authenticated\", Toast.LENGTH_SHORT).show();\n// fetchTwitterEmail(getTwitterSession());\n }\n }",
"public String getAddCertDesc() {\n return addCertDesc;\n }",
"private X509Certificate getTrustedCert() {\n\t\tSystem.out.println(\"Beginning getTrustedCert ...\");\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate newCert = null;\n\t\t\n\t\tassertNotNull(ec);\n\t\t\n\t\tmCerts = Helpers.loadTA(mTrustDB);\n\t\tec.setTrustAnchor(mCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setHTTPCredentials(\"estuser\", \"estpwd\");\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t/*\n\t\t * Attempt to provision a new certificate\n\t\t */\n\t\ttry {\n\t\t\tnewCert = ec.sendSimpleEnrollRequest(mCSR, ESTClient.AuthMode.authHTTPonly, mKey, Boolean.FALSE);\n\t\t} catch (InvalidKeyException\n\t\t\t\t| CertificateException | IOException | EncodingException\n\t\t\t\t| EnrollException | EnrollRetryAfterException | BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newCert;\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n SharedPreferences settings = getSharedPreferences(\"twit\", 0);\n String key = settings.getString(\"accesstoken0\", null);\n String secret = settings.getString(\"accesstoken1\", null);\n final Button btnsetpin = (Button)findViewById(R.id.btnpin);\n final Button btnupdate = (Button)findViewById(R.id.btnupdate);\n final EditText status = (EditText)findViewById(R.id.status);\n \n \n if(key==null)\n { \n\t oauthClient = new OAuthSignpostClient(JTWITTER_OAUTH_KEY, jTWITTER_OAUTH_SECRET, \"oob\");\n\t URI uri = oauthClient.authorizeUrl();\n\t status.setVisibility(View.INVISIBLE);\n\t btnupdate.setVisibility(View.INVISIBLE);\n\t \n\t final Dialog dialog = new Dialog(this);\n\t dialog.setContentView(R.layout.twdialog);\n\t WebView wv = (WebView)dialog.findViewById(R.id.webtweet);\n\t wv.loadUrl(uri.toString());\n\t btnsetpin.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\n });\n\n\t\t\tfinal EditText nilaipin = (EditText)dialog.findViewById(R.id.pin);\n\t\t\tnilaipin.setOnClickListener(new OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tnilaipin.setText(\"\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\n\n\t\t\tButton btnok = (Button)dialog.findViewById(R.id.btntweet);\n\t\t\tbtnok.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tpin=nilaipin.getText().toString();\n\t\t\t\t\tsetpin=true;\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\tstatus.setVisibility(View.VISIBLE);\n\t\t\t \tbtnsetpin.setVisibility(View.INVISIBLE);\n\t\t\t \tbtnupdate.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\n });\n\n }\n else\n {\n \t oauthClient = new OAuthSignpostClient(JTWITTER_OAUTH_KEY, jTWITTER_OAUTH_SECRET, key, secret);\n \t twitter = new Twitter(\"nuraini\", oauthClient);\n \t setpin = false;\n \t status.setVisibility(View.VISIBLE);\n \t btnsetpin.setVisibility(View.INVISIBLE);\n \t btnupdate.setVisibility(View.VISIBLE);\n \t btnupdate.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\ttwitter.setSource(\"keyrani\");\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\ttwitter.updateStatus(status.getText().toString());\n\t\t\t\t\t\t\n\t\t\t\t\t}catch (Repetition e) {\n\t\t\t\t\t\t Toast.makeText(TwitUpdate.this, \"status tdk boleh sama\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\n });\n \t \n }\n \n \n \n \n }",
"public void userToCertMap(String userid, Certificate c) {\n try {\n String b = null;\n b = java.util.Base64.getEncoder().encodeToString(c.getEncoded());\n PreparedStatement pstmt = null;\n String filename = \"UserToCertMap\";\n /*PreparedStatement stmt = conn.prepareStatement(\" select * from \" + filename);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n if(!(rs.getString(\"userId\").equals(userid))) {*/\n String sql = \"INSERT INTO \" + filename + \" (userId,Certificate) VALUES(?,?)\";\n pstmt = conn.prepareStatement(sql);\n pstmt.setString(1, userid);\n pstmt.setString(2, b);\n pstmt.executeUpdate();\n pstmt.close();\n System.out.println(\"UserId to Certificate Mapping done\");\n /* }\n else{\n System.out.println(\"in else\");\n System.out.println(\"User Id exists\");\n }*/\n\n }\n //stmt.close();\n //rs.close();\n\n catch (SQLException e) {\n e.printStackTrace();\n } catch (CertificateEncodingException e) {\n e.printStackTrace();\n }\n }",
"@Test\n public void issuerTest() {\n // TODO: test issuer\n }",
"public void clickAttachCert() {\r\n\t\tattachCert.click();\r\n\t}",
"@Action(value = \"saveCertificate\", results = { @Result(name = INPUT, location = JSP_FIELDS) })\n @Validations(\n customValidators = { @CustomValidator(type = \"hibernate\", fieldName = \"certificate.issuer\", parameters = {\n @ValidationParameter(name = \"resourceKeyBase\", value = \"profile.organization\"),\n @ValidationParameter(name = \"excludes\", value = \"externalId\") }) },\n requiredFields = { @RequiredFieldValidator(fieldName = \"certificate.certificateType\",\n key = \"error.credentials.certificate.type.required\") },\n fieldExpressions = { @FieldExpressionValidator(\n fieldName = \"certificateFile.data\",\n expression = \"certificate.id != null || (certificateFile != null && certificateFile.data != null)\",\n key = \"error.credentials.certificate.file.required\"),\n @FieldExpressionValidator(fieldName = \"nihOerIssued\",\n expression = \"nihOerIssued || issuingOrganizationExternalId != null || certificate.issuer != null\",\n key = \"error.credentials.organization.required\"),\n @FieldExpressionValidator(\n fieldName = \"certificate.issuer.postalAddress.stateOrProvince\",\n expression = \"certificate.issuer != null\"\n + \" && certificate.issuer.postalAddress.stateOrProvinceValid\",\n key = \"stateOrProvince.required\")\n })\n public String saveCertificate() throws IOException {\n setFileDescription();\n setCertificateIssuer();\n boolean valid = validateFields();\n if (valid) {\n try {\n doSave();\n } catch (CredentialAlreadyExistsException ae) {\n handleCredentialAlreadyExists();\n valid = false;\n } catch (ValidationException e) {\n return handleValidationException(e);\n }\n }\n\n return valid ? closeDialog(getDialogId()) : INPUT;\n }",
"public String getCertificationRequest() {\n if (signingRequest == null) return null;\n return signingRequest.getCertificationRequest().getContent();\n }",
"@Override\r\n\tpublic boolean connectTwitterService(String email, String password) throws RemoteException {\n\t\tSystem.out.println(\"connectTwitter print\");\r\n\t\tif(email.equals(email1)){\r\n\t\t\tif(password.equals(pass1)){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private byte[][] getUserCertificate() throws KeyChainException, InterruptedException, CertificateEncodingException {\n ArrayList<byte[]> encodings = new ArrayList<byte[]>();\n X509Certificate[] chain = KeyChain.getCertificateChain(getApplicationContext(), mCurrentProfile.getUserCertificateAlias());\n if (chain == null || chain.length == 0) {\n return null;\n }\n for (X509Certificate cert : chain) {\n encodings.add(cert.getEncoded());\n }\n return encodings.toArray(new byte[encodings.size()][]);\n }",
"void setSolicitarCredito(com.soa.SolicitarCreditoDocument.SolicitarCredito solicitarCredito);",
"public CompletionStage<Result> verify()\n {\n IRequestValidator requestValidator=new CertVerifyRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_VERIFY);\n }",
"public void verifyServerCertificates(boolean yesno);",
"public EnviarXml(String caminhoCacerts, String senhaCertificadoA3) {\n\t\ttry {\n\t\t\tcertificado = EsocialUtils.getCertificadoA3(senhaCertificadoA3);\n\t\t\tEsocialUtils.inicializarCertificadSocketDinamico(caminhoCacerts, certificado);\n\t\t} catch (CertificadoException | FileNotFoundException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"private static void copyrightChoicesIntoContext(SessionState state, Context context)\n\t{\n\t\tboolean usingCreativeCommons = state.getAttribute(STATE_USING_CREATIVE_COMMONS) != null && state.getAttribute(STATE_USING_CREATIVE_COMMONS).equals(Boolean.TRUE.toString());\t\t\n\t\t\n\t\tif(usingCreativeCommons)\n\t\t{\n\t\t\t\n\t\t\tString ccOwnershipLabel = \"Who created this resource?\";\n\t\t\tList ccOwnershipList = new Vector();\n\t\t\tccOwnershipList.add(\"-- Select --\");\n\t\t\tccOwnershipList.add(\"I created this resource\");\n\t\t\tccOwnershipList.add(\"Someone else created this resource\");\n\t\t\t\n\t\t\tString ccMyGrantLabel = \"Terms of use\";\n\t\t\tList ccMyGrantOptions = new Vector();\n\t\t\tccMyGrantOptions.add(\"-- Select --\");\n\t\t\tccMyGrantOptions.add(\"Use my copyright\");\n\t\t\tccMyGrantOptions.add(\"Use Creative Commons License\");\n\t\t\tccMyGrantOptions.add(\"Use Public Domain Dedication\");\n\t\t\t\n\t\t\tString ccCommercialLabel = \"Allow commercial use?\";\n\t\t\tList ccCommercialList = new Vector();\n\t\t\tccCommercialList.add(\"Yes\");\n\t\t\tccCommercialList.add(\"No\");\n\t\t\t\n\t\t\tString ccModificationLabel = \"Allow Modifications?\";\n\t\t\tList ccModificationList = new Vector();\n\t\t\tccModificationList.add(\"Yes\");\n\t\t\tccModificationList.add(\"Yes, share alike\");\n\t\t\tccModificationList.add(\"No\");\n\t\t\t\n\t\t\tString ccOtherGrantLabel = \"Terms of use\";\n\t\t\tList ccOtherGrantList = new Vector();\n\t\t\tccOtherGrantList.add(\"Subject to fair-use exception\");\n\t\t\tccOtherGrantList.add(\"Public domain (created before copyright law applied)\");\n\t\t\tccOtherGrantList.add(\"Public domain (copyright has expired)\");\n\t\t\tccOtherGrantList.add(\"Public domain (government document not subject to copyright)\");\n\t\t\t\n\t\t\tString ccRightsYear = \"Year\";\n\t\t\tString ccRightsOwner = \"Copyright owner\";\n\t\t\t\n\t\t\tString ccAcknowledgeLabel = \"Require users to acknowledge author's rights before access?\";\n\t\t\tList ccAcknowledgeList = new Vector();\n\t\t\tccAcknowledgeList.add(\"Yes\");\n\t\t\tccAcknowledgeList.add(\"No\");\n\t\t\t\n\t\t\tString ccInfoUrl = \"\";\n\t\t\t\n\t\t\tint year = TimeService.newTime().breakdownLocal().getYear();\n\t\t\tString username = UserDirectoryService.getCurrentUser().getDisplayName(); \n\n\t\t\tcontext.put(\"usingCreativeCommons\", Boolean.TRUE);\n\t\t\tcontext.put(\"ccOwnershipLabel\", ccOwnershipLabel);\n\t\t\tcontext.put(\"ccOwnershipList\", ccOwnershipList);\n\t\t\tcontext.put(\"ccMyGrantLabel\", ccMyGrantLabel);\n\t\t\tcontext.put(\"ccMyGrantOptions\", ccMyGrantOptions);\n\t\t\tcontext.put(\"ccCommercialLabel\", ccCommercialLabel);\n\t\t\tcontext.put(\"ccCommercialList\", ccCommercialList);\n\t\t\tcontext.put(\"ccModificationLabel\", ccModificationLabel);\n\t\t\tcontext.put(\"ccModificationList\", ccModificationList);\n\t\t\tcontext.put(\"ccOtherGrantLabel\", ccOtherGrantLabel);\n\t\t\tcontext.put(\"ccOtherGrantList\", ccOtherGrantList);\n\t\t\tcontext.put(\"ccRightsYear\", ccRightsYear);\n\t\t\tcontext.put(\"ccRightsOwner\", ccRightsOwner);\n\t\t\tcontext.put(\"ccAcknowledgeLabel\", ccAcknowledgeLabel);\n\t\t\tcontext.put(\"ccAcknowledgeList\", ccAcknowledgeList);\n\t\t\tcontext.put(\"ccInfoUrl\", ccInfoUrl);\n\t\t\tcontext.put(\"ccThisYear\", Integer.toString(year));\n\t\t\tcontext.put(\"ccThisUser\", username);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//copyright\n\t\t\tif (state.getAttribute(COPYRIGHT_FAIRUSE_URL) != null)\n\t\t\t{\n\t\t\t\tcontext.put(\"fairuseurl\", state.getAttribute(COPYRIGHT_FAIRUSE_URL));\n\t\t\t}\n\t\t\tif (state.getAttribute(NEW_COPYRIGHT_INPUT) != null)\n\t\t\t{\n\t\t\t\tcontext.put(\"newcopyrightinput\", state.getAttribute(NEW_COPYRIGHT_INPUT));\n\t\t\t}\n\t\n\t\t\tif (state.getAttribute(COPYRIGHT_TYPES) != null)\n\t\t\t{\n\t\t\t\tList copyrightTypes = (List) state.getAttribute(COPYRIGHT_TYPES);\n\t\t\t\tcontext.put(\"copyrightTypes\", copyrightTypes);\n\t\t\t\tcontext.put(\"copyrightTypesSize\", new Integer(copyrightTypes.size() - 1));\n\t\t\t\tcontext.put(\"USE_THIS_COPYRIGHT\", copyrightTypes.get(copyrightTypes.size() - 1));\n\t\t\t}\n\t\t}\n\t\t\n\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\t\tif(preventPublicDisplay == null)\n\t\t{\n\t\t\tpreventPublicDisplay = Boolean.FALSE;\n\t\t\tstate.setAttribute(STATE_PREVENT_PUBLIC_DISPLAY, preventPublicDisplay);\n\t\t}\n\t\tcontext.put(\"preventPublicDisplay\", preventPublicDisplay);\n\t\t\n\t}",
"public void importCA(File certfile){\n try {\n File keystoreFile = new File(archivo);\n \n //copia .cer -> formato manipulacion\n FileInputStream fis = new FileInputStream(certfile);\n DataInputStream dis = new DataInputStream(fis);\n byte[] bytes = new byte[dis.available()];\n dis.readFully(bytes);\n ByteArrayInputStream bais = new ByteArrayInputStream(bytes);\n bais.close();\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n Certificate certs = cf.generateCertificate(bais);\n //System.out.println(certs.toString());\n //inic keystore\n FileInputStream newib = new FileInputStream(keystoreFile);\n KeyStore keystore = KeyStore.getInstance(INSTANCE);\n keystore.load(newib,ksPass );\n String alias = (String)keystore.aliases().nextElement();\n newib.close();\n \n //recupero el array de certificado del keystore generado para CA\n Certificate[] certChain = keystore.getCertificateChain(alias);\n certChain[0]= certs; //inserto el certificado entregado por CA\n //LOG.info(\"Inserto certifica CA: \"+certChain[0].toString());\n //recupero la clave privada para generar la nueva entrada\n Key pk = (PrivateKey)keystore.getKey(alias, ksPass); \n keystore.setKeyEntry(alias, pk, ksPass, certChain);\n LOG.info(\"Keystore actualizado: [OK]\");\n \n FileOutputStream fos = new FileOutputStream(keystoreFile);\n keystore.store(fos,ksPass);\n fos.close(); \n \n } catch (FileNotFoundException ex) {\n LOG.error(\"Error - no se encuentra el archivo\",ex);\n } catch (IOException | NoSuchAlgorithmException | CertificateException | KeyStoreException ex) {\n LOG.error(\"Error con el certificado\",ex);\n } catch (UnrecoverableKeyException ex) {\n LOG.error(ex);\n }\n }",
"CertprofileQa getCertprofile(String certprofileName);",
"public static void subscribeCourse(long idUtente, long idCorso) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.parameters = new Object[] { idUtente, idCorso };\n\t\t\trp.type = RequestType.SUBSCRIVE_COURSE;\n\t\t\tsend(rp);\n\t\t} catch (Exception e) {\n\t\t\tLogger.WriteError(e, \"ClientConnection\", \"SUBSCRIVE_COURSE\");\n\t\t}\n\t}",
"public String getUserCertificatesPath();",
"public String getConsignee() {\n return consignee;\n }",
"public String getConsignee() {\n return consignee;\n }",
"private void createSSLContext() throws Exception {\n\n char[] passphrase = \"passphrase\".toCharArray();\n\n KeyStore ks = KeyStore.getInstance(\"JKS\");\n ks.load(new FileInputStream(\"testkeys\"), passphrase);\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"SunX509\");\n kmf.init(ks, passphrase);\n\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(\"SunX509\");\n tmf.init(ks);\n\n sslContext = SSLContext.getInstance(\"TLS\");\n sslContext.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);\n }",
"private boolean isAuthorized2Subscribe(String addressMail)\n\tthrows IOException\n {\n\tString addressRead=null;\n\tBufferedReader fic = \n\t new BufferedReader(new FileReader(this.appliPath+\"conf/teacher_list.txt\"));\n\twhile( ((addressRead = fic.readLine())!=null) && (!addressRead.equals(addressMail)) );\n\tfic.close();\n\tif(addressRead==null)return false;\n\t\n\treturn true;\n }",
"public Twitter() {\n \n }",
"private void ComprobarCredenciales(SharedPreferences preferencias){\n\n if(preferencias.getBoolean(\"autenticado\", false)){\n //Toast.makeText(this, \"Autenticado\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(this, ContentActivity.class));\n }\n\n }",
"@Test\n public void test01ConfRespSignedByRecepient() throws Exception {\n log.trace(\">test01ConfRespSignedByRecepient\");\n\n this.cmpConfiguration.setResponseProtection(cmpAlias, \"signature\");\n this.cmpConfiguration.setCMPDefaultCA(cmpAlias, \"\");\n this.globalConfigurationSession.saveConfiguration(ADMIN, this.cmpConfiguration);\n\n byte[] nonce = CmpMessageHelper.createSenderNonce();\n byte[] transid = CmpMessageHelper.createSenderNonce();\n\n // Send a confirm message to the CA\n String hash = \"foo123\";\n PKIMessage confirm = genCertConfirm(userDN, this.cacert, nonce, transid, hash, 0, null);\n assertNotNull(confirm);\n ByteArrayOutputStream bao = new ByteArrayOutputStream();\n ASN1OutputStream dOut = ASN1OutputStream.create(bao, ASN1Encoding.DER);\n dOut.writeObject(confirm);\n byte[] ba = bao.toByteArray();\n // Send request and receive response\n byte[] resp = sendCmpHttp(ba, 200, cmpAlias);\n checkCmpResponseGeneral(resp, this.testx509ca.getSubjectDN(), userDN, this.cacert, nonce, transid, true, null, PKCSObjectIdentifiers.sha256WithRSAEncryption.getId());\n checkCmpPKIConfirmMessage(userDN, this.cacert, resp);\n\n log.trace(\"<test01ConfRespSignedByRecepient\");\n }",
"public CTwitterPut() {\n//\t\trequestAccessToken();\n\t}",
"private void runCach() throws GeneralSecurityException, IOException {\n byte[] dig = getDig(); // Get the digest of the remote WPC Certificate Chain\n WpcCrtChn chn = getChn(dig); // Search WPC Certificate Chain in the cache\n if (chn == null) { // No WPC Certificate Chain found in the cache?\n chn = getChn(); // Request the WPC Certificate Chain\n mCach.add(chn); // Add Certificate Chain to Certificate cache\n }\n mCom.setChn(chn); // Register used WPC Cartificate chain\n ByteBuffer msg = getAth(); // Create CHALLENGE request\n byte[] res = sndAth(msg); // Send the CHALLENGE Request message\n dig = WpcAthRsp.getSigDig(chn.getDig(), msg.array(), res); // Get the Digest for the challenge\n byte[] sig = Arrays.copyOfRange(res, WpcAthRsp.LEN_ATH, res.length); // Get the signature from the CHALLENGE_AUTH Response\n verify(dig, sig, chn.getPu()); // Verify the signature\n }",
"private void composeTweet() {\n if(NetworkUtils.isConnectedToNetwork((ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE)) == false) {\n Toast.makeText(this.getApplicationContext(), \"Please check your network connection!\", Toast.LENGTH_LONG).show();\n return;\n }\n Intent i = new Intent(this, ComposeActivity.class);\n startActivityForResult(i, REQ_CODE_COMPOSE_TWEET);\n }",
"public String requestCert(String serialNumber){\n Certificate cert = keyStoreReader.readCertificate(keystoreFile, keystorePassword, serialNumber);\n return cert.toString();\n }",
"@Override\nprotected Void doInBackground(Void... params){\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return null;\n }\n\n public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }\n\n public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }\n } };\n\n // Install the all-trusting trust manager\n try {\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n // Your code ...\n URL url = null;\n HttpsURLConnection conn = null;\n try {\n url = new URL(\"https://example.com\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n // ...\n}"
] | [
"0.5872696",
"0.5588093",
"0.54860216",
"0.5295017",
"0.5291987",
"0.5269178",
"0.5231261",
"0.5230404",
"0.5220373",
"0.51750135",
"0.51389754",
"0.5090379",
"0.50570047",
"0.4990562",
"0.4984492",
"0.49684584",
"0.49684584",
"0.49567136",
"0.49560887",
"0.49536005",
"0.4949086",
"0.49354368",
"0.49320287",
"0.49143022",
"0.4826907",
"0.48149213",
"0.48106146",
"0.47957376",
"0.4791462",
"0.4773872",
"0.47546765",
"0.4741978",
"0.473656",
"0.47296512",
"0.47205716",
"0.47153538",
"0.47132564",
"0.46997163",
"0.4698808",
"0.46800143",
"0.46618384",
"0.4659221",
"0.46473166",
"0.4646898",
"0.46418396",
"0.46410894",
"0.4638464",
"0.4633648",
"0.46239367",
"0.46207273",
"0.46168047",
"0.4614217",
"0.4603293",
"0.45984542",
"0.45973626",
"0.45949218",
"0.45945334",
"0.45871487",
"0.45825285",
"0.45788842",
"0.45738748",
"0.45725605",
"0.4567682",
"0.45661542",
"0.45580134",
"0.45409444",
"0.4540557",
"0.45253617",
"0.45244363",
"0.4524235",
"0.4521891",
"0.4516063",
"0.4515119",
"0.451121",
"0.45080093",
"0.4507627",
"0.45066184",
"0.45059538",
"0.45042613",
"0.44956994",
"0.44896317",
"0.44879195",
"0.44876876",
"0.44870576",
"0.44825956",
"0.44802108",
"0.44766364",
"0.44742346",
"0.44692308",
"0.4467903",
"0.4467903",
"0.44652086",
"0.44613546",
"0.44567847",
"0.44503516",
"0.44489297",
"0.44477403",
"0.44394064",
"0.4437917",
"0.44278356",
"0.442645"
] | 0.0 | -1 |
Obtenccion del certificado para poder trabajar con twitter | public static Twitter crearTwitter(String ConsumerKey, String ConsumerSecret, String AccessToken, String TokenSecret){
ConfigurationBuilder cb = new ConfigurationBuilder();
cb.setDebugEnabled(true)
.setOAuthConsumerKey(ConsumerKey)
.setOAuthConsumerSecret(ConsumerSecret)
.setOAuthAccessToken(AccessToken)
.setOAuthAccessTokenSecret(TokenSecret);
TwitterFactory tf = new TwitterFactory(cb.build());
return tf.getInstance();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void obtenerCertificado() {\n\n\t\tcertificado = generarCertificado(lasLlaves);\n\n\t\ttry {\n\n\t\t\tString cert = in.readLine();\n\t\t\tbyte[] esto = parseBase64Binary(cert);\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\tInputStream is = new ByteArrayInputStream(esto);\n\t\t\tX509Certificate certServer = (X509Certificate) cf.generateCertificate(is);\n\n\t\t\tllavePublica = certServer.getPublicKey(); \n\t\t\tSystem.out.println(\"Llave Publica obtenida\");\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"String getCertificate();",
"public void setCertificado(boolean certificado) {\n this.certificado = certificado;\n }",
"public void twitterConfiguration() {\n ConfigurationBuilder cb = new ConfigurationBuilder();\n\n cb.setDebugEnabled(true);\n//Cl\\u00e9 3\n cb.setOAuthConsumerKey(\"bHAfupgNYRVoSC27eHRqg\");\n cb.setOAuthConsumerSecret(\"GgxgSLDO8Rqaoctl2cPlPct95dNtq31rPF8HHNmi9g\");\n cb.setOAuthAccessToken(\"1272243708-zVoQBEQPJZpPuuzzq6nhhiVfveo8VaxzSaVLpJj\");\n cb.setOAuthAccessTokenSecret(\"VcwmL284xm80uZHIYUarkWRmsqyFM2WWsX8qdm1qoQpAe\");\n //Cl\\u00e9 4\n // cb.setOAuthConsumerKey(\"Pbi0uLWNe1fIEZLUGKTwqA\");\n // cb.setOAuthConsumerSecret(\"LWf4225LihNfBUEplzkEMXcoqsG5XP3sjOJpavwahqc\");\n // cb.setOAuthAccessToken(\"1272243708-S0bIRKBCfwzEwdc1FY8EMZFPsbtcwj4kz400wyV\");\n // cb.setOAuthAccessTokenSecret(\"0Dw1q4CjoJym3GlccCBdmoaRpBfvOTVfIryWVjqX51pWv\");\n\n c = cb.build();\n TwitterFactory tf = new TwitterFactory(c);\n twitter = tf.getInstance();\n}",
"public static String getCertificadoCacert(String ambiente)\n\t\t\tthrows NfeException {\n\n\t\tif (ambiente.equals(\"DES\")) {\n\t\t\treturn NfeUtil.class.getResource(\"/ARQUIVO_JKS.jks\").getPath();\n\t\t} else if (ambiente.equals(\"PROD\")) {\n\t\t\treturn NfeUtil.class.getResource(\"/ARQUIVO_JKS.jks\").getPath();\n\t\t} else {\n\t\t\tthrow new NfeException(\"Selecione o ambiente PROD/DES\");\n\n\t\t}\n\t}",
"@Then(\"extract broker certificate\")\n public void extractBrokerCertificate() {\n Secret secret = OpenShiftUtils.getInstance().getSecret(\"my-cluster-kafka-brokers\");\n String secrets = secret.toString();\n\n // 2. extract values:\n String cert = extractValue(\"crt\", secrets);\n\n // 3. put values into account:\n Account kafkaTlsAccount = AccountsDirectory.getInstance().get(\"kafka-autodetect-tls\");\n Map<String, String> kafkaAutodetectTlsParameters = kafkaTlsAccount.getProperties();\n kafkaAutodetectTlsParameters.put(\"brokercertificate\", cert);\n kafkaTlsAccount.setProperties(kafkaAutodetectTlsParameters);\n }",
"public String call_google_certificate() throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n // From https://www.washington.edu/itconnect/security/ca/load-der.crt\n InputStream caInput = getResources().openRawResource(R.raw.loadder);\n Certificate ca;\n try {\n ca = cf.generateCertificate(caInput);\n System.out.println(\"ca=\" + ((X509Certificate) ca).getSubjectDN());\n } finally {\n caInput.close();\n }\n // Create a KeyStore containing our trusted CAs\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n keyStore.setCertificateEntry(\"ca\", ca);\n // Create a TrustManager that trusts the CAs in our KeyStore\n String tmfAlgorithm = TrustManagerFactory.getDefaultAlgorithm();\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(tmfAlgorithm);\n tmf.init(keyStore);\n // Create an SSLContext that uses our TrustManager\n SSLContext context = SSLContext.getInstance(\"TLS\");\n context.init(null, tmf.getTrustManagers(), null);\n // Tell the URLConnection to use a SocketFactory from our SSLContext\n URL url = new URL(\"https://certs.cac.washington.edu/CAtest/\");\n HttpsURLConnection urlConnection =\n (HttpsURLConnection) url.openConnection();\n urlConnection.setSSLSocketFactory(context.getSocketFactory());\n InputStream in = urlConnection.getInputStream();\n return getStringFromInputStream(in);\n }",
"public String getCertification() {\n return certification;\n }",
"public static void main(String[] args) {\n\t\ttry{\r\n\t\t\tInputStreamReader Flujo = new InputStreamReader(System.in);\r\n\r\n\t\t\tBufferedReader teclado = new BufferedReader(Flujo);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado: \" );\r\n\t\t\tString NameFile=teclado.readLine();\r\n\t\t\tSystem.out.println(\"Nombre fichero:\"+NameFile );\r\n\t\t\tFileInputStream fr = new FileInputStream(NameFile);\r\n\r\n\r\n\r\n\t\t\tCertificateFactory cf = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c = (X509Certificate) cf.generateCertificate(fr);\r\n\r\n\t\t\tSystem.out.println(\"Certificado Leido \\n\");\r\n\r\n\r\n\r\n\t\t\t//lectura certificado CA\r\n\t\t\tInputStreamReader Flujo3 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado3 = new BufferedReader(Flujo3);\r\n\t\t\tSystem.out.print(\"Introducir Nombre Certificado CA(*.pem): \" );\r\n\t\t\tString NameFile3=teclado3.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero CA:\"+NameFile3 );\r\n\r\n\r\n\t\t\tFileInputStream fr3 = new FileInputStream(NameFile3);\r\n\r\n\t\t\tCertificateFactory cf3 = CertificateFactory.getInstance(\"X509\");\r\n\t\t\tX509Certificate c3 = (X509Certificate) cf3.generateCertificate(fr3);\r\n\r\n\t\t\tPublicKey publicKeyCA=c3.getPublicKey();\r\n\t\t\tfr3.close();\r\n\t\t\tc.verify(publicKeyCA);\r\n\r\n\t\t\t//lectura del fichero crl.pem\r\n\r\n\t\t\tInputStreamReader Flujo2 = new InputStreamReader(System.in);\r\n\t\t\tBufferedReader teclado2 = new BufferedReader(Flujo2);\r\n\t\t\tSystem.out.print(\"Introducir Nombre fichero certificados revocados(*.pem): \" );\r\n\t\t\tString NameFile2=teclado2.readLine();\r\n\t\t\tSystem.out.println(\"Leido nombre fichero crl:\"+NameFile2);\r\n\r\n\t\t\tFileInputStream inStream = new FileInputStream(NameFile2);\r\n\r\n\t\t\tCertificateFactory cf1 = CertificateFactory.getInstance(\"X.509\");\r\n\r\n\t\t\tX509CRL crl = (X509CRL) cf1.generateCRL(inStream);\r\n\r\n\t\t\t//Imprime los campos del certificado en forma de string\r\n\r\n\t\t\tinStream.close();\r\n\r\n\t\t\tFileWriter fichSalida = new FileWriter(\"log.txt\");\r\n\t\t\tBufferedWriter fs= new BufferedWriter(fichSalida);\r\n\r\n\t\t\tif(crl.isRevoked(c)){\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" Revocado\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t\tfs.write(\"\\n Certificado \"+NameFile+\" NO revocado\");\r\n\t\t\t}\t\r\n\t\t\tcrl.verify(publicKeyCA);\t\t\t\t\t\t\r\n\r\n\t\t\tSystem.out.println(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\tfs.write(\"\\n Fichero CRL \"+NameFile2+\" HA SIDO FIRMADO POR LA CA\");\r\n\t\t\t\r\n\t\t\tSet setEntries=crl.getRevokedCertificates();\r\n\t\t\tif(setEntries!=null && setEntries.isEmpty()==false){\r\n\t\t\t\tfor(Iterator iterator = setEntries.iterator(); iterator.hasNext();){\r\n\t\t\t\t\tX509CRLEntry x509crlentry = (X509CRLEntry) iterator.next();\r\n\t\t\t\t\tSystem.out.println(\"serial number=\"+x509crlentry.getSerialNumber());\r\n\t\t\t\t\tSystem.out.println(\"revocacion date=\"+x509crlentry.getRevocationDate());\r\n\t\t\t\t\tSystem.out.println(\"extensions=\"+x509crlentry.hasExtensions());\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\r\n\t\t\tfs.close();\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace( );\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void testtraerInfoParaCertificado() {\n\t\tLong idDeuda = 1l;\r\n\t\tString username = \"alonsoir\";\r\n\t\tInfoCertificadoDeuda info = despachoService.traerInfoParaCertificado(\r\n\t\t\t\tidDeuda, username); //\r\n\t\tLOG.info(info.toString());\r\n\t\tAssert.assertNotNull(info);\r\n\t}",
"public static String getCertificadoCliente() {\n\n\t\treturn NfeUtil.class.getResource(\"/CERTIFICADO.pfx\").getPath();\n\n\t}",
"public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public String getTlsCert();",
"private void setHascert() {\r\n\t\tthis.hascert = true;\r\n\t}",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"private String issuer() {\n return \"spoqn.com\";\n }",
"public static void main(String[] args) {\n\t\tKeyStore truststore;\r\n\t\tString filepath = System.getenv(\"JAVA_HOME\") + \"\\\\jre\\\\lib\\\\security\\\\cacerts\";\r\n\t\tString passwd=\"changeit\";\r\n\t\t//String filepath =\"d:\\\\12306.jks\";\r\n\t\t//String passwd=\"111111\";\r\n\t\ttry {\r\n\t\t\ttruststore = KeyStore.getInstance(KeyStore.getDefaultType());\r\n\t\t\ttruststore.load(new FileInputStream(new File(filepath)), passwd.toCharArray());\r\n\r\n\t\t\tSSLContext sslContext = SSLContexts.custom().loadTrustMaterial(truststore, new MyTrustSelfSignedStrategy())\r\n\t\t\t\t\t.build();\r\n\t\t\t\r\n//\t\t\tSSLContext sslContext = SSLContexts.custom().loadTrustMaterial(truststore)\r\n//\t\t\t\t\t.build();\r\n\t\t\tSSLConnectionSocketFactory sslcsf = new SSLConnectionSocketFactory(sslContext, new String[] { \"TLSv1\" },\r\n\t\t\t\t\tnull, SSLConnectionSocketFactory.BROWSER_COMPATIBLE_HOSTNAME_VERIFIER);\r\n\t\t\tCloseableHttpClient httpclient = HttpClients.custom().setSSLSocketFactory(sslcsf).build();\r\n\r\n\t\t\tHttpPost httppost = new HttpPost(\"https://ebank.95559.com.cn/corporbank/NsTrans\");\r\n\r\n\t\t\tSystem.out.println(\"executing request\" + httppost.getRequestLine());\r\n\r\n\t\t\tCloseableHttpResponse response = httpclient.execute(httppost);\r\n\t\t\ttry {\r\n\t\t\t\tHttpEntity entity = response.getEntity();\r\n\r\n\t\t\t\tSystem.out.println(\"----------------------------------------\");\r\n\t\t\t\tSystem.out.println(response.getStatusLine());\r\n\t\t\t\tif (entity != null) {\r\n\t\t\t\t\tSystem.out.println(\"Response content length: \" + entity.getContentLength());\r\n\t\t\t\t}\r\n\t\t\t\tEntityUtils.consume(entity);\r\n\t\t\t} finally {\r\n\t\t\t\tresponse.close();\r\n\t\t\t}\r\n\r\n\t\t} catch (KeyStoreException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\r\n\t\t} catch (KeyManagementException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClientProtocolException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (CertificateException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"private void connectUsingCertificate() {\n\t\tfinal String METHOD = \"connectUsingCertificate\";\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"wss://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WSS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"ssl://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTTS_PORT;\n\t\t\t}\n\t\t} \n\n\t\tString mqttServer = getMQTTServer();\n\t\t\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, DATA_STORE);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t\tmqttClientOptions.setAutomaticReconnect(isAutomaticReconnect());\n\t\t\t\n\t\t\t/* This isn't needed as the production messaging.internetofthings.ibmcloud.com \n\t\t\t * certificate should already be in trust chain.\n\t\t\t * \n\t\t\t * See: \n\t\t\t * http://stackoverflow.com/questions/859111/how-do-i-accept-a-self-signed-certificate-with-a-java-httpsurlconnection\n\t\t\t * https://gerrydevstory.com/2014/05/01/trusting-x509-base64-pem-ssl-certificate-in-java/\n\t\t\t * http://stackoverflow.com/questions/12501117/programmatically-obtain-keystore-from-pem\n\t\t\t * https://gist.github.com/sharonbn/4104301\n\t\t\t * \n\t\t\t * CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\t * InputStream certFile = AbstractClient.class.getResourceAsStream(\"messaging.pem\");\n\t\t\t * Certificate ca = cf.generateCertificate(certFile);\n\t\t\t *\n\t\t\t * KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t * keyStore.load(null, null);\n\t\t\t * keyStore.setCertificateEntry(\"ca\", ca);\n\t\t\t * TrustManager trustManager = TrustManagerUtils.getDefaultTrustManager(keyStore);\n\t\t\t * SSLContext sslContext = SSLContextUtils.createSSLContext(\"TLSv1.2\", null, trustManager);\n\t\t\t * \n\t\t\t */\n\n\t\t\tSSLContext sslContext = SSLContext.getInstance(\"TLSv1.2\");\n\t\t\tsslContext.init(null, null, null);\n\t\t\t\n\t\t\t//Validate the availability of Server Certificate\n\t\t\t\n\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tserverCert = trimedValue(options.getProperty(\"Server-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Server Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Client Certificate\n\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tclientCert = trimedValue(options.getProperty(\"Client-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t//Validate the availability of Client Certificate Key\n\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")).contains(\".key\")){\n\t\t\t\t\tclientCertKey = trimedValue(options.getProperty(\"Client-Key\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only Certificate key in .key format is supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Key is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Certificate Password\n\t\t\ttry{\n\t\t\tif (trimedValue(options.getProperty(\"Certificate-Password\")) != null){\n\t\t\t\tcertPassword = trimedValue(options.getProperty(\"Certificate-Password\"));\n\t\t\t\t} else {\n\t\t\t\t\tcertPassword = \"\";\n\t\t\t\t}\n\t\t\t} catch (Exception e){\n\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Certificate Password is missing\", e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setSocketFactory(getSocketFactory(serverCert, clientCert, clientCertKey, certPassword));\n\n\t\t} catch (Exception e) {\n\t\t\tLoggerUtility.warn(CLASS_NAME, METHOD, \"Unable to configure TLSv1.2 connection: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n protected void execute() throws Exception {\r\n log.debug(\"Downloading SAML certificate and adding it to the keystore\");\r\n TlsPolicy tlsPolicy = TlsPolicyBuilder.factory().strictWithKeystore(trustagentConfiguration.getTrustagentKeystoreFile(), trustagentConfiguration.getTrustagentKeystorePassword()).build();\r\n TlsConnection tlsConnection = new TlsConnection(new URL(url), tlsPolicy);\r\n \r\n Properties clientConfiguration = new Properties();\r\n clientConfiguration.setProperty(TrustagentConfiguration.MTWILSON_API_USERNAME, username);\r\n clientConfiguration.setProperty(TrustagentConfiguration.MTWILSON_API_PASSWORD, password);\r\n \r\n CaCertificates client = new CaCertificates(clientConfiguration, tlsConnection);\r\n X509Certificate certificate = client.retrieveCaCertificate(\"saml\");\r\n keystore.addTrustedCaCertificate(certificate, \"saml\");\r\n// X509Certificate endorsementCertificate = client.retrieveCaCertificate(\"endorsement\");\r\n// keystore.addTrustedCaCertificate(endorsementCertificate, \"endorsement\");\r\n keystore.save();\r\n }",
"private static void storeActivation(Context context) {\n\t\t//securely store in shared preference\n\t\tSharedPreferences secureSettings = new SecurePreferences(context);\n\t\tString account = UserEmailFetcher.getEmail(context);\n\n\t\t//update preference\n\t\tSharedPreferences.Editor secureEdit = secureSettings.edit();\n\t\tsecureEdit.putBoolean(account + \"_paid\", true);\n\t\tsecureEdit.apply();\n\t}",
"@Override\n\tpublic void credite() {\n\t\t\n\t}",
"public static void main(String[] args) throws Exception {\n KeyPairGenerator kpGen = KeyPairGenerator.getInstance(\"RSA\"); //create RSA KeyPairGenerator \n kpGen.initialize(2048, new SecureRandom()); //Choose key strength\n KeyPair keyPair = kpGen.generateKeyPair(); //Generate private and public keys\n PublicKey RSAPubKey = keyPair.getPublic();\n PrivateKey RSAPrivateKey = keyPair.getPrivate();\n\n //Information for Certificate\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\"); \n X500Name issuer = new X500Name(\"CN=\" + \"ExampleIssuer\"); // Issuer/Common Name\n X500Name subject = new X500Name(\"CN=\" + \"Client\"); //Subject\n Date notBefore = new Date(); //The date which the certificate becomes effective. \n long expiryDate = 1672437600000L; // expires 31 December 2022\n Date notAfter = new Date(expiryDate); //The date the certificate expires. \n BigInteger serialNumber = BigInteger.valueOf(Math.abs(random.nextInt())); //Cert Serial Number\n\n //Define the generator\n X509v3CertificateBuilder certGenerator \n = new JcaX509v3CertificateBuilder(\n issuer, \n serialNumber, \n notBefore,\n notAfter,\n subject,\n RSAPubKey\n );\n\n //Define how the certificate will be signed.\n //Usually with a hash algorithm and the Certificate Authority's private key. \n //Change argument x in .build(x) to not self-sign the cert.\n final ContentSigner contentSigner = new JcaContentSignerBuilder(\"SHA1WithRSAEncryption\").build(keyPair.getPrivate());\n\n //Generate a X.509 cert.\n X509CertificateHolder certificate = certGenerator.build(contentSigner);\n\n //Encode the certificate and write to a file. On Mac, you can open it with KeyChain Access\n //to confirm that it worked. \n byte[] encodedCert = certificate.getEncoded();\n FileOutputStream fos = new FileOutputStream(\"Example.cert\"); //Filename\n fos.write(encodedCert);\n fos.close();\n\n }",
"com.soa.SolicitarCreditoDocument.SolicitarCredito getSolicitarCredito();",
"private X509Certificate generarCertificado(KeyPair keyPair2) {\n\t\tX509Certificate cert = null;\n\n\t\tX509V3CertificateGenerator gen = new X509V3CertificateGenerator();\n\t\tX500Principal prin = new X500Principal(\"CN=Grupo MPG\");\n\t\tgen.setSerialNumber(BigInteger.valueOf(System.currentTimeMillis()));\n\t\tgen.setIssuerDN(prin);\n\t\tgen.setNotBefore(new Date(System.currentTimeMillis() - 50000));\n\t\tgen.setNotAfter(new Date(System.currentTimeMillis() - 50000));\n\t\tgen.setSubjectDN(prin);\n\t\tgen.setPublicKey(keyPair2.getPublic());\n\t\tgen.setSignatureAlgorithm(\"MD2withRSA\");\n\t\ttry {\n\t\t\tcert = gen.generate(keyPair2.getPrivate());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn cert;\n\t}",
"public int getExternalIssuer();",
"boolean hasCertificate();",
"public double getValorCertificado() { return this.valorCertificado; }",
"private SSLContext createSSLContext() throws KeyStoreException,\n NoSuchAlgorithmException, KeyManagementException, IOException, CertificateException {\n TrustManager localTrustManager = new X509TrustManager() {\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n System.out.println(\"X509TrustManager#getAcceptedIssuers\");\n return new X509Certificate[]{};\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain,\n String authType) throws CertificateException {\n System.out.println(\"X509TrustManager#checkServerTrusted\");\n }\n\n @Override\n public void checkClientTrusted(X509Certificate[] chain,\n String authType) throws CertificateException {\n System.out.println(\"X509TrustManager#checkClientTrusted\");\n }\n };\n\n\n SSLContext sslContext = SSLContext.getInstance(\"TLS\");\n sslContext.init(null, new TrustManager[]{localTrustManager}, new SecureRandom());\n\n return sslContext;\n }",
"public String chaveSecundaria(){\r\n return this.email;\r\n }",
"public String getCertification() {\r\n\t\treturn certification;\r\n\t}",
"java.lang.String getIssuer();",
"java.lang.String getLicensesCertificationsRaw();",
"@Test\n\tpublic void testGetCACerts_TAandTLS() {\n\t\tSystem.out.println(\"Beginning TC2002\");\n\t\tArrayList<X509Certificate> newCACerts = null;\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate myCert1 = null;\n\n\t\tassertNotNull(ec);\n\n\t\tec.setTrustAnchor(mCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t// get a good cert to use for tls credentials\n\t\tmyCert1 = getTrustedCert();\n\t\tec.setTLSAuthenticationCredentials(myCert1, mKey);\n\n\t\t/*\n\t\t * Attempt to fetch the latest CA certs from the EST server\n\t\t */\n\t\ttry {\n\t\t\tnewCACerts = ec.fetchLatestCACerts();\n\t\t} catch (CertificateException | IOException | CACertsException\n\t\t\t\t| BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tassertNotNull(newCACerts);\n\t\tif (newCACerts != null) {\n\t\t\tassertFalse(newCACerts.isEmpty());\n\t\t}\n\n\t\tfor (X509Certificate c : newCACerts) {\n\t\t\t// System.out.println(c.toString());\n\t\t\tSystem.out.println(\"Issuer: \" + c.getIssuerDN().getName());\n\t\t\tassertNotNull(c.getIssuerDN().getName());\n\t\t\tassertFalse(c.getIssuerDN().getName().equals(\"\"));\n\t\t}\n\t\tSystem.out.println(\"Ending TC2002\");\n\t}",
"@Override public int doIt(){\r\n log.println();\r\n log.println(twoLineStartMsg().append('\\n'));\r\n \r\n if (isTest()) {\r\n log.println(prop.toString());\r\n } // >= TEST\r\n \r\n try { // open input\r\n if (fromCert) {\r\n certFileName = w0;\r\n } else if (certFileName == null) {\r\n certFileName = System.getProperty(\"user.home\") + \"/.keystore\"; \r\n }\r\n fis = new FileInputStream(certFileName);\r\n } catch (FileNotFoundException e) {\r\n if (isTest()) {\r\n log.println(formMessage(\"openexcp\", certFileName));\r\n e.printStackTrace(log);\r\n }\r\n return errMeld(17, formMessage(\"openexcp\", e));\r\n } // open input\r\n \r\n if (fromCert) { // cert (else keystore)\r\n pubKeyFil = w1;\r\n try {\r\n cFac = CertificateFactory.getInstance(certType);\r\n cert = cFac.generateCertificate(fis);\r\n } catch (CertificateException e1) {\r\n log.println(formMessage(\"pukynotgtb\", certFileName));\r\n return errMeld(19, e1);\r\n }\r\n pubKey = cert.getPublicKey();\r\n log.println(formMessage(\"pukyfrcert\", certFileName));\r\n } else { // cert else keystore\r\n keyAlias = w0;\r\n pubKeyFil = w1;\r\n storePassW = TextHelper.trimUq(storePassW, null);\r\n if (storePassW != null) {\r\n passWord = storePassW.toCharArray();\r\n } else {\r\n passWord = AskDialog.getAnswerText(\r\n valueLang(\"pkexpdtit\"), // titel PKextr password dialog\r\n keyAlias, // upper\r\n true, // upper monospaced\r\n valueLang(\"pkexpasye\"), valueLang(\"pkexpasno\"), // yes, cancel\r\n 990, // waitMax = 99s\r\n valueLang(\"pkexpassr\"),\r\n null, true); //Color bg password \r\n } // storePassw \r\n \r\n try {\r\n ks = KeyStore.getInstance(certType);\r\n } catch (KeyStoreException e1) {\r\n return errMeld(21, e1);\r\n }\r\n\r\n try {\r\n ks.load(fis, passWord);\r\n fis.close();\r\n cert = ks.getCertificate(keyAlias);\r\n } catch (Exception e2) {\r\n return errMeld(29, e2);\r\n }\r\n // alias \r\n if (exportPrivate) {\r\n Key key = null;\r\n try {\r\n key = ks.getKey(keyAlias, passWord);\r\n } catch (Exception e) {\r\n return errorExit(39, e, \"could not get the key from keystore.\");\r\n }\r\n if (key instanceof PrivateKey) {\r\n // ex history: BASE64Encoder myB64 = new BASE64Encoder();\r\n // since 24.06.2016 String b64 = myB64.encode(key.getEncoded());\r\n Base64.Encoder mimeEncoder = java.util.Base64.getMimeEncoder();\r\n String b64 = mimeEncoder.encodeToString( key.getEncoded());\r\n \r\n log.println(\"-----BEGIN PRIVATE KEY-----\");\r\n log.println(b64);\r\n log.println(\"-----END PRIVATE KEY-----\\n\\n\");\r\n\r\n if (pubKeyFil == null) return 0;\r\n \r\n log.println(formMessage(\"prkywrite\", pubKeyFil));\r\n try {\r\n keyfos = new FileOutputStream(pubKeyFil);\r\n } catch (FileNotFoundException e1) {\r\n return errMeld(31, e1);\r\n }\r\n Writer osw = new OutputStreamWriter(keyfos); \r\n try {\r\n osw.write(\"-----BEGIN PRIVATE KEY-----\\n\");\r\n osw.write(b64);\r\n osw.write(\"\\n-----END PRIVATE KEY-----\\n\");\r\n osw.close();\r\n } catch (IOException e2) {\r\n return errMeld(31, e2);\r\n }\r\n\r\n return 0;\r\n \r\n }\r\n return errorExit(39, \"no private key found\");\r\n } // export private \r\n pubKey = cert.getPublicKey();\r\n log.println(formMessage(\"pukyfrstor\",\r\n new String[]{keyAlias, certFileName}));\r\n } // else from keystore\r\n \r\n log.println(\"\\n----\\n\" + pubKey.toString() + \"\\n----\\n\\n\");\r\n \r\n if (pubKeyFil == null) return 0;\r\n\r\n // got the public key and listed it to log\r\n log.println(formMessage(\"pukywrite\", pubKeyFil));\r\n //\" Write public key to \\\"\" + pubKeyFil + \"\\\"\\n\");\r\n byte[] key = pubKey.getEncoded();\r\n try {\r\n keyfos = new FileOutputStream(pubKeyFil);\r\n } catch (FileNotFoundException e1) {\r\n return errMeld(31, e1);\r\n }\r\n try {\r\n keyfos.write(key);\r\n keyfos.close();\r\n } catch (IOException e2) {\r\n return errMeld(31, e2);\r\n }\r\n return 0;\r\n }",
"private void Initiat_Service(Object serviceAdm,Utilisateur user_en_cours) {\n\t\tlog.debug(\"user_en_cours.trustedApplication:\"+user_en_cours.trustedApplication);\n\t\t\t\tString filename =propIdentification.getProperty(Long.toString(user_en_cours.trustedApplication));\n\t\t\t\tlog.debug(\"filename:\"+filename);\n\t\t\t\t//System.out.println(\"my file \"+filename);\n\t\t\t\tFileInputStream is=null;\n\t\t\t\ttry {\n\t\t\t\t\tis = new FileInputStream(filename);\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tKeyStore myKeyStore=null;\n\t\t\t\ttry {\n\t\t\t\t\tmyKeyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t\t} catch (KeyStoreException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t\tString password =propIdentification.getProperty(Long.toString(user_en_cours.trustedApplication)+\".password\");\n\n\t\t\t\ttry {\n\t\t\t\t\tmyKeyStore.load(is, password.toCharArray());\n\t\t\t\t} catch (NoSuchAlgorithmException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t} catch (CertificateException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tString filenameTrust =prop.getProperty(\"clienttrustore\");\n\t\t\t\tFileInputStream myKeys = null;\n\t\t\t\ttry {\n\t\t\t\t\tmyKeys = new FileInputStream(filenameTrust);\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t// Load your TrustedStore\n\t\t\t\tKeyStore myTrustedStore=null;\n\t\t\t\ttry {\n\t\t\t\t\tmyTrustedStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t\t} catch (KeyStoreException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tmyTrustedStore.load(myKeys, prop.getProperty(\"clienttrustore.password\").toCharArray());\n\t\t\t\t} catch (NoSuchAlgorithmException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (CertificateException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tWSConnection.setupTLS(serviceAdm, myKeyStore, password, myTrustedStore);\n\t\t\t\t} catch (GeneralSecurityException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t}",
"public void setValorCertificado(double p) { this.valorCertificado = p; }",
"public static String generateCert(String certPem) {\n try {\n String tempPemPath = \"/tmp/tempPem\";\n Files.write(Paths.get(tempPemPath), certPem.getBytes());\n\n DefaultExecutor executor = new DefaultExecutor();\n CommandLine cmdLine = CommandLine.parse(\"openssl\");\n cmdLine.addArgument(\"x509\");\n cmdLine.addArgument(\"-in\");\n cmdLine.addArgument(tempPemPath);\n cmdLine.addArgument(\"-text\");\n\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n PumpStreamHandler streamHandler = new PumpStreamHandler(baos);\n executor.setStreamHandler(streamHandler);\n\n executor.execute(cmdLine);\n return baos.toString(\"UTF-8\");\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"private @NonNull WpcCrtChn getChn() throws IOException, GeneralSecurityException {\n int siz = MAX_CRT; // Initialize the requested length for the GET_CERTIFICATE Request\n int ofs = 0; // Initialize the offset for the GET_CERTIFICATE Request\n int len = 0; // Initialize length of Certificate Chain\n ByteArrayOutputStream bas = new ByteArrayOutputStream(MAX_CRT); // Create stream for Certificate Chain\n do {\n ByteBuffer req = getMsg(REQ_CRT, 4); // Create GET_CERTIFICATE request message\n req.position(1); // Set buffer pointer to offset\n req.put((byte) (((ofs & 0x0300) >> 2) | SLOT_0)); // Add slot byte\n req.put((byte) ofs); // Add offset\n req.put((byte) siz); // Add Length\n ByteBuffer res = sndMsg(req, WpcAthRsp.RES_CRT); // Send GET_CERTIFICATE Request\n if (ofs == 0) { // First GET_CERTIFICATE Request?\n len = res.getShort(); // Get the total length of the Certificate Chain\n if (len < siz) { // Certificate Chain too small?\n WpcLog.logErr(\"Wrong WPC Certificate Chain length\"); // Log error\n throw new IOException(); // Abort authentication\n }\n }\n byte[] buf = res.array(); // Get CERTIFICATE Response\n if ((siz != (buf.length - 1))) { // Incorrect Certificate Chain fragment size?\n WpcLog.logErr(\"Invalid WPC Certificate Chain length\"); // Log error\n throw new IOException(); // Abort authentication\n }\n bas.write(buf, 1, siz); // Add Certificate fragment to the Certificate Chain\n len = len - siz; // Calculate remaining bytes in the Certificate Chain\n ofs = ofs + siz; // Calculate offset for the next GET_CERTIFICATE Request\n if (len > MAX_CRT) { // Remaining Certificate Chain does not fit into one GET_CERTIFICATE Request?\n siz = MAX_CRT; // Request the maximum fragment for the next GET_CERTIFICATE Request\n } else { // Remaining Certificate Chain fits into one GET_CERTIFICATE Request\n siz = len; // Request the remaining bytes of the Certificate Chain\n }\n } while (len > 0); // Repeat until whole Certificate Chain is received\n byte[] ba = bas.toByteArray(); // Convert WPC Certificate Chain into a byte array\n WpcCrtChn chn = new WpcCrtChn(ba); // Create the Certificate Chain\n chn.verify(); // Verify the Certificate Chain\n mCom.setChn(chn); // Announce used WPC Certificate Chain\n WpcLog.log(WpcLog.EvtTyp.CHN, ba); // Log the received WPC Certificate Chain\n return chn; // Return the Certificate Chain\n }",
"public abstract T useTransportSecurity(File certChain, File privateKey);",
"dkk mo4509g();",
"private void loadTM() throws ERMgmtException{\n try{\n KeyStore ts = KeyStore.getInstance(KeyStore.getDefaultType());\n //random number generate to generated aliases for the new keystore\n Random generator = new Random();\n \n ts.load(null, null);\n \n if(mCertList.size() > 0){\n for(int i=0; i<mCertList.size(); i++){\n int randomInt = generator.nextInt();\n while(ts.containsAlias(\"certificate\"+randomInt)){\n randomInt = generator.nextInt();\n }\n ts.setCertificateEntry(\"certificate\"+randomInt, (X509Certificate) mCertList.get(i));\n } \n mTrustManagerFactory.init(ts); \n } else { \n mTrustManagerFactory.init((KeyStore) null);\n }\n \n TrustManager[] tm = mTrustManagerFactory.getTrustManagers();\n for(int i=0; i<tm.length; i++){\n if (tm[i] instanceof X509TrustManager) {\n mTrustManager = (X509TrustManager)tm[i]; \n break;\n }\n }\n \n } catch (Exception e){ \n throw new ERMgmtException(\"Trust Manager Error\", e);\n }\n \n }",
"private void importTrustedCertificate() {\n\t\t// Let the user choose a file containing trusted certificate(s) to\n\t\t// import\n\t\tFile certFile = selectImportExportFile(\n\t\t\t\t\"Certificate file to import from\", // title\n\t\t\t\tnew String[] { \".pem\", \".crt\", \".cer\", \".der\", \"p7\", \".p7c\" }, // file extensions filters\n\t\t\t\t\"Certificate Files (*.pem, *.crt, , *.cer, *.der, *.p7, *.p7c)\", // filter descriptions\n\t\t\t\t\"Import\", // text for the file chooser's approve button\n\t\t\t\t\"trustedCertDir\"); // preference string for saving the last chosen directory\n\t\tif (certFile == null)\n\t\t\treturn;\n\n\t\t// Load the certificate(s) from the file\n\t\tArrayList<X509Certificate> trustCertsList = new ArrayList<>();\n\t\tCertificateFactory cf;\n\t\ttry {\n\t\t\tcf = CertificateFactory.getInstance(\"X.509\");\n\t\t} catch (Exception e) {\n\t\t\t// Nothing we can do! Things are badly misconfigured\n\t\t\tcf = null;\n\t\t}\n\n\t\tif (cf != null) {\n\t\t\ttry (FileInputStream fis = new FileInputStream(certFile)) {\n\t\t\t\tfor (Certificate cert : cf.generateCertificates(fis))\n\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t} catch (Exception cex) {\n\t\t\t\t// Do nothing\n\t\t\t}\n\n\t\t\tif (trustCertsList.size() == 0) {\n\t\t\t\t// Could not load certificates as any of the above types\n\t\t\t\ttry (FileInputStream fis = new FileInputStream(certFile);\n\t\t\t\t\t\tPEMReader pr = new PEMReader(\n\t\t\t\t\t\t\t\tnew InputStreamReader(fis), null, cf\n\t\t\t\t\t\t\t\t\t\t.getProvider().getName())) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Try as openssl PEM format - which sligtly differs from\n\t\t\t\t\t * the one supported by JCE\n\t\t\t\t\t */\n\t\t\t\t\tObject cert;\n\t\t\t\t\twhile ((cert = pr.readObject()) != null)\n\t\t\t\t\t\tif (cert instanceof X509Certificate)\n\t\t\t\t\t\t\ttrustCertsList.add((X509Certificate) cert);\n\t\t\t\t} catch (Exception cex) {\n\t\t\t\t\t// do nothing\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (trustCertsList.size() == 0) {\n\t\t\t/* Failed to load certifcate(s) using any of the known encodings */\n\t\t\tshowMessageDialog(this,\n\t\t\t\t\t\"Failed to load certificate(s) using any of the known encodings -\\n\"\n\t\t\t\t\t\t\t+ \"file format not recognised.\", ERROR_TITLE,\n\t\t\t\t\tERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Show the list of certificates contained in the file for the user to\n\t\t// select the ones to import\n\t\tNewTrustCertsDialog importTrustCertsDialog = new NewTrustCertsDialog(this,\n\t\t\t\t\"Credential Manager\", true, trustCertsList, dnParser);\n\n\t\timportTrustCertsDialog.setLocationRelativeTo(this);\n\t\timportTrustCertsDialog.setVisible(true);\n\t\tList<X509Certificate> selectedTrustCerts = importTrustCertsDialog\n\t\t\t\t.getTrustedCertificates(); // user-selected trusted certs to import\n\n\t\t// If user cancelled or did not select any cert to import\n\t\tif (selectedTrustCerts == null || selectedTrustCerts.isEmpty())\n\t\t\treturn;\n\n\t\ttry {\n\t\t\tfor (X509Certificate cert : selectedTrustCerts)\n\t\t\t\t// Import the selected trusted certificates\n\t\t\t\tcredManager.addTrustedCertificate(cert);\n\n\t\t\t// Display success message\n\t\t\tshowMessageDialog(this, \"Trusted certificate(s) import successful\",\n\t\t\t\t\tALERT_TITLE, INFORMATION_MESSAGE);\n\t\t} catch (CMException cme) {\n\t\t\tString exMessage = \"Failed to import trusted certificate(s) to the Truststore\";\n\t\t\tlogger.error(exMessage, cme);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}",
"public X509Certificate getCertificate();",
"@Override\npublic X509Certificate[] getAcceptedIssuers() {\nreturn null;\n}",
"private void initTwitterConfigs() {\n consumerKey = getString(com.socialscoutt.R.string.twitter_consumer_key);\n consumerSecret = getString(com.socialscoutt.R.string.twitter_consumer_secret);\n }",
"public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }",
"public static Map<String, String> listTokenFromCSP()\r\n\t\t\tthrows BkavSignaturesException {\r\n\t\tMap<String, String> result = new HashMap<>();\r\n\t\ttry {\r\n\t\t\tSunMSCAPI providerMSCAPI = new SunMSCAPI();\r\n\t\t\tSecurity.addProvider(providerMSCAPI);\r\n\t\t\tKeyStore ks = KeyStore.getInstance(CSP_KEYSTORE);\r\n\t\t\tks.load(null, null);\r\n\r\n\t\t\tEnumeration<String> aliases = ks.aliases();\r\n\t\t\tString alias = null;\r\n\r\n\t\t\twhile (aliases.hasMoreElements()) {\r\n\t\t\t\talias = aliases.nextElement();\r\n\t\t\t\tCertificate cert = ks.getCertificate(alias);\r\n\t\t\t\tif (cert instanceof X509Certificate) {\r\n\t\t\t\t\tX509Certificate x509Cert = (X509Certificate) cert;\r\n\t\t\t\t\tString certSerial = x509Cert.getSerialNumber().toString(16);\r\n\r\n\t\t\t\t\tString subjectDN = x509Cert.getSubjectDN().getName();\r\n\t\t\t\t\tString author = \"\";\r\n\t\t\t\t\tLdapName ldap;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tldap = new LdapName(subjectDN);\r\n\t\t\t\t\t\tfor (Rdn rdn : ldap.getRdns()) {\r\n\t\t\t\t\t\t\tif (\"CN\".equalsIgnoreCase(rdn.getType())) {\r\n\t\t\t\t\t\t\t\tauthor = rdn.getValue().toString();\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (InvalidNameException e) {\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tresult.put(certSerial, author);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (KeyStoreException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"KeyStoreException\", e);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"NoSuchAlgorithmException\", e);\r\n\t\t} catch (CertificateException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"CertificateException\", e);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"IOException\", e);\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Certificat)) {\r\n return false;\r\n }\r\n Certificat other = (Certificat) object;\r\n if ((this.idCertificat == null && other.idCertificat != null) || (this.idCertificat != null && !this.idCertificat.equals(other.idCertificat))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public void ShowSSLDialog(java.lang.String r23, byte[] r24, android.net.http.SslCertificate r25, boolean r26) {\n /*\n r22 = this;\n r3 = com.adobe.air.AndroidActivityWrapper.GetAndroidActivityWrapper();\n r10 = r3.getActivity();\n if (r10 != 0) goto L_0x000e;\n L_0x000a:\n r10 = r3.WaitForNewActivity();\n L_0x000e:\n r7 = new com.adobe.air.AndroidAlertDialog;\n r7.<init>(r10);\n r16 = r7.GetAlertDialogBuilder();\n r9 = r10.getLayoutInflater();\n r14 = r10.getResources();\n r19 = \"ssl_certificate_warning\";\n r0 = r19;\n r17 = com.adobe.air.utils.Utils.GetLayoutView(r0, r14, r9);\n if (r17 == 0) goto L_0x0178;\n L_0x0029:\n r18 = r17.getResources();\n r19 = \"ServerName\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r15 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r15 = (android.widget.TextView) r15;\n r19 = new java.lang.StringBuilder;\n r19.<init>();\n r20 = r15.getText();\n r19 = r19.append(r20);\n r20 = \" \";\n r19 = r19.append(r20);\n r0 = r19;\n r1 = r23;\n r19 = r0.append(r1);\n r19 = r19.toString();\n r0 = r19;\n r15.setText(r0);\n r5 = 0;\n if (r24 == 0) goto L_0x0179;\n L_0x0062:\n r5 = new com.adobe.air.Certificate;\n r5.<init>();\n r0 = r24;\n r5.setCertificate(r0);\n L_0x006c:\n r19 = \"IDA_CERTIFICATE_DETAILS\";\n r0 = r19;\n r6 = com.adobe.air.utils.Utils.GetResourceString(r0, r14);\n r19 = 8;\n r0 = r19;\n r0 = new java.lang.Object[r0];\n r19 = r0;\n r20 = 0;\n r21 = r5.getIssuedToCommonName();\n r19[r20] = r21;\n r20 = 1;\n r21 = r5.getIssuedToOrganization();\n r19[r20] = r21;\n r20 = 2;\n r21 = r5.getIssuedToOrganizationalUnit();\n r19[r20] = r21;\n r20 = 3;\n r21 = r5.getIssuedByCommonName();\n r19[r20] = r21;\n r20 = 4;\n r21 = r5.getIssuedByOrganization();\n r19[r20] = r21;\n r20 = 5;\n r21 = r5.getIssuedByOrganizationalUnit();\n r19[r20] = r21;\n r20 = 6;\n r21 = r5.getIssuedOn();\n r19[r20] = r21;\n r20 = 7;\n r21 = r5.getExpiresOn();\n r19[r20] = r21;\n r0 = r19;\n r8 = java.lang.String.format(r6, r0);\n r19 = \"CertificateDetails\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r4 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r4 = (android.widget.TextView) r4;\n r19 = android.widget.TextView.BufferType.SPANNABLE;\n r0 = r19;\n r4.setText(r8, r0);\n r19 = \"NeutralButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r12 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r12 = (android.widget.Button) r12;\n r19 = new com.adobe.air.SSLSecurityDialog$1;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r12.setOnClickListener(r0);\n r19 = \"PositiveButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r13 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r13 = (android.widget.Button) r13;\n if (r26 == 0) goto L_0x0182;\n L_0x0103:\n r19 = new com.adobe.air.SSLSecurityDialog$2;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r13.setOnClickListener(r0);\n r19 = 0;\n r0 = r19;\n r13.setVisibility(r0);\n L_0x0118:\n r19 = \"NegativeButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r11 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r11 = (android.widget.Button) r11;\n r19 = new com.adobe.air.SSLSecurityDialog$3;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r11.setOnClickListener(r0);\n r16.setView(r17);\n r19 = new com.adobe.air.SSLSecurityDialog$4;\n r0 = r19;\n r1 = r22;\n r0.<init>();\n r0 = r16;\n r1 = r19;\n r0.setOnKeyListener(r1);\n r19 = new com.adobe.air.SSLSecurityDialog$5;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r10.runOnUiThread(r0);\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.lock();\n r0 = r22;\n r0 = r0.m_useraction;\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n r19 = r0;\n if (r19 != 0) goto L_0x016f;\n L_0x0166:\n r0 = r22;\n r0 = r0.m_condition;\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n r19 = r0;\n r19.await();\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n L_0x016f:\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.unlock();\n L_0x0178:\n return;\n L_0x0179:\n r5 = new com.adobe.air.Certificate;\n r0 = r25;\n r5.<init>(r0);\n goto L_0x006c;\n L_0x0182:\n r19 = 8;\n r0 = r19;\n r13.setVisibility(r0);\n goto L_0x0118;\n L_0x018a:\n r19 = move-exception;\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.unlock();\n goto L_0x0178;\n L_0x0195:\n r19 = move-exception;\n r0 = r22;\n r0 = r0.m_lock;\n r20 = r0;\n r20.unlock();\n throw r19;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.adobe.air.SSLSecurityDialog.ShowSSLDialog(java.lang.String, byte[], android.net.http.SslCertificate, boolean):void\");\n }",
"private JugComunidadCertificado getCertificadoActivo(ComunidadQueryBean query) {\r\n\t\tif(query.getIdComunidad()!=null)\r\n\t\t\treturn comunidadRepository.getCertificadoActivoComunidad(query);\r\n\t\treturn null;\r\n\t\t}",
"@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}",
"private static SSLContext createSSLContext() {\n\t try {\n\t SSLContext context = SSLContext.getInstance(\"SSL\");\n\t if (devMode) {\n\t \t context.init( null, new TrustManager[] {new RESTX509TrustManager(null)}, null); \n\t } else {\n\t TrustManager[] trustManagers = tmf.getTrustManagers();\n\t if ( kmf!=null) {\n\t KeyManager[] keyManagers = kmf.getKeyManagers();\n\t \n\t // key manager and trust manager\n\t context.init(keyManagers,trustManagers,null);\n\t }\n\t else\n\t \t// no key managers\n\t \tcontext.init(null,trustManagers,null);\n\t }\n\t return context;\n\t } \n\t catch (Exception e) {\n\t \t logger.error(e.toString());\n\t throw new HttpClientError(e.toString());\n\t \t }\n }",
"public static void initializeTwitterAccount()\n\t{\n\t\tString cK = \"\";\n\t\tString cS = \"\";\n\t\tString aT = \"\";\n\t\tString aTS = \"\";\n\t\ttA = new TwitterAccount(cK, cS, aT, aTS);\n\t}",
"private void runSmpl() throws GeneralSecurityException, IOException {\n WpcCrtChn chn = getChn(); // Request the WPC Certificate Chain\n ByteBuffer msg = getAth(); // Create CHALLENGE request\n byte[] res = sndAth(msg); // Send the CHALLENGE Request message\n byte[] dig = WpcAthRsp.getSigDig(chn.getDig(), msg.array(), res); // Get the Digest for the challenge\n byte[] sig = Arrays.copyOfRange(res, WpcAthRsp.LEN_ATH, res.length); // Get the signature from the CHALLENGE_AUTH Response\n verify(dig, sig, chn.getPu()); // Verify the signature\n }",
"public String getTlsCertPath();",
"public EnviarXml(String caminhoCacerts, String caminhoCertificadoA1, String senhaCertificadoA1) {\n\t\ttry {\n\t\t\tcertificado = EsocialUtils.getCertificadoA1(caminhoCertificadoA1, senhaCertificadoA1);\n\t\t\tEsocialUtils.inicializarCertificadSocketDinamico(caminhoCacerts, certificado);\n\t\t} catch (CertificadoException | FileNotFoundException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n \tSystem.out.println(\"essai2=\"+Accueil_clientController.utilisateurConnecte.getEmail());\r\n // TODO\r\n }",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);",
"public void checkServerTrusted ( X509Certificate[] chain, String authType ) throws CertificateException { \n //String to hold the issuer of first member in the chain\n String issuer = \"\";\n //String to hold the subject of the first member in the chain\n String subject = \"\";\n //Calendar to get the valid on and expires on date\n Calendar cal=Calendar.getInstance();\n //Date and String to hold the date the certificate was issued on\n Date issuedOn = null;\n String issuedOnString = new String(\"\");\n //Date and String to hold the date the certificate is valid until\n Date expiresOn = null;\n String expiresOnString = new String(\"\");\n //BigInteger to hold the serial number of the certificate\n BigInteger serial = null;\n //the highest certificate in the chain (the root)\n X509Certificate highestCert = null;\n \n try {\n highestCert = chain[0];\n issuer = highestCert.getIssuerX500Principal().toString();\n subject = highestCert.getSubjectX500Principal().toString();\n serial = highestCert.getSerialNumber();\n \n issuedOn = highestCert.getNotBefore();\n cal.setTime(issuedOn);\n issuedOnString = new String((cal.get(Calendar.MONTH)+1) + \"/\"+cal.get(Calendar.DAY_OF_MONTH)+\"/\"+cal.get(Calendar.YEAR));\n expiresOn = highestCert.getNotAfter();\n cal.setTime(expiresOn);\n expiresOnString = new String( (cal.get(Calendar.MONTH)+1) + \"/\"+cal.get(Calendar.DAY_OF_MONTH)+\"/\"+cal.get(Calendar.YEAR));\n \n mTrustManager.checkServerTrusted(chain, authType);\n } catch (CertificateException cx) { \n \t if ( !mAllowUntrusted )\n \t {\n \t\t ERTrustManagerCertificateException erce = new ERTrustManagerCertificateException(\"\\nUntrusted Certificate Found: \"+\n \"\\nIssued by: \"+ issuer + \n \"\\nIssued to: \" + subject + \n \"\\nIssued on: \" + issuedOnString + \n \"\\nExpires on: \" + expiresOnString + \n \"\\nSerial: \" + serial); \n \t\t erce.setCertificate(highestCert);\n \n \t throw erce;\n \t }\n }\n\n }",
"private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }",
"public interface X509Credential\n{\n\t/**\n\t * Returns the credential in a keystore.\n\t * @return the KeyStore\n\t */\n\tpublic KeyStore getKeyStore();\n\t\n\t/**\n\t * Returns a KeyManager which accompanies the KeyStore. \n\t * @return the KeyManager\n\t */\n\tpublic X509ExtendedKeyManager getKeyManager();\n\t\n\t/**\n\t * Returns a password which can be used to obtain PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method, \n\t * with the alias returned by the {@link #getKeyAlias()} method.\n\t * @return key password\n\t */\n\tpublic char[] getKeyPassword();\n\t\n\t/**\n\t * Returns an alias which can be used to obtain the PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method.\n\t * @return key alias\n\t */\n\tpublic String getKeyAlias();\n\t\n\t/**\n\t * Helper method to get private key from the underlying keystore\n\t * @return private key\n\t */\n\tpublic PrivateKey getKey();\n\n\t/**\n\t * Helper method to get certificate from the underlying keystore\n\t * @return certificate\n\t */\n\tpublic X509Certificate getCertificate();\n\n\t/**\n \t * Helper method to get certificate chain from the underlying keystore\n\t * @return certificate chain\n\t */\n\tpublic X509Certificate[] getCertificateChain();\n\t\n\t/**\n\t * @return RFC 2253 distinguished name of the certificate subject\n\t * @since 1.1.0\n\t */\n\tpublic String getSubjectName();\n}",
"@Override\n public void fetchFromSource(){\n System.out.println(\"pull the user credential from gmail\");\n }",
"public static X509Certificate loadAndroidKeyAttestationCertificate() {\n String certificate =\n \"-----BEGIN CERTIFICATE-----\\n\"\n + \"MIIByTCCAXCgAwIBAgIBATAKBggqhkjOPQQDAjAcMRowGAYDVQQDDBFBbmRyb2lkIE\"\n + \"tleW1hc3Rl cjAgFw03MDAxMDEwMDAwMDBaGA8yMTA2MDIwNzA2MjgxNVowGjEYMBY\"\n + \"GA1UEAwwPQSBLZXltYXN0 ZXIgS2V5MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE\"\n + \"FpsFUWID9p2QPAvtfal4MRf9vJg0tNc3 vKJwoDhhSCMm7If0FljgvmroBYQyCIbnn\"\n + \"Bxh2OU9SKxI/manPwIIUqOBojCBnzALBgNVHQ8EBAMC B4AwbwYKKwYBBAHWeQIBEQ\"\n + \"RhMF8CAQEKAQACAQEKAQEEBWhlbGxvBAAwDL+FPQgCBgFWDy29GDA6 oQUxAwIBAqI\"\n + \"DAgEDowQCAgEApQUxAwIBBKoDAgEBv4N4AwIBA7+DeQQCAgEsv4U+AwIBAL+FPwIF \"\n + \"ADAfBgNVHSMEGDAWgBQ//KzWGrE6noEguNUlHMVlux6RqTAKBggqhkjOPQQDAgNHAD\"\n + \"BEAiBKzJSk 9VNauKu4dr+ZJ5jMTNlAxSI99XkKEkXSolsGSAIgCnd5T99gv3B/IqM\"\n + \"CHn0yZ7Wuu/jisU0epRRo xh8otA8=\\n\"\n + \"-----END CERTIFICATE-----\";\n return createCertificate(certificate);\n }",
"public void enviarAlertaDeQueEstaOnline(){\n //mandaria un mail a los usuarios avisando que ya esta disponible para ver.\n System.out.println(\"Enviando mail con url \" + this.url);\n }",
"private static void estamblishConnection(final String phoneNumber, final String textToBeSigned) {\r\n \t\t\t\r\n \t\t\tXMLConfiguration config = null;\r\n \t\t\ttry {\r\n \t\t\t config = new XMLConfiguration(\"fi/laverca/samples/configuration.xml\");\r\n \t\t\t} catch(ConfigurationException e) {\r\n \t\t\t log.info(\"configuration file not found\", e);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tlog.info(\"setting up ssl\");\r\n \t\t\tJvmSsl.setSSL(config.getString(\"ssl.trustStore\"),\r\n \t\t\t\t\tconfig.getString(\"ssl.trustStorePassword\"),\r\n \t\t\t\t\tconfig.getString(\"ssl.keyStore\"),\r\n \t\t\t\t\tconfig.getString(\"ssl.keyStorePassword\"),\r\n \t\t\t\t\tconfig.getString(\"ssl.keyStoreType\"));\r\n \t\t\t\r\n \t\t\tString apId = config.getString(\"ap.apId\");\r\n \t String apPwd = config.getString(\"ap.apPwd\");\r\n \r\n \t String msspSignatureUrl = config.getString(\"mssp.msspSignatureUrl\");\r\n \t String msspStatusUrl = config.getString(\"mssp.msspStatusUrl\");\r\n \t String msspReceiptUrl = config.getString(\"mssp.msspReceiptUrl\");\r\n \r\n \t log.info(\"creating FiComClient\");\r\n \t FiComClient fiComClient = new FiComClient(apId, \r\n \t apPwd, \r\n \t msspSignatureUrl, \r\n \t msspStatusUrl, \r\n \t msspReceiptUrl);\r\n \t \r\n \t Long currentTimeMillis = System.currentTimeMillis();\r\n \t String apTransId = \"A\"+currentTimeMillis;\r\n \t final String eventId = \"A\"+ currentTimeMillis.toString().substring(currentTimeMillis.toString().length()-4);\r\n \t \r\n \t Service eventIdService = FiComAdditionalServices.createEventIdService(eventId);\r\n \t Service noSpamService = FiComAdditionalServices.createNoSpamService(\"A12\", false);\r\n \t \r\n \t LinkedList<Service> additionalServices = new LinkedList<Service>();\r\n \t LinkedList<String> attributeNames = new LinkedList<String>();\r\n \t \r\n \t attributeNames.add(FiComAdditionalServices.PERSON_ID_VALIDUNTIL);\r\n \t Service personIdService = FiComAdditionalServices.createPersonIdService(attributeNames);\r\n \t additionalServices.add(personIdService);\r\n \t \r\n\t DTBS dtbs = new DTBS(textToBeSigned, DTBS.ENCODING_UTF8, DTBS.MIME_TEXTPLAIN);\r\n \t \r\n \t try {\r\n \t \tlog.info(\"calling signText\");\r\n \t \treq = \r\n \t\t \tfiComClient.call(apTransId, \r\n \t\t \t\t\tdtbs, \r\n \t\t \t\t\tphoneNumber, \r\n \t\t \t\t\tnoSpamService,\r\n \t\t \t\t\teventIdService,\r\n \t\t \t\t\tadditionalServices, \r\n\t\t \t\t\tFiComSignatureProfiles.SIGNATURE,\r\n \t\t \t\t\tFiComMSS_Formats.PKCS7,\r\n \t\t \t\t\tnew FiComResponseHandler() {\r\n \t\t\t\t \t\t@Override\r\n \t\t\t\t \t\tpublic void onResponse(FiComRequest req, FiComResponse resp) {\r\n \t\t\t\t \t\t\tlog.info(\"Got response\");\r\n \t\t\t\t \t\t\tsendButton.setEnabled(true);\r\n \t\t\t\t\t\t\t\t\tcallStateProgressBar.setIndeterminate(false);\r\n \t\t\t\t \t\t\ttry {\r\n \t\t\t\t \t\t\t\tresponseBox.setText(\"MSS Signature: \" + \r\n \t\t\t\t \t\t\t\t\t\tnew String(Base64.encode(resp.getMSS_StatusResp().\r\n \t\t\t\t \t\t\t\t\t\tgetMSS_Signature().getBase64Signature()), \"ASCII\") +\r\n \t\t\t\t \t\t\t\t\t\t\"\\n\\n\" + responseBox.getText());\r\n \t\t\t\t \t\t\t} catch (UnsupportedEncodingException e) {\r\n \t\t\t\t \t\t\t\tlog.info(\"Unsupported encoding\", e);\r\n \t\t\t\t \t\t\t}\r\n \t\t\t\t \t\t\tfor(PersonIdAttribute a : resp.getPersonIdAttributes()) {\r\n \t\t\t\t \t\t\t\tlog.info(a.getName() + \" \" + a.getStringValue());\r\n \t\t\t\t \t\t\t\tresponseBox.setText(a.getStringValue() + \"\\n\" + responseBox.getText());\r\n \t\t\t\t \t\t\t}\t\t\t\t \t\t\t\r\n \t\t\t\t \t\t\tresponseBox.setText(\"Event ID: \" + eventId + \"\\nSigned text: \" + textToBeSigned + \"\\n\" + responseBox.getText());\r\n \t\t\t\t \t\t}\r\n \t\t\t\t\r\n \t\t\t\t \t\t@Override\r\n \t\t\t\t \t\tpublic void onError(FiComRequest req, Throwable throwable) {\r\n \t\t\t\t \t\t\tlog.info(\"got error\", throwable);\r\n \t\t\t\t\t\t\t\t\tcallStateProgressBar.setIndeterminate(false);\r\n \t\t\t\t \t\t\tresponseBox.setText(\"ERROR, \" + phoneNumber + \"\\n\" +\r\n \t\t\t\t \t\t\t\t\tresponseBox.getText());\r\n \t\t\t\t \t\t}\r\n \r\n \t\t\t\t\t\t\t\t@Override\r\n \t\t\t\t\t\t\t\tpublic void onOutstandingProgress(FiComRequest req,\r\n \t\t\t\t\t\t\t\t\t\tProgressUpdate prgUpdate) {\r\n \t\t\t\t\t\t\t\t}\r\n \t\t \t\t\t});\r\n \t }\r\n \t catch (IOException e) {\r\n \t log.info(\"error establishing connection\", e);\r\n \t }\r\n \r\n \t fiComClient.shutdown();\r\n \t\t}",
"public void enviarEmail(String c, Ciudadano a){\n\t}",
"private static void setupKeysAndCertificates() throws Exception {\n // set up our certificates\n //\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\n\n kpg.initialize(1024, new SecureRandom());\n\n String issueDN = \"O=Punkhorn Software, C=US\";\n issueKP = kpg.generateKeyPair();\n issueCert = Utils.makeCertificate(\n issueKP, issueDN, issueKP, issueDN);\n\n //\n // certificate we sign against\n //\n String signingDN = \"CN=William J. Collins, [email protected], O=Punkhorn Software, C=US\";\n signingKP = kpg.generateKeyPair();\n signingCert = Utils.makeCertificate(\n signingKP, signingDN, issueKP, issueDN);\n\n certList = new ArrayList<>();\n\n certList.add(signingCert);\n certList.add(issueCert);\n\n decryptingKP = signingKP;\n\n }",
"public void customLoginTwitter() {\n //check if user is already authenticated or not\n if (getTwitterSession() == null) {\n\n //if user is not authenticated start authenticating\n client.authorize(this, new Callback<TwitterSession>() {\n @Override\n public void success(Result<TwitterSession> result) {\n\n // Do something with result, which provides a TwitterSession for making API calls\n TwitterSession twitterSession = result.data;\n fetchTwitterEmail(twitterSession);\n }\n\n @Override\n public void failure(TwitterException e) {\n // Do something on failure\n Toast.makeText(SignInActivity.this, \"Failed to authenticate. Please try again.\", Toast.LENGTH_SHORT).show();\n }\n });\n } else {\n //if user is already authenticated direct call fetch twitter email api\n Toast.makeText(this, \"User already authenticated\", Toast.LENGTH_SHORT).show();\n// fetchTwitterEmail(getTwitterSession());\n }\n }",
"public String getAddCertDesc() {\n return addCertDesc;\n }",
"private X509Certificate getTrustedCert() {\n\t\tSystem.out.println(\"Beginning getTrustedCert ...\");\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate newCert = null;\n\t\t\n\t\tassertNotNull(ec);\n\t\t\n\t\tmCerts = Helpers.loadTA(mTrustDB);\n\t\tec.setTrustAnchor(mCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setHTTPCredentials(\"estuser\", \"estpwd\");\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t/*\n\t\t * Attempt to provision a new certificate\n\t\t */\n\t\ttry {\n\t\t\tnewCert = ec.sendSimpleEnrollRequest(mCSR, ESTClient.AuthMode.authHTTPonly, mKey, Boolean.FALSE);\n\t\t} catch (InvalidKeyException\n\t\t\t\t| CertificateException | IOException | EncodingException\n\t\t\t\t| EnrollException | EnrollRetryAfterException | BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newCert;\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n SharedPreferences settings = getSharedPreferences(\"twit\", 0);\n String key = settings.getString(\"accesstoken0\", null);\n String secret = settings.getString(\"accesstoken1\", null);\n final Button btnsetpin = (Button)findViewById(R.id.btnpin);\n final Button btnupdate = (Button)findViewById(R.id.btnupdate);\n final EditText status = (EditText)findViewById(R.id.status);\n \n \n if(key==null)\n { \n\t oauthClient = new OAuthSignpostClient(JTWITTER_OAUTH_KEY, jTWITTER_OAUTH_SECRET, \"oob\");\n\t URI uri = oauthClient.authorizeUrl();\n\t status.setVisibility(View.INVISIBLE);\n\t btnupdate.setVisibility(View.INVISIBLE);\n\t \n\t final Dialog dialog = new Dialog(this);\n\t dialog.setContentView(R.layout.twdialog);\n\t WebView wv = (WebView)dialog.findViewById(R.id.webtweet);\n\t wv.loadUrl(uri.toString());\n\t btnsetpin.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\n });\n\n\t\t\tfinal EditText nilaipin = (EditText)dialog.findViewById(R.id.pin);\n\t\t\tnilaipin.setOnClickListener(new OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tnilaipin.setText(\"\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\n\n\t\t\tButton btnok = (Button)dialog.findViewById(R.id.btntweet);\n\t\t\tbtnok.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tpin=nilaipin.getText().toString();\n\t\t\t\t\tsetpin=true;\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\tstatus.setVisibility(View.VISIBLE);\n\t\t\t \tbtnsetpin.setVisibility(View.INVISIBLE);\n\t\t\t \tbtnupdate.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\n });\n\n }\n else\n {\n \t oauthClient = new OAuthSignpostClient(JTWITTER_OAUTH_KEY, jTWITTER_OAUTH_SECRET, key, secret);\n \t twitter = new Twitter(\"nuraini\", oauthClient);\n \t setpin = false;\n \t status.setVisibility(View.VISIBLE);\n \t btnsetpin.setVisibility(View.INVISIBLE);\n \t btnupdate.setVisibility(View.VISIBLE);\n \t btnupdate.setOnClickListener(new OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\ttwitter.setSource(\"keyrani\");\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\ttwitter.updateStatus(status.getText().toString());\n\t\t\t\t\t\t\n\t\t\t\t\t}catch (Repetition e) {\n\t\t\t\t\t\t Toast.makeText(TwitUpdate.this, \"status tdk boleh sama\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\n });\n \t \n }\n \n \n \n \n }",
"public void userToCertMap(String userid, Certificate c) {\n try {\n String b = null;\n b = java.util.Base64.getEncoder().encodeToString(c.getEncoded());\n PreparedStatement pstmt = null;\n String filename = \"UserToCertMap\";\n /*PreparedStatement stmt = conn.prepareStatement(\" select * from \" + filename);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n if(!(rs.getString(\"userId\").equals(userid))) {*/\n String sql = \"INSERT INTO \" + filename + \" (userId,Certificate) VALUES(?,?)\";\n pstmt = conn.prepareStatement(sql);\n pstmt.setString(1, userid);\n pstmt.setString(2, b);\n pstmt.executeUpdate();\n pstmt.close();\n System.out.println(\"UserId to Certificate Mapping done\");\n /* }\n else{\n System.out.println(\"in else\");\n System.out.println(\"User Id exists\");\n }*/\n\n }\n //stmt.close();\n //rs.close();\n\n catch (SQLException e) {\n e.printStackTrace();\n } catch (CertificateEncodingException e) {\n e.printStackTrace();\n }\n }",
"@Test\n public void issuerTest() {\n // TODO: test issuer\n }",
"public void clickAttachCert() {\r\n\t\tattachCert.click();\r\n\t}",
"@Action(value = \"saveCertificate\", results = { @Result(name = INPUT, location = JSP_FIELDS) })\n @Validations(\n customValidators = { @CustomValidator(type = \"hibernate\", fieldName = \"certificate.issuer\", parameters = {\n @ValidationParameter(name = \"resourceKeyBase\", value = \"profile.organization\"),\n @ValidationParameter(name = \"excludes\", value = \"externalId\") }) },\n requiredFields = { @RequiredFieldValidator(fieldName = \"certificate.certificateType\",\n key = \"error.credentials.certificate.type.required\") },\n fieldExpressions = { @FieldExpressionValidator(\n fieldName = \"certificateFile.data\",\n expression = \"certificate.id != null || (certificateFile != null && certificateFile.data != null)\",\n key = \"error.credentials.certificate.file.required\"),\n @FieldExpressionValidator(fieldName = \"nihOerIssued\",\n expression = \"nihOerIssued || issuingOrganizationExternalId != null || certificate.issuer != null\",\n key = \"error.credentials.organization.required\"),\n @FieldExpressionValidator(\n fieldName = \"certificate.issuer.postalAddress.stateOrProvince\",\n expression = \"certificate.issuer != null\"\n + \" && certificate.issuer.postalAddress.stateOrProvinceValid\",\n key = \"stateOrProvince.required\")\n })\n public String saveCertificate() throws IOException {\n setFileDescription();\n setCertificateIssuer();\n boolean valid = validateFields();\n if (valid) {\n try {\n doSave();\n } catch (CredentialAlreadyExistsException ae) {\n handleCredentialAlreadyExists();\n valid = false;\n } catch (ValidationException e) {\n return handleValidationException(e);\n }\n }\n\n return valid ? closeDialog(getDialogId()) : INPUT;\n }",
"public String getCertificationRequest() {\n if (signingRequest == null) return null;\n return signingRequest.getCertificationRequest().getContent();\n }",
"@Override\r\n\tpublic boolean connectTwitterService(String email, String password) throws RemoteException {\n\t\tSystem.out.println(\"connectTwitter print\");\r\n\t\tif(email.equals(email1)){\r\n\t\t\tif(password.equals(pass1)){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private byte[][] getUserCertificate() throws KeyChainException, InterruptedException, CertificateEncodingException {\n ArrayList<byte[]> encodings = new ArrayList<byte[]>();\n X509Certificate[] chain = KeyChain.getCertificateChain(getApplicationContext(), mCurrentProfile.getUserCertificateAlias());\n if (chain == null || chain.length == 0) {\n return null;\n }\n for (X509Certificate cert : chain) {\n encodings.add(cert.getEncoded());\n }\n return encodings.toArray(new byte[encodings.size()][]);\n }",
"void setSolicitarCredito(com.soa.SolicitarCreditoDocument.SolicitarCredito solicitarCredito);",
"public CompletionStage<Result> verify()\n {\n IRequestValidator requestValidator=new CertVerifyRequestValidator();\n return handleRequest(request(),requestValidator, JsonKeys.CERT_VERIFY);\n }",
"public void verifyServerCertificates(boolean yesno);",
"public EnviarXml(String caminhoCacerts, String senhaCertificadoA3) {\n\t\ttry {\n\t\t\tcertificado = EsocialUtils.getCertificadoA3(senhaCertificadoA3);\n\t\t\tEsocialUtils.inicializarCertificadSocketDinamico(caminhoCacerts, certificado);\n\t\t} catch (CertificadoException | FileNotFoundException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"private static void copyrightChoicesIntoContext(SessionState state, Context context)\n\t{\n\t\tboolean usingCreativeCommons = state.getAttribute(STATE_USING_CREATIVE_COMMONS) != null && state.getAttribute(STATE_USING_CREATIVE_COMMONS).equals(Boolean.TRUE.toString());\t\t\n\t\t\n\t\tif(usingCreativeCommons)\n\t\t{\n\t\t\t\n\t\t\tString ccOwnershipLabel = \"Who created this resource?\";\n\t\t\tList ccOwnershipList = new Vector();\n\t\t\tccOwnershipList.add(\"-- Select --\");\n\t\t\tccOwnershipList.add(\"I created this resource\");\n\t\t\tccOwnershipList.add(\"Someone else created this resource\");\n\t\t\t\n\t\t\tString ccMyGrantLabel = \"Terms of use\";\n\t\t\tList ccMyGrantOptions = new Vector();\n\t\t\tccMyGrantOptions.add(\"-- Select --\");\n\t\t\tccMyGrantOptions.add(\"Use my copyright\");\n\t\t\tccMyGrantOptions.add(\"Use Creative Commons License\");\n\t\t\tccMyGrantOptions.add(\"Use Public Domain Dedication\");\n\t\t\t\n\t\t\tString ccCommercialLabel = \"Allow commercial use?\";\n\t\t\tList ccCommercialList = new Vector();\n\t\t\tccCommercialList.add(\"Yes\");\n\t\t\tccCommercialList.add(\"No\");\n\t\t\t\n\t\t\tString ccModificationLabel = \"Allow Modifications?\";\n\t\t\tList ccModificationList = new Vector();\n\t\t\tccModificationList.add(\"Yes\");\n\t\t\tccModificationList.add(\"Yes, share alike\");\n\t\t\tccModificationList.add(\"No\");\n\t\t\t\n\t\t\tString ccOtherGrantLabel = \"Terms of use\";\n\t\t\tList ccOtherGrantList = new Vector();\n\t\t\tccOtherGrantList.add(\"Subject to fair-use exception\");\n\t\t\tccOtherGrantList.add(\"Public domain (created before copyright law applied)\");\n\t\t\tccOtherGrantList.add(\"Public domain (copyright has expired)\");\n\t\t\tccOtherGrantList.add(\"Public domain (government document not subject to copyright)\");\n\t\t\t\n\t\t\tString ccRightsYear = \"Year\";\n\t\t\tString ccRightsOwner = \"Copyright owner\";\n\t\t\t\n\t\t\tString ccAcknowledgeLabel = \"Require users to acknowledge author's rights before access?\";\n\t\t\tList ccAcknowledgeList = new Vector();\n\t\t\tccAcknowledgeList.add(\"Yes\");\n\t\t\tccAcknowledgeList.add(\"No\");\n\t\t\t\n\t\t\tString ccInfoUrl = \"\";\n\t\t\t\n\t\t\tint year = TimeService.newTime().breakdownLocal().getYear();\n\t\t\tString username = UserDirectoryService.getCurrentUser().getDisplayName(); \n\n\t\t\tcontext.put(\"usingCreativeCommons\", Boolean.TRUE);\n\t\t\tcontext.put(\"ccOwnershipLabel\", ccOwnershipLabel);\n\t\t\tcontext.put(\"ccOwnershipList\", ccOwnershipList);\n\t\t\tcontext.put(\"ccMyGrantLabel\", ccMyGrantLabel);\n\t\t\tcontext.put(\"ccMyGrantOptions\", ccMyGrantOptions);\n\t\t\tcontext.put(\"ccCommercialLabel\", ccCommercialLabel);\n\t\t\tcontext.put(\"ccCommercialList\", ccCommercialList);\n\t\t\tcontext.put(\"ccModificationLabel\", ccModificationLabel);\n\t\t\tcontext.put(\"ccModificationList\", ccModificationList);\n\t\t\tcontext.put(\"ccOtherGrantLabel\", ccOtherGrantLabel);\n\t\t\tcontext.put(\"ccOtherGrantList\", ccOtherGrantList);\n\t\t\tcontext.put(\"ccRightsYear\", ccRightsYear);\n\t\t\tcontext.put(\"ccRightsOwner\", ccRightsOwner);\n\t\t\tcontext.put(\"ccAcknowledgeLabel\", ccAcknowledgeLabel);\n\t\t\tcontext.put(\"ccAcknowledgeList\", ccAcknowledgeList);\n\t\t\tcontext.put(\"ccInfoUrl\", ccInfoUrl);\n\t\t\tcontext.put(\"ccThisYear\", Integer.toString(year));\n\t\t\tcontext.put(\"ccThisUser\", username);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//copyright\n\t\t\tif (state.getAttribute(COPYRIGHT_FAIRUSE_URL) != null)\n\t\t\t{\n\t\t\t\tcontext.put(\"fairuseurl\", state.getAttribute(COPYRIGHT_FAIRUSE_URL));\n\t\t\t}\n\t\t\tif (state.getAttribute(NEW_COPYRIGHT_INPUT) != null)\n\t\t\t{\n\t\t\t\tcontext.put(\"newcopyrightinput\", state.getAttribute(NEW_COPYRIGHT_INPUT));\n\t\t\t}\n\t\n\t\t\tif (state.getAttribute(COPYRIGHT_TYPES) != null)\n\t\t\t{\n\t\t\t\tList copyrightTypes = (List) state.getAttribute(COPYRIGHT_TYPES);\n\t\t\t\tcontext.put(\"copyrightTypes\", copyrightTypes);\n\t\t\t\tcontext.put(\"copyrightTypesSize\", new Integer(copyrightTypes.size() - 1));\n\t\t\t\tcontext.put(\"USE_THIS_COPYRIGHT\", copyrightTypes.get(copyrightTypes.size() - 1));\n\t\t\t}\n\t\t}\n\t\t\n\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\t\tif(preventPublicDisplay == null)\n\t\t{\n\t\t\tpreventPublicDisplay = Boolean.FALSE;\n\t\t\tstate.setAttribute(STATE_PREVENT_PUBLIC_DISPLAY, preventPublicDisplay);\n\t\t}\n\t\tcontext.put(\"preventPublicDisplay\", preventPublicDisplay);\n\t\t\n\t}",
"public void importCA(File certfile){\n try {\n File keystoreFile = new File(archivo);\n \n //copia .cer -> formato manipulacion\n FileInputStream fis = new FileInputStream(certfile);\n DataInputStream dis = new DataInputStream(fis);\n byte[] bytes = new byte[dis.available()];\n dis.readFully(bytes);\n ByteArrayInputStream bais = new ByteArrayInputStream(bytes);\n bais.close();\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n Certificate certs = cf.generateCertificate(bais);\n //System.out.println(certs.toString());\n //inic keystore\n FileInputStream newib = new FileInputStream(keystoreFile);\n KeyStore keystore = KeyStore.getInstance(INSTANCE);\n keystore.load(newib,ksPass );\n String alias = (String)keystore.aliases().nextElement();\n newib.close();\n \n //recupero el array de certificado del keystore generado para CA\n Certificate[] certChain = keystore.getCertificateChain(alias);\n certChain[0]= certs; //inserto el certificado entregado por CA\n //LOG.info(\"Inserto certifica CA: \"+certChain[0].toString());\n //recupero la clave privada para generar la nueva entrada\n Key pk = (PrivateKey)keystore.getKey(alias, ksPass); \n keystore.setKeyEntry(alias, pk, ksPass, certChain);\n LOG.info(\"Keystore actualizado: [OK]\");\n \n FileOutputStream fos = new FileOutputStream(keystoreFile);\n keystore.store(fos,ksPass);\n fos.close(); \n \n } catch (FileNotFoundException ex) {\n LOG.error(\"Error - no se encuentra el archivo\",ex);\n } catch (IOException | NoSuchAlgorithmException | CertificateException | KeyStoreException ex) {\n LOG.error(\"Error con el certificado\",ex);\n } catch (UnrecoverableKeyException ex) {\n LOG.error(ex);\n }\n }",
"CertprofileQa getCertprofile(String certprofileName);",
"public static void subscribeCourse(long idUtente, long idCorso) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.parameters = new Object[] { idUtente, idCorso };\n\t\t\trp.type = RequestType.SUBSCRIVE_COURSE;\n\t\t\tsend(rp);\n\t\t} catch (Exception e) {\n\t\t\tLogger.WriteError(e, \"ClientConnection\", \"SUBSCRIVE_COURSE\");\n\t\t}\n\t}",
"public String getUserCertificatesPath();",
"public String getConsignee() {\n return consignee;\n }",
"public String getConsignee() {\n return consignee;\n }",
"private void createSSLContext() throws Exception {\n\n char[] passphrase = \"passphrase\".toCharArray();\n\n KeyStore ks = KeyStore.getInstance(\"JKS\");\n ks.load(new FileInputStream(\"testkeys\"), passphrase);\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"SunX509\");\n kmf.init(ks, passphrase);\n\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(\"SunX509\");\n tmf.init(ks);\n\n sslContext = SSLContext.getInstance(\"TLS\");\n sslContext.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null);\n }",
"private boolean isAuthorized2Subscribe(String addressMail)\n\tthrows IOException\n {\n\tString addressRead=null;\n\tBufferedReader fic = \n\t new BufferedReader(new FileReader(this.appliPath+\"conf/teacher_list.txt\"));\n\twhile( ((addressRead = fic.readLine())!=null) && (!addressRead.equals(addressMail)) );\n\tfic.close();\n\tif(addressRead==null)return false;\n\t\n\treturn true;\n }",
"public Twitter() {\n \n }",
"private void ComprobarCredenciales(SharedPreferences preferencias){\n\n if(preferencias.getBoolean(\"autenticado\", false)){\n //Toast.makeText(this, \"Autenticado\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(this, ContentActivity.class));\n }\n\n }",
"@Test\n public void test01ConfRespSignedByRecepient() throws Exception {\n log.trace(\">test01ConfRespSignedByRecepient\");\n\n this.cmpConfiguration.setResponseProtection(cmpAlias, \"signature\");\n this.cmpConfiguration.setCMPDefaultCA(cmpAlias, \"\");\n this.globalConfigurationSession.saveConfiguration(ADMIN, this.cmpConfiguration);\n\n byte[] nonce = CmpMessageHelper.createSenderNonce();\n byte[] transid = CmpMessageHelper.createSenderNonce();\n\n // Send a confirm message to the CA\n String hash = \"foo123\";\n PKIMessage confirm = genCertConfirm(userDN, this.cacert, nonce, transid, hash, 0, null);\n assertNotNull(confirm);\n ByteArrayOutputStream bao = new ByteArrayOutputStream();\n ASN1OutputStream dOut = ASN1OutputStream.create(bao, ASN1Encoding.DER);\n dOut.writeObject(confirm);\n byte[] ba = bao.toByteArray();\n // Send request and receive response\n byte[] resp = sendCmpHttp(ba, 200, cmpAlias);\n checkCmpResponseGeneral(resp, this.testx509ca.getSubjectDN(), userDN, this.cacert, nonce, transid, true, null, PKCSObjectIdentifiers.sha256WithRSAEncryption.getId());\n checkCmpPKIConfirmMessage(userDN, this.cacert, resp);\n\n log.trace(\"<test01ConfRespSignedByRecepient\");\n }",
"public CTwitterPut() {\n//\t\trequestAccessToken();\n\t}",
"private void runCach() throws GeneralSecurityException, IOException {\n byte[] dig = getDig(); // Get the digest of the remote WPC Certificate Chain\n WpcCrtChn chn = getChn(dig); // Search WPC Certificate Chain in the cache\n if (chn == null) { // No WPC Certificate Chain found in the cache?\n chn = getChn(); // Request the WPC Certificate Chain\n mCach.add(chn); // Add Certificate Chain to Certificate cache\n }\n mCom.setChn(chn); // Register used WPC Cartificate chain\n ByteBuffer msg = getAth(); // Create CHALLENGE request\n byte[] res = sndAth(msg); // Send the CHALLENGE Request message\n dig = WpcAthRsp.getSigDig(chn.getDig(), msg.array(), res); // Get the Digest for the challenge\n byte[] sig = Arrays.copyOfRange(res, WpcAthRsp.LEN_ATH, res.length); // Get the signature from the CHALLENGE_AUTH Response\n verify(dig, sig, chn.getPu()); // Verify the signature\n }",
"private void composeTweet() {\n if(NetworkUtils.isConnectedToNetwork((ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE)) == false) {\n Toast.makeText(this.getApplicationContext(), \"Please check your network connection!\", Toast.LENGTH_LONG).show();\n return;\n }\n Intent i = new Intent(this, ComposeActivity.class);\n startActivityForResult(i, REQ_CODE_COMPOSE_TWEET);\n }",
"public String requestCert(String serialNumber){\n Certificate cert = keyStoreReader.readCertificate(keystoreFile, keystorePassword, serialNumber);\n return cert.toString();\n }",
"@Override\nprotected Void doInBackground(Void... params){\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public java.security.cert.X509Certificate[] getAcceptedIssuers() {\n return null;\n }\n\n public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }\n\n public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {\n }\n } };\n\n // Install the all-trusting trust manager\n try {\n SSLContext sc = SSLContext.getInstance(\"SSL\");\n sc.init(null, trustAllCerts, new java.security.SecureRandom());\n HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n // Your code ...\n URL url = null;\n HttpsURLConnection conn = null;\n try {\n url = new URL(\"https://example.com\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n // ...\n}"
] | [
"0.5872696",
"0.5588093",
"0.54860216",
"0.5295017",
"0.5291987",
"0.5269178",
"0.5231261",
"0.5230404",
"0.5220373",
"0.51750135",
"0.51389754",
"0.5090379",
"0.50570047",
"0.4990562",
"0.4984492",
"0.49684584",
"0.49684584",
"0.49567136",
"0.49560887",
"0.49536005",
"0.4949086",
"0.49354368",
"0.49320287",
"0.49143022",
"0.4826907",
"0.48149213",
"0.48106146",
"0.47957376",
"0.4791462",
"0.4773872",
"0.47546765",
"0.4741978",
"0.473656",
"0.47296512",
"0.47205716",
"0.47153538",
"0.47132564",
"0.46997163",
"0.4698808",
"0.46800143",
"0.46618384",
"0.4659221",
"0.46473166",
"0.4646898",
"0.46418396",
"0.46410894",
"0.4638464",
"0.4633648",
"0.46239367",
"0.46207273",
"0.46168047",
"0.4614217",
"0.4603293",
"0.45984542",
"0.45973626",
"0.45949218",
"0.45945334",
"0.45871487",
"0.45825285",
"0.45788842",
"0.45738748",
"0.45725605",
"0.4567682",
"0.45661542",
"0.45580134",
"0.45409444",
"0.4540557",
"0.45253617",
"0.45244363",
"0.4524235",
"0.4521891",
"0.4516063",
"0.4515119",
"0.451121",
"0.45080093",
"0.4507627",
"0.45066184",
"0.45059538",
"0.45042613",
"0.44956994",
"0.44896317",
"0.44879195",
"0.44876876",
"0.44870576",
"0.44825956",
"0.44802108",
"0.44766364",
"0.44742346",
"0.44692308",
"0.4467903",
"0.4467903",
"0.44652086",
"0.44613546",
"0.44567847",
"0.44503516",
"0.44489297",
"0.44477403",
"0.44394064",
"0.4437917",
"0.44278356",
"0.442645"
] | 0.0 | -1 |
Get the bootstrap environment including system environemtn and system properties | public static ConfigurableEnvironment getBootstrapEnvironment(ResourceLoader resourceLoader, String[] profiles) {
StandardEnvironment environment = new StandardEnvironment();
environment.setActiveProfiles(profiles);
List<String> locations = Arrays.stream(profiles)
.map(profile -> ResourceUtils.CLASSPATH_URL_PREFIX + "bootstrap-" + profile + ".properties")
.collect(Collectors.toList());
locations.add(ResourceUtils.CLASSPATH_URL_PREFIX + "bootstrap.properties");
ResourceLoader loader = resourceLoader == null ? new DefaultResourceLoader() : resourceLoader;
locations.forEach(location -> addPropertiesFileToEnvironment(environment, loader, location));
return environment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Properties getEnvironment();",
"Properties getEnvironment();",
"public String getEnvironment(){\n\n String env = null;\n try {\n env = System.getProperty(\"env\");\n if(env !=null)\n return env;\n else\n return prop.getProperty(ENVIRONMENT_KEY);\n\n }catch(Exception e)\n {\n return prop.getProperty(ENVIRONMENT_KEY);\n }\n }",
"String getEnvironment();",
"public Map<String, String> getEnvironment();",
"public static ApplicationEnvironment getEnvironment (){\n\t\treturn _applicationEnvironment;\n\t}",
"public synchronized Map<String, String> getenv() {\n return System.getenv();\n }",
"Environment createEnvironment();",
"Environment createEnvironment();",
"public String getEnvironment() {\n return environment;\n }",
"private int getEnvironment() {\n\n if (ServiceBaseGlobal.env != null) {\n return ServiceBaseGlobal.env.getValue();\n }\n return ProjectUtil.Environment.dev.getValue();\n }",
"@Override\n\tpublic Environment getEnvironment() {\n\t\tif (environment == null) {\n\t\t\tenvironment = new StandardEnvironment();\n\t\t}\n\t\treturn environment;\n\t}",
"public String getEnv() {\n\n return env;\n }",
"EnvironmentLoader getEnvironmentLoader();",
"public Map<String, String> getEnv()\n {\n return env;\n }",
"public String getSystemEnv() {\n return \"\";\n }",
"@Override\n\tpublic String getEnvironmentVars() {\n\t\treturn model.getEnvironmentVars();\n\t}",
"public Environment getEnvironment() {\n \n \t\treturn this.environment;\n \t}",
"private static String getEnvironVar(String env) {\r\n \treturn System.getenv(env);\r\n }",
"public String getContainerEnv() {\n return containerEnv;\n }",
"public Environment getEnvironment()\n\t{\n\t\treturn environment;\n\t}",
"private static Map<String,String> getEnvVars() {\n return new TreeMap<>(System.getenv());\n }",
"public TreeMap<String,String> \n getEnvironment()\n {\n return pEnvironment;\n }",
"public String getEnvironment(String env) {\n\t\treturn environment.get(env);\n\t}",
"public FxEnvironment getEnvironment() {\n return CacheAdmin.getFilteredEnvironment();\n }",
"public org.eclipse.stardust.engine.api.runtime.RuntimeEnvironmentInfo\n getRuntimeEnvironmentInfo()\n throws org.eclipse.stardust.common.error.WorkflowException;",
"public Environment environment()\n {\n return theEnv;\n }",
"@Override\n\tpublic Environment<String, V> getEnvironment() {\n\t\treturn null;\n\t}",
"private static Map<String, Environment> getEnvironments() {\n Map<String, Environment> environmentMap = new HashMap<String, Environment>();\n Environment prodEnv = new Environment();\n prodEnv.setName(PROD_1);\n prodEnv.setPassword(PROD_1_PASSWORD);\n\n Environment sandBoxEnv = new Environment();\n sandBoxEnv.setName(SND_1);\n sandBoxEnv.setPassword(SND_1_PASSWORD);\n\n environmentMap.put(PROD_1, prodEnv);\n environmentMap.put(SND_1, sandBoxEnv);\n return environmentMap;\n }",
"public static String getEnvironmentVariable(String name) {\n return System.getenv(name);\n }",
"public synchronized Map<String, String> getEnvironment() throws Fault {\n if (env == null) {\n // reconstitute environment\n // this may result in a Fault, which is okay\n reload();\n }\n return PropertyArray.getProperties(env);\n }",
"public PythonInterpreter getEnvironment(String name) {return environments.get(name);}",
"public String getEnvironmentName() {\n return this.environmentName;\n }",
"@Override\n public Environment getEnvironment(int w, int h)\n {\n return master.getEnvironment(w, h);\n }",
"public static TestEnvironment getEnvironment(String name) {\n return (TestEnvironment) envMap.get(name);\n }",
"public Env getEnv() {\n\t\treturn _env;\n\t}",
"private static String mode() {\n return System.getProperty(SYSTEM_PROPERTY_NAME, System.getenv(ENV_VARIABLE_NAME));\n }",
"public String[] getEnvironmentParams()\r\n\t{\r\n\t\treturn environmentParams;\r\n\t}",
"public java.lang.String getEnv(int index) {\n return env_.get(index);\n }",
"java.lang.String getEnv(int index);",
"public java.lang.String getEnv(int index) {\n return env_.get(index);\n }",
"private static Properties setup() {\n Properties props = System.getProperties();\n try {\n props.load(new FileInputStream(new File(\"src/config.properties\")));\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n return props;\n }",
"public Map<String, String> environmentVariables() {\n return this.environmentVariables;\n }",
"public Map<String, String> getEnv(IProject project) throws CoreException;",
"public abstract Map<String, String> getEnvironment(NIOWorker nw);",
"public int[][] getEnvironment() {\n return this.environment;\n }",
"protected String getenv(String varname) {\n\t\t//return System.getProperty(varname);\n\t\treturn \"\"; //TODO allow virtual system variables for each computer, that are remembered on restart\n\t}",
"protected static Optional<String> env(String name) {\n return Optional.ofNullable(System.getenv(name));\n }",
"protected HashSet<String> getEnvironmentDependentSystems() {\r\n\t\tif (environmentDependentSystems==null) {\r\n\t\t\tenvironmentDependentSystems = new HashSet<String>();\r\n\t\t}\r\n\t\treturn environmentDependentSystems;\r\n\t}",
"public static BasicBootstrap getBootstrap()\n {\n return Ejb3McRegistrarTestCase.bootstrap;\n }",
"private Map<String, String> getTestProcessEnvironment() {\n Map<String, String> env = new HashMap<>();\n env.put(\"TESTSERVICE_AUTH_TYPE\", \"noAuth\");\n return env;\n }",
"public static Properties getEnvVars() throws Throwable {\n Process p = null;\n Properties envVars = new Properties();\n Runtime r = Runtime.getRuntime();\n String OS = System.getProperty(\"os.name\").toLowerCase();\n if (OS.indexOf(\"windows 9\") > -1) {\n p = r.exec(\"command.com /c set\");\n } else if ((OS.indexOf(\"nt\") > -1) || (OS.indexOf(\"windows 2000\") > -1)\n || (OS.indexOf(\"windows xp\") > -1)) {\n p = r.exec(\"cmd.exe /c set\");\n } else {\n // our last hope, we assume Unix\n p = r.exec(\"env\");\n }\n try (BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()))) {\n String line;\n while ((line = br.readLine()) != null) {\n int idx = line.indexOf('=');\n if (idx < 0)\n continue;\n String key = line.substring(0, idx);\n String value = (idx < line.length() - 1) ? line.substring(idx + 1) : \"\";\n envVars.setProperty(key, value);\n }\n }\n // do nothing\n return envVars;\n }",
"EnvironmentmmFactory getEnvironmentmmFactory();",
"public EnvironmentFrame getEnvironmentFrame() {\n\t\treturn myEnvFrame;\n\t}",
"public String getDefaultEnvironmentVariableName() {\n\t\t\tlogger.debug(\"### DescriptorImpl::getDefaultEnvironmentVariableName\");\n\t\t\treturn SemanticVersionBuildWrapper.DEFAULT_ENVIRONMENT_VARIABLE_NAME;\n\t\t}",
"String getEnvironmentProperty(String key);",
"public static String extractEnvironment(String string) {\n\t\t\n\t\tlogger.trace(\"Extracting environment from service name: {}\" , string);\n\t\t\n\t\tif(string.length() < 3 ){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tString env = string.substring(0,3);\n\t\tif (env.equalsIgnoreCase(\"DEV\") || env.equalsIgnoreCase(\"UAT\") || env.equalsIgnoreCase(\"LAB\")){\n\t\t\treturn env;\n\t\t}\n\t\t\n\t\tif(string.length() < 4 ){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tenv = string.substring(0,4);\n\t\tif (env.equalsIgnoreCase(\"PROD\") || env.equalsIgnoreCase(\"TEST\") || env.equalsIgnoreCase(\"PERF\")){\n\t\t\treturn env;\n\t\t}\n\t\treturn null;\n\t}",
"private static void loadTestEnv() {\n\n\t\tPropertyReader reader = new PropertyReader(GlobalContext.getAppDir(), Constants.FILENAME_TESTENV);\n\n\t\tTestEnv env = new TestEnv();\n\t\tenv.setDefaultHostName(reader.getProperty(Constants.DEFAULT_HOST_NAME));\n\t\tenv.setDefaultHostOS(reader.getProperty(Constants.DEFAULT_HOST_OS));\n\t\tenv.setDefaultCredentials(reader.getProperty(Constants.DEFAULT_CREDENTIALS));\n\t\tenv.setDefaultBrowser(reader.getProperty(Constants.DEFAULT_BROWSER));\n\t\tenv.setAppServer(reader.getProperty(Constants.APP_SERVER));\n\t\tenv.setDatabaseServer(reader.getProperty(Constants.DATABASE_SERVER));\n\t\tenv.setEmailReceipients(reader.getProperty(Constants.EMAIL_RECEIPIENTS));\n\t\tenv.setEmailSender(reader.getProperty(Constants.EMAIL_SENDER));\n\n\t\t// sets to global context.\n\t\tGlobalContext.setTestEnv(env);\n\t}",
"public static LinkedHashMap<String, String> getServerEnvi() {\n return _m_server_envi;\n }",
"public String getDevelopmentToolingandEnvironment() {\n return developmentToolingandEnvironment;\n }",
"public Continuous2D getEnvironment() {\n return environment;\n }",
"public static void read_Environment_Variable_for_Web() {\n\t\tProperties prop = new Properties();\n\t\tInputStream input = null;\n\n\t\ttry {\n\n\t\t\tinput = new FileInputStream(\"/Environment File/environmentVariableForWebProduction2.properties\");\n\n\t\t\t// load a properties file\n\t\t\tprop.load(input);\n\n\t\t\t// get the property value and print it out\n\t\t Map<String, Object> map = new HashMap<>();\n\t\t\tfor (Entry<Object, Object> entry : prop.entrySet()) {\n\t\t\t\tmap.put((String) entry.getKey(), entry.getValue());\n\t\t\t}\n\t\t\tEnvironmentVariablesForWeb.setEnvironmentPropertyMap(map);\n\t\t\t/*EnvironmentVariables.PLATFORM_NAME = prop.getProperty(\"PLATFORM_NAME\");\n\t\t\tEnvironmentVariables.VERSION_NAME = prop.getProperty(\"VERSION_NAME\");\n\t\t\tEnvironmentVariables.DEVICE_NAME = prop.getProperty(\"DEVICE_NAME\");\n\t\t\tSystem.out.println(EnvironmentVariables.PLATFORM_NAME);\n\t\t\tSystem.out.println(EnvironmentVariables.VERSION_NAME);\n\t\t\tSystem.out.println(EnvironmentVariables.DEVICE_NAME);*/\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tif (input != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t }",
"@SuppressWarnings(\"unchecked\")\n\tprotected final SituatedEnvironment<?,?,?,?,IT> getEnvironment() {\n\t\tEnvironment env = Kernel.getSingleton().getEnvironment();\n\t\tif (env instanceof SituatedEnvironment) {\n\t\t\treturn (SituatedEnvironment<?,?,?,?,IT>)env;\n\t\t}\n\t\treturn null;\n\t}",
"@SuppressWarnings(\"unchecked\")\n public static Hashtable<?, ?> getInitialEnvironment(Hashtable<?, ?> env) throws NamingException {\n String[] props = VersionHelper.PROPS; // system/applet properties\n if (env == null) {\n env = new Hashtable<>(11);\n }\n Object applet = env.get(Context.APPLET);\n\n // Merge property values from env param, applet params, and system\n // properties. The first value wins: there's no concatenation of\n // colon-separated lists.\n // Read system properties by first trying System.getProperties(),\n // and then trying System.getProperty() if that fails. The former\n // is more efficient due to fewer permission checks.\n //\n String[] jndiSysProps = helper.getJndiProperties();\n for (int i = 0; i < props.length; i++) {\n Object val = env.get(props[i]);\n if (val == null) {\n if (applet != null) {\n val = AppletParameter.get(applet, props[i]);\n }\n if (val == null) {\n // Read system property.\n val = (jndiSysProps != null) ? jndiSysProps[i] : helper.getJndiProperty(i);\n }\n if (val != null) {\n ((Hashtable<String, Object>) env).put(props[i], val);\n }\n }\n }\n\n // Return without merging if application resource files lookup\n // is disabled.\n String disableAppRes = (String) env.get(DISABLE_APP_RESOURCE_FILES);\n if (disableAppRes != null && disableAppRes.equalsIgnoreCase(\"true\")) {\n return env;\n }\n\n // Merge the above with the values read from all application\n // resource files. Colon-separated lists are concatenated.\n mergeTables((Hashtable<Object, Object>) env, getApplicationResources());\n return env;\n }",
"java.util.List<java.lang.String>\n getEnvList();",
"public Map<String, String> getEnvironmentVariables(\n ExecutionContext context,\n ExecutionScript script) throws InterruptedException, IOException {\n return environmentVariables;\n }",
"public com.google.protobuf.ByteString\n getEnvBytes(int index) {\n return env_.getByteString(index);\n }",
"public com.google.protobuf.ByteString\n getEnvBytes(int index) {\n return env_.getByteString(index);\n }",
"public static void printSystemVariables() {\n\t\tMap<String, String> env = System.getenv();\n\t\tfor (Map.Entry<String, String> entry : env.entrySet()) {\n\t\t\tSystem.out.println(entry.getKey() + \" : \" + entry.getValue());\n\t\t}\n\t}",
"@Override\n public Environment getEnvironment(XYCoord coord)\n {\n return master.getEnvironment(coord);\n }",
"@PostConstruct\n\tpublic void init() {\n\t\tEnvironmentUtils.setEnvironment(env);\n\t}",
"public Map<String, String> getEnv(URI uri) throws CoreException;",
"private Map<String, Object> collectBzlGlobals() {\n ImmutableMap.Builder<String, Object> envBuilder = ImmutableMap.builder();\n TopLevelBootstrap topLevelBootstrap =\n new TopLevelBootstrap(\n new FakeBuildApiGlobals(),\n new FakeSkylarkAttrApi(),\n new FakeSkylarkCommandLineApi(),\n new FakeSkylarkNativeModuleApi(),\n new FakeSkylarkRuleFunctionsApi(Lists.newArrayList(), Lists.newArrayList()),\n new FakeStructProviderApi(),\n new FakeOutputGroupInfoProvider(),\n new FakeActionsInfoProvider(),\n new FakeDefaultInfoProvider());\n AndroidBootstrap androidBootstrap =\n new AndroidBootstrap(\n new FakeAndroidSkylarkCommon(),\n new FakeApkInfoProvider(),\n new FakeAndroidInstrumentationInfoProvider(),\n new FakeAndroidDeviceBrokerInfoProvider(),\n new FakeAndroidResourcesInfoProvider(),\n new FakeAndroidNativeLibsInfoProvider());\n AppleBootstrap appleBootstrap = new AppleBootstrap(new FakeAppleCommon());\n ConfigBootstrap configBootstrap =\n new ConfigBootstrap(new FakeConfigSkylarkCommon(), new FakeConfigApi(),\n new FakeConfigGlobalLibrary());\n CcBootstrap ccBootstrap = new CcBootstrap(new FakeCcModule());\n JavaBootstrap javaBootstrap =\n new JavaBootstrap(\n new FakeJavaCommon(),\n new FakeJavaInfoProvider(),\n new FakeJavaProtoCommon(),\n new FakeJavaCcLinkParamsProvider.Provider());\n PlatformBootstrap platformBootstrap = new PlatformBootstrap(new FakePlatformCommon());\n PyBootstrap pyBootstrap =\n new PyBootstrap(new FakePyInfoProvider(), new FakePyRuntimeInfoProvider());\n RepositoryBootstrap repositoryBootstrap =\n new RepositoryBootstrap(new FakeRepositoryModule(Lists.newArrayList()));\n TestingBootstrap testingBootstrap =\n new TestingBootstrap(\n new FakeTestingModule(),\n new FakeCoverageCommon(),\n new FakeAnalysisFailureInfoProvider(),\n new FakeAnalysisTestResultInfoProvider());\n\n topLevelBootstrap.addBindingsToBuilder(envBuilder);\n androidBootstrap.addBindingsToBuilder(envBuilder);\n appleBootstrap.addBindingsToBuilder(envBuilder);\n ccBootstrap.addBindingsToBuilder(envBuilder);\n configBootstrap.addBindingsToBuilder(envBuilder);\n javaBootstrap.addBindingsToBuilder(envBuilder);\n platformBootstrap.addBindingsToBuilder(envBuilder);\n pyBootstrap.addBindingsToBuilder(envBuilder);\n repositoryBootstrap.addBindingsToBuilder(envBuilder);\n testingBootstrap.addBindingsToBuilder(envBuilder);\n\n return envBuilder.build();\n }",
"File prepareEnvironment();",
"public Environment getActorEnvironment() {\r\n\t\treturn actorEnv;\r\n\t}",
"public IEnvVarBuildPath[] getEnvVarBuildPaths();",
"Environment getEnvironment() {\n return recordingEnv;\n }",
"public void intServerEnv() {\n\t\tServerUtils serverUtils = new ServerUtils();\n\t\tTouchstoneParsers parsers = new TouchstoneParsers();\n\n\t\tString CONFIGFILE = psoResourcePkg + \"/configs/server.properties\";\n\t\tString testConfigFile = ServerUtils.class.getResource(CONFIGFILE).getFile();\n\n\t\tHashMap<String, HashMap<String, String>> configPropsMap = parsers.readPropsFile(new File(testConfigFile));\n\t\thostIP = (configPropsMap.get(\"URL_PARAMS\").get(\"LOCAL_ENV\").equalsIgnoreCase(\"yes\") ? \"localhost\" : serverUtils.getHostIp());\n\n\t\t// JDBC driver name and database URL\n\t\tJDBC_DRIVER=\"com.mysql.jdbc.Driver\";\n\t\tDB_URL=\"jdbc:mysql://\" + hostIP + \"/psotest\";\n\n\t\t// Database credentials\n\t\tUSERID = configPropsMap.get(\"SERVER_ENV\").get(\"USERID\");\n\t\tPASSWORD = configPropsMap.get(\"SERVER_ENV\").get(\"PASSWORD\");\n\n\t\t// Database tables:\n\t\tCLICKS_TABLE = configPropsMap.get(\"SERVER_ENV\").get(\"CLICKS_TABLE\");\n\t\tBEACON_TABLE = configPropsMap.get(\"SERVER_ENV\").get(\"BEACON_TABLE\");\n\n\t}",
"public static KapConfig getInstanceFromEnv() {\n return wrap(KylinConfig.getInstanceFromEnv());\n }",
"public int getEnvironmentId() {\r\n\t\tif (environmentId != null) {\r\n\t\t\treturn environmentId;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tJSONObject response = getJSonResponse(Unirest.get(url + NAMED_ENVIRONMENT_API_URL)\r\n\t\t\t\t\t.queryString(\"name\", SeleniumTestsContextManager.getThreadContext().getTestEnv()));\r\n\t\t\tenvironmentId = response.getInt(\"id\");\r\n\t\t\treturn environmentId;\r\n\t\t} catch (UnirestException e) {\r\n\t\t\tthrow new ConfigurationException(String.format(\"Environment %s does not exist in variable server, please create it or use an other one\", SeleniumTestsContextManager.getThreadContext().getTestEnv()));\r\n\t\t}\r\n\t}",
"public static TrackableEnvironment createEnvironment() {\n return null;\n }",
"private void setupEnvironment(Execute exe) {\r\n String[] environment = env.getVariables();\r\n if (environment != null) {\r\n for (int i = 0; i < environment.length; i++) {\r\n log(\"Setting environment variable: \" + environment[i], Project.MSG_VERBOSE);\r\n }\r\n }\r\n exe.setNewenvironment(newEnvironment);\r\n exe.setEnvironment(environment);\r\n }",
"public int getEnvCount() {\n return env_.size();\n }",
"@Before\n public void setupEnvironment() {\n TestEnvironment testEnvironment;\n switch (mode) {\n case CLUSTER:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().disableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case CLUSTER_OBJECT_REUSE:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().enableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case COLLECTION:\n new CollectionTestEnvironment().setAsContext();\n break;\n }\n }",
"public CommandlineJava.SysProperties getSysProperties() {\r\n return getCommandLine().getSystemProperties();\r\n }",
"public com.google.protobuf.ProtocolStringList\n getEnvList() {\n return env_;\n }",
"public boolean envShouldExist() {\n return envShouldExist;\n }",
"public String getWebEnv(int i){\n return this.webEnvs.get(i);\n }",
"public String getDevelopmentToolingandEnvironmentPreconditions() {\n return developmentToolingandEnvironmentPreconditions;\n }",
"public int getEnvCount() {\n return env_.size();\n }",
"public static Map<String, String> getenv(String consumer) {\n return new AccessTrackingEnvMap((key, value) -> envVariableQueried(convertToString(key), value, consumer));\n }",
"EnvEntry createEnvEntry();",
"public static String traceCpuEnvironment() {\r\n\r\n StringWriter sw = new StringWriter();\r\n PrintWriter pw = new PrintWriter(sw);\r\n pw.println(\"General information: \");\r\n\r\n Properties p = System.getProperties();\r\n\r\n String[] split = p.toString().split(\",\");\r\n\r\n for (String string : split) {\r\n pw.println(string);\r\n }\r\n\r\n return sw.toString();\r\n }",
"public interface Environment {\n\tpublic Object resolveVariable(String name);\n\tpublic List<String> getRegisteredVariableNames();\n}",
"@Override\n public Environment getEnvironment(String organization, String uuid) throws APIManagementException {\n Environment env = APIUtil.getReadOnlyEnvironments().get(uuid);\n if (env == null) {\n env = apiMgtDAO.getEnvironment(organization, uuid);\n if (env == null) {\n String errorMessage =\n String.format(\"Failed to retrieve Environment with UUID %s. Environment not found\", uuid);\n throw new APIMgtResourceNotFoundException(errorMessage, ExceptionCodes\n .from(ExceptionCodes.GATEWAY_ENVIRONMENT_NOT_FOUND, String.format(\"UUID '%s'\", uuid)));\n }\n }\n return env;\n }",
"public static String getenv(String key, String consumer) {\n String value = System.getenv(key);\n envVariableQueried(key, value, consumer);\n return value;\n }",
"private void cmdInfoVars() throws NoSystemException {\n MSystem system = system();\n \n System.out.print(system.getVariableEnvironment());\n }",
"com.google.protobuf.ByteString\n getEnvBytes(int index);",
"@ApiModelProperty(example = \"node main.js\", required = true, value = \"Process for watchdog to fork\")\n public String getEnvProcess() {\n return envProcess;\n }",
"public Single<EnvironmentInfo> getDeviceInfo() {\n return Single.just(EnvironmentInfo.create(Build.VERSION.RELEASE,\n String.format(\"%s(%s)\", BuildConfig.VERSION_NAME,\n BuildConfig.VERSION_CODE), Build.MODEL));\n }"
] | [
"0.7881328",
"0.7881328",
"0.784955",
"0.7772044",
"0.73419636",
"0.7043866",
"0.69516045",
"0.6951044",
"0.6951044",
"0.69483334",
"0.6941335",
"0.682939",
"0.68187666",
"0.67414063",
"0.6711882",
"0.6679996",
"0.6674616",
"0.66155493",
"0.65828395",
"0.6563429",
"0.6558738",
"0.6502957",
"0.6477921",
"0.6472825",
"0.64716893",
"0.64492047",
"0.6416762",
"0.6389007",
"0.6358219",
"0.6347152",
"0.632632",
"0.6267607",
"0.626609",
"0.62418914",
"0.6181983",
"0.6174004",
"0.61732936",
"0.6128646",
"0.6104917",
"0.61001885",
"0.6064633",
"0.6060692",
"0.60578734",
"0.60555893",
"0.5989371",
"0.59778893",
"0.5972263",
"0.5970539",
"0.59567106",
"0.5906183",
"0.58736813",
"0.58488154",
"0.58425856",
"0.58387345",
"0.58054984",
"0.5801221",
"0.57843524",
"0.5783511",
"0.57774705",
"0.5769569",
"0.57499725",
"0.5736421",
"0.5708292",
"0.57076705",
"0.56880295",
"0.56744826",
"0.5665767",
"0.56631154",
"0.56614536",
"0.5640738",
"0.5631723",
"0.55590206",
"0.55458647",
"0.5545568",
"0.5527529",
"0.5510867",
"0.54897684",
"0.5466977",
"0.5449256",
"0.544004",
"0.5432391",
"0.54287356",
"0.537078",
"0.53676283",
"0.53652734",
"0.536405",
"0.5343298",
"0.533502",
"0.5332079",
"0.53299254",
"0.53104717",
"0.5303903",
"0.5292366",
"0.5288155",
"0.5276283",
"0.527253",
"0.52718365",
"0.5252529",
"0.5250905",
"0.52459717"
] | 0.6280571 | 31 |
Get a properties file and add to the environment | public static void addPropertiesFileToEnvironment(ConfigurableEnvironment environment, ResourceLoader resourceLoader, String location) {
String resolvedLocation = environment.resolveRequiredPlaceholders(location);
Resource resource = resourceLoader.getResource(resolvedLocation);
if (resource.exists()) {
try {
environment.getPropertySources().addLast(new ResourcePropertySource(resource));
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }",
"public final Properties init() throws FileNotFoundException, IOException{\n /*\n Your properties file must be in the deployed .war file in WEB-INF/classes/tokens. It is there automatically\n if you have it in Source Packages/java/tokens when you build. That is how this will read it in without defining a root location\n https://stackoverflow.com/questions/2395737/java-relative-path-of-a-file-in-a-java-web-application\n */\n String fileLoc =TinyTokenManager.class.getResource(Constant.PROPERTIES_FILE_NAME).toString();\n fileLoc = fileLoc.replace(\"file:\", \"\");\n setFileLocation(fileLoc);\n InputStream input = new FileInputStream(propFileLocation);\n props.load(input);\n input.close();\n currentAccessToken = props.getProperty(\"access_token\");\n currentRefreshToken = props.getProperty(\"refresh_token\");\n currentS3AccessID = props.getProperty(\"s3_access_id\");\n currentS3Secret = props.getProperty(\"s3_secret\");\n currentS3BucketName = props.getProperty(\"s3_bucket_name\");\n currentS3Region = Region.US_WEST_2;\n apiSetting = props.getProperty(\"open_api_cors\");\n return props;\n }",
"private static String loadPropertiesFileByEnvironement(String propertiesPath) {\n\t\t\tSystem.setProperty(\"ENV\", \"dev\");\n\t\tString env = System.getProperty(\"ENV\");\n\t\tString [] ts = propertiesPath.split(\"/\");\n\t\tfor(int i = 0;i<ts.length;i++){\n\t\t\tif(ts[i].contains(\".cfg.\")){\n\t\t\t\tts[i] = env+\"_\"+ts[i];\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tString newPathProperties = \"\";\n\t\tfor(String s : ts)\n\t\t\tnewPathProperties=newPathProperties +\"/\"+s;\n\t\tnewPathProperties = newPathProperties.substring(1,newPathProperties.length());\n\t\treturn newPathProperties;\n\t}",
"File getPropertiesFile();",
"PropertiesTask setProperties( File propertiesFile );",
"public static void loadProperties() {\n properties = new Properties();\n try {\n File f = new File(\"system.properties\");\n if (!(f.exists())) {\n OutputStream out = new FileOutputStream(f);\n }\n InputStream is = new FileInputStream(f);\n properties.load(is);\n lastDir = getLastDir();\n if (lastDir == null) {\n lastDir = \"~\";\n setLastDir(lastDir);\n }\n properties.setProperty(\"lastdir\", lastDir);\n\n // Try loading properties from the file (if found)\n properties.load(is);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@BeforeSuite\n\tpublic void propertiesFileReader(){\n\t\tif(prop == null){\t\t\t\n\t\t\tprop = new Properties();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"qa\")){ prop.load(new\n\t\t\t\t * FileInputStream(qaProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"stage\")){ prop.load(new\n\t\t\t\t * FileInputStream(stagProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"prod\")){ prop.load(new\n\t\t\t\t * FileInputStream(prodProperty)); }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"qa\")) \n\t\t\t\t\tFileUtils.copyFile(new File(qaProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"stage\"))\n\t\t\t\t\tFileUtils.copyFile(new File(stagProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"prod\"))\n\t\t\t\t\tFileUtils.copyFile(new File(prodProperty), new File(defaultProperty));\n\t\t\t\t\n\t\t\t\tprop.load(new FileInputStream(defaultProperty));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"user + pass [\"+prop.getProperty(\"username\")+\"===\"+prop.getProperty(\"password\"));\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }",
"private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }",
"private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }",
"private static Properties setup() {\n Properties props = System.getProperties();\n try {\n props.load(new FileInputStream(new File(\"src/config.properties\")));\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n return props;\n }",
"private Properties loadProperties(String propertyFile) {\n\t\toAuthProperties = new Properties();\n\t\ttry {\n\t\t\toAuthProperties.load(App.class.getResourceAsStream(propertyFile));\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to read \" + propertyFile\n\t\t\t\t\t+ \" configuration. Make sure you have a properly formatted \" + propertyFile + \" file.\");\n\t\t\treturn null;\n\t\t}\n\t\treturn oAuthProperties;\n\t}",
"private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }",
"public Properties init_prop() {\n\t\tprop = new Properties();\n\t\tString path = null;\n\t\tString env = null;\n\n\t\ttry {\n\n\t\t\tenv = System.getProperty(\"env\");\n\t\t\tSystem.out.println(\"Running on Envirnment: \" + env);\n\n\t\t\tif (env == null) {\n\t\t\t\tSystem.out.println(\"Default Envirnment: \" + \"PROD\");\n\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\n\t\t\t} else {\n\t\t\t\tswitch (env) {\n\t\t\t\tcase \"qa\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.qa.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"dev\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.dev.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"stage\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.stage.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"prod\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Please Pass the Correct Env Value...\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFileInputStream finput = new FileInputStream(path);\n\t\t\tprop.load(finput);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn prop;\n\t}",
"private void loadProperties() {\n\t\t\n\t\tString fldr = env.getProperty(\"response.folder\");\n\t\tthis.repo.setRootFolder( new File(fldr));;\n\t\t\n\t\tint nthConfigItem = 1;\n\t\twhile(true) {\n\t\t\tString seq = (\"\"+nthConfigItem++).trim();\n\t\t\t\n\t\t\tString xpathPropName = \"request.\" + seq + \".xpath\";\n\t\t\tString responseTextFilePropName = \"request.\" + seq + \".response.file\";\n\t\t\tString xpath = env.getProperty(xpathPropName);\n\t\t\tString responseTextFileName = env.getProperty(responseTextFilePropName);\n\t\t\tif (xpath!=null && !\"\".equals(xpath.trim())\n\t\t\t\t&& responseTextFileName!=null & !\"\".equals(responseTextFileName.trim())\t) {\n\t\t\t\t\n\t\t\t\trepo.addFile(xpath, responseTextFileName);\n\t\t\t\tController.logAlways(\"Loading config item [\" + seq + \"] xpath: [\" + rpad(xpath, 60) + \"] data file: [\" + rpad(responseTextFileName,25) + \"]\" );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tController.logAlways(\"End of littleMock initialization. No more properties from application.properties will be loaded because either [\" + xpathPropName + \"] or [\" + responseTextFilePropName + \"] was not found in application.properties.\");\n\t\t\t\t//parameters in application.properties must be\n\t\t\t\t//in sequential order, starting at 1.\n\t\t\t\t//When we discover the first missing one, stop looking for more.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\thumanReadableConfig = PlaybackRepository.SINGLETON.humanReadable();\n\t}",
"@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}",
"void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}",
"static void getProp() throws Exception {\r\n\r\n\t\tFileInputStream fileInputStream = new FileInputStream(\r\n\t\t\t\t\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(fileInputStream);\r\n\r\n\t\tSystem.out.println(\"By using File Input stream class: \" + properties.getProperty(\"username\"));\r\n\r\n\t}",
"private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}",
"private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }",
"static void getProps() throws Exception {\r\n\t\tFileReader fileReader = new FileReader(\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\t\tProperties properties = new Properties();\r\n\r\n\t\tproperties.load(fileReader);\r\n\r\n\t\tSystem.out.println(\"By using File Reader: \" + properties.getProperty(\"username\"));\r\n\r\n\t}",
"public static String getPropertyFromFile(String propName)throws ISException{\n InputStream inputStream;\n Properties prop = new Properties();\n try {\n inputStream = new FileInputStream(new File(System.getenv(\"conf.home\")+\"\\\\application.properties\"));\n prop.load(inputStream);\n if(prop==null){\n throw new ISException(\"getProperty: Cannot open property file!\");\n }\n return prop.getProperty(propName);\n } catch(Exception e){\n throw new ISException(\"getProperty: Cannot open property file!\");\n }\n }",
"void setPropertiesFile(File file);",
"private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }",
"private void loadProperties() {\n try (InputStream in = getClass().getClassLoader().getResourceAsStream(PATH_TO_PROPERTIES)) {\n this.prs.load(in);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }",
"private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }",
"public static void loadPropertyFile() throws IOException {\n\t\tPropertyFileReader.property = new Properties();\n\t\tPropertyFileReader.targetPlatform = System.getProperty(\"targetPlatform\");\n\t\tPropertyFileReader.targetDevice = System.getProperty(\"targetDevice\");\n\n\t\t// Load the property file based on platform and device\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"android\")) {\n\t\t\tfinal File file = new File(String.valueOf(System.getProperty(\"user.dir\"))\n\t\t\t\t\t+ \"\\\\src\\\\main\\\\resources\\\\testdata\\\\\" + PropertyFileReader.targetPlatform + \"\\\\\"\n\t\t\t\t\t+ PropertyFileReader.targetDevice + \"\\\\capabilities.properties\");\n\t\t\tPropertyFileReader.filereader = new FileReader(file);\n\t\t\tPropertyFileReader.property.load(PropertyFileReader.filereader);\n\t\t}\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"iOS\")) {\n\t\t\t// To do in case of iOS\n\t\t}\n\t}",
"public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }",
"private void loadProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Loading Properties from {}\", path.toString());\n try {\n FileInputStream fis = new FileInputStream(getSamplePropertiesPath().toFile());\n Properties properties = new Properties();\n properties.load(fis);\n\n String privateKey = properties.getProperty(PRIVATE_KEY);\n this.credentials = Credentials.create(privateKey);\n this.contract1Address = properties.getProperty(CONTRACT1_ADDRESS);\n this.contract2Address = properties.getProperty(CONTRACT2_ADDRESS);\n this.contract3Address = properties.getProperty(CONTRACT3_ADDRESS);\n this.contract4Address = properties.getProperty(CONTRACT4_ADDRESS);\n this.contract5Address = properties.getProperty(CONTRACT5_ADDRESS);\n this.contract6Address = properties.getProperty(CONTRACT6_ADDRESS);\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }",
"public static void loadProperties(String filename) {\n\n if (filename.equals(\"\")) {\n return;\n }\n propfilename = userhome + FS + filename;\n File f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n } else {\n propfilename = userhome + FS + \"Properties\" + FS + filename;\n f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n }\n }\n\n try {\n try (FileInputStream i = new FileInputStream(propfilename)) {\n prop.load(i);\n //prtProperties();\n }\n } catch (FileNotFoundException e) {\n System.out.println(\" ** Properties file not found=\" + propfilename + \" userhome=\" + userhome + \" \" + System.getProperty(\"user.home\"));\n saveProperties();\n } catch (IOException e) {\n System.out.println(\"IOException reading properties file=\" + propfilename);\n System.exit(1);\n }\n }",
"public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}",
"public static Properties getProperties(String filename)\r\n/* 13: */ {\r\n/* 14:26 */ Properties properties = new Properties();\r\n/* 15: */ try\r\n/* 16: */ {\r\n/* 17:29 */ properties.load(new FileInputStream(System.getProperty(\"user.dir\") + \"/properties/\" + filename));\r\n/* 18: */ }\r\n/* 19: */ catch (IOException ex)\r\n/* 20: */ {\r\n/* 21:31 */ logger.error(\"Can't load properties file: \" + filename, ex);\r\n/* 22: */ }\r\n/* 23:33 */ return properties;\r\n/* 24: */ }",
"public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}",
"public Properties propertiesSource() {\n\t\tSystem.out.println(\"code execution is reaching propertiesSource()\");\n\t\tProperties properties = new Properties();\n\t\tproperties.put(\"name of property in property file\", environment.getRequiredProperty(\n\t\t\t\t\"name of property in property file\"));\n\t\treturn properties;\n\t}",
"private static String readPropertiesFile() {\n Properties prop = new Properties();\n\n try (InputStream inputStream = MembershipService.class.getClassLoader().getResourceAsStream(\"config.properties\")) {\n\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n throw new FileNotFoundException(\"property file 'config.properties' not found in the classpath\");\n }\n } catch (Exception e) {\n return \"\";\n }\n return prop.getProperty(\"introducer\");\n }",
"public Properties initProperties() {\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"./src/main/java/com/automation/qe/config/config.properties\");\r\n\t\t\tprop.load(fis);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn prop;\r\n\t}",
"public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }",
"public File getPropertyFile() { return propertyFile; }",
"private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"private Properties getProperties() throws IOException {\r\n\t\tInputStream input = this.getClass().getResourceAsStream(\"/properties/application.properties\");\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(input);\r\n\t\treturn properties;\r\n\t}",
"private synchronized void readProperties()\n {\n \n String workPath = \"webserver\";\n try\n {\n workPath = (String) SageTV.api(\"GetProperty\", new Object[]{\"nielm/webserver/root\",\"webserver\"});\n }\n catch (InvocationTargetException e)\n {\n System.out.println(e);\n }\n \n // check if called within 30 secs (to prevent to much FS access)\n if (fileLastReadTime + 30000 > System.currentTimeMillis())\n {\n return;\n }\n\n // check if file has recently been loaded\n File propsFile=new File(workPath,\"extenders.properties\");\n if (fileLastReadTime >= propsFile.lastModified())\n {\n return;\n }\n\n if (propsFile.canRead())\n {\n BufferedReader in = null;\n contextNames.clear();\n try\n {\n in = new BufferedReader(new FileReader(propsFile));\n String line;\n Pattern p = Pattern.compile(\"([^=]+[^=]*)=(.*)\");\n while (null != (line = in.readLine()))\n {\n line = line.trim();\n if ((line.length() > 0) && (line.charAt(0) != '#'))\n {\n Matcher m =p.matcher(line.trim());\n if (m.matches())\n {\n contextNames.put(m.group(1).trim(), m.group(2).trim());\n }\n else\n {\n System.out.println(\"Invalid line in \"+propsFile+\"\\\"\"+line+\"\\\"\");\n }\n }\n }\n fileLastReadTime=System.currentTimeMillis();\n\n }\n catch (IOException e)\n {\n System.out.println(\"Exception occurred trying to load properties file: \"+propsFile+\"-\" + e);\n }\n finally\n {\n if (in != null)\n {\n try\n {\n in.close();\n }\n catch (IOException e) {}\n }\n }\n } \n }",
"public void init(){\n\t\tif(prop==null){\r\n\t\t\tprop=new Properties();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileInputStream fs = new FileInputStream(System.getProperty(\"user.dir\")+\"//src//test//resources//projectconfig.properties\");\r\n\t\t\t\tprop.load(fs);\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void loadPropertyFile() {\r\n\t\t\r\n\t\tif (loaded) {\r\n\t\t\tthrow new IllegalStateException(\"Properties have already been loaded!\"); \r\n\t\t}\r\n\t\tloaded = true; \r\n\t\t\r\n\t\t// if property file was specified, use it instead of standard property\r\n\t\t// file\r\n\r\n\t\tString file = STANDARD_PROPERTY_FILE;\r\n\r\n\t\tif (System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE) != null\r\n\t\t\t\t&& System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE)\r\n\t\t\t\t\t\t.length() != 0) {\r\n\t\t\tfile = System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE);\r\n\t\t}\r\n\r\n\t\t// load property file\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.load(ClassLoader.getSystemResourceAsStream(file));\r\n\t\t\tSystem.setProperties(props);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t}\r\n\r\n\t}",
"PropertiesTask setTargetFile( File propertiesFile );",
"@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }",
"private static synchronized void setProperties(\n final String strPropertiesFilename) {\n if (msbPropertiesLoaded) {\n Verbose.warning(\"Properties already loaded; ignoring request\");\n\n return;\n }\n\n File oFile = new File(strPropertiesFilename);\n\n if (!oFile.exists()) {\n // Try to get it from jar file\n ClassLoader classLoader = Thread.currentThread()\n .getContextClassLoader();\n final InputStream input;\n\n if (classLoader == null) {\n classLoader = Class.class.getClassLoader();\n }\n input = classLoader\n .getResourceAsStream('/' + strPropertiesFilename);\n PropertyDef.setProperties(input, null);\n } else {\n PropertyDef.setProperties(new File(strPropertiesFilename), null,\n false);\n }\n if (strPropertiesFilename == DEFAULT_PROPERTIES_FILENAME) {\n oFile = new File(CUSTOMER_PROPERTIES_FILENAME);\n if (oFile.exists() && oFile.isFile()) {\n PropertyDef.addProperties(oFile);\n }\n }\n AdaptiveReplicationTool.msbPropertiesLoaded = true;\n }",
"private static void storePropsFile() {\n try {\n FileOutputStream fos = new FileOutputStream(propertyFile);\n props.store(fos, null);\n fos.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }",
"@Test\n public void testGetProperties() throws Exception {\n logger.info(\"testGetProperties: test the basic properties file interface\");\n\n // copy system properties\n logger.info(\"Copy system properties to a file\");\n Properties prop1 = System.getProperties();\n File file1 = createFile(\"createAndReadPropertyFile-1\", prop1);\n\n // read in properties, and compare\n logger.info(\"Read in properties from new file\");\n Properties prop2 = PropertyUtil.getProperties(file1);\n\n // they should match\n assertEquals(prop1, prop2);\n\n Properties prop3 = PropertyUtil.getProperties(INTERPOLATION_PROPERTIES);\n\n assertEquals(\"no\", prop3.getProperty(INTERPOLATION_NO));\n assertEquals(System.getenv(\"HOME\"), prop3.getProperty(INTERPOLATION_ENV));\n assertEquals(LoggerUtil.ROOT_LOGGER, prop3.getProperty(INTERPOLATION_CONST));\n assertEquals(System.getProperty(\"user.home\"), prop3.getProperty(INTERPOLATION_SYS));\n\n Properties prop4 = new Properties();\n prop4.put(INTERPOLATION_NO, \"no\");\n prop4.put(INTERPOLATION_ENV, \"${env:HOME}\");\n prop4.put(INTERPOLATION_CONST, \"${const:org.onap.policy.drools.utils.logging.LoggerUtil.ROOT_LOGGER}\");\n prop4.put(INTERPOLATION_SYS, \"${sys:user.home}\");\n\n PropertyUtil.setSystemProperties(prop4);\n\n assertEquals(\"no\", System.getProperty(INTERPOLATION_NO));\n assertEquals(System.getenv(\"HOME\"), System.getProperty(INTERPOLATION_ENV));\n assertEquals(LoggerUtil.ROOT_LOGGER, System.getProperty(INTERPOLATION_CONST));\n assertEquals(System.getProperty(\"user.home\"), System.getProperty(INTERPOLATION_SYS));\n }",
"void loadProperties(final String fileName){\n mProperties = new Properties();\n try {\n InputStreamReader stream = new InputStreamReader(CoreLib.getAppContext().getResources().\n getAssets().open(fileName));\n mProperties.load(stream);\n }catch (IOException e){\n throw new Error(\"Make sure you have both properties file(\" + fileName + \")present under assets\");\n }\n }",
"private static Properties getProperties(final String filename) throws IOException, FileNotFoundException {\r\n \r\n final Properties result = new Properties();\r\n final InputStream propertiesStream = getInputStream(filename);\r\n result.load(propertiesStream);\r\n return result;\r\n }",
"public PropertiesUtil() {\n\t\t// Read properties file.\n\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tproperties.load(PropertiesUtil.class.getClassLoader().getResourceAsStream(\"variables.properties\"));\n\t\t\tlog.info(\"variables.properties file loaded successfully\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"variables.properties file not found: \", e);\n\t\t}\n\t}",
"private Properties getProptertiesUrl() {\n\t\tprop = new Properties();\n\t\tInputStream inputUrl = null;\n\t\ttry {\n\t\t\tinputUrl = new FileInputStream(\n\t\t\t\t\tcurrentDir + fileSeparator + \"properties\" + fileSeparator + \"prop.properties\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// load a properties file\n\t\ttry {\n\t\t\tprop.load(inputUrl);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop;\n\t}",
"public String getConfigProperties(String key) {\n String value = null;\n try {\n FileReader fileReader=new FileReader(System.getProperty(\"user.dir\")+\"/src/main/resources/config.properties\");\n Properties properties=new Properties();\n properties.load(fileReader);\n value= properties.getProperty(key);\n }catch (Exception e){\n e.printStackTrace();\n }\n return value;\n }",
"private void loadConfig() throws IOException {\r\n final boolean hasPropertiesFile = configFile != null && configFile.exists() \r\n && configFile.canRead() && configFile.isFile();\r\n if (hasPropertiesFile) {\r\n Properties props = new Properties();\r\n FileInputStream fis = null;\r\n try {\r\n fis = new FileInputStream(configFile);\r\n props.load(fis);\r\n Iterator<Object> keys = props.keySet().iterator();\r\n envVariables = new ArrayList<Variable>();\r\n while (keys.hasNext()) {\r\n String key = (String) keys.next();\r\n if (key.equalsIgnoreCase(GRKeys.GDAL_CACHEMAX)) {\r\n // Setting GDAL_CACHE_MAX Environment variable if available\r\n String cacheMax = null;\r\n try {\r\n cacheMax = (String) props.get(GRKeys.GDAL_CACHEMAX);\r\n if (cacheMax != null) {\r\n int gdalCacheMaxMemory = Integer.parseInt(cacheMax); // Only for validation\r\n Variable var = new Variable();\r\n var.setKey(GRKeys.GDAL_CACHEMAX);\r\n var.setValue(cacheMax);\r\n envVariables.add(var);\r\n }\r\n } catch (NumberFormatException nfe) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the specified property as a number: \"\r\n + cacheMax, nfe);\r\n }\r\n }\r\n } else if (key.equalsIgnoreCase(GRKeys.GDAL_DATA)\r\n || key.equalsIgnoreCase(GRKeys.GDAL_LOGGING_DIR)\r\n || key.equalsIgnoreCase(GRKeys.TEMP_DIR)) {\r\n // Parsing specified folder path\r\n String path = (String) props.get(key);\r\n if (path != null) {\r\n final File directory = new File(path);\r\n if (directory.exists() && directory.isDirectory()\r\n && ((key.equalsIgnoreCase(GRKeys.GDAL_DATA) && directory.canRead()) || directory.canWrite())) {\r\n Variable var = new Variable();\r\n var.setKey(key);\r\n var.setValue(path);\r\n envVariables.add(var);\r\n \r\n } else {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"The specified folder for \" + key + \" variable isn't valid, \"\r\n + \"or it doesn't exist or it isn't a readable directory or it is a \" \r\n + \"destination folder which can't be written: \" + path);\r\n }\r\n }\r\n }\r\n } else if (key.equalsIgnoreCase(GRKeys.EXECUTION_TIMEOUT)) {\r\n // Parsing execution timeout\r\n String timeout = null;\r\n try {\r\n timeout = (String) props.get(GRKeys.EXECUTION_TIMEOUT);\r\n if (timeout != null) {\r\n executionTimeout = Long.parseLong(timeout); // Only for validation\r\n }\r\n } catch (NumberFormatException nfe) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the specified property as a number: \"\r\n + timeout, nfe);\r\n }\r\n }\r\n } else if (key.equalsIgnoreCase(GRKeys.GDAL_WARP_PARAMS)\r\n || key.equalsIgnoreCase(GRKeys.GDAL_TRANSLATE_PARAMS)) {\r\n // Parsing gdal operations custom option parameters\r\n String param = (String) props.get(key);\r\n if (param != null) {\r\n if (key.equalsIgnoreCase(GRKeys.GDAL_WARP_PARAMS)) {\r\n gdalWarpingParameters = param.trim();\r\n } else {\r\n gdalTranslateParameters = param.trim();\r\n }\r\n }\r\n } else if (key.endsWith(\"PATH\")) {\r\n // Dealing with properties like LD_LIBRARY_PATH, PATH, ...\r\n String param = (String) props.get(key);\r\n if (param != null) {\r\n Variable var = new Variable();\r\n var.setKey(key);\r\n var.setValue(param);\r\n envVariables.add(var);\r\n }\r\n }\r\n }\r\n \r\n } catch (FileNotFoundException e) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the config file: \" + configFile.getAbsolutePath(), e);\r\n }\r\n \r\n } catch (IOException e) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the config file: \" + configFile.getAbsolutePath(), e);\r\n }\r\n } finally {\r\n if (fis != null) {\r\n try {\r\n fis.close();\r\n } catch (Throwable t) {\r\n // Does nothing\r\n }\r\n }\r\n }\r\n }\r\n }",
"private static Properties loadProperties() throws SystemException {\r\n final Properties result;\r\n try {\r\n result = getProperties(PROPERTIES_DEFAULT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n throw new SystemException(\"properties not found.\", e);\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Default properties: \" + result);\r\n }\r\n Properties specific;\r\n try {\r\n specific = getProperties(PROPERTIES_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n specific = new Properties();\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading specific properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Specific properties: \" + specific);\r\n }\r\n result.putAll(specific);\r\n \r\n // Load constant properties\r\n Properties constant = new Properties();\r\n try {\r\n constant = getProperties(PROPERTIES_CONSTANT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n if (LOGGER.isWarnEnabled()) {\r\n LOGGER.warn(\"Error on loading contant properties.\");\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading contant properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Constant properties: \" + constant);\r\n }\r\n result.putAll(constant);\r\n \r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Merged properties: \" + result);\r\n }\r\n // set Properties as System-Variables\r\n for (final Object o : result.keySet()) {\r\n final String key = (String) o;\r\n String value = result.getProperty(key);\r\n value = replaceEnvVariables(value);\r\n System.setProperty(key, value);\r\n }\r\n return result;\r\n }",
"private void loadProperties(){\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }",
"@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }",
"public abstract String getPropertyFile();",
"public void getPropValues() throws IOException {\r\n try {\r\n Properties prop = new Properties();\r\n String path = System.getProperty(\"user.dir\") +\"\\\\src\\\\es\\\\udc\\\\redes\\\\webserver\\\\resources\\\\\";\r\n\t String filename = \"config.properties\";\r\n inputStream = new FileInputStream(path+filename);\r\n if (inputStream != null) {\r\n prop.load(inputStream);\r\n } else {\r\n\t\tthrow new FileNotFoundException(\"property file '\"+path + filename + \"' not found\");\r\n }\r\n\t // get the property value and set in attributes\r\n\t this.PORT = prop.getProperty(\"PORT\");\r\n this.DIRECTORY_INDEX = prop.getProperty(\"DIRECTORY_INDEX\");\r\n this.DIRECTORY = System.getProperty(\"user.dir\")+ prop.getProperty(\"DIRECTORY\");\r\n this.ALLOW = prop.getProperty(\"ALLOW\");\r\n this.HOSTNAME = prop.getProperty(\"HOSTNAME\");\r\n System.out.println();\r\n } catch (Exception e) {\r\n\t\tSystem.out.println(\"Exception: \" + e);\r\n\t} finally {\r\n\t\tinputStream.close();\r\n\t}\r\n }",
"public HashMap<String, String> readPropertyFile(String propertyFilePath) throws Exception {\n File propertyFile = null;\n InputStream inputStream = null;\n Properties properties = null;\n HashMap<String, String> propertyMap = new HashMap<String, String>();\n try {\n\n //creating file object\n propertyFile = new File(propertyFilePath);\n\n //check if property file exists on hard drive\n if (propertyFile.exists()) {\n inputStream = new FileInputStream(propertyFile);\n // check if the file exists in web environment or relative to class path\n } else {\n inputStream = getClass().getClassLoader().getResourceAsStream(propertyFilePath);\n }\n\n if (inputStream == null) {\n throw new Exception(\"FILE NOT FOUND : inputStream = null : \" + propertyFilePath);\n }\n\n properties = new Properties();\n properties.load(inputStream);\n Enumeration enuKeys = properties.keys();\n while (enuKeys.hasMoreElements()) {\n\n String key = (String) enuKeys.nextElement();\n String value = properties.getProperty(key);\n\n //System.out.print(\"key = \"+key + \" : value = \"+value);\n propertyMap.put(key, value);\n }\n if (propertyMap == null) {\n throw new Exception(\"readPropertyFile : propertyMap = null\");\n }\n\n return propertyMap;\n } catch (Exception e) {\n throw new Exception(\"readPropertyFile : \" + e.toString());\n } finally {\n try {\n inputStream.close();\n } catch (Exception e) {\n }\n try {\n properties = null;\n } catch (Exception e) {\n }\n }\n }",
"@Test\r\n\t\tpublic static void Properties() \r\n\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\tprop = new Properties();\r\n\t\t\t\tfile = new File(\"C:\\\\Users\\\\vardhan\\\\eclipse-workspace\\\\com.makemytrip\\\\prop.properties\");\r\n\t\t\t\tfilereader = new FileReader(file);\r\n\t\t\t\tprop.load(filereader);\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t\r\n\t\t\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}",
"@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }",
"private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }",
"public static void LoadIntoConfigFiles()\n {\n \tProperties prop = new Properties();\n ///*\n \ttry {\n \t\t//set the properties value\n \n prop.setProperty(\"comp_name\", \"Teledom International Ltd\");\n prop.setProperty(\"com_city\", \"Lagos\");\n \t\tprop.setProperty(\"State\", \"Lagos\");\n \t\tprop.setProperty(\"logo_con\", \"logo.png\");\n \t\tprop.setProperty(\"front_frame\", \"front.png\");\n prop.setProperty(\"back_frame\", \"back.png\");\n \n \n \n \n \t\t//save properties to project root folder\n \t\tprop.store(new FileOutputStream(setupFileName), null);\n \n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n }\n // */\n \n \n \n }",
"public String accessLocationPropFile(){\n\t\tProperties prop = new Properties();\n\t\tString loc=\"\";\n\t\ttry {\n\t\t\t//load a properties file\n\t\t\tprop.load(new FileInputStream(\"C:/Users/SARA/Desktop/OpenMRS/de/DeIdentifiedPatientDataExportModule/api/src/main/resources/config1.properties\"));\n\t\t\tInteger a = getRandomBetween(1, 3);\n\t\t\tloc = prop.getProperty(a.toString());\n\n\t\t} catch (IOException ex) {\n\t\t\tlog.error(\"IOException in accessing Location File\", ex);\n\t\t}\n\t\treturn loc;\n\t}",
"private void loadPropertyFile(InputStream stream) throws IOException{\n\t\tproperties = new Properties();\n\t\tproperties.load(stream);\n\t}",
"public static String extractFromPropertiesFile(String key) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(\"./env.properties\");\n\t\tProperties prop = new Properties();\n\t\tprop.load(fis);\t\n\t\treturn prop.getProperty(key);\n\t}",
"public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected Properties loadClientProperties(String filename) throws Exception {\n InputStream is = null;\n try {\n Properties props = new Properties();\n\n // Open the properties file specified by the user.\n File f = new File(filename);\n if (f.exists()) {\n is = new FileInputStream(f);\n } else {\n throw new FileNotFoundException(\"Properties file '\" + filename + \"' not found.\");\n }\n\n // Load the properties.\n props.load(is);\n is.close();\n\n return props;\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }",
"private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"/bmo-data.tsv\");\n properties.setProperty(BMO_URI_KEY,\n \"http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt\");\n\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propertiesFilename);\n properties.load(stream);\n System.out.println(\"Loading data input client properties from: \" + propertiesFilename);\n }\n catch (IOException e) {\n System.out.println(propertiesFilename\n + \" not found. Using default data input client properties.\");\n throw e;\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n trimProperties(properties);\n }",
"@BeforeSuite\n public void getProperties() throws Exception{\n prop.load(new FileInputStream(\"src/test/resources/properties/env.properties\"));\n RestAssured.baseURI = prop.getProperty(\"HOST\");\n }",
"public static void loadProperties()\n {\n Properties props = new Properties();\n try {\n props.load( new BufferedInputStream( ClassLoader.getSystemResourceAsStream(\"bench.properties\") ) );\n } catch (IOException ioe)\n {\n logger.log(Level.SEVERE, ioe.getMessage());\n }\n props.putAll(System.getProperties()); //overwrite\n System.getProperties().putAll(props);\n }",
"public void IntialProperties() {\r\n Properties prop = new Properties();\r\n try (FileInputStream input = new FileInputStream(\"./config.properties\")) {\r\n prop.load(input);\r\n generate = prop.getProperty(\"generate\");\r\n solve = prop.getProperty(\"algorithm\");\r\n setChanged();\r\n notifyObservers(\"prop\");\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"@BeforeClass\n\tpublic void readConfig() {\n\t\t// object creation of properties file\n\n\t\tProperties prop = new Properties();\n\n\t\t// read the file: inputstream\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(\"\\\\src\\\\main\\\\java\\\\config\\\\config.properties\");\n\t\t\tprop.load(input);\n\t\t\tbrowser = prop.getProperty(\"browser\");\n\t\t//\turl = prop.getProperty(\"url\");\n\t\t\t\n\t\t}\n\n\t\tcatch (IOException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}",
"private void loadPropertiesFile(String propertiesFile) {\n\n\t\t//open the properties file.\n\t\t_props = new Properties();\n\n\t\t//sanity check the properties file\n\t\tFile f = new File(propertiesFile);\n\t\tif (!f.canRead()) {\n\t\t\t//print an error - can't read the props file.\n\t\t\tSystem.err.println(\"Properties file \" + propertiesFile + \" cannot be read.\");\n\t\t}\n\n\t\ttry {\n\t\t\t_props.load(new FileInputStream(f));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public File getPropertiesFile() {\n return propertiesFile;\n }",
"public static synchronized void initProjectProperties() {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initProjectProperties\");\n try {\n String projectPropertiesFilename = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_PROPERTIES_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_SERVED_PROJECTNAME_PREFIX + getTestProjectName() + \".properties\";\n File projectPropertiesFile = new File(projectPropertiesFilename);\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initProjectProperties project properties file name: [\" + projectPropertiesFilename + \"]\");\n\n if (projectPropertiesFile.exists()) {\n // If the properties file exists, delete it, so we can create a fresh one.\n projectPropertiesFile.delete();\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.initProjectProperties deleting existing property file.\");\n }\n // Make sure the properties directory exists...\n if (!projectPropertiesFile.getParentFile().exists()) {\n projectPropertiesFile.getParentFile().mkdirs();\n }\n\n // Make sure the property file exists. (This should create it.)\n if (projectPropertiesFile.createNewFile()) {\n AbstractProjectProperties projectProperties = ProjectPropertiesFactory.getProjectPropertiesFactory().buildProjectProperties(getTestProjectName(), QVCSConstants.QVCS_SERVED_PROJECT_TYPE);\n\n // This is where the archives go...\n String projectLocation = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_PROJECTS_DIRECTORY\n + File.separator\n + getTestProjectName();\n\n File archiveLocation = new File (projectLocation);\n String canonicalArchiveLocation = archiveLocation.getCanonicalPath();\n\n // This the root directory for the archives for this project.\n projectProperties.setArchiveLocation(canonicalArchiveLocation);\n\n // Make sure the directory exists.\n File projectDirectory = new File(projectLocation);\n projectDirectory.mkdirs();\n\n // Set the project info for the reference copies\n projectProperties.setCreateReferenceCopyFlag(false);\n\n // Set the ignore case flag.\n projectProperties.setIgnoreCaseFlag(true);\n\n projectProperties.setDirectoryContentsInitializedFlag(true);\n\n projectProperties.saveProperties();\n }\n } catch (IOException e) {\n Logger.getLogger(TestHelper.class.getName()).log(Level.SEVERE, null, e);\n }\n }",
"public void loadConfiguration() {\n Properties prop = new Properties();\n String propFileName = \".env_\" + this.dbmode.name().toLowerCase();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n System.err.println(\"property file '\" + propFileName + \"' not found in the classpath\");\n }\n this.jdbc = prop.getProperty(\"jdbc\");\n this.host = prop.getProperty(\"host\");\n this.port = prop.getProperty(\"port\");\n this.database = prop.getProperty(\"database\");\n this.user = prop.getProperty(\"user\");\n this.password = prop.getProperty(\"password\");\n // this.sslFooter = prop.getProperty(\"sslFooter\");\n } catch (Exception e) {\n System.err.println(\"can't read property file\");\n }\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void loadObject() {\n\n obj = new Properties();\n try {\n obj.load(new FileInputStream(\"./src/test/resources/config.properties\"));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public Map<String, String> fetchPropertyFromFile()\n {\n Map<String, String> components = new HashMap<>();\n Properties props = new Properties();\n InputStream in = null;\n try {\n in = new FileInputStream(\"/slog/properties/LogAnalyzer.properties\");\n props.load(in);\n in.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n catch (IOException e) {\n e.printStackTrace();\n }\n// Add component config , logname RegEx pattern to a Map. This map will be used to search matching files and forming logstash command\n for (String key : props .stringPropertyNames())\n {\n System.out.println(key + \" = \" + props .getProperty(key));\n components.put (key, props.getProperty(key));\n }\n\n return components;\n }",
"private static Properties readPropertiesFile(String fileName) throws IOException\n {\n LOG.log(Level.FINE, \"Searching for {0} file...\", fileName);\n try (final InputStream stream = SmartProperties.class.getClassLoader().getResourceAsStream(fileName))\n {\n Properties properties = new Properties();\n properties.load(stream);\n LOG.log(Level.FINE, \"{0} loaded successfully\", fileName);\n return properties;\n }\n }",
"public static Properties loadProperties() throws IOException {\r\n Properties properties = new Properties();\r\n properties.load(new FileInputStream(\"..\" + File.separator + \"commons\" + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\" + File.separator + \"framework.properties\"));\r\n return properties;\r\n }",
"private Properties loadConfig(String baseFileName, String userPathParamName) throws IOException {\n\t\tString fileName = baseFileName + \".properties\";\n\t\tProperties properties = new Properties();\n\t\ttry (InputStream configStream = ApiInitializer.class.getClassLoader().getResourceAsStream(fileName)) {\n\t\t\tif (configStream != null) {\n\t\t\t\tproperties.load(configStream);\n\t\t\t}\n\t\t}\n\n\t\t// Then, override with whatever the user set up.\n\t\tString userFilePath = servletContext.getInitParameter(userPathParamName);\n\t\tif (userFilePath == null) {\n\t\t\tuserFilePath = \"WEB-INF/\" + baseFileName + \".properties\";\n\t\t} else {\n\t\t\tPath path = Paths.get(userFilePath, baseFileName + \".properties\");\n\t\t\tuserFilePath = path.toString();\n\t\t}\n\t\ttry (InputStream inStream = servletContext.getResourceAsStream(userFilePath);) {\n\t\t\tif (inStream != null) {\n\t\t\t\tproperties.load(inStream);\n\t\t\t}\n\t\t}\n\n\t\treturn properties;\n\t}",
"public ReadConfigFile (){\n\t\ttry {\n\t\t\tinput = ReadConfigFile.class.getClassLoader().getResourceAsStream(Constant.CONFIG_PROPERTIES_DIRECTORY);\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}",
"private Properties readProperties() throws IOException {\n\t\tProperties props = new Properties();\n\t\t\n\t\tFileInputStream in = new FileInputStream(\"Config.properties\");\n\t\tprops.load(in);\n\t\tin.close();\n\t\treturn props;\n\t}",
"private Properties loadPropertiesFile(String file) {\n\t\tFileInputStream fis = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tif (fis != null) {\n\t\t\t\tProperties props = new Properties();\n\t\t\t\tprops.load(fis);\n\t\t\t\treturn props;\n\t\t\t}\n\t\t\tSystem.err.println(\"Cannot load \" + file\n\t\t\t\t\t+ \" , file input stream object is null\");\n\t\t} catch (java.io.IOException ioe) {\n\t\t\tSystem.err.println(\"Cannot load \" + file + \", error reading file\");\n\t\t}\n\t\treturn null;\n\t}",
"public void activate(Properties prop) throws GrpcException {\n\t\t/* check if configFilename were set in environment value */\n\t\tif (System.getProperty(envConfigFilename) != null) {\n\t\t\tconfig = new NgConfig(System.getProperty(envConfigFilename));\n\t\t} else {\n\t\t\tconfig = new NgConfig(prop);\n\t\t}\n\t\tactivate();\n\t}",
"public static void main(String[] args) throws IOException {\n\n String path = System.getProperty(\"user.dir\")+\"\\\\Files\\\\Config2.properties\";\n FileInputStream fileInputStream=new FileInputStream(path);\n Properties properties=new Properties();\n properties.load(fileInputStream);\n System.out.println(properties.get(\"browser\"));\n System.out.println(properties.get(\"url\"));\n System.out.println(properties.get(\"username\"));\n System.out.println(properties.get(\"password\"));\n //fileInputStream.close();\n FileOutputStream fileOutputStream=new FileOutputStream(path);\n Properties properties1=new Properties();\n properties.store(fileOutputStream,\"Masoud\");\n\n\n\n\n }",
"private static File getItestPropertiesForCurrentTestSetup() {\n return new File(\"src/itest/resources/itest-dockercompose.properties\");\n }",
"private void readProperties() throws Exception{\n\t\t InputStream fisGlobal=null,fisModul=null; \n\t\t propiedades = new Properties();\n try {\n \t // Path directorio de configuracion\n \t String pathConf = System.getProperty(\"ad.path.properties\");\n \t \n \t // Propiedades globales\n \t fisGlobal = new FileInputStream(pathConf + \"sistra/global.properties\");\n \t propiedades.load(fisGlobal);\n \t\t \n \t // Propiedades modulo\n \t\t fisModul = new FileInputStream(pathConf + \"sistra/plugins/plugin-firma.properties\");\n \t\t propiedades.load(fisModul);\n \t \t \t\t \n } catch (Exception e) {\n \t propiedades = null;\n throw new Exception(\"Excepcion accediendo a las propiedadades del modulo\", e);\n } finally {\n try{if (fisGlobal != null){fisGlobal.close();}}catch(Exception ex){}\n try{if (fisModul != null){fisModul.close();}}catch(Exception ex){}\n }\t\t\n\t}",
"public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}",
"private Properties loadConfigProperties() {\n \tProperties prop = new Properties();\n \tInputStream in = null;\n \ttry {\n \t\tin = this.getClass().getClassLoader().getResourceAsStream(\"resources/config.properties\");\n \t\tprop.load(in);\n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n \t} finally {\n \t\tif (in != null) {\n \t\t\ttry {\n \t\t\t\tin.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}\n \treturn prop;\n\t}",
"void load() {\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(propertyFile);\n\t\t\tfinal Properties newProperties = new Properties();\n\t\t\tnewProperties.load(fis);\n\t\t\ttimeLastRead = propertyFile.lastModified();\n\t\t\tproperties = newProperties;\n\t\t\tfis.close();\n\t\t} catch (final Exception e) {\n\t\t\tlogger.info(\"Property file \" + propertyFile + \" \" + e.getMessage());\n\t\t}\n\t}",
"public static String fetchMyProperties(String req) throws Exception {\n\n String val;\n\n FileReader reader = new FileReader(\"src\\\\test\\\\java\\\\resources\\\\westpac.properties\");\n Properties p = new Properties();\n p.load(reader);\n val = p.getProperty(req);\n\n return val;// returning the requested value.\n }",
"public synchronized Properties getProperties() {\n if (properties != null) {\n return properties;\n }\n Properties p = new Properties();\n if (propertiesFile != null && propertiesFile.isFile()) {\n try (InputStream in = new FileInputStream(propertiesFile)) {\n p.load(in);\n } catch (Exception e) {\n e.printStackTrace();\n // oh well!\n }\n }\n properties = p;\n return p;\n }",
"private void initializeProperties() throws IOException {\n String userHome = org.wattdepot.util.logger.WattDepotUserHome.getHomeString();\n String wattDepotHome = userHome + \"/.wattdepot\";\n String clientHome = wattDepotHome + \"/client\";\n String propFile = clientHome + \"/datainput.properties\";\n initializeProperties(propFile);\n }",
"private void loadPropertiesFromFile(String propertiesFileName) {\t\t\n\t\tif ( (propertiesFileName != null) && !(propertiesFileName.isEmpty()) ) {\n\t\t\tpropertiesFileName = config_file_name;\n\t \t\ttry {\n\t \t\t\t// FileInputStream lFis = new FileInputStream(config_file_name);\n\t \t\t\t// FileInputStream lFis = getServletContext().getResourceAsStream(config_file_name);\n\t \t\t\tInputStream lFis = Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\");\n\t \t\t\tif (lFis != null) {\n\t\t \t\t\tProperties lConnectionProps = new Properties();\n\t\t \t\t\tlConnectionProps.load(lFis);\n\t\t \t\t\tlFis.close();\n\t\t \t\t\tlLogger.info(DEBUG_PREFIX + \"Using configuration file \" + config_file_name);\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceNname\") != null) ssosvc_name = lConnectionProps.getProperty(\"SsoServiceNname\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceLabel\") != null) ssosvc_label = lConnectionProps.getProperty(\"SsoServiceLabel\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServicePlan\") != null) ssosvc_plan = lConnectionProps.getProperty(\"SsoServicePlan\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_clientId = lConnectionProps.getProperty(\"SsoServiceCredential_clientId\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_secret = lConnectionProps.getProperty(\"SsoServiceCredential_secret\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_serverSupportedScope = lConnectionProps.getProperty(\"SsoServiceCredential_serverSupportedScope\");\n\t\t\tlLogger.info(DEBUG_PREFIX + \"CONFIG FILE parsing, found Scopes = \" + ssosvc_cred_serverSupportedScope + \" for service name = \" + ssosvc_name);\t\n\t\t\t Pattern seperators = Pattern.compile(\".*\\\\[ *(.*) *\\\\].*\");\n\t\t\t if (seperators != null) {\n\t\t\t \tMatcher scopeMatcher = seperators.matcher(ssosvc_cred_serverSupportedScope);\n\t\t\t\t scopeMatcher.find();\n\t\t\t\t ssosvc_cred_serverSupportedScope = scopeMatcher.group(1); // only get the first occurrence\n\t\t\t\t lLogger.info(DEBUG_PREFIX + \"CONFIG FILE parsing, retrieved first Scope = \" + ssosvc_cred_serverSupportedScope);\n\t\t\t }\n\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_issuerIdentifier = lConnectionProps.getProperty(\"SsoServiceCredential_issuerIdentifier\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_tokenEndpointUrl = lConnectionProps.getProperty(\"SsoServiceCredential_tokenEndpointUrl\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_authorizationEndpointUrl = lConnectionProps.getProperty(\"SsoServiceCredential_authorizationEndpointUrl\");\n\t\n\t\t \t\t\tlLogger.info(DEBUG_PREFIX + \"Using config for SSO Service with name \" + ssosvc_name);\n\t \t\t\t} else {\n\t \t\t\t\tlLogger.severe(DEBUG_PREFIX + \"Configuration file not found! Using default settings.\");\n\t \t\t\t}\n\n\t \t\t} catch (FileNotFoundException e) {\n\t \t\t\tlLogger.severe(DEBUG_PREFIX + \"Configuration file = \" + config_file_name + \" not found! Using default settings.\");\n\t \t\t\te.printStackTrace();\n\t \t\t} catch (IOException e) {\n\t \t\t\tlLogger.severe(\"SF-DEBUG: Configuration file = \" + config_file_name + \" not readable! Using default settings.\");\n\t \t\t\te.printStackTrace();\n\t \t\t}\n\t \t} else {\n\t \t\tlLogger.info(DEBUG_PREFIX + \"Configuration file = \" + config_file_name + \" not found! Using default settings.\");\n\t \t}\n\t}",
"public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }",
"private static void readCitProperties(String fileName) {\n/* */ try {\n/* 91 */ ResourceLocation e = new ResourceLocation(fileName);\n/* 92 */ InputStream in = Config.getResourceStream(e);\n/* */ \n/* 94 */ if (in == null) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 99 */ Config.dbg(\"CustomItems: Loading \" + fileName);\n/* 100 */ Properties props = new Properties();\n/* 101 */ props.load(in);\n/* 102 */ in.close();\n/* 103 */ useGlint = Config.parseBoolean(props.getProperty(\"useGlint\"), true);\n/* */ }\n/* 105 */ catch (FileNotFoundException var4) {\n/* */ \n/* */ return;\n/* */ }\n/* 109 */ catch (IOException var5) {\n/* */ \n/* 111 */ var5.printStackTrace();\n/* */ } \n/* */ }",
"@Override\r\n\tpublic void setPropFile(Properties prop) {\n\t\t\r\n\t}"
] | [
"0.72301894",
"0.7076613",
"0.702492",
"0.695232",
"0.69348",
"0.6874851",
"0.6851758",
"0.6807191",
"0.6754652",
"0.6694749",
"0.6676743",
"0.6673711",
"0.66619366",
"0.66590333",
"0.665756",
"0.66276896",
"0.65890336",
"0.6582575",
"0.65808505",
"0.6548083",
"0.6538095",
"0.65298754",
"0.6528563",
"0.65214324",
"0.6491577",
"0.6466152",
"0.6464508",
"0.6461333",
"0.64548284",
"0.64400464",
"0.64395267",
"0.64184785",
"0.6389369",
"0.63885254",
"0.6386105",
"0.63748634",
"0.63377166",
"0.63345146",
"0.63310176",
"0.63155776",
"0.63118255",
"0.6311626",
"0.6309558",
"0.62994725",
"0.6297455",
"0.629486",
"0.6285338",
"0.62839836",
"0.62704456",
"0.62678236",
"0.62604153",
"0.6244373",
"0.6242696",
"0.62310016",
"0.62041456",
"0.61930674",
"0.61726356",
"0.6167571",
"0.61671144",
"0.6164318",
"0.61616176",
"0.6153713",
"0.6147955",
"0.6135698",
"0.61284",
"0.6124173",
"0.6115426",
"0.61070895",
"0.60877097",
"0.60845447",
"0.6074155",
"0.6066587",
"0.60539883",
"0.6047719",
"0.6041841",
"0.6036901",
"0.60334456",
"0.60249096",
"0.6015769",
"0.6013703",
"0.60094875",
"0.60089403",
"0.60088027",
"0.6005513",
"0.60006726",
"0.59964854",
"0.5991887",
"0.59904736",
"0.5987138",
"0.5983672",
"0.59790766",
"0.5970463",
"0.596101",
"0.594864",
"0.59476507",
"0.5944229",
"0.5944154",
"0.594292",
"0.593809",
"0.5936469",
"0.5927083"
] | 0.0 | -1 |
Create bootstrap application context with the supplied active profiles | public static ConfigurableApplicationContext create(String[] profiles) {
AnnotationConfigApplicationContext bootstrapContext = new AnnotationConfigApplicationContext();
// Get bootstrap environment and add to a composite property source
ConfigurableEnvironment bootstrapEnvironment = getBootstrapEnvironment(bootstrapContext, profiles);
MutablePropertySources bootstrapPropertySources = bootstrapEnvironment.getPropertySources();
bootstrapPropertySources.remove(StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME);
bootstrapPropertySources.remove(StandardEnvironment.SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME);
CompositePropertySource bootstrapPropertySource = new CompositePropertySource("bootstrap");
bootstrapPropertySources.forEach(bootstrapPropertySource::addPropertySource);
bootstrapContext.getEnvironment().getPropertySources().addLast(bootstrapPropertySource);
ClassLoader classLoader = bootstrapContext.getClassLoader();
List<String> names = SpringFactoriesLoader
.loadFactoryNames(BootstrapConfiguration.class, classLoader);
List<Class<?>> sources = new ArrayList<>();
for (String name : names) {
sources.add(ClassUtils.resolveClassName(name, classLoader));
}
AnnotationAwareOrderComparator.sort(sources);
bootstrapContext.setEnvironment(bootstrapEnvironment);
sources.forEach(bootstrapContext::register);
bootstrapContext.refresh();
return bootstrapContext;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@PostConstruct\r\n\t public void initApplication() {\r\n\t log.info(\"Running with Spring profile(s) : {}\", Arrays.toString(env.getActiveProfiles()));\r\n\t Collection<String> activeProfiles = Arrays.asList(env.getActiveProfiles());\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_PRODUCTION)) {\r\n\t log.error(\"You have misconfigured your application! It should not run \" +\r\n\t \"with both the 'dev' and 'prod' profiles at the same time.\");\r\n\t }\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_CLOUD)) {\r\n\t log.error(\"You have misconfigured your application! It should not\" +\r\n\t \"run with both the 'dev' and 'cloud' profiles at the same time.\");\r\n\t }\r\n\t }",
"public static ConfigurableEnvironment getBootstrapEnvironment(ResourceLoader resourceLoader, String[] profiles) {\n StandardEnvironment environment = new StandardEnvironment();\n environment.setActiveProfiles(profiles);\n List<String> locations = Arrays.stream(profiles)\n .map(profile -> ResourceUtils.CLASSPATH_URL_PREFIX + \"bootstrap-\" + profile + \".properties\")\n .collect(Collectors.toList());\n locations.add(ResourceUtils.CLASSPATH_URL_PREFIX + \"bootstrap.properties\");\n ResourceLoader loader = resourceLoader == null ? new DefaultResourceLoader() : resourceLoader;\n locations.forEach(location -> addPropertiesFileToEnvironment(environment, loader, location));\n return environment;\n }",
"public ProfileContextInitializer(final String appName) {\r\n\t\tthis(appName, DEFAULT_VERSION, appName\r\n\t\t\t\t+ DEFAULT_PROFILE_PROPERTY_SUFFIX);\r\n\t}",
"public ProfileServiceBootstrap()\n {\n }",
"public ProfiledApplicationBean() {}",
"ApplicationProfile getApplicationProfile();",
"private IProfileFacade createAndInitializeProfileFacade(\n \t\t\tIFile profileApplicationFile, Collection<Profile> profiles)\n \t\t\tthrows CoreException, IOException {\n \n \t\tIProfileFacade facade = createNewProfileFacade(profileApplicationFile);\n \t\tfor (Profile profile : profiles) {\n \t\t\tfacade.loadProfile(profile);\n \t\t}\n \t\tprofileApplicationFile.refreshLocal(IFile.DEPTH_ZERO, new NullProgressMonitor());\n \t\treturn facade;\n \t}",
"private SpringProfile() {}",
"public void activate(BundleContext context) {\r\n\r\n // define the global ServiceRegistryAccessFactory for components and GUI code\r\n // TODO initialize from another location?\r\n ServiceRegistry.setAccessFactory(new OsgiServiceRegistryAccessFactory(context));\r\n\r\n bootstrapSettings = BootstrapConfiguration.getInstance();\r\n\r\n initializeProfileDirFromBootstrapSettings();\r\n initializeConfigurablePaths();\r\n loadRootConfiguration(false);\r\n initializeGeneralSettings();\r\n\r\n // initialize parent temp directory root\r\n initializeParentTempDirectoryRoot(generalSettings.getTempDirectoryOverride());\r\n\r\n initializeInstanceTempDirectoryRoot();\r\n\r\n if (PROPERTY_SUBSTITUTION_MECHANISM_ENABLED) {\r\n initializePropertySubstitution();\r\n }\r\n }",
"public ProfileContextInitializer(final String appName,\r\n\t\t\tfinal String appVersion) {\r\n\t\tthis(appName, appVersion, appName + DEFAULT_PROFILE_PROPERTY_SUFFIX);\r\n\t}",
"public ProfileContextInitializer(final String appName,\r\n\t\t\tfinal String appVersion, final String profileProperty) {\r\n\t\tthis.appName = appName;\r\n\t\tthis.appVersion = appVersion;\r\n\t\tthis.profileProperty = profileProperty;\r\n\t}",
"@Test\n\tpublic void testMain() {\n\t\tProjectManagerRestfulApiApp.main(new String[] {\n\t\t\t\t\"spring.profiles.active=test\"\n\t\t});\n\t}",
"private void createUsersAndApplications() throws Exception {\n UserManagementUtils.signupUser(USER_ONE, PASSWORD, FIRST_NAME, ORGANIZATION);\n //signup of user two\n UserManagementUtils.signupUser(USER_TWO, PASSWORD, FIRST_NAME, ORGANIZATION);\n\n restAPIStoreClientUser1 = new RestAPIStoreImpl(USER_ONE, PASSWORD, SUPER_TENANT_DOMAIN, storeURLHttps);\n restAPIStoreClientUser2 = new RestAPIStoreImpl(USER_TWO, PASSWORD, SUPER_TENANT_DOMAIN, storeURLHttps);\n\n // Create Application for user one\n HttpResponse appCreationResponse1 = restAPIStoreClientUser1.createApplication(APPLICATION_NAME,\n \"App created by user1\", APIMIntegrationConstants.APPLICATION_TIER.UNLIMITED,\n ApplicationDTO.TokenTypeEnum.JWT);\n userOneApplicationId = appCreationResponse1.getData();\n\n // Create Application for user two\n HttpResponse appCreationResponse2 = restAPIStoreClientUser2.createApplication(APPLICATION_NAME,\n \"App created by user2\", APIMIntegrationConstants.APPLICATION_TIER.UNLIMITED,\n ApplicationDTO.TokenTypeEnum.JWT);\n userTwoApplicationId = appCreationResponse2.getData();\n\n HttpResponse appCreationResponse3 = restAPIStoreClientUser1.createApplicationWithOrganization(SHARED_APPLICATION_NAME,\n \"App created by user1\", APIMIntegrationConstants.APPLICATION_TIER.UNLIMITED,\n ApplicationDTO.TokenTypeEnum.JWT, groups);\n userOneSharedApplicationId = appCreationResponse3.getData();\n }",
"private void process(ServletContext context) {\n\t\ttry {\n\t\t\tSystemConfigurationManager systemConfigurationManager = (SystemConfigurationManager) SpringContext\n\t\t\t\t\t.getBean(\"systemConfigurationManager\");\n\t\t\tProfileManager profileManager = (ProfileManager) SpringContext\n\t\t\t\t\t.getBean(\"profileManager\");\n\n\t\t\t// Upgrade from 2.3\n\t\t\tSystemConfiguration profileOverrideInitConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"profileoverride.init.enable\");\n\t\t\tif (profileOverrideInitConfig != null) {\n\t\t\t\tif (\"true\".equalsIgnoreCase(profileOverrideInitConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.setupProfileOverrides();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Upgrade to 2.2 (if not already done)\n\t\t\tSystemConfiguration profileUpgradeEnableConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"profileupgrade.enable\");\n\t\t\tif (profileUpgradeEnableConfig != null) {\n\n\t\t\t\tif (\"true\".equalsIgnoreCase(profileUpgradeEnableConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.compareProfiles();\n\t\t\t\t} else {\n\t\t\t\t\tlogger.error(\"Profile comparison has been completed in previous cycles.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"profileupgrade column not found\");\n\t\t\t}\n\n\t\t\t// Creation of canned profiles\n\t\t\tSystemConfiguration cannedProfileUpgradeEnableConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"cannedprofile.enable\");\n\t\t\tif (cannedProfileUpgradeEnableConfig != null) {\n\t\t\t\tif (\"1\".equalsIgnoreCase(cannedProfileUpgradeEnableConfig\n\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\tprofileManager.createCannedProfiles();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"cannedprofileupgrade column not found\");\n\t\t\t}\n\n\t\t\t// Add on More Default profiles -> Outdoor profile\n\t\t\tCompanyManager companyManager = (CompanyManager) SpringContext\n\t\t\t\t\t.getBean(\"companyManager\");\n\t\t\tCompany company = companyManager.getCompany();\n\t\t\tSystemConfiguration addMoreDefaultProfileConfig = systemConfigurationManager\n\t\t\t\t\t.loadConfigByName(\"add.more.defaultprofile\");\n\t\t\tif (company != null\n\t\t\t\t\t&& company.getCompletionStatus().intValue() == 3) {\n\t\t\t\tif (addMoreDefaultProfileConfig != null) {\n\n\t\t\t\t\tif (\"true\".equalsIgnoreCase(addMoreDefaultProfileConfig\n\t\t\t\t\t\t\t.getValue())) {\n\t\t\t\t\t\tprofileManager.addMoreDefaultProfile();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlogger.error(\"Some more default profile has been already added.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.error(\"More Default profile cannot be added as default company has not been added yet.\");\n\t\t\t\tSystemConfiguration addMoreProfileConfig = systemConfigurationManager\n\t\t\t\t\t\t.loadConfigByName(\"add.more.defaultprofile\");\n\t\t\t\taddMoreProfileConfig.setValue(\"false\");\n\t\t\t\tsystemConfigurationManager.save(addMoreProfileConfig);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlogger.error(\"Profiler Handler could not complete because of \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// ENL-2685 : End\n\n\t\t// Do all the clean up here. Add the clean up code in\n\t\t// systemCleanUpManager class.\n\t\tSystemCleanUpManager systemCleanUpManager = (SystemCleanUpManager) SpringContext\n\t\t\t\t.getBean(\"systemCleanUpManager\");\n\t\tsystemCleanUpManager.resetAllFixtureGroupSyncFlag();\n\n\t\tString userPath = context.getRealPath(\"/\");\n\t\tif (userPath != null) {\n\t\t\tSystem.out.println(new Date() + \" *** Setting up path \" + userPath);\n\t\t\tServerMain.getInstance().setTomcatLocation(userPath);\n\t\t\tSystem.out.println(new Date() + \" *** Initializing logger\");\n\t\t\tinitLogger(context);\n\t\t} else {\n\t\t\tlogger.fatal(\"Could Not get the real path of Servlet Context\");\n\t\t}\n\n\t\t// Start the Quartz scheduler\n\t\tSystem.out.println(new Date() + \" *** Initializing scheduler\");\n\t\tSchedulerManager.getInstance();\n\t\tgatewayPoll = new Timer(\"Gateway UTC sync\", true);\n\t\tGatewayUTCSync osync = new GatewayUTCSync();\n\t\tgatewayPoll.schedule(osync, ONE_MINUTE_DELAY);\n\t\tSystem.out.println(new Date() + \" *** set EMS mode\");\n\t\tEmsModeControl.resetToNormalIfImageUpgrade();\n \n // Start UEM ping scheduler \n\t\ttry {\n\t\t\tSystem.out.println(new Date() + \" *** starting GLEM check scheduler job\");\n\t\t\tUEMSchedulerManager uemSchedulerManager = (UEMSchedulerManager) SpringContext\n\t\t\t\t\t.getBean(\"uemSchedulerManager\");\n\t\t\tuemSchedulerManager.addUEMSchedulerJob(userPath);\n\t\t} catch (Exception e) {\n\t\t\tlogger.fatal(\"Could not start uem schedule manager\");\n\t\t} \t\t\t\t\n \n\t\tSystem.out.println(new Date() + \" *** done\");\n\t}",
"protected void mockActivate() {\r\n this.bootstrapSettings = BootstrapConfiguration.getInstance();\r\n\r\n initializeProfileDirFromBootstrapSettings();\r\n initializeConfigurablePaths();\r\n loadRootConfiguration(false);\r\n initializeGeneralSettings();\r\n }",
"WithCreate withSecurityProfile(SecurityProfile securityProfile);",
"public static void createActiveUserRelatedPreferencesIfNeeds(Context context) {\r\n\t\tif (hasActiveUserId(context) == false) {\r\n\t\t\tString newUserId = generateNewUserId();\r\n\t\t\tString userConfigKey = getUserConfigFileNameKey(newUserId);\r\n\t\t\tString userDbKey = getUserDatabaseFileNameKey(newUserId);\r\n\t\t\tString userConfigFileName = getUserConfigFileName(context,\r\n\t\t\t\t\tnewUserId);\r\n\t\t\tString userDbFileName = DatabaseHelper.databaseName; // Use old db\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// file\r\n\r\n\t\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\t\tif (prefs != null) {\r\n\t\t\t\tEditor editor = prefs.edit();\r\n\t\t\t\tif (editor != null) {\r\n\t\t\t\t\teditor.putString(\"user-\" + newUserId, newUserId);\r\n\t\t\t\t\teditor.putString(userConfigKey, userConfigFileName);\r\n\t\t\t\t\teditor.putString(userDbKey, userDbFileName);\r\n\t\t\t\t\teditor.putString(PreferenceKeys.ActiveUserId, newUserId);\r\n\t\t\t\t}\r\n\r\n\t\t\t\teditor.commit();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public ApplicationContext() {\n FileInputStream in;\n props = new Properties();\n try {\n in = new FileInputStream(\"gamesettings.properties\");\n props.load(in);\n } catch (FileNotFoundException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n \n } catch (IOException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n }\n }",
"private static void initForProd() {\r\n try {\r\n appTokenManager = new AppTokenManager();\r\n app = new CerberusApp(301L, \"3dd25f8ef8429ffe\",\r\n \"526fbde088cc285a957f8c2b26f4ca404a93a3fb29e0dc9f6189de8f87e63151\");\r\n appTokenManager.addApp(app);\r\n appTokenManager.start();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"private String getActiveProfile() {\r\n String[] profiles = env.getActiveProfiles();\r\n String activeProfile = \"add\";\r\n if (profiles != null && profiles.length > 0) {\r\n activeProfile = profiles[0];\r\n }\r\n System.out.println(\"===== The active profile is \" + activeProfile + \" =====\");\r\n return(activeProfile);\r\n }",
"@Override\n public void initialize(Bootstrap<AppConfig> bootstrap) {\n bootstrap.setConfigurationSourceProvider(\n new SubstitutingSourceProvider(bootstrap.getConfigurationSourceProvider(),\n new EnvironmentVariableSubstitutor(false)\n )\n );\n \n bootstrap.addBundle(new FlywayBundle<AppConfig>() {\n \n @Override\n public DataSourceFactory getDataSourceFactory(AppConfig configuration) {\n return configuration.getDataSourceFactory();\n }\n \n @Override\n public FlywayFactory getFlywayFactory(AppConfig configuration) {\n return configuration.getFlywayFactory();\n }\n });\n }",
"ProfileStatusManager create( ProfileConfiguration profileConfiguration ) throws ProfileCreationException;",
"public interface WebApplicationActivator {\n public static final String SERVLET_CONTEXT_SITE = \"fabric3.servletContext\";\n public static final String SESSION_CONTEXT_SITE = \"fabric3.sessionContext\";\n public static final String CONTEXT_ATTRIBUTE = \"org.osoa.sca.ComponentContext\";\n public static final String OASIS_CONTEXT_ATTRIBUTE = \"org.oasisopen.sca.ComponentContext\";\n\n /**\n * Returns the classloader to use for the web component corresponding the given id\n *\n * @param componentId the web component id\n * @return the classloader\n */\n ClassLoader getWebComponentClassLoader(URI componentId);\n\n /**\n * Perform the activation, which will result in making the web application available for incoming requests to the runtime.\n *\n * @param contextPath the context path the web application will be available at. The context path is relative to the absolute address of\n * the embedded servlet container.\n * @param uri the URI of the contribution containing the web application assets\n * @param parentClassLoaderId the id for parent classloader to use for the web application\n * @param injectors the map of artifact ids to injectors. An artifact id identifies an artifact type such as a servlet class name or\n * ServletContext.\n * @param context the component context for the web component\n * @return the servlet context associated with the activated web application\n * @throws WebApplicationActivationException\n * if an error occurs activating the web application\n */\n ServletContext activate(String contextPath, URI uri, URI parentClassLoaderId, Map<String, List<Injector<?>>> injectors, ComponentContext context)\n throws WebApplicationActivationException;\n\n /**\n * Removes an activated web application\n *\n * @param uri the URI the web application was activated with\n * @throws WebApplicationActivationException\n * if an error occurs activating the web application\n */\n void deactivate(URI uri) throws WebApplicationActivationException;\n\n}",
"private void launchProfilesActivity() {\n Intent intent = new Intent(this, ProfilesActivity.class);\n startActivity(intent);\n }",
"public abstract ApplicationLoader.Context context();",
"@Bean\n public WebSSOProfileECPImpl ecpprofile() {\n return new WebSSOProfileECPImpl();\n }",
"public void startProfiles() {\n int currentUserId = getCurrentUserId();\n if (ActivityManagerDebugConfig.DEBUG_MU) {\n Slog.i(\"ActivityManager\", \"startProfilesLocked\");\n }\n List<UserInfo> profiles = this.mInjector.getUserManager().getProfiles(currentUserId, false);\n List<UserInfo> profilesToStart = new ArrayList<>(profiles.size());\n for (UserInfo user : profiles) {\n if ((user.flags & 16) == 16 && user.id != currentUserId && !user.isQuietModeEnabled()) {\n profilesToStart.add(user);\n } else if (user.id != currentUserId && user.isClonedProfile()) {\n Slog.i(\"ActivityManager\", \"startProfilesLocked clone profile: \" + user);\n profilesToStart.add(user);\n }\n }\n int profilesToStartSize = profilesToStart.size();\n int i = 0;\n while (i < profilesToStartSize) {\n startUser(profilesToStart.get(i).id, false);\n i++;\n }\n if (i < profilesToStartSize) {\n Slog.w(\"ActivityManager\", \"More profiles than MAX_RUNNING_USERS\");\n }\n }",
"public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontext = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tsetParent(context);\n\n\n\t\t// reset the original CL, to try to prevent crashing with\n\t\t// other Java AI implementations\n\t\tThread.currentThread().setContextClassLoader(originalContextClassLoader);\n\t}",
"public void prepare_withLoginProfileDetails() throws Exception {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\t}",
"@Override\n protected SpringApplicationBuilder configure(SpringApplicationBuilder application){\n return application.sources(StartUpApplication.class);\n }",
"private void createSharedSingletons(Context applicationContext) {\n\t\t// Create Active User\n\t\tActiveUserModel.createInstance(applicationContext);\n\n\t\t// Create Favorites List\n\t\tFavoriteTopicModelList.createInstance(applicationContext);\n\t\tFavoriteCommentModelList.createInstance(applicationContext);\n\n\t\t// Create Read Later list\n\t\tReadLaterTopicModelList.createInstance(applicationContext);\n\t\tReadLaterCommentModelList.createInstance(applicationContext);\n\n\t\t// Create Location Provider\n\t\tLocationProvider.getInstance(applicationContext);\n\t}",
"private void conditionallyActivateDefaultEnvProfile(\r\n\t\t\tfinal ConfigurableEnvironment contextEnv) throws IOException {\r\n\r\n\t\t// if no default env is specified, then don't activate one by default\r\n\t\tif (StringUtils.isEmpty(defaultEnvProfile)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// check if any env profile is activated\r\n\t\tboolean envProfileActivated = false;\r\n\t\tfor (String profile : ENVIRONMENT_PROFILES) {\r\n\t\t\tif (contextEnv.acceptsProfiles(profile)) {\r\n\t\t\t\tenvProfileActivated = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// if no env profile was activated, activate the defaultEnvProfile\r\n\t\tif (!envProfileActivated) {\r\n\t\t\tLOGGER.info(\"No Env Profile Activated, Defaulting to: \"\r\n\t\t\t\t\t+ defaultEnvProfile);\r\n\t\t\tcontextEnv.addActiveProfile(defaultEnvProfile);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\tApplicationContext factory = new AnnotationConfigApplicationContext(AppConfig.class);\n\t\tSamsung s8 = factory.getBean(Samsung.class);\n\t\ts8.config();\n\n\t}",
"@Bean\n public WebSSOProfile webSSOprofile() {\n return new WebSSOProfileImpl();\n }",
"public void setBootstrapProperties(BootstrapProperties bootstrapProperties);",
"private ApplicationContext()\n\t{\n\t}",
"@Profile(\"demo\")\n @Bean\n CommandLineRunner initDatabase(ApiKeyWeatherService apiKeyWeatherService) {\n return args -> {\n apiKeyWeatherService.addApiKey(\"apikey-domo-1\");\n apiKeyWeatherService.addApiKey(\"apikey-domo-2\");\n apiKeyWeatherService.addApiKey(\"apikey-domo-3\");\n apiKeyWeatherService.addApiKey(\"apikey-domo-4\");\n apiKeyWeatherService.addApiKey(\"apikey-domo-5\");\n };\n }",
"@Bean\n\tpublic WebSSOProfile webSSOprofile() {\n\t\treturn new WebSSOProfileImpl();\n\t}",
"public static void addDefaultProfile(final SpringApplication app) {\n final Map<String, Object> defProperties = new HashMap<>();\n /*\n * The default profile to use when no other profiles are defined\n * This cannot be set in the <code>application.yml</code> file.\n * See https://github.com/spring-projects/spring-boot/issues/1219\n */\n defProperties.put(SPRING_PROFILE_DEFAULT, Profiles.LOCAL);\n app.setDefaultProperties(defProperties);\n }",
"public static void main(String[] args) {\n AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();\n ctx.register(ApplicationConfig.class);\n ctx.register(ApplicationContext.class);\n ctx.register(PersistenceContext.class);\n ctx.register(ProductionContext.class);\n ctx.register(SwaggerConfig.class);\n\n SpringApplication.run(Application.class);\n }",
"WithCreate withAutoShutdownProfile(AutoShutdownProfile autoShutdownProfile);",
"public static void main(String[] arguments) {\n\t\tString[] args = new String[1];\n\n\t\t// if the env variable doesn't exist then deploy_env will be null\n\t\t// if running on comp, minc, prodlike, or prod, then the env var should\n\t\t// be there\n\t\tString deployEnv = System.getenv(\"DEPLOY_ENV\");\n\t\tlogger.info(\"DEPLOY_ENV: \" + deployEnv);\n\n\t\tif (deployEnv == null) {\n\t\t\targs[0] = \"--spring.profiles.active=local\";\n\t\t\tlogger.info(\"Will now deployment on: local\");\n\t\t} else {\n\t\t\tif (!(\"comp\".equals(deployEnv) || \"minc\".equals(deployEnv) || \"prodlike\".equals(deployEnv)\n\t\t\t\t\t|| \"prod\".equals(deployEnv))) {\n\t\t\t\tlogger.error(deployEnv + \" is not a recognized deploy environment, aborting.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\targs[0] = \"--spring.profiles.active=\" + deployEnv;\n\t\t\tlogger.info(\"Will now deployment on: \" + deployEnv);\n\t\t}\n\n\t\tSpringApplication.run(UsherApplication.class, args);\n\t\tlogger.info(\"Finish Main\");\n\t}",
"public ApplicationCreator() {\n }",
"@Test\n\tpublic void testContextShouldInitalizeChildContexts() {\n\t\tassertThat(Foo.getInstanceCount()).isEqualTo(1);\n\t\tApplicationContext ctx = springClientFactory.getContext(\"testspec\");\n\n\t\tassertThat(Foo.getInstanceCount()).isEqualTo(1);\n\t\tFoo foo = ctx.getBean(\"foo\", Foo.class);\n\t\tassertThat(foo).isNotNull();\n\t}",
"protected abstract ApplicationContext createApplicationContextImpl(\n MarinerRequestContext requestContext);",
"private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }",
"private void setEnvPropertySources(\r\n\t\t\tfinal ConfigurableApplicationContext applicationContext,\r\n\t\t\tfinal String appName) throws IOException {\r\n\r\n\t\tfinal ConfigurableEnvironment contextEnv = applicationContext\r\n\t\t\t\t.getEnvironment();\r\n\r\n\t\tfor (String profile : ENVIRONMENT_PROFILES) {\r\n\t\t\t// If environment profile is active, add the corresponding property\r\n\t\t\t// source\r\n\t\t\tif (contextEnv.acceptsProfiles(profile)) {\r\n\t\t\t\tcontextEnv\r\n\t\t\t\t\t\t.getPropertySources()\r\n\t\t\t\t\t\t.addFirst(\r\n\t\t\t\t\t\t\t\tnew ResourcePropertySource(\r\n\t\t\t\t\t\t\t\t\t\tBasePropertiesConfig.CLASSPATH_CONFIG_PREFIX\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ appName\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ BasePropertiesConfig.DASH\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ profile\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ BasePropertiesConfig.PROPERTIES_FILE_EXT));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@ModelAttribute(\"roles\")\n\tpublic List<UserProfile> initializeProfiles() {\n\t\treturn userProfileService.findAll();\n\t}",
"@Bean\n\tpublic WebSSOProfileConsumer webSSOprofileConsumer() {\n\t\tWebSSOProfileConsumerImpl webSSOProfileConsumer = new WebSSOProfileConsumerImpl();\n\t\twebSSOProfileConsumer.setMaxAuthenticationAge(2700);// max allow\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// authentication\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// life time (match\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to adfs setting)\n\t\twebSSOProfileConsumer.setResponseSkew(180);// max allow time(in secs)\n\t\t\t\t\t\t\t\t\t\t\t\t\t// difference between idp\n\t\t\t\t\t\t\t\t\t\t\t\t\t// and sp (default 60 secs)\n\t\treturn webSSOProfileConsumer;\n\t}",
"public ProfileSetupActivity() {\n }",
"void getProfilesInTimeWindow(Future<List<AggregatedProfileNamingStrategy>> profiles, String baseDir, String appId, String clusterId, String proc, ZonedDateTime startTime, int durationInSeconds);",
"ApplicationContext getAppCtx();",
"public ProfileApplicationDecoratorImpl(IFile profileApplicationFile,\n \t\t\tCollection<Profile> profiles, ResourceSet resourceSet)\n \t\t\tthrows CoreException, IOException {\n \t\tthis.profileApplicationFile = profileApplicationFile;\n \t\tthis.profiles = profiles;\n \t\tthis.resourceSet = resourceSet;\n \t\tthis.facade = createAndInitializeProfileFacade(profileApplicationFile,\n \t\t\t\tprofiles);\n \t\tthis.dirty = true;\n \t\tthis.profileApplication = facade\n \t\t\t\t.findOrCreateProfileApplication(profiles.iterator().next());\n \t}",
"@Bean\n public WebSSOProfileConsumer webSSOprofileConsumer() {\n return new WebSSOProfileConsumerImpl();\n }",
"private IProfileFacade loadProfileApplication(IFile profileApplicationFile)\n \t\t\tthrows CoreException, IOException {\n \t\tprofileApplicationFile.refreshLocal(IFile.DEPTH_ONE,\n \t\t\t\tnew NullProgressMonitor());\n \t\tIProfileFacade facade = createNewProfileFacade(profileApplicationFile);\n \t\t\n \t\treturn facade;\n \t}",
"@Bean\n\tpublic WebSSOProfile webSSOprofile() {\n\t\treturn new CustomWebSSOProfileImpl();\n\t}",
"@ModelAttribute(\"roles\")\r\n\tpublic List<UserProfile> initializeProfiles() {\r\n\t\treturn userProfileService.findAll();\r\n\t}",
"@Profile(\"development\")\r\n @Bean(name=\"DataSourceBean\") \r\n public DataSource getDevDataSource(){\r\n\t\t\r\n //Create dataSource for HSQLDB connection.\r\n\t\t\r\n\t BasicDataSource dataSource = new BasicDataSource();\r\n\t dataSource.setDriverClassName(\"org.hsqldb.jdbc.JDBCDriver\");\r\n\t //Create HSQLDB in memory. \r\n\t dataSource.setUrl(\"jdbc:hsqldb:mem:mymemdb;ifexists=false;sql.syntax_mys=true\");\r\n\t //Create HSQLDB in file located in the application folder.\r\n //dataSource.setUrl(\"jdbc:hsqldb:file:mymemdb;ifexists=false;sql.syntax_mys=true\");\r\n\t dataSource.setUsername(\"sa\");\r\n\t dataSource.setPassword(\"\");\r\n\t\t\t\t\r\n return dataSource;\r\n }",
"public static void createApplication(String consumerKey, String consumerSecret, int tenantId) {\n try (Connection connection = IdentityDatabaseUtil.getDBConnection();\n PreparedStatement prepStmt = connection.prepareStatement(SQLQueries.OAuthAppDAOSQLQueries.ADD_OAUTH_APP)) {\n prepStmt.setString(1, consumerKey);\n prepStmt.setString(2, consumerSecret);\n prepStmt.setString(3, \"testUser\");\n prepStmt.setInt(4, tenantId);\n prepStmt.setString(5, UserCoreConstants.PRIMARY_DEFAULT_DOMAIN_NAME);\n prepStmt.setString(6, \"oauth2-app\");\n prepStmt.setString(7, \"OAuth-2.0\");\n prepStmt.setString(8, \"some-call-back\");\n prepStmt.setString(9, \"refresh_token urn:ietf:params:oauth:grant-type:saml2-bearer implicit password \" +\n \"client_credentials iwa:ntlm authorization_code urn:ietf:params:oauth:grant-type:jwt-bearer\");\n prepStmt.execute();\n connection.commit();\n } catch (SQLException e) {\n Assert.fail(\"Unable to add Oauth application.\");\n }\n }",
"public KafkaBacksideEnvironment() {\n\t\tConfigPullParser p = new ConfigPullParser(\"kafka-props.xml\");\n\t\tproperties = p.getProperties();\n\t\tconnectors = new HashMap<String, IPluginConnector>();\n\t\t//chatApp = new SimpleChatApp(this);\n\t\t//mainChatApp = new ChatApp(this);\n\t\t//elizaApp = new ElizaApp(this);\n\t\tbootPlugins();\n\t\t//TODO other stuff?\n\t\tSystem.out.println(\"Booted\");\n\t\t//Register a shutdown hook so ^c will properly close things\n\t\tRuntime.getRuntime().addShutdownHook(new Thread() {\n\t\t public void run() { shutDown(); }\n\t\t});\n\t}",
"public static AppTest create(Config config) {return null;}",
"public TestGenericWebXmlContextLoader() {\r\n\t\tsuper(\"/src/main/wepapp\", false);\r\n\t}",
"public void addAppsAndGenerateKeys() throws Exception {\n //TEST_USER_1\n //Subscribe to API with a new application\n HttpResponse applicationResponse = user1ApiStore\n .createApplication(TEST_APPLICATION, \"Test Application\", APIThrottlingTier.UNLIMITED.getState(),\n ApplicationDTO.TokenTypeEnum.JWT);\n assertEquals(applicationResponse.getResponseCode(), HttpStatus.SC_OK, \"Response code is not as expected\");\n\n user1ApplicationId = applicationResponse.getData();\n //Generate production key\n //generate keys for the subscription\n ApplicationKeyDTO applicationKeyDTO = user1ApiStore\n .generateKeys(user1ApplicationId, \"3600\", USER_1_TEST_APP_INITIAL_CBU,\n ApplicationKeyGenerateRequestDTO.KeyTypeEnum.PRODUCTION, null, grantTypes);\n assertNotNull(applicationKeyDTO.getToken().getAccessToken());\n\n //TEST_USER_2\n //Subscribe to API with a new application\n\n applicationResponse = user2ApiStore\n .createApplication(TEST_APPLICATION, \"Test Application\", APIThrottlingTier.UNLIMITED.getState(),\n ApplicationDTO.TokenTypeEnum.JWT);\n assertEquals(applicationResponse.getResponseCode(), HttpStatus.SC_OK, \"Response code is not as expected\");\n\n user2ApplicationId = applicationResponse.getData();\n\n //Generate production key\n applicationKeyDTO = user2ApiStore.generateKeys(user2ApplicationId, \"3600\", USER_2_TEST_APP_INITIAL_CBU,\n ApplicationKeyGenerateRequestDTO.KeyTypeEnum.PRODUCTION, null, grantTypes);\n assertNotNull(applicationKeyDTO.getToken().getAccessToken());\n }",
"public Bootstrap() {\r\n\t\t//Create or load UserList\r\n\t\tuserList = new CopyOnWriteArrayList<User>();\r\n\t\ttry {\r\n\t\t\tuserList = importUserList();\r\n\t\t} catch (FileNotFoundException e){\r\n\t\t\t\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.ip_adresse = StaticFunctions.loadPeerIp();\t\t\t//Load ip-address\r\n\t\t\r\n\t\t//Create a new Zone\r\n\t\tcreateZone(new Point(0.0, 0.0), new Point(1.0, 1.0));\t//initialize zone\r\n\t}",
"private static Configuration loadProperties(final String[] profiles) {\n final CombinedConfiguration configuration = new CombinedConfiguration(DEFAULT_COMBINER);\r\n\r\n // Not very intuitive: First load the specific properties files and then add the default one\r\n final List<String> configurationsToLoad = //\r\n Stream.of(profiles) //\r\n .filter(p -> !isBlank(p)) //\r\n .map(p -> CONFIG_FILE_PREFIX + p) //\r\n .collect(collectingAndThen( //\r\n toList(), //\r\n confs -> { // this code runs AFTER the toList. So the \"application\" is added at the end\r\n confs.add(DEFAULT_CONFIG_FILE_NAME);\r\n return confs;\r\n }));\r\n\r\n // for the sake of readability do a separate stream... but it could be attatched to the collect from above\r\n configurationsToLoad.stream() //\r\n .map(Environment::propertiesFileBuilder) //\r\n .map(Environment::safeGetConfiguration) //\r\n .forEach(configuration::addConfiguration);\r\n\r\n // useful when using docker where you may want to set environment variables in the docker-compose or docker run\r\n System.getenv().forEach((k, v) -> {\r\n if (configuration.containsKey(k)) {\r\n System.out.println(\"Overriding property \" + k + \" with value \" + v);\r\n }\r\n configuration.setProperty(k, v);\r\n });\r\n\r\n return configuration;\r\n }",
"public TemplateAvailabilityProviders(ApplicationContext applicationContext)\n/* */ {\n/* 79 */ this(applicationContext == null ? null : applicationContext.getClassLoader());\n/* */ }",
"private AppContext()\n {\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n profiles = ProfileManager.getDefaultManager().getAllProfiles();\n\n profileList = this;\n }",
"private ClientBootstrap createPeerBootStrap() {\n\n if (workerThreads == 0) {\n execFactory = new NioClientSocketChannelFactory(\n Executors.newCachedThreadPool(groupedThreads(\"onos/pcc\", \"boss-%d\")),\n Executors.newCachedThreadPool(groupedThreads(\"onos/pcc\", \"worker-%d\")));\n return new ClientBootstrap(execFactory);\n } else {\n execFactory = new NioClientSocketChannelFactory(\n Executors.newCachedThreadPool(groupedThreads(\"onos/pcc\", \"boss-%d\")),\n Executors.newCachedThreadPool(groupedThreads(\"onos/pcc\", \"worker-%d\")),\n workerThreads);\n return new ClientBootstrap(execFactory);\n }\n }",
"@Test\r\npublic void baseDirectory() throws Exception{\r\n\taccessdata.setAppguid(\"shiv223acharya\");\r\n\tSystem.out.println(accessdata.getAppguid()); \r\n\t/*primaryService.setAppurl(\"NodeJS/Authentication_Template\");\r\n\t\r\n\tJSONObject json=new JSONObject();\r\n\t\r\n\taccessdata.setParentdirectory(\"\");\r\n\taccessdata.setHookObj(json);\r\n\taccessdata.setRunningapp(\"Drishya\");\r\n\taccessdata.setEndpoint(\"\");\r\n\taccessdata.setDomainguid(\"\");\r\n\taccessdata.setHost(\"\");\r\n\taccessdata.setEnv_json(json);\r\n\t\r\n\tfb.setClientID(\"468331803360754\");\r\n\tfb.setClientSecret(\"8fc8690146770e0a637adcc7293280cc\");\r\n\tGoogle.setClientID(\"625227390094-m47bnlnuaguvq3phn5t5kmp503fsiagd.apps.googleusercontent.com\");\r\n\tGoogle.setClientSecret(\"k0vpP0Tp5dP2oqXmcF9v10G8\");\r\n\tprimaryProviders.setFacebook(fb);\r\n\tprimaryProviders.setGoogle(Google);*/\r\n\tassertNotNull(generateApp.baseDirectory());\r\n}",
"ProfileConfigurationManager getProfileConfigurationManager() throws UserStoreException;",
"@Override\n public void initialize(Bootstrap<ExampleConfiguration> bootstrap)\n {\n ConfigAccessor<ExampleConfiguration> configAccessor = new ConfigAccessor<ExampleConfiguration>()\n {\n @Override\n public WebConfiguration getAppConfiguration(ExampleConfiguration configuration)\n {\n return configuration.web;\n }\n\n @Override\n public Optional<WebConfiguration> getAdminConfiguration(ExampleConfiguration configuration)\n {\n return Optional.empty(); // in this example, we're not using Sobase Web for admin\n }\n };\n bootstrap.addBundle(new WebBundle<>(this::makeModel, configAccessor));\n }",
"public static boolean profileIsActive(ApplicationContext ctx, String profile) {\n if (profile == null || profile.trim().isEmpty()) {\n return true;\n }\n\n String[] activeProfiles = ctx.getEnvironment().getActiveProfiles();\n String[] profiles = profile.split(\",\");\n\n return intersect(activeProfiles, profiles);\n }",
"WithCreate withConnectionProfile(ConnectionProfile connectionProfile);",
"private void launchApplication() {\n driver.manage().deleteAllCookies();\n driver.get(config.getProperty(\"testSiteUrl\"));\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(Integer.parseInt(config.getProperty(\"implicit.wait\")), TimeUnit.SECONDS);\n }",
"@Bean\n public TomcatServletWebServerFactory servletWebServerFactory() {\n return new TomcatServletWebServerFactory() {\n\n @Override\n protected void prepareContext(Host host,\n ServletContextInitializer[] initializers) {\n super.prepareContext(host, initializers);\n StandardContext child = new StandardContext();\n child.addLifecycleListener(new Tomcat.FixContextListener());\n child.setPath(\"/cloudfoundryapplication\");\n ServletContainerInitializer initializer = getServletContextInitializer(\n getContextPath());\n child.addServletContainerInitializer(initializer, Collections.emptySet());\n child.setCrossContext(true);\n host.addChild(child);\n }\n\n };\n }",
"@Override\n public void setActiveProfile(String profileName) {\n }",
"public static void main(String[] args) {\n\t\tAbstractApplicationContext context=new AnnotationConfigApplicationContext(AppConfig.class);\n\t\tDriver driver=(Driver) context.getBean(\"driver\");\n\t\tSystem.out.println(\"Driver Details : \"+driver);\n\t}",
"Environment createEnvironment();",
"Environment createEnvironment();",
"public ProfileProjectBean() {\n }",
"@Override\n\tpublic void onApplicationEvent(ApplicationPreparedEvent event) {\n\t\tif (!Stream.of(event.getArgs()).anyMatch(element -> element.equals(\"useAppProps\"))) {\n\n\t\t\tgetSecret();\n\t\t\tConfigurableEnvironment env = event.getApplicationContext().getEnvironment();\n\n\t\t\tProperties props = new Properties();\n\t\t\tProperties secondProp = new Properties();\n\t\t\tString dbConnectionString = \"jdbc:\"+result.get(\"engine\") +\"://\" + result.get(\"host\")+\":\"+String.valueOf(result.get(\"port\"))\n\t\t\t+\"/web1\";\n\t\t\tsecondProp.put(\"spring.datasource.url\",dbConnectionString);\n\t\t\tprops.put(\"spring.datasource.username\", result.get(\"username\"));\n\t\t\tprops.put(\"spring.datasource.password\", result.get(\"password\"));\n\t\t\tprops.put(\"spring.datasource.url\",dbConnectionString);\n\t\t\tenv.getPropertySources().addFirst(new PropertiesPropertySource(\"aws.secret.manager\", props));\n\t\t\t\n\t\t}\n\n\t}",
"@Override\r\n public InitialContextFactory createInitialContextFactory(Hashtable<?, ?> environment)\r\n {\r\n if (activated == null && environment != null) {\r\n Object icf = environment.get(Context.INITIAL_CONTEXT_FACTORY);\r\n if (icf != null) {\r\n Class<?> icfClass;\r\n if (icf instanceof Class) {\r\n icfClass = (Class<?>) icf;\r\n } else if (icf instanceof String) {\r\n icfClass = resolveClassName((String) icf, getClass().getClassLoader());\r\n } else {\r\n throw new IllegalArgumentException(\"Invalid value type for environment key [\" +\r\n Context.INITIAL_CONTEXT_FACTORY + \"]: \" + icf.getClass().getName());\r\n }\r\n if (!InitialContextFactory.class.isAssignableFrom(icfClass)) {\r\n throw new IllegalArgumentException(\r\n \"Specified class does not implement [\" + InitialContextFactory.class.getName() + \"]: \" + icf);\r\n }\r\n try {\r\n return (InitialContextFactory) icfClass.newInstance();\r\n } catch (Throwable ex) {\r\n throw new IllegalStateException(\"Cannot instantiate specified InitialContextFactory: \" + icf, ex);\r\n }\r\n }\r\n }\r\n\r\n // Default case...\r\n return new InitialContextFactory()\r\n {\r\n @Override\r\n @SuppressWarnings(\"unchecked\")\r\n public Context getInitialContext(Hashtable<?, ?> environment)\r\n {\r\n return new SimpleNamingContext(\"\", boundObjects, (Hashtable<String, Object>) environment);\r\n }\r\n };\r\n }",
"public void setApplicationProfile( String iApplicationProfile )\n {\n mApplicationProfile = iApplicationProfile;\n }",
"public WebElement profileSetUpTab() {\n\t\treturn getElementfluent(By.xpath(\"//menuitem[contains(text(),'Profile')]\"));\n\t}",
"@Bean\n\tpublic WebSSOProfileECPImpl ecpprofile() {\n\t\treturn new WebSSOProfileECPImpl();\n\t}",
"@Bean\n\tpublic WebSSOProfileECPImpl ecpprofile() {\n\t\treturn new WebSSOProfileECPImpl();\n\t}",
"@ModelAttribute(\"roles\")\n public List<UserProfile> initializeProfiles() {\n return userProfileService.findAll();\n }",
"@Keep\n public AppBean(Long id, String app_name, String app_info, Long master_account, Long chain_id, Long user_id) {\n this.id = id;\n this.app_name = app_name;\n this.app_info = app_info;\n this.chain_id = chain_id;\n this.user_id = user_id;\n }",
"public static void main(String[] args) {\r\n\r\n\t \tSystem.setProperty(\"spring.config.name\", \"sandun-personal-project\");\r\n\t\tSpringApplication.run(ApplicationServer.class, args);\r\n\t}",
"@Override\n protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {\n return application.sources(DemowebosApplication.class);\n }",
"public static void initializeApp(Context context) {\n }",
"void setAppCtx(ApplicationContext appCtx);",
"ProfileFactory getProfileFactory( DataSourceMetadata dataSourceMetadata );",
"Context createContext();",
"Context createContext();",
"public Profile() {}",
"public static void main(String[] args){\n\t\tAnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MyConfig.class);\n\t\t//applicationContext.addApplicationListener(new MyApplicationStartListener());\n\t\tapplicationContext.setParent(new ClassPathXmlApplicationContext(\"WEB-INF/application-context.xml\"));\n\t\tapplicationContext.start();\n\t\t\n\t\tHelloWorld helloWorld = (HelloWorld) applicationContext.getBean(\"helloWorld\");\n\t\thelloWorld.sayHello();\n\t\t\n\t\t/*BookJdbcTemplate bookJdbcTemplate = new BookJdbcTemplate();\n\t\tJdbcTemplate jdbcTemplate = (JdbcTemplate) applicationContext.getBean(\"jdbcTemplate\");\n\t\tbookJdbcTemplate.setJdbcTemplate(jdbcTemplate);\n\t\tSystem.out.println(\"Total pages are: \" + bookJdbcTemplate.getTotalPages((long)11));\n\t\tlogger.debug(\"Total pages are: \" + bookJdbcTemplate.getTotalPages((long)11));*/\n\t}",
"public Object createContext(ApplicationRequest request,\n ApplicationResponse response);",
"public static void main(String args[]) throws Exception{\n\n System.setProperty(\"env\",\"qa2\");\n AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(EnvironmentConfig.class);\n ApiController controller=context.getBean(\"apiController\",ApiController.class);\n/// System.out.println(controller.login().getBody().jsonPath().getString(\"access_token\"));\n\n controller.login();\n System.out.println(controller.createManagementCompany());\n controller.doGeoSetup();\n Thread.sleep(2000);\n System.out.println(controller.defineSegmentTypes().statusCode());\n Thread.sleep(2000);\n System.out.println(controller.defineSegmentCategoryStructure().statusCode());\n Thread.sleep(2000);\n controller.createProperty();\n Thread.sleep(2000);\n controller.createCompanySegment();\n Thread.sleep(2000);\n controller.createSegment();\n //Thread.sleep(2000);\n //controller.deactiveManagementId();\n Thread.sleep(2000);\n // controller.generateRdpData();\n // System.out.println(new Date());\n controller.createImpactEvent();\n // PropertyUser controller=context.getBean(\"propertyUser\",PropertyUser.class);\n UserPermissionData userPermissionData=new UserPermissionData();\n controller.createNewUser(UserTypeConstants.PROPERTY_USER,userPermissionData.getPropertyUserPermission());\n context.close();\n }"
] | [
"0.62302846",
"0.6020415",
"0.59655446",
"0.5931502",
"0.5855035",
"0.5525925",
"0.5497527",
"0.5441762",
"0.53755563",
"0.53265935",
"0.5304426",
"0.52873814",
"0.52092105",
"0.50457644",
"0.49491674",
"0.49115357",
"0.4892114",
"0.48584235",
"0.48563382",
"0.48320454",
"0.4823188",
"0.47969767",
"0.47899312",
"0.47700387",
"0.47640863",
"0.4758197",
"0.47490826",
"0.47472477",
"0.4747138",
"0.4738515",
"0.47350726",
"0.47199622",
"0.47190127",
"0.47117373",
"0.46935588",
"0.46737045",
"0.4666076",
"0.46481326",
"0.46130422",
"0.4607132",
"0.4605151",
"0.45979783",
"0.4597137",
"0.45842457",
"0.45806435",
"0.45805368",
"0.45782018",
"0.45715526",
"0.45691654",
"0.45585743",
"0.45572785",
"0.45550337",
"0.4549283",
"0.454756",
"0.45445266",
"0.4540149",
"0.453953",
"0.45367205",
"0.45334238",
"0.45245597",
"0.45209745",
"0.45148486",
"0.45037955",
"0.44973606",
"0.44969708",
"0.44949904",
"0.44824776",
"0.4482294",
"0.44765127",
"0.4472267",
"0.44716465",
"0.44691914",
"0.44606736",
"0.44588745",
"0.4456437",
"0.444859",
"0.44455597",
"0.44450805",
"0.44428575",
"0.44428575",
"0.44416636",
"0.44394076",
"0.44391048",
"0.44361475",
"0.44306117",
"0.44303197",
"0.44303197",
"0.44296616",
"0.4425286",
"0.44242823",
"0.44201535",
"0.44120976",
"0.440823",
"0.4407893",
"0.44078797",
"0.44078797",
"0.4406357",
"0.4404377",
"0.43991277",
"0.43967298"
] | 0.7027807 | 0 |
This function is called at the start of each round You are required to return the Move your player will play before the timeout. | @Override
public Move stateMachineSelectMove(long timeout) throws TransitionDefinitionException, MoveDefinitionException, GoalDefinitionException
{
long start = System.currentTimeMillis();
List<Move> moves = getStateMachine().findLegals(getRole(), getCurrentState());
// Legal gamer always selects the 0-indexed move from the move list
Move selection = (moves.get(0));
long stop = System.currentTimeMillis();
notifyObservers(new GamerSelectedMoveEvent(moves, selection, stop - start));
return selection;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void makeRandonMove() {\r\n\t\tif (randPlayer.getPlayerNumber() == game.getState().getTurn() && !game.getState().isFinished()) game.execute(randPlayer.requestAction(game.getState()));\r\n\t}",
"@Override\n public PlayerMove move() {\n\n return null;\n }",
"public void play() {\n HashSet<Board> positionsPlayed = new HashSet<Board>();\n _board = new Board();\n\n while (true) {\n int playerInd = _board.turn().ordinal();\n Move next;\n if (_playing) {\n if (_board.gameOver()) {\n announceWinner();\n _playing = false;\n continue;\n }\n if (_hasGUI) {\n if (_players[playerInd].type().equals(\"human\")) {\n if (_ready) {\n next = _nextMove;\n } else if (_readyCommand) {\n processCommand(_nextCommand);\n next = null;\n } else {\n continue;\n }\n } else {\n next = _players[playerInd].makeMove();\n }\n } else {\n next = _players[playerInd].makeMove();\n }\n assert !_playing || next != null;\n } else {\n if (_hasGUI) {\n System.out.print(\"\");\n if (_readyCommand) {\n processString(_nextCommand);\n }\n } else {\n getMove();\n }\n next = null;\n }\n if (next != null) {\n assert _board.isLegal(next);\n _board.makeMove(next);\n if (_players[playerInd].type().equals(\"machine\") && !_hasGUI) {\n System.out.println(_players[playerInd].side().abbrev().toUpperCase() + \"::\" + next.toString());\n if (_autoprint) {\n System.out.println(_board.toString2());\n }\n }\n if (_board.gameOver()) {\n announceWinner();\n _playing = false;\n }\n }\n _ready = false;\n }\n }",
"public abstract boolean attemptMove(Player currentPlayerObj, Coordinate move);",
"@Test\n void moveWithinPLAYING() {\n getGame().start();\n assertThat(getGame().isInProgress()).isTrue();\n getGame().move(getPlayer(), Direction.EAST);\n assertThat(getPlayer().isAlive()).isTrue();\n verifyZeroInteractions(observer);\n assertThat(getGame().isInProgress()).isTrue();\n }",
"public Player nextMove() {\n\t\treturn null;\n\t\t\n\t}",
"@Override\n public void timePassed() {\n moveOneStep();\n }",
"private void move() {\n resetUpdate();\n\n gameMessage.setSpace1(clientMessage.getSpace1());\n gameMessage.resetGameMessage();\n gameMessage.notify(gameMessage);\n\n\n if( liteGame.isWinner() ) endOfTheGame = true;\n }",
"private void randomMove() {\n }",
"@Test\n public void testSimpleMove()\n {\n theEngine.start();\n assertTrue(theEngine.inPlayingState());\n theEngine.movePlayer(1, 0);\n assertTrue(theEngine.inPlayingState());\n }",
"private void play() {\r\n\t\tfor (int i = 0; i < players.length; i++) {\r\n\t\t\tPlayer p = players[i];\r\n\t\t\tif (p instanceof ComputerPlayer) {\r\n\t\t\t\tfirstMove[i] = ((ComputerPlayer) p).makeFirstMove(board);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (firstMove[0] != null && firstMoveScores[0] > 0) {\r\n\t\t\tcalcBestFirstMove();\r\n\t\t}\r\n\r\n\t\twhile (!(board.gameOver())) {\r\n\t\t\t/* \tNIET LANGER NODIG GELOOF IK, DIT KAN DE SERVER (ICM EEN TIMER) DOEN\r\n\r\n\t\t\tplayers[(moveNr + startingPlayer) % players.length].makeMove(board);\r\n\t\t\tserver.updateHand(players[(moveNr + startingPlayer) % players.length],\r\n\t\t\t\t\tplayers[(moveNr + startingPlayer) % players.length].updateHand());\r\n\t\t\tmoveNr++;*/\r\n\t\t}\r\n\t}",
"public TurnState step() {\n ReadOnlyHistory history = board.viewHistory();\n \n if (!isGameOver) {\n Player next = nextPlayer();\n Move move = null;\n \n try {\n final long startTime = System.currentTimeMillis();\n move = next.play(history);\n next.addTime(System.currentTimeMillis() - startTime);\n \n if (next.getTime() >= timeLimit || !board.isValid(move)){\n isGameOver = true;\n }\n else {\n board.set(move);\n }\n }\n catch (IllegalArgumentException ex) {\n System.err.println(\"Player \" + next.getName() + \": \" + ex.getMessage());\n isGameOver = true;\n }\n catch (ArrayIndexOutOfBoundsException ex) {\n System.err.println(\"Player \" + next.getName() + \": \" + ex.getMessage());\n isGameOver = true;\n }\n \n return new TurnState(next, move, isGameOver);\n }\n else {\n return new TurnState(null, null, true);\n }\n }",
"private static void move() {\r\n\t\ttry {\r\n\t\t\tThread.sleep(timer);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\trunTime += timer;\r\n\t\tif (runTime > stepUp) {\r\n\t\t\ttimer *= 0.9;\r\n\t\t\tstepUp += 5000;\r\n\t\t}\r\n\r\n\t\tupdateSnake(lastMove);\r\n\t\t// updateField();\r\n\r\n\t\tif (score >= 10 && (r.nextInt(40) == 0)) {\r\n\t\t\taddFood(MOUSE);\r\n\t\t}\r\n\t\tif (score >= 30 && (r.nextInt(50) == 0)) {\r\n\t\t\taddFood(POISON);\r\n\t\t}\r\n\t}",
"int playerMoveStart(Player player, int oldAmount);",
"public void makeRandomMove() {\n\t\ttry{\r\n\t\t\tif (playerId == game.getState().getTurn()){\r\n\t\t\t\tgame.execute(randPlayer.requestAction(game.getState()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(IllegalArgumentException e){\r\n\t\t\t\r\n\t\t}\r\n\t}",
"private GameResponse playNextRound() {\n if(gameResponse.getPoint() == 0) {\n gameResponse.setMessage(null);\n roll();\n gameResponse.setPoint(currentRoll);\n if (WINS.contains(gameResponse.getPoint())) {\n completeRound(GameEnum.WON);\n return gameResponse;\n } else if (LOSES.contains(gameResponse.getPoint())) {\n completeRound(GameEnum.LOST);\n return gameResponse;\n }\n } else {\n roll();\n if (currentRoll == gameResponse.getPoint()) {\n completeRound(GameEnum.WON);\n return gameResponse;\n } else if (currentRoll == 7) {\n completeRound(GameEnum.LOST);\n return gameResponse;\n }\n }\n return gameResponse;\n }",
"private void nextRound()\n {\n Player currentPlayer = roundManager.next();\n\n if(!currentPlayer.getClientConnection().isConnected() || !currentPlayer.getClientConnection().isLogged())\n {\n if(currentPlayer.equals(lastFinalFrenzyPlayer))return;\n nextRound();\n return;\n }\n\n if(gameMode == GameMode.FINAL_FRENZY_BEFORE_FP && roundManager.isFirstPlayer(currentPlayer))gameMode = GameMode.FINAL_FRENZY_AFTER_FP;\n\n try\n {\n currentPlayer.getView().roundStart();\n notifyOtherClients(currentPlayer, virtualView -> virtualView.showNotification(\"È il turno di \"+currentPlayer.getUsername()));\n\n if(roundManager.isFirstRound() || !currentPlayer.isFirstRoundPlayed()) firstRound(currentPlayer);\n\n for(int i = 0; i < gameMode.getPlayableAction(); i++)\n {\n currentPlayer.resetExecutedAction();\n boolean continueRound = executeAction(currentPlayer);\n if(!continueRound)break;\n }\n\n if(gameMode == GameMode.NORMAL)new ReloadAction(this, currentPlayer, ReloadAction.RELOAD_ALL).execute();\n }\n catch (ConnectionErrorException e)\n {\n Logger.error(\"Connection error during \"+currentPlayer.getUsername()+\"'s round!\");\n notifyOtherClients(currentPlayer, virtualView -> virtualView.showNotification(currentPlayer.getUsername()+\" si è disconnesso!\"));\n }\n catch (TimeOutException e)\n {\n Logger.info(\"Player \"+currentPlayer.getUsername()+\" has finished his time\");\n }\n\n currentPlayer.getView().roundEnd();\n currentPlayer.resetExecutedAction();\n refillMap();\n sendBroadcastUpdate();\n if(isFinalFrenzy())currentPlayer.setLastRoundPlayed(true);\n handleDeadPlayers(currentPlayer);\n if(isFinalFrenzy() && currentPlayer.equals(lastFinalFrenzyPlayer))return;\n checkForFinalFrenzy(currentPlayer);\n if(match.connectedPlayerSize() <= 0 || match.connectedPlayerSize() < MatchSettings.getInstance().getMinPlayers())return;\n nextRound();\n\n }",
"public abstract void playMove(Move move, int indexOfMove);",
"public void move()\n {\n if (!alive) {\n return;\n }\n\n if (speedTimer > 0) {\n speedTimer --;\n } else if (speedTimer == 0 && speed != DEFAULT_SPEED) {\n speed = DEFAULT_SPEED;\n }\n\n Location last = playerLocations.get(playerLocations.size()-1);\n Location next = null;\n\n // For the speed, iterate x blocks between last and next\n\n if (direction == UPKEY)\n {\n next = getLocation(last.getX(), (int)(last.getY() - speed * getPixelSize()));\n } else if (direction == DOWNKEY)\n {\n next = getLocation(last.getX(), (int)(last.getY() + speed * getPixelSize()));\n } else if (direction == LEFTKEY)\n {\n next = getLocation((int)(last.getX() - speed * getPixelSize()), last.getY());\n } else if (direction == RIGHTKEY)\n {\n next = getLocation((int)(last.getX() + speed * getPixelSize()), last.getY());\n }\n\n ArrayList<Location> line = getLine(last, next);\n\n if (line.size() == 0) {\n gameOver();\n return;\n }\n\n for (Location loc : line) {\n if (checkCrash (loc)) {\n gameOver();\n return;\n } else {\n // Former bug: For some reason when a player eats a powerup a hole appears in the line where the powerup was.\n Location l2 = getLocation(loc.getX(), loc.getY());\n l2.setType(LocationType.PLAYER);\n l2.setColor(this.col);\n\n playerLocations.add(l2);\n getGridCache().add(l2);\n }\n }\n }",
"private int Rand_Move() {\n\t\tRandom r = new Random();\n\t\tint move = NO_MOVE;\n\t\tdo{\n\t\t\tmove = r.nextInt(9);\n\t\t}while(square_empty[move] == false);\n\t\treturn move;\n\t}",
"private void checkMovement()\n {\n if (frames % 600 == 0)\n {\n \n ifAllowedToMove = true;\n \n \n }\n \n }",
"public void tryMove() {\n if(!currentPlayer.getHasPlayed()){\n if (!currentPlayer.isEmployed()) {\n String destStr = chooseNeighbor();\n\n currentPlayer.moveTo(destStr, getBoardSet(destStr));\n if(currentPlayer.getLocation().getFlipStage() == 0){\n currentPlayer.getLocation().flipSet();\n }\n refreshPlayerPanel();\n }\n else {\n view.showPopUp(currentPlayer.isComputer(), \"Since you are employed in a role, you cannot move but you can act or rehearse if you have not already\");\n }\n }\n else{ \n view.showPopUp(currentPlayer.isComputer(), \"You've already moved, rehearsed or acted this turn. Try a different command or click `end turn` to end turn your turn.\");\n }\n view.updateSidePanel(playerArray);\n }",
"public boolean requestMove() {\r\n if (game != null) {\r\n player.getMove();\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"@Override\n\tpublic void moveExecStart(Counter player) {\n\n\t}",
"@Override\r\n public int playGameLoop() {\r\n return 0;\r\n }",
"public int run() {\r\n // Player 1 plays first, and is X.\r\n while (true) {\r\n if (this.board.gameOver()) {\r\n break;\r\n }\r\n Move m1 = p1.makeMove(this.board.clone());\r\n this.board.makeMove(m1, this.p1.getSide());\r\n \r\n if (this.board.gameOver()) {\r\n break;\r\n }\r\n Move m2 = p2.makeMove(this.board.clone());\r\n this.board.makeMove(m2, this.p2.getSide()); \r\n }\r\n // Done with game.\r\n return this.board.winner();\r\n }",
"public void timePassed() {\n this.moveOneStep();\n }",
"@Override\r\n public void run() {\r\n move();\r\n }",
"public abstract void move(int elapsedTime);",
"@Test\n public void onlyStartPlayerMoves() {\n assertTrue(game.move(Location.R1, Location.R3));\n assertEquals(1, game.getCount(Location.R3));\n assertEquals(1, game.getCount(Location.R1));\n }",
"public void MoveTileSelf(Integer position){\n /**\n * if opponent activated confusion - move to a random tile\n */\n if(confused){\n //random tile for confusion\n Integer tile;\n do{\n Integer tile1 = returnRandom(getNthDigit(position,1)-1,getNthDigit(position,1)+2);\n Integer tile2 = returnRandom(getNthDigit(position,2)-1,getNthDigit(position,2)+2); // between 0 and 2\n tile = Integer.parseInt(tile1.toString() + tile2.toString());\n }while (tile==myTile || tile==opponentTile || getNthDigit(tile,1)<1 || getNthDigit(tile,1)>7 || getNthDigit(tile,2)<1 || getNthDigit(tile,2)>7);\n position = tile;\n showTimedAlertDialog(\"You are confused!\", \"moving at a random direction\", 5);\n confused = false;\n }\n\n /**\n * send message to opponent\n */\n MultiplayerManager.getInstance().SendMessage(position.toString());\n\n if(!is_debug){\n HandleLejos(myTile, position);\n }\n\n ImageView player1 = findImageButton(\"square_\"+position.toString());\n ImageView player1_old = findImageButton(\"square_\"+myTile.toString());\n player1.setImageDrawable(getResources().getDrawable(R.drawable.tank_blue));\n player1_old.setImageDrawable(getResources().getDrawable(android.R.color.transparent));\n myTile = position;\n myTurn = false;\n turnNumber = turnNumber + 1;\n }",
"private void suarez() {\n\t\ttry {\n\t\t\tThread.sleep(5000); // espera, para dar tempo de ver as mensagens iniciais\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint xInit = -10;\n\t\tint yInit = 8;\n\t\tplayerDeafaultPosition = new Vector2D(xInit*selfPerception.getSide().value(), yInit*selfPerception.getSide().value());\n\t\twhile (commander.isActive()) {\n\t\t\t\n\t\t\tupdatePerceptions(); // deixar aqui, no começo do loop, para ler o resultado do 'move'\n\t\t\tswitch (matchPerception.getState()) {\n\t\t\tcase BEFORE_KICK_OFF:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\t\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase PLAY_ON:\n\t\t\t\t//state = State.FOLLOW;\n\t\t\t\texecuteStateMachine();\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_LEFT: // escanteio time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_RIGHT: // escanteio time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_IN_LEFT: // lateral time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\tcase KICK_IN_RIGHT: // lateal time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_LEFT: // Tiro livre time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_RIGHT: // Tiro Livre time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_LEFT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_RIGHT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t}",
"public void play() {\r\n int ii = 0;\r\n\r\n System.out.println(\"****************************************************************\");\r\n System.out.println(\"Play game: a move is expressed as \\\"row#,col#\\\", such as \\\"1,2\\\"\");\r\n System.out.println(\"Computer: X Person: O\");\r\n System.out.println(\"****************************************************************\");\r\n while(!isGameEnded()) {\r\n if (ii >= MAX_MOVE_NUMBER) {\r\n\tbreak;\r\n }\r\n\r\n nextMove();\r\n ii++;\r\n }\r\n\r\n if (isPersonWin()) {\r\n System.out.println(\"Person Wins!\");\r\n saveLoseRecord();\r\n }\r\n else if (isComputerWin()) {\r\n System.out.println(\"Computer Wins!\");\r\n }\r\n else {\r\n System.out.println(\"Tie!\");\r\n }\r\n\r\n }",
"public boolean playNextStep(Move otherMove) {\n if (isGameFinished()) {\n return false;\n }\n // If we are in move creation state, we add move and move to next player.\n if (isCreateMoveState) {\n if(addMove(otherMove)){\n nextPlayer();\n isCreateMoveState = false;\n return true;\n }\n else{\n return false;\n }\n\n\n } else {\n // If we are in KopyMove state, we compare moves and increment to next move or player.\n boolean succeeded = compareMove(otherMove);\n if (!succeeded) {\n // If we kill the current player, the index will fix automatically.\n killCurrentPlayer();\n } else {\n nextMove();\n }\n return succeeded;\n }\n }",
"private void playTurn()\n {\n try\n {\n XMLHandler.saveGame(game, GAME_CLONE_PATH);\n }\n catch(IOException | JAXBException | SAXException ex)\n {\n // TODO... ConsoleUtils.message(\"An internal save error has occured, terminating current game\");\n gameEnded = true;\n return;\n }\n \n moveCycle();\n \n if (!game.validateGame()) \n {\n IllegalBoardPenalty();\n }\n \n String gameOverMessage = game.isGameOver();\n if (gameOverMessage != null) \n {\n //TODO: ConsoleUtils.message(gameOverMessage);\n gameEnded = true;\n }\n \n game.switchPlayer();\n }",
"@Override\n public void run() {\n if (time == 0) {\n // wait has ended time to teleport\n if (!Utils.homeExists(homeOwner, homeName)) {\n // the has since been deleted whilst waiting\n p.sendMessage(\"There was an error teleporting you.\");\n cancel();\n return;\n }\n Utils.teleportPlayer((Player) sender, homeOwner, homeName);\n sender.sendMessage(Utils.chat(plugin.getConfig().getString(\"teleport-color\") + plugin.getConfig().getString(\"teleport-message\")));\n cancel();\n return;\n }\n Location currentLocation = ((Player) sender).getLocation();\n if (initialLocation.getX() != currentLocation.getX() ||\n initialLocation.getY() != currentLocation.getY() ||\n initialLocation.getZ() != currentLocation.getZ()) {\n // they've moved and the config says to cancel on move\n sender.sendMessage(Utils.chat(plugin.getConfig().getString(\"move-cancel-message\")));\n cancel();\n }\n else {\n sender.sendMessage(Utils.chat(plugin.getConfig().getString(\"countdown-message\").replace(\"<time>\", Integer.toString(time))));\n time--;\n }\n }",
"Move getMove() {\n try {\n boolean playing0 = _playing;\n while (_playing == playing0) {\n prompt();\n\n String line = _input.readLine();\n if (line == null) {\n quit();\n }\n line = line.trim();\n if (!processCommand(line)) {\n Move move = Move.create(line, _board);\n if (move == null) {\n error(\"invalid move: %s%n\", line);\n } else if (!_playing) {\n error(\"game not started\");\n } else if (!_board.isLegal(move)) {\n error(\"illegal move: %s%n\", line);\n } else {\n return move;\n }\n }\n }\n } catch (IOException excp) {\n error(1, \"unexpected I/O error on input\");\n }\n return null;\n }",
"@Override\n public State update() {\n if(mRuntime.seconds()<=time) {\n arm.setPosition(pos);\n return this;\n }\n //(1000);\n\n return NextState;\n\n\n\n\n\n }",
"public int getComMove() {\n\n int move;\n\n // Checks if a computer played a move in that spot\n for (int i = 0; i < getBoardSize(); i++) {\n if (playBoard[i] != REAL_PLAYER && playBoard[i] != COM_PLAYER) {\n char currPlace = playBoard[i];\n playBoard[i] = COM_PLAYER;\n\n if (winCheck() == 3) {\n setMove(COM_PLAYER, i);\n return i;\n }\n else {\n playBoard[i] = currPlace;\n }\n }\n }\n\n // Check to block human player from winning\n for (int i = 0; i < getBoardSize(); i++) {\n if (playBoard[i] != REAL_PLAYER && playBoard[i] != COM_PLAYER) {\n char currPlace = playBoard[i];\n playBoard[i] = REAL_PLAYER;\n\n if (winCheck() == 2) {\n setMove(COM_PLAYER, i);\n return i;\n }\n else {\n playBoard[i] = currPlace;\n }\n }\n }\n\n // If play spot is empty, then make move\n do {\n move = randMove.nextInt(getBoardSize());\n } while (playBoard[move] == REAL_PLAYER || playBoard[move] == COM_PLAYER);\n setMove(COM_PLAYER, move);\n\n return move;\n }",
"Move getMove() {\r\n int[] p0 = new int[2];\r\n int[] p1 = new int[3];\r\n\r\n while (_playing) {\r\n while (_playing) {\r\n while (_playing) {\r\n _command.getMouse(p0);\r\n System.out.println(\"_command.getMouse 0\");\r\n if (p0[0] >= 0 && p0[1] >= 0) {\r\n System.out.println(\"We got a mouse move on the board for 0\");\r\n break;\r\n }\r\n try {\r\n Thread.sleep(magic1);\r\n System.out.println(\"This is the thread.sleep.\");\r\n } catch (InterruptedException ex) {\r\n System.out.println(\"This is the interruption.\");\r\n return null;\r\n }\r\n }\r\n if (!_playing) {\r\n return null;\r\n }\r\n if (_board.get(p0[0] + 1, p0[1] + 1) == _board.turn()) {\r\n System.out.print(\"Warning!!!\");\r\n break;\r\n }\r\n }\r\n if (!_playing) {\r\n return null;\r\n }\r\n while (_playing) {\r\n _command.getMouse(p1);\r\n System.out.println(\"_command.getMouse 1\");\r\n if (p1[0] >= 0 && p1[1] >= 0) {\r\n System.out.println(\"We got a mouse move on the board for 1\");\r\n break;\r\n }\r\n try {\r\n Thread.sleep(magic1);\r\n System.out.println(\"This is the thread.sleep.\");\r\n } catch (InterruptedException ex) {\r\n System.out.println(\"This is the interruption.\");\r\n return null;\r\n }\r\n }\r\n if (!_playing) {\r\n return null;\r\n }\r\n if (p0[0] == p1[0] || p0[1] == p1[1]\r\n || Math.abs(p1[0] - p0[0]) == Math.abs(p1[1] - p0[1])) {\r\n Move m = Move.create(p0[0] + 1, p0[1] + 1, p1[0] + 1, p1[1] + 1,\r\n _board);\r\n if (m != null && _board.isLegal(m)) {\r\n return m;\r\n }\r\n }\r\n }\r\n return null;\r\n }",
"public boolean playMove(String input_command) {\n // This function will take a command, validates input and calls for a move for a\n // player\n // whoes turn is there.\n String[] inputs = input_command.split(\" \");\n String move = inputs[0];\n PlayerController playerController = getNextPlayer();\n this.playerControllerList.remove(playerController);\n System.out.println(\"\\nPlayer\" + playerController.getPlayerId() + \" choosed:\" + input_command + \" move\");\n System.out.println(\"Before playing move=>\" + getStateOfPlayer(playerController));\n System.out.println(\"Before playing move=> Board State:\" + getStateOfBoard());\n switch (move) {\n case \"STRIKE\":\n this.gameController.strikeMove(playerController);\n break;\n case \"MULTI_STRIKE\":\n // We should take one more input that is count of striked coins\n this.gameController.multiStrikeMove(playerController, Integer.parseInt(inputs[1]));\n break;\n case \"RED_STRIKE\":\n this.gameController.redStrikeMove(playerController);\n break;\n case \"NONE\":\n this.gameController.noneMove(playerController);\n break;\n case \"DEFUNCT_COIN\":\n if(inputs[1].equals(\"BLACK\")){\n this.gameController.defunctCoinMove(playerController, CoinType.BLACK);\n }else if(inputs[1].equals(\"RED\")){\n this.gameController.defunctCoinMove(playerController, CoinType.RED);\n }\n break;\n case \"STRIKER_STRIKE\":\n this.gameController.strikerStrikeMove(playerController);\n break;\n }\n this.playerControllerList.add(playerController);\n System.out.println(\"After playing move=> Board State:\" + getStateOfBoard());\n System.out.println(\"After playing move=>\" + getStateOfPlayer(playerController) + \"\\n\");\n changeTurn();\n PlayerController winner = calculateWinner();\n if (winner != null) {\n System.out.println(\"Winner is:Player\" + winner.getPlayerId() + \" having points:\" + winner.getPoints());\n return false;\n } else {\n if (this.gameController.isBoardEmpty() == true) {\n System.out.println(\"Match is draw\");\n return false;\n }\n }\n return true;\n }",
"public void playerTurnStart() {\n\r\n\t}",
"@Override\r\n public void makeMove(Board board) {\n System.out.println(\"Next to Play: \" + SidetoString(switchSide(board.currentSide))); //Prompt information, similar to example script.\r\n System.out.println(PlayertoString());\r\n System.out.println(\"This is probably a good move!\");\r\n Random random = new Random();\r\n List<Move> MovePool = board.getAllValidMovesForPlayers(getSide()); //Get all available Moves.\r\n float StartTime = System.nanoTime();\r\n Move move = MovePool.get(random.nextInt(MovePool.size())); //Get a random Move.\r\n float EndTime = System.nanoTime();\r\n board.processMove(move, getSide()); //Make Move then print out time taken, similar to example script.\r\n System.out.println(\"Move made: \" + board.PieceTypeToString(board.getPieceType(move.sequence.get(move.length - 1).end_row, move.sequence.get(move.length - 1).end_col)) + \": \" + move.toString());\r\n TurnTime = ((EndTime - StartTime) / 1000000000.f);\r\n System.out.format(\"Time taken: %.3f\\n\", TurnTime);\r\n TotalTimeTaken += TurnTime;\r\n TurnTime = 0;\r\n }",
"private void myTurn()\n\t{\n\t\t\n\t\tif (canPlay())\n\t\t{\n\t\t\tif (isTop())\n\t\t\t{\n\t\t\t\traise();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tequal();\n\t\t\t}\n\t\t}\n\t\ttable.nextPlayer();\n\t\t\n\t}",
"private void playGame() {\n do {\n new Round(this);\n } while (!winner.isPresent());\n }",
"boolean isMoveFinished(int tick);",
"void playerMove(State state);",
"@Override\n\tpublic void makeNextMove() \n\t{\n\t}",
"public void move()\n {\n move(WALKING_SPEED);\n }",
"public void act() \n {\n moveTowardsPlayer(); \n }",
"public void AskForMove();",
"private Stats playSimulatorGame4() {\n IGrid grid = new Grid();\n\n Field[][] fields = new Field[][] { { Field.EMPTY, Field.EMPTY, Field.EMPTY, Field.EMPTY },\n { Field.BOTTLE, Field.BOTTLE /* start */, Field.EMPTY, Field.EMPTY },\n { Field.EMPTY, Field.EMPTY, Field.EMPTY, Field.EMPTY },\n { Field.EMPTY, Field.EMPTY, Field.EMPTY, Field.EMPTY } };\n grid.setGrid(fields, 1, 1);\n\n Robot robot = mock(Robot.class);\n\n // random move\n when(robot.nextMove(Field.BOTTLE, Field.BOTTLE, Field.EMPTY, Field.EMPTY, Field.EMPTY))\n .thenReturn(Move.SKIP_TURN);\n\n AbstractSimulator simulator = simulatorConstructor.apply(5);\n return simulator.playGame(robot, grid, new Random());\n }",
"void playerPassedStart(Player player);",
"public void play() {\r\n _board = new Board();\r\n _command = new LoaGUI(\"Lines of Action\", this);\r\n\r\n while (true) {\r\n int playerInd = _board.turn().ordinal();\r\n if (_playing) {\r\n if (_board.gameOver()) {\r\n announceWinner();\r\n _playing = false;\r\n continue;\r\n }\r\n Move next = _players[playerInd].makeMove();\r\n System.out.println(\"The move is get\");\r\n if (next != null) {\r\n assert _board.isLegal(next);\r\n _board.makeMove(next);\r\n _command.repaint();\r\n System.out.println(\"Repaint\");\r\n if (_board.gameOver()) {\r\n announceWinner();\r\n _playing = false;\r\n }\r\n }\r\n } else {\r\n try {\r\n Thread.sleep(magic2);\r\n } catch (InterruptedException ex) {\r\n return;\r\n }\r\n }\r\n }\r\n }",
"public Player getPlayerToMove()\n {\n return playerToMove;\n }",
"public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.x != 0) {\t\t\t\t\n\t\t\t\t\tcurrentLocation.x--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (currentLocation.y - ChristopherColumbusLocation.y < 0) {\n\t\t\t\tif (currentLocation.y + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.y++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.y != 0) {\n\t\t\t\t\tcurrentLocation.y--;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}",
"@Override\r\n\tpublic void makeSmartMove() {\r\n\t\tif (!game.getState().isFinished() && aiPlayer.getPlayerNumber() == game.getState().getTurn()) {\r\n\t\t\tthis.smartThread = new SmartThread<S, A>(this.aiPlayer, this);\r\n\t\t\tthis.smartThread.start();\r\n\t\t}\r\n\t}",
"public void movePlayer(String nomeArq, int px, int py) {\r\n if(Main.player1.Vez()) {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)){\r\n \tMain.player1.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player1.MudaLado(false,true);\r\n } \r\n pos = Main.player1.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0.1;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false) {\r\n \tMain.player1.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player1.Size()[0],Main.player1.Size()[1])==false)\r\n {\r\n \tMain.player1.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n Main.Fase.repinta(); \r\n }\r\n else {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)) {\r\n \tMain.player2.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player2.MudaLado(false,true);\r\n } \r\n pos = Main.player2.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false) {\r\n \tMain.player2.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false)\r\n {\r\n \tMain.player2.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n }\r\n }",
"@Override\r\n public void tick() {\n playerNextTo();\r\n if (playerContact() && isCollisioned()) {\r\n if (!((GameState) game.getGameState()).getWorld().getTile((int) (x + xMove), (int) (y + yMove)).isSolid()\r\n && isValidMove(xMove, yMove)) {\r\n x += xMove;\r\n y += yMove;\r\n }\r\n }\r\n }",
"public void play()\r\n\t{\r\n \r\n\t\tupdateMessage(\"Starting \" + name + \" between \"+ agent[0].name+ \" and \"+ agent[1].name+\".\");\r\n random = new Random(System.currentTimeMillis());\r\n\t\tint turn = random.nextInt(2);\r\n first=turn;\r\n\t\tint dimension=8;\r\n\t\t//System.out.println(agent[turn].name+ \" makes the first move.\");\r\n\t\t//initialize(false,dimension,dimension);\r\n set(agent[first].role);\r\n agent[0].setAvailable(agent[first].role, dimension);\r\n agent[1].setAvailable(agent[first].role, dimension);\r\n \r\n \r\n\t\t//showGameState();\r\n \r\n\t\twhile(!isFinished())\r\n\t\t{\r\n\t\t\tupdateMessage(agent[turn].name+ \"'s turn. \");\r\n\t\t\tagent[turn].makeMove(this);\r\n agent[(turn+1)%2].off(agent[turn].newx,agent[turn].newy );\r\n agent[(turn+1)%2].setNew((OTHELLO)this);\r\n \r\n \r\n\t\t\tshowGameState();\r\n\t\t\t\r\n\t\t\tturn = (turn+1)%2;\r\n\t\t}\r\n\t\t\r\n // System.out.println(\" final winner role: \"+winner.role+\" agent[0]: \"+agent[0].role+\" agent[1]: \"+agent[1].role);\r\n \r\n\t\t\r\n\t\tif(draw)\t\r\n\t\t\tupdateMessage(\"Game drawn!!\");\r\n else updateMessage(winner.name+ \" wins!!!\");\r\n\t\t\r\n\t}",
"private void HandleOnMoveStart(Board board, Piece turn){}",
"private float getPlayerMove() {\r\n\t\treturn 1.0f / 5;\r\n\t}",
"public AgentAction getNextMove(GameTile [][] visibleMap) {\r\n\t\t//Possible things to add to your moves\r\n//\t\tnextMove = AgentAction.doNothing;\r\n//\t\tnextMove = AgentAction.moveDown;\r\n//\t\tnextMove = AgentAction.moveUp;\r\n//\t\tnextMove = AgentAction.moveUp;\r\n//\t\tnextMove = AgentAction.moveLeft;\r\n//\t\tnextMove = AgentAction.pickupSomething;\r\n//\t\tnextMove = AgentAction.declareVictory;\r\n//\r\n//\t\tnextMove = AgentAction.shootArrowNorth;\r\n//\t\tnextMove = AgentAction.shootArrowSouth;\r\n//\t\tnextMove = AgentAction.shootArrowEast;\r\n//\t\tnextMove = AgentAction.shootArrowWest;\r\n//\t\tnextMove = AgentAction.quit\r\n\t\t\r\n\t\t\r\n\r\n\t\t//Ideally you would remove all this code, but I left it in so the keylistener would work\r\n\t\tif(keyboardPlayOnly) {\r\n\t\t\tif(nextMove == null) {\r\n\t\t\t\treturn AgentAction.doNothing;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tAgentAction tmp = nextMove;\r\n\t\t\t\tnextMove = null;\r\n\t\t\t\treturn tmp;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//This code plays 5 \"games\" and then quits\r\n\t\t\t//Just does random things\r\n\t\t\tif(numGamesPlayed > 19) {\r\n\t\t\t\treturn AgentAction.quit;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(nextMoves.isEmpty()) {\r\n\t\t\t\t\tsetStartingPosition(visibleMap);\r\n//\t\t\t\t\tfindWumpus(visibleMap);\r\n//\t\t\t\t\tfindWumpus(visibleMap);\r\n//\t\t\t\t\tWumpusState currentState = huntTheWumpus(visibleMap);\r\n//\t\t\t\t\tSystem.out.println(wumpusHunted);\r\n//\t\t\t\t\tif(wumpusHunted) {\r\n//\t\t\t\t\t\tcurrentState.setParent(null);\r\n//\t\t\t\t\t\taddToNextMoves(currentState);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//this is the code to collect the gold\r\n//\t\t\t\t\tcurrentState.setParent(null);\r\n//\t\t\t\t\tcurrentState = findTheGold(currentState);\r\n//\t\t\t\t\tif(currentState.getGoldCollected()) {\r\n//\t\t\t\t\t\tcurrentState.setParent(null);\r\n//\t\t\t\t\t\taddToNextMoves(currentState);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tif(!goldCollected) {\r\n\t\t\t\t\t\twellItsDarkNow(visibleMap);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(goldCollected) {\r\n//\t\t\t\t\t\tcurrentState.setParent(null);\r\n\t\t\t\t\t\taddToNextMoves(visibleMap);\r\n//\t\t\t\t\t\tgoldCollected = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tif(!nextMoves.isEmpty()) {\r\n\t\t\t\t\tSystem.out.println(nextMoves.peek());\r\n\t\t\t\t\tsetNextMove(nextMoves.remove());\r\n//\t\t\t\t\tSystem.out.println(nextMove);\r\n//\t\t\t\t\treturn nextMove;\r\n\t\t\t\t}\r\n\t\t\t\treturn nextMove;\r\n//\t\t\t\tcurrentNumMoves++;\r\n//\t\t\t\tif(currentNumMoves < 20) {\r\n//\t\t\t\t\treturn AgentAction.randomAction();\r\n//\t\t\t\t}\r\n//\t\t\t\telse {\r\n//\t\t\t\t\treturn AgentAction.declareVictory;\r\n//\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public void play() {\n\n init();\n while (isGameNotFinished()) {\n log.info(\"*** Starting next turn\");\n for (Player player : getPlayers()) {\n executeTurn(player);\n }\n }\n log.info(\"*** Game Finished\");\n }",
"public void play(){\n\n gameRounds++;\n mRound = new Round(players);\n mRound.beginRound();\n\n }",
"public void playGame() {\t\t\r\n\t\tthis.printWelcomeMessage();\r\n\r\n\t\t// While the game hasn't finished yet. \r\n\t\twhile (!board.isGameWon()) {\r\n\t\t\tthis.printMoveText(\"What piece would you like to move: \", \"\\n-- PLEASE ENTER A VALID PIECE --\", true);\r\n\t\t\tthis.printSeparator();\r\n\t\t\tthis.printMoveText(\"Where would you like to move this piece: \", \"\\n-- PLEASE ENTER A VALID LOCATION --\",\r\n\t\t\t\t\tfalse);\r\n\t\t\tthis.printSeparator();\r\n\t\t}\r\n\t\tSystem.out.println(board.toString());\r\n\t\tSystem.out.println(\"Level Complete - Congratulations!\");\r\n\t}",
"boolean prepareToMove();",
"public void move() {\n super.move(DIRECTION.getRandom());\n }",
"@Override\r\n\tpublic void run() {\r\n\t\twhile (!player.gameEnd) {\r\n\t\t\tif (fst) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t\tfst = false ; \r\n\t\t\t\t}catch (Exception e ) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tplayer.moveDownn();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(time_to_sleep);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public IMove doMove(IGameState state) {\n\n //Find macroboard to play in\n for (int[] move : preferredMoves)\n {\n if(state.getField().getMacroboard()[move[0]][move[1]].equals(IField.AVAILABLE_FIELD))\n {\n \n Random rnd = new Random();\n //find move to play\n for (int[] selectedMove : preferredMoves)\n {\n \n int x = move[0]*3 + selectedMove[0];\n int y = move[1]*3 + selectedMove[1];\n if(!state.getField().getBoard()[x][y].contains(IField.EMPTY_FIELD)\n && !state.getField().getBoard()[x][y].contains(IField.AVAILABLE_FIELD))\n {\n try\n {\n x = x + (rnd.nextInt(selectedMove[0] % 2 + 1));\n \n \n } catch (Exception e)\n {\n \n }\n try\n {\n y = y - (rnd.nextInt(selectedMove[0] % 2 - 1));\n \n } catch (Exception e)\n {\n \n }\n try\n {\n x = x - (rnd.nextInt(selectedMove[0] % 2 -1));\n \n \n } catch (Exception e)\n {\n \n }\n \n \n \n \n }\n if(state.getField().getBoard()[x][y].equals(IField.EMPTY_FIELD))\n {\n \n return new Move(x,y);\n }\n }\n }\n }\n\n //NOTE: Something failed, just take the first available move I guess!\n return state.getField().getAvailableMoves().get(0);\n }",
"public void play() {\n //Set up the timer if needed\n if (!dataGame.isTrainingMode()) {\n timer = new Timer();\n secondsPassed = 65;\n TimerTask task = new TimerTask() {\n public void run() {\n secondsPassed--;\n //Before the game starts, countdown:\t\t\t\t\t\n if (secondsPassed > 63) {\n dataGame.notifyObserverTime(\"Be ready !\");\n } else if (secondsPassed == 63) {\n dataGame.notifyObserverTime(Integer.toString(3));\n } else if (secondsPassed == 62) {\n dataGame.notifyObserverTime(Integer.toString(2));\n } else if (secondsPassed == 61) {\n dataGame.notifyObserverTime(Integer.toString(1));\n } else if (secondsPassed == 60) {\n dataGame.notifyObserverTime(\"GO !\");\n pickNewWord();\n } else if (secondsPassed == 0) {\n dataGame.notifyObserverTime(\"STOP\");\n stop(false);\n } else {\n dataGame.notifyObserverTime(Integer.toString(secondsPassed));\n }\n }\n };\n timer.scheduleAtFixedRate(task, 100, 1000); //After 100ms, the timer starts, it decreases every seconds\n } else {\n pickNewWord();\n }\n }",
"boolean makeMove();",
"private char playSingleGame() {\n this.resetGame();\n System.out.println(\"\\n---------- NEW GAME ----------\\n\");\n System.out.println(this);\n int turn = (int) (2 * Math.random());\n char res;\n do {\n Move move = this.players[turn].pickMove();\n if (move == null) {\n return 'Q';\n }\n this.executeMove(move, this.players[turn].getSymbol());\n System.out.println(this);\n if (turn == 0) { // changes turns from one player to the other\n turn = 1;\n } else turn = 0;\n res = this.getGameStatus();\n switch (res) {\n case 'O':\n res = 'C';\n break;\n case 'X':\n res = 'H';\n }\n } while (res == '?');\n return res;\n }",
"public void play() {\r\n\r\n gamestate.startGame();\r\n\r\n while (!quit) {\r\n\r\n if (newGame) {\r\n gamestate.startGame();\r\n turn = 0;\r\n finished = true;\r\n newGame = false;\r\n }\r\n\r\n while (!gamestate.gameOver()) {\r\n\r\n if (newGame) {\r\n break;\r\n }\r\n\r\n turn++;\r\n display.displayBoard();\r\n\r\n if (turn % 2 == 1) {\r\n player1.makeMove(gamestate);\r\n } else {\r\n player2.makeMove(gamestate);\r\n }\r\n\r\n }\r\n\r\n if (finished) {\r\n\r\n display.displayBoard();\r\n\r\n switch (gamestate.getWinner()) {\r\n case Connect4GameState.RED:\r\n System.out.println(\"R wins\");\r\n break;\r\n case Connect4GameState.YELLOW:\r\n System.out.println(\"Y wins\");\r\n break;\r\n default:\r\n System.out.println(\"No one wins\");\r\n }\r\n\r\n finished = false;\r\n\r\n }\r\n\r\n if (display instanceof Connect4ConsoleDisplay) {\r\n quit = true;\r\n }\r\n\r\n }\r\n\r\n }",
"@Override\r\n\tpublic void move() {\n\t\tPoint target = strategy.search(this.getLocation(), new Point(0,0));\r\n\r\n\t\tint tries = 0;\r\n\t\t\r\n\t\twhile(!state.equals(\"Inactive\") && !game.movement(this, target.x, target.y)){\r\n\t\t\ttarget = strategy.search(new Point(x,y),playerLocation);\r\n\t\t\ttries++;\r\n\t\t\tif(tries > 4) return; // the search strategy has 4 tries to pick a valid location to move to\r\n\t\t}\r\n\t\t\r\n\t\tx = target.x;\r\n\t\ty = target.y;\r\n\r\n\t\tmoveSprite();\r\n\t}",
"public float getTimeToMove()\n\t{\n\t\treturn this.timeToMove;\n\t}",
"private void playSmallMatch() {\n boolean haveSmallMatchWinner = false;\n boardOperationsAPI.printBoard();\n while (!haveSmallMatchWinner) {\n System.out.println(messageProvider.provideMessage(\"provideMove\"));\n System.out.println(gameInformation.getPlayerName());\n MoveCoordinates validMove = validateMoveAPI.getValidMove();\n if(validMove==null){\n messageProvider.provideMessage(\"goodbye\");\n System.exit(0);\n }\n boolean winner = boardOperationsAPI.makeMove(validMove);\n if (winner) {\n gameInformation.addScore();\n printRoundWinner();\n showGameScore();\n gameInformation.nextRound();\n gameInformation.setMovesToZeroAfterSmallMatch();\n\n haveSmallMatchWinner = true;\n if (gameInformation.getScore() == 6) {\n gameInformation.setWinner();\n }\n }\n gameInformation.increaseMove();\n if (gameInformation.getMovesNumber() == boardOperationsAPI.boardSize()) {\n gameInformation.draw();\n messageProvider.provideMessage(\"drawInRound\");\n showGameScore();\n haveSmallMatchWinner=true;\n }\n gameInformation.changePlayer();\n }\n boardOperationsAPI.clear();\n }",
"public void determineNextPlayer() {\r\n\t\t// Calculate next player\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Current player number before getting next: \"+currentPlayer.getNumber());\r\n//\t\tif (currentPlayer.getNumber() == 0) {\r\n//\t\t\tif (p2 == null) {currentPlayer = p1;} else {currentPlayer = p2;}\r\n//\t\t} else if (currentPlayer.getNumber() == 1) {\r\n//\t\t\tif (p3 == null) {currentPlayer = p1;} else {currentPlayer = p3;}\r\n//\t\t} else if (currentPlayer.getNumber() == 2) {\r\n//\t\t\tif (p4 == null) {currentPlayer = p1;} else {currentPlayer = p4;}\r\n//\t\t} else {\r\n//\t\t\tcurrentPlayer = p1;\r\n//\t\t}\r\n\t\tcurrentPlayer = currentPlayer.getNextPlayer(); // Method already deals with quit\r\n\t\t\r\n\t\t// Player is alive and not free\r\n\t\tif (!currentPlayer.isFree() && !currentPlayer.isDead()) { \r\n\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Next player is not dead and not free: \"+currentPlayer.getNumber());\r\n\t\t\tturnIsEnding = false;\r\n\t\t\tnewTurn();\r\n\t\t// Player is dead\r\n\t\t} else if (currentPlayer.isDead()) {\r\n\t\t\tif (!checkIfGameIsOver()) {\r\n\t\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Player is dead, game is not over so skipping\");\r\n\t\t\t\tendTurn(); // DEATH CONDITION 1.5 & 2 & 2.5\r\n\t\t\t}\r\n\t\t// Player is free\r\n\t\t} else {\r\n\t\t\t// Check if game is over\r\n\t\t\tif (!checkIfGameIsOver()) {\r\n\t\t\t\t// End Game Dragon\r\n\t\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Player is free, game is not over\");\r\n\t\t\t\t// Check if this is the first escaped player\r\n\t\t\t\tif (currentPlayer.getPlayerID().contentEquals(firstEscapee.getPlayerID())) {\r\n\t\t\t\t\t// Advance the room and draw next sprite\r\n\t\t\t\t\tcurrentPlayer.setCurrentRoom(currentPlayer.getCurrentRoom()+1);\r\n\t\t\t\t\tint room = currentPlayer.getCurrentRoom();\r\n\t\t\t\t\tcurrentPlayer.getPiece().setX(GlobalVars.playerCoordsPerRoom[room][0]+GlobalVars.playersOffset[currentPlayer.getNumber()][0]);\r\n\t\t\t\t\tcurrentPlayer.getPiece().setY(GlobalVars.playerCoordsPerRoom[room][1]+GlobalVars.playersOffset[currentPlayer.getNumber()][1]);\r\n\t\t\t\t\t// If last room, kill the rest of the players\r\n\t\t\t\t\tif (room == 43) {\r\n\t\t\t\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] First escapee has reached last room. Killing all other players\");\r\n\t\t\t\t\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\t\t\t\t\tif (!players.get(i).isDead() && !players.get(i).isFree()) {\r\n\t\t\t\t\t\t\t\tdeath(players.get(i)); // DEATH CONDITION 3.5\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Not run through death because turnIsEnding = true\r\n\t\t\t\t\t\tif (!status.contentEquals(\"over\")) {\r\n\t\t\t\t\t\t\tgameOver();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Not last stage so keep going\r\n\t\t\t\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Advanced room in end sequence\");\r\n\t\t\t\t\t\tgameChannel.sendMessage(\":skull: Only **\"+(43-room)+\"** turn(s) left!\").queueAfter(2000,TimeUnit.MILLISECONDS);\r\n\t\t\t\t\t\t// Increased cube dragon attack\r\n\t\t\t\t\t\tdragonAttack(cubesPerLevel[attackLevel]+room-39);\r\n\t\t\t\t\t\t// Even if the last player died, should pass and then end game\r\n\t\t\t\t\t\tendTurn();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Not first escapee but also free\r\n\t\t\t\t\tendTurn();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public final void forceStartMoveLoop() {\r\n\t\txOff = 0;\r\n\t\tzOff = 0;\r\n\t\tmoveStart = System.currentTimeMillis();\r\n\t}",
"private void nextPosition()\n\t{\n\t\tdouble playerX = Game.player.getX();\n\t\tdouble playerY = Game.player.getY();\n\t\tdouble diffX = playerX - x;\n\t\tdouble diffY = playerY - y;\n\t\tif(Math.abs(diffX) < 64 && Math.abs(diffY) < 64)\n\t\t{\n\t\t\tclose = true;\n\t\t} \n\t\telse\n\t\t{\n\t\t\tclose = false;\n\t\t}\n\t\tif(close)\n\t\t{\n\t\t\tattackPlayer();\n\t\t} \n\t\telse if(alarm.done())\n\t\t{\n\t\t\tdirection = Math.abs(random.nextInt() % 360) + 1;\n\t\t\talarm.setTime(50);\n\t\t}\n\t\thspd = MathMethods.lengthDirX(speed, direction);\n\t\tvspd = MathMethods.lengthDirY(speed, direction);\n\t\tif(hspd > 0 && !flippedRight)\n\t\t{\n\t\t\tflippedRight = true;\n\t\t\tsetEnemy();\n\t\t} \n\t\telse if(hspd < 0 && flippedRight)\n\t\t{\n\t\t\tflippedRight = false;\n\t\t\tsetEnemy();\n\t\t}\n\t\tmove();\n\t\talarm.tick();\n\t\tshootTimer.tick();\n\t}",
"public void play() \n { \n printWelcome();\n\n // Enter the main command loop. Here we repeatedly read commands and\n // execute them until the game is over.\n \n boolean finished = false;\n while (! finished) {\n Command command = parser.getCommand();\n finished = processCommand(command);\n if(currentRoom == win)\n {\n finished = true;\n }\n if (timer > 10)\n {\n currentRoom = fail;\n System.out.println(currentRoom.getLongDescription());\n finished = true;\n }\n }\n System.out.println(\"Thank you for playing. Good bye.\");\n }",
"@Test\n public void testMovePlayerToCell()\n {\n theEngine.start();\n assertTrue(theEngine.inPlayingState());\n \n assertFalse(getThePlayer().getLocation() == getEmptyCell());\n movePlayerToCell(getEmptyCell());\n assertEquals(getThePlayer().getLocation(), getEmptyCell());\n }",
"@Test\n @DisplayName(\"After one player makes one move, verify conditions for next player toggle\")\n void doesPlayerContinue() {\n Player player = playerService.getP1();\n Pit pit = boardService.getPitByID(0);\n Move move = new Move(player, pit);\n boardService.updateBoardForMove(move);\n Assert.assertTrue(boardService.doesPlayerContinue());\n\n // For the next move, if player 1 moves from pit 1, player will not continue\n pit = boardService.getPitByID(1);\n move = new Move(player, pit);\n boardService.updateBoardForMove(move);\n Assert.assertFalse(boardService.doesPlayerContinue());\n }",
"public void run() {\n if(mPlayerGamePiece == mGame.getmCurrentlyPlaying()){\n mPlayableTiles = mGame.getmBoard().getPlayableTiles(mPlayerGamePiece);\n showGuidelines();\n mIsAllowedToPlay = true;\n }\n // Otherwise, opponent begins:\n else{\n mIsAllowedToPlay = false;\n makeAIMove();\n }\n\n }",
"public void playGame(Parser p){\n\t\t// until someone wins, loop through turns\n\t\twhile(!Game.gameWon){\n\n\t\t\t// get move from player\n\n\t\t\t// String move = Game.getCurrPlayer().getMove();\n\t\t\tString move = this.network.getMove();\n\t\t\tif(move.length()==2){\n\t\t\t\tmove = p.moveTranslate(move);\n\t\t\t}else{\n\t\t\t\tmove = p.wallTranslate(move);\n\t\t\t}\n\n\t\t\tif(move.isEmpty()){\n\t \tSystem.out.println(\"\\t[Move error]: Move is empty.\");\n\t\t\t\tkickPlayer();\n\t\t\t\tthis.network.kickLastPlayer();\n\t\t\t\tGame.nextTurn();\n\t\t\t\tif(this.checkForWin()){\n\t\t\t\t\tnotifyObservers(ui);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// try to play turn\n\t\t\tif(this.playTurn(move)){\n\t\t\t\tif(this.checkForWin()){\n\t\t\t\t\tplayers.get(curr).clearMoves();\n\t\t\t\t\tnotifyObservers(ui);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tGame.nextTurn();\n\t\t\t}else{\n\t\t\t\tkickPlayer();\n\t\t\t\tthis.network.kickLastPlayer();\n\t\t\t\tGame.nextTurn();\n\t\t\t\tif(this.checkForWin()){\n\t\t\t\t\tplayers.get(curr).clearMoves();\n\t\t\t\t\tnotifyObservers(ui);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tGame.updatePlayer(players.get(curr));\n\t\t\tthis.notifyObservers(this, Game.getBoard());\n\t\t}\n\t}",
"public void makeMove() {\n\t\tif (CheckForVictory(this)) {\n\t\t\t// System.out.println(\"VICTORY\");\n\t\t\tInterface.goalReached = true;\n\t\t\tfor (int i = 0; i < tmpStrings.length; i++) {\n\t\t\t\tif (moveOrder[i] == 0)\n\t\t\t\t\ttmpStrings[i] = \"turn left\";\n\t\t\t\telse if (moveOrder[i] == 1)\n\t\t\t\t\ttmpStrings[i] = \"turn right\";\n\t\t\t\telse\n\t\t\t\t\ttmpStrings[i] = \"go forward\";\n\n\t\t\t\tInterface.info.setText(\"Generation: \" + Parallel.generationNo + 1 + \" and closest distance to goal: \" + 0);\n\t\t\t}\n\t\t} else {\n\t\t\tmoveOrder[this.movesMade] = moves.remove();\n\t\t\tswitch (moveOrder[this.movesMade]) {\n\t\t\tcase (0):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 0)\n\t\t\t\t\tface = 3;\n\t\t\t\telse\n\t\t\t\t\tface--;\n\t\t\t\tbreak;\n\t\t\tcase (1):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 3)\n\t\t\t\t\tface = 0;\n\t\t\t\telse\n\t\t\t\t\tface++;\n\t\t\t\tbreak;\n\t\t\tcase (2):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 0 && Y - 1 >= 0)\n\t\t\t\t\tY--;\n\t\t\t\telse if (face == 1 && X + 1 <= map[0].length - 1)\n\t\t\t\t\tX++;\n\t\t\t\telse if (face == 2 && Y + 1 <= map.length - 1)\n\t\t\t\t\tY++;\n\t\t\t\telse if (face == 3 && X - 1 >= 0)\n\t\t\t\t\tX--;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Error making move :(\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public boolean plizMovePlayerForward(Player player)\n {\n\n //check if die was rolled\n if (getValue_from_die() > 0)\n {\n int x_cord = player.getX_cordinate();\n int y_cord = player.getY_cordinate();\n int steps = player.getSteps_moved();\n\n //try to get player from color home\n if (attempt2GetPlayerFromHomeSucceds(player))\n {\n return true;\n }\n\n //if player has already reached home do nothing\n if (player.getSteps_moved() >= 58)\n {\n return false;\n }\n //if player is inside home stretch he has to play exact number to go home\n else if (player.getSteps_moved() >= 52)\n {\n if (59 - player.getSteps_moved() <= value_from_die)\n {\n return false;\n }\n }\n\n //if player isnt at home move him\n if (player.getSteps_moved() > 0)\n {\n for (int i = 1; i <= (value_from_die); i++)\n {\n player.movePlayerForward();\n if (roadBlocked(player))\n {\n road_blocked = true;\n }\n player.setHas_not_been_drawn(true);\n }\n\n //roll back changes\n if (road_blocked)\n {\n player.setX_cordinate(x_cord);\n player.setY_cordinate(y_cord);\n player.setSteps_moved(steps);\n ludo.setDrawRoadBlockedSign(true);\n //println(\"ROAD BLOCKED\");\n road_blocked = false;\n return false;\n }\n playPlayerHasMovedMusic();\n //see if player eats someone\n if (getPerson_to_play() == 1)\n {\n BlueEatsPlayer(player);\n }\n else if (getPerson_to_play() == 2)\n {\n RedEatsPlayer(player);\n }\n else if (getPerson_to_play() == 3)\n {\n GreenEatsPlayer(player);\n }\n else if (getPerson_to_play() == 4)\n {\n YellowEatsPlayer(player);\n }\n if (value_from_die == 6)\n {\n resetDieScore();\n ludo.setDrawScoreAllowed(false);\n return true;\n }\n //reset variables and change person to play\n resetDieScore();\n ludo.setDrawScoreAllowed(false);\n changePersonToPlay();\n return true;\n }\n //occurs rarely at the begining of the game\n else\n {\n //println(\"steps less than 0\");\n return false;\n }\n }\n else\n {\n //println(\"PLIZ ROLL DIE FIRST THEN MOVE BUTTON\");\n return false;\n }\n }",
"private void moveRandomly()\r\n {\r\n if (Greenfoot.getRandomNumber (100) == 50)\r\n turn(Greenfoot.getRandomNumber(360));\r\n else\r\n move(speed);\r\n }",
"void doneMoving();",
"@Override\n public int turn() {\n return moveOnTurn;\n }",
"public void resetMove() {\n\t\tthis.moveMade = false;\n\t}",
"public void play() { player.resume();}",
"public void autoMove() {\n selectAndMove(computerPlayer.selectToken(this));\n }",
"private void playAction(){\n\n if (stopBeforeCall.isSelected()) { execEndAction(execOnEnd.getText()); }\n execStartAction(execOnStart.getText());\n\n //if timer was inicializated\n if (timer != null) {\n if (pto == null) {\n pto = new PlayerTimerOnly(displayTimer);\n pto.play();\n } else {\n pto.stop();\n pto.play();\n }\n }\n //check if play is needed\n SolverProcess sp = solverChoices.getSelectionModel().getSelectedItem();\n if (sp == null || sp.isDummyProcess()){\n return;\n }\n\n Solution s = sp.getSolution();\n\n s = mfd.transofrmSolutionTimeIfChecked(s);\n\n List<List<AgentActionPair>> aapList = Simulator.getAAPfromSolution(s);\n rmp = new RealMapPlayer(aapList,smFront);\n rmp.play();\n\n\n }",
"@Override\r\n\t// Precondition: During testing the AI is associated with the 'O', the odd number move.\r\n \tpublic Point desiredMove(TicTacToeGame theGame) {\n\t\t\r\n\t\tchar[][] board = theGame.getTicTacToeBoard();\r\n\t\tPoint dPoint;\r\n\t //check for win\r\n\t\tdPoint = winOrBlock(board,'O');\r\n\t\tif(dPoint != null) {\r\n\t\t\tSystem.out.println(\"winning\");\r\n\t\t\treturn dPoint;\r\n\t\t}\r\n\t\t//check for block\r\n\t\tdPoint = winOrBlock(board,'X');\r\n\t\tif(dPoint != null) {\r\n\t\t\tSystem.out.println(\"blocking\");\r\n\t\t\treturn dPoint;\r\n\t\t}\r\n\t\t//otherwise pick random loc\r\n\t\tRandom randy = new Random(); \r\n\t int randX = randy.nextInt(3);\r\n\t int randY = randy.nextInt(3);\r\n\t while(!theGame.available(randX, randY)) {\r\n\t \trandX = randy.nextInt(3);\r\n\t \trandY = randy.nextInt(3);\r\n\t }\r\n\t System.out.println(\"random\");\r\n\t return new Point(randX, randY);\r\n\t}",
"void move()\n {\n Random rand = new Random();\n int moveOrNot = rand.nextInt(2);//50% chance\n if(moveOrNot == 1)\n super.move();\n }",
"protected int getMove() \t\t\t\t{\treturn move;\t\t}",
"public void movePlayer(String direction) {\n if(playerAlive(curPlayerRow, curPlayerCol)){\n if(direction.equals(\"u\")&&(curPlayerRow-1)>=0){\n overwritePosition(curPlayerRow, curPlayerCol, (curPlayerRow-1), curPlayerCol);\n curPlayerRow -= 1;\n }else if(direction.equals(\"d\")&&(curPlayerRow+1)<=7){\n overwritePosition(curPlayerRow, curPlayerCol, (curPlayerRow+1), curPlayerCol);\n curPlayerRow += 1;\n }else if(direction.equals(\"l\")&&(curPlayerCol-1)>=0){\n overwritePosition(curPlayerRow, curPlayerCol, curPlayerRow, (curPlayerCol-1));\n curPlayerCol -= 1;\n }else if(direction.equals(\"r\")&&(curPlayerCol+1)<=9){\n overwritePosition(curPlayerRow, curPlayerCol, curPlayerRow, (curPlayerCol+1));\n curPlayerCol += 1;\n }\n }\n if(playerFoundTreasure(curPlayerRow, curPlayerCol)){\n playerWins();\n }\n adjustPlayerLifeLevel(curPlayerRow, curPlayerCol);\n int[] array = calcNewTrollCoordinates(curPlayerRow, curPlayerCol, curTrollRow, curTrollCol);\n if(curPlayerRow == curTrollRow && curPlayerCol == curTrollCol){\n gameBoard[curTrollRow][curTrollCol] = new TrollPiece();\n }else{\n int newTrollRow = array[0];\n int newTrollCol = array[1];\n overwritePosition(curTrollRow, curTrollCol, newTrollRow, newTrollCol);\n curTrollRow = newTrollRow;\n curTrollCol = newTrollCol;\n }\n }",
"@Test\n\tpublic void testMove() {\n\t\tSquare square = new Square();\n\t\tPlayer player = new Player(new Square(), 0);\n\t\t\n\t\tassertFalse(player.hasMoved());\n\t\t\n\t\tplayer.move(square);\n\t\tassertTrue(player.hasMoved());\n\t}",
"boolean doMove();",
"int chooseMove();"
] | [
"0.68440574",
"0.65614563",
"0.6495794",
"0.6494684",
"0.648468",
"0.6475611",
"0.6397357",
"0.63531834",
"0.63480324",
"0.6331621",
"0.6309658",
"0.6302896",
"0.6271269",
"0.6245397",
"0.6233656",
"0.6226943",
"0.62181",
"0.6213627",
"0.61843675",
"0.617221",
"0.61541736",
"0.61444545",
"0.61424553",
"0.61398774",
"0.6098835",
"0.6074229",
"0.60692996",
"0.60602427",
"0.6051736",
"0.60258174",
"0.600649",
"0.598222",
"0.59792626",
"0.5974008",
"0.5969119",
"0.59621185",
"0.5960303",
"0.5947951",
"0.5946716",
"0.59368527",
"0.5936405",
"0.5933236",
"0.5922301",
"0.5913024",
"0.5908647",
"0.5907372",
"0.59051293",
"0.590092",
"0.5897194",
"0.5891213",
"0.58910364",
"0.5889134",
"0.58828545",
"0.5881443",
"0.58803177",
"0.5874641",
"0.5874572",
"0.58696216",
"0.5866876",
"0.5866511",
"0.58643985",
"0.5861848",
"0.5861824",
"0.5860534",
"0.58571476",
"0.5855127",
"0.5839591",
"0.58260936",
"0.5823497",
"0.5816207",
"0.58067703",
"0.5801506",
"0.5799082",
"0.57986504",
"0.5796695",
"0.57879376",
"0.5786083",
"0.5782828",
"0.57789093",
"0.5773477",
"0.5767625",
"0.5766777",
"0.5765896",
"0.5761774",
"0.57609624",
"0.5747432",
"0.57439315",
"0.57367206",
"0.573395",
"0.5730574",
"0.57299054",
"0.5729532",
"0.5723897",
"0.5717592",
"0.5715547",
"0.5711905",
"0.570808",
"0.57023793",
"0.57013667",
"0.5698776",
"0.5698721"
] | 0.0 | -1 |
in this case we take the center of the image | @Override
public boolean isCollided(SpaceShip invader, Rocket rocket) {
//(posX + width) /2 , (posY + height) /2
int spaceshipCenterX = (int)(invader.getPosition().getX() + invader.getSize().getWidth()) / 2;
int spaceshipCenterY = (int)(invader.getPosition().getY() + invader.getSize().getHeight()) / 2;
Point spaceshipCenter = new Point(spaceshipCenterX, spaceshipCenterY);
if (spaceshipCenter == rocket.getPosition())
return true;
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Point2D.Double getImageCenter();",
"private double centerX() {\n return (piece.boundingBox().getWidth() % 2) / 2.0;\n }",
"public Point getCenter() {\n \treturn new Point(x+width/2,y+height/2);\n }",
"public Point getCenterPx(){\n\t\tint centerX = images[0].getWidth()/2;\n\t\tint centerY = images[0].getHeight()/2;\n\t\tPoint centerPx = new Point(centerX,centerY);\n\t\treturn centerPx;\n\t}",
"public void drawImageCentered(float x, float y, float width, float height);",
"Point getCenter();",
"Point getCenter();",
"private PointF getCenterOfCropRect() {\n return new PointF(\n cropRect.centerX(),\n cropRect.centerY());\n }",
"public Coords getCenter()\r\n {\r\n return new Coords(Math.round(x + width / 2), Math.round(y + height / 2));\r\n }",
"public double getCenter() {\n return 0.5 * (lo + hi);\n }",
"public int getCenterX() {\n\t\t\treturn (int) origin.x + halfWidth;\n\t\t}",
"public GJPoint2D center();",
"public Point getCenter() {\r\n\t\treturn center;\r\n\t}",
"public Point getCenter() {\r\n return this.center;\r\n }",
"public PointF getCenter() {\n return center;\n }",
"public Point getCenter() {\n return center;\n }",
"public Coordinate getCenter() {\n return center;\n }",
"public void center() {\n\t\tif(parent != null) {\n\t\t\tfloat parMidWidth = parent.getWidth() / 2f;\n\t\t\tfloat parMidHeight = parent.getHeight() / 2f;\n\t\t\tfloat midWidth = width / 2f;\n\t\t\tfloat midHeight = height / 2f;\n\t\t\t\n\t\t\tfloat newX = parent.getX() + (parMidWidth - midWidth);\n\t\t\tfloat newY = parent.getY() + (parMidHeight - midHeight);\n\t\t\t\n\t\t\tposition = new Vec2f(newX, newY);\n\t\t\tfindPosRatios();\n\t\t}\n\t}",
"public FPointType calculateCenter() {\n fRectBound = getBounds2D();\n FPointType fptCenter = new FPointType();\n fptCenter.x = fRectBound.x + fRectBound.width / 2.0f;\n fptCenter.y = fRectBound.y + fRectBound.height / 2.0f;\n calculate(fptCenter);\n \n rotateRadian = 0.0f;\n \n return fptCenter;\n }",
"protected void calculateMinMaxCenterPoint() {\n\t\tfinal ImagePlus imp = c.getImage();\n\t\tfinal int w = imp.getWidth(), h = imp.getHeight();\n\t\tfinal int d = imp.getStackSize();\n\t\tfinal Calibration cal = imp.getCalibration();\n\t\tmin = new Point3d();\n\t\tmax = new Point3d();\n\t\tcenter = new Point3d();\n\t\tmin.x = w * (float) cal.pixelHeight;\n\t\tmin.y = h * (float) cal.pixelHeight;\n\t\tmin.z = d * (float) cal.pixelDepth;\n\t\tmax.x = 0;\n\t\tmax.y = 0;\n\t\tmax.z = 0;\n\n\t\tfloat vol = 0;\n\t\tfor (int zi = 0; zi < d; zi++) {\n\t\t\tfinal float z = zi * (float) cal.pixelDepth;\n\t\t\tfinal ImageProcessor ip = imp.getStack().getProcessor(zi + 1);\n\n\t\t\tfinal int wh = w * h;\n\t\t\tfor (int i = 0; i < wh; i++) {\n\t\t\t\tfinal float v = ip.getf(i);\n\t\t\t\tif (v == 0) continue;\n\t\t\t\tvol += v;\n\t\t\t\tfinal float x = (i % w) * (float) cal.pixelWidth;\n\t\t\t\tfinal float y = (i / w) * (float) cal.pixelHeight;\n\t\t\t\tif (x < min.x) min.x = x;\n\t\t\t\tif (y < min.y) min.y = y;\n\t\t\t\tif (z < min.z) min.z = z;\n\t\t\t\tif (x > max.x) max.x = x;\n\t\t\t\tif (y > max.y) max.y = y;\n\t\t\t\tif (z > max.z) max.z = z;\n\t\t\t\tcenter.x += v * x;\n\t\t\t\tcenter.y += v * y;\n\t\t\t\tcenter.z += v * z;\n\t\t\t}\n\t\t}\n\t\tcenter.x /= vol;\n\t\tcenter.y /= vol;\n\t\tcenter.z /= vol;\n\n\t\tvolume = (float) (vol * cal.pixelWidth * cal.pixelHeight * cal.pixelDepth);\n\n\t}",
"public final Vector getCenter() {\n\t\treturn (center == null) ? computeCenter() : center;\n\t}",
"public int getCenter() {\n\t\t\treturn center;\n\t\t}",
"private double centerY() {\n return (piece.boundingBox().getHeight() % 2) / 2.0;\n }",
"public Point centeroid ()\r\n {\r\n return new Point ((v1.getX()+v2.getX()+v3.getX())/3,(v1.getY()+v2.getY()+v3.getY())/3);\r\n }",
"public void smartCenter() {\n WebPlot p = getPrimaryPlot();\n if (p==null) return;\n\n if (isWcsSync()) {\n wcsSyncCenter(computeWcsSyncCenter());\n }\n else if (p.containsAttributeKey(WebPlot.FIXED_TARGET)) {\n Object o = p.getAttribute(WebPlot.FIXED_TARGET);\n if (o instanceof ActiveTarget.PosEntry) {\n ActiveTarget.PosEntry entry = (ActiveTarget.PosEntry) o;\n ImageWorkSpacePt ipt = p.getImageWorkSpaceCoords(entry.getPt());\n if (ipt!=null && p.pointInPlot(entry.getPt())) centerOnPoint(ipt);\n else simpleImageCenter();\n }\n } else {\n simpleImageCenter();\n }\n }",
"public ImageWorkSpacePt findCurrentCenterPoint() {\n WebPlot plot= getPrimaryPlot();\n\n\n int screenW= plot.getScreenWidth();\n int screenH= plot.getScreenHeight();\n int sw= getScrollWidth();\n int sh= getScrollHeight();\n int cX;\n int cY;\n if (screenW<sw) {\n cX= screenW/2;\n }\n else {\n int scrollX = getScrollX();\n cX= scrollX+sw/2- wcsMarginX;\n }\n\n if (screenH<sh) {\n cY= screenH/2;\n }\n else {\n int scrollY = getScrollY();\n cY= scrollY+sh/2- wcsMarginY;\n }\n\n ScreenPt pt= new ScreenPt(cX,cY);\n\n return plot.getImageWorkSpaceCoords(pt);\n }",
"public Point2D.Float getCenter() {\r\n\t\treturn center;\r\n\t}",
"public Vector2 getCenter() {\n\t\treturn new Vector2(position.x + size / 4f, position.y + size / 4f);\n\t}",
"public static int getCenter() {\n\t\treturn Center;\n\t}",
"public Point getCenter() {\n return new Point((int) getCenterX(), (int) getCenterY());\n }",
"public void drawImageCentered(float x, float y, float width, float height,\n\t\t\tColor color);",
"public final float exactCenterX() {\n return (left + right) * 0.5f;\n }",
"public float getCenterX() {\n return cPosition.getX() + (float) cFishSizeX / 2;\n }",
"public abstract Vector computeCenter();",
"public final Point getCenterPointOnScreen() {\n\t\treturn Calculations.tileToScreen(getLocalRegionX(), getLocalRegionY(),\n\t\t\t\t0.5D, 0.5D, 0);\n\t}",
"public void centerOn(float x, float y) {\r\n\t\tposx_ = x - w() / 2;\r\n\t\tposy_ = y - h() / 2;\r\n\t}",
"public double getCenterX() { return centerX.get(); \t}",
"private void center() {\n if (autoCenter) {\n animateTranslationX();\n animateTranslationY();\n }\n }",
"public Coord3d getCenter() {\n return new Coord3d((xmin + xmax) / 2, (ymin + ymax) / 2, (zmin + zmax) / 2);\n }",
"public int getXCenter() {\n return getXOrigin() + panelWidth/2;\n }",
"public final int centerX() {\n return (left + right) >> 1;\n }",
"public double[] getCenter() {\n return this.center;\n }",
"public Vector3D getCenter() {\n return center;\n }",
"public Vector2 getCenter() {\n return center;\n }",
"private void buildPanelCenter() {\n this.imagePanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 10, 10));\r\n this.imagePanel.setPreferredSize(new Dimension(400, 300));\r\n this.imagePanel.setBorder(BorderFactory.createBevelBorder(1));\r\n this.add(this.imagePanel, BorderLayout.CENTER);\r\n \r\n // on y ajoute le JLabel qui contient les images\r\n this.centerImage = new JLabel(this.model.getCurrentImage());\r\n this.imagePanel.add(this.centerImage);\r\n\r\n }",
"public Vector3f getCenter() {\r\n return center;\r\n }",
"PVector _getCenter() {\n PVector cen = new PVector(_hitboxCenter.x, _hitboxCenter.y);\n cen.rotate(_rotVector.heading() - _front);\n cen.x += _x;\n cen.y += _y;\n return cen;\n }",
"public int centerX() {\n return mRect.centerX();\n }",
"public final Point getCenterPointOnScreen() {\n return bot.getManagers().getCalculations().tileToScreen(localRegionX, localRegionY,\n 0.5D, 0.5D, 0);\n }",
"final public Vector2 getCenter()\n\t{\n\t\treturn center;\n\t}",
"public Vec3d getCenter() {\n\t\treturn set;\n\t}",
"public double getCenterX()\n {\n return mainVBox.getTranslateX() + (mainVBox.getWidth() / 2);\n }",
"public Location3D getCenter() {\n\t\treturn new Location3D(world, lowPoint.getBlockX() + getXSize() / 2, lowPoint.getBlockY() + getYSize() / 2, lowPoint.getBlockZ() + getZSize() / 2);\n\t}",
"private Point getCentreCoordinate(Point t)\n {\n \treturn new Point (t.x + Constants.cell_length /2f, t.y, t.z+Constants.cell_length/2f );\n }",
"public static double getCenter(int index) {\n\t\tif (index==0) return -1.0;\n\t\telse return DEFAULT_CENTERS[index-1];\n\t}",
"public Vector2f getCenter(Transform t) {\n\t\treturn new Vector2f(center.x * t.scale.x, center.y * t.scale.y).add(t.position);\n\t}",
"private Point2D getCenterLatLon(){\n Point2D.Double result = new Point2D.Double();\n Point2D.Double screenCenter = new Point2D.Double();\n screenCenter.x = getWidth()/2; //contentpane width/height\n screenCenter.y = getHeight()/2;\n try{\n transform.inverseTransform(screenCenter,result); //transform to lat/lon using the current transform\n } catch (NoninvertibleTransformException e) {\n throw new RuntimeException(e);\n }\n return result;\n }",
"public Point getCenter() {\n return location.center();\n }",
"public static Image centerDigit(Image image)\n {\n // Get the width and height of the image\n int width = image.getWidth(null);\n int height = image.getHeight(null);\n\n // Convert Image to BufferedImage\n BufferedImage oldImage = new BufferedImage(width,\n height,\n BufferedImage.TYPE_INT_ARGB);\n\n Graphics2D g2d = oldImage.createGraphics();\n g2d.drawImage(image, 0, 0, null);\n g2d.dispose();\n\n // Creates a new image in which the digit will be centered\n BufferedImage newImage = new BufferedImage(width,\n height,\n BufferedImage.TYPE_INT_ARGB);\n\n // Finds the middle of the digit\n int middle[] = findMiddles(width, height, oldImage);\n\n // Computes the sift to apply to every black pixel of the first image to\n // put the digit at the center of the new image\n int shiftX = width / 2 - middle[0];\n int shiftY = height / 2 - middle[1];\n\n // The main color of the image\n int mainColor = getMainColor(oldImage);\n\n // For every pixels in the old image\n for(int y = 0; y < height; y++)\n {\n for(int x = 0; x < width; x++)\n {\n // If the new x and y are in the new image (not out of bounds)\n // set the shifted pixel to have the save color as the not\n // shifted pixel in the old image\n if(x - shiftX >= 0 && x - shiftX < width && y - shiftY >= 0 && y - shiftY < height)\n {\n newImage.setRGB(x, y, oldImage.getRGB(x - shiftX, y - shiftY));\n }\n\n // Otherwise set the pixel black\n else\n {\n newImage.setRGB(x, y, mainColor);\n }\n }\n }\n return (Image) newImage;\n }",
"private void center() {\r\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\r\n\r\n\t\tint x = (dim.width - getSize().width) / 2;\r\n\t\tint y = (dim.height - getSize().height) / 2;\r\n\r\n\t\tsetLocation(x, y);\r\n\t}",
"public EastNorth getCenter() {\n\t\treturn null;\n\t}",
"public int getCenterX(){\r\n return centerX;\r\n }",
"private void centre() {\n Dimension localDimension = Toolkit.getDefaultToolkit().getScreenSize();\n int i2 = (int) Math.min(localDimension.width * WIDTH, localDimension.height * WIDTH);\n\n Rectangle localRectangle = new Rectangle();\n localRectangle.setBounds(((localDimension.width - i2) / TWO), \n ((localDimension.height - i2) / TWO), i2, i2);\n\n setBounds(localRectangle);\n\n }",
"public LatLng getCenter() {\n return center;\n }",
"public void centerOnEntity(Item e)\n {\n xOffset = e.GetX() - refLinks.GetWidth()/2 + e.GetWidth()/2;\n yOffset = e.GetY() - refLinks.GetHeight()/2 + e.GetHeight()/2;\n checkCameraLimits();\n }",
"public double getCenterX() {\n\t\treturn centerX;\n\t}",
"Cell Center(){\n double sum_x = 0;\r\n double sum_y = 0;\r\n \r\n for(int i = 0; i < this.edgeCells.size(); i++){\r\n sum_x = this.edgeCells.get(i).x;\r\n sum_y = this.edgeCells.get(i).y;\r\n }\r\n \r\n for(int i = 0; i < this.seedCells.size(); i++){\r\n sum_x = this.seedCells.get(i).x;\r\n sum_y = this.seedCells.get(i).y;\r\n }\r\n \r\n sum_x = sum_x/(this.edgeCells.size() + this.seedCells.size()); //center of weight\r\n sum_y = sum_y/(this.edgeCells.size() + this.seedCells.size()); //\r\n \r\n center = new Cell((int)sum_x, (int)sum_y, this.edgeCells.get(0).z, this.edgeCells.get(0).id);\r\n \r\n \r\n return center;\r\n }",
"private void calculateCentre() {\n \t\t// The size of the centre is presently one 5th of the maze size\n \t\tcentreSize = size / 5;\n \t\t// System.out.println(\"centreSize is: \" + centreSize);\n \n \t\t// Min and max are the start points of the centre\n \t\tint min = (int) Math.ceil((centreSize * 2.0));\n \t\tint max = min + centreSize;\n \t\tmin++; // this adjusts for the border\n \t\tmax++;\n \t\t// System.out.println(\"min is: \" + min);\n \t\t// System.out.println(\"max is: \" + max);\n \n \t\t// centre is the centre point of the maze\n \t\tdouble centre = (centreSize / 2.0) + min;\n \t\t// System.out.println(\"centre is: \" + centre);\n \t\tcentrePoint = new Point2D.Double(centre, centre);\n \t\t\n \t\t//set the min and max points for the centre\n \t\tcentreMin = min;\n \t\tcentreMax = max;\n \t}",
"public void centerMapOnPoint(int targetX, int targetY) {\n\n int scaledWidth = (int) (TileDataRegister.TILE_WIDTH * scale);\n int scaledHeight = (int) (TileDataRegister.TILE_HEIGHT * scale);\n int baseX = (int) (map.getWidth() * TileDataRegister.TILE_WIDTH * scale) / 2;\n\n int x = baseX + (targetY - targetX) * scaledWidth / 2;\n x -= viewPortWidth * 0.5;\n int y = (targetY + targetX) * scaledHeight / 2;\n y -= viewPortHeight * 0.5;\n\n currentXOffset = -x;\n currentYOffset = -y;\n\n gameChanged = true;\n }",
"public void centerCameraOn(GameObject thing) {\r\n\t\tthis.cameraX = (int)(thing.getX() - Game.WIDTH / 2);\r\n\t\tthis.cameraY = (int) (thing.getY() - Game.HEIGHT / 2);\r\n\t}",
"public Point2D centerOfMass() \n {\n double cx = 0, cy = 0;\n double area = areaUnsigned();\n double factor = 0;\n for (Line2D line : lines) \n {\n factor = line.getP1().getX() * line.getP2().getY() - line.getP2().getX() * line.getP1().getY();\n cx += (line.getP1().getX() + line.getP2().getX()) * factor;\n cy += (line.getP1().getY() + line.getP2().getY()) * factor;\n }\n area *= 6.0d;\n factor = 1 / area;\n cx *= factor;\n cy *= factor;\n return new Point2D.Double(cx, cy);\n }",
"private void center(Complex[] f, int width, int height) {\r\n\r\n\t\tfor (int i = 0; i < f.length; i++) {\r\n\t\t\tint x = i % width;\r\n\t\t\tint y = i / width;\r\n\t\t\tf[i].setReal(f[i].getReal() * Math.pow(-1, (x + y)));\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tpublic void mouseWheelMoved(MouseWheelEvent e) {\n\t\tratio += ratio / (-e.getUnitsToScroll() * 10);\n\t\tif (ratio < 50.0 / current_image.getWidth()) {\n\t\t\tratio = 50.0 / current_image.getWidth();\n\t\t}\n\t\tif (ratio < 50.0 / current_image.getHeight()) {\n\t\t\tratio = 50.0 / current_image.getHeight();\n\t\t}\n\t\tint prew = w;\n\t\tint preh = h;\n\t\tw = (int) (current_image.getWidth() * ratio);\n\t\th = (int) (current_image.getHeight() * ratio);\n\t\tif (w < Monitor_Width) { // centers x\n\t\t\tx = (Monitor_Width - w) / 2;\n\t\t} else { // centers around h/2\n\t\t\tx -= (w - prew) / 2;\n\t\t\tif (x > 0)\n\t\t\t\tx = 0;\n\t\t\tif (x < Monitor_Width - w)\n\t\t\t\tx = Monitor_Width - w;\n\t\t}\n\t\tif (h < Monitor_Height) { // centers y\n\t\t\ty = (Monitor_Height - h) / 2;\n\t\t} else { // centers around h/2\n\t\t\ty -= (h - preh) / 2;\n\t\t\tif (y > 0)\n\t\t\t\ty = 0;\n\t\t\tif (y < Monitor_Height - h)\n\t\t\t\ty = Monitor_Height - h;\n\t\t}\n\t}",
"private void drawCenter(double x, double y) {\n\t\tdouble r = findCenterRadius(x, y);\n\t\tGPoint corner = findCenterCorner(r, x ,y);\n\t\tcenterCircle = new GOval(2*r,2*r);\n\t\tadd(centerCircle, corner);\n\t\t//GPoint center = new GPoint(corner.getX() - r, corner.getY() - r );\n\t}",
"public double getCenterX() {\n return this.getLayoutSlot().getX() + (int) (this.getLayoutSlot().getWidth() / 2);\n }",
"public void setCenter() {\n\t\tthis.isCenter = true;\n\t}",
"public void centerOnScreen() {\n Runnable doUpdate = new Runnable() {\n public void run() {\n Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();\n Dimension window = getSize();\n int iCenterX = screen.width / 2;\n int iCenterY = screen.height / 2;\n setLocation(iCenterX - (window.width / 2), iCenterY - (window.height / 2));\n }\n };\n SwingUtilities.invokeLater(doUpdate);\n }",
"public Point2D getCentre() {\n return new Point2D.Float(centreX, centreY);\n }",
"private int get_x() {\n return center_x;\n }",
"private void centerRegion() {\r\n\t\tthis.addComponent(BorderLayout.CENTER, mp);\r\n\t}",
"double[] circleCentre()\n\t{\n\t\tdouble toOriginLength = Math.sqrt(originX*originX + originY*originY);\n\t\tdouble toCentreLength = toOriginLength + radius;\n\t\t\n\t\tdouble[] centrePoint = new double[2];\n\t\t\n\t\tcentrePoint[0] = (toCentreLength * originX)/toOriginLength;\n\t\tcentrePoint[1] = (toCentreLength * originY)/toOriginLength;\n\t\t\n\t\treturn centrePoint;\n\t}",
"protected void center(boolean horizontal, boolean vertical) \r\n {\r\n Matrix m = getDisplayMatrix();\r\n\r\n RectF rect = new RectF(0, 0,mRoBitmap.getBitmap().getWidth(),\r\n \t\t\t\t\t\tmRoBitmap.getBitmap().getHeight());\r\n m.mapRect(rect);\r\n\r\n float height = rect.height();\r\n float width = rect.width();\r\n\r\n float deltaX = 0, deltaY = 0;\r\n\r\n if (vertical) {\r\n if (height < mViewHeight) {\r\n deltaY = (mViewHeight - height) / 2 - rect.top;\r\n } else if (rect.top > 0) {\r\n deltaY = -rect.top;\r\n } else if (rect.bottom < mViewHeight) {\r\n deltaY = mViewHeight - rect.bottom;\r\n }\r\n }\r\n if (horizontal) {\r\n if (width < mViewWidth) {\r\n deltaX = (mViewWidth - width) / 2 - rect.left;\r\n } else if (rect.left > 0) {\r\n deltaX = -rect.left;\r\n } else if (rect.right < mViewWidth) {\r\n deltaX = mViewWidth - rect.right;\r\n }\r\n }\r\n postTranslate(deltaX, deltaY);\r\n getDisplayMatrix();\r\n }",
"public float getCentreX() {\n return centreX;\n }",
"protected Point getCenter(ArrayList<Unit> units) {\n\t\tint x = 0, y = 0;\n\t\t\n\t\tif(units.size() >= 1) {\n\t\t\tfor(Unit unit: units) {\n\t\t\t\tx += unit.getX();\n\t\t\t\ty += unit.getY();\n\t\t\t}\n\t\t\tx = x / units.size();\n\t\t\ty = y / units.size();\n\t\t}\n\t\treturn new Point(x,y);\n\t}",
"private static Point areaCentre() {\r\n\t\tvar centreLon = (lonLB + lonUB)/2;\r\n\t\tvar centreLat = (latLB + latUB)/2;\r\n\t\treturn Point.fromLngLat(centreLon, centreLat);\r\n\t}",
"private static void center(Shell shell) \n\t{\n\n Rectangle bds = shell.getDisplay().getBounds();\n\n Point p = shell.getSize();\n\n int nLeft = (bds.width - p.x) / 2;\n int nTop = (bds.height - p.y) / 2;\n\n shell.setBounds(nLeft, nTop, p.x, p.y);\n }",
"private Rect getMaxCenteredCropRect() {\n if (!isImageLoaded()) {\n return null;\n }\n if (aspectRatio < 0.0) {\n return getImageRect();\n } else {\n Rect imageRect = getImageRect();\n int imageHeight = imageRect.bottom - imageRect.top,\n imageWidth = imageRect.right - imageRect.left;\n if (imageHeight * aspectRatio <= imageWidth) {\n int padding = (int) ((imageWidth - (imageHeight * aspectRatio)) / 2);\n return new Rect(padding,\n 0,\n (int) ((imageHeight * aspectRatio) + padding),\n imageHeight);\n } else {\n int padding = (int) ((imageHeight - (imageWidth / aspectRatio)) / 2);\n return new Rect(0,\n padding,\n imageWidth,\n (int) ((imageWidth / aspectRatio) + padding));\n }\n }\n }",
"private Point middleLeft() {\n return this.topLeft.add(0, this.height / 2).asPoint();\n }",
"public Vector2D getArithmeticCenter()\n\t{\n\t\tif (size() == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tVector2D center = Vector2D.ZERO;\n\n\t\tfor (Unit unit : this)\n\t\t{\n\t\t\tcenter = center.add(Vector2DMath.toVector(unit.getPosition()));\n\t\t}\n\t\tcenter = center.scale(1.0f / size());\n\n\t\treturn center;\n\t}",
"public double getCenterY() { return centerY.get(); }",
"public Vector2 getCenter() {\n return new Vector2(rectangle.centerX(), rectangle.centerY());\n }",
"protected void centerDiagramOn(EntityInstance e)\r\n\t{\r\n\t\tOption\tdiagramOptions = Options.getDiagramOptions();\r\n\t\tdouble\tzoom_x = diagramOptions.getZoomX();\r\n\t\tdouble\tzoom_y = diagramOptions.getZoomY();\r\n\r\n\t\tif (zoom_x > 1.0 || zoom_y > 1.0) {\r\n\r\n\t\t\tDimension\td = getPreferredSize();\r\n\t\t\tint\t\t\twidth1 = d.width;\r\n\t\t\tint\t\t\theight1 = d.height;\r\n\t\t\tint\t\t\twidth2 = (int) (((double) width1) / zoom_x);\r\n\t\t\tint\t\t\theight2 = (int) (((double) height1) / zoom_y);\r\n\t\t\tint\t\t\tx_center = (int) ((e.xRelLocal() + e.widthRelLocal() /2.0) * ((double) width1) );\r\n\t\t\tint\t\t\ty_center = (int) ((e.yRelLocal() + e.heightRelLocal()/2.0) * ((double) height1));\r\n\t\t\tint\t\t\tx = x_center - width2 / 2;\r\n\t\t\tint\t\t\ty = y_center - height2/ 2;\r\n\t\t\t\r\n\t\t\tcenterDiagramOn(x, y);\r\n\t}\t}",
"public int getCenterY(){\r\n return centerY;\r\n }",
"void setCenter() {\n\t\tLine line02 = new Line(myParent, new PVector(), new PVector());\n\t\tLine line13 = new Line(myParent, new PVector(), new PVector());\n\t\tline02.set(point[0].position, point[2].position);\n\t\tline13.set(point[1].position, point[3].position);\n\t\tif (line02.intersects_at(line13) != null) // if two points are on each\n\t\t\t\t\t\t\t\t\t\t\t\t\t// other\n\t\t\tcenter.set(line02.intersects_at(line13));\n\t}",
"private double[] getMeanCenter(){\n double[] meanXY = new double[2];\n float[] trans = getTranslationVector(center.getX(),center.getY(),BITMAP_SIZE,BITMAP_SIZE,CONSTANT);\n // Plot points\n for (MeasurementService.DataPoint p: list) {\n meanXY[0] += (p.getX()*CONSTANT)+trans[0];\n meanXY[1] += (p.getY()*CONSTANT)+trans[1];\n }\n\n meanXY[0] = meanXY[0] / list.size();\n meanXY[1] = meanXY[1] / list.size();\n return meanXY;\n }",
"public final int centerY() {\n return (top + bottom) >> 1;\n }",
"public Point getCentrePoint()\n\t\t{\n\t\t\tif(shape.equals(\"circle\") || shape.equals(\"ellipse\"))\n\t\t\t\treturn new Point((int)((Ellipse2D)obj).getCenterX(),(int)((Ellipse2D)obj).getCenterY());\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tint xtot = 0;\n\t\t\t\tint ytot = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i % 2) == 0)\n\t\t\t\t\t\txtot += coords[i];\n\t\t\t\t\telse\n\t\t\t\t\t\tytot += coords[i];\n\t\t\t\t}\n\t\t\t\treturn new Point((xtot*2)/coords.length,(ytot*2)/coords.length);\n\t\t\t}else\n\t\t\t{\n\t\t\t\treturn new Point((int)((Rectangle)obj).getCenterX(),(int)((Rectangle)obj).getCenterY());\n\t\t\t}\n\t\t}",
"private int getMidPoint(int cordinate)\n {\n int mid_point = ((cordinate + Player.getWidth_of_box()) / 2);\n return mid_point;\n }",
"public static Location getEntityCenter(Entity entity) {\n\t\treturn entity.getBoundingBox().getCenter().toLocation(entity.getWorld());\n\t}",
"public Point getLeft(BufferedImage dest_image, Point centroid, Point begin, Point end) {\n\n\n int xc = centroid.x;\n\n int x = begin.x;\n int y = begin.y;\n\n int x_sumL = 0;\n int y_sumL = 0;\n\n int countL = 0;\n for (y = begin.y; y < end.y; y++) {\n for (x = begin.x; x <= xc; x++) {\n\n if (image_dest.getRGB(x, y) != -1) {\n x_sumL += x;\n y_sumL += y;\n countL++;\n //\t\t\t\t System.out.print(\"0\");\n } else {\n //\t\t\t\tSystem.out.print(\"1\");\n }\n }\n //\t\tSystem.out.println(\"\");\n\n }\n//\t\tSystem.out.println(\"xsumL : \"+x_sumL);\n//\t\tSystem.out.println(\"ysumL : \"+y_sumL);\n//\t\tSystem.out.println(\"CountL :\"+countL);\n int x_left = 0;\n int y_left = 0;\n if (countL == 0) {\n //JOptionPane.showMessageDialog(null, \"Kiri count 0 \"+fname );\n x_left = 0;\n y_left = 0;\n } else {\n double d_yLeft = Double.valueOf(df.format(new Double(y_sumL).doubleValue() / new Double(countL).doubleValue()));\n double d_xLeft = Double.valueOf(df.format(new Double(x_sumL).doubleValue() / new Double(countL).doubleValue()));\n y_left = (int) Math.round(new Double(d_yLeft));\n x_left = (int) Math.round(new Double(d_xLeft));\n\n//\t\t\tx_left = (int)Math.round(new Double(x_sumL)/new Double(countL));\n//\t\t\ty_left = (int)Math.round(new Double(y_sumL)/new Double(countL));\n }\n return new Point(x_left, y_left);\n\n }",
"public Location getCenter() {\n return new Location(location.getWorld(), (float) getRectangle().getCenterX(), (float) getRectangle().getCenterY());\n }"
] | [
"0.79027",
"0.7355608",
"0.7320047",
"0.72759384",
"0.7183184",
"0.70432806",
"0.70432806",
"0.6992719",
"0.69481826",
"0.69337815",
"0.6924803",
"0.6923621",
"0.69144505",
"0.688769",
"0.6883937",
"0.6878905",
"0.685506",
"0.6852654",
"0.681547",
"0.6804136",
"0.67690724",
"0.6750843",
"0.6748082",
"0.67470413",
"0.6704451",
"0.66682076",
"0.66658396",
"0.6643842",
"0.66381055",
"0.65519345",
"0.6545009",
"0.6531236",
"0.6512688",
"0.6509847",
"0.65069807",
"0.6502896",
"0.64954126",
"0.6484835",
"0.64759016",
"0.6456954",
"0.64563584",
"0.6447459",
"0.64470184",
"0.6439496",
"0.64288557",
"0.64213926",
"0.63983536",
"0.6398226",
"0.63930166",
"0.6390166",
"0.6376134",
"0.63642806",
"0.636175",
"0.6349798",
"0.63432187",
"0.6336286",
"0.63251173",
"0.631213",
"0.6305496",
"0.62990594",
"0.6279903",
"0.6276109",
"0.6275523",
"0.62731373",
"0.62595165",
"0.6248974",
"0.6240698",
"0.6229578",
"0.62269187",
"0.6224206",
"0.6211262",
"0.61862105",
"0.61768466",
"0.6173862",
"0.6172974",
"0.6170032",
"0.6142718",
"0.61281717",
"0.6113844",
"0.6107946",
"0.6085882",
"0.6074757",
"0.60657775",
"0.6051979",
"0.60366285",
"0.6015813",
"0.601161",
"0.60058826",
"0.60023695",
"0.5998507",
"0.5998423",
"0.59881467",
"0.5987706",
"0.59866256",
"0.5985191",
"0.5973699",
"0.59729743",
"0.5966944",
"0.59638536",
"0.5958575",
"0.5935521"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
@Transactional
public long createJob(Job job) {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
@Transactional
public Job updateJob(Job job) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
@Transactional
public void deleteJob(String jobId) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
This method is used to calculate shortest distance between nodes via Dijkstra algorithm | @Override
public Double calculateShortestPathFromSource(String from, String to) {
Node source = graph.getNodeByName(from);
Node destination = graph.getNodeByName(to);
source.setDistance(0d);
Set<Node> settledNodes = new HashSet<>();
PriorityQueue<Node> unsettledNodes = new PriorityQueue<>(Comparator.comparing(Node::getDistance));
unsettledNodes.add(source);
while (unsettledNodes.size() != 0) {
Node currentNode = unsettledNodes.poll();
for (Map.Entry<Node, Double> adjacencyPair : currentNode.getAdjacentNodes().entrySet()) {
Node adjacentNode = adjacencyPair.getKey();
Double distance = adjacencyPair.getValue();
if (!settledNodes.contains(adjacentNode)) {
calculateMinimumDistance(adjacentNode, distance, currentNode);
unsettledNodes.add(adjacentNode);
}
}
settledNodes.add(currentNode);
}
return destination.getDistance() == Double.MAX_VALUE ? -9999d : destination.getDistance();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic double shortestPathDist(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn Double.parseDouble(dwg.getNode(dest).getInfo());\n\t}",
"private static void disjkstraAlgorithm(Node sourceNode, GraphBuilder graph){\n PriorityQueue<Node> smallestDisQueue = new PriorityQueue<>(graph.nodeArr.size(), new Comparator<Node>() {\n @Override\n public int compare(Node first, Node sec) {\n if(first.distance == Integer.MAX_VALUE && sec.distance == Integer.MAX_VALUE){\n return 0;\n }\n else if(first.distance == Integer.MAX_VALUE && sec.distance != Integer.MAX_VALUE){\n return 1;\n } else if(first.distance != Integer.MAX_VALUE && sec.distance == Integer.MAX_VALUE){\n return -1;\n }\n else\n return (int) (first.distance - sec.distance);\n }\n });\n\n smallestDisQueue.add(sourceNode); //add the node to the queue\n\n // until all vertices are know get the vertex with smallest distance\n\n while(!smallestDisQueue.isEmpty()) {\n\n Node currNode = smallestDisQueue.poll();\n// System.out.println(\"Curr: \");\n// System.out.println(currNode);\n if(currNode.known)\n continue; //do nothing if the currNode is known\n\n currNode.known = true; // otherwise, set it to be known\n\n for(Edge connectedEdge : currNode.connectingEdges){\n Node nextNode = connectedEdge.head;\n if(!nextNode.known){ // Visit all neighbors that are unknown\n\n long weight = connectedEdge.weight;\n if(currNode.distance == Integer.MAX_VALUE){\n continue;\n }\n else if(nextNode.distance == Integer.MAX_VALUE && currNode.distance == Integer.MAX_VALUE) {\n continue;\n }\n\n else if(nextNode.distance> weight + currNode.distance){//Update their distance and path variable\n smallestDisQueue.remove(nextNode); //remove it from the queue\n nextNode.distance = weight + currNode.distance;\n\n smallestDisQueue.add(nextNode); //add it again to the queue\n nextNode.pathFromSouce = currNode;\n\n// System.out.println(\"Next: \");\n// System.out.println(nextNode);\n }\n }\n }\n// System.out.println(\"/////////////\");\n }\n }",
"public void Djkstra(int source) {\n\t\tfor (int i = 0; i < vertices; i++) {\n\t\t\tdist[i] = Integer.MAX_VALUE; // added infinity to all ,\n\t\t}\n\t\t\n\t\tdist[source] = 0;\n\n\t\t// add source vertex to priority queue\n\t\tq.add(new Node(source, 0));\n\n\n\t\t// while my all vertices are not selected as a min among smallest one time\n\t\t// refracted in visited\n\t\twhile (visited.size() != vertices) {\n\n\t\t\t// pick from priority queue the smallest/min distance\n\t\t\tint i = q.remove().node;\n\n\t\t\t// once node is removed from queue add to set\n\t\t\tvisited.add(i);\n\n\t\t\t// relax adjacent vertex of this node;\n\t\t\t// And add the new node to queue bcoz distance has got updated so add new node as i dont have any method to update \n\t\t\t// already present node and its distance\n\t\t\t\n\n\t\t\tfor (Node v : graph[i]) {\n\t\t\t\tif (!visited.contains(v.node)) {\n\t\t\t\t\tif (dist[i] + v.cost < dist[v.node]) {\n\t\t\t\t\t\tdist[v.node] = dist[i] + v.cost;\n\t\t\t\t\t\tq.add(new Node(v.node, dist[v.node]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}",
"private void calculateShortestDistances (GraphStructure graph,int startVertex,int destinationVertex) {\r\n\t\t//traverseRecursively(graph, startVertex);\r\n\t\tif(pathList.contains(destinationVertex)) {\r\n\t\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\t\tint numberOfVertices=graph.getNumberOfVertices();\r\n\t\t\tSet<Integer> spanningTreeSet = new HashSet<Integer>();\r\n\t\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\t\tdistanceArray[startVertex]=0;\r\n\t\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\t\tList<Edge> list;\r\n\t\t\tlist = graph.getAdjacencyList()[startVertex];\r\n\t\t\tif(startVertex==destinationVertex) {\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tfor(Edge value : list) {\r\n\t\t\t\t\tif(! isVisited[value.getVertex()]) {\r\n\t\t\t\t\t\tint sumOfWeightAndSourceVertexDistanceValue = distanceArray[startVertex] + value.getWeight();\r\n\t\t\t\t\t\tint distanceValueOfDestinationVertex = distanceArray[value.getVertex()];\r\n\t\t\t\t\t\tif( sumOfWeightAndSourceVertexDistanceValue < distanceValueOfDestinationVertex ) {\r\n\t\t\t\t\t\t\tdistanceArray[value.getVertex()] = sumOfWeightAndSourceVertexDistanceValue;\r\n\t\t\t\t\t\t\tshortestPathList.add(value.getVertex());\r\n\t\t\t\t\t\t\tcalculateShortestDistances(graph,value.getVertex(), distanceValueOfDestinationVertex);\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*for(Integer value : spanningTreeSet) {\r\n\t\t\t\tSystem.out.print(value+\" \");\r\n\t\t\t}*/\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No route is present between given vertices !\");\r\n\t\t}\r\n\t}",
"@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tint[] prev = new int[dwg.nodeSize()];\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\tprev[src%dwg.nodeSize()] = -1;\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t\tprev[u.getKey()%dwg.nodeSize()] = v.getKey();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tList<node_data> ans = new ArrayList<node_data>();\n\t\tint run = dest;\n\t\twhile(run != src) {\n\t\t\tans.add(0,dwg.getNode(run));\n\t\t\trun = prev[run%dwg.nodeSize()];\n\t\t}\n\t\tans.add(0, dwg.getNode(src));\n\n\t\treturn ans;\n\t}",
"@Override\n\tpublic double shortestPathDist(int src, int dest) {\n\t\tif(src== dest ) return 0;\n\t\tif(this.GA.getNode(src)==null || this.GA.getNode(dest)==null) throw new RuntimeException(\"Wrong input,Missing nodes.\");\n\t\tsetNodes();\n\t\tnode_data temp = this.GA.getNode(src);\n\t\ttemp.setWeight(0);\n\t\tSTPRec(temp, this.GA.getNode(dest));\n\t\tdouble ans = this.GA.getNode(dest).getWeight();\n\t\treturn ans;\n\t}",
"public int doDijkstras(String startVertex, String endVertex, ArrayList<String> shortestPath)\r\n\t{\r\n\t\tif(!this.dataMap.containsKey(startVertex) || !this.dataMap.containsKey(endVertex))\r\n\t\t{\r\n\t\t\tthrow new IllegalArgumentException(\"Vertex does not exist in the graph!\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSet<String> visited = new HashSet<String>();\r\n\t\t\r\n\t\tPriorityQueue<Vertex> minDist = new PriorityQueue<Vertex>();\r\n\t\t\r\n\t\tVertex firstV = new Vertex(startVertex,startVertex,0);\r\n\t\tminDist.add(firstV);\r\n\t\t\r\n\t\tfor(String V : this.adjacencyMap.get(startVertex).keySet())\r\n\t\t{\r\n\t\t\tminDist.add(new Vertex(V,startVertex,this.getCost(startVertex, V)));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//map of vertexName --> VertexObject\r\n\t\tHashMap<String, Vertex> mapV = new HashMap<String,Vertex>();\r\n\t\tmapV.put(startVertex, firstV);\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Init keys-->costs\r\n\t\t */\r\n\t\tfor(String key : this.getVertices())\r\n\t\t{\r\n\t\t\tif(key.equals(startVertex))\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,0));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,Integer.MAX_VALUE));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t/*\r\n\t\t * Init List for shortest path\r\n\t\t */\r\n\t\tLinkedList<String> list = new LinkedList<String>();\r\n\t\tlist.add(startVertex);\r\n\r\n\t\tHashMap<String,List<String>> path = new HashMap<String,List<String>>();\r\n\t\tpath.put(startVertex, list);\r\n\t\t\r\n\t\twhile(!minDist.isEmpty())\r\n\t\t{\r\n\t\t\tVertex node = minDist.poll();\r\n\t\t\tString V = node.current;\r\n\t\t\tint minimum = node.cost;\r\n\t\t\tSystem.out.println(minDist.toString());\r\n\t\t\t\r\n\t\t\t\tvisited.add(V);\r\n\t\t\t\t\r\n\t\t\t\tTreeSet<String> adj = new TreeSet<String>(this.adjacencyMap.get(V).keySet());\r\n\t\t\t\t\r\n\t\t\t\tfor(String successor : adj)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(!visited.contains(successor) && !V.equals(successor))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint newCost = this.getCost(V, successor)+minimum;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(newCost < mapV.get(successor).cost)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tminDist.remove(mapV.get(successor));\r\n\t\t\t\t\t\t\t\tminDist.add(new Vertex(successor,V,newCost));\r\n\t\t\t\t\t\t\t\tmapV.put(successor, new Vertex(successor,V,newCost));\r\n\r\n\t\t\t\t\t\t\t\tLinkedList<String> newList = new LinkedList<String>(path.get(V));\r\n\t\t\t\t\t\t\t\tnewList.add(successor);\r\n\t\t\t\t\t\t\t\tpath.put(successor, newList);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tint smallestPath = mapV.get(endVertex).cost == Integer.MAX_VALUE ? -1 : mapV.get(endVertex).cost;\r\n\t\t\r\n\t\tif(smallestPath == -1)\r\n\t\t{\r\n\t\t\tshortestPath.add(\"None\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(String node : path.get(endVertex))\r\n\t\t\t{\r\n\t\t\t\tshortestPath.add(node);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn smallestPath;\r\n\t}",
"private double dijkstrasAlgo(String source, String dest) {\r\n\r\n\t\tclearAll(); // running time: |V|\r\n\t\tint count = 0; // running time: Constant\r\n\t\tfor (Vertex v : vertexMap.values()) // running time: |V|\r\n\t\t\tif (v.isStatus())\r\n\t\t\t\tcount++;\r\n\r\n\t\tVertex[] queue = new Vertex[count]; // running time: Constant\r\n\t\tVertex start = vertexMap.get(source); // running time: Constant\r\n\t\tstart.dist = 0; // running time: Constant\r\n\t\tstart.prev = null; // running time: Constant\r\n\r\n\t\tint index = 0; // running time: Constant\r\n\t\tfor (Vertex v : vertexMap.values()) { // running time: |V|\r\n\t\t\tif (v.isStatus()) {\r\n\t\t\t\tqueue[index] = v;\r\n\t\t\t\tv.setHandle(index);\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tbuildMinHeap(queue, count); // running time: |V|\r\n\r\n\t\twhile (count != 0) { // running time: |V|\r\n\t\t\tVertex min = extractMin(queue, count); // running time: log |V|\r\n\t\t\tcount--; // running time: Constant\r\n\r\n\t\t\tfor (Iterator i = min.adjacent.iterator(); i.hasNext();) { // running time: |E|\r\n\t\t\t\tEdge edge = (Edge) i.next();\r\n\t\t\t\tif (edge.isStatus()) {\r\n\t\t\t\t\tVertex adjVertex = vertexMap.get(edge.getDestination());\r\n\t\t\t\t\tif (adjVertex.dist > (min.dist + edge.getCost()) && adjVertex.isStatus()) {\r\n\t\t\t\t\t\tadjVertex.dist = (min.dist + edge.getCost());\r\n\t\t\t\t\t\tadjVertex.prev = min;\r\n\t\t\t\t\t\tint pos = adjVertex.getHandle();\r\n\t\t\t\t\t\tHeapdecreaseKey(queue, pos, adjVertex); // running time: log |V|\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn vertexMap.get(dest).dist; // running time: Constant\r\n\t}",
"public double shortestPathDist(int src, int dest);",
"public List<Node> computeDijkstraShortestPath(Node source, Node destination) {\n\n source.minDistance = 0.;\n PriorityQueue<Node> nodeQueue = new PriorityQueue<Node>();\n nodeQueue.add(source);\n\n int destinationGroup = destination._groupID;\n\n while (!nodeQueue.isEmpty()) {\n Node v = nodeQueue.poll();\n\n Log.i(\"bbb\", \"In dijsk node name \"+ v._waypointName);\n //Stop searching when reach the destination node\n\n\n if(destinationGroup!=0){\n\n if(v._groupID==destinationGroup){\n destination = navigationGraph.get(navigationGraph.size()-1).nodesInSubgraph.get(v._waypointID);\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n break;\n }\n\n }\n\n if (v._waypointID.equals(destination._waypointID))\n break;\n\n\n // Visit each edge that is adjacent to v\n for (Edge e : v._edges) {\n Node a = e.target;\n Log.i(\"bbb\", \"node a \"+a._waypointName);\n double weight = e.weight;\n double distanceThroughU = v.minDistance + weight;\n if (distanceThroughU < a.minDistance) {\n nodeQueue.remove(a);\n a.minDistance = distanceThroughU;\n a.previous = v;\n Log.i(\"bbb\", \"set previous\");\n nodeQueue.add(a);\n }\n }\n }\n\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n return getShortestPathToDestination(destination);\n }",
"void dijkstra(int[][] graph){\r\n int dist[] = new int[rideCount];\r\n Boolean sptSet[] = new Boolean[rideCount];\r\n\r\n for(int i = 0; i< rideCount; i++){\r\n dist[i] = Integer.MAX_VALUE;\r\n sptSet[i] = false;\r\n }\r\n\r\n dist[0] = 0;\r\n\r\n for(int count = 0; count< rideCount -1; count++){\r\n int u = minWeight(dist, sptSet);\r\n sptSet[u] = true;\r\n for(int v = 0; v< rideCount; v++){\r\n if (!sptSet[v] && graph[u][v] != 0 && dist[u] + graph[u][v] < dist[v]){\r\n dist[v] = dist[u] + graph[u][v];\r\n }\r\n }\r\n }\r\n printSolution(dist);\r\n }",
"private double dijkstraSingleTarget(Map<Integer, List<Node>> graph, int vertices, int source, int target) {\n Queue<Node> minHeap = new PriorityQueue<>(\n Comparator.comparingDouble(a -> a.weight)\n );\n\n double[] dist = new double[vertices + 1]; //shortest distance for each vertex\n Arrays.fill(dist, 0.0);\n\n boolean visited[] = new boolean[vertices + 1];\n\n // Distance for starting node is 0\n dist[source] = -1;\n minHeap.add((new Node(-1,source)));\n\n while (!minHeap.isEmpty()) {\n Node topPair = minHeap.remove();\n int currNode = topPair.vertex;\n double currDistance = topPair.weight;\n\n if (!graph.containsKey(currNode)) {\n continue;\n }\n\n if (visited[currNode]) continue;\n visited[currNode] = true;\n\n\n for (Node edge : graph.get(currNode)) {\n double weight = edge.weight;\n int neighborNode = edge.vertex;\n double nextDist = currDistance * weight;\n\n if (!visited[neighborNode] && nextDist < dist[neighborNode]) {\n dist[neighborNode] = nextDist;\n minHeap.add((new Node(nextDist, neighborNode)));\n\n }\n\n }\n\n\n }\n\n return -dist[target];\n }",
"@Override\n public List dijkstrasShortestPath(T start, T end) {\n Vertex<T> origin = new Vertex<>(start);\n Vertex<T> destination = new Vertex<>(end);\n List<Vertex<T>> path;\n\n settledNodes = new HashSet<>();\n unSettledNodes = new HashSet<>();\n distancesBetweenNodes = new HashMap<>();\n predecessors = new HashMap<>();\n\n distancesBetweenNodes.put(origin,0);\n unSettledNodes.add(origin);\n\n while(unSettledNodes.size() > 0){\n Vertex<T> minimumWeightedVertex = getMinimum(unSettledNodes);\n settledNodes.add(minimumWeightedVertex);\n unSettledNodes.remove(minimumWeightedVertex);\n findMinimumDistance(minimumWeightedVertex);\n }\n path = getPath(destination);\n return path;\n\n }",
"private void computeShortestPath(){\n T current = start;\n boolean atEnd = false;\n while (!unvisited.isEmpty()&& !atEnd){\n int currentIndex = vertexIndex(current);\n LinkedList<T> neighbors = getUnvisitedNeighbors(current); // getting unvisited neighbors\n \n //what is this doing here???\n if (neighbors.isEmpty()){\n \n }\n \n // looping through to find distances from start to neighbors\n for (T neighbor : neighbors){ \n int neighborIndex = vertexIndex(neighbor); \n int d = distances[currentIndex] + getEdgeWeight(current, neighbor);\n \n if (d < distances[neighborIndex]){ // if this distance is less than previous distance\n distances[neighborIndex] = d;\n closestPredecessor[neighborIndex] = current; // now closest predecessor is current\n }\n }\n \n if (current.equals(end)){\n atEnd = true;\n }\n else{\n // finding unvisited node that is closest to start node\n T min = getMinUnvisited();\n if (min != null){\n unvisited.remove(min); // remove minimum neighbor from unvisited\n visited.add(min); // add minimum neighbor to visited\n current = min;\n }\n }\n }\n computePath();\n totalDistance = distances[vertexIndex(end)];\n }",
"public double dijkstra(NodoArista[][] adjacencyMatrix, int startVertex, int nodoBuscado, ListaEnlazada lista) {\n int nVertices = adjacencyMatrix[0].length;\n // shortestDistances[i] will hold the shortest distance from src to i\n double[] shortestDistances = new double[nVertices];\n double[] precios = new double[nVertices];\n // added[i] will true if vertex i is included / in shortest path tree or shortest distance from src to i is finalized \n boolean[] added = new boolean[nVertices];\n\n // Initialize all distances as INFINITE and added[] as false \n for (int vertexIndex = 0; vertexIndex < nVertices; vertexIndex++) {\n shortestDistances[vertexIndex] = Integer.MAX_VALUE;\n precios[vertexIndex] = Integer.MAX_VALUE;\n added[vertexIndex] = false;\n }\n // Distance of source vertex from itself is always 0 \n shortestDistances[startVertex] = 0;\n precios[startVertex] = 0;\n // Parent array to store shortest path tree \n int[] parents = new int[nVertices];\n // The starting vertex does not have a parent \n parents[startVertex] = NO_PARENT;\n\n // Find shortest path for all vertices \n for (int i = 1; i < nVertices; i++) {\n // Pick the minimum distance vertex from the set of vertices not yet processed. nearestVertex is always equal to startNode in first iteration. \n int nearestVertex = -1;\n double shortestDistance = Integer.MAX_VALUE;\n double precio = Integer.MAX_VALUE;\n for (int vertexIndex = 0; vertexIndex < nVertices; vertexIndex++) {\n if (!added[vertexIndex] && shortestDistances[vertexIndex] < shortestDistance) {\n nearestVertex = vertexIndex;\n shortestDistance = shortestDistances[vertexIndex];\n precio = precios[vertexIndex];\n }\n }\n\n // Mark the picked vertex as processed \n added[nearestVertex] = true;\n\n // Update dist value of the adjacent vertices of the picked vertex. \n for (int vertexIndex = 0; vertexIndex < nVertices; vertexIndex++) {\n double edgeDistance = adjacencyMatrix[nearestVertex][vertexIndex].getPeso();\n double precioActual = adjacencyMatrix[nearestVertex][vertexIndex].getPrecio();\n double edgePrice = adjacencyMatrix[nearestVertex][vertexIndex].getPrecio();\n if (edgeDistance > 0 && ((shortestDistance + edgeDistance) < shortestDistances[vertexIndex])) {\n parents[vertexIndex] = nearestVertex;\n shortestDistances[vertexIndex] = shortestDistance + edgeDistance;\n precios[vertexIndex] = precio + precioActual;\n }\n if (edgePrice > 0 && ((shortestDistance + edgeDistance) < shortestDistances[vertexIndex])) {\n parents[vertexIndex] = nearestVertex;\n shortestDistances[vertexIndex] = shortestDistance + edgeDistance;\n precios[vertexIndex] = precio + precioActual;\n }\n }\n }\n printSolution(startVertex, shortestDistances, parents);\n printSolutionPara(startVertex, shortestDistances, parents, nodoBuscado, lista);\n\n return precios[nodoBuscado];\n }",
"public static Graph dijkstra(Graph graph, Node source) {\n source.distance = 0;\n Set<Node> settledNodes = new HashSet<>();\n Set<Node> unsettledNodes = new HashSet<>();\n unsettledNodes.add(source);\n \n while (unsettledNodes.size() != 0) {\n Node currentNode = Graph.getLowestDistanceNode(unsettledNodes);\n unsettledNodes.remove(currentNode);\n for (Map.Entry<Node, Integer> adjacencyPair: \n currentNode.adjacentNodes.entrySet()) {\n Node adjacentNode = adjacencyPair.getKey();\n Integer edgeWeight = adjacencyPair.getValue();\n if (!settledNodes.contains(adjacentNode)) {\n Graph.calculateMinimumDistance(adjacentNode, edgeWeight, currentNode);\n unsettledNodes.add(adjacentNode);\n }\n }\n settledNodes.add(currentNode);\n }\n return graph;\n }",
"public void dijkstra(int graphWeight[][], int source){\r\n\t\t\r\n\t\tint queue[] = new int[vertices]; //The array which will hold the shortest distance from source to node i\r\n\t\tboolean set[] = new boolean[vertices]; //It will store true for node i if the shortest path to that vertex or node is found\r\n\t\t\r\n\t\t//Initialize distances to infinity and set[] array to false \r\n\t\tfor(int i=0;i<vertices;i++){\r\n\t\t\tqueue[i] = Integer.MAX_VALUE; \r\n\t\t\tset[i] = false;\r\n\t\t}\r\n\t\t\r\n\t\t//Distance of source vertex from itself is always 0\r\n\t\tqueue[source] = 0;\r\n\r\n\t\t//Find shortest path of all the vertices\r\n\t\tfor(int count=0;count<vertices-1;count++){\r\n\t\t\t\r\n\t\t\t//Pick the minimum distance vertex from the from the set of vertices \r\n\t\t\t//not processed. u is equal to source in first iteration\r\n\t\t\tint u = extractMinDistance(queue, set);\r\n\t\t\t\r\n\t\t\t//Mark the picked vertex processed\r\n\t\t\tset[u] = true;\r\n\t\t\t//Update queue value of the adjacent vertices of the picked vertex\r\n\t\t\tfor(int v=0;v<vertices;v++)\r\n\t\t\t{\r\n\t\t\t\t//Update queue[v] only if\r\n\t\t\t\t// 1. It is not in set true in the Set Array\r\n\t\t\t\t// 2. There is an edge from u to v\r\n\t\t\t\t// 3. Total weight of path from source to v through u is smaller than current value of queue[v]\r\n\t\t\t\tif((graphWeight[u][v] > 0) && set[v] == false){\r\n\t\t\t\t\t\tif(queue[u] + graphWeight[u][v] < queue[v]){\r\n\t\t\t\t\t\t\tqueue[v] = queue[u] + graphWeight[u][v];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//printSolution(queue, vertices);\r\n\t\t}\r\n\t\t//Print the constructed distance array\r\n\t\tprintSolution(queue, vertices);\r\n\t}",
"void dijkstra(int graph[][], int src) {\n int dist[] = new int[V]; // The output array. dist[i] will hold\n // the shortest distance from src to i\n\n // sptSet[i] will true if vertex i is included in shortest\n Boolean sptSet[] = new Boolean[V];\n\n for (int i = 0; i < V; i++) {\n dist[i] = Integer.MAX_VALUE;\n sptSet[i] = false;\n }\n\n dist[src] = 0;\n\n // Find shortest path for all vertices\n for (int count = 0; count < V-1; count++) {\n\n int u = minDistance(dist, sptSet);\n\n // Mark the picked vertex as processed\n sptSet[u] = true;\n\n // Update dist value of the adjacent vertices of the\n // picked vertex.\n for (int v = 0; v < V; v++)\n\n\n if (!sptSet[v] && graph[u][v]!=0 &&\n dist[u] != Integer.MAX_VALUE &&\n dist[u]+graph[u][v] < dist[v])\n dist[v] = dist[u] + graph[u][v];\n }\n\n printSolution(dist, V);\n }",
"public Map<Node<T>, Cost> dijkstra(T start) throws NodeNotFoundException {\n Node<T> origin = findNode(start);\n Map<Node<T>, Cost> costs = new HashMap<>();\n List<Node<T>> alreadyVisited = new ArrayList<>();\n\n // Step 1 : Initialization\n // Set every cost to infinity, except for the starting summit which is set to 0\n for(Node<T> node : getNodes()) {\n if(origin.equals(node)) { costs.put(node, new Cost(0.0)); }\n else { costs.put(node, new Cost()); }\n }\n\n while(ArrayMethods.similarity(getNodes(), alreadyVisited) != order()) {\n // Step 2 : Taking the node with the smallest cost\n Node<T> reference = Cost.findMin(costs, alreadyVisited);\n\n // Step 3 : Updating the table with the costs from that node\n for(WeightedLink link : findLinks(reference.getData())) {\n Node<T> other = (Node<T>) link.getOther(reference);\n Cost oldCost = costs.get(other);\n double old = oldCost.getCost();\n double cost = link.getWeight() + costs.get(reference).getCost();\n\n costs.put(other, (cost < old) ? new Cost(cost, reference) : oldCost);\n }\n\n // Step 4 : Repeat with the smallest costing summit that wasn't visited already\n alreadyVisited.add(reference);\n }\n\n return costs;\n }",
"ShortestPath(UndirectedWeightedGraph graph, String startNodeId, String endNodeId) throws NotFoundNodeException {\r\n\t\t\r\n\t\tif (!graph.containsNode(startNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, startNodeId);\r\n\t\t}\t\t\r\n\t\tif (!graph.containsNode(endNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, endNodeId);\r\n\t\t}\t\r\n\r\n\t\tsrc = startNodeId;\r\n\t\tdst = endNodeId;\r\n\t\t\r\n\t\tif (endNodeId.equals(startNodeId)) {\r\n\t\t\tlength = 0;\r\n\t\t\tnumOfPath = 1;\r\n\t\t\tArrayList<String> path = new ArrayList<String>();\r\n\t\t\tpath.add(startNodeId);\r\n\t\t\tpathList.add(path);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// create a HashMap of updated distance from the starting node to every node\r\n\t\t\t// initially it is 0, inf, inf, inf, ...\r\n\t\t\tHashMap<String, Double> distance = new HashMap<String, Double>();\t\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif (nodeId.equals(startNodeId)) {\r\n\t\t\t\t\t// the starting node will always have 0 distance from itself\r\n\t\t\t\t\tdistance.put(nodeId, 0.0);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// the others have initial distance is infinity\r\n\t\t\t\t\tdistance.put(nodeId, Double.MAX_VALUE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// a HashMap of preceding node of each node\r\n\t\t\tHashMap<String, HashSet<String>> precedence = new HashMap<String, HashSet<String>>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif ( nodeId.equals(startNodeId) ) {\r\n\t\t\t\t\tprecedence.put(nodeId, null);\t// the start node will have no preceding node\r\n\t\t\t\t}\r\n\t\t\t\telse { \r\n\t\t\t\t\tprecedence.put(nodeId, new HashSet<String>());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//\r\n\t\t\tSet<String> unvisitedNode = new HashSet<String>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tunvisitedNode.add(nodeId);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdouble minUnvisitedLength;\r\n\t\t\tString minUnvisitedNode;\r\n\t\t\t// run loop while not all node is visited\r\n\t\t\twhile ( unvisitedNode.size() != 0 ) {\r\n\t\t\t\t// find the unvisited node with minimum current distance in distance list\r\n\t\t\t\tminUnvisitedLength = Double.MAX_VALUE;\r\n\t\t\t\tminUnvisitedNode = \"\";\r\n\t\t\t\tfor (String nodeId : unvisitedNode) {\r\n\t\t\t\t\tif (distance.get(nodeId) < minUnvisitedLength) {\r\n\t\t\t\t\t\tminUnvisitedNode = nodeId;\r\n\t\t\t\t\t\tminUnvisitedLength = distance.get(nodeId); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// if there are no node that can be visited from the unvisitedNode, break the loop \r\n\t\t\t\tif (minUnvisitedLength == Double.MAX_VALUE) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// remove the node from unvisitedNode\r\n\t\t\t\tunvisitedNode.remove(minUnvisitedNode);\r\n\t\t\t\t\r\n\t\t\t\t// update the distance of its neighbors\r\n\t\t\t\tfor (Node neighborNode : graph.getNodeList().get(minUnvisitedNode).getNeighbors().keySet()) {\r\n\t\t\t\t\tdouble distanceFromTheMinNode = distance.get(minUnvisitedNode) + graph.getNodeList().get(minUnvisitedNode).getNeighbors().get(neighborNode).getWeight();\r\n\t\t\t\t\t// if the distance of the neighbor can be shorter from the current node, change \r\n\t\t\t\t\t// its details in distance and precedence\r\n\t\t\t\t\tif ( distanceFromTheMinNode < distance.get(neighborNode.getId()) ) {\r\n\t\t\t\t\t\tdistance.replace(neighborNode.getId(), distanceFromTheMinNode);\r\n\t\t\t\t\t\t// renew the precedence of the neighbor node\r\n\t\t\t\t\t\tprecedence.put(neighborNode.getId(), new HashSet<String>());\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (distanceFromTheMinNode == distance.get(neighborNode.getId())) {\r\n\t\t\t\t\t\t// unlike dijkstra's algorithm, multiple path should be update into the precedence\r\n\t\t\t\t\t\t// if from another node the distance is the same, add it to the precedence\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// if the current node in the process is the end node, we can stop the while loop here\r\n\t\t\t\tif (minUnvisitedNode == endNodeId) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (distance.get(endNodeId) == Double.MAX_VALUE) {\r\n\t\t\t\t// in case there is no shortest path between the 2 nodes\r\n\t\t\t\tlength = 0;\r\n\t\t\t\tnumOfPath = 0;\r\n\t\t\t\tpathList = null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// other wise we have these information\r\n\t\t\t\tlength = distance.get(endNodeId);\r\n\t\t\t\t//numOfPath = this.getNumPath(precedence, startNodeId, endNodeId);\r\n\t\t\t\tpathList = this.findPathList(precedence, startNodeId, endNodeId);\r\n\t\t\t\tnumOfPath = pathList.size();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\t// END ELSE\t\t\r\n\t}",
"private int shortestDistance(Vertex dest) {\n Integer d = distance.get(dest);\n if (d==null)\n return Integer.MAX_VALUE;\n return d;\n }",
"@Override\r\n public Double calcDistance(List<Point> src, List<Point> dst) {\r\n // Local Variables\r\n Double shortestDistance = Double.MAX_VALUE;\r\n Double currentDistance;\r\n\r\n // for each point in source\r\n for (Point p1:src) {\r\n // for each point in destination\r\n for (Point p2:dst) {\r\n // calc distance\r\n currentDistance = p1.distanceFrom(p2);\r\n\r\n // current < shortest -> update\r\n if(currentDistance < shortestDistance ){\r\n shortestDistance = currentDistance;\r\n }\r\n\r\n }\r\n }\r\n\r\n return shortestDistance;\r\n }",
"@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tList<node_data> ans = new ArrayList<>();\n\t\tthis.shortestPathDist(src, dest);\n\t\tif(this.GA.getNode(src).getWeight() == Integer.MAX_VALUE || this.GA.getNode(dest).getWeight() == Integer.MAX_VALUE){\n\t\t\tSystem.out.print(\"There is not a path between the nodes.\");\n\t\t\treturn null;\n\t\t}\n\t\tgraph copied = this.copy();\n\t\ttransPose(copied);\n\t\tnode_data first = copied.getNode(dest);\n\t\tans.add(first);\n\t\twhile (first.getKey() != src) {\n\t\t\tCollection<edge_data> temp = copied.getE(first.getKey());\n\t\t\tdouble check= first.getWeight();\n\t\t\tif(temp!=null) {\n\t\t\t\tfor (edge_data edge : temp) {\n\t\t\t\t\tif (copied.getNode(edge.getDest()).getWeight() + edge.getWeight() == check) {\n\t\t\t\t\t\tfirst = copied.getNode(edge.getDest());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tans.add(first);\n\t\t}\n\t\tList<node_data> ans2 = new ArrayList<>();\n\t\tfor (int i = ans.size()-1;i>=0;i--){\n\t\t\tans2.add(ans.get(i));\n\t\t}\n\t\treturn ans2;\n\t}",
"public void dijkstra(List<List<Node> > adj, int src){ \n this.adj = adj; \n \n for (int i = 0; i < V; i++) \n dist[i] = Integer.MAX_VALUE; \n \n // Add source node to the priority queue \n pq.add(new Node(src, 0)); \n \n // Distance to the source is 0 \n dist[src] = 0; \n while (settled.size() != V) { \n \n // remove the minimum distance node from the priority queue \n int u = pq.remove().node; \n \n // adding the node whose distance is finalized \n settled.add(u); \n \n e_Neighbours(u); \n } \n }",
"private void dijkstra(final NavigableSet<Node> queue) {\n Node firstNode, neighbor;\n while (!queue.isEmpty()) {\n // vertex with shortest distance (first iteration will return source)\n firstNode = queue.pollFirst();\n assert firstNode != null;\n if (!explored.contains(firstNode.coordinate)) {\n explored.add(firstNode.coordinate);\n }\n if (firstNode.dist == Integer.MAX_VALUE)\n // we can ignore u (and any other remaining vertices) since they are unreachable\n break;\n //look at distances to each neighbour\n for (Map.Entry<Node, Integer> temp : firstNode.neighbours.entrySet()) {\n neighbor = temp.getKey(); //the neighbour in this iteration\n if (!explored.contains(neighbor.coordinate)) {\n explored.add(neighbor.coordinate);\n }\n final int alternateDist = firstNode.dist + temp.getValue();\n if (alternateDist < neighbor.dist) { // shorter path to neighbour found\n queue.remove(neighbor);\n neighbor.dist = alternateDist;\n neighbor.previous = firstNode;\n queue.add(neighbor);\n }\n }\n }\n }",
"public void shortestPathsNodes() {\n for (int sourceNode = 0; sourceNode < wordGraph.V(); sourceNode++) {\n BreadthFirstDirectedPaths bfs = new BreadthFirstDirectedPaths(wordGraph, sourceNode);\n\n for (int goalNode = 0; goalNode < wordGraph.V(); goalNode++) {\n Iterable<Integer> shortestPath = bfs.pathTo(goalNode);\n int pathLength = -1;\n if (shortestPath != null) {\n for (int edge : shortestPath) {\n pathLength++;\n }\n }\n if (pathLength != -1) {\n }\n System.out.println(pathLength);\n }\n }\n }",
"@Override\n public List<node_info> shortestPath(int src, int dest) {\n int counter=0;//counter for index of listPath\n List<node_info> listPath=new ArrayList<node_info>();//The reverse list that is returned\n List<node_info> listResult=new ArrayList<node_info>();//the returned list\n if(!DijkstraHelp(src,dest)) return null;//if there is no path from src to dest\n if(src==dest) {\n listPath.add(this.ga.getNode(src));\n return listPath;\n }\n //the other case:\n node_info d=this.ga.getNode(dest);\n listPath.add(counter,d);//insert the dest in order to go from destination to source\n //counter++;\n weighted_graph gCopy=copy();\n Iterator<node_info> it=gCopy.getV().iterator();//run on the whole graph\n while(it.hasNext()){\n if(listPath.get(counter).getKey()==src) break;//if we finished\n if(gCopy.getV(listPath.get(counter).getKey()).contains(it.next())) {//remove the nodes that we were already checked if\n //they need to be insert to listPath\n continue;\n }\n Iterator<node_info> currentIt=gCopy.getV(listPath.get(counter).getKey()).iterator();//iterator on the ni-list of the\n //last node were insert to the listPath\n if(currentIt!=null) {\n node_info min=null;\n while (currentIt.hasNext()){\n node_info currentLoop=currentIt.next();\n if(currentLoop.getTag()+gCopy.getEdge(listPath.get(counter).getKey(),currentLoop.getKey())==\n listPath.get(counter).getTag()){//check if this is the node that appropriate to the shortest path\n min=currentLoop;\n }\n }\n listPath.add(min);//insert to listPath\n counter++;\n }\n }\n for(int i=listPath.size()-1;i>=0;i--){\n listResult.add(listPath.size()-i-1,listPath.get(i));//reverse the list\n }\n return listResult;\n }",
"@Override\n public List<node_data> shortestPath(int src, int dest) {\n reset();\n for (node_data node : G.getV()) {\n node.setWeight(Double.POSITIVE_INFINITY);\n }\n\n DWGraph_DS.Node currentNode = (DWGraph_DS.Node) G.getNode(src);\n currentNode.setWeight(0);\n PriorityQueue<node_data> unvisitedNodes = new PriorityQueue(G.nodeSize(), weightComperator);\n unvisitedNodes.addAll(G.getV());\n HashMap<Integer, node_data> parent = new HashMap<>();\n parent.put(src, null);\n\n while (currentNode.getWeight() != Double.POSITIVE_INFINITY) {\n if (G.getNode(dest).getTag() == 1) {\n break;\n }\n for (edge_data edge : G.getE(currentNode.getKey())) {\n DWGraph_DS.Node neighbor = (DWGraph_DS.Node) G.getNode(edge.getDest());\n double tmpWeight = currentNode.getWeight() + edge.getWeight();\n if (tmpWeight < neighbor.getWeight()) {\n neighbor.setWeight(tmpWeight);\n unvisitedNodes.remove(neighbor);\n unvisitedNodes.add(neighbor);\n parent.put(neighbor.getKey(), currentNode);\n }\n }\n currentNode.setTag(1);\n if(currentNode.getKey()==dest) break;\n unvisitedNodes.remove(currentNode);\n currentNode = (DWGraph_DS.Node) unvisitedNodes.poll();\n }\n /*\n Rebuild the path list\n */\n if (!parent.keySet().contains(dest)) return null;\n List<node_data> pathList = new ArrayList<>();\n currentNode = (DWGraph_DS.Node) G.getNode(dest);\n while (parent.get(currentNode.getKey()) != null) {\n pathList.add(currentNode);\n currentNode = (DWGraph_DS.Node) parent.get(currentNode.getKey());\n }\n Collections.reverse(pathList);\n return pathList;\n }",
"public int dijkstra(int adj[][], int source,int des) {\n\t\tint temp2=0;\n\t\tint distance[]=new int[vertexs];\n\t\tBoolean span_tree[]=new Boolean[vertexs];\n\t\t\n\t\tfor(int i=0;i<vertexs;i++) {\n\t\t\tdistance[i]=Integer.MAX_VALUE;\n\t\t\tspan_tree[i]=false;\n\t\t}\n\t\tdistance[source]=0;\n\t\tfor(int i=0;i<vertexs-1;i++) {\n\t\t\tint u=minDistance(distance,span_tree);\n\t\t\tspan_tree[u]=true;\n\t\t\tfor(int v=0;v<vertexs;v++) {\n\t\t\t\tif(!span_tree[v] && adj[u][v]!=0 && distance[u]!=Integer.MAX_VALUE && distance[u]\n\t\t\t\t\t\t+ adj[u][v]<distance[v]) {\n\t\t\t\t\tdistance[v]=distance[u]+adj[u][v];\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemp2=distance[des];\n\t\t}\n\t\tprintGraph(distance,vertexs);\n\t\treturn temp2;\n\t}",
"private void calculateShortestRoute(String strSourceTerminal){\n\t\tshortestTravelTime = new HashMap<>();\n\n //stores parent of every terminal in shortest travel time\n parent = new HashMap<>();\n \n //heap + map data structure\n MinimumHeap<BaggageTerminal> minHeap = new MinimumHeap<>();\n\n //initialize all terminal with infinite distance from source terminal\n for(BaggageTerminal baggageTerminal : graph.getTerminals()){\n minHeap.add(Integer.MAX_VALUE, baggageTerminal);\n }\n \n BaggageTerminal sourceTerminal = graph.getTerminal(strSourceTerminal);\n \n //set distance of source terminal to itself 0\n minHeap.decrease(sourceTerminal, 0);\n\n //put it in map\n shortestTravelTime.put(sourceTerminal, 0);\n\n //source terminal parent is null\n parent.put(sourceTerminal, null);\n\n //iterate till heap is not empty\n while(!minHeap.empty()){\n //get the min value from heap node which has vertex and distance of that vertex from source vertex.\n MinimumHeap<BaggageTerminal>.Node heapNode = minHeap.extractMinNode();\n BaggageTerminal currentTerminal = heapNode.key;\n\n //update shortest distance of current vertex from source vertex\n shortestTravelTime.put(currentTerminal, heapNode.weight);\n\n //iterate through all connections of current terminal\n for(Connection connection : currentTerminal.getConnections()){\n\n //get the adjacent terminal\n BaggageTerminal adjacent = getConnectingTerminal(currentTerminal, connection);\n\n //if heap does not contain adjacent vertex means adjacent vertex already has shortest distance from source vertex\n if(!minHeap.containsData(adjacent)){\n continue;\n }\n\n //add distance of current vertex to edge weight to get distance of adjacent vertex from source vertex\n //when it goes through current vertex\n int newDistance = shortestTravelTime.get(currentTerminal) + connection.getWeight();\n\n //see if this above calculated distance is less than current distance stored for adjacent vertex from source vertex\n if(minHeap.getWeight(adjacent) > newDistance) {\n minHeap.decrease(adjacent, newDistance);\n parent.put(adjacent, currentTerminal);\n }\n }\n }\n return;\n }",
"void dijkstra(int strtval){\n PriorityQueue<Integer> pq = new PriorityQueue<>(new Comparator<Integer>(){\n @Override\n public int compare(Integer i1, Integer i2){\n Node n1 = dlist.get(i1);\n Node n2 = dlist.get(i2);\n return n1.getDist() > n2.getDist()?1 : n1.getDist() < n2.getDist()? -1:0;\n }\n });\n\n Node stnode = dlist.get(strtval);\n stnode.setval(strtval);\n stnode.setDist(0);\n seen.add(strtval);\n pq.add(strtval);\n while(!pq.isEmpty()){\n strtval = pq.poll();\n LinkedList<Node> alist = grp.getOrDefault(strtval, null);\n if(alist != null){\n for(Node node : alist){\n //see distance and then decide if needs to be added to qu is not seen.\n int nval = node.getval();\n int nweg = node.getDist();\n int ddist = dlist.get(nval).getDist();\n int odist = dlist.get(strtval).getDist();\n if(ddist > odist+nweg){\n dlist.get(nval).setval(strtval);\n dlist.get(nval).setDist(odist+nweg);\n }\n //if alerady seen do not cal the distance again.\n if(!seen.contains(nval)){\n seen.add(nval);\n pq.add(nval);\n }\n }\n }\n }\n //print here:\n for(int key: dlist.keySet()){\n System.out.println(key+\" dist:\"+dlist.get(key).getDist()+\" prev:\"+dlist.get(key).getval());\n }\n }",
"public HashMap<Nodo, Integer> dijkstra() {\r\n\r\n\t\tPriorityQueue<NodoDijkstra> aVisitar = new PriorityQueue<NodoDijkstra>();\r\n\t\tHashMap<Nodo, Integer> distancias = new HashMap<Nodo, Integer>();\r\n\t\tHashMap<Nodo, Integer> retorno = new HashMap<Nodo, Integer>();\r\n\t\tHashSet<Nodo> visitados = new HashSet<Nodo>();\r\n\r\n\t\tNodoDijkstra nodoOrigen = new NodoDijkstra(this, 0);\r\n\t\tnodoOrigen.setCamino(new Camino(this));\r\n\t\taVisitar.add(nodoOrigen);\r\n\t\tdistancias.put(this, new Integer(0));\r\n\t\tretorno.put(this, new Integer(0));\r\n\r\n\t\twhile (!aVisitar.isEmpty()) {\r\n\t\t\tNodoDijkstra dNodo = aVisitar.poll();\r\n\t\t\tNodo actual = dNodo.getNodo();\r\n\t\t\tCamino camino = dNodo.getCamino();\r\n\r\n\t\t\tif (visitados.contains(actual))\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tvisitados.add(actual);\r\n\r\n\t\t\tfor (CanalOptico canal : actual.canales) {\r\n\t\t\t\tNodo vecino = canal.getOtroExtremo(actual);\r\n\t\t\t\tint costo = canal.getCosto();\r\n\r\n\t\t\t\t/* Restriccion del Dijkstra */\r\n\t\t\t\tif (visitados.contains(vecino))\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tif (canal.estaBloqueado())\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tif (vecino.estaBloqueado())\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tif (distancias.containsKey(vecino)) {\r\n\t\t\t\t\tint dActual = distancias.get(vecino);\r\n\r\n\t\t\t\t\tif (dActual <= dNodo.getDistancia() + costo)\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\taVisitar.remove(vecino);\r\n\t\t\t\t\t\tdistancias.remove(vecino);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tNodoDijkstra nuevoNodo = new NodoDijkstra(vecino,\r\n\t\t\t\t\t\tdNodo.getDistancia() + costo);\r\n\t\t\t\tCamino caminoNuevo = new Camino(camino);\r\n\t\t\t\tcaminoNuevo.addSalto(new Salto(camino.getSaltos().size() + 1,\r\n\t\t\t\t\t\tcanal));\r\n\t\t\t\tnuevoNodo.setCamino(caminoNuevo);\r\n\t\t\t\taVisitar.add(nuevoNodo);\r\n\t\t\t\tdistancias.put(nuevoNodo.getNodo(), nuevoNodo.getDistancia());\r\n\t\t\t\tretorno.put(nuevoNodo.getNodo(), nuevoNodo.getDistancia());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}",
"private int[] runDijkstra(int graph[][], int source) {\r\n\r\n // Stores the best estimate of the shortest distance from\r\n // the source to each node \r\n int d[] = new int[graph.length];\r\n \r\n // Initialized with infinite value.\r\n // Value of -1 means the node has been settled \r\n int dC[] = new int[graph.length];\r\n \r\n // Stores the predecessor of each node on the shortest path \r\n // from the source\r\n int p[] = new int[graph.length];\r\n\r\n // Initialize\r\n for (int i = 0; i < graph.length; i++ ) {\r\n d[i] = this.INFINITE;\r\n dC[i] = this.INFINITE;\r\n p[i] = -1;\r\n }\r\n \r\n // We start knowning the distance of the source from itself (zero)\r\n d[source] = 0;\r\n dC[source] = 0;\r\n\r\n int i = 0;\r\n int min = this.INFINITE;\r\n int pos = 0;\r\n\r\n while (i < graph.length) {\r\n //extract minimum distance\r\n for (int j = 0; j < dC.length; j++ ){\r\n if( min > d[j] && dC[j] != -1 ){\r\n min = d[j];\r\n pos = j;\r\n }\r\n }\r\n // This node is settled\r\n dC[pos] = -1;\r\n\r\n // relax its neighbours\r\n for (int j = 0; j < graph.length; j++ ) {\r\n if ( (graph[pos][j] != -1) && (d[j] > graph[pos][j] + d[pos]) ) {\r\n d[j] = graph[pos][j] + d[pos];\r\n p[j] = pos;\r\n }\r\n }\r\n i++;\r\n min = this.INFINITE;\r\n }\r\n\r\n return p;\r\n }",
"private int[] shrtst_Path_Dijkstra_Algo(int[][] matrx, int sNode, int[] forward_tab_dist, int[] list_Prevoius_Nodes) \n\t{\n\t\tArrayList<Integer> visitedNodes_M = new ArrayList<>(); //3. set of visited vertices is initially empty\n\t\tArrayList<Integer> unvisitedNodes_Q = new ArrayList<>(); //4. the queue initially contains all vertices\n\t\t\n\t\t//1. Distance to source vertex = 0\n\t\tforward_tab_dist[sNode] = 0;\n\n\t\t//2. Initialize: Set all other distances to infinity\n\t\tint k=0;\n\t\twhile(k < matrx.length)\n\t\t{\n\t\t\tunvisitedNodes_Q.add(k);\n\t\t\tif(k != sNode)\n\t\t\t{\n\t\t\t\tforward_tab_dist[k] = INFINITE_DIST;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\t\n\t\t//list of previous nodes, to traverse back\n\t\tlist_Prevoius_Nodes[sNode] = sNode;\n\t\t\n\t\t//5. While queue is not empty\n\t\twhile(!unvisitedNodes_Q.isEmpty())\n\t\t{\n\t\t\tint minDist = INFINITE_DIST;\n\t\t\tint u_minDistNode = -1;\n\t\t\t\n\t\t\t//6. select the element of Q with min distance\n\t\t\tint l = 0;\n\t\t\twhile(l < unvisitedNodes_Q.size())\n\t\t\t{\n\t\t\t\tint n = unvisitedNodes_Q.get(l);\n\t\t\t\tif(!(forward_tab_dist[n] <= minDist))\n\t\t\t\t{\n\t\t\t\t\tl++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tu_minDistNode = n;\n\t\t\t\t\tminDist = forward_tab_dist[n];\n\t\t\t\t}\n\t\t\t\tl++;\n\t\t\t}\n\t\t\t//No minimum distance node found then return\n\t\t\tif(u_minDistNode == -1)\n\t\t\t{\tbreak;\t}\n\t\t\t\n\t\t\t//7. add u to list of visited vertices\n\t\t\tvisitedNodes_M.add(u_minDistNode);\n\t\t\t\n\t\t\tint index = unvisitedNodes_Q.indexOf(u_minDistNode);\t//remove this node from unvisited nodes\n\t\t\tunvisitedNodes_Q.remove(index);\n\t\t\t\n\t\t\t//8.0 algo - consider neighbor as direct distance nodes except source\n\t\t\tfor(int v=0; v<matrx.length; v++)\n\t\t\t{\n\t\t\t\t//matrix[minDistNode_u][v] > 0 ensures it is not source node\n\t\t\t\t//unvisitedNodes_Q.contains(v) only check for unvisited nodes\n\t\t\t\t\n\t\t\t\tif(unvisitedNodes_Q.contains(v) && matrx[u_minDistNode][v] > 0)\n\t\t\t\t{\n\t\t\t\t\tint val = forward_tab_dist[u_minDistNode] + matrx[u_minDistNode][v];\n\t\t\t\t\tif(val < forward_tab_dist[v])\n\t\t\t\t\t{\n\t\t\t\t\t\t//stores shortest distance\n\t\t\t\t\t\tforward_tab_dist[v] = val;\n\t\t\t\t\t\t//stores last node for back traversal to find path\n\t\t\t\t\t\tlist_Prevoius_Nodes[v] = u_minDistNode;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn forward_tab_dist;\n\t}",
"public abstract int shortestPathDistance(String vertLabel1, String vertLabel2);",
"public void findShortestPath(String startName, String endName) {\n checkValidEndpoint(startName);\n checkValidEndpoint(endName);\n\n Vertex<String> start = vertices.get(startName);\n Vertex<String> end = vertices.get(endName);\n\n double totalDist; // totalDist must be update below\n\n Map<Vertex<String>, Double> distance = new HashMap<>();\n Map<Vertex<String>, Vertex<String>> previous = new HashMap<>();\n Set<Vertex<String>> explored = new HashSet<>();\n PriorityQueue<VertexDistancePair> pq = new PriorityQueue<>();\n\n\n\n addPQ(distance, start, pq, previous);\n\n\n\n dijkstraHelper(pq, end, explored, distance, previous);\n\n\n\n\n\n\n totalDist = distance.get(end);\n List<Edge<String>> path = getPath(end, start);\n printPath(path, totalDist);\n }",
"public List<GeographicPoint> dijkstra(GeographicPoint start, \n\t\t\t\t\t\t\t\t\t\t GeographicPoint goal, Consumer<GeographicPoint> nodeSearched)\n\t{\n\t\t// TODO: Implement this method in WEEK 4\n\n\t\t// Hook for visualization. See writeup.\n\t\t//nodeSearched.accept(next.getLocation());\n\t\t\n\t\t//initialize distance of each MapNode from start to infinity\n\t\t\n\t\tSet<GeographicPoint> visited = new HashSet<GeographicPoint>();\n\t\tPriorityQueue<MapNode> queue = new PriorityQueue<MapNode>();\n\t\tHashMap<GeographicPoint, List<GeographicPoint>> path = new HashMap<GeographicPoint, List<GeographicPoint>>();\n\t\tint count = 0;\n\t\t\n\t\tif (!map.containsKey(start) || !map.containsKey(goal))\n\t\t\treturn null;\n\t\t\n\t\tfor (GeographicPoint temp : map.keySet())\n\t\t\tpath.put(temp, new ArrayList<GeographicPoint>());\n\t\t\n\t\tMapNode startNode = map.get(start);\n\t\tstartNode.setTimeToStart(0.0);\n\t\tstartNode.setDistanceToStart(0.0);\n\t\tqueue.add(startNode);\n\t\t\n\t\twhile (!queue.isEmpty()) {\n\t\t\tMapNode currNode = queue.poll();\n\t\t\tnodeSearched.accept(currNode.getLocation());\n\t\t\t\n\t\t\tif (!visited.contains(currNode.getLocation())) {\n\t\t\t\tvisited.add(currNode.getLocation());\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tif (currNode.getLocation().equals(goal))\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tHashMap<MapEdge, GeographicPoint> neighbours = currNode.getNeighbours();\n\t\t\t\tfor (MapEdge edge : neighbours.keySet()) {\n\t\t\t\t\t\n\t\t\t\t\tif (!visited.contains(edge.getEnd())) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tMapNode addNode = map.get(neighbours.get(edge));\n\t\t\t\t\t\tdouble tempTime = currNode.getTimeToStart() + ((edge.getDistance())/(edge.getSpeedLimit()));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tempTime < addNode.getTimeToStart()) {\n\t\t\t\t\t\t\taddNode.setTimeToStart(tempTime);\n\t\t\t\t\t\t\tqueue.add(addNode);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tList<GeographicPoint> temp = path.get(neighbours.get(edge));\n\t\t\t\t\t\t\ttemp.add(currNode.getLocation());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Dijkstra: \" + count);\n\t\treturn backTrack(path,goal);\n\t}",
"@Override\r\n\tpublic void Dijkstra(E src) {\r\n\t\tPriorityQueue<Vertex<E>> pq = new PriorityQueue<Vertex<E>>();\r\n\t\tif(containsVertex(src)) {\r\n\t\t\tlastSrc = vertices.get(src);\r\n\t\t\tvertices.forEach((E t, Vertex<E> u) -> {\r\n\t\t\t\tu.setDistance(Integer.MAX_VALUE);\r\n\t\t\t\tu.setPredecessor(null);\r\n\t\t\t\tpq.offer(u);\r\n\t\t\t});\r\n\t\t\tpq.remove(lastSrc);\r\n\t\t\tlastSrc.setDistance(0);\r\n\t\t\tpq.offer(lastSrc);\r\n\t\t\twhile(!pq.isEmpty()) {\r\n\t\t\t\tVertex<E> u = pq.poll();\r\n\t\t\t\tfor(Edge<E> ale : adjacencyLists.get(u.getElement())) {\r\n\t\t\t\t\tVertex<E> s = vertices.get(ale.getSrc());\r\n\t\t\t\t\tVertex<E> d = vertices.get(ale.getDst());\r\n\t\t\t\t\tif(d.getDistance() > (long)s.getDistance() + (long)ale.getWeight()) {\r\n\t\t\t\t\t\tpq.remove(ale.getDst());\r\n\t\t\t\t\t\td.setDistance(s.getDistance() + ale.getWeight());\r\n\t\t\t\t\t\td.setPredecessor(s);\r\n\t\t\t\t\t\tpq.offer(d);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public List<node_info> shortestPath(int src, int dest);",
"public static void djikstra(int[][] graph, int src) {\n\t\t/* output array */\n\t\tint[] dist = new int[graph.length];\n\t\tboolean[] visited = new boolean[graph.length];\n\n\t\tfor (int i = 0; i < graph.length; i++) {\n\t\t\tdist[i] = Integer.MAX_VALUE;\n\t\t\tvisited[i] = false;\n\t\t}\n\n\t\tdist[src] = 0;\n\n\t\tfor (int i = 0; i < graph.length - 1; i++) {\n\n\t\t\t// Pick the minimum distance vertex from the set of vertices not\n\t\t\t// yet processed. u is always equal to src in first iteration.\n\t\t\tint u = findMinDistanceVertex(dist, visited);\n\t\t\t// Mark the picked vertex as processed\n\t\t\tvisited[u] = true;\n\t\t\t\n\t\t\tfor(int j = 0; j < graph.length; j++) {\n\t\t\t\t\n\t\t\t\t// Update dist[v] only if is not in sptSet, there is an edge from \n\t\t // u to v, and total weight of path from src to v through u is \n\t\t // smaller than current value of dist[v]\n\t\t\t\tif(!visited[j] && graph[u][j] != 0\n\t\t\t\t\t\t&& dist[u] != Integer.MAX_VALUE\n\t\t\t\t\t\t&& dist[u] + graph[u][j] < dist[j]) {\n\t\t\t\t\tdist[j] = dist[u] + graph[u][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tprintSolution(dist, graph.length);\n\t}",
"public void shortestRouteDijkstra(){\n int landmark1 = l1.getSelectionModel().getSelectedIndex();\n int landmark2 = l2.getSelectionModel().getSelectedIndex();\n GraphNodeAL<MapPoint> lm1 = landmarkList.get(landmark1);\n GraphNodeAL<MapPoint> lm2 = landmarkList.get(landmark2);\n\n shortestRouteDij(lm1, lm2);\n }",
"void dijkstra(Coordinate startName) {\n if (!graph.containsKey(startName)) {\n //test use print statement\n //System.out.printf(\"Graph doesn't contain start vertex \\\"%s\\\"\\n\", startName);\n return;\n }\n final Node source = graph.get(startName);\n NavigableSet<Node> queue = new TreeSet<>();\n\n // set-up vertices\n for (Node node : graph.values()) {\n node.previous = node == source ? source : null;\n node.dist = node == source ? 0 : Integer.MAX_VALUE;\n queue.add(node);\n }\n dijkstra(queue);\n }",
"private static void findShortestPath(ArrayList<WeightedEdge> edges, int start, int dest, int nNodes) {\n int costs[] = new int[nNodes];\n int parents[] = new int[nNodes];\n boolean doneWithNode[] = new boolean[nNodes];\n\n // cost[i] has the cost of getting to node number i or is UNKNOWN if no cost figure out yet.\n // parent[i] contains the parent (or the way) we got to node i.\n // done[i] is true if we've already worked on all the children of node i.\n\n // Initialize the arrays.\n for (int i = 0; i<nNodes; i++) {\n costs[i] = UNKNOWN;\n parents[i] = UNKNOWN;\n doneWithNode[i] = false;\n }\n\n int node = start; // This is the node we are working on. Let's start with start node.\n costs[node] = 0; // The cost of getting to the start node is 0!\n\n // While not done processing all the nodes...\n\n // Loop through all the edges (edges array list).\n // Skip those edges whose source is doesn't match the node we're working on.\n\n // For edge (that has source of current node) figure out potential to\n // get it. (How much does it cost to get to node we're on? Add to\n // that the cost of the edge. That's the new price to set to dest of edge.\n\n // Is that a new low cost for that dest edge node?\n // Or is the dest edge node cost currently UNKNOWN? That means we have no cost.\n // If so, store the cost. Store the parent.\n\n // Once done with all the edges, mark the current node as\n // done being processed.\n doneWithNode[node] = true;\n\n // Get next node to work on.\n node = getLowestCostUnprocessedNode(costs, doneWithNode);\n\n // Done with while loop\n\n for (int i=0; i<parents.length; i++) {\n System.out.println(\"Node: \" + i + \" Cost: \" + costs[i] + \" Backtrace Parent: \" + parents[i]);\n }\n\n backtrace(dest, parents);\n }",
"private static void simpleDijikstra(final DirectedGraph directedGraph,\n final Map<String, Integer> currentShortestPaths,\n final String start, final Set<String> visitedSet, final String destination) {\n // Terminate when we have visited all the nodes or if our start value isn't in our dijikstra table\n if (containsAndNotNull(currentShortestPaths, start) && visitedSet.size() != currentShortestPaths.keySet().size()) {\n compareDistanceAndReplace(directedGraph, currentShortestPaths, start);\n visitedSet.add(start);\n // Calculate the next current smallest node that hasn't been visited and not infinity\n final Optional<Map.Entry<String, Integer>> optionalSmallest =\n currentShortestPaths.entrySet().stream()\n .filter(node -> !visitedSet.contains(node.getKey()) && node.getValue() != null)\n .min(Comparator.comparingInt(Map.Entry::getValue));\n // Continue to next node if there is one available\n optionalSmallest.ifPresent(smallest -> {\n // No need to continue if the next smallest node is our destination\n if (!smallest.getKey().equals(destination)) {\n simpleDijikstra(directedGraph, currentShortestPaths, smallest.getKey(), visitedSet, destination);\n }\n });\n }\n }",
"private void getMinDistances(String u, HashMap<Integer, Integer> distances, HashMap<String, Integer> nodeDistances){\n if(!graphVertexHashMap.containsKey(u)) return;\n\n Queue<String> queue = new LinkedList<>();\n HashMap<String, Boolean> visited = new HashMap<>();\n queue.add(u);\n visited.put(u, true);\n int dist = 0;\n\n distances.put(dist, 1);\n nodeDistances.put(u, 0);\n\n while(!queue.isEmpty()){\n String node = queue.poll();\n dist += 1;\n boolean found = false;\n for(String edge : graphVertexHashMap.get(node).getOutDegrees().keySet()){\n if(!visited.containsKey(edge)){\n found = true;\n visited.put(edge, true);\n queue.add(edge);\n if(distances.get(dist) == null){\n distances.put(dist, 1);\n }\n else{\n distances.put(dist, distances.get(dist) + 1);\n }\n if(nodeDistances.containsKey(edge)){\n if(dist < nodeDistances.get(edge)){\n nodeDistances.put(edge, dist);\n }\n }else{\n nodeDistances.put(edge, dist);\n }\n }\n }\n if(!found) dist -=1;\n }\n\n }",
"public int getShortestDistance(T vertex1, T vertex2){\n DijkstraShortestPath p = new DijkstraShortestPath(vertex1, vertex2);\n return p.getMinDistance();\n }",
"public Dijkstra(Graph graph, int firstVertexPortNum)\n {\n this.graph = graph;\n Set<String> vertexKeys = this.graph.vertexKeys();\n \n this.initialVertexPortNum = firstVertexPortNum;\n this.predecessors = new HashMap<String, String>();\n this.distances = new HashMap<String, Integer>();\n this.availableVertices = new PriorityQueue<Vertex>(vertexKeys.size(), new Comparator<Vertex>()\n {\n // compare weights of these two vertices.\n public int compare(Vertex v1, Vertex v2)\n {\n \t// errors are here.\n int weightOne = Dijkstra.this.distances.get(v1.convertToString(v1.getVertexPortNum())); // distances stored by portnum in string form.\n int weightTwo = Dijkstra.this.distances.get(v2.convertToString(v2.getVertexPortNum())); // distances stored by portnum in string form.\n return weightOne - weightTwo; // return the modified weight of the two vertices.\n }\n });\n \n this.visitedVertices = new HashSet<Vertex>();\n \n // for each Vertex in the graph\n for(String key: vertexKeys)\n {\n this.predecessors.put(key, null);\n this.distances.put(key, Integer.MAX_VALUE); // assuming that the distance of this is infinity.\n }\n \n \n //the distance from the initial vertex to itself is 0\n this.distances.put(convertToString(initialVertexPortNum), 0); \n \n //and seed initialVertex's neighbors\n Vertex initialVertex = this.graph.getVertex(convertToString(initialVertexPortNum)); // converted portnum to String to make this work.\n ArrayList<Edge> initialVertexNeighbors = initialVertex.getSquad();\n for(Edge e : initialVertexNeighbors)\n {\n Vertex other = e.getNeighbor(initialVertex);\n this.predecessors.put(convertToString(other.getVertexPortNum()), convertToString(initialVertexPortNum));\n this.distances.put(convertToString(other.getVertexPortNum()), e.getWeight()); // converted portnum to String to make this work.\n this.availableVertices.add(other); // add to available vertices.\n }\n \n this.visitedVertices.add(initialVertex); // add to list of visited vertices.\n \n // apply Dijkstra's algorithm to the overlay.\n processOverlay();\n \n }",
"void calculate_distance()\n {\n \t\n \tfor(int i = 0; i<V ; i++)\n \t{\n \t\tfor(int j = 0; j<E ; j++)\n \t\t{\n \t\t\trelax(edge[j].src, edge[j].destination, edge[j].weight);\n \t\t}\n \t\tsp[i] = dist[i];\n \t\tx[i] = dist[i];\n \t}\n \tSystem.out.println();\n }",
"public int[] djekstra(Router root, Router destination){\n //if router and destination same\n if (root.getID() == destination.getID()){\n int[] result = new int[2];\n result[0] = root.getID();\n result[1] = 0;\n hops.add(0);\n return result;\n }\n\n //Storing shortest path currently known\n int[] shortestPath = new int[size];\n //Storing the weights of the current router's connection to neighbors\n int[] currentNeighborConnectionWeight = new int[size];\n\n //First set all of the positions to 9999 (pseudo infinity)\n for (int i = 0; i < shortestPath.length;i++){\n shortestPath[i] = 9999;\n }\n\n // Set the distance to itself as 0, mark as visited\n shortestPath[root.getID()-1] = 0;\n root.visit();\n\n //For each connection the root has, set the shortestPath available to the weight to the neighbor\n for (Connection c : root.getConnections()){\n shortestPath[c.getDestination().getID()-1] = c.getWeight();\n }\n\n //Find the smallest router to start the algorithm\n //ID of smallest router, start the value with the first available option\n int smallestRouterID = 0;\n int smallestRouterWeight = 9999;\n //Router used for iterating\n Router current = null;\n //Storing path length\n int totalPathLength = 0;\n\n\n //Find the shortest available path link to start with\n for (int k = 0; k < shortestPath.length; k++){\n if ((shortestPath[k] < smallestRouterWeight) && (shortestPath[k] != 0)){\n // Check to see if dead end\n if (routers.get(k).getConnections().size() > 1){\n // id is pos+1\n smallestRouterID = k + 1;\n smallestRouterWeight = shortestPath[k];\n } else if (routers.get(k).getID() == destination.getID()){ //edge case\n // id is pos+1\n smallestRouterID = k + 1;\n smallestRouterWeight = shortestPath[k];\n }\n }\n }\n // add its weight\n totalPathLength += smallestRouterWeight;\n\n //This is where we start our first step\n current = getRouter(smallestRouterID);\n hops.add(current.getID());\n current.visit();\n //System.out.println(\"First step--> Router:\" + smallestRouterID + \" Weight to router from root:\" + smallestRouterWeight);\n //Now we loop\n Router firstRouter = current;\n boolean done = false;\n while (done == false){\n //Break case 1, we found the router\n if (current.getID() == destination.getID()){\n // check if root has available connections\n\n // set current to root and store totalPathLength to new variable && store hops in new array ArrayList\n // compare totals and store the one that's lower ++ hops list too\n // could we recursively call djekstra?\n done = true;\n // System.out.println(\"Router found\");\n break;\n }\n\n //Break case 2, all of the connections have been visited already\n boolean destinationAvailable = hasAvailableConnections(current);\n if (destinationAvailable == false){\n if(hasAvailableConnections(root)){\n current = root;\n hops.clear();\n totalPathLength= 0;\n } else {\n done = true;\n // System.out.println(\"v-- No more routers available\");\n break;\n }\n }\n\n //set all to 9999 to assume we cant see\n for (int a = 0; a < currentNeighborConnectionWeight.length; a++){\n currentNeighborConnectionWeight[a] = 9999;\n }\n\n //Recalculate for new path lengths\n for (Connection c : current.getConnections()){\n //Only calculate path for routers that havent been visited\n if (c.getDestination().getVisit() == false){\n currentNeighborConnectionWeight[c.getDestination().getID()-1] = c.getWeight();\n }\n }\n\n //Find the next step to take\n //Find the shortest available path link to start with\n smallestRouterID = 0;\n smallestRouterWeight = 9999;\n for (int b = 0; b < currentNeighborConnectionWeight.length; b++){\n if ((currentNeighborConnectionWeight[b] < smallestRouterWeight)){\n // id is pos+1\n smallestRouterID = b + 1;\n smallestRouterWeight = currentNeighborConnectionWeight[b];\n }\n }\n\n // add its weight\n totalPathLength += smallestRouterWeight;\n current = getRouter(smallestRouterID);\n hops.add(current.getID());\n current.visit();\n // System.out.println(\"Next shortest path--> Router: \" + current.getID() + \" Length from root:\" + totalPathLength);\n\n\n } // <--------------------------------------------------------------------------------End of while loop\n\n // returns <lasthop, pathcost>\n int[] result = new int[2];\n //Check and see if the path length is smaller then the original\n if (totalPathLength <= shortestPath[destination.getID()-1]){\n //System.out.println(\"Case new \" + firstRouter.getID());\n shortestPath[destination.getID()-1] = totalPathLength;\n result[0] = firstRouter.getID();\n result[1] = shortestPath[destination.getID()-1];\n } else {\n //root was shorter\n //System.out.println(\"Case old \" + root.getID());\n result[0] = root.getID();\n result[1] = shortestPath[destination.getID()-1];\n }\n // System.out.println(\"Next hop:\" + current.getID() + \" Total Distance:\" + shortestPath[destination.getID()-1]);\n\n //reset the visited list\n for (Router r: routers){\n r.unvisit();\n }\n return result;\n }",
"@Override\n public double shortestPathDist(int src, int dest) {\n if(shortestPath(src,dest)==null) return -1;\n double sum=0;\n return shortestPath(src,dest).get(shortestPath(src,dest).size()-1).getTag();\n }",
"public static int dijkstra(AdjList<String> adjList, String startNode, String endNode, LinkedList<String> pathList) {\n //Valid AdjList\n if (adjList == null || adjList.size() == 0 || adjList.hasNegativeEdges())\n return Integer.MAX_VALUE;\n\n //Checks if start and end nodes exist in adjList\n if (!adjList.contains(startNode) || !adjList.contains(endNode))\n return Integer.MAX_VALUE;\n\n //Checks if graph is suitable for BFS\n if (!adjList.isWeighted())\n return BFS(adjList, startNode, endNode, pathList);\n\n //Sets all node objects in adjList to defaults\n adjList.cleanNodeFields();\n\n //Fibonacci heap for storing current shortest path\n FibHeap<Integer, String> q = new FibHeap<>();\n\n //Set source node value to 0\n q.insert(adjList.getNode(startNode), 0);\n q.peek().d = 0;\n q.peek().visited = true;\n\n //Helper variables\n LinkedList<Pair<Node<Integer, String>, Integer>> neighbors;//Array of pairs <neighborKey, edgeWeight>\n Node<Integer, String> neighbor, u;//Current Node with shortest path / top of min-queue\n int edgeWeight;\n while (q.size() != 0) {\n u = q.extractMin();\n u.closed = true;\n\n //endNode found\n if (Objects.equals(u.value, endNode)) {\n //Build path of vertexes\n Node<Integer, String> current = adjList.getNode(endNode);\n pathList.add(current.value);\n while ((current = current.prev) != null)\n pathList.addFirst(current.value);\n return u.d;\n }\n\n neighbors = adjList.getNeighbors(u.value);\n for (Pair<Node<Integer, String>, Integer> neighborKeyValuePair : neighbors) {//Loops through every neighbor\n neighbor = neighborKeyValuePair.getKey();\n edgeWeight = neighborKeyValuePair.getValue();\n //Relaxation step\n //Checks if distance to neighbor node is less than the min distance already found\n if (!neighbor.visited || neighbor.d > u.d + edgeWeight) {\n //Assign shorter path found to neighbor in out array\n neighbor.d = u.d + edgeWeight;\n\n //Assigns previous shortest node to neighbor\n neighbor.prev = u;\n\n //Inserts or decrease key\n if (!neighbor.visited) {\n q.insert(neighbor, u.d + edgeWeight);\n neighbor.visited = true;\n } else {\n q.decreaseKey(neighbor, u.d + edgeWeight);\n }\n }\n }\n }\n return Integer.MAX_VALUE;\n }",
"private static void computePaths(Vertex source) {\n source.minDistance = 0;\n // retrieves with log(n) time\n PriorityQueue<Vertex> vertexPriorityQueue = new PriorityQueue<>();\n\n //BFS traversal\n vertexPriorityQueue.add(source);\n\n // O((v + e) * log(v))\n while (!vertexPriorityQueue.isEmpty()) {\n // this poll always returns the shortest distance vertex at log(v) time\n Vertex vertex = vertexPriorityQueue.poll();\n\n //visit each edge exiting vertex (adjacencies)\n for (Edge edgeInVertex : vertex.adjacencies) {\n // calculate new distance between edgeInVertex and target\n Vertex targetVertex = edgeInVertex.target;\n double edgeWeightForThisVertex = edgeInVertex.weight;\n double distanceThruVertex = vertex.minDistance + edgeWeightForThisVertex;\n if (distanceThruVertex < targetVertex.minDistance) {\n // modify the targetVertex with new calculated minDistance and previous vertex\n // by removing the old vertex and add new vertex with updates\n vertexPriorityQueue.remove(targetVertex);\n targetVertex.minDistance = distanceThruVertex;\n // update previous with the shortest distance vertex\n targetVertex.previous = vertex;\n vertexPriorityQueue.add(targetVertex);// adding takes log(v) time because needs to heapify\n }\n }\n }\n }",
"@Override\r\n\tpublic void getMinimumSpanningTree(GraphStructure graph) {\r\n\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\tint numberOfVertices=graph.getNumberOfVertices();\r\n\t\tSet<Integer> spanningTreeSet = new HashSet<Integer>();\r\n\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\tdistanceArray[0]=0;\r\n\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\tList<Edge> list;\r\n\t\twhile(spanningTreeSet.size()!=numberOfVertices) {\r\n\t\t\tfor (int vertex=0; vertex<numberOfVertices;vertex++) {\r\n\t\t\t\tif(! spanningTreeSet.contains(vertex)) {\r\n\t\t\t\t\tspanningTreeSet.add(vertex);\r\n\t\t\t\t\tlist = adjacencyList[vertex];\r\n\t\t\t\t\tfor(Edge value : list) {\r\n\t\t\t\t\t\tint sumOfWeightAndSourceVertexDistanceValue = distanceArray[vertex] + value.getWeight();\r\n\t\t\t\t\t\tint distanceValueOfDestinationVertex = distanceArray[value.getVertex()];\r\n\t\t\t\t\t\tif( sumOfWeightAndSourceVertexDistanceValue < distanceValueOfDestinationVertex ) {\r\n\t\t\t\t\t\t\tdistanceArray[value.getVertex()] = sumOfWeightAndSourceVertexDistanceValue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nvertex\\tdistance from source\");\r\n\t\tfor (int i=0;i<numberOfVertices;i++) {\r\n\t\t\tSystem.out.println(i+\"\\t\"+distanceArray[i]);\r\n\t\t}\r\n\t}",
"public int shortestPath(Village startVillage, Village targetVillage) {\n// setting the initial point 's minimum distance to zera\n startVillage.setMinDistance(0);\n// accourting to bellman ford if there are n number of dots then n-1 iterations to be done to find the minimum distances of every dot from one initial dot\n int length = this.villageList.size();\n// looping n-1 times\n for (int i = 0; i < length - 1; i++) {\n// looping through all the roads and mark the minimum distances of all the possible points\n for (Road road : roadList) {\n\n\n// if the road is a main road then skip the path\n if (road.getWeight() == 900)\n continue; //why 900 ? : just a random hightest number as a minimum distance and same 900 is used as a mix number\n Village v = road.getStartVertex();\n Village u = road.getTargetVertex();\n// if the newly went path is less than the path it used to be the update the min distance of the reached vertex\n int newLengtha = v.getMinDistance() + road.getWeight();\n if (newLengtha < u.getMinDistance()) {\n u.setMinDistance(newLengtha);\n u.setPreviousVertex(v);\n }\n int newLengthb = u.getMinDistance() + road.getWeight();\n if (newLengthb < v.getMinDistance()) {\n v.setMinDistance(newLengthb);\n v.setPreviousVertex(v);\n }\n }\n }\n// finally return the minimum distance\n return targetVillage.getMinDistance();\n }",
"public int[] shortestReach(int startId) {\n System.out.println(\"Graph with startId: \"+startId);\n for(int i=0 ; i<size ; i++){\n for(int j=0 ; j<size ; j++){\n System.out.print(graph[i][j]);\n }\n System.out.println(\"\");\n }\n\n int[] dist = new int[size];\n boolean[] srg = new boolean[size];\n\n //intialize dist and srg\n for(int i=0 ; i<size ; i++){\n dist[i] = Integer.MAX_VALUE;\n srg[i] = false;\n }\n\n //Start node\n dist[startId] = 0;\n\n for(int i=0 ; i<size ; i++){\n int u = minDist(dist, srg);\n\n srg[u] = true;\n\n for( int v=0; v<size ; v++){\n if(!srg[v] && graph[u][v]!=0 && dist[u]!=Integer.MAX_VALUE && dist[u] + graph[u][v] < dist[v]){\n dist[v] = dist[u] + graph[u][v];\n }\n }\n }\n\n int[] result = new int[size-1];\n int indx = 0;\n for(int i=0 ; i<size ; i++){\n if(i != startId){\n if(dist[i] == Integer.MAX_VALUE)\n result[indx] = -1;\n else{\n result[indx] = dist[i];\n }\n indx++;\n }\n\n }\n\n return result;\n }",
"Integer distance(PathFindingNode a, PathFindingNode b);",
"void shortestPaths( Set<Integer> nodes );",
"public static void dijkstra_function(graph G, int s) throws IOException\n { \t\t\t\t\t// s is the index of the starting vertex\n \t// declare variables\n\tint nVerts, u, v;\n\tint [] dist;\n\n nVerts = G.vertices(); \t\t\t// get number of vertices in the graph class\n\n // initialize array\n dist = new int[nVerts];\n\n for(v=0; v<nVerts; v++) \t\t\t// initializations\n {\n \tdist[v] = 99999; \t\t\t\t// 99999 represents infinity\n\n }// end for\n\n dist[s] = 0;\n\n PriorityQueue Q = new PriorityQueue(dist); \t\t\n\n while(Q.Empty() == 0) \t\t\t// if heap is not empty\n {\n\n u = Q.Delete_root();\n v = G.nextneighbor(u);\n\n while(v != -1) \t\t\t// for each neighbor of u\n {\n \tif(dist[v] > dist[u] + G.edgeLength(u,v)) {\n \t\tdist[v] = dist[u] + G.edgeLength(u,v);\n\t\t\t\tQ.Update(v, dist[v]);\n }\n\n \tv = G.nextneighbor(u); \t// get the next neighbor of u\n\n }// end while\n\n }// end while\n\n System.out.println(\"\"); \t\t\t// display the array dist\n for(int row=0; row<nVerts; row++)\n \t{\n \t\tSystem.out.print(dist[row] + \" \");\n \t \tSystem.out.println(\"\");\n \t}// end for\n\n }",
"@Test\n public void testShortestDistance() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v2, v3, 3);\n Edge<Vertex> e3 = new Edge<>(v1, v3, 2);\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n\n List<Vertex> expectedPath = new ArrayList<>();\n expectedPath.add(v1);\n expectedPath.add(v3);\n assertEquals(expectedPath, g.shortestPath(v1, v3));\n\n assertEquals(6, g.edgeLengthSum());\n }",
"@Override\r\n public List<node_info> shortestPath(int src, int dest) {\r\n double i = shortestPathDist(src, dest);\r\n double j, k, s, mark = 1;\r\n ArrayList<node_info> Rlist = new ArrayList<>();\r\n ArrayList<node_info> Llist = new ArrayList<>();\r\n Rlist.clear();\r\n Llist.clear();\r\n j = i;\r\n for (node_info curr : this.Graph.getV()) {\r\n curr.setInfo(\"clear\");\r\n }\r\n this.Graph.getNode(src).setInfo(\"tmp\");\r\n Rlist.add(this.Graph.getNode(dest));\r\n node_info nd = this.Graph.getNode(dest);\r\n node_info temp = this.Graph.getNode(dest);\r\n while (j != 0 && j > 0) {\r\n for (node_info curr0 : this.Graph.getV(nd.getKey())) {\r\n if (curr0.getInfo() != null) {\r\n temp = curr0;\r\n k = this.Graph.getEdge(nd.getKey(), curr0.getKey());\r\n s = j - k;\r\n if ((s - curr0.getTag() < 0.001 && s - curr0.getTag() > -0.001) && nd.getInfo() != null) {\r\n Rlist.add(curr0);\r\n j = curr0.getTag();\r\n curr0.setInfo(\"tmp\");\r\n mark = 1;\r\n nd = curr0;\r\n }\r\n }\r\n }\r\n if (mark == 0) {\r\n i = j;\r\n temp.setInfo(null);\r\n Rlist.clear();\r\n Rlist.add(this.Graph.getNode(dest));\r\n mark = 1;\r\n }\r\n mark = 0;\r\n }\r\n for (int t = (Rlist.size() - 1); t >= 0; t--) {\r\n Llist.add(Rlist.get(t));\r\n }\r\n return Llist;\r\n }",
"double estimatedDistanceToGoal(Vertex s, Vertex goal);",
"private static void shortestPath(Graph graph, Character startNode, int algorithm) {\n Node currentNode = graph.getNode(startNode);\n\n // keep track of the nodes visited\n List<Character> nodesVisited = new ArrayList<>();\n\n // add the current node\n nodesVisited.add(currentNode.getName());\n\n // breadth first search to help keep track of the nodes we have already visited\n // helps with backtracking\n Stack<Node> visitingNodes = new Stack<>();\n\n // loop through the graph\n while (currentNode != graph.getNode('Z')) {\n // we have visited a node\n // add it to the stack\n // set true to since its been visited and it will be in the shortest path\n visitingNodes.add(currentNode);\n currentNode.setNodeVisited(true);\n currentNode.setInShortestPath(true);\n\n // get all the edges that are connected to the current node we are on\n List<Edge> adjacentNodes = currentNode.getNeighbors();\n\n // temp for next node\n Node nextNode = null;\n int weightDistanceTotal = Integer.MAX_VALUE;\n\n for (Edge i: adjacentNodes) {\n // testing\n // System.out.println(i.destination.getName());\n // System.out.println(i.destination.getDistanceToZ());\n\n // 1. always check to see if we have visited the node\n if (i.destination.isNodeVisited()) {\n // System.out.println(i.destination.getName() + \" is already in the path\");\n continue;\n }\n\n // 2. assign the next node to the destination\n if (nextNode == null) {\n nextNode = i.destination;\n }\n\n // compare distances\n if (algorithm == 1) {\n nextNode = updateNextNodeAlgo1(nextNode, i.destination);\n } else {\n NodeWithWeightDistanceTotal nodeWithWeightDistanceTotal = updateNextNodeAlgo2(nextNode, i, weightDistanceTotal);\n nextNode = nodeWithWeightDistanceTotal.node;\n weightDistanceTotal = nodeWithWeightDistanceTotal.weightDistanceTotal;\n }\n //if (nextNode.getDistanceToZ() > i.destination.getDistanceToZ()) {\n // nextNode = i.destination;\n //}\n }\n\n // next has no other edges\n if (nextNode == null) {\n // System.out.println(\"There no place to go from \" + currentNode.getName());\n // pop off the node we just visited\n nextNode = visitingNodes.pop();\n // its not in the shortest path to Z\n nextNode.setInShortestPath(false);\n // set the next node to the previous node\n nextNode = visitingNodes.pop();\n }\n\n // add the nodes we visit to keep track of the path\n nodesVisited.add(nextNode.getName());\n\n // System.out.println(Arrays.toString(nodesVisited.toArray()));\n // testing purposes to see if the node is on the shortest path\n\n// for (Character node: nodesVisited) {\n// Node boolVisit = graph.getNode(node);\n// System.out.println(boolVisit.isInShortestPath());\n// }\n\n // progress to the next node\n currentNode = nextNode;\n // when visiting the last node mark z in the shortest path\n if (currentNode.getName() == 'Z') {\n currentNode.setInShortestPath(true);\n }\n // testing\n // System.out.println(\"next node = \" + currentNode.getName());\n }\n\n // keep track of the path visited and the total addition of weights\n int pathCounter = 0;\n\n // construct the shortest path\n List<Node> shortestPath = new ArrayList<>();\n\n for (Character nodeVisitor: nodesVisited) {\n // get the node\n Node node = graph.getNode(nodeVisitor);\n\n // add to the shortest path\n if (node.isInShortestPath() && !shortestPath.contains(node)) {\n shortestPath.add(node);\n }\n }\n\n // print the shortest path\n for (int i = 0; i < shortestPath.size() - 1; i++) {\n currentNode = shortestPath.get(i);\n Node nextNode = shortestPath.get(i + 1);\n\n // find the weight of that node\n int weight = currentNode.findWeight(nextNode);\n pathCounter += weight;\n\n // System.out.println(\"weight \" + weight);\n // System.out.println(\"path total \" + pathCounter);\n }\n\n // final output\n String fullPathSequence = \"\";\n String shortestPathSequence = \"\";\n\n for (int i = 0; i < nodesVisited.size(); i++) {\n if (i != nodesVisited.size() - 1) {\n fullPathSequence += nodesVisited.get(i) + \" -> \";\n }\n }\n\n fullPathSequence += nodesVisited.get(nodesVisited.size() - 1);\n\n for (int i = 0; i < shortestPath.size(); i++) {\n if (i != shortestPath.size() - 1) {\n shortestPathSequence += shortestPath.get(i).getName() + \" -> \";\n }\n }\n\n if (currentNode.getName() == 'Z') {\n shortestPathSequence += \"Z\";\n } else {\n shortestPathSequence += shortestPath.get(shortestPath.size() - 1).getName();\n }\n\n System.out.println(\"Algorithm \" + algorithm + \" : \");\n System.out.println(\"Sequence of all nodes \" + fullPathSequence);\n System.out.println(\"Shortest path: \" + shortestPathSequence);\n System.out.println(\"Shortest path length: \" + pathCounter);\n System.out.println(\"\\n\");\n\n // reset the graph\n graph.graphReset();\n\n }",
"public static ArrayList<edges<String, Double>> Dijkstra(String CHAR1, String CHAR2, graph<String,Float> g) {\n\t\tPriorityQueue<ArrayList<edges<String, Double>>> active = \n\t\t\tnew PriorityQueue<ArrayList<edges<String, Double>>>(10,new Comparator<ArrayList<edges<String, Double>>>() {\n\t\t\t\tpublic int compare(ArrayList<edges<String, Double>> path1, ArrayList<edges<String, Double>> path2) {\n\t\t\t\t\tedges<String, Double> dest1 = path1.get(path1.size() - 1);\n\t\t\t\t\tedges<String, Double> dest2 = path2.get(path2.size() - 1);\n\t\t\t\t\tif (!(dest1.getLabel().equals(dest2.getLabel())))\n\t\t\t\t\t\treturn dest1.getLabel().compareTo(dest2.getLabel());\n\t\t\t\t\treturn path1.size() - path2.size();\n\t\t\t\t}\n\t\t\t});\n\t\t\tSet<String> known = new HashSet<String>();\n\t\t\tArrayList<edges<String, Double>> begin = new ArrayList<edges<String, Double>>();\n\t\t\tbegin.add(new edges<String, Double>(CHAR1, 0.0));\n\t\t\tactive.add(begin);\t\t\n\t\t\twhile (!active.isEmpty()) {\n\t\t\t\tArrayList<edges<String, Double>> minPath = active.poll();\n\t\t\t\tedges<String, Double> endOfMinPath = minPath.get(minPath.size() - 1);\n\t\t\t\tString minDest = endOfMinPath.getDest();\n\t\t\t\tdouble minCost = endOfMinPath.getLabel();\n\t\t\t\tif (minDest.equals(CHAR2)) {\n\t\t\t\t\treturn minPath;\n\t\t\t\t}\n\t\t\t\tif (known.contains(minDest))\n\t\t\t\t\tcontinue;\n\t\t\t\tSet<edges<String,Float>> children = g.childrenOf(minDest);\n\t\t\t\tfor (edges<String, Float> e : children) {\n\t\t\t\t\tif (!known.contains(e.getDest())) {\n\t\t\t\t\t\tdouble newCost = minCost + e.getLabel();\n\t\t\t\t\t\tArrayList<edges<String, Double>> newPath = new ArrayList<edges<String, Double>>(minPath); \n\t\t\t\t\t\tnewPath.add(new edges<String, Double>(e.getDest(), newCost));\n\t\t\t\t\t\tactive.add(newPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tknown.add(minDest);\n\t\t\t}\n\t\t\treturn null;\n\t}",
"private HashMap<String, Integer> getShortestPathBetweenDifferentNodes(Node start, Node end) {\n HashMap<Node, Node> parentChildMap = new HashMap<>();\n parentChildMap.put(start, null);\n\n // Shortest path between nodes\n HashMap<Node, Integer> shortestPathMap = new HashMap<>();\n\n for (Node node : getNodes()) {\n if (node == start)\n shortestPathMap.put(start, 0);\n else shortestPathMap.put(node, Integer.MAX_VALUE);\n }\n\n for (Edge edge : start.getEdges()) {\n shortestPathMap.put(edge.getDestination(), edge.getWeight());\n parentChildMap.put(edge.getDestination(), start);\n }\n\n while (true) {\n Node currentNode = closestUnvisitedNeighbour(shortestPathMap);\n\n if (currentNode == null) {\n return null;\n }\n\n // Save path to nearest unvisited node\n if (currentNode == end) {\n Node child = end;\n String path = end.getName();\n while (true) {\n Node parent = parentChildMap.get(child);\n if (parent == null) {\n break;\n }\n\n // Create path using previous(parent) and current(child) node\n path = parent.getName() + \"\" + path;\n child = parent;\n }\n HashMap<String,Integer> hm= new HashMap<>();\n hm.put(path, shortestPathMap.get(end));\n return hm;\n }\n currentNode.visit();\n\n // Go trough edges and find nearest\n for (Edge edge : currentNode.getEdges()) {\n if (edge.getDestination().isVisited())\n continue;\n\n if (shortestPathMap.get(currentNode) + edge.getWeight() < shortestPathMap.get(edge.getDestination())) {\n shortestPathMap.put(edge.getDestination(), shortestPathMap.get(currentNode) + edge.getWeight());\n parentChildMap.put(edge.getDestination(), currentNode);\n }\n }\n }\n }",
"@Test\n void testShortestPathDist(){\n weighted_graph g = new WGraph_DS();\n for(int i = 1; i <= 7; i++){\n g.addNode(i);\n }\n g.connect(1,2,20);\n g.connect(1,5,15);\n g.connect(2,3,20);\n g.connect(5,6,15);\n g.connect(3,4,20);\n g.connect(6,4,15);\n g.connect(1,7,2);\n g.connect(7,4,50);\n weighted_graph_algorithms ga = new WGraph_Algo();\n ga.init(g);\n assertTrue(Double.compare(45,ga.shortestPathDist(1,4)) == 0);\n assertEquals(0,ga.shortestPathDist(1,1));\n assertEquals(-1,ga.shortestPathDist(1,200));\n }",
"private static void compareDistanceAndReplace(final DirectedGraph directedGraph,\n final Map<String, Integer> currentShortestPaths,\n final String start) {\n final Map<String, Integer> possibleDestinations = directedGraph.get(start);\n if (possibleDestinations != null) {\n // For each possible edge to this node, check if the distance of this edge plus the value of how\n // we arrived at the start node is smaller than the current value in the table, if so then replace it\n possibleDestinations.forEach((toNode, distance) -> {\n final int valueToCompare = currentShortestPaths.get(start) + distance;\n final Integer currentShortest = currentShortestPaths.get(toNode);\n final boolean currentInfinity = currentShortestPaths.containsKey(toNode) && (currentShortest == null || currentShortest == 0);\n // If the to node we are currently looking at is infinity in our table, then always replace\n // or if there is a real value then compare it\n // and if the new route is shorter then replace it\n if (currentInfinity\n || (containsAndNotNull(currentShortestPaths, toNode) && (currentShortest > valueToCompare))) {\n currentShortestPaths.put(toNode, valueToCompare);\n }\n });\n }\n }",
"public static int shortestDistance( ElementGraph graph, FlowElement lhs, FlowElement rhs )\n {\n return DijkstraShortestPath.findPathBetween( directed( graph ), lhs, rhs ).size();\n }",
"public int getShortestDistance(final Node source, final Node target) {\n return D[source.id][target.id];\n }",
"static long dijkstras(State start, State goal) {\n\t\tPriorityQueue<State> pq = new PriorityQueue<State>(\n\t\t\tnew Comparator<State>() {\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(State a, State b) {\n\t\t\t\t\treturn Long.compare(a.dist, b.dist);\n\t\t\t\t}\n\t\t\t});\n\n\t\tHashMap<State, Long> dist = new HashMap<>(); \n\n\t\tpq.offer(start);\n\t\tdist.put(start, start.dist);\n\n\t\twhile (!pq.isEmpty()) {\n\t\t\tState cur = pq.poll();\n\n\t\t\tif (cur.isDestination(goal)) // abort if target is reached\n\t\t\t\treturn cur.dist;\n\n\t\t\t// avoid relaxation if a shorter path to 'cur' is pending in queue\n\t\t\tif (Long.compare(dist.get(cur), cur.dist) < 0)\n\t\t\t\tcontinue;\n\n\t\t\tfor (State adj : cur.adj()) {\n\t\t\t\tLong bestSoFar = dist.get(adj);\n\t\t\t\tif (bestSoFar == null || Long.compare(adj.dist, bestSoFar) < 0) {\n\t\t\t\t\tpq.offer(adj);\n\t\t\t\t\tdist.put(adj, adj.dist);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// no path to target\n\t\treturn -1;\n\t}",
"private void expandNode() {\r\n\t\t\t// Dijkstra's algorithm to handle separately\r\n\t\t\tif (dijkstra.isSelected()) {\r\n\t\t\t\tCell u;\r\n\t\t\t\t// 11: while Q is not empty:\r\n\t\t\t\tif (graph.isEmpty()) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// 12: u := vertex in Q (graph) with smallest distance in dist[]\r\n\t\t\t\t// ;\r\n\t\t\t\t// 13: remove u from Q (graph);\r\n\t\t\t\tu = graph.remove(0);\r\n\t\t\t\t// Add vertex u in closed set\r\n\t\t\t\tclosedSet.add(u);\r\n\t\t\t\t// If target has been found ...\r\n\t\t\t\tif (u.row == targetPos.row && u.col == targetPos.col) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// Counts nodes that have expanded.\r\n\t\t\t\texpanded++;\r\n\t\t\t\t// Update the color of the cell\r\n\t\t\t\tgrid[u.row][u.col] = CLOSED;\r\n\t\t\t\t// 14: if dist[u] = infinity:\r\n\t\t\t\tif (u.dist == INFINITY) {\r\n\t\t\t\t\t// ... then there is no solution.\r\n\t\t\t\t\t// 15: break;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t\t// 16: end if\r\n\t\t\t\t}\r\n\t\t\t\t// Create the neighbors of u\r\n\t\t\t\tArrayList<Cell> neighbors = createSuccesors(u, false);\r\n\t\t\t\t// 18: for each neighbor v of u:\r\n\t\t\t\tfor (Cell v : neighbors) {\r\n\t\t\t\t\t// 20: alt := dist[u] + dist_between(u, v) ;\r\n\t\t\t\t\tint alt = u.dist + distBetween(u, v);\r\n\t\t\t\t\t// 21: if alt < dist[v]:\r\n\t\t\t\t\tif (alt < v.dist) {\r\n\t\t\t\t\t\t// 22: dist[v] := alt ;\r\n\t\t\t\t\t\tv.dist = alt;\r\n\t\t\t\t\t\t// 23: previous[v] := u ;\r\n\t\t\t\t\t\tv.prev = u;\r\n\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\tgrid[v.row][v.col] = FRONTIER;\r\n\t\t\t\t\t\t// 24: decrease-key v in Q;\r\n\t\t\t\t\t\t// (sort list of nodes with respect to dist)\r\n\t\t\t\t\t\tCollections.sort(graph, new CellComparatorByDist());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// The handling of the other four algorithms\r\n\t\t\t} else {\r\n\t\t\t\tCell current;\r\n\t\t\t\tif (dfs.isSelected() || bfs.isSelected()) {\r\n\t\t\t\t\t// Here is the 3rd step of the algorithms DFS and BFS\r\n\t\t\t\t\t// 3. Remove the first state, Si, from OPEN SET ...\r\n\t\t\t\t\tcurrent = openSet.remove(0);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Here is the 3rd step of the algorithms A* and Greedy\r\n\t\t\t\t\t// 3. Remove the first state, Si, from OPEN SET,\r\n\t\t\t\t\t// for which f(Si) ≤ f(Sj) for all other\r\n\t\t\t\t\t// open states Sj ...\r\n\t\t\t\t\t// (sort first OPEN SET list with respect to 'f')\r\n\t\t\t\t\tCollections.sort(openSet, new CellComparatorByF());\r\n\t\t\t\t\tcurrent = openSet.remove(0);\r\n\t\t\t\t}\r\n\t\t\t\t// ... and add it to CLOSED SET.\r\n\t\t\t\tclosedSet.add(0, current);\r\n\t\t\t\t// Update the color of the cell\r\n\t\t\t\tgrid[current.row][current.col] = CLOSED;\r\n\t\t\t\t// If the selected node is the target ...\r\n\t\t\t\tif (current.row == targetPos.row && current.col == targetPos.col) {\r\n\t\t\t\t\t// ... then terminate etc\r\n\t\t\t\t\tCell last = targetPos;\r\n\t\t\t\t\tlast.prev = current.prev;\r\n\t\t\t\t\tclosedSet.add(last);\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// Count nodes that have been expanded.\r\n\t\t\t\texpanded++;\r\n\t\t\t\t// Here is the 4rd step of the algorithms\r\n\t\t\t\t// 4. Create the successors of Si, based on actions\r\n\t\t\t\t// that can be implemented on Si.\r\n\t\t\t\t// Each successor has a pointer to the Si, as its predecessor.\r\n\t\t\t\t// In the case of DFS and BFS algorithms, successors should not\r\n\t\t\t\t// belong neither to the OPEN SET nor the CLOSED SET.\r\n\t\t\t\tArrayList<Cell> succesors;\r\n\t\t\t\tsuccesors = createSuccesors(current, false);\r\n\t\t\t\t// Here is the 5th step of the algorithms\r\n\t\t\t\t// 5. For each successor of Si, ...\r\n\t\t\t\tfor (Cell cell : succesors) {\r\n\t\t\t\t\t// ... if we are running DFS ...\r\n\t\t\t\t\tif (dfs.isSelected()) {\r\n\t\t\t\t\t\t// ... add the successor at the beginning of the list\r\n\t\t\t\t\t\t// OPEN SET\r\n\t\t\t\t\t\topenSet.add(0, cell);\r\n\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t// ... if we are runnig BFS ...\r\n\t\t\t\t\t} else if (bfs.isSelected()) {\r\n\t\t\t\t\t\t// ... add the successor at the end of the list OPEN SET\r\n\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t// ... if we are running A* or Greedy algorithms (step 5\r\n\t\t\t\t\t\t// of A* algorithm) ...\r\n\t\t\t\t\t} else if (aStar.isSelected() || guloso.isSelected()) {\r\n\t\t\t\t\t\t// ... calculate the value f(Sj) ...\r\n\t\t\t\t\t\tint dxg = current.col - cell.col;\r\n\t\t\t\t\t\tint dyg = current.row - cell.row;\r\n\t\t\t\t\t\tint dxh = targetPos.col - cell.col;\r\n\t\t\t\t\t\tint dyh = targetPos.row - cell.row;\r\n\t\t\t\t\t\tif (diagonal.isSelected()) {\r\n\t\t\t\t\t\t\t// with diagonal movements\r\n\t\t\t\t\t\t\t// calculate 1000 times the Euclidean distance\r\n\t\t\t\t\t\t\tif (guloso.isSelected()) {\r\n\t\t\t\t\t\t\t\t// especially for the Greedy ...\r\n\t\t\t\t\t\t\t\tcell.g = 0;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcell.g = current.g + (int) ((double) 1000 * Math.sqrt(dxg * dxg + dyg * dyg));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcell.h = (int) ((double) 1000 * Math.sqrt(dxh * dxh + dyh * dyh));\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// without diagonal movements\r\n\t\t\t\t\t\t\t// calculate Manhattan distances\r\n\t\t\t\t\t\t\tif (guloso.isSelected()) {\r\n\t\t\t\t\t\t\t\t// especially for the Greedy ...\r\n\t\t\t\t\t\t\t\tcell.g = 0;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcell.g = current.g + Math.abs(dxg) + Math.abs(dyg);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcell.h = Math.abs(dxh) + Math.abs(dyh);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcell.f = cell.g + cell.h;\r\n\t\t\t\t\t\t// ... If Sj is neither in the OPEN SET nor in the\r\n\t\t\t\t\t\t// CLOSED SET states ...\r\n\t\t\t\t\t\tint openIndex = isInList(openSet, cell);\r\n\t\t\t\t\t\tint closedIndex = isInList(closedSet, cell);\r\n\t\t\t\t\t\tif (openIndex == -1 && closedIndex == -1) {\r\n\t\t\t\t\t\t\t// ... then add Sj in the OPEN SET ...\r\n\t\t\t\t\t\t\t// ... evaluated as f(Sj)\r\n\t\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t\t// Else ...\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// ... if already belongs to the OPEN SET, then ...\r\n\t\t\t\t\t\t\tif (openIndex > -1) {\r\n\t\t\t\t\t\t\t\t// ... compare the new value assessment with the\r\n\t\t\t\t\t\t\t\t// old one.\r\n\t\t\t\t\t\t\t\t// If old <= new ...\r\n\t\t\t\t\t\t\t\tif (openSet.get(openIndex).f <= cell.f) {\r\n\t\t\t\t\t\t\t\t\t// ... then eject the new node with state\r\n\t\t\t\t\t\t\t\t\t// Sj.\r\n\t\t\t\t\t\t\t\t\t// (ie do nothing for this node).\r\n\t\t\t\t\t\t\t\t\t// Else, ...\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// ... remove the element (Sj, old) from the\r\n\t\t\t\t\t\t\t\t\t// list\r\n\t\t\t\t\t\t\t\t\t// to which it belongs ...\r\n\t\t\t\t\t\t\t\t\topenSet.remove(openIndex);\r\n\t\t\t\t\t\t\t\t\t// ... and add the item (Sj, new) to the\r\n\t\t\t\t\t\t\t\t\t// OPEN SET.\r\n\t\t\t\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t// ... if already belongs to the CLOSED SET,\r\n\t\t\t\t\t\t\t\t// then ...\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t// ... compare the new value assessment with the\r\n\t\t\t\t\t\t\t\t// old one.\r\n\t\t\t\t\t\t\t\t// If old <= new ...\r\n\t\t\t\t\t\t\t\tif (closedSet.get(closedIndex).f <= cell.f) {\r\n\t\t\t\t\t\t\t\t\t// ... then eject the new node with state\r\n\t\t\t\t\t\t\t\t\t// Sj.\r\n\t\t\t\t\t\t\t\t\t// (ie do nothing for this node).\r\n\t\t\t\t\t\t\t\t\t// Else, ...\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// ... remove the element (Sj, old) from the\r\n\t\t\t\t\t\t\t\t\t// list\r\n\t\t\t\t\t\t\t\t\t// to which it belongs ...\r\n\t\t\t\t\t\t\t\t\tclosedSet.remove(closedIndex);\r\n\t\t\t\t\t\t\t\t\t// ... and add the item (Sj, new) to the\r\n\t\t\t\t\t\t\t\t\t// OPEN SET.\r\n\t\t\t\t\t\t\t\t\topenSet.add(cell);\r\n\t\t\t\t\t\t\t\t\t// Update the color of the cell\r\n\t\t\t\t\t\t\t\t\tgrid[cell.row][cell.col] = FRONTIER;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"public void recordNodeDistances(Node start, Node end)\n {\n HashSet<Node> inStack = new HashSet<Node>();\n LinkedList<Node> nodeStack = new LinkedList<Node>();\n\n nodeStack.push(start);\n\n Node curNode;\n\n while(!nodeStack.isEmpty())\n {\n //shortest distance from end to start = shortest distance of neighbor to start\n curNode = nodeStack.peekFirst();\n Collection<? extends Node> neighbors = curNode.getNeighbors();\n\n if(curNode == end) //if we've reached the end\n {\n nodeDists.put(curNode, 0); //the distance to the end is 0 (obviously)\n\n inStack.remove(curNode); //remove from our store of nodes that are in the stack\n nodeStack.removeFirst();\n }\n else\n {\n boolean readyForEval = true; //is node ready to have the min distance calculated?\n\n for (Node n : neighbors)\n {\n if (!nodeDists.containsKey(n) && !inStack.contains(n))\n {\n nodeStack.addFirst(n); //in order to calculate the min distance to target any neighbors not in\n inStack.add(n); //the stack must have already been calculated. Neighbors still in the stack\n //are to be considered closer to the source and, thus, \"behind\" curNode\n readyForEval = false;\n }\n }\n\n if (readyForEval)\n {\n int minDist = getMinDist(curNode); //get the minimum distance from this node to the target\n\n nodeDists.put(curNode, minDist); //if unreachable, distance is maxValue\n nodeStack.removeFirst();\n inStack.remove(curNode);\n }\n }\n }\n }",
"private static List<Vertex> doDijkstra(List<Vertex> vertexes) {\n\n\t\t// Zok, we have a graph constructed. Traverse.\n\t\tPriorityQueue<Vertex> vertexQueue = new PriorityQueue<Vertex>();\n\t\tvertexQueue.add(me);\n\t\tme.setMinDistance(0);\n\n\t\twhile (!vertexQueue.isEmpty()) {\n\t\t\tVertex v = vertexQueue.poll();\n\t\t\tdouble distance = v.getMinDistance() + 1;\n\n\t\t\tfor (Vertex neighbor : v.getAdjacencies()) {\n\t\t\t\tif (distance < neighbor.getMinDistance()) {\n\t\t\t\t\tneighbor.setMinDistance(distance);\n\t\t\t\t\tneighbor.setPrevious(v);\n\t\t\t\t\tvertexQueue.remove(neighbor);\n\t\t\t\t\tvertexQueue.add(neighbor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn vertexes;\n\t}",
"int getShortestDistance(V vertex);",
"private void computePaths(Vertex source, Vertex target, ArrayList<Vertex> vs)\n {\n \tfor (Vertex v : vs)\n \t{\n \t\tv.minDistance = Double.POSITIVE_INFINITY;\n \t\tv.previous = null;\n \t}\n source.minDistance = 0.;\t\t// distance to self is zero\n IndexMinPQ<Vertex> vertexQueue = new IndexMinPQ<Vertex>(vs.size());\n \n for (Vertex v : vs) vertexQueue.insert(Integer.parseInt(v.id), v);\n\n\t\twhile (!vertexQueue.isEmpty()) \n\t\t{\n\t \t// retrieve vertex with shortest distance to source\n\t \tVertex u = vertexQueue.minKey();\n\t \tvertexQueue.delMin();\n\t\t\tif (u == target)\n\t\t\t{\n\t\t\t\t// trace back\n\t\t\t\twhile (u.previous != null)\n\t\t\t\t{;\n\t\t\t\t\tu = u.previous;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n \t// Visit each edge exiting u\n \tfor (Edge e : u.adjacencies)\n \t\t{\n \t\tVertex v = e.target;\n\t\t\t\tdouble weight = e.weight;\n \tdouble distanceThroughU = u.minDistance + weight;\n\t\t\t\tif (distanceThroughU < v.minDistance) \n\t\t\t\t{\n\t\t\t\t\tint vid = Integer.parseInt(v.id);\n\t\t \t\tvertexQueue.delete(vid);\n\t\t \t\tv.minDistance = distanceThroughU;\n\t\t \t\tv.previous = u;\n\t\t \t\tvertexQueue.insert(vid,v);\n\t\t\t\t}\n\t\t\t}\n }\n }",
"public static void computeDistanceToAllNodes()\r\n\t{\r\n\t\tScanner scan = new Scanner(System.in); // instance for input declared\r\n\t\tSystem.out.print(\"\\nPlease enter the Source node to show all distances: \");\r\n\t\tint src = scan.nextInt() - 1; // taking source node input\r\n\t\t\r\n\t\twhile(src < 0 || src > routers-1)\r\n {\r\n\t\t\tSystem.out.println(\"The entered source node is out of range, please enter again: \"); // Printing error\r\n\t\t\tsrc = scan.nextInt() - 1;\t//re-input source\r\n\t\t}\r\n\t\t\r\n\t\tconnectNetwork(src, -1, false);\r\n\t}",
"public static void calculateMinimumDistance(Node evaluationNode, Integer edgeWeigh, Node sourceNode) {\n Integer sourceDistance = sourceNode.distance;\n if (sourceDistance + edgeWeigh < evaluationNode.distance) {\n evaluationNode.distance = sourceDistance + edgeWeigh;\n LinkedList<Node> shortestPath = new LinkedList<>(sourceNode.shortestPath);\n shortestPath.add(sourceNode);\n evaluationNode.shortestPath = shortestPath;\n }\n }",
"public interface Dijkstra<V> {\r\n\t// Constructor: public Dijkstra(DiGraph<V> graph);\r\n\r\n\t/**\r\n\t * Uses Dijkstra's shortest path algorithm to calculate and store the shortest\r\n\t * paths to every vertex in the graph as well as the total costs of each of\r\n\t * those paths. This should run in O(E log V) time, where E is the size of the\r\n\t * edge set, and V is the size of the vertex set.\r\n\t * \r\n\t * @param start the vertex from which shortest paths should be calculated\r\n\t */\r\n\tvoid run(V start);\r\n\r\n\t/**\r\n\t * Retrieve, in O(V) time, the pre-calculated shortest path to the given node.\r\n\t * \r\n\t * @param vertex the vertex to which the shortest path, from the start vertex,\r\n\t * is being requested\r\n\t * @return a list of vertices comprising the shortest path from the start vertex\r\n\t * to the given destination vertex, both inclusive\r\n\t */\r\n\tList<V> getShortestPath(V vertex);\r\n\r\n\t/**\r\n\t * Retrieve, in constant time, the total cost to reach the given vertex from the\r\n\t * start vertex via the shortest path. If there is no path, this value is\r\n\t * Integer.MAX_VALUE.\r\n\t * \r\n\t * @param vertex the vertex to which the cost of the shortest path, from the\r\n\t * start vertex, is desired\r\n\t * @return the cost of the shortest path to the given vertex from the start\r\n\t * vertex or Integer.MAX_VALUE if there is path\r\n\t */\r\n\tint getShortestDistance(V vertex);\r\n}",
"public int findShortestDistance(String s, String t) {\r\n //store the vertex and distance closest to each vertex\r\n Map<String, Vertex> finalMap = new HashMap<>(this.number_of_vertices);\r\n for (String vertex : all_vertices) {\r\n finalMap.put(vertex, new Vertex(s, Integer.MAX_VALUE));\r\n }\r\n finalMap.put(s, null);\r\n Queue<Vertex> pq = new PriorityQueue<>(new Comparator() {\r\n @Override\r\n public int compare(Object o1, Object o2) {\r\n Vertex v1 = (Vertex) o1;\r\n Vertex v2 = (Vertex) o2;\r\n return v1.dist - v2.dist;\r\n }\r\n });\r\n pq.add(new Vertex(s, 0));\r\n Set<String> visited = new HashSet<>(this.number_of_vertices);\r\n while (!pq.isEmpty()) {\r\n Vertex minVertex = pq.poll();\r\n if (!visited.add(minVertex.v)) {\r\n continue;\r\n }\r\n Map<String, Integer> edgeMap = adj.get(minVertex.v);\r\n for (Map.Entry<String, Integer> entry : edgeMap.entrySet()) {\r\n int distance = minVertex.dist + entry.getValue();\r\n if (finalMap.get(entry.getKey()) != null && distance < finalMap.get(entry.getKey()).dist) {\r\n finalMap.get(entry.getKey()).dist = distance;\r\n finalMap.get(entry.getKey()).v = minVertex.v;\r\n }\r\n pq.add(new Vertex(entry.getKey(), distance));\r\n }\r\n }\r\n if (!s.equals(t)){\r\n return finalMap.get(t).dist;\r\n }else{\r\n return calculateDistance(s, finalMap);\r\n }\r\n }",
"public int minCost(int[][] distance) {\n Map<Index, Integer> minCostDP = new HashMap<>();\n Map<Index, Integer> parent = new HashMap<>();\n\n List<Set<Integer>> allSets;\n\n for (Set<Integer> set : allSets) {\n for (int currentVertex = 1; currentVertex < distance.length; currentVertex++) {\n if (set.contains(currentVertex)) continue;\n Index index = Index.createIndex(currentVertex,set);\n int minCost = Integer.MAX_VALUE;\n int minPrevVertex = 0;\n\n Set<Integer> copySet = new HashSet<>();\n for (int prevVertex : set) {\n int cost = distance[prevVertex][currentVertex] + getCost(copySet, prevVertex, minCostDP);\n }\n }\n }\n }",
"public void computeAllPaths(String source)\r\n {\r\n Vertex sourceVertex = network_topology.get(source);\r\n Vertex u,v;\r\n double distuv;\r\n\r\n Queue<Vertex> vertexQueue = new PriorityQueue<Vertex>();\r\n \r\n \r\n // Switch between methods and decide what to do\r\n if(routing_method.equals(\"SHP\"))\r\n {\r\n // SHP, weight of each edge is 1\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + 1;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n else if (routing_method.equals(\"SDP\"))\r\n {\r\n // SDP, weight of each edge is it's propagation delay\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + u.adjacentVertices.get(key).propDelay;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n } \r\n }\r\n }\r\n else if (routing_method.equals(\"LLP\"))\r\n {\r\n // LLP, weight each edge is activeCircuits/AvailableCircuits\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = Math.max(u.minDistance,u.adjacentGet(key).load());\r\n //System.out.println(u.adjacentGet(key).load());\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n }\r\n }\r\n }",
"public ArrayList<Vertex> dijkstraPath(int sourceIndex, int sinkIndex) {\r\n \tArrayList<Vertex> locationcopy;\r\n \tlocationcopy=new ArrayList<Vertex>(location);\r\n \tArrayList<Vertex> dijpath;\r\n \tdijpath= new ArrayList<Vertex>(0);\r\n \t//dijpath.add(locationcopy.get(sourceIndex));\r\n \tint i,j,maxdist=locationcopy.size()+1;\r\n \tint[] DistArray=new int[locationcopy.size()], PreArray=new int[locationcopy.size()]; \r\n \tint[][] AdjArray=new int[locationcopy.size()][locationcopy.size()];\r\n \t\r\n \r\n \t\r\n \tfor(i=0;i<locationcopy.size();i++)\r\n \t\tfor(j=i;j<locationcopy.size();j++)\r\n \t\t\tif(locationcopy.get(i).distance(locationcopy.get(j))<=transmissionRange)\r\n \t\t\t{\r\n \t\t\t\tAdjArray[i][j]=1;\r\n \t\t\t\tAdjArray[j][i]=1;\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tAdjArray[i][j]=maxdist;\r\n \t\t\t\tAdjArray[j][i]=maxdist;\r\n \t\t\t}\r\n \t\r\n \tfor(i=0;i<locationcopy.size();i++)\r\n \t\tAdjArray[i][i]=0;\r\n \t\t\r\n\t\t\r\n \tint mdistindex,mindist;\r\n\r\n \t for(i=0;i<locationcopy.size();i++)\r\n \t { \r\n \t\t DistArray[i]=AdjArray[sourceIndex][i];\r\n \t if(DistArray[i]<maxdist) PreArray[i]=sourceIndex;\r\n \t else PreArray[i]=-1;\r\n \t }\r\n \t PreArray[sourceIndex]=-1; AdjArray[sourceIndex][sourceIndex]=1;\r\n \t for(j=0;j<(locationcopy.size()-1);j++)\r\n \t { \r\n \t\t mindist=maxdist; \r\n \t\t mdistindex=-1;\r\n \t for(i=0;i<locationcopy.size();i++)\r\n \t if((AdjArray[i][i]==0)&&(DistArray[i]<mindist))\r\n \t { \r\n \t \t mdistindex=i;\r\n \t \t mindist=DistArray[i];\r\n \t }\r\n \t if(mdistindex==-1) return new ArrayList<Vertex>(0);\r\n \t else\r\n \t { \r\n \t \t AdjArray[mdistindex][mdistindex]=1;\r\n \t for(i=0;i<locationcopy.size();i++)\r\n \t {\r\n \t if(AdjArray[i][i]==0)\r\n \t {\r\n \t if(DistArray[mdistindex]+AdjArray[mdistindex][i]<DistArray[i])\r\n \t { \r\n \t \t DistArray[i]=DistArray[mdistindex]+AdjArray[mdistindex][i];\r\n \t PreArray[i]=mdistindex;\r\n \t }\r\n \t }\r\n \t }\r\n \t }\r\n \t if(AdjArray[sinkIndex][sinkIndex]==1) break;\r\n \t }\r\n \t Stack<Integer> s=new Stack<Integer>();\r\n \t i=sinkIndex;\r\n \t s.push(i);\r\n \t while(PreArray[i]!=-1)\r\n \t {\r\n \t\t s.push(PreArray[i]);\r\n \t\t i=PreArray[i];\r\n \t }\r\n \t while(!s.isEmpty())\r\n \t {\r\n \t\t dijpath.add(locationcopy.get(s.pop()));\r\n \t }\r\n \treturn dijpath;\r\n }",
"@Override\r\n\tpublic int getDistance(E src, E dst) {\r\n\t\treturn graphForWarshall.getDistance(src, dst);\r\n\t}",
"public int[] getDijkstraSP(int source) {\n\t\tint[] distance = new int[this.v];\n\t\tArrays.fill(distance, Integer.MAX_VALUE);\n\t\tdistance[source] = 0;\n\t\tQueue<Distance> q = new LinkedList<>();//new PriorityQueue<>();\n\t\tq.add(new Distance(source, 0));\n\t\t\n\t\tboolean[] visited = new boolean[this.v];\n\t\t\t\t\n\t\twhile(!q.isEmpty()) {\n\t\t\tDistance e = q.poll();\n\t\t\tif(visited[e.vertex]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tvisited[e.vertex] = true;\n\t\t\t\n\t\t\tList<Edge> list = this.edges.get(e.vertex);\n\t\t\tfor(Edge adjEdge : list) {\n\t\t\t\tif((long)distance[adjEdge.from] + adjEdge.weight < distance[adjEdge.to]) {\n\t\t\t\t\tdistance[adjEdge.to] = distance[adjEdge.from] + adjEdge.weight;\n\t\t\t\t\tq.add(new Distance(adjEdge.to, distance[adjEdge.to]));\n\t\t\t\t\t//System.out.println(Arrays.toString(distance));\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn distance;\n\t}",
"private int BFS() {\n adjList.cleanNodeFields();\n\n //Queue for storing current shortest path\n Queue<Node<Integer, Integer>> q = new LinkedList<>();\n\n //Set source node value to 0\n q.add(adjList.getNode(startNode));\n q.peek().key = 0;\n q.peek().d = 0;\n q.peek().visited = true;\n\n //Helper variables\n LinkedList<Pair<Node<Integer, Integer>, Integer>> neighbors;//Array of pairs <neighborKey, edgeWeight>\n Node<Integer, Integer> neighbor, u;\n long speed = (long) (cellSideLength * 1.20);\n\n while (!isCancelled() && q.size() != 0) {\n u = q.poll();\n\n //Marks node as checked\n checkedNodesGC.fillRect((u.value >> 16) * cellSideLength + 0.5f,\n (u.value & 0x0000FFFF) * cellSideLength + 0.5f,\n (int) cellSideLength - 1, (int) cellSideLength - 1);\n\n //endNode found\n if (u.value == endNode) {\n //Draws shortest path\n Node<Integer, Integer> current = u, prev = u;\n\n while ((current = current.prev) != null) {\n shortestPathGC.strokeLine((prev.value >> 16) * cellSideLength + cellSideLength / 2,\n (prev.value & 0x0000FFFF) * cellSideLength + cellSideLength / 2,\n (current.value >> 16) * cellSideLength + cellSideLength / 2,\n (current.value & 0x0000FFFF) * cellSideLength + cellSideLength / 2);\n prev = current;\n }\n return u.d;\n }\n\n //Wait after checking node\n try {\n Thread.sleep(speed);\n } catch (InterruptedException interrupted) {\n if (isCancelled())\n break;\n }\n\n //Checking Neighbors\n neighbors = adjList.getNeighbors(u.value);\n for (Pair<Node<Integer, Integer>, Integer> neighborKeyValuePair : neighbors) {\n neighbor = neighborKeyValuePair.getKey();\n //Relaxation step\n //Checks if neighbor hasn't been checked, if so the assign the shortest path\n if (!neighbor.visited) {\n //Adds checked neighbor to queue\n neighbor.key = u.d + 1;\n neighbor.d = u.d + 1; //Assign shorter path found to neighbor\n neighbor.prev = u;\n neighbor.visited = true;\n q.add(neighbor);\n }\n }\n }\n return Integer.MAX_VALUE;\n }",
"public double distance() {\n \tif (dist == -1) {\n \t\tdist = distance(vertex1, vertex2);\n \t}\n \n \treturn dist;\n }",
"DijkstraSP(EdgeWeightedDigraph G, int s)\n\t{\n\t\tdistTo=new double[G.V()];\n\t\tedgeTo=new DirectedEdge[G.V()];\n\t\tpq=new IndexMinPQ<>(G.V());\n\t\tfor(int v=0;v<G.V();v++)\n\t\t\tdistTo[v]=Double.POSITIVE_INFINITY;\n\t\tdistTo[s]=0.0;\n\t\t\n\t\tpq.insert(s, 0.0);\n\t\twhile(!pq.isEmpty()) \n\t\t{\n\t\t\tint v=pq.delMin();\n\t\t\tfor(DirectedEdge e: G.adj(v))\n\t\t\t\trelax(e);\n\t\t}\n\t}",
"@Test\n void shortestPath() {\n directed_weighted_graph g0 = new DW_GraphDS();\n dw_graph_algorithms ag0 = new DWGraph_Algo();\n node_data n0 = new NodeData(0);\n node_data n1 = new NodeData(1);\n node_data n2 = new NodeData(2);\n node_data n3 = new NodeData(3);\n g0.addNode(n1);\n g0.addNode(n2);\n g0.addNode(n3);\n g0.connect(1, 2, 5);\n g0.connect(2, 3, 3);\n g0.connect(1, 3, 15);\n g0.connect(3, 2, 1);\n ag0.init(g0);\n\n List<node_data> list0 = ag0.shortestPath(1, 1); //should go from 1 -> 1\n int[] list0Test = {1, 1};\n int i = 0;\n for (node_data n : list0) {\n\n assertEquals(n.getKey(), list0Test[i]);\n i++;\n }\n\n List<node_data> list1 = ag0.shortestPath(1, 2); //should go 1 -> 2\n int[] list1Test = {1, 2};\n i = 0;\n for (node_data n : list1) {\n\n assertEquals(n.getKey(), list1Test[i]);\n i++;\n }\n g0.connect(1, 3, 2);\n List<node_data> list2 = ag0.shortestPath(1, 2); //should go 1 -> 3 -> 2\n int[] list2Test = {1, 3, 2};\n i = 0;\n for (node_data n : list2) {\n\n assertEquals(n.getKey(), list2Test[i]);\n i++;\n }\n\n g0.connect(1, 3, 10);\n List<node_data> list3 = ag0.shortestPath(1,3);\n int[] list3Test = {1, 2, 3};\n i = 0;\n for(node_data n: list3) {\n\n assertEquals(n.getKey(), list3Test[i]);\n i++;\n }\n/*\n\n List<node_data> list4 = ag0.shortestPath(1,4);\n int[] list4Test = {1, 4};\n i = 0;\n for(node_data n: list4) {\n\n assertEquals(n.getKey(), list4Test[i]);\n i++;\n }\n\n List<node_data> list5 = ag0.shortestPath(4,1);\n int[] list5Test = {4, 1};\n i = 0;\n for(node_data n: list5) {\n\n assertEquals(n.getKey(), list5Test[i]);\n i++;\n }\n*/\n }",
"public Dijkstra(EdgeWeightedDigraph G, int s) {\r\n int V = G.V();\r\n distTo = new double[V];\r\n edgeTo = new DirectedEdge[V];\r\n distTo[0] = 0.0;\r\n for (int i = 1; i < V; i++) {\r\n distTo[i] = Double.POSITIVE_INFINITY;\r\n }\r\n pq.insert(s, 0.0);\r\n while (!pq.isEmpty()) {\r\n int v = pq.deleteMin();\r\n for (DirectedEdge e : G.adj(v)) {\r\n relax(e);\r\n }\r\n }\r\n }",
"public boolean DijkstraHelp(int src, int dest) {\n PriorityQueue<Entry>queue=new PriorityQueue();//queue storages the nodes that we will visit by the minimum tag\n //WGraph_DS copy = (WGraph_DS) (copy());//create a copy graph that the algorithm will on it\n initializeTag();\n initializeInfo();\n node_info first=this.ga.getNode(src);\n first.setTag(0);//distance from itself=0\n queue.add(new Entry(first,first.getTag()));\n while(!queue.isEmpty()) {\n Entry pair=queue.poll();\n node_info current= pair.node;\n if (current.getInfo() != null) continue;//if we visit we can skip to the next loop because we have already marked\n current.setInfo(\"visited\");//remark the info\n Collection<node_info> listNeighbors = this.ga.getV(current.getKey());//create a collection for the neighbors list\n LinkedList<node_info> Neighbors = new LinkedList<>(listNeighbors);//create the neighbors list\n if (Neighbors == null) continue;\n for(node_info n:Neighbors) {\n\n if(n.getTag()>ga.getEdge(n.getKey(),current.getKey())+current.getTag())\n {\n n.setTag(current.getTag() + ga.getEdge(n.getKey(), current.getKey()));//compute the new tag\n }\n queue.add(new Entry(n,n.getTag()));\n }\n }\n Iterator<node_info> it=this.ga.getV().iterator();\n while(it.hasNext()){\n if(it.next().getInfo()==null) return false;\n }\n return true;\n }",
"@Override\n\tpublic List<Path> getShortestRoute(Location src, Location dest, String edgePropertyName) {\n\t\t//array to keep track of visited vertexes\n\t\tboolean[] visited = new boolean[locations.size()];\n\t\t//array to store weights\n\t\tdouble[] weight = new double[locations.size()];\n\t\t//array to store predecessors\n\t\tLocation[] pre = new Location[locations.size()];\n\t\t//creates priority queue\n\t\tPriorityQueue<LocWeight> pq = new PriorityQueue<LocWeight>();\n\t\t// initializes every vertex misted mark to false\n\t\tfor (int i = 0; i < visited.length; i++)\n\t\t\tvisited[i] = false;\n\t\t// initializes every vertex's total weight to infinity\n\t\tfor (int i = 0; i < weight.length; i++)\n\t\t\tweight[i] = Double.POSITIVE_INFINITY;\n\t\t// initializes every vertex's predecessor to null\n\t\tfor (int i = 0; i < pre.length; i++)\n\t\t\tpre[i] = null;\n\t\t//sets start vertex's total weight to 0\n\t\tweight[locations.indexOf(src)] = 0;\n\t\t//insert start vertex in priroty queue\n\t\tpq.add(new LocWeight(src, 0.0));\n\t\t\n\t\tString[] edgeNames = getEdgePropertyNames();\n\t\tint indexProp = 0;\n\t\tfor (int i = 0; i < edgeNames.length; i++) {\n\t\t\tif (edgeNames[i].equalsIgnoreCase(edgePropertyName))\n\t\t\t\tindexProp = i;\n\t\t}\n\t\twhile (!pq.isEmpty()) {\n\t\t\tLocWeight c = pq.remove();\n\t\t\t//set C's visited mark to true\n\t\t\tvisited[locations.indexOf(c)] = true;\n\n\t\t\tList<Location> neighbors = getNeighbors(c.getLocation());\n\t\t\t//for each unvisited successor adjacent to C\n\t\t\tfor (int i = 0; i < neighbors.size(); i++) {\n\t\t\t\tif (visited[locations.indexOf(neighbors.get(i))] == false) {\n\t\t\t\t\t//change successor's total weight to equal C's weight + edge weight from C to successor\n\t\t\t\t\tweight[locations.indexOf(neighbors.get(i))] = c.getWeight() + getEdgeIfExists(c.getLocation(), neighbors.get(i)).getProperties().get(indexProp);\n\t\t\t\t\tpre[locations.indexOf(neighbors.get(i))] = c.getLocation();\n\t\t\t\t\tLocWeight succ = new LocWeight(neighbors.get(i), weight[locations.indexOf(neighbors.get(i))]);\n\t\t\t\t\t//if successor is already in pq, update its total weight\n\t\t\t\t\tif (pq.contains(succ)) {\n\t\t\t\t\t\tpq.remove(succ);\n\t\t\t\t\t}\n\t\t\t\t\t//if not already there, add\n\t\t\t\t\tpq.add(succ);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\n\t\t}\n\t\t\n\t\tArrayList<Path> path = new ArrayList<Path>();\n\t\t//find predecessor of each vertex and construct shortest path then return it\n\t\tLocation curr1 = dest;\n\t\twhile (pre[locations.indexOf(curr1)] != null) {\n\t\t\tpath.add(getEdgeIfExists(pre[locations.indexOf(curr1)], curr1));\n\t\t\tcurr1 = pre[locations.indexOf(curr1)];\n\t\t}\n\t\t//to show path from the start\n\t\tfor (int i = path.size() - 1; i >= 0; i--)\n\t\t\tpath.add(path.remove(i));\n\n\n\t\treturn path;\n\t}",
"private void computeShortestPathsFromSource(V source) {\n\t\tBFSDistanceLabeler<V, E> labeler = new BFSDistanceLabeler<V, E>();\n\t\tlabeler.labelDistances(mGraph, source);\n\t\tdistances = labeler.getDistanceDecorator();\n\t\tMap<V, Number> currentSourceSPMap = new HashMap<V, Number>();\n\t\tMap<V, E> currentSourceEdgeMap = new HashMap<V, E>();\n\n\t\tfor (V vertex : mGraph.getVertices()) {\n\n\t\t\tNumber distanceVal = distances.get(vertex);\n\t\t\t// BFSDistanceLabeler uses -1 to indicate unreachable vertices;\n\t\t\t// don't bother to store unreachable vertices\n\t\t\tif (distanceVal != null && distanceVal.intValue() >= 0) {\n\t\t\t\tcurrentSourceSPMap.put(vertex, distanceVal);\n\t\t\t\tint minDistance = distanceVal.intValue();\n\t\t\t\tfor (E incomingEdge : mGraph.getInEdges(vertex)) {\n\t\t\t\t\tfor (V neighbor : mGraph\n\t\t\t\t\t\t\t.getIncidentVertices(incomingEdge)) {\n\t\t\t\t\t\tif (neighbor.equals(vertex))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t// V neighbor = mGraph.getOpposite(vertex,\n\t\t\t\t\t\t// incomingEdge);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tNumber predDistanceVal = distances.get(neighbor);\n\n\t\t\t\t\t\tint pred_distance = predDistanceVal.intValue();\n\t\t\t\t\t\tif (pred_distance < minDistance && pred_distance >= 0) {\n\t\t\t\t\t\t\tminDistance = predDistanceVal.intValue();\n\t\t\t\t\t\t\tcurrentSourceEdgeMap.put(vertex, incomingEdge);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tmDistanceMap.put(source, currentSourceSPMap);\n\t\tmIncomingEdgeMap.put(source, currentSourceEdgeMap);\n\t}",
"public void calcSP(Graph g, Vertex source){\n // Algorithm:\n // 1. Take the unvisited node with minimum weight.\n // 2. Visit all its neighbours.\n // 3. Update the distances for all the neighbours (In the Priority Queue).\n // Repeat the process till all the connected nodes are visited.\n\n // clear existing info\n// System.out.println(\"Calc SP from vertex:\" + source.name);\n g.resetMinDistance();\n source.minDistance = 0;\n PriorityQueue<Vertex> queue = new PriorityQueue<Vertex>();\n queue.add(source);\n\n while(!queue.isEmpty()){\n Vertex u = queue.poll();\n for(Edge neighbour:u.neighbours){\n// System.out.println(\"Scanning vector: \"+neighbour.target.name);\n Double newDist = u.minDistance+neighbour.weight;\n\n // get new shortest path, empty existing path info\n if(neighbour.target.minDistance>newDist){\n // Remove the node from the queue to update the distance value.\n queue.remove(neighbour.target);\n neighbour.target.minDistance = newDist;\n\n // Take the path visited till now and add the new node.s\n neighbour.target.path = new ArrayList<>(u.path);\n neighbour.target.path.add(u);\n// System.out.println(\"Path\");\n// for (Vertex vv: neighbour.target.path) {\n// System.out.print(vv.name);\n// }\n// System.out.print(\"\\n\");\n\n// System.out.println(\"Paths\");\n neighbour.target.pathCnt = 0;\n neighbour.target.paths = new ArrayList<ArrayList<Vertex>>();\n if (u.paths.size() == 0) {\n ArrayList<Vertex> p = new ArrayList<Vertex>();\n p.add(u);\n neighbour.target.paths.add(p);\n neighbour.target.pathCnt++;\n } else {\n for (ArrayList<Vertex> p : u.paths) {\n ArrayList<Vertex> p1 = new ArrayList<>(p);\n p1.add(u);\n// for (Vertex vv : p1) {\n// System.out.print(vv.name);\n// }\n// System.out.print(\"\\n\");\n neighbour.target.paths.add(p1);\n neighbour.target.pathCnt++;\n }\n }\n\n //Reenter the node with new distance.\n queue.add(neighbour.target);\n }\n // get equal cost path, add into path list\n else if (neighbour.target.minDistance == newDist) {\n queue.remove(neighbour.target);\n for(ArrayList<Vertex> p: u.paths) {\n ArrayList<Vertex> p1 = new ArrayList<>(p);\n p1.add(u);\n neighbour.target.paths.add(p1);\n neighbour.target.pathCnt++;\n }\n queue.add(neighbour.target);\n }\n }\n }\n }",
"public static void computePaths(Vertex source){\n\t\tsource.minDistance=0;\n\t\t//visit each vertex u, always visiting vertex with smallest minDistance first\n\t\tPriorityQueue<Vertex> vertexQueue=new PriorityQueue<Vertex>();\n\t\tvertexQueue.add(source);\n\t\twhile(!vertexQueue.isEmpty()){\n\t\t\tVertex u = vertexQueue.poll();\n\t\t\tSystem.out.println(\"For: \"+u);\n\t\t\tfor (Edge e: u.adjacencies){\n\t\t\t\tVertex v = e.target;\n\t\t\t\tSystem.out.println(\"Checking: \"+u+\" -> \"+v);\n\t\t\t\tdouble weight=e.weight;\n\t\t\t\t//relax the edge (u,v)\n\t\t\t\tdouble distanceThroughU=u.minDistance+weight;\n\t\t\t\tif(distanceThroughU<v.minDistance){\n\t\t\t\t\tSystem.out.println(\"Updating minDistance to \"+distanceThroughU);\n\t\t\t\t\tv.minDistance=distanceThroughU;\n\t\t\t\t\tv.previous=u;\n\t\t\t\t\t//move the vertex v to the top of the queue\n\t\t\t\t\tvertexQueue.remove(v);\n\t\t\t\t\tvertexQueue.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static Vector<int []> aStar(int[] startNode,int[] endNode, mapNode[][] nodes, String method){\n\t\t\t\tfor(int i = 0; i < nodes.length; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tfor(int j = 0; j < nodes[i].length;j++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnodes[i][j].setTotCost(999999999);//set the initial distance to INF\r\n\t\t\t\t\t\tnodes[i][j].gridPosition[0] = i;//save current node x position\r\n\t\t\t\t\t\tnodes[i][j].gridPosition[1] = j;//save current node y position\r\n\t\t\t\t\t\tnodes[i][j].setNodeVistied(false);//set all nodes are not visited yet\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\r\n\t\tVector<int []> shortestPath;\r\n\t\tVector<mapNode> closeSet;//the set of nodes already evaluated\r\n\t\tcloseSet = new Vector<mapNode>();\r\n\t\tVector<mapNode> openSet;//the set of nodes to be evaluated\r\n\t\topenSet = new Vector<mapNode>();\r\n\t\tfloat bestCost;\r\n\t\t//Add the start node into open set\r\n\t\tmapNode start = new mapNode();\r\n\t\tnodes[startNode[0]][startNode[1]].setHeuristics(0);\r\n\t\tnodes[startNode[0]][startNode[1]].setTotCost(0);\r\n\t\tstart = nodes[startNode[0]][startNode[1]];\r\n\t\topenSet.add(start);\r\n\t\t\r\n\t\twhile(openSet.size() != 0)\r\n\t\t{\r\n\t\t\t//sort openSet from lowest cost to highest\r\n\t\t\tint j;\r\n\t\t\tfor(int i = 1; i < openSet.size(); i++){\r\n\t\t\t\tj = i;\r\n\t\t\t\twhile(j > 0 && openSet.get(j-1).getTotCost() > openSet.get(j).getTotCost()){\r\n\t\t\t\t\tCollections.swap(openSet, j, j-1);\r\n\t\t\t\t\tj = j-1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//the node in openset having the lowest cost\r\n\t\t\tmapNode tempNode = new mapNode();\r\n\t\t\ttempNode = openSet.get(0);\r\n\t\t\t\r\n\t\t\t//End case if the condition have approached\r\n\t\t\tif(tempNode.gridPosition[0] == endNode[0] && tempNode.gridPosition[1] == endNode[1]){\r\n\t\t\t\tshortestPath = nodes[endNode[0]][endNode[1]].getTotPath();\r\n\t\t\t\tif(shortestPath.size() == 1)\r\n\t\t\t\t{\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t\tshortestPath.add(endNode);\r\n\t\t\t\t// No result was found -- only the end node\r\n\t\t\t\treturn shortestPath;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tmapNode tempTopNode = new mapNode();\r\n\t\t\tmapNode tempBottomNode = new mapNode();\r\n\t\t\tmapNode tempLeftNode = new mapNode();\r\n\t\t\tmapNode tempRightNode = new mapNode();\r\n\t\t\t\r\n\t\t\t//remove current from open set\r\n\t\t\topenSet.remove(0);\r\n\t\t\t//add current to close set\r\n\t\t\tcloseSet.add(tempNode);\r\n\t\t\t\r\n\t\t\t//update Top node information from original nodes matrix\r\n\t\t\tif(tempNode.topNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempTopNode = nodes[tempNode.topNode.gridPosition[0]][tempNode.topNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempTopNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Bottom node information from original nodes matrix\r\n\t\t\tif(tempNode.bottomNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempBottomNode = nodes[tempNode.bottomNode.gridPosition[0]][tempNode.bottomNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempBottomNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Left node information from original nodes matrix\r\n\t\t\tif(tempNode.leftNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempLeftNode = nodes[tempNode.leftNode.gridPosition[0]][tempNode.leftNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempLeftNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Right node information from original nodes matrix\r\n\t\t\tif(tempNode.rightNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempRightNode = nodes[tempNode.rightNode.gridPosition[0]][tempNode.rightNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempRightNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Manhattan, Euclidean method\r\n\t\t\tif(method.equals(\"manhattan\")){\r\n\t\t\t\t//update neighbor nodes\r\n\t\t\t\t//update top Node\r\n\t\t\t\tif(tempTopNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost = hValue+manhattan(tempTopNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempTopNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempTopNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempTopNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+manhattan(tempTopNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempTopNode) == false && tempTopNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempTopNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempTopNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempTopNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempTopNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.topNode.gridPosition[0]][tempNode.topNode.gridPosition[1]] = tempTopNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempTopNode) == false && checkOpenSet(openSet, tempTopNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempTopNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//update bottom node\r\n\t\t\t\tif(tempBottomNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost = hValue+manhattan(tempBottomNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempBottomNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempBottomNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempBottomNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+manhattan(tempBottomNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempBottomNode) == false && tempBottomNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempBottomNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempBottomNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempBottomNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempBottomNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.bottomNode.gridPosition[0]][tempNode.bottomNode.gridPosition[1]] = tempBottomNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempBottomNode) == false && checkOpenSet(openSet, tempBottomNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempBottomNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//update Left node\r\n\t\t\t\tif(tempLeftNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost =hValue+manhattan(tempLeftNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempLeftNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempLeftNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempLeftNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+manhattan(tempLeftNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempLeftNode) == false && tempLeftNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempLeftNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempLeftNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempLeftNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempLeftNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.leftNode.gridPosition[0]][tempNode.leftNode.gridPosition[1]] = tempLeftNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempLeftNode) == false && checkOpenSet(openSet, tempLeftNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempLeftNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//update Right node\r\n\t\t\t\tif(tempRightNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost = hValue+manhattan(tempRightNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempRightNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempRightNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempRightNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+manhattan(tempRightNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempRightNode) == false && tempRightNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempRightNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempRightNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempRightNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempRightNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.rightNode.gridPosition[0]][tempNode.rightNode.gridPosition[1]] = tempRightNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempRightNode) == false && checkOpenSet(openSet, tempRightNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempRightNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Manhattan, Euclidean method\r\n\t\t\telse if(method.equals(\"euclidean\")){\r\n\t\t\t\t//update neighbor nodes\r\n\t\t\t\t//update top Node\r\n\t\t\t\tif(tempTopNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost = hValue+Euclidean(tempTopNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempTopNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempTopNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempTopNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+Euclidean(tempTopNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempTopNode) == false && tempTopNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempTopNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempTopNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempTopNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempTopNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.topNode.gridPosition[0]][tempNode.topNode.gridPosition[1]] = tempTopNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempTopNode) == false && checkOpenSet(openSet, tempTopNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempTopNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//update bottom node\r\n\t\t\t\tif(tempBottomNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost = hValue+Euclidean(tempBottomNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempBottomNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempBottomNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempBottomNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+Euclidean(tempBottomNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempBottomNode) == false && tempBottomNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempBottomNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempBottomNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempBottomNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempBottomNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.bottomNode.gridPosition[0]][tempNode.bottomNode.gridPosition[1]] = tempBottomNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempBottomNode) == false && checkOpenSet(openSet, tempBottomNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempBottomNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//update Left node\r\n\t\t\t\tif(tempLeftNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost =hValue+Euclidean(tempLeftNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempLeftNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempLeftNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempLeftNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+Euclidean(tempLeftNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempLeftNode) == false && tempLeftNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempLeftNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempLeftNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempLeftNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempLeftNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.leftNode.gridPosition[0]][tempNode.leftNode.gridPosition[1]] = tempLeftNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempLeftNode) == false && checkOpenSet(openSet, tempLeftNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempLeftNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//update Right node\r\n\t\t\t\tif(tempRightNode != null){\r\n\t\t\t\t\tfloat hValue = tempNode.getHeuristics()+1;\r\n\t\t\t\t\tfloat nextCost = hValue+Euclidean(tempRightNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\tif(tempNode.getOwnElevation() < tempRightNode.getOwnElevation()){\r\n\t\t\t\t\t\tif(tempRightNode.getOwnElevation() == 999999999){\r\n\t\t\t\t\t\t\tnextCost = 999999999;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\thValue = tempNode.getHeuristics()+1+(tempRightNode.getOwnElevation()-tempNode.getOwnElevation());\r\n\t\t\t\t\t\t\tnextCost = hValue+Euclidean(tempRightNode.gridPosition, endNode, nodes);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempRightNode) == false && tempRightNode.getTotCost() > nextCost){\r\n\t\t\t\t\t\t//This node is not in closeSet or openSet\r\n\t\t\t\t\t\t//it is the first time that program has arrived this node\r\n\t\t\t\t\t\t//update cost\r\n\t\t\t\t\t\ttempRightNode.setHeuristics(hValue);\r\n\t\t\t\t\t\ttempRightNode.setTotCost(nextCost);\r\n\t\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t\t//record the path\r\n\t\t\t\t\t\tfor(int m = 0; m < tempNode.getTotPath().size(); m++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\t\ttempXY = tempNode.getTotPath().get(m);\r\n\t\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\t\tif(checkPositionInPath(tempPath, tempNode.gridPosition[0], tempNode.gridPosition[1]) == false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\t\ttempXY2 = tempNode.gridPosition;\r\n\t\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\t\ttempRightNode.setTotPath(tempPath);\r\n\t\t\t\t\t\ttempRightNode.setStatus(Status.EXPLORED);\r\n\t\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\t\tnodes[tempNode.rightNode.gridPosition[0]][tempNode.rightNode.gridPosition[1]] = tempRightNode;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(checkCloseSet(closeSet,tempRightNode) == false && checkOpenSet(openSet, tempRightNode) == false){\r\n\t\t\t\t\t\topenSet.add(tempRightNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t\tshortestPath = nodes[endNode[0]][endNode[1]].getTotPath();\r\n\t\tif(shortestPath.size() == 1)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tshortestPath.add(endNode);\r\n\t\t// No result was found -- only the end node\r\n\t\treturn shortestPath;\t\r\n\t}",
"public DijkstraSP(EdgeWeightedDigraph G, int s){\n edgeTo = new DirectedEdge[G.V()];\n distTo = new double[G.V()];\n pq = new IndexMinPQ<>(G.V());\n\n for (int v=0; v<G.V(); v++)\n distTo[v] = Double.POSITIVE_INFINITY;\n distTo[s] = 0;\n\n pq.insert(s, 0.0);\n // relax vertices in order of distance from s\n while (!pq.isEmpty())\n relax(G, pq.delMin());\n }",
"public static int shortestDistance(Graph graph, Vertex a, Vertex b) {\n Set<List<Vertex>> listSetVertex=breadthFirstSearch(graph);\n int distance=graph.getVertices().size();\n for(List<Vertex> lv: listSetVertex){\n int aindex=lv.indexOf(a);\n int bindex=lv.indexOf(b);\n if(aindex>=0&&bindex>=0){\n distance=distance>Math.abs(aindex-bindex)?Math.abs(aindex-bindex):distance;\n }\n }\n return distance==graph.getVertices().size()?-1:distance;\n }",
"public static <V> Dictionary<V, DijkstraResult<V>> getShortestPathDijkstra(Graph<V> graph, V value) {\n V[] vertices = graph.getValuesAsArray();\n double[][] matriz = graph.getGraphStructureAsMatrix();\n\n double[] distancias = new double[vertices.length];\n V[] camino = (V[]) new Object[vertices.length];\n int pos = buscarPosicion(value, vertices);\n\n for (int x = 0; x < vertices.length; x++) { // Se llenan los arreglos con la informacion de sus adyacentes.\n if (pos == x) {\n distancias[x] = 0;\n camino[x] = null;\n } else {\n if (matriz[pos][x] == -1) {\n distancias[x] = Integer.MAX_VALUE - 1;\n camino[x] = vertices[pos];\n } else {\n distancias[x] = matriz[pos][x];\n camino[x] = vertices[pos];\n }\n }\n }\n\n Set<V> revisados = new LinkedListSet<>();\n revisados.put(value);\n while (revisados.size() < vertices.length) {\n double menor = Integer.MAX_VALUE;\n V actual = null;\n for (int x = 0; x < vertices.length; x++) {\n if (distancias[x] < menor) {\n if (!revisados.isMember(vertices[x])) {\n menor = distancias[x];\n actual = vertices[x];\n }\n }\n }\n\n pos = buscarPosicion(actual, vertices);\n for (int x = 0; x < vertices.length; x++) { // Se recorre la matriz para buscar adyacencias.\n if (matriz[pos][x] != -1) { // Si existe arist\n if (menor + matriz[pos][x] < distancias[x]) {\n distancias[x] = menor + matriz[pos][x];\n camino[x] = actual;\n }\n }\n }\n revisados.put(actual);\n }\n Dictionary<V, DijkstraResult<V>> diccionario = new Hashtable<>();\n for (int x = 0; x < vertices.length; x++) {\n DijkstraResult<V> aux = new DijkstraResult<>(vertices[x], camino[x], distancias[x]);\n diccionario.put(vertices[x], aux);\n }\n return diccionario;\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n private OptimizedItinerary doDijkstra(HipsterDirectedGraph<String,Long> graph, String origin, String destination) {\r\n log.info(String.format(\"----- Doing Dijkstra for origen: %s, and destination: %s -----\", origin, destination));\r\n SearchResult res = null;\r\n SearchProblem p = GraphSearchProblem\r\n .startingFrom(origin)\r\n .in(graph)\r\n .takeCostsFromEdges()\r\n .build();\r\n\r\n res= Hipster.createDijkstra(p).search(destination);\r\n WeightedNode node = (WeightedNode)res.getGoalNode();\r\n log.info(String.format(\"Best itineraries: %s, cost final: %s\", res.getOptimalPaths(), node.getCost()));\r\n \r\n return new OptimizedItinerary.Builder(res.getOptimalPaths())\r\n .setCost( Double.parseDouble(node.getCost().toString()))\r\n .from(origin)\r\n .to(destination)\r\n .build();\r\n }",
"private Node<Integer> minDistance(Map<Node<Integer>, Double> distances, Map<Node<Integer>, Double> unvisitedNodes) {\n Double min = Double.POSITIVE_INFINITY;\n\n Node<Integer> minNode = null;\n for (Map.Entry<Node<Integer>, Double> entry : distances.entrySet()) {\n Double d = entry.getValue();\n if (Double.compare(d, min) < 0 && unvisitedNodes.containsKey(entry.getKey())) {\n min = d;\n minNode = entry.getKey();\n }\n }\n return minNode;\n }",
"@Override\n public List<Node> findShortestPath(Node s, Node t)\n {\n nodeDists.clear(); //clear previously calculated distances\n\n recordNodeDistances(s, t); //record node distances to target\n\n LinkedList<Node> shortestPath = new LinkedList<Node>();\n\n shortestPath.addLast(s);\n\n boolean reachedEnd = false;\n\n if(s==t) reachedEnd = true; // \"That was easy\"\n\n while(!reachedEnd)\n {\n //get the neighbors from the most recent step on the path\n Collection<? extends Node> neighbors = shortestPath.getLast().getNeighbors();\n\n //minimum cost from neighbors\n Node minNode = null;\n\n for(Node n: neighbors)\n {\n if(minNode == null || nodeDists.get(n) < nodeDists.get(minNode))\n {\n minNode = n;\n\n if(nodeDists.get(n) == 0)\n {\n reachedEnd = true;\n break;\n }\n }\n }\n\n if(nodeDists.get(minNode) == Integer.MAX_VALUE) return null; //no path\n else shortestPath.addLast(minNode);\n }\n\n return shortestPath;\n }"
] | [
"0.77123165",
"0.76504457",
"0.7581474",
"0.7530163",
"0.7478594",
"0.7407208",
"0.7403974",
"0.7391489",
"0.73838466",
"0.73834026",
"0.73091626",
"0.724805",
"0.7216066",
"0.7155141",
"0.7149885",
"0.71219414",
"0.71182835",
"0.7108804",
"0.7096276",
"0.70859367",
"0.70790464",
"0.7068477",
"0.70372427",
"0.7033794",
"0.7017231",
"0.70068157",
"0.70009696",
"0.69987637",
"0.6990526",
"0.6990467",
"0.6983031",
"0.69638664",
"0.6948151",
"0.6890484",
"0.68705225",
"0.68630004",
"0.6854738",
"0.6853022",
"0.6851812",
"0.6810791",
"0.6758114",
"0.6735451",
"0.67259336",
"0.67253584",
"0.6720566",
"0.6696521",
"0.66851634",
"0.6681708",
"0.66758615",
"0.66495556",
"0.66381335",
"0.66359055",
"0.66255593",
"0.65870786",
"0.65509045",
"0.6535559",
"0.65209216",
"0.6519446",
"0.65039235",
"0.64938486",
"0.64890254",
"0.6486835",
"0.6486591",
"0.6478238",
"0.64754033",
"0.64663094",
"0.6458799",
"0.64422923",
"0.64384216",
"0.64378697",
"0.6437735",
"0.6435914",
"0.6429832",
"0.6427162",
"0.6418198",
"0.63997376",
"0.6399313",
"0.638136",
"0.63803524",
"0.6376544",
"0.6376412",
"0.6375214",
"0.63657206",
"0.6364002",
"0.63593256",
"0.6358993",
"0.6350435",
"0.63460237",
"0.63199383",
"0.63166636",
"0.6312588",
"0.63070863",
"0.6301937",
"0.62925667",
"0.62887985",
"0.6288112",
"0.62698704",
"0.6265008",
"0.6260842",
"0.62492657"
] | 0.73703194 | 10 |
This method is used to get graph | @Override
public Graph getGraph() {
return graph;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Graph getGraph();",
"@RequestMapping(value=\"/async/graph\", method=RequestMethod.GET)\n\tpublic @ResponseBody GraphPojo getGraph() {\n\t\tList<Collection> collections = collectionService.findAllCurrent();\n\t\tList<Agent> agents = agentService.findAllCurrent();\n\t\tList<NodePojo> nodes = new ArrayList<NodePojo>();\n\t\tList<EdgePojo> edges = new ArrayList<EdgePojo>();\n\t\tList<String> nodeIds = new ArrayList<String>();\n\t\t\n\t\tNodePojo node;\n\t\tEdgePojo edge;\n\t\t\n\t\t// Nodes\n\t\tfor (Collection c : collections) {\n\t\t\tnode = new NodePojo();\n\t\t\tnode.setId(c.getEntityId());\n\t\t\tnode.setLabel(c.getLocalizedDescriptions().get(0).getTitle());\n\t\t\tnode.setType(\"collection\");\n\t\t\tnodes.add(node);\n\t\t\tnodeIds.add(node.getId());\n\t\t}\n\t\tfor (Agent agent : agents) {\n\t\t\tnode = new NodePojo();\n\t\t\tnode.setId(agent.getEntityId());\n\t\t\t\n\t\t\tif (agent.getForeName()==null) {\n\t\t\t\tnode.setType(\"organization\");\n\t\t\t} else {\n\t\t\t\tnode.setType(\"person\");\n\t\t\t}\n\t\t\t\n\t\t\tString name = (agent.getForeName()==null? \"\": (agent.getForeName() + \" \")) + agent.getName() ;\n\t\t\tnode.setLabel(name);\n\t\t\tnodes.add(node);\n\t\t\tnodeIds.add(node.getId());\n\t\t}\n\t\t\n\t\t// Edges\n\t\tfor (Collection c : collections) {\n\t\t\tif (c.getRelations()!=null) {\n\t\t\t\tfor (CollectionRelation cr : c.getRelations()) {\n\t\t\t\t\tedge = new EdgePojo();\n\t\t\t\t\tedge.setSource(cr.getSourceEntityId());\n\t\t\t\t\tedge.setTarget(cr.getTargetEntityId());\n\t\t\t\t\t\n\t\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\t\tedges.add(edge);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (c.getAgentRelations()!=null && c.getAgentRelations().size()!=0) {\n\t\t\t\tfor (CollectionAgentRelation car : c.getAgentRelations()) {\n\t\t\t\t\tedge = new EdgePojo();\n\t\t\t\t\tedge.setSource(c.getEntityId());\n\t\t\t\t\tedge.setTarget(car.getAgentId());\n\t\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\t\tedges.add(edge);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (Agent agent : agents) {\n\t\t\tif (agent.getParentAgentId()!=null && !agent.getParentAgentId().isEmpty()) {\n\t\t\t\tedge = new EdgePojo();\n\t\t\t\tedge.setSource(agent.getEntityId());\n\t\t\t\tedge.setTarget(agent.getParentAgentId());\n\t\t\t\t\n\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\tedges.add(edge);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tGraphPojo graph = new GraphPojo();\n\t\tgraph.setNodes(nodes);\n\t\tgraph.setEdges(edges);\n\t\t\n\t\treturn graph;\t\t\n\t}",
"public Graph getGraph()\n\t{\n\t\treturn graph;\n\t}",
"public OrientGraph getGraph();",
"public void buildGraph(){\n\t}",
"@Override\n public Graph getGraphModel() {\n return this.graph;\n }",
"public Graph getGraph() {\n\t\treturn this.Graph;\n\t}",
"protected final AbstractDGraph getGraph() {\n return this.graph;\n }",
"Graph getRecentGraph();",
"public Graph graph() {\n\t\treturn _analyzer.graph();\n\t}",
"public ReilGraph getGraph() {\n return m_graph;\n }",
"@Pure\n\tpublic SGraph getGraph() {\n\t\treturn this.graph.get();\n\t}",
"public DirectedGraph<VertexObject, String> getGraph() {\n return graph;\n }",
"public ParseTree getGraph() {\n return graph;\n }",
"public Graph2D getGraph() {\n return mGraph;\n }",
"protected Graph<VLabel, ELabel> theGraph() {\n return _graph;\n }",
"public weighted_graph getGraph();",
"IGraphEngine getGraphEngine();",
"public Graph<V, E> getGraph() {\n\t\treturn graph;\n\t}",
"@Override\r\n public weighted_graph getGraph() {\r\n return this.Graph;\r\n }",
"GraphFactory getGraphFactory();",
"public VBox getGraph(){\n\t\treturn graph.getGraph();\n\t}",
"void createGraphForSingleLoad();",
"protected abstract Graph fetchGraph() throws IdNotFoundException;",
"@Override\n public Collection<? extends IGraph> getGraphs() {\n\n return new LinkedList<>(\n Collections.unmodifiableCollection(this.graphMap.values()));\n }",
"private DirectedGraph<State, UniqueEdge> getGraph() {\r\n \t\tDirectedGraph<State, UniqueEdge> graph = new DirectedMultigraph<State, UniqueEdge>(\r\n \t\t\t\tUniqueEdge.class);\r\n \t\tfor (State source : states.values()) {\r\n \t\t\tgraph.addVertex(source);\r\n \t\t\tint index = source.getIndex();\r\n \t\t\tTransition transition = transitions.get(index);\r\n \t\t\tList<NextStateInfo> nextState = transition.getNextStateInfo();\r\n \t\t\tfor (NextStateInfo info : nextState) {\r\n \t\t\t\tState target = info.getTargetState();\r\n \t\t\t\tgraph.addVertex(target);\r\n \t\t\t\tgraph.addEdge(source, target, new UniqueEdge(info.getAction()));\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn graph;\r\n \t}",
"public static Graph[] getGraph() {\n\t\tGraph[] D = new Graph[26];\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\tGraph dd = new Graph(136);\n\t\t\tdd = generate(i);\n\t\t\tD[i] = dd;\n\t\t}\n\t\treturn D;\n\t}",
"String targetGraph();",
"private void createGraph() {\n \t\t\n \t\t// Check capacity\n \t\tCytoscape.ensureCapacity(nodes.size(), edges.size());\n \n \t\t// Extract nodes\n \t\tnodeIDMap = new OpenIntIntHashMap(nodes.size());\n \t\tginy_nodes = new IntArrayList(nodes.size());\n \t\t// OpenIntIntHashMap gml_id2order = new OpenIntIntHashMap(nodes.size());\n \n \t\tfinal HashMap gml_id2order = new HashMap(nodes.size());\n \n \t\tSet nodeNameSet = new HashSet(nodes.size());\n \n \t\tnodeMap = new HashMap(nodes.size());\n \n \t\t// Add All Nodes to Network\n \t\tfor (int idx = 0; idx < nodes.size(); idx++) {\n \t\t\t\n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(percentUtil.getGlobalPercent(1,\n \t\t\t\t\t\tidx, nodes.size()));\n \t\t\t}\n \n \t\t\t// Get a node object (NOT a giny node. XGMML node!)\n \t\t\tfinal cytoscape.generated2.Node curNode = (cytoscape.generated2.Node) nodes\n \t\t\t\t\t.get(idx);\n \t\t\tfinal String nodeType = curNode.getName();\n \t\t\tfinal String label = (String) curNode.getLabel();\n \n \t\t\treadAttributes(label, curNode.getAtt(), NODE);\n \n \t\t\tnodeMap.put(curNode.getId(), label);\n \n \t\t\tif (nodeType != null) {\n \t\t\t\tif (nodeType.equals(\"metaNode\")) {\n \t\t\t\t\tfinal Iterator it = curNode.getAtt().iterator();\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tfinal Att curAttr = (Att) it.next();\n \t\t\t\t\t\tif (curAttr.getName().equals(\"metanodeChildren\")) {\n \t\t\t\t\t\t\tmetanodeMap.put(label, ((Graph) curAttr.getContent()\n \t\t\t\t\t\t\t\t\t.get(0)).getNodeOrEdge());\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (nodeNameSet.add(curNode.getId())) {\n \t\t\t\tfinal Node node = (Node) Cytoscape.getCyNode(label, true);\n \n \t\t\t\tginy_nodes.add(node.getRootGraphIndex());\n \t\t\t\tnodeIDMap.put(idx, node.getRootGraphIndex());\n \n \t\t\t\t// gml_id2order.put(Integer.parseInt(curNode.getId()), idx);\n \n \t\t\t\tgml_id2order.put(curNode.getId(), Integer.toString(idx));\n \n \t\t\t\t// ((KeyValue) node_root_index_pairs.get(idx)).value = (new\n \t\t\t\t// Integer(\n \t\t\t\t// node.getRootGraphIndex()));\n \t\t\t} else {\n \t\t\t\tthrow new XGMMLException(\"XGMML id \" + nodes.get(idx)\n \t\t\t\t\t\t+ \" has a duplicated label: \" + label);\n \t\t\t\t// ((KeyValue)node_root_index_pairs.get(idx)).value = null;\n \t\t\t}\n \t\t}\n \t\tnodeNameSet = null;\n \n \t\t// Extract edges\n \t\tginy_edges = new IntArrayList(edges.size());\n \t\tSet edgeNameSet = new HashSet(edges.size());\n \n \t\tfinal CyAttributes edgeAttributes = Cytoscape.getEdgeAttributes();\n \n \t\t// Add All Edges to Network\n \t\tfor (int idx = 0; idx < edges.size(); idx++) {\n \n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(percentUtil.getGlobalPercent(2,\n \t\t\t\t\t\tidx, edges.size()));\n \t\t\t}\n \t\t\tfinal cytoscape.generated2.Edge curEdge = (cytoscape.generated2.Edge) edges\n \t\t\t\t\t.get(idx);\n \n \t\t\tif (gml_id2order.containsKey(curEdge.getSource())\n \t\t\t\t\t&& gml_id2order.containsKey(curEdge.getTarget())) {\n \n \t\t\t\tString edgeName = curEdge.getLabel();\n \n \t\t\t\tif (edgeName == null) {\n \t\t\t\t\tedgeName = \"N/A\";\n \t\t\t\t}\n \n \t\t\t\tint duplicate_count = 1;\n \t\t\t\twhile (!edgeNameSet.add(edgeName)) {\n \t\t\t\t\tedgeName = edgeName + \"_\" + duplicate_count;\n \t\t\t\t\tduplicate_count += 1;\n \t\t\t\t}\n \n \t\t\t\tEdge edge = Cytoscape.getRootGraph().getEdge(edgeName);\n \n \t\t\t\tif (edge == null) {\n \n \t\t\t\t\tfinal String sourceName = (String) nodeMap.get(curEdge\n \t\t\t\t\t\t\t.getSource());\n \t\t\t\t\tfinal String targetName = (String) nodeMap.get(curEdge\n \t\t\t\t\t\t\t.getTarget());\n \n \t\t\t\t\tfinal Node node_1 = Cytoscape.getRootGraph().getNode(\n \t\t\t\t\t\t\tsourceName);\n \t\t\t\t\tfinal Node node_2 = Cytoscape.getRootGraph().getNode(\n \t\t\t\t\t\t\ttargetName);\n \n \t\t\t\t\tfinal Iterator it = curEdge.getAtt().iterator();\n \t\t\t\t\tAtt interaction = null;\n \t\t\t\t\tString itrValue = \"unknown\";\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tinteraction = (Att) it.next();\n \t\t\t\t\t\tif (interaction.getName().equals(\"interaction\")) {\n \t\t\t\t\t\t\titrValue = interaction.getValue();\n \t\t\t\t\t\t\tif (itrValue == null) {\n \t\t\t\t\t\t\t\titrValue = \"unknown\";\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tedge = Cytoscape.getCyEdge(node_1, node_2,\n \t\t\t\t\t\t\tSemantics.INTERACTION, itrValue, true);\n \n \t\t\t\t\t// Add interaction to CyAttributes\n \t\t\t\t\tedgeAttributes.setAttribute(edge.getIdentifier(),\n \t\t\t\t\t\t\tSemantics.INTERACTION, itrValue);\n \t\t\t\t}\n \n \t\t\t\t// Set correct ID, canonical name and interaction name\n \t\t\t\tedge.setIdentifier(edgeName);\n \n \t\t\t\treadAttributes(edgeName, curEdge.getAtt(), EDGE);\n \n \t\t\t\tginy_edges.add(edge.getRootGraphIndex());\n \t\t\t\t// ((KeyValue) edge_root_index_pairs.get(idx)).value = (new\n \t\t\t\t// Integer(\n \t\t\t\t// edge.getRootGraphIndex()));\n \t\t\t} else {\n \t\t\t\tthrow new XGMMLException(\n \t\t\t\t\t\t\"Non-existant source/target node for edge with gml (source,target): \"\n \t\t\t\t\t\t\t\t+ nodeMap.get(curEdge.getSource()) + \",\"\n \t\t\t\t\t\t\t\t+ nodeMap.get(curEdge.getTarget()));\n \t\t\t}\n \t\t}\n \t\tedgeNameSet = null;\n \n \t\tif (metanodeMap.size() != 0) {\n \t\t\tfinal Iterator it = metanodeMap.keySet().iterator();\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tfinal String key = (String) it.next();\n \t\t\t\tcreateMetaNode(key, (List) metanodeMap.get(key));\n \t\t\t}\n \t\t}\n \t}",
"public Graphs() {\n graph = new HashMap<>();\n }",
"public Graph<Integer> getGraph() {\n return E;\n }",
"public GraphInfo(){}",
"@Override\r\n public Collection<node_data> getV() {\r\n return this.graph.values();\r\n }",
"public Graph getGraph() throws MapException {\n\n\t\t// checks if the graph exists\n\t\tif (BusLines == null) {\n\t\t\tthrow new MapException(\"The graph is not defined.\");\n\t\t}\n\n\t\treturn BusLines;\n\t}",
"private void getGraph (ActionEvent evt) {\n\t\t\t//TODO\n\t}",
"@Override\r\n\tpublic Graph getGrph() {\n\t\tList<Routes> routeList = storeRouteRepos();\r\n\t\tGraph.Edge[] GRAPH = new Graph.Edge[routeList.size()];\r\n\t\tRoutes route = new Routes();\r\n\r\n\t\tfor (int i = 0; i <= routeList.size() - 1; i++) {\r\n\t\t\troute = routeList.get(i);\r\n\t\t\tif ((route.getPlanetOrigin() != null) && (route.getPlanetDestination() != null)) {\r\n\t\t\t\tGRAPH[i] = new Graph.Edge(route.getPlanetOrigin(), route.getPlanetDestination(), route.getDistance());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tGraph g = new Graph(GRAPH);\r\n\t\t// g.dijkstra(START);\r\n\t\treturn g;\r\n\r\n\t}",
"public Graph getGraph() throws MapException{\n\t\t// check to make sure the graph exist\n\t\tif (this.graph == null){\n\t\t\tthrow new MapException(\"No graph is defined.\");\n\t\t}\n\t\t// return graph if it exists\n\t\treturn this.graph;\n\t}",
"@Override\n\tpublic directed_weighted_graph getGraph() {\n\t\treturn dwg;\n\t}",
"void readGraphFromFile();",
"public LabeledUndirectedGraph<N, E> getGraph() {\n return graph;\n }",
"public LabeledUndirectedGraph<N, E> getGraph() {\n return graph;\n }",
"private static int[][] graph(){\n int[][] graph = new int[6][6];\n graph[0][1] = 7;\n graph[1][0] = 7;\n\n graph[0][2] = 2;\n graph[2][0] = 2;\n\n graph[1][2] = 3;\n graph[2][1] = 3;\n\n graph[1][3] = 4;\n graph[3][1] = 4;\n\n graph[2][3] = 8;\n graph[3][2] = 8;\n\n graph[4][2] = 1;\n graph[2][4] = 1;\n\n graph[3][5] = 5;\n graph[5][3] = 5;\n\n graph[4][5] = 3;\n graph[5][4] = 3;\n return graph;\n }",
"public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }",
"public Matrix getGraphMatrix(){\n\t\treturn graphMatrix;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tprivate DirectedGraph getGraph() {\n\n\t\tNode node1, node2, node3, node4, node5;\n\t\tEdge edge1, edge2, edge3, edge4;\n\n\t\tNodeList nodes = new NodeList();\n\t\tEdgeList edges = new EdgeList();\n\n\t\t// create Node\n\t\tnode1 = new Node(\"Node1\");\n\t\tnodes.add(node1);\n\t\tnode2 = new Node(\"Node2\");\n\t\tnodes.add(node2);\n\t\tnode3 = new Node(\"Node3\");\n\t\tnodes.add(node3);\n\t\tnode4 = new Node(\"Node4\");\n\t\tnodes.add(node4);\n\t\tnode5 = new Node(\"Node5\");\n\t\tnodes.add(node5);\n\n\t\t// create Edge\n\t\tedge1 = new Edge(node1, node2);\n\t\tedges.add(edge1);\n\t\tedge2 = new Edge(node1, node3);\n\t\tedges.add(edge2);\n\t\tedge3 = new Edge(node2, node4);\n\t\tedges.add(edge3);\n\t\tedge4 = new Edge(node4, node5);\n\t\tedges.add(edge4);\n\n\t\tDirectedGraph graph = new DirectedGraph();\n\t\tgraph.nodes = nodes;\n\t\tgraph.edges = edges;\n\n\t\t// set Layout of the graph (Compute and Set the x,y of each Node)\n\t\tnew DirectedGraphLayout().visit(graph);\n\n\t\treturn graph;\n\t}",
"Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}",
"@Override\n \t\t\t\tpublic String getGraphName() {\n \t\t\t\t\treturn \"http://opendata.cz/data/namedGraph/3\";\n \t\t\t\t}",
"@Override\n public final ObjectGraph getObjectGraph() {\n return mObjectGraph;\n }",
"protected static GraphTraversalSource g() {\n return VertexCacheProvider.get().getFullGraph();\n }",
"public void loadGraph() {\n\t\tJSONArray data = null;\n\n\t\tswitch (mApp.getCurrentGroupBy()) {\n\t\tcase DATE:\n\n\t\t\tdata = DataBaseUtil.fetchEntriesByDateInJSON(mContext, mType.getId());\n\t\t\tbreak;\n\n\t\tcase MAX:\n\n\t\t\tdata = DataBaseUtil.fetchEntriesByMaxInJSON(mContext, mType.getId());\n\t\t\tbreak;\n\n\t\tcase NONE:\n\t\t\tdata = DataBaseUtil.fetchEntriesInJSON(mContext, mType.getId());\n\t\t\tbreak;\n\t\t}\n\t\tloadGraph(data);\n\t}",
"@Override\n \t\t\t\tpublic String getGraphId() {\n \t\t\t\t\treturn null;\n \t\t\t\t}",
"public GraphView getGraphView() {\n return this.graphView;\n }",
"public abstract DependencyGraph getDependencyGraph();",
"public Graphics2D getGraphGraphics() {\r\n \t\t// DEK (Federico Granata) 17-11-2003\r\n \t\treturn (Graphics2D) graph.getGraphics();\r\n \t\t// end 17-11-2003\r\n \t\t// return mainWindow.getGraphics();\r\n \t}",
"public String apGraph() {\n if(root != null){\n root.nameAvl();\n return doBigGraph();\n }else{\n return \"\";\n }\n }",
"public ExportGraph()\n {\n }",
"public Graph() {\r\n\t\tinit();\r\n\t}",
"public GraphModel getGraphModel() {\n return getGraphPane().getGraphModel();\n }",
"public NamedGraphSet getNamedGraphSet() {\n \t\treturn this.graphSet;\n \t}",
"@GET\n\t@Produces(\"application/json\")\n\tpublic Response getGraphNodes() {\n\n\t\tif (currentGraph != null) {\n\t\t\treturn Response.status(200)\n\t\t\t\t\t.entity(currentGraph.getNodes())\n\t\t\t\t\t.build();\n\t\t}else {\n\t\t\treturn Response.status(404)\n\t\t\t\t\t.entity(\"NO ESTA\")\n\t\t\t\t\t.build();\n\t\t}\n\n\t\t\n\t}",
"public Graph() {\r\n\t\tthis.matrix = new Matrix();\r\n\t\tthis.listVertex = new ArrayList<Vertex>();\r\n\t}",
"IGraphEngine graphEngineFactory();",
"public GraphUtil buildGraph() {\n try {\n GraphUtil graphUtilObject = new GraphUtil();\n graphUtilObject.setCountryGraph(gameMap.getCountryHashMap());\n return graphUtilObject;\n }catch(Exception e) {\n return null;\n }\n }",
"Graph(){\n\t\tadjlist = new HashMap<String, Vertex>();\n\t\tvertices = 0;\n\t\tedges = 0;\n\t\tkeys = new ArrayList<String>();\n\t}",
"public abstract String rawGraphToString();",
"private void buildGraph()\n\t{\n\t\taddVerticesToGraph();\n\t\taddLinkesToGraph();\n\t}",
"void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}",
"Graph testGraph();",
"public Object[][] buildNewGraphDataModel() {\r\n\t\t\r\n\t\tresetDataStructures();\r\n\t\tGraph g = UIFacade.getInstance().getGraph();\r\n\t\t\r\n\t\tObject[][] result = new Object[g.getN()][5];\r\n\t\t\r\n\t\tfor (int i = 0; i < g.getN(); i++) {\r\n\t\t\tNode node = g.getNode(i);\r\n\t\t\tComponentProperties cp = node.getProperties();\r\n //\t\t\t ID\r\n\t\t\tresult[i][0] = new Integer(\r\n\t\t\t\t\t((ID)cp.getPropertyByName(\"ID\")).getValue()); \t\t\t\r\n\t\t\tresult[i][1] = new Integer(DEFAULT_CLIENT_DEMAND); // Demand\t\t\t\r\n\t\t\tresult[i][2] = new Double(DEFAULT_CLIENT_TW_BEGIN);\r\n\t\t\tresult[i][3] = new Double(DEFAULT_CLIENT_TW_END);\r\n\t\t\tresult[i][4] = new Double(DEFAULT_CLIENT_TW_SERVICE);\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"public Graph()\r\n\t{\r\n\t\tthis.adjacencyMap = new HashMap<String, HashMap<String,Integer>>();\r\n\t\tthis.dataMap = new HashMap<String,E>();\r\n\t}",
"public void createGraphFromFile() {\n\t\t//如果图未初始化\n\t\tif(graph==null)\n\t\t{\n\t\t\tFileGetter fileGetter= new FileGetter();\n\t\t\ttry(BufferedReader bufferedReader=new BufferedReader(new FileReader(fileGetter.readFileFromClasspath())))\n\t\t\t{\n\t\t\t\tString line = null;\n\t\t\t\twhile((line=bufferedReader.readLine())!=null)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t\t//create the graph from file\n\t\t\t\tgraph = new Graph();\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public interface Graph {\n\n\t/**\n\t * Method to add the edge from start to end to the graph.\n\t * Adding self-loops is not allowed.\n\t * @param start start vertex\n\t * @param end end vertex\n\t */\n\tpublic void addEdge(int start, int end);\n\n\t/**\n\t * Method to add the edge with the given weight to the graph from start to end.\n\t * Adding self-loops is not allowed.\n\t * @param start number of start vertex\n\t * @param end number of end vertex\n\t * @param weight weight of edge\n\t */\n\tpublic void addEdge(int start, int end, double weight);\n\n\t/**\n\t * Method to add a vertex to the graph.\n\t */\n\tpublic void addVertex();\n\t\n\t/**\n\t * Method to add multiple vertices to the graph.\n\t * @param n number of vertices to add\n\t */\n\tpublic void addVertices(int n);\n\n\t/**\n\t * Returns all neighbors of the given vertex v (all vertices i with {i,v} in E or (i,v) or (v,i) in E).\n\t * @param v vertex whose neighbors shall be returned\n\t * @return List of vertices adjacent to v\n\t */\n\tpublic List<Integer> getNeighbors(int v);\n\n\t/**\n\t * Returns a list containing all predecessors of v. In an undirected graph all neighbors are returned.\n\t * @param v vertex id\n\t * @return list containing all predecessors of v\n\t */\n\tpublic List<Integer> getPredecessors(int v);\n\n\t/**\n\t * Returns a list containing all successors v. In an undirected graph all neighbors are returned.\n\t * @param v vertex id\n\t * @return list containing all edges starting in v\n\t */\n\tpublic List<Integer> getSuccessors(int v);\n\n\t/**\n\t * Method to get the number of vertices.\n\t * @return number of vertices\n\t */\n\tpublic int getVertexCount();\n\n\t/**\n\t * Method to get the weight of the edge {start, end} / the arc (start, end).\n\t * @param start start vertex of edge / arc\n\t * @param end end vertex of edge / arc\n\t * @return Double.POSITIVE_INFINITY, if the edge does not exist, c_{start, end} otherwise\n\t */\n\tpublic double getEdgeWeight(int start, int end);\n\n\t/**\n\t * Method to test whether the graph contains the edge {start, end} / the arc (start, end).\n\t * @param start start vertex of the edge\n\t * @param end end vertex of the edge\n\t */\n\tpublic boolean hasEdge(int start, int end);\n\n\t/**\n\t * Method to remove an edge from the graph, defined by the vertices start and end.\n\t * @param start start vertex of the edge\n\t * @param end end vertex of the edge\n\t */\n\tpublic void removeEdge(int start, int end);\n\n\t/**\n\t * Method to remove the last vertex from the graph.\n\t */\n\tpublic void removeVertex();\n\n\t/**\n\t * Returns whether the graph is weighted.\n\t * A graph is weighted if an edge with weight different from 1.0 has been added to the graph.\n\t * @return true if the graph is weighted\n\t */\n\tpublic boolean isWeighted();\n\n\t/**\n\t * Returns whether the graph is directed.\n\t * @return true if the graph is directed\n\t */\n\tpublic boolean isDirected();\n\n}",
"public Graph() {\n\t\ttowns = new HashSet<Town>();\n\t\troads = new HashSet<Road>();\n\t\tprevVertex = new HashMap<String, Town>();\n\t}",
"void createGraphForMassiveLoad();",
"public Graph getGraph4SingleCores(String nodeId, CustRelationshipMapper custRelationshipMapper, CustPropertyMapper custPropertyMapper) throws CustomException {\n if (StringUtils.isBlank(nodeId)) {\n throw new CustomException(\"[nodeId] is blank null or ' '\");\n }\n\n List<CustRelationship> oneDepthRels = custRelationshipMapper.selectAll1DRelByCertNo(nodeId);\n\n //Map<String, Object> graph = new HashMap<>();\n Graph graph = new Graph();\n if (oneDepthRels.size() == 0) {\n log.info(\"当前1度范围内[边]等于0, 将返回null\");\n graph = new Graph(null, null, StatusCode.NO_MATCHES);\n return graph;\n }\n\n\n\n //仅一度边\n Map<String, Edge> oneDepthEdges = new HashMap<>();\n //一度节点, 含中心\n Map<String, Node> oneDepthNodes = new HashMap<>();\n\n Node core = new Node();\n core.setId(nodeId);\n core.setDepth(0);\n //core 并入 onetDepthNodes\n oneDepthNodes.put(core.getId(), core);\n\n //遍历一度边, 封装数据\n gatherNodeEdge(oneDepthRels, oneDepthEdges, oneDepthNodes,1);\n\n Set<String> oneDepthNodesKeySet = oneDepthNodes.keySet();\n\n //判断一度节点个数, 小于阈值才会继续查询二度边\n if (oneDepthNodes.size() > MAX_DISPLAY_NODES_1D) {\n log.info(\"当前一度范围内[节点]个数大于[{}], 将仅返回一度节点和边数据\", MAX_DISPLAY_NODES_1D);\n\n\n List<CustProperty> custProperties = custPropertyMapper.selectByCertNos(oneDepthNodesKeySet);\n\n //封装点属性\n dumpCustPropertyData(oneDepthNodes, custProperties, 1);\n\n graph.setNodes(oneDepthNodes);\n graph.setEdges(oneDepthEdges);\n return graph;\n }\n\n\n // -- 一度范围节点数量在范围之内, 则获取所有二度边 --\n\n //装所有节点\n HashMap<String, Node> nodes = (HashMap<String, Node>) ((HashMap<String, Node>) oneDepthNodes).clone();\n //装所有的边\n HashMap<String, Edge> edges = (HashMap<String, Edge>) ((HashMap<String, Edge>) oneDepthEdges).clone();\n\n List<CustRelationship> allRel = custRelationshipMapper.selectRelByGivenCertNos(oneDepthNodesKeySet);\n if (allRel.size() > MAX_DISPLAY_EDGES) {\n log.info(\"当前二度范围内[边]总数大于[{}], 仅返回一度节点和边数据\", MAX_DISPLAY_EDGES);\n graph.setNodes(oneDepthNodes);\n graph.setEdges(oneDepthEdges);\n return graph;\n }\n\n // -- 二度范围边在范围之内, 则加工边数据集 --\n\n gatherNodeEdge(allRel, edges, nodes,2);\n /* ABANDON: 抽取\n for (CustRelationship rel : allRel) {\n //Note: oneDepthEdges中已有的, 不用再封装了, 没有的, 创建, 封装, 存入edges中, 且depth==2\n if (oneDepthEdges.get(rel.getId()) == null) {\n Edge edge = new Edge(rel.getId(), rel.getuCertNo(), rel.getvCertNo(), rel.getContent(), rel.getContentType(), rel.getRelationType());\n //新建的边, 说明depth==2\n edge.setDepth(2);\n //存入edges\n edges.put(String.valueOf(edge.getId()), edge);\n }\n\n //遇到新节点, 则存入nodes中, 且深度为2 !注意别存错了!\n gatherNodes(nodes, rel, 2);\n }\n */\n\n //查询所有属性: 核, 一度, 二度\n Set<String> allCertNos = nodes.keySet(); //获取所有身份证号, 查取属性数据\n List<CustProperty> custProperties = custPropertyMapper.selectByCertNos(allCertNos);\n\n //封装属性数据\n dumpCustPropertyData(nodes, custProperties, 2);\n\n //判断节点数目\n if (nodes.size() > MAX_DISPLAY_NODES_2D) {\n //0,1,2度节点之和超过阈值, 则只返回一度节点和边\n log.info(\"当前二度范围内[节点]总数大于[{}], 仅返回一度节点和边数据\", MAX_DISPLAY_NODES_2D);\n\n graph.setNodes(oneDepthNodes);\n graph.setEdges(oneDepthEdges);\n } else {\n //没有超限, 则返回1,2度全部\n log.info(\"返回全部二度范围内节点和边数据\");\n graph.setNodes(nodes);\n graph.setEdges(edges);\n }\n\n\n return graph;\n }",
"public interface Graph {\n\n /** @return The number of vertices in the graph. */\n int getNumVertices();\n\n /** @return The number of edges in the graph. */\n int getNumEdges();\n\n /** @return A read-only set of all the vertices in the graph. */\n Set<Vertex> getVertices();\n\n /** @return A read-only set of all edges (directed or undirected) in the graph. */\n Set<Edge> getEdges();\n\n /** Removes all vertices and edges from the graph. */\n void clear();\n\n /** Adds a vertex to this graph. */\n void add(Vertex vertex);\n\n /** Adds an edge to the graph. */\n void add(Edge edge);\n\n /** Adds all the vertices and edges in another graph to this graph. */\n void addAll(Graph graph);\n\n /** Removes vertex from the graph and any edges attached to it. */\n void remove(Vertex vertex);\n\n /** Removes an existing edge from the graph. */\n void remove(Edge edge);\n\n /** Checks if the graph contains a given vertex. */\n boolean contains(Vertex vertex);\n\n /** Checks if the graph contains a given edge. */\n boolean contains(Edge edge);\n\n /** @return An unmodifiable set of all directed edges entering vertex. */\n Set<Edge> getInEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all directed edges coming out of vertex. */\n Set<Edge> getOutEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all undirected edges connected to vertex. */\n Set<Edge> getUndirectedEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all edges (directed and undirected) connected to vertex. */\n Set<Edge> getMixedEdges(Vertex vertex);\n\n /** @return The number of undirected edges connected to vertex. */\n int getUndirectedDegree(Vertex vertex);\n\n /** @return The number of directed edges coming into vertex. */\n int getInDegree(Vertex vertex);\n\n /** @return The number of directed edges coming out of vertex. */\n int getOutDegree(Vertex vertex);\n\n /**\n * @return The number of directed and undirected edges connected to this vertex. Equivalent to\n * inDegree + outDegree + undirectedDegree.\n */\n int getMixedDegree(Vertex vertex);\n\n /** Registers a listener for changes in the graph model. */\n void addListener(GraphListener listener);\n\n /** Unregisters a listener for changes in the graph model. */\n void removeListener(GraphListener listener);\n\n /** @return Attributes that apply to the entire graph. */\n Attributes getAttributes();\n\n /** Creates a new vertex, adds it to the graph, and returns a reference to it. */\n Vertex createVertex();\n\n /** Creates a new edge, adds it to the graph, and returns a reference to it. */\n Edge createEdge(Vertex src, Vertex tgt, boolean directed);\n}",
"public Graph createGraph() {\n String fileName;\n// fileName =\"./428333.edges\";\n String line;\n Graph g = new Graph();\n// List<String> vertexNames = new ArrayList<>();\n// try\n// {\n// BufferedReader in=new BufferedReader(new FileReader(fileName));\n// line=in.readLine();\n// while (line!=null) {\n////\t\t\t\tSystem.out.println(line);\n// String src = line.split(\" \")[0];\n// String dst = line.split(\" \")[1];\n//// vertexNames.add(src);\n//// vertexNames.add(dst);\n//// System.out.println(src+\" \"+dst);\n// g.addEdge(src, dst, 1);\n// line=in.readLine();\n// }\n// in.close();\n// } catch (Exception e) {\n//\t\t\te.printStackTrace();\n// }\n\n fileName=\"./788813.edges\";\n// List<String> vertexNames = new ArrayList<>();\n try\n {\n BufferedReader in=new BufferedReader(new FileReader(fileName));\n line=in.readLine();\n while (line!=null) {\n//\t\t\t\tSystem.out.println(line);\n String src = line.split(\" \")[0];\n String dst = line.split(\" \")[1];\n g.addEdge(src, dst, 1);\n line=in.readLine();\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n// Graph g = new Graph(new String[]{\"v0\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\", \"v7\", \"v8\"});\n// // Add the required edges.\n// g.addEdge(\"v0\", \"v1\", 4); g.addEdge(\"v0\", \"v7\", 8);\n// g.addEdge(\"v1\", \"v2\", 8); g.addEdge(\"v1\", \"v7\", 11); g.addEdge(\"v2\", \"v1\", 8);\n// g.addEdge(\"v2\", \"v8\", 2); g.addEdge(\"v2\", \"v5\", 4); g.addEdge(\"v2\", \"v3\", 7);\n// g.addEdge(\"v3\", \"v2\", 7); g.addEdge(\"v3\", \"v5\", 14); g.addEdge(\"v3\", \"v4\", 9);\n// g.addEdge(\"v4\", \"v3\", 9); g.addEdge(\"v4\", \"v5\", 10);\n// g.addEdge(\"v5\", \"v4\", 10); g.addEdge(\"v5\", \"v3\", 9); g.addEdge(\"v5\", \"v2\", 4);\n// g.addEdge(\"v5\", \"v6\", 2);\n// g.addEdge(\"v6\", \"v7\", 1); g.addEdge(\"v6\", \"v8\", 6); g.addEdge(\"v6\", \"v5\", 2);\n// g.addEdge(\"v7\", \"v0\", 8); g.addEdge(\"v7\", \"v8\", 7); g.addEdge(\"v7\", \"v1\", 11);\n// g.addEdge(\"v7\", \"v6\", 1);\n// g.addEdge(\"v8\", \"v2\", 2); g.addEdge(\"v8\", \"v7\", 7); g.addEdge(\"v8\", \"v6\", 6);\n\n//\n return g;\n }",
"@Override\n default LG getGraph(final GradoopId graphID) {\n // filter vertices and edges based on given graph id\n DataSet<G> graphHead = getGraphHeads()\n .filter(new BySameId<>(graphID));\n DataSet<V> vertices = getVertices()\n .filter(new InGraph<>(graphID));\n DataSet<E> edges = getEdges()\n .filter(new InGraph<>(graphID));\n\n return getGraphFactory().fromDataSets(graphHead, vertices, edges);\n }",
"public Graph loadFile(){\r\n String path = \"\";\r\n JFileChooser choix = new JFileChooser();\r\n choix.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only xml files\", \"xml\");\r\n choix.addChoosableFileFilter(filter);\r\n if (choix.showOpenDialog(null) == JFileChooser.APPROVE_OPTION){\r\n path = choix.getSelectedFile().getAbsolutePath();\r\n }\r\n Graph g = new Graph();\r\n boolean quit = false;\r\n int max = 0;\r\n try{\r\n BufferedReader br = new BufferedReader(new FileReader(path));\r\n do {\r\n String line = br.readLine();\r\n if (line.indexOf(\"<node\") != -1){\r\n String[] node_xml = line.split(\"\\\"\");\r\n Node node = new Node(Integer.parseInt(node_xml[1]),(int)Double.parseDouble(node_xml[3]),(int)Double.parseDouble(node_xml[5]),TypeNode.valueOf(node_xml[7]));\r\n max = Math.max(max, node.getId());\r\n if (node.getType() == TypeNode.INCENDIE){\r\n node.kindleFire((int)Double.parseDouble(node_xml[9]));\r\n }\r\n g.getListNodes().add(node);\r\n }\r\n if (line.indexOf(\"<edge\") != -1){\r\n String[] edge_xml = line.split(\"\\\"\");\r\n Edge edge = new Edge(findNode(g,Integer.parseInt(edge_xml[1])),findNode(g,Integer.parseInt(edge_xml[3])),TypeEdge.valueOf(edge_xml[5]));\r\n g.getListEdges().add(edge);\r\n }\r\n if (line.startsWith(\"</osm>\")){\r\n quit = true;\r\n } \r\n Node.setNb_node(max+1);\r\n } while (!quit);\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"File not found : \"+e.getMessage());\r\n } catch (IOException e) {\r\n System.out.println(\"Listening file error : \"+e.getMessage());\r\n }\r\n return g;\r\n }",
"public OrientGraph getGraphTx();",
"void createGraphForDistributedSingleLoad();",
"public static void main(String[] args) {\n\n Graph myGraph = new Graph();\n myGraph.addNode(\"8\");\n myGraph.addNode(\"1\");\n myGraph.addNode(\"2\");\n myGraph.addNode(\"9\");\n myGraph.addNode(\"7\");\n myGraph.addNode(\"5\");\n myGraph.addEdge(\"8\" , \"1\" , 50);\n myGraph.addEdge(\"5\" , \"1\" , 70);\n myGraph.addEdge(\"7\" , \"5\", 20);\n myGraph.addEdge(\"8\" , \"9\", 100);\n myGraph.addEdge(\"8\" , \"2\", 40);\n String[] trip = {\"8\" , \"1\" , \"5\"};\n String[] trip2 = {\"8\" , \"5\"};\n String[] trip3 = {\"8\" , \"1\" , \"5\" , \"7\" , \"5\" , \"1\" , \"8\" , \"9\"};\n String[] trip4 = {\"8\" , \"9\" , \"5\" };\n String[] trip5 = {\"8\"};\n String[] trip6 = {\"8\" , \"2\"};\n// System.out.println(myGraph);\n// System.out.println(myGraph.getNodes());\n// System.out.println(myGraph.getNeighbors(\"8\"));\n// System.out.println(myGraph.getNeighbors(\"7\"));\n// System.out.println(myGraph.getNeighbors(\"5\"));\n// System.out.println(myGraph.size());\n// System.out.println(myGraph.breadthFirst(\"8\"));\n// System.out.println(myGraph.weightList);\n// System.out.println(myGraph.breadthFirst(\"7\"));\n// System.out.println(myGraph.breadthFirst(\"5\"));\n// System.out.println(myGraph.businessTrip(\"8\",trip));\n// System.out.println(myGraph.businessTrip(\"8\",trip2));\n// System.out.println(myGraph.businessTrip(\"8\",trip3));\n// System.out.println(myGraph.businessTrip(\"8\",trip4));\n// System.out.println(myGraph.businessTrip(\"8\",trip5));\n// System.out.println(myGraph.businessTrip(\"8\",trip6));\n System.out.println(myGraph.depthFirst(\"8\"));\n }",
"protected IWeightedGraph<GraphNode, WeightedEdge> createGraph() {\r\n\t\treturn createGraph(goapUnit.getGoalState());\r\n\t}",
"void printGraph();",
"public Graph()\n\t{\n\t\tthis.total_verts = null;\n\t\tthis.total_edges = null;\n\t\tnodes = new HashMap<String, Node>();\n\t}",
"public Vertex[] createGraph(){\n\t\t /* constructing a graph using matrices\n\t\t * If there is a connection between two adjacent LETTERS, the \n\t * cell will contain a num > 1, otherwise a 0. A value of -1 in the\n\t * cell denotes that the cities are not neighbors.\n\t * \n\t * GRAPH (with weights b/w nodes):\n\t * E+---12-------+B--------18-----+F----2---+C\n\t * +\t\t\t\t+\t\t\t\t +\t\t +\n\t * |\t\t\t\t|\t\t\t\t/\t\t |\n\t * |\t\t\t\t|\t\t\t |\t\t |\n\t * |\t\t\t\t|\t\t\t |\t\t 10\n\t * 24\t\t\t\t8\t\t\t 8\t |\n\t * |\t\t\t\t|\t\t\t |\t\t +\n\t * |\t\t\t\t|\t\t\t | H <+---11---I\n\t * |\t\t\t\t|\t\t\t /\n\t * +\t\t\t\t+\t\t\t +\n\t * G+---12----+A(start)+---10--+D\n\t * \n\t * NOTE: I is the only unidirectional node\n\t */\n\t\t\n\t\tint cols = 9;\n\t\tint rows = 9;\n\t\t//adjacency matrix\n\t\t\t\t //A B C D E F G H I\n\t int graph[][] = { {0,8,0,10,0,0,12,0,0}, //A\n\t {8,0,0,0,12,18,0,0,0}, //B\n\t {0,0,0,0,0,2,0,10,0}, //C\n\t {10,0,0,0,0,8,0,0,0}, //D\n\t {0,12,0,0,0,0,24,0,0}, //E\n\t {0,18,2,8,0,0,0,0,0}, //F\n\t {12,0,0,0,0,0,24,0,0}, //G\n\t {0,0,10,0,0,0,0,0,11}, //H\n\t {0,0,0,0,0,0,0,11,0}}; //I\n\t \n\t //initialize stores vertices\n\t Vertex[] vertices = new Vertex[rows]; \n\n\t //Go through each row and collect all [i,col] >= 1 (neighbors)\n\t int weight = 0; //weight of the neighbor\n\t for (int i = 0; i < rows; i++) {\n\t \tVector<Integer> vec = new Vector<Integer>(rows);\n\t\t\tfor (int j = 0; j < cols; j++) {\n\t\t\t\tif (graph[i][j] >= 1) {\n\t\t\t\t\tvec.add(j);\n\t\t\t\t\tweight = j;\n\t\t\t\t}//is a neighbor\n\t\t\t}\n\t\t\tvertices[i] = new Vertex(Vertex.getVertexName(i), vec);\n\t\t\tvertices[i].state = weight;\n\t\t\tvec = null; // Allow garbage collection\n\t\t}\n\t return vertices;\n\t}",
"@Override\r\n\tpublic void getExternal(){\r\n\t\tnng = new TNZNetworkNodeGraph_IuR();\r\n\t\tnng.setImgName(IMG_FNAME);\r\n\t\tnng.populate();\r\n\t\tnng.display();\r\n\t}",
"private void graphInfo() {\n \n this.distances = new double[this.cities.size()][this.cities.size()];\n \n City c1, c2;\n \n // take the city\n for (int i = 0; i < this.cities.size(); i++) {\n // go through all the other cities\n c1 = this.cities.get(i);\n for (int j = 0; j < this.cities.size(); j++) {\n c2 = this.cities.get(j);\n this.distances[i][j] = c1.to(c2);\n }\n }\n \n }",
"@Override public JPanel getGraphicalView() {\n return getBrowser().getDrbdGraph().getGraphPanel();\n }",
"public HashMap<Intersection,LinkedList<Segment>> createGraph() {\n for (Intersection inter : intersectionList) {\n LinkedList<Segment> interSegments = new LinkedList<>();\n Long intersectionID = inter.getId();\n for (Segment segment : segmentList) {\n Long segmentOriginId = segment.getOrigin().getId();\n if (segmentOriginId.equals(intersectionID)) {\n interSegments.add(segment);\n }\n }\n graphe.put(inter, interSegments);\n }\n return graphe;\n }",
"@RequestMapping(\"/graph\")\n public Map<String, Object> graph(@RequestParam(value = \"limit\",required = false) Integer limit) {\n return Collections.emptyMap();\n }",
"public void testaGraph() {\n\t\tEstacaoDAO a = new EstacaoDAO();\n\t\ta.carregarEstacoes();\n\t\tLinha b = new Linha(\"a\");\n\t\tb.loadAllStations(a);\n\t\tb.shortestPath(a,\"Curado\",\"Recife\");\n\t}",
"public Graph(){\n\t\tthis.sizeE = 0;\n\t\tthis.sizeV = 0;\n\t}",
"public Graph() {\n }",
"public void getTibbrGraph(){\n \n \t\tif (!fDataFileExists()) \n \t\t{\n \t\t\tGetGraphDataFromTibbr tibbr = new GetGraphDataFromTibbr(this.tibbr_url, this.tibbr_usr, this.tibbr_pwd);\n \t\t\ttry {\n \t\t\t\ttibbr.loginUser();\t\n \t\t\t\ttibbr.getTibbrUserData();\n \t\t\t\tthis.users = tibbr.myUsers;\n \t\t\t\tdumpUsersToFile(this.filename);\n \n \t\t\t} catch (Exception e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}",
"public interface DirectedGraph {\n\n /**\n * Set a graph label\n * @param label a graph label\n */\n void setGraphLabel(String label);\n\n /**\n * @return the graph label\n */\n String getGraphLabel();\n\n /**\n * Add a node in graph\n * @param node\n * @throws IllegalArgumentException if node is negative\n */\n void addNode(int node);\n\n /**\n * Associating metadata to node\n * @param node the node id\n * @param key the metadata key\n * @param value the metadata value\n */\n void addNodeMetadata(int node, String key, String value);\n\n /**\n * Get the value of the metadata associated with the given node\n * @param node the node to get metadata for\n * @param key the metadata key\n * @return the value or null if not found\n */\n String getNodeMetadataValue(int node, String key);\n\n /**\n * @return the node given the label or -1 if not found\n */\n int getNodeFromMetadata(String metadata);\n\n /**\n * Add an edge in graph from tail to head and return its index\n * @param tail predecessor node\n * @param head successor node\n * @return the edge id or -1 if already exists\n */\n int addEdge(int tail, int head);\n\n /**\n * Set an edge label\n * @param edge a edge id\n * @param label a node label\n */\n void setEdgeLabel(int edge, String label);\n\n /**\n * @return the edge label\n */\n String getEdgeLabel(int edge);\n\n /**\n * @return an array of graph nodes\n */\n int[] getNodes();\n\n /**\n * @return an array of graph edges\n */\n int[] getEdges();\n\n /**\n * @return the edge id from end points or -1 if not found\n */\n int getEdge(int tail, int head);\n\n /**\n * Get the incoming and outcoming edges for the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getEdgesIncidentTo(int... nodes);\n\n /**\n * Get the incoming edges to the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getInEdges(int... nodes);\n\n /**\n * Get the outcoming edges from the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getOutEdges(int... nodes);\n\n /**\n * @return the tail node of the given edge or -1 if not found\n */\n int getTailNode(int edge);\n\n /**\n * @return the head node of the given edge or -1 if not found\n */\n int getHeadNode(int edge);\n\n /**\n * @return true if node belongs to graph else false\n */\n boolean containsNode(int node);\n\n /**\n * @return true if edge belongs to graph else false\n */\n boolean containsEdge(int edge);\n\n /**\n * @return true if tail -> head edge belongs to graph else false\n */\n boolean containsEdge(int tail, int head);\n\n /**\n * @return ancestors of the given node\n */\n int[] getAncestors(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node, int maxDepth);\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n boolean isAncestorOf(int queryAncestor, int queryDescendant);\n\n /**\n * @return the predecessors of the given node\n */\n int[] getPredecessors(int node);\n\n /**\n * @return the successors of the given node\n */\n int[] getSuccessors(int node);\n\n /**\n * @return the number of head ends adjacent to the given node\n */\n int getInDegree(int node);\n\n /**\n * @return the number of tail ends adjacent to the given node\n */\n int getOutDegree(int node);\n\n /**\n * @return the sources (indegree = 0) of the graph\n */\n int[] getSources();\n\n /**\n * @return the sinks (outdegree = 0) of the graph\n */\n int[] getSinks();\n\n /**\n * @return the subgraph of this graph composed of given nodes\n */\n DirectedGraph calcSubgraph(int... nodes);\n\n /**\n * @return the total number of graph nodes\n */\n default int countNodes() {\n\n return getNodes().length;\n }\n\n /**\n * @return the total number of graph edges\n */\n default int countEdges() {\n\n return getEdges().length;\n }\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n default boolean isDescendantOf(int queryDescendant, int queryAncestor) {\n\n return isAncestorOf(queryAncestor, queryDescendant);\n }\n\n default boolean isSource(int node) {\n return getInDegree(node) == 0 && getOutDegree(node) > 0;\n }\n\n default boolean isSink(int node) {\n return getInDegree(node) > 0 && getOutDegree(node) == 0;\n }\n\n /**\n * The height of a rooted tree is the length of the longest downward path to a leaf from the root.\n *\n * @return the longest path from the root or -1 if it is not a tree\n */\n default int calcHeight() throws NotATreeException {\n\n int[] roots = getSources();\n\n if (roots.length == 0) {\n throw new NotATreeException();\n }\n\n class WrappedCalcLongestPath {\n private int calcLongestPath(int node, TIntList path) throws CycleDetectedException {\n\n if (!containsNode(node)) {\n throw new IllegalArgumentException(\"node \"+ node + \" was not found\");\n }\n\n if (isSink(node)) {\n return path.size()-1;\n }\n\n TIntList lengths = new TIntArrayList();\n for (int edge : getOutEdges(node)) {\n\n int nextNode = getHeadNode(edge);\n\n TIntList newPath = new TIntArrayList(path);\n newPath.add(nextNode);\n\n if (path.contains(nextNode)) {\n throw new CycleDetectedException(newPath);\n }\n\n lengths.add(calcLongestPath(nextNode, newPath));\n }\n\n return lengths.max();\n }\n }\n\n // it is ok if there are multiple roots (see example of enzyme-classification-cv where it misses the root that\n // connect children EC 1.-.-.-, EC 2.-.-.-, ..., EC 6.-.-.-)\n /*if (roots.length > 1) {\n throw new NotATreeMultipleRootsException(roots);\n }*/\n\n return new WrappedCalcLongestPath().calcLongestPath(roots[0], new TIntArrayList(new int[] {roots[0]}));\n }\n\n class NotATreeException extends Exception {\n\n public NotATreeException() {\n\n super(\"not a tree\");\n }\n }\n\n class NotATreeMultipleRootsException extends NotATreeException {\n\n private final int[] roots;\n\n public NotATreeMultipleRootsException(int[] roots) {\n\n super();\n this.roots = roots;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", roots=\" + Arrays.toString(this.roots);\n }\n }\n\n class CycleDetectedException extends NotATreeException {\n\n private final TIntList path;\n\n public CycleDetectedException(TIntList path) {\n\n super();\n\n this.path = path;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", path=\" + this.path;\n }\n }\n}",
"ArrayList<Node> DFSIter( Graph graph, final Node start, final Node end)\n {\n boolean visited[] = new boolean[graph.numNodes];\n Stack<Node> stack = new Stack<Node>();\n Map< Node,Node> parentPath = new HashMap< Node,Node>(); \n stack.push(start);\n\n while ( !stack.isEmpty() )\n {\n Node currNode = stack.pop();\n // end loop when goal node is found\n if ( currNode == end )\n break;\n // If node has already been visited, skip it\n if ( visited[currNode.id] )\n continue;\n else\n {\n visited[currNode.id] = true;\n int numEdges = currNode.connectedNodes.size();\n\n for ( int i = 0; i < numEdges; i++ )\n {\n Node edgeNode = currNode.connectedNodes.get(i);\n if ( !visited[edgeNode.id] )\n {\n stack.push( edgeNode );\n parentPath.put( edgeNode, currNode);\n }\n }\n \n }\n }\n\n ArrayList<Node> path = new ArrayList<Node>();\n Node currNode = end;\n while ( currNode != null )\n {\n path.add(0, currNode);\n currNode = parentPath.get(currNode);\n }\n\n return path;\n }",
"public Map<String, ? extends IGraph> getGraphMap() {\n\n return Collections.unmodifiableMap(graphMap);\n }",
"public void buildGraph() {\n //System.err.println(\"Build Graph \"+this);\n if (node instanceof eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)\n ((eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)node).restoreSceneGraphObjectReferences( control.getSymbolTable() );\n }",
"private ArrayList<Edge>getFullyConnectedGraph(){\n\t\tArrayList<Edge> edges = new ArrayList<>();\n\t\tfor(int i=0;i<nodes.size();i++){\n\t\t\tfor(int j=i+1;j<nodes.size();j++){\n\t\t\t\tEdge edge = new Edge(nodes.get(i), nodes.get(j),Utils.distance(nodes.get(i), nodes.get(j)));\n\t\t\t\tedges.add(edge);\n\t\t\t}\n\t\t}\n\t\treturn edges;\n\t}"
] | [
"0.83648586",
"0.77198213",
"0.7700829",
"0.75268734",
"0.7476194",
"0.73836154",
"0.73490924",
"0.73268193",
"0.7249127",
"0.72162807",
"0.7168627",
"0.71456784",
"0.714078",
"0.7136925",
"0.7098937",
"0.70934206",
"0.7017096",
"0.69850737",
"0.6974522",
"0.69349635",
"0.6884179",
"0.6851477",
"0.68121475",
"0.68068874",
"0.68055403",
"0.679528",
"0.67850024",
"0.6779121",
"0.67175245",
"0.66991746",
"0.6681356",
"0.66807693",
"0.6627685",
"0.6625598",
"0.66255414",
"0.658227",
"0.6540244",
"0.65392554",
"0.6516712",
"0.650971",
"0.650971",
"0.65053266",
"0.65045035",
"0.6504445",
"0.6495489",
"0.64818525",
"0.6475392",
"0.6460081",
"0.6452829",
"0.64458966",
"0.64338785",
"0.64337826",
"0.64169127",
"0.64078337",
"0.6397202",
"0.6348414",
"0.634531",
"0.63380075",
"0.6336044",
"0.63291067",
"0.63282526",
"0.63206136",
"0.63032496",
"0.62939674",
"0.6279374",
"0.6277329",
"0.6264102",
"0.62620825",
"0.62472326",
"0.62456685",
"0.6243158",
"0.6234179",
"0.6227212",
"0.6212315",
"0.6202596",
"0.62013835",
"0.62009674",
"0.6193244",
"0.6192683",
"0.618587",
"0.61844814",
"0.617529",
"0.6172105",
"0.61711574",
"0.6168392",
"0.61662203",
"0.61480147",
"0.61212057",
"0.61197895",
"0.61134833",
"0.6111611",
"0.6106633",
"0.6105803",
"0.6088068",
"0.60844785",
"0.6083257",
"0.6082969",
"0.6057649",
"0.60498667",
"0.60376465"
] | 0.7940244 | 1 |
Set the submit URI | public void setSubmit(String submit) {
this.submit = submit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRequestURI(URI requestURI);",
"java.lang.String getFormUri();",
"@Override\n\tpublic void setSubmitArgs(String submitArgs) {\n\t\tmodel.setSubmitArgs(submitArgs);\n\t}",
"public void setFormUri(Uri formUri) {\r\n mFormUri = formUri;\r\n }",
"public void setReqUri(java.lang.String value) {\n this.req_uri = value;\n }",
"public io.confluent.developer.InterceptTest.Builder setReqUri(java.lang.String value) {\n validate(fields()[4], value);\n this.req_uri = value;\n fieldSetFlags()[4] = true;\n return this;\n }",
"void setClickURL(java.lang.String clickURL);",
"public String getPostURI() {\n return host + postResource;\n }",
"T setUrlTarget(String urlTarget);",
"public void setRequestUri(String requestUri){\n this.requestUri = requestUri;\n }",
"public void setUri(URI uri)\n {\n this.uri = uri;\n }",
"public void setAuthenticationRequestURI(URI request) {\n log.trace(\"Entering\");\n log.debug(\"Setting auth request redirect to \" + request.toString());\n this.authenticationRequestURI = request;\n log.trace(\"Leaving\");\n }",
"public void setUri(URI uri) {\n this.uri = uri;\n }",
"public void setUri(URI uri) {\n this.uri = uri;\n }",
"public String formURL(){\n String target = feedURL + \"?s=\" + marketInformation.getTickers().stream().reduce( (a, b) -> a + \",\" + b).get();\n // p0 is just the prices ordered the same as the request\n target += \"&f=p0\";\n return target;\n }",
"@Override\n\t\tpublic String getRequestURI() {\n\t\t\treturn null;\n\t\t}",
"public void setUri( final String uri )\r\n {\r\n this.uri = uri;\r\n }",
"String fetchSubmitTarget() {\n return PageFlowContext.getOperationParameters().getProperty(\"submitTarget\");\n }",
"void setLocationURI(URI locationURI);",
"public abstract URI target();",
"public void setURL() {\n\t\tURL = Constant.HOST_KALTURA+\"/api_v3/?service=\"+Constant.SERVICE_KALTURA_LOGIN+\"&action=\"\n\t\t\t\t\t\t+Constant.ACTION_KALTURA_LOGIN+\"&loginId=\"+Constant.USER_KALTURA+\"&password=\"+Constant.PASSWORD_KALTURA+\"&format=\"+Constant.FORMAT_KALTURA;\n\t}",
"public String getRequestURI() {\n return uri;\n }",
"public void setURL(java.lang.CharSequence value) {\n this.URL = value;\n }",
"public void setUri(final URI uri) {\n this.uri = uri;\n }",
"void setBaseUri(String baseUri);",
"public com.autodesk.ws.avro.Call.Builder setTargetObjectUri(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.target_object_uri = value;\n fieldSetFlags()[5] = true;\n return this; \n }",
"public void setUri(java.lang.String uri) {\n this.uri = uri;\n }",
"@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\ttry\n\t\t{\n\t\t\t//Browser.init();\n\t\t\t//Browser.displayURL(mUrl);\n\t\t\tDesktop.getDesktop().browse(new URI(mUrl));\n\n\t\t}\n\t\tcatch (IOException exc)\n\t\t{\n\t\t\texc.printStackTrace();\n\t\t} catch (URISyntaxException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\n\t\n\t}",
"@Override\n public void Submit() {\n }",
"private void setUrisAndLiteralsOnForm(EditConfigurationVTwo editConfiguration, VitroRequest vreq) {\n \tList<String> urisOnForm = new ArrayList<String>();\n \tList<String> literalsOnForm = new ArrayList<String>();\n \t//The URI of the node that defines the concept\n \turisOnForm.add(\"conceptNode\");\n \teditConfiguration.setUrisOnform(urisOnForm);\n \t//In case the user defines a new concept, will add a concept label\n \tliteralsOnForm.add(\"conceptLabel\");\n \teditConfiguration.setLiteralsOnForm(literalsOnForm);\n }",
"public void setUri(String uri) {\n this.uri = uri;\n }",
"public void setUri(String uri) {\n this.uri = uri;\n }",
"public void setUri(String uri) {\n this.uri = uri;\n }",
"public void setTargetObjectUri(java.lang.CharSequence value) {\n this.target_object_uri = value;\n }",
"protected abstract String getJobSubmitUrl(CloseableHttpClient httpClient,\n File bundle) throws IOException, UnsupportedEncodingException;",
"public String getRequestURI ()\n {\n return uri;\n }",
"public void setUri(final String uri) {\r\n\t\tthis.uri = uri;\r\n\t}",
"private void setupSubmitButton() {\n\t\tImageIcon submit_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"submit.png\");\n\t\tJButton submit_button = new JButton(\"\", submit_button_image);\n\t\tsubmit_button.setBorderPainted(false);\n\t\tsubmit_button.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//only enable submitting if festival has finished to avoid delayed voice prompts\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t}\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\tsubmit_button.addMouseListener(new VoxMouseAdapter(submit_button,null));\n\t\tadd(submit_button);\n\t\tsubmit_button.setBounds(32, 598, 177, 100);\n\t}",
"public void setInputUrlValue(String value){\n WebElement urlField = driver.findElement(inputUrlLocator); \n setValue(urlField, value);\n \n }",
"protected abstract String getJobSubmitUrl(JsonObject build)\n throws IOException, UnsupportedEncodingException;",
"public void changeUrl() {\n url();\n }",
"protected void setEditUrl(EditingPolicyHelper policyHelper, ObjectPropertyStatement ops) {\n RequestedAction action = new EditObjPropStmt(ops);\n if ( ! policyHelper.isAuthorizedAction(action) ) {\n return;\n }\n \n if (propertyUri.equals(VitroVocabulary.IND_MAIN_IMAGE)) {\n editUrl = ObjectPropertyTemplateModel.getImageUploadUrl(subjectUri, \"edit\");\n } else {\n ParamMap params = new ParamMap(\n \"subjectUri\", subjectUri,\n \"predicateUri\", propertyUri,\n \"objectUri\", objectUri);\n \n if ( deleteUrl.isEmpty() ) {\n params.put(\"deleteProhibited\", \"prohibited\");\n }\n \n params.putAll(UrlBuilder.getModelParams(vreq));\n \n editUrl = UrlBuilder.getUrl(EDIT_PATH, params);\n } \n }",
"@Override\r\n public URI getRequestUri() {\n return null;\r\n }",
"public void setUri(String uri) {\n\t\tthis.uri = uri;\n\t}",
"public URI getRequestURI();",
"@Override\n\t\tpublic StringBuffer getRequestURL() {\n\t\t\treturn null;\n\t\t}",
"public void setUri(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Uri uri) {\r\n this.uri = uri;\r\n }",
"public void setURL(String url);",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString input=JOptionPane.showInputDialog(websiteListTree,\"请输入网址\",\"编辑项目\",JOptionPane.PLAIN_MESSAGE);\n\t\t\t\tif(input!=null)\n\t\t\t\t{\n\t\t\t\t\tString regex = \"^(http|https|ftp)\\\\://([a-zA-Z0-9\\\\.\\\\-]+(\\\\:[a-zA-\"\n\t\t\t\t\t+ \"Z0-9\\\\.&%\\\\$\\\\-]+)*@)?((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{\"\n\t\t\t\t\t+ \"2}|[1-9]{1}[0-9]{1}|[1-9])\\\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}\"\n\t\t\t\t\t+ \"[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\\\.(25[0-5]|2[0-4][0-9]|\"\n\t\t\t\t\t+ \"[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\\\.(25[0-5]|2[0-\"\n\t\t\t\t\t+ \"4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|([a-zA-Z0\"\n\t\t\t\t\t+ \"-9\\\\-]+\\\\.)*[a-zA-Z0-9\\\\-]+\\\\.[a-zA-Z]{2,4})(\\\\:[0-9]+)?(/\"\n\t\t\t\t\t+ \"[^/][a-zA-Z0-9\\\\.\\\\,\\\\?\\\\'\\\\\\\\/\\\\+&%\\\\$\\\\=~_\\\\-@]*)*$\";\n\t\t\t\t\tboolean flag=input.matches(regex);\n\t\t\t\t\tif(flag)\n\t\t\t\t\t{\n\t\t\t\t\t\tCheckBoxTreeNode node=(CheckBoxTreeNode) path.getLastPathComponent();\n\t\t\t\t\t\t\n\t\t\t\t\t\tlist=mainFrame.configList;\n\t\t\t\t\t\tIterator<Configuration> it=list.iterator();\n\t\t\t\t\t\twhile(it.hasNext()){\n\t\t\t\t\t\t\tif(it.next().getURL().equals((String)node.getUserObject()))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tit.next().setURL(input);\n\t\t\t\t\t\tnode.setUserObject(input);\n\t\t\t\t\t\twebsiteListTree.updateUI();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tImageIcon joptionIcon=new ImageIcon(\"img/info_red.png\");\n\t\t\t\t\t\tJOptionPane.showMessageDialog(websiteListTree,\"请输入正确的网址\",\"输入提示\",JOptionPane.ERROR_MESSAGE,joptionIcon);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n public void setURL(@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n String inURL);",
"@Override\n\tpublic void setSubmitId(String submitId) {\n\t\tmodel.setSubmitId(submitId);\n\t}",
"@Override\n public void setContributionURI(String arg0)\n {\n \n }",
"protected void setSchedule(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) {\n submissionBuilder.setSchedule(submitAction.getNewScheduleId());\n }",
"public void setUploadUrl( String url_ ) {\n\t\tif (url_ != null) {\n\t\t\tphotoUrl = url_;\n\t\t} else {\n\t\t\tphotoUrl = \"http://199.58.116.35:8081/fotaflo-test/pictures/upload\";\n\t\t}\n\t\tlog( \"photoUrl \" + photoUrl, Log.Level.Information );\n\t}",
"public static void pressSubmit(){\n DriverManager.driver.findElement(Constans.SUBMIT_BUTTON_LOCATOR).click();\n }",
"java.lang.String getClickURL();",
"public void setUrl(Uri url) {\n this.urlString = url.toString();\n }",
"public void submit() {\n driver.findElement(SUBMIT_SELECTOR).click();\n }",
"public void setURL(java.lang.String uRL) {\n this.uRL = uRL;\n }",
"void setDefaultEndpointUri(String endpointUri);",
"public void actionPerformed(ActionEvent e) {\n if (caller != null) {\n String url = fieldURL.getText();\n /* Calls a parsing task in a new thread. */\n caller.extUrlWSDLImport(url);\n }\n setVisible(false);\n dispose();\n }",
"@Override\n public void setContributorURI(String arg0)\n {\n \n }",
"default FormValidation checkURI(String value) {\r\n if (value.length() == 0) {\r\n return FormValidation\r\n .error(\"Please set an URL for the staging repository!\");\r\n }\r\n return FormValidation.ok();\r\n }",
"public void setResource(URI resource) {\n this.resource = resource;\n }",
"public void setHTTP_URL(String url) {\r\n\t\ttry {\r\n\t\t\tURL u = new URL(url);\r\n\t\t\tu.toURI();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\tthis.settings.setProperty(\"HTTP_URL\", url);\r\n\t\tthis.saveChanges();\r\n\t}",
"private void jMenuItem142ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem142ActionPerformed\n URI uri = null;\n try {\n uri = new URI(\"http://manual.audacityteam.org\");\n }\n catch (URISyntaxException ex) {\n Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\n if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\n try {\n desktop.browse(uri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"private void openUri()\r\n {\r\n JOptionPane optionPane = new JOptionPane(new JLabel(\"URI:\"), \r\n JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);\r\n optionPane.setWantsInput(true);\r\n JDialog dialog = optionPane.createDialog(frame, \"Enter URI\");\r\n dialog.setResizable(true);\r\n dialog.setVisible(true);\r\n Object value = optionPane.getValue();\r\n if (value == null)\r\n {\r\n return;\r\n }\r\n if (!value.equals(JOptionPane.OK_OPTION))\r\n {\r\n return;\r\n }\r\n String uriString = (String)optionPane.getInputValue();\r\n if (uriString == null || uriString.trim().isEmpty())\r\n {\r\n return;\r\n }\r\n URI uri = null;\r\n try\r\n {\r\n uri = new URI(uriString);\r\n } \r\n catch (URISyntaxException e)\r\n {\r\n JOptionPane.showMessageDialog(\r\n frame, \"Invalid URI: \"+e.getMessage(), \r\n \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return;\r\n }\r\n openUriInBackground(uri);\r\n }",
"public void setTargetUri(final String targetUri) {\r\n\t\tthis.targetUri = targetUri;\r\n\t}",
"public void configureURL(View view) {\n\n //get url from edit text\n urlString = urlText.getText().toString();\n\n if((urlString.contains(\"https://\") && urlString.length()>8) || (urlString.contains(\"http://\") && urlString.length()>7)) {\n PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).edit().putString(\"urlString_\"+alarmID, urlString).apply();\n\n //determine if from configureURLButton or searchButton (require different actions)\n boolean fromConfigureURLButton;\n if(view.getTag().toString().equals(\"configure\")) {\n fromConfigureURLButton = true;\n } else {\n fromConfigureURLButton = false;\n }\n\n Intent intent = new Intent(getApplicationContext(), WebAlarmActivity.class);\n intent.putExtra(\"urlString\", urlString);\n intent.putExtra(\"fromConfigureURLButton\", fromConfigureURLButton);\n intent.putExtra(\"alarmID\", alarmID);\n startActivity(intent);\n } else {\n Toast.makeText(getApplicationContext(), \"Your URL is malformed!\", Toast.LENGTH_SHORT).show();\n }\n\n\n }",
"private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000001;\n url_ = value;\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfetchButton.setLabel(\"Fetching...\");\n\t\t\t\tsubmitConfigSubmissionRequest();\n\t\t\t\tfetchButton.setLabel(\"Fetch\");\n\t\t\t}",
"public void setSubmittime(Date submittime) {\n this.submittime = submittime;\n }",
"void setRemoteUrl(String name, String url, String GIT_DIR) throws GitException, InterruptedException;",
"public void setJobURI(String JobURI) {\n\t\tthis.jobURI = JobURI;\n\t\tif(JobURI.contains(\"#\"))\n\t\t\tthis.jobURI = \":\" + JobURI.substring(JobURI.indexOf(\"#\")+1);\n\t}",
"public String getPostUrl() {\r\n\t\treturn postUrl;\r\n\t}",
"@Override\n public URI getUri() {\n return _specExecutorInstanceUri;\n }",
"private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000002;\n url_ = value;\n }",
"public void setEatUri(java.lang.String param) {\n localEatUriTracker = true;\n\n this.localEatUri = param;\n }",
"public void setUri(@Nullable final String uri) {\n mUri = uri;\n }",
"@WebElementLocator(webDesktop = \"//input[@type='submit']\",webPhone = \"//input[@type='submit']\")\n private static WebElement buttonSubmit() {\n return getDriver().findElement(By.xpath(new WebElementLocatorFactory().getLocator(LoginPage.class, \"buttonSubmit\")));\n }",
"public java.lang.String getReqUri() {\n return req_uri;\n }",
"@Override\r\n\tpublic String getUri() {\n\t\treturn uri;\r\n\t}",
"public java.lang.String getReqUri() {\n return req_uri;\n }",
"private void setURL(String url) {\n try {\n URL setURL = new URL(url);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"void projectSurveyUriRequest(Request request);",
"public String getRequestSubmissionInboundPortUri() {\n\t\t\treturn requestSubmissionInboundPortUri;\n\t\t}",
"@Override\n public StringBuffer getRequestURL() {\n //StringBuffer requestURL = super.getRequestURL();\n //System.out.println(\"URL: \" + requestURL.toString());\n return this.requestURL;\n }",
"void setQueryRequestUrl(String queryRequestUrl);",
"@Override\n\tpublic void setSubmitDate(Date submitDate) {\n\t\tmodel.setSubmitDate(submitDate);\n\t}",
"void xsetClickURL(org.apache.xmlbeans.XmlString clickURL);",
"public String getEditorUrl()\n {\n return m_queryRequest;\n }",
"public URI doPost(String uri, T t) throws AbstractRequestException, AbstractClientRuntimeException, URISyntaxException {\n OmcpClient omcpClient = this.osirisConnectionFactory.getConnection();\n Response omcpResponse = omcpClient.doPost(uri, t);\n this.osirisConnectionFactory.closeConnection(omcpClient);\n OmcpUtil.handleOmcpResponse(omcpResponse);\n return new URI(omcpResponse.getLocation());\n }",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(downloadPath.equals(\"\")){\n\t\t\t\t\tsetDefaultPath();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Obtain the text from the imgurURL text field\n\t\t\t\timgurURL = \"https://www.imgur.com/a/\" + imgurURLField.getText().trim();\n\t\t\t\t\n\t\t\t\t//Match the imgurURL to regex\n\t\t\t\tPattern p = Pattern.compile(validURL);\n\t\t\t\tMatcher m = p.matcher(imgurURL);\n\t\t\t\t\n\t\t\t\t//If valid URL\n\t\t\t\tif (m.matches()){\n\t\t\t\t\t//Disable fileType while download process sets up so user cannot interfere\n\t\t\t\t\tfileType.setEnabled(false);\n\t\t\t\t\t//Use the swing event dispatcher to create a new Downloading window which will\n\t\t\t\t\t//execute any download processes\n\t\t\t\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tDownloadingWindow frame = new DownloadingWindow(imgurURL, downloadPath);\n\t\t\t\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\t//If invalid URL, show warning message and return to main window\n\t\t\t\telse{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid URL has been entered.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\tfileType.setSelectedItem(0);\n\t\t\t\t}\n\t\t\t\t//Reset the text\n\t\t\t\timgurURLField.setText(\"\");\n\t\t\t}",
"String getRequestURL();",
"@SuppressWarnings(\"deprecation\")\n private void setResetPasswordLink(UserForm userForm, HttpServletRequest request) {\n }",
"public void setSubmit_user_id(Integer submit_user_id) {\n this.submit_user_id = submit_user_id;\n }",
"void setMainAction(LinkActionGUI linkActionGUI);",
"public sparqles.avro.discovery.DGETInfo.Builder setURL(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.URL = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"@Override\r\n\tpublic String getUri() {\n\t\treturn \"kbox://global\";\r\n\t}",
"public static String substitueForURL(EditConfigurationVTwo configuration, MultiValueEditSubmission submission){\n \n List<String> entToReturnTo = new ArrayList<String>(1);\n entToReturnTo.add(configuration.getEntityToReturnTo());\n \n EditN3GeneratorVTwo n3Subber = configuration.getN3Generator();\n // Substitute in URIs from the submission\n entToReturnTo = n3Subber.subInMultiUris(submission.getUrisFromForm(), entToReturnTo); \n \n // Substitute in URIs from the scope of the EditConfiguration \n entToReturnTo = n3Subber.subInMultiUris(configuration.getUrisInScope(), entToReturnTo); \n \n //The problem is that subInURI will add < and > around URIs for the N3 syntax.\n //for the URL to return to, replace < and > from URI additions. \n return entToReturnTo.get(0).trim().replaceAll(\"<\",\"\").replaceAll(\">\",\"\"); \n }"
] | [
"0.6286817",
"0.60050726",
"0.5954646",
"0.59294736",
"0.58182204",
"0.5629855",
"0.5579027",
"0.5504695",
"0.54170835",
"0.54083735",
"0.54077023",
"0.5355907",
"0.5348242",
"0.5348242",
"0.53420234",
"0.5337878",
"0.5262516",
"0.5219",
"0.52044654",
"0.5201532",
"0.5191985",
"0.5188943",
"0.51856375",
"0.5182666",
"0.5157897",
"0.5153784",
"0.51444954",
"0.51402223",
"0.51337177",
"0.513018",
"0.51296186",
"0.51296186",
"0.51296186",
"0.5120021",
"0.50956595",
"0.5085529",
"0.50851333",
"0.50669724",
"0.5062885",
"0.50608873",
"0.50526327",
"0.50358784",
"0.5027942",
"0.5017837",
"0.50154114",
"0.5008899",
"0.5003299",
"0.49943203",
"0.49934644",
"0.49756017",
"0.49680233",
"0.49482706",
"0.49444145",
"0.4936654",
"0.4932137",
"0.4910174",
"0.49086875",
"0.48838618",
"0.48790455",
"0.4878349",
"0.48737147",
"0.48550162",
"0.4854149",
"0.48488972",
"0.48448265",
"0.48410952",
"0.48409432",
"0.48386526",
"0.4836828",
"0.48246935",
"0.4823001",
"0.48212633",
"0.48187205",
"0.4817767",
"0.48158142",
"0.48131746",
"0.48124808",
"0.4811733",
"0.47775018",
"0.47771943",
"0.47754306",
"0.4764386",
"0.4763655",
"0.47618365",
"0.4753613",
"0.4748928",
"0.4747373",
"0.47431582",
"0.4740217",
"0.4738384",
"0.4731252",
"0.47302797",
"0.4728094",
"0.47266176",
"0.47188112",
"0.47098458",
"0.4707804",
"0.47052646",
"0.4700723",
"0.46992555"
] | 0.6225346 | 1 |
Set the page context | public void setContext(PageContext context) {
this.context = context;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setPageContext(PageContext arg0) {\n \n }",
"public void setPageContext(PageContext pageContext) {\n this.pageContext = pageContext;\n }",
"@Override\r\n\tpublic void setPageContext(PageContext arg0) {\n\t\tthis.pageContext = arg0;\r\n\t}",
"@Override\n\tpublic void setPageContext(PageContext pageContext) {\n\t\tthis.pageContext = pageContext;\n\n\t}",
"public MockPageContext() {\n super();\n MockPageContext.init();\n }",
"public void setContext(Context context) {\n this.contextMain = context;\n }",
"void setContext(Map<String, Object> context);",
"@Override\r\n\tpublic void setContext(Context context) {\r\n\t\tthis.context = context;\r\n\t}",
"public void setContext(Context _context) {\n context = _context;\n }",
"public void setContext(Context conti) {\n\t\tthis.cont = conti;\n\t}",
"void setContext(Context context) {\n\t\tthis.context = context;\n\t}",
"public void setContext(Context context) {\n this.context = context;\n }",
"public void init(PageContext context) {\n request = (HttpServletRequest) context.getRequest();\n response = (HttpServletResponse) context.getResponse();\n session = context.getSession();\n application = context.getServletContext();\n out = context.getOut();\n }",
"public void setPage(Page page) {this.page = page;}",
"public void setContext(String context) {\n\n Set<String> contextNames = ((AppiumDriver) getDriver()).getContextHandles();\n\n if (contextNames.contains(context)) {\n ((AppiumDriver) getDriver()).context(context);\n info(\"Context changed successfully\");\n } else {\n info(context + \"not found on this page\");\n }\n\n info(\"Current context\" + ((AppiumDriver) getDriver()).getContext());\n }",
"protected void setContext(RestContext context) throws ServletException {\n\t\tthis.context.set(context);\n\t}",
"public void setContext(String context) {\r\n\t\tthis.context = context;\r\n\t}",
"@Override\r\n protected void setupRequestContext(Map<String, Object> mvcModel, HttpServletRequest request) throws Exception\r\n {\r\n // This line of code is a hangover from the old system of re-parsing all of the URL information each time\r\n // a cached PageView is rendered. Currently, all the rendering relies upon the Page object being stored on\r\n // the current RequestContext so in order to ensure that rendering is successful we need to set this value.\r\n // In the future the rendering should not rely so heavily on the contents of the current RequestContext but\r\n // for now it must. However, it is possible that other view resolvers could be provided by applications that\r\n // wish to render a PageView so we must log a warning message if those view resolvers fail to set the PageView\r\n // object up correctly.\r\n if (this.pageId != null)\r\n {\r\n ThreadLocalRequestContext.getRequestContext().setPage(getObjectService().getPage(this.pageId));\r\n }\r\n else\r\n {\r\n logger.error(\"The current PageView does not have its \\\"page\\\" property set. Please ensure that the associated view resolver is calling the setPage() method when building the view!\");\r\n }\r\n }",
"public void setUserContext(UserContext userContext);",
"public void setContext(String context) {\n\t\tthis.context = context;\n\t}",
"public void setPage(Page page) {\n this.page=page;\n }",
"public void setPage(Page page) {\n this.page=page;\n }",
"public void setContext(ContextRequest context) {\n\t\tthis.context = context;\n\t}",
"public void setContext(final Class<?> context) {\n\t\tthis.context = context;\n\t}",
"@Override\n\tpublic Void setContext(Context context) {\n\t\treturn null;\n\t}",
"public void setContext(ComponentContext ctx)\n\t{\n\t\tthis.context = ctx;\n\t}",
"public PageContext getPageContext() {\n return this.pageContext;\n }",
"public void setContextObject(Object co) {\n context = co;\n }",
"public synchronized static void setContext(Context con){\n\t\tcontext = con;\n\t}",
"public void setupContext(ServletContext context) {\r\n\t\tMap<String, Object> map = new HashMap<String, Object>();\r\n\t\tmap.put(\"CURRENT_THEME\", Constants.CURRENT_THEME);\r\n\t\tmap.put(\"LOGGED_USER\", Constants.LOGGED_USER);\r\n\t\tmap.put(\"YES\", Constants.YES);\r\n\t\tmap.put(\"NO\", Constants.NO);\r\n\t\tmap.put(\"ACTION\", Constants.ACTION);\r\n\t\tmap.put(\"ACTION_ADD\", Constants.ACTION_ADD);\r\n\t\tmap.put(\"SECURE_FIELD\", Constants.SECURE_FIELD);\r\n\t\tmap.put(\"DEBUG_MODE\", Constants.isDebugMode());\r\n\t\tmap.put(\"SHOW_FLAT_COMMISSIONS\", \"false\");\r\n\r\n\t\tcontext.setAttribute(\"Constants\", map);\r\n\r\n\t}",
"public void setContext(String context) {\n\t\tif (context.startsWith(\"/\")) {\n\t\t\tthis.context = context;\n\t\t}\n\t\telse {\n\t\t\tthis.context = \"/\" + context;\n\t\t}\n\t}",
"public void setQueryContext(QueryContext context) {\n \t\tthis.queryContext = context;\n \t\tif (getStructuredViewer() == null)\n \t\t\treturn;\n \n \t\tObject input = getStructuredViewer().getInput();\n \t\tif (input instanceof QueriedElement) {\n \t\t\t((QueriedElement) input).setQueryContext(context);\n \t\t\tgetStructuredViewer().refresh();\n \t\t}\n \t}",
"@OverrideOnDemand\r\n public void doPageSetup (@Nonnull final PageSetupContext aCtx)\r\n {}",
"public void setPage(String page) {\r\n pageEL = page;\r\n }",
"public void setServerContext(ServerContext serverContext)\r\n {\r\n this.serverContext = serverContext;\r\n }",
"public void setPage(Page page)\r\n {\r\n this.pageId = page.getId();\r\n }",
"public void setPage(View view){\n //page is always the great grand parent\n linearLayoutBody = (LinearLayout) view.getParent().getParent().getParent();\n currentPage = (TemplatePage) linearLayoutBody.getTag();\n }",
"@Override\n\tpublic void setContext(Context pContext) {\n\n\t}",
"public void setContextualParams(Context context) {\n setAdvertisingID(context);\n setDefaultScreenResolution(context);\n setLocation(context);\n setCarrier(context);\n }",
"public static void set(FHIRRequestContext context) {\n contexts.set(context);\n if (log.isLoggable(Level.FINEST)) {\n log.finest(\"FHIRRequestContext.set: \" + context.toString());\n }\n }",
"public void setPage(Page page) {\n\t\tthis.page = page;\n\t}",
"public void setContext(Context c) {\n\t\tthis.mContext = c;\n\t}",
"public void setContext(Context ctx) {\n\t\tprefs = PreferenceManager.getDefaultSharedPreferences(ctx);\n\t\tupdateNextIdx();\n\t}",
"public void set_context(VariableSymbolTable context);",
"@Override\r\n\t\tpublic PageDescription setPageEnv(HttpServletRequest request) {\n\t\t\tList<PubItem> pubItem = PubDataReader.getPubItems(dbValue, nation);\r\n\t\t\trequest.setAttribute(\"PUB_TITLE\", dbValue + \":\" + nation);\r\n\t\t\trequest.setAttribute(\"PUBCONTENTS\", pubItem);\r\n\t\t\treturn new PubPageDesc(dbValue + \":\" + nation);\r\n\t\t}",
"public void setContext(ActionBeanContext context) {\r\n this.context = context;\r\n }",
"void startPage(RequestContextHolder request);",
"public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }",
"public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }",
"public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }",
"public void setContext(ConversationContext context) {\n\t\tthis.context = context;\n\t}",
"public void set(T v) {\n\t\tset(v, ModSettings.currentContext);\n\t}",
"public void setContext( UpgradeContext context ) {\r\n\t\tthis.context = context;\r\n\t\tupgradeContext = context;\r\n\t}",
"public void setPage(ICPage page) {\n \t\t_page = page;\n \t}",
"public abstract void set(T v, String context);",
"@Override\r\n\tpublic void setCamelContext(CamelContext ctx) {\n\t\tthis.ctx = ctx;\r\n\t}",
"public static void setupContext(ServletContext context) {\n \t//I don't need this dropdown list. bguo.\n// ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(context);\n// LookupManager mgr = (LookupManager) ctx.getBean(\"lookupManager\");\n//\n// // get list of possible roles\n// context.setAttribute(RoleConstants.AVAILABLE_ROLES, mgr.getAllRoles());\n// log.debug(\"Drop-down initialization complete [OK]\");\n }",
"public static void setContext(String key, String value) {\r\n scenarioContext.put(key, value);\r\n }",
"public Builder setContext(final Map<String, String> value) {\n _context = value;\n return this;\n }",
"public abstract void setValue(ELContext context, Object value);",
"public void setContexto() {\n this.contexto = FacesContext.getCurrentInstance().getViewRoot().getLocale().toString();\r\n // this.contexto =httpServletRequest.getLocale().toString();\r\n \r\n \r\n //obtenemos el HttpServletRequest de la peticion para poder saber\r\n // el locale del cliente\r\n HttpServletRequest requestObj = (HttpServletRequest) \r\n FacesContext.getCurrentInstance().getExternalContext().getRequest();\r\n \r\n //Locale del cliente\r\n this.contextoCliente = requestObj.getLocale().toString();\r\n \r\n \r\n //Asignamos al locale de la aplicacion el locale del cliente\r\n FacesContext.getCurrentInstance().getViewRoot().setLocale(requestObj.getLocale());\r\n }",
"protected void doAdditionalPageInitialization(IPage page) {\n }",
"public void initializeContext(Context context) {\n this.context = context;\n }",
"@Override\n public void setContext(IEclipseContext arg0)\n {\n \n }",
"private void changeContext(){\n MainWorkflow.observeContexts(generateRandom(24,0));\n }",
"protected void setup(Context context) {}",
"public PasswordChangeRequestPage( WOContext context )\n {\n super( context );\n }",
"@Override\r\n\tpublic void setContext(Context context) {\n\t\thost = context.getString(MongoWriteConstants.MONGO_HOST);\r\n\t\tport = context.getInteger(MongoWriteConstants.MONGO_PORT, MongoWriteConstants.DEFAULT_MONGO_PORT);\r\n\t\tuser = context.getString(MongoWriteConstants.MONGO_USER);\r\n\t\tpassword = context.getString(MongoWriteConstants.MONGO_PASSWORD);\r\n\t\tdatabase = context.getString(MongoWriteConstants.MONGO_DATABASE);\r\n\t\tcollection = context.getString(MongoWriteConstants.MONGO_COLLECTION);\r\n\t}",
"protected void bind(EvaluationContext context) {\n this.context = context;\n }",
"@Autowired\n\tpublic void setContext(ApplicationContext context) {\n\t\tthis.context = context;\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\n\t}",
"public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }",
"public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }",
"public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }",
"public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }",
"static void setActiveContext(ApplicationContext context) {\n SchemaCompilerApplicationContext.context = context;\n }",
"public PageUiUtils(PageContext pageContext) {\n\t\tthis.pageContext = pageContext;\n\t\tthis.fragmentIncluder = pageContext;\n\t\tthis.resourceIncluder = pageContext;\n\t\tthis.formatter = pageContext.getFormatter();\n\t\tthis.messager = pageContext;\n\t\tthis.decoratable = pageContext;\n\t\tthis.extensionManager = pageContext.getExtensionManager();\n\t\tthis.conversionService = pageContext.getPageFactory().getConversionService();\n\t}",
"public static void populateContext(final PageContext pageContext) {\n\n final List<DescriptionInfo> descriptions = DescriptionInfo.getAllKnownChallengeDescriptionInfo();\n\n Collections.sort(descriptions);\n pageContext.setAttribute(\"descriptions\", descriptions);\n }",
"public void setProviderContext(Context providerContext) {\r\n mProviderContext = providerContext;\r\n }",
"@BeforeEach\n void setUp() throws Exception {\n context.currentPage(context.create().page(\"/content/unittest/de_test/brand/de/section/page\",\n DummyAppTemplate.CONTENT.getTemplatePath()));\n\n // create internal pages for unit tests\n targetPage = context.create().page(\"/content/unittest/de_test/brand/de/section/content\",\n DummyAppTemplate.CONTENT.getTemplatePath());\n context.create().page(\"/content/unittest/en_test/brand/en/section/content\",\n DummyAppTemplate.CONTENT.getTemplatePath());\n\n }",
"public void init(MailetContext context);",
"@Autowired\r\n\tpublic void setContext(ApplicationContext context) {\r\n\t\tthis.context = context;\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\r\n\t}",
"@Autowired\r\n\tpublic void setContext(ApplicationContext context) {\r\n\t\tthis.context = context;\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\r\n\t}",
"@Override\n public void setCallContext(CallContext context) {\n this.context = context;\n //repository map depends on the context\n this.eloCmisRepositoryMap = EloCmisRepository.createEloCmisRepositoryMap(this, (ExtensionsData) null);\n }",
"public void setServletContext(ServletContext context) {\n this.context = context;\n }",
"public static void setRequestContext(SOAPRequestContext context) {\n REQUEST_CONTEXT_HOLDER.set(context);\n }",
"void execSetupContext(ExecProcess ctx);",
"public ProcessPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t \n\n\t}",
"public SettingPage() {\n\t\tPageFactory.initElements(driver, this);\t\t\n\t}",
"public static void setApplicationContext( ApplicationContext context ){\n\t\t\tctx = context;\n//\t\telse{\n//\t\t\tSystem.out.println(\"Error, ApplicationContext already has been set\");\n//\t\t}\n\t}",
"public void setContext(UsersResourceContext context) {\n this._context = context;\n }",
"public void setContext(GLContext context);",
"public static void setContextKey(WebRequest request, WebResponse response, Project project, String contextKey) {\n Cookie cookie = getContextCookie(request);\n Map<String, String> projectsToContexts = projectsToContexts(cookie);\n projectsToContexts.put(project.getKey(), contextKey);\n\n Set<String> pairs = Sets.newHashSet();\n for (Entry<String, String> entry : projectsToContexts.entrySet()) {\n pairs.add(entry.getKey() + \"=\" + entry.getValue());\n }\n\n cookie = new Cookie(CONTEXTS_COOKIE, Joiner.on('|').join(pairs));\n cookie.setPath(\"/\");\n cookie.setMaxAge(31556926); // one year in seconds\n response.addCookie(cookie);\n }",
"@Override\n\tprotected void init(VaadinRequest request) {\n\t\tUI.getCurrent().setLocale(Locale.ENGLISH);\n\t\t\n\t\t// Set the page title (window or tab caption)\n\t\tPage.getCurrent().setTitle(\"My Page\");\n\t\t// Set a session attribute\n\t\tVaadinSession.getCurrent().setAttribute(\"myattrib\", \"hello\");\n\t\t\n\t\t// Access the HTTP service parameters\n\t\tVaadinService.getCurrent().getBaseDirectory();\n\t\t\n\t\tnew CheckBoxFeatures(this).test();\n\t\t\n\t}",
"public Builder setContext(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n context_ = value;\n onChanged();\n return this;\n }",
"public void setPage(int page) {\n this.page = page;\n }",
"NetworkActivity (Context setContext){\n this.context = setContext;\n }",
"public void setPageInfo(PageInfo pageInfo) {\n this.pageInfo = pageInfo;\n }",
"@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}",
"public void setContextProperty(String property) {\n _contextProperty = property;\n }",
"private static void setupServerContext(){\n\n serverContext.set(new ServerContext());\n serverContext.get().bgThreadIds = new int[GlobalContext.getNumTotalBgThreads()];\n serverContext.get().numShutdownBgs = 0;\n serverContext.get().serverObj = new Server();\n\n }"
] | [
"0.8174901",
"0.79849285",
"0.7978655",
"0.7972399",
"0.6953741",
"0.69438297",
"0.6920521",
"0.68922806",
"0.67189246",
"0.671735",
"0.6710666",
"0.6704506",
"0.6667293",
"0.6660024",
"0.6651163",
"0.6598036",
"0.643424",
"0.64249426",
"0.6379164",
"0.635315",
"0.63345057",
"0.63345057",
"0.6302586",
"0.6235592",
"0.620432",
"0.6204209",
"0.61846066",
"0.61600214",
"0.6131289",
"0.6056066",
"0.602981",
"0.6008777",
"0.5979077",
"0.59728944",
"0.5944562",
"0.59315467",
"0.5922485",
"0.5908025",
"0.590512",
"0.58806807",
"0.58796054",
"0.58720183",
"0.58568555",
"0.58356553",
"0.58351624",
"0.58110696",
"0.58073986",
"0.57954574",
"0.57954574",
"0.57954574",
"0.57859826",
"0.5759696",
"0.5746849",
"0.57313615",
"0.56842136",
"0.5670129",
"0.5655768",
"0.56314987",
"0.5614514",
"0.56104714",
"0.5601071",
"0.55886155",
"0.55728716",
"0.55620754",
"0.55306095",
"0.55290306",
"0.55133283",
"0.5506363",
"0.54950964",
"0.5483316",
"0.54832727",
"0.54832727",
"0.54832727",
"0.54832727",
"0.548213",
"0.5477073",
"0.5471727",
"0.54638374",
"0.54517114",
"0.5435524",
"0.54299855",
"0.54299855",
"0.542875",
"0.54275674",
"0.542677",
"0.54174316",
"0.5411196",
"0.5408424",
"0.54044026",
"0.54020846",
"0.53825265",
"0.53822327",
"0.53560346",
"0.5347354",
"0.5343359",
"0.5328962",
"0.5327958",
"0.5324584",
"0.53163725",
"0.5314856"
] | 0.84021145 | 0 |
Set the "dialogMap" object [of the host JSP] | public void setDialogMap(Map dialogMap) {
this.dialogMap = dialogMap;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setGuiHashMap() {\n\n gameMap.setGetGuiHashMapParameter(\"author\",\"Default authorName\");\n gameMap.setGetGuiHashMapParameter(\"warn\",\"Default warning\");\n gameMap.setGetGuiHashMapParameter(\"image\",\"Default image\");\n gameMap.setGetGuiHashMapParameter(\"wrap\",\"Default wrapping\");\n gameMap.setGetGuiHashMapParameter(\"scroll\",\"Default scrolling\");\n }",
"public final native void setMap(MapJSO map) /*-{\n\t\tthis.setMap(map);\n\t}-*/;",
"public void askMap() throws Exception{\n // Platform.runLater( () -> firstPage.closePrimaryStage());\n chooseMap = new ChooseMap();\n chooseMap.setRemoteController(senderRemoteController);\n Platform.runLater(\n () -> {\n // Update UI here.\n try {\n chooseMap.start(new Stage());\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n );\n\n }",
"void setMap(Map aMap);",
"public void setDialogManager( final PlutoInternalFrame dlgMgr ) {\n // We don't need to preserve the dialog manager's reference for this panel.\n }",
"public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html;charset=UTF-8\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _mapclient page = this;\n ServletConfig config = pageContext.getServletConfig();\n\n com.evermind.server.http.JspCommonExtraWriter __ojsp_s_out = (com.evermind.server.http.JspCommonExtraWriter) out;\n try {\n\n\n __ojsp_s_out.write(__oracle_jsp_text[0]);\n __ojsp_s_out.write(__oracle_jsp_text[1]);\n __ojsp_s_out.write(__oracle_jsp_text[2]);\n __ojsp_s_out.write(__oracle_jsp_text[3]);\n __ojsp_s_out.write(__oracle_jsp_text[4]);\n __ojsp_s_out.write(__oracle_jsp_text[5]);\n __ojsp_s_out.write(__oracle_jsp_text[6]);\n mapdemo.MapClientBean mcb;\n synchronized (session) {\n if ((mcb = (mapdemo.MapClientBean) pageContext.getAttribute( \"mcb\", PageContext.SESSION_SCOPE)) == null) {\n mcb = (mapdemo.MapClientBean) new mapdemo.MapClientBean();\n pageContext.setAttribute( \"mcb\", mcb, PageContext.SESSION_SCOPE);\n __ojsp_s_out.write(__oracle_jsp_text[7]);\n mcb.setMapViewerServerURL(OracleJspRuntime.toStr( mcb.determineURL(request)));\n __ojsp_s_out.write(__oracle_jsp_text[8]);\n pageContext.setAttribute( \"mcb\", mcb, PageContext.SESSION_SCOPE);\n }\n }\n __ojsp_s_out.write(__oracle_jsp_text[9]);\n {\n String[] __paramList = request.getParameterValues( \"mapViewerServerURL\");\n if ((__paramList != null) && (__paramList[0] != null) && (__paramList[0].length() > 0)) {\n mcb.setMapViewerServerURL(__paramList[0]);\n }\n }\n __ojsp_s_out.write(__oracle_jsp_text[10]);\n OracleJspRuntime.__jspSetAllParams(request, (Object)mcb, true);\n __ojsp_s_out.write(__oracle_jsp_text[11]);\n \n mcb.processRequest(request);\n \n __ojsp_s_out.write(__oracle_jsp_text[12]);\n out.print(mcb.getMapViewerServerURL());\n __ojsp_s_out.write(__oracle_jsp_text[13]);\n out.print( mcb.getDataSource() );\n __ojsp_s_out.write(__oracle_jsp_text[14]);\n out.print( mcb.getTitle() );\n __ojsp_s_out.write(__oracle_jsp_text[15]);\n out.print( mcb.getBaseMap() );\n __ojsp_s_out.write(__oracle_jsp_text[16]);\n out.print( mcb.getCenterX() );\n __ojsp_s_out.write(__oracle_jsp_text[17]);\n out.print( mcb.getCenterY() );\n __ojsp_s_out.write(__oracle_jsp_text[18]);\n out.print( mcb.getSize() );\n __ojsp_s_out.write(__oracle_jsp_text[19]);\n out.print(mcb.getImageW());\n __ojsp_s_out.write(__oracle_jsp_text[20]);\n if (mcb.getSuccess()) { \n __ojsp_s_out.write(__oracle_jsp_text[21]);\n out.print( mcb.getMapImageURL() );\n __ojsp_s_out.write(__oracle_jsp_text[22]);\n out.print( mcb.getImageW() );\n __ojsp_s_out.write(__oracle_jsp_text[23]);\n out.print( mcb.getImageH() );\n __ojsp_s_out.write(__oracle_jsp_text[24]);\n } else { \n __ojsp_s_out.write(__oracle_jsp_text[25]);\n } \n __ojsp_s_out.write(__oracle_jsp_text[26]);\n out.print( mcb.getImageW() );\n __ojsp_s_out.write(__oracle_jsp_text[27]);\n out.print( mcb.getImageW() );\n __ojsp_s_out.write(__oracle_jsp_text[28]);\n out.print(mcb.getXMLRequest());\n __ojsp_s_out.write(__oracle_jsp_text[29]);\n out.print(mcb.getXMLResponse());\n __ojsp_s_out.write(__oracle_jsp_text[30]);\n \n if(mcb.getErrorMsg()!=null && mcb.getDataSource()!=null)\n {\n \n __ojsp_s_out.write(__oracle_jsp_text[31]);\n out.print(mcb.getErrorMsg());\n __ojsp_s_out.write(__oracle_jsp_text[32]);\n \n }\n \n __ojsp_s_out.write(__oracle_jsp_text[33]);\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }",
"public ProximityMapDialog(java.awt.Frame parent, boolean modal, EntityManager em) {\n super(parent, modal); \n this.serviceGroupDAO = DataAccessObject.create(em, ServiceGroup.class);\n this.territoryDAO = DataAccessObject.create(em, Territory.class);\n initComponents(); \n initMyComponents();\n }",
"public void setDialog(Dialog dialog) {\r\n\t mDialog = dialog;\r\n\t }",
"public void setMap(String mn){\r\n mapName = mn;\r\n currentMap = new ImageIcon(mapName);\r\n }",
"public void setDialogs(ArrayList<ClientDialog> dialogs)\n \t{\n \t\tthis.dialogs = dialogs;\n \t}",
"public void\n putDialog(DialogImpl dialog) {\n String dialogId = dialog.getDialogId();\n \tsynchronized(dialogTable) {\n \t if (dialogTable.containsKey(dialogId)) return;\n \t}\n if (LogWriter.needsLogging) {\n LogWriter.logMessage(\"putDialog dialogId=\" + dialogId);\n }\n // if (this.getDefaultRouteHeader() != null)\n // dialog.addRoute(this.getDefaultRouteHeader(),false);\n dialog.setStack(this);\n if (LogWriter.needsLogging)\n LogWriter.logStackTrace();\n synchronized(dialogTable) {\n dialogTable.put(dialogId,dialog);\n }\n \n }",
"private void initialize(Map map) {\n frame = new JDialog();\n frame.setModal(true);\n frame.setResizable(false);\n frame.setTitle(\"报告文件\");\n frame.setBounds(500, 100, 405, 569);\n// frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.getContentPane().setLayout(null);\n frame.getRootPane().setWindowDecorationStyle(JRootPane.NONE);\n// frame.setUndecorated(true);\n\n JPanel panel = new JPanel();\n panel.setBackground(UIManager.getColor(\"Button.light\"));\n panel.setBounds(0, 0, 403, 490);\n frame.getContentPane().add(panel);\n panel.setLayout(null);\n\n JLabel ckdhLabel = new JLabel(\"油罐编号:\");\n ckdhLabel.setBounds(20, 20, 92, 15);\n panel.add(ckdhLabel);\n\n ckdhField = new JTextField();\n ckdhField.setEnabled(false);\n ckdhField.setBounds(130, 18, 255, 21);\n panel.add(ckdhField);\n ckdhField.setColumns(10);\n\n JLabel qrdhLabel = new JLabel(\"泄漏状态:\");\n qrdhLabel.setBounds(20, 50, 92, 15);\n panel.add(qrdhLabel);\n\n qrdhField = new JTextField(10);\n qrdhField.setColumns(10);\n qrdhField.setEnabled(false);\n qrdhField.setBounds(130, 48, 255, 21);\n panel.add(qrdhField);\n\n JLabel ypLabel = new JLabel(\"泄露速率(L/H):\");\n ypLabel.setBounds(20, 80, 92, 15);\n panel.add(ypLabel);\n\n JLabel xuxianLabel = new JLabel(\"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \");\n xuxianLabel.setBounds(20, 110, 405, 15);\n panel.add(xuxianLabel);\n\n yfssField1 = new JTextField(10);\n yfssField1.setEnabled(false);\n yfssField1.setBounds(130, 78, 255, 21);\n panel.add(yfssField1);\n\n JLabel yfssLabel = new JLabel(\"起始日期:\");\n yfssLabel.setBounds(20, 140, 92, 15);\n panel.add(yfssLabel);\n\n yfssField = new JTextField(10);\n yfssField.setEnabled(false);\n yfssField.setColumns(10);\n yfssField.setBounds(130, 138, 255, 21);\n panel.add(yfssField);\n\n JLabel cphmLabel = new JLabel(\"起始时间:\");\n cphmLabel.setBounds(20, 170, 92, 15);\n panel.add(cphmLabel);\n\n cphmField = new JTextField();\n cphmField.setEnabled(false);\n cphmField.setColumns(10);\n cphmField.setBounds(130, 168, 255, 21);\n panel.add(cphmField);\n\n JLabel fyykLabel = new JLabel(\"起始油水总高(mm):\");\n fyykLabel.setBounds(20, 200, 130, 15);\n panel.add(fyykLabel);\n\n fyykField = new JTextField();\n fyykField.setEnabled(false);\n fyykField.setColumns(10);\n fyykField.setBounds(130, 198, 255, 21);\n panel.add(fyykField);\n\n JLabel mkyzLabel = new JLabel(\"起始水高(mm):\");\n mkyzLabel.setBounds(20, 230, 92, 15);\n panel.add(mkyzLabel);\n\n mdyzField = new JTextField();\n mdyzField.setEnabled(false);\n mdyzField.setColumns(10);\n mdyzField.setBounds(130, 228, 255, 21);\n panel.add(mdyzField);\n\n JLabel mkyzLabel22 = new JLabel(\"起始5点温度(℃):\");\n mkyzLabel22.setBounds(20, 260, 130, 15);\n panel.add(mkyzLabel22);\n\n mdyzField22 = new JTextField();\n mdyzField22.setEnabled(false);\n mdyzField22.setColumns(10);\n mdyzField22.setBounds(130, 258, 255, 21);\n panel.add(mdyzField22);\n\n JLabel xuxianLabel2 = new JLabel(\"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \");\n xuxianLabel2.setBounds(20, 290, 405, 15);\n panel.add(xuxianLabel2);\n\n JLabel mkyzLabel23 = new JLabel(\"结束日期:\");\n mkyzLabel23.setBounds(20, 320, 92, 15);\n panel.add(mkyzLabel23);\n\n mdyzField23 = new JTextField();\n mdyzField23.setEnabled(false);\n mdyzField23.setColumns(10);\n mdyzField23.setBounds(130, 318, 255, 21);\n panel.add(mdyzField23);\n\n JLabel mkyzLabel24 = new JLabel(\"结束时间:\");\n mkyzLabel24.setBounds(20, 350, 92, 15);\n panel.add(mkyzLabel24);\n\n mdyzField24 = new JTextField();\n mdyzField24.setEnabled(false);\n mdyzField24.setColumns(10);\n mdyzField24.setBounds(130, 348, 255, 21);\n panel.add(mdyzField24);\n\n JLabel mkyzLabel25 = new JLabel(\"结束油水总高(mm):\");\n mkyzLabel25.setBounds(20, 380, 130, 15);\n panel.add(mkyzLabel25);\n\n mdyzField25 = new JTextField();\n mdyzField25.setEnabled(false);\n mdyzField25.setColumns(10);\n mdyzField25.setBounds(130, 378, 255, 21);\n panel.add(mdyzField25);\n\n JLabel mkyzLabel26 = new JLabel(\"结束水高(mm):\");\n mkyzLabel26.setBounds(20, 410, 92, 15);\n panel.add(mkyzLabel26);\n\n mdyzField26 = new JTextField();\n mdyzField26.setEnabled(false);\n mdyzField26.setColumns(10);\n mdyzField26.setBounds(130, 408, 255, 21);\n panel.add(mdyzField26);\n\n JLabel mkyzLabel27 = new JLabel(\"结束5点温度(℃):\");\n mkyzLabel27.setBounds(20, 440, 130, 15);\n panel.add(mkyzLabel27);\n\n mdyzField27 = new JTextField();\n mdyzField27.setEnabled(false);\n mdyzField27.setColumns(10);\n mdyzField27.setBounds(130, 438, 255, 21);\n panel.add(mdyzField27);\n\n ckdhField.setText(map.get(\"uOilCanNo\").toString());//油罐编号\n String Status=map.get(\"uRevealStatus\").toString();\n //泄漏状态:0:不泄漏,1:渗漏,2:漏油,3:盗油\n if(\"0\".equals(Status)){\n Status=\"不泄漏\";\n }\n if(\"1\".equals(Status)){\n Status=\"渗漏\";\n }\n if(\"2\".equals(Status)){\n Status=\"漏油\";\n }\n if(\"3\".equals(Status)){\n Status=\"盗油\";\n }\n Date startd =new Date() ,endd=new Date();\n try {\n startd = DateUtil.convertStringToDate(\"yyyyMMdd\", map.get(\"strStartDate\").toString());\n endd=DateUtil.convertStringToDate(\"yyyyMMdd\", map.get(\"strEndDate\").toString());\n //Main.setStatus(startd.toString()+endd.toString());\n ////System.out.println(startd);\n ////System.out.println(endd);\n }catch (ParseException pe)\n {\n ////System.out.println(\"开始结束时间转换错误\"+pe);\n }\n // SimpleDateFormat date = new SimpleDateFormat(\"yyyy-MM-dd\");\n String startDate= DateUtil.convertDateToString(startd);// date.format(startd);\n String endDate =DateUtil.convertDateToString(endd);\n\n //SimpleDateFormat time = new SimpleDateFormat(\"HH:mm:ss\");\n String startTime=\"\",endTime=\"\";\n String startTimetemp = map.get(\"strStartTime\").toString();\n String endTimetemp = map.get(\"strEndTime\").toString();\n startTime = startTimetemp.substring(0,2)+\":\"+startTimetemp.substring(2,4)+\":\"+startTimetemp.substring(4,6);// time.format(map.get(\"strStartTime\").toString());\n endTime = endTimetemp.substring(0,2)+\":\"+endTimetemp.substring(2,4)+\":\"+endTimetemp.substring(4,6);// time.format(map.get(\"strStartTime\").toString());\n qrdhField.setText(Status);//泄漏状态\n yfssField1.setText(map.get(\"fRevealRate\").toString());//泄露速率\n\n yfssField.setText(startDate);//起始日期\n cphmField.setText(startTime);//起始时间\n fyykField.setText(map.get(\"fStartOilHeight\").toString());//起始油水总高\n mdyzField.setText(map.get(\"fStartWaterHeight\").toString());//起始水高\n mdyzField22.setText(String.valueOf(map.get(\"fStartOilTemp1\")+\",\"+map.get(\"fStartOilTemp2\")+\",\"+map.get(\"fStartOilTemp3\")+\",\"+map.get(\"fStartOilTemp4\")+\",\"+map.get(\"fStartOilTemp5\")));\n mdyzField23.setText(endDate);//结束日期\n mdyzField24.setText(endTime);//结束时间\n mdyzField25.setText(map.get(\"fEndOilHeight\").toString());//结束油水总高\n mdyzField26.setText(map.get(\"fEndWaterHeight\").toString());//结束水高\n mdyzField27.setText(String.valueOf(map.get(\"fEndOilTemp1\") + \",\" +map.get(\"fEndOilTemp2\") + \",\" + map.get(\"fEndOilTemp3\") + \",\" + map.get(\"fEndOilTemp4\") + \",\" +map.get(\"fEndOilTemp5\")));\n ////System.out.println(\"停止液位仪的赋值阶段完毕…………………………………………\");\n\n Integer oilCanNo=(Integer)map.get(\"uOilCanNo\");\n String s =(map.get(\"strStartDate\").toString() + map.get(\"strStartTime\").toString());\n String e =(map.get(\"strEndDate\").toString()+map.get(\"strEndTime\").toString());\n ////System.out.println(\"打印出时间的样子为\"+s+\"结束时间\"+e);\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n try\n {\n Date startdate = sdf.parse(s);\n Date enddate = sdf.parse(e);\n ////System.out.println(\"打印出时间的样子2为\" + startdate + \"结束时间\" + enddate);\n //更新前整理数据\n String revealstatus=map.get(\"uRevealStatus\").toString();\n ////System.out.println(\"打印出revealstatus的样子2为\" + revealstatus);\n String revealRate= map.get(\"fRevealRate\").toString();\n ////System.out.println(\"打印出revealRate的样子为\" + revealRate);\n Double startoilheight=(Double)map.get(\"fStartOilHeight\");\n Double startwaterheight =(Double)map.get(\"fStartWaterHeight\");\n Double startoiltemp1=(Double)map.get(\"fStartOilTemp1\");\n Double startoiltemp2=(Double)map.get(\"fStartOilTemp2\");\n Double startoiltemp3=(Double)map.get(\"fStartOilTemp3\");\n Double startoiltemp4=(Double)map.get(\"fStartOilTemp4\");\n Double startoiltemp5=(Double)map.get(\"fStartOilTemp5\");\n Double endoilheight=(Double)map.get(\"fEndOilHeight\");\n Double endwaterheight=(Double)map.get(\"fEndWaterHeight\");\n Double endoiltemp1=(Double)map.get(\"fEndOilTemp1\");\n Double endoiltemp2=(Double)map.get(\"fEndOilTemp2\");\n Double endoiltemp3=(Double)map.get(\"fEndOilTemp3\");\n Double endoiltemp4=(Double)map.get(\"fEndOilTemp4\");\n Double endoiltemp5=(Double)map.get(\"fEndOilTemp5\");\n Double fEndOilCubage=(Double)map.get(\"fEndOilCubage\");\n Double fEndWaterBulk=(Double)map.get(\"fEndWaterBulk\");\n\n HashMap map1=new HashMap();\n map1.put(\"oilCanNo\",oilCanNo);\n map1.put(\"revealstatus\",revealstatus);\n map1.put(\"revealRate\",revealRate);\n map1.put(\"startoilheight\",startoilheight);\n map1.put(\"startwaterheight\",startwaterheight);\n map1.put(\"startoiltemp1\",startoiltemp1);\n map1.put(\"startoiltemp2\",startoiltemp2);\n map1.put(\"startoiltemp3\",startoiltemp3);\n map1.put(\"startoiltemp4\",startoiltemp4);\n map1.put(\"startoiltemp5\",startoiltemp5);\n map1.put(\"endoilheight\",endoilheight);\n map1.put(\"endwaterheight\",endwaterheight);\n map1.put(\"endoiltemp1\",endoiltemp1);\n map1.put(\"endoiltemp2\",endoiltemp2);\n map1.put(\"endoiltemp3\",endoiltemp3);\n map1.put(\"endoiltemp4\",endoiltemp4);\n map1.put(\"endoiltemp5\",endoiltemp5);\n map1.put(\"enddate\",enddate);\n map1.put(\"startdate\",startdate);\n map1.put(\"endoill\", fEndOilCubage);\n map1.put(\"endwaterl\",fEndWaterBulk);\n\n ////System.out.println(\"endoill : \" + fEndOilCubage);\n ////System.out.println(\"endwaterl : \"+fEndWaterBulk);\n ////System.out.println(\"开始更新数据…………………………………………\"+map1.toString());\n //更新数据\n AlarmMeasureLeakService alarmMeasureLeakService=(AlarmMeasureLeakService) (Context.getInstance().getBean(\"alarmMeasureLeakService\"));\n int a=alarmMeasureLeakService.updateEndDate(map1);\n\n if (Main.oilExcep==null){\n Main.oilExcep=new OilExcep();\n }\n Main.oilExcep.reload();\n ////System.out.println(\"更新数据结束…………………………………………\"+a);\n }\n catch (ParseException e1)\n {\n ////System.out.println(e1.getMessage());\n ////System.out.println(\"时间转换或者更新错误,检查\");\n }\n }",
"public void setMap()\n {\n gameManager.setMap( savedFilesFrame.getCurrent_index() );\n }",
"public static void SetMap(MapHelper controller) {\n mapHelper = controller;\n }",
"public void setDialog(Dialog dialog) {\n mDialog = dialog;\n }",
"public void setDialog(Dialog dialog) {\n mDialog = dialog;\n }",
"@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}",
"private void setDialog()\n {\n //this.setSize(350,500);\n this.setTitle(Constant.getTextBundle(\"ปฏิกิริยาต่อกัน\"));\n Toolkit thekit = this.getToolkit(); \n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation((screenSize.width-this.getSize().width)/2, (screenSize.height-this.getSize().height)/2);\n }",
"public void addMappingSource(Object dialog){\n\t\tString sourceName = getText(fields.txtSourceName);\n\t\tif(sourceName == null || sourceName.length() == 0) {\n\t\t\tui.alert(MappingMessages.getSourceNameMissing());\n\t\t\tLOG.debug(\"Invalid or empty source name\");\n\t\t\treturn;\n\t\t}\n\t\tString sourceURL = getText(fields.txtSourceURL);\n\t\tif(sourceURL == null || sourceURL.length() == 0) {\n\t\t\tui.alert(MappingMessages.getSourceUrlMissing());\n\t\t\tLOG.debug(\"Invalid or empty source url\");\n\t\t\treturn;\n\t\t}\n\t\tMappingSetup mappingSetup = null;\n\t\tObject attachedObject = getAttachedObject(dialog, MappingSetup.class);\n\t\t\n\t\tif(attachedObject instanceof MappingSetup) {\n\t\t\tmappingSetup = (MappingSetup)attachedObject;\n\t\t\tsetAttachedObject(dialog, null);\n\t\t}\n\t\telse{\n\t\t\tmappingSetup = new MappingSetup();\n\t\t}\n\t\t\n\t\t//Get the current default setup\n\t\tMappingSetup currentDefault = (mappingSetupDao.getDefaultSetup() != null) ? mappingSetupDao.getDefaultSetup() : null;\n\t\tmappingSetup.setName(sourceName);\n\t\tmappingSetup.setSourceURL(sourceURL);\n\t\t\n\t\tboolean sourceDefault = getBoolean(fields.chkSourceDefault, Thinlet.SELECTED);\n\t\tif (sourceDefault) {\n\t\t\tui.showConfirmationDialog(\"beginSynchronization\", this, CONFIRM_SYNCHRONIZE_KEY);\n\t\t}\n\t\tif(currentDefault == null && sourceDefault == false){\n\t\t\tLOG.debug(\"Default mapping setup not specified\");\n\t\t\tui.alert(MappingMessages.getSetupDefaultRequired());\n\t\t\treturn;\n\t\t}\n\t\tmappingSetup.setDefaultSetup(sourceDefault);\n\t\ttry{\n\t\t\tif(currentDefault != null && Long.toString(mappingSetup.getId()) != null) {\n\t\t\t\tif (mappingSetup.getId() != currentDefault.getId() && mappingSetup.isDefaultSetup()){\n\t\t\t\t\tcurrentDefault.setDefaultSetup(false);\n\t\t\t\t\tmappingSetupDao.updateMappingSetup(currentDefault);\n\t\t\t\t\tLOG.debug(\"Changed default mapping setup to \" + mappingSetup.getName());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(attachedObject == null){\n\t\t\t\tmappingSetupDao.saveMappingSetup(mappingSetup);\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmappingSetupDao.updateMappingSetup(mappingSetup);\n\t\t\t}\n\t\t\tui.removeAll(fields.tblSources);\n\t\t\tfor(MappingSetup m : mappingSetupDao.getAllSetupItems()) {\n\t\t\t\tui.add(fields.tblSources, getRow(m));\n\t\t\t}\n\t\t}\n\t\tcatch(DuplicateKeyException e){\n\t\t\tLOG.debug(\"Mapping setup parameter already exists\", e);\n\t\t\tui.alert(MappingMessages.getSetupMappingExists());\n\t\t\treturn;\n\t\t}\n\t\tLOG.debug(\"Mapping setup parameter for [\" + mappingSetup.getSourceURL() +\"] created!\");\n\t\t\t\t\n\t\tclearSourceFields(dialog);\n\t\t\n\t\t// If the default map setup has changed, re-initialize the keywords, incidents and map bean so as to reflect the new mapping settings\n\t\tif(currentDefault != null && currentDefault.getId() != mappingSetup.getId()){\n\t\t\tpluginController.showIncidentMap();\n\t\t}\n\t}",
"public void setDialog(Dialog dialog) {\n\t\t\tmDialog = dialog;\n\t\t}",
"public void setDialog(Dialog dialog) {\n\t\t\tmDialog = dialog;\n\t\t}",
"public void setMapBean(MapBean aMap) {\n theMap = aMap;\n }",
"public void setUserMap(Map<Object, Object> userMap) {\n\t\tthis.userMap = userMap;\n\t}",
"private void initDialog() {\n }",
"public void setSession(Map map) {\n\t\tthis.sessionMap=map;\n\t}",
"public void initMap() {\n\t\tmap = new Map();\n\t\tmap.clear();\n\t\tphase = new Phase();\n\t\tmap.setPhase(phase);\n\t\tmapView = new MapView();\n\t\tphaseView = new PhaseView();\n\t\tworldDomiView = new WorldDominationView();\n\t\tcardExchangeView = new CardExchangeView();\n\t\tphase.addObserver(phaseView);\n\t\tphase.addObserver(cardExchangeView);\n\t\tmap.addObserver(worldDomiView);\n\t\tmap.addObserver(mapView);\n\t}",
"void setDialogueManager(IDialogueManager dialogueManager);",
"@Override\n\tpublic void setSession(Map<String, Object> map) {\n\t\tsessionMap=(SessionMap<String, Object>) map;\n\t}",
"public void setDialog(JDialog dialog)\n {\n this.dialog = dialog;\n }",
"@Override\r\n\tpublic void setSession(Map<String, Object> map) {\r\n\t\t sessionMap=(SessionMap<String, Object>)map;\r\n\t\t\r\n\t}",
"public void showMaps() throws Exception{\r\n MapMaintenanceBaseWindow mapMaintenanceBaseWindow = null;\r\n String unitNumber=mdiForm.getUnitNumber();\r\n \r\n if( ( mapMaintenanceBaseWindow = (MapMaintenanceBaseWindow)mdiForm.getFrame(\r\n CoeusGuiConstants.MAPS_BASE_FRAME_TITLE+\" \"+unitNumber))!= null ){\r\n if( mapMaintenanceBaseWindow.isIcon() ){\r\n mapMaintenanceBaseWindow.setIcon(false);\r\n }\r\n mapMaintenanceBaseWindow.setSelected( true );\r\n return;\r\n }\r\n \r\n MapMaintenanceBaseWindowController mapMaintenanceBaseWindowController = new MapMaintenanceBaseWindowController(unitNumber,false);\r\n mapMaintenanceBaseWindowController.display();\r\n \r\n }",
"public void setMap01(){\n\t\tmapSelect = \"map01.txt\";\n\t\treloadMap(mapSelect);\n\t\tsetImg(mapSelect);\n\t}",
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tif(map.isSatellite()){\r\n\t\t\t\t\t\tmap.setSatellite(false);\r\n\t\t\t\t\t\tmap.setStreetView(true);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tmap.setSatellite(true);\r\n\t\t\t\t\t\tmap.setStreetView(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}",
"private void setMapView()\n\t{\n\t\tMapContainer.mapView = new MapView(SubMainActivity.this, this.getString(R.string.apiKey));\n\t\tMapContainer.mapView.setClickable(true);\n\t\tMapContainer.mapView.setLayoutParams(new FrameLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));;\n\t}",
"public void set(Object requestor, String field, JDialog comp);",
"public void setDialogStage(Stage dialogStage){\n\t\tthis.dialogStage = dialogStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n _dialogStage = dialogStage;\n }",
"public void setDialogStage(Stage dialogStage) {\n _dialogStage = dialogStage;\n }",
"public ElectionMapWindowHandler(ElectionMapViewer initView)\r\n\t{\r\n\t\tview = initView;\r\n\t}",
"public void setDialogStage(Stage dialogStage) {\r\n this.dialogStage = dialogStage;\r\n }",
"public void setDialogStage(Stage dialogStage) {\r\n this.dialogStage = dialogStage;\r\n }",
"public void setDialogStage(Stage dialogStage) {\r\n this.dialogStage = dialogStage;\r\n }",
"public void setDialogStage(Stage dialogStage) {\r\n this.dialogStage = dialogStage;\r\n }",
"public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _EserviceQuatationRoutingPopup page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n out.write(__oracle_jsp_text[5]);\n out.write(__oracle_jsp_text[6]);\n out.write(__oracle_jsp_text[7]);\n out.write(__oracle_jsp_text[8]);\n out.write(__oracle_jsp_text[9]);\n \n String lstrCtxPath = request.getContextPath();\n List<EserviceNewWebBookingUim> eServiceQuatationRoutingList = (List<EserviceNewWebBookingUim>) session.getAttribute(\"eServiceQuatationRoutingList\");\n if(eServiceQuatationRoutingList != null && !eServiceQuatationRoutingList.isEmpty()){\n System.out.println(\"eServiceQuatationRoutingList.size = \"+eServiceQuatationRoutingList.size());\n }else{\n System.out.println(\"Empty\");\n }\n \n out.write(__oracle_jsp_text[10]);\n {\n org.apache.struts.taglib.html.HtmlTag __jsp_taghandler_1=(org.apache.struts.taglib.html.HtmlTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HtmlTag.class,\"org.apache.struts.taglib.html.HtmlTag\");\n __jsp_taghandler_1.setParent(null);\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[11]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[12]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[13]);\n out.print(lstrCtxPath);\n out.write(__oracle_jsp_text[14]);\n out.print(com.niit.control.web.JSPUtils.getActionMappingURL(\"/serv001SetQuotationRoutingData\", pageContext));\n out.write(__oracle_jsp_text[15]);\n {\n org.apache.struts.taglib.html.FormTag __jsp_taghandler_2=(org.apache.struts.taglib.html.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.FormTag.class,\"org.apache.struts.taglib.html.FormTag action method\");\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\n __jsp_taghandler_2.setAction(\"/serv001\");\n __jsp_taghandler_2.setMethod(\"POST\");\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[16]);\n out.write(__oracle_jsp_text[17]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_3=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name scope\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_2);\n __jsp_taghandler_3.setName(\"quotationNumber\");\n __jsp_taghandler_3.setScope(\"request\");\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,3);\n }\n out.write(__oracle_jsp_text[18]);\n {\n org.apache.struts.taglib.logic.NotEmptyTag __jsp_taghandler_4=(org.apache.struts.taglib.logic.NotEmptyTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.NotEmptyTag.class,\"org.apache.struts.taglib.logic.NotEmptyTag name scope\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_2);\n __jsp_taghandler_4.setName(\"eServiceQuatationRoutingList\");\n __jsp_taghandler_4.setScope(\"session\");\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[19]);\n out.write(__oracle_jsp_text[20]);\n {\n org.apache.struts.taglib.bean.DefineTag __jsp_taghandler_5=(org.apache.struts.taglib.bean.DefineTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.DefineTag.class,\"org.apache.struts.taglib.bean.DefineTag id name scope\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_4);\n __jsp_taghandler_5.setId(\"quatationRoutingList\");\n __jsp_taghandler_5.setName(\"eServiceQuatationRoutingList\");\n __jsp_taghandler_5.setScope(\"session\");\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,4);\n }\n java.lang.Object quatationRoutingList = null;\n quatationRoutingList = (java.lang.Object) pageContext.findAttribute(\"quatationRoutingList\");\n out.write(__oracle_jsp_text[21]);\n {\n org.apache.struts.taglib.logic.IterateTag __jsp_taghandler_6=(org.apache.struts.taglib.logic.IterateTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.IterateTag.class,\"org.apache.struts.taglib.logic.IterateTag id indexId name type\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_4);\n __jsp_taghandler_6.setId(\"eserviceNewWebBookingUim\");\n __jsp_taghandler_6.setIndexId(\"rowIndex\");\n __jsp_taghandler_6.setName(\"quatationRoutingList\");\n __jsp_taghandler_6.setType(\"com.rclgroup.dolphin.rcl.web.eservice.actionform.EserviceNewWebBookingUim\");\n com.rclgroup.dolphin.rcl.web.eservice.actionform.EserviceNewWebBookingUim eserviceNewWebBookingUim = null;\n java.lang.Integer rowIndex = null;\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_6,__jsp_tag_starteval,out);\n do {\n eserviceNewWebBookingUim = (com.rclgroup.dolphin.rcl.web.eservice.actionform.EserviceNewWebBookingUim) pageContext.findAttribute(\"eserviceNewWebBookingUim\");\n rowIndex = (java.lang.Integer) pageContext.findAttribute(\"rowIndex\");\n out.write(__oracle_jsp_text[22]);\n {\n org.apache.struts.taglib.bean.DefineTag __jsp_taghandler_7=(org.apache.struts.taglib.bean.DefineTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.DefineTag.class,\"org.apache.struts.taglib.bean.DefineTag id value\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_6);\n __jsp_taghandler_7.setId(\"newRowIndex\");\n __jsp_taghandler_7.setValue((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${rowIndex+1}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,5);\n }\n java.lang.String newRowIndex = null;\n newRowIndex = (java.lang.String) pageContext.findAttribute(\"newRowIndex\");\n out.write(__oracle_jsp_text[23]);\n out.write(__oracle_jsp_text[24]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.pol}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[25]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.pod}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[26]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.originCountry}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[27]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.destinationCountry}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[28]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.placeOfReceipt}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[29]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.portOfLoading}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[30]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.portOfDischarge}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[31]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.placeOfDelivery}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[32]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.shipmentType}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[33]);\n out.write( (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${eserviceNewWebBookingUim.socCocUserFlag}\",java.lang.String.class, __ojsp_varRes, null));\n out.write(__oracle_jsp_text[34]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_8=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_6);\n __jsp_taghandler_8.setName(\"newRowIndex\");\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,5);\n }\n out.write(__oracle_jsp_text[35]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_9=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_6);\n __jsp_taghandler_9.setName(\"newRowIndex\");\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,5);\n }\n out.write(__oracle_jsp_text[36]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_10=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_6);\n __jsp_taghandler_10.setName(\"eserviceNewWebBookingUim\");\n __jsp_taghandler_10.setProperty(\"originCountry\");\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,5);\n }\n out.write(__oracle_jsp_text[37]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_11=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_6);\n __jsp_taghandler_11.setName(\"eserviceNewWebBookingUim\");\n __jsp_taghandler_11.setProperty(\"destinationCountry\");\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,5);\n }\n out.write(__oracle_jsp_text[38]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_12=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_6);\n __jsp_taghandler_12.setName(\"eserviceNewWebBookingUim\");\n __jsp_taghandler_12.setProperty(\"placeOfReceipt\");\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,5);\n }\n out.write(__oracle_jsp_text[39]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_13=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_6);\n __jsp_taghandler_13.setName(\"eserviceNewWebBookingUim\");\n __jsp_taghandler_13.setProperty(\"portOfLoading\");\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,5);\n }\n out.write(__oracle_jsp_text[40]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_14=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_6);\n __jsp_taghandler_14.setName(\"eserviceNewWebBookingUim\");\n __jsp_taghandler_14.setProperty(\"portOfDischarge\");\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,5);\n }\n out.write(__oracle_jsp_text[41]);\n {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_15=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_6);\n __jsp_taghandler_15.setName(\"eserviceNewWebBookingUim\");\n __jsp_taghandler_15.setProperty(\"placeOfDelivery\");\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,5);\n }\n out.write(__oracle_jsp_text[42]);\n } while (__jsp_taghandler_6.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,4);\n }\n out.write(__oracle_jsp_text[43]);\n } while (__jsp_taghandler_4.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,3);\n }\n out.write(__oracle_jsp_text[44]);\n {\n org.apache.struts.taglib.logic.EmptyTag __jsp_taghandler_16=(org.apache.struts.taglib.logic.EmptyTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EmptyTag.class,\"org.apache.struts.taglib.logic.EmptyTag name scope\");\n __jsp_taghandler_16.setParent(__jsp_taghandler_2);\n __jsp_taghandler_16.setName(\"eServiceQuatationRoutingList\");\n __jsp_taghandler_16.setScope(\"session\");\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[45]);\n } while (__jsp_taghandler_16.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16,3);\n }\n out.write(__oracle_jsp_text[46]);\n {\n String __url=OracleJspRuntime.toStr(\"../common/tiles/pagination.jsp\");\n __url=OracleJspRuntime.genPageUrl(__url,request,response,new String[] {\"formName\" } ,new String[] {OracleJspRuntime.toStr(\"feserv01\") } );\n // Include \n pageContext.include( __url,false);\n if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) return;\n }\n\n out.write(__oracle_jsp_text[47]);\n } while (__jsp_taghandler_2.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,2);\n }\n out.write(__oracle_jsp_text[48]);\n } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n out.write(__oracle_jsp_text[49]);\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }",
"public void setMap(Map map) {\r\n\t\tthis.map = map;\r\n\t\tsmap.setMap(map);\r\n\t}",
"public void setDefaultHelperProps(Map map) {\n this.defaultHelperProps = map;\n }",
"public void setDialogStage(Stage dialogStage) {\n this.dialogStage = dialogStage;\n }",
"public void setDialogStage(Stage dialogStage) {\n this.dialogStage = dialogStage;\n }",
"public void setDialogStage(Stage dialogStage) {\n this.dialogStage = dialogStage;\n }",
"public void setDialogStage(Stage dialogStage) {\r\n\t\tthis.dialogStage = dialogStage;\r\n\t}",
"@Override\n public void afterPropertiesSet() {\n // TODO: instead of autowiring initialize page objects with proxies\n try {\n Field mapField = Validator.class.getDeclaredField(\"map\");\n mapField.setAccessible(true);\n mapField.set(validator, map);\n\n Field uiField = Validator.class.getDeclaredField(\"ui\");\n uiField.setAccessible(true);\n uiField.set(validator, ui);\n } catch (ReflectiveOperationException e) {\n throw new RuntimeException(\"Could not instantiate the page object!\", e);\n }\n }",
"private void initUI() {\t\t\n\t\t\n\t\t/* Get a handle to the Map Fragment and to \n\t\t * the Map object */\t\t\t\t\n\t\tmvMap = ((MapFragment) getFragmentManager()\n\t\t\t\t.findFragmentById(R.id.frMap)).getMap();\n\t\t\n\t\t/* Enables the my-location layer in the map */\n\t\tmvMap.setMyLocationEnabled(true);\n\t\t\n\t\t/* Disable my-location button */\n\t\tmvMap.getUiSettings().setMyLocationButtonEnabled(false);\n\t\t\n\t}",
"@Override\n\tpublic void setSession(Map<String, Object> arg0) {\n\t\tmap=arg0;\n\t\t\n\t\t\n\t}",
"private void init() {\n dominator = \"\";\n firstBlood = false;\n jLabel1.setIcon(new ImageIcon(getClass().getResource(\"/multiagent/resources/title.jpg\")));\n dialog = new ConfigurationDlg(this, true);\n setTitle(\"Game server\");\n agentList = new ArrayList<>();\n playerCount = 0;\n running = true;\n aborted = true;\n playersAgentsMap = new HashMap<>();\n iPlayerList = new HashMap<>();\n agentsOnSpawn = new String[][]{{\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}};\n String selected = String.valueOf(dialog.getFieldDimension().getSelectedItem());\n String selected2 = String.valueOf(dialog.getTightnessField().getSelectedItem());\n playingField = new PlayingField(Integer.parseInt(dialog.getResourceField().getText()),\n Integer.parseInt(selected.substring(selected.indexOf(\"x\") + 1)),\n Integer.parseInt(selected2.substring(0, selected2.indexOf(\"%\"))),\n agentList,\n playerCount,\n Integer.parseInt(String.valueOf(dialog.getCountAgents().getSelectedItem())));\n setLocationRelativeTo(null);\n pack();\n }",
"@Override\n\tpublic void setSession(Map<String, Object> arg0) {\n\t\tmap=arg0;\n\t\t\n\t}",
"private void initDialogView(View dialogView) {\n btnTidak = (Button) dialogView.findViewById(R.id.btnTidak);\n btnYa = (Button) dialogView.findViewById(R.id.btnYa);\n imgClosePopup = (ImageView) dialogView.findViewById(R.id.imgClosePopup);\n txtTitle = (TextView) dialogView.findViewById(R.id.txtTitle);\n iconTitle = (ImageView) dialogView.findViewById(R.id.iconTitle);\n }",
"public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t\t}",
"protected void prepareComponentView(final Map<String, Object> map, final Locale locale) throws JSONException {\n }",
"private void showMapTypeSelectorDialog() {\n final String fDialogTitle = getActivity().getString(R.string.select_map);\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setTitle(fDialogTitle);\n\n // Find the current map type to pre-check the item representing the current state.\n int checkItem = map.getMapType() - 1;\n\n // Add an OnClickListener to the dialog, so that the selection will be handled.\n builder.setSingleChoiceItems(\n MAP_TYPE_ITEMS,\n checkItem,\n new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int item) {\n // Locally create a finalised object.\n Log.d(\"DIALOG\", String.valueOf(item));\n // Perform an action depending on which item was selected.\n switch (item) {\n case 0:\n map.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n break;\n case 1:\n map.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n break;\n case 2:\n map.setMapType(GoogleMap.MAP_TYPE_TERRAIN);\n break;\n case 3:\n map.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n break;\n default:\n break;\n }\n dialog.dismiss();\n }\n }\n );\n\n // Build the dialog and show it.\n AlertDialog fMapTypeDialog = builder.create();\n fMapTypeDialog.setCanceledOnTouchOutside(true);\n fMapTypeDialog.show();\n }",
"public void setPlugboard(String pbMap){\r\n\t\tplugboard = new Plugboard(pbMap);\r\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\tthis.dialogStage = dialogStage;\n\t}",
"public void setDialogStage(Stage dialogStage) {\n\t\t\t\tthis.dialogStage = dialogStage;\n\t\t\t}",
"public void setNewViewMap(String inpt,int passedCommunicationTurn) {\n\t\tString[] msgs = inpt.split(\" \");\n\t\tint mapNo = new Integer(msgs[0]).intValue();\n\t\tint player = new Integer(msgs[1]).intValue();\n\t\tMethodParameter parameters = new MethodParameter();\n\t\tparameters.setNewViewMap(mapNo, player);\n\t\tif(passedCommunicationTurn != -1){\n\t\t\tcommands.add(MethodCallup.NEWVIEWMAP, parameters, communicationTurn);\n\t\t}else{\n\t\t\tcommands.add(MethodCallup.NEWVIEWMAP, parameters, passedCommunicationTurn);\n\t\t}\n\t}",
"@Override\n\tpublic void setSession(Map<String, Object> map) {\n\t\tthis.session=map;\n\t\t\n\t}",
"public void displayMap() {\n MapMenuView mapMenu = new MapMenuView();\r\n mapMenu.display();\r\n \r\n }",
"public void setMapEditor(MapEditor m)\n\t{\n\t\tremove(mapEditor);\n\t\tthis.mapEditor = m;\n\t\tadd(mapEditor, BorderLayout.CENTER);\n\t}",
"void setHashMap();",
"public void dialogRequest(ArrayList<DialogStage> dialogs){\r\n this.push(new DialogState(dialogs,this));\r\n }",
"void setContent(Map<String, Object> content);",
"public void setMap2D(FXMap map);",
"@Override\n\tprotected void initializeUIMap()\n\t{\n\t\tlibManhattanCommonFunctions = new ManhattanCommonFunctions(scriptHelper);\n\t\tif (getCurrentPage(\"PackWavePage\"))\n\t\t\treport.updateTestLog(\"Pack Waves Page verification\", \"Pack Waves loaded as expected.\", Status.DONE);\n\t\telse\n\t\t\treport.updateTestLog(\"Pack Waves Page verification\", \"Pack Waves page loaded not loaded!!!!\", Status.FAIL);\n\t}",
"private void setViews() {\n lv.setAdapter(adapter);\n\n dialog2 = new MiddleDialog2(INSTANCE, getResources().getString(R.string.title), getResources().getString(R.string.value), new MiddleDialog2.onBottonListener() {\n @Override\n public void onOk() {\n\n finish();\n }\n },R.style.registDialog);\n }",
"private void setExtraMapElements() {\n \t\tif (mGoogleMap == null && mLocationsList == null) {\n \t\t\treturn;\n \t\t}\n \t\tfor (int i = 0; i < mLocationsList.size(); i++) {\n \t\t\tMarkerOptions marker = new MarkerOptions().position(mLocationsList\n \t\t\t\t\t.get(i).mPosition);\n \t\t\tif (mLocationsList.get(i).mIcono != 0) {\n \t\t\t\tmarker.icon(BitmapDescriptorFactory.fromResource(mLocationsList\n \t\t\t\t\t\t.get(i).mIcono));\n \t\t\t}\n \t\t\tif (mLocationsList.get(i).mContenido.mNombre != null) {\n \t\t\t\tmarker.title(mLocationsList.get(i).mContenido.mNombre);\n \t\t\t}\n \t\t\tif (mLocationsList.get(i).mContenido.mSnippet != null) {\n \t\t\t\tmarker.snippet(mLocationsList.get(i).mContenido.mSnippet);\n \t\t\t}\n \n \t\t\tmGoogleMap.addMarker(marker);\n \t\t}\n \t\tmGoogleMap.setInfoWindowAdapter(new MarkerAdapter());\n \t}",
"public void showmap() {\n MapForm frame = new MapForm(this.mapLayout);\n frame.setSize(750, 540);\n frame.setLocationRelativeTo(null);\n frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n frame.setVisible(true);\n }",
"private void initViews(){\n map = findViewById(R.id.map);\n }",
"private void setUpMap() {\n mMap.getUiSettings().setZoomControlsEnabled(false);\n \n // Setting an info window adapter allows us to change the both the\n // contents and look of the\n // info window.\n mMap.setInfoWindowAdapter(new CustomInfoWindowAdapter(getLayoutInflater()));\n \n // Add lots of markers to the map.\n addMarkersToMap();\n \n }",
"public void setDisplayDialog(String dialog)\n\t{\n\t\tdisplayDialog = dialog;\n\t\trepaint();\n\t}",
"private void setupWebView(){\n \t\n\t\twebView = (WebView) findViewById(R.id.webview);\n\t\twebView.getSettings().setJavaScriptEnabled(true);\n\t\t/** Create an WebViewClient to add and remove an progress dialog*/\n\t\twebView.setWebViewClient(new WebViewClient() {\n\t\t\t@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tshowDialog(PROGRESS_DIALOG);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onPageFinished(WebView view, String url) {\n\t\t\t\tremoveDialog(PROGRESS_DIALOG); \n\t\t\t}\n\t\t});\n\t\twebView.loadUrl(MAP_URL);\n\t}",
"public List setProtocolShow(Map<String, String> map) {\n\t\treturn apMessageDao.setProtocolShow(map);\r\n\t}",
"public LoginPageObject(WebDriver mappingDriver) {\r\n\t\tdriver = mappingDriver;\r\n\t}",
"@Override\n public void run() {\n AlertDialog.Builder dialog = new AlertDialog.Builder( getMapController().getContext());\n dialog.setTitle(geoCode.getDisplayName());\n dialog.show();\n }",
"public static final void resetExpTypeBean() {\r\n \tFacesContext ctx = FacesContext.getCurrentInstance();\r\n ctx.getExternalContext().getSessionMap().put(\"ExpTypeIdentify\", new ExpTypeIdentify());\r\n ctx.getExternalContext().getSessionMap().put(\"ExpTypeMigrate\", new ExpTypeMigrate());\r\n ctx.getExternalContext().getSessionMap().put(\"ExpTypeViewer\", new ExpTypeViewer());\r\n ctx.getExternalContext().getSessionMap().put(\"ExpTypeExecutablePP\", new ExpTypeExecutablePP());\r\n }",
"@Override\n\tprotected void initializeUIMap()\n\t{\n\t\tlibManhattanCommonFunctions = new ManhattanCommonFunctions(scriptHelper);\n\t\tif (getCurrentPage(\"WavesPage\"))\n\t\t\treport.updateTestLog(\"Waves Page verification\", \"Waves loaded as expected.\", Status.DONE);\n\t\telse\n\t\t\treport.updateTestLog(\"Waves Page verification\", \"Waves page loaded not loaded!!!!\", Status.FAIL);\n\t}",
"public HospitalMap(odms.view.user.HospitalMap view) {\n this.view = view;\n }",
"private void setMap(final Map map) {\n\t\tthis.map = map;\n\t\tthis.setChanged();\n\t\tthis.notifyObservers();\n\t}",
"public PHConstDialog() {\n\t\tinitComponents();\n\t}",
"public void init() {\n this.window = new PWWindow(this.project);\n }",
"public final void setMap(MapWidget mapWidget) {\n impl.setMap(mapWidget);\n }",
"public void actualizar() {\n\n try {\n\n servtpDocumento.actualizarTipoDocumento(tipoDocumento);\n req = RequestContext.getCurrentInstance();\n req.execute(\"PF('dialogoTpDocuActualizar').hide();\");//Cierra el dialogo para actualizar\n req = null;\n tipoDocumento = new TipoDocumento();\n MensajesFaces.informacion(\"Actualizado\", \"Exitoso\");\n\n } catch (Exception e) {\n MensajesFaces.error(\"Error\", \"detalle\" + e);\n\n }\n\n }",
"public void setContexto() {\n this.contexto = FacesContext.getCurrentInstance().getViewRoot().getLocale().toString();\r\n // this.contexto =httpServletRequest.getLocale().toString();\r\n \r\n \r\n //obtenemos el HttpServletRequest de la peticion para poder saber\r\n // el locale del cliente\r\n HttpServletRequest requestObj = (HttpServletRequest) \r\n FacesContext.getCurrentInstance().getExternalContext().getRequest();\r\n \r\n //Locale del cliente\r\n this.contextoCliente = requestObj.getLocale().toString();\r\n \r\n \r\n //Asignamos al locale de la aplicacion el locale del cliente\r\n FacesContext.getCurrentInstance().getViewRoot().setLocale(requestObj.getLocale());\r\n }",
"public EditDialog(Context context, MSDialog dialog)\n {\n super(context);\n \n this.ecu = ApplicationSettings.INSTANCE.getEcuDefinition();\n this.dialog = dialog;\n }",
"public void setMapObject(Map<String, Object> mapObject) {\r\n\t\tthis.objectMap = mapObject;\r\n\t}",
"public void set(String msg) {\n \teingabeString = msg;\r\n JOptionPane.showMessageDialog(null, \"nashorn -> java: \" + msg);\r\n }",
"public void setActiveMap(IMap map) {\n\t\tm_activeMap = map;\n\t\t\n\t\tFile imageLocation = map.getImage();\n\t\tif (! imageLocation.exists()) {\n\t\t\tFile altImage = map.getAltImage();\n\t\t\tif ( altImage != null && altImage.exists()) {\n\t\t\t\timageLocation = altImage;\n\t\t\t}\n\t\t}\n\t\t\n\t\tloadImage(imageLocation);\n\t\tupdateZoomCanvas();\n\t}"
] | [
"0.57514375",
"0.54437166",
"0.5373724",
"0.53679633",
"0.53125805",
"0.530364",
"0.52881855",
"0.52755064",
"0.5252825",
"0.5245053",
"0.5233707",
"0.5215079",
"0.52065945",
"0.51986986",
"0.5098378",
"0.5098378",
"0.5091073",
"0.50670534",
"0.5048051",
"0.5043892",
"0.5043892",
"0.50305194",
"0.5017873",
"0.49988237",
"0.49888384",
"0.49783447",
"0.49559733",
"0.49500492",
"0.49484655",
"0.49402386",
"0.49351016",
"0.49285063",
"0.49247232",
"0.4923961",
"0.49214315",
"0.49130073",
"0.48796645",
"0.48752996",
"0.48752996",
"0.48722357",
"0.48469484",
"0.48469484",
"0.48469484",
"0.48469484",
"0.48457947",
"0.4832295",
"0.47964898",
"0.47959277",
"0.47959277",
"0.47959277",
"0.47955197",
"0.47911054",
"0.479095",
"0.4776202",
"0.4774295",
"0.47741073",
"0.47658256",
"0.47649017",
"0.47636208",
"0.4759022",
"0.47568431",
"0.4752893",
"0.4752893",
"0.4752893",
"0.4752893",
"0.4752893",
"0.4752893",
"0.47486833",
"0.47401124",
"0.4730429",
"0.47179815",
"0.47145882",
"0.4700895",
"0.4690856",
"0.46818766",
"0.4681292",
"0.4679637",
"0.4673827",
"0.4671165",
"0.46667016",
"0.46546367",
"0.46542862",
"0.46506158",
"0.46485814",
"0.46469098",
"0.4646587",
"0.4642647",
"0.4639027",
"0.46206117",
"0.46171308",
"0.46100846",
"0.46080136",
"0.46042404",
"0.46006152",
"0.45992202",
"0.45936924",
"0.45788926",
"0.45777202",
"0.45732388",
"0.45595402"
] | 0.7441334 | 0 |
Collect data from the RDC layer and post it into the viewsMap according to the RDCstruts interface contract | public void doTag()
throws IOException, JspException, JspTagException {
JspWriter out = context.getOut();
if (!RDCUtils.isStringEmpty(namelist)) {
// (1) Access/create the views map
Map viewsMap = (Map) context.getSession().
getAttribute(ATTR_VIEWS_MAP);
if (viewsMap == null) {
viewsMap = new HashMap();
context.getSession().setAttribute(ATTR_VIEWS_MAP, viewsMap);
}
// (2) Populate form data
Map formData = new HashMap();
StringTokenizer nameToks = new StringTokenizer(namelist, " ");
while (nameToks.hasMoreTokens()) {
String name = nameToks.nextToken();
formData.put(name, context.getAttribute(name));
}
// (3) Store the form data according to the RDC-struts
// interface contract
String key = "" + context.hashCode();
viewsMap.put(key, formData);
context.getRequest().setAttribute(ATTR_VIEWS_MAP_KEY, key);
}
if (!RDCUtils.isStringEmpty(clearlist)) {
// (4) Clear session state based on the clearlist
if (dialogMap == null) {
throw new IllegalArgumentException(ERR_NO_DIALOGMAP);
}
StringTokenizer clearToks = new StringTokenizer(clearlist, " ");
outer:
while (clearToks.hasMoreTokens()) {
String clearMe = clearToks.nextToken();
String errMe = clearMe;
boolean cleared = false;
int dot = clearMe.indexOf('.');
if (dot == -1) {
if(dialogMap.containsKey(errMe)) {
dialogMap.remove(errMe);
cleared = true;
}
} else {
// TODO - Nested data model re-initialization
BaseModel target = null;
String childId = null;
while (dot != -1) {
try {
childId = clearMe.substring(0,dot);
if (target == null) {
target = (BaseModel) dialogMap.get(childId);
} else {
if ((target = RDCUtils.getChildDataModel(target,
childId)) == null) {
break;
}
}
clearMe = clearMe.substring(dot+1);
dot = clearMe.indexOf('.');
} catch (Exception e) {
MessageFormat msgFormat =
new MessageFormat(ERR_CANNOT_CLEAR);
log.warn(msgFormat.format(new Object[] {errMe}));
continue outer;
}
}
if (target != null) {
cleared = RDCUtils.clearChildDataModel(target,
clearMe);
}
}
if (!cleared) {
MessageFormat msgFormat =
new MessageFormat(ERR_CANNOT_CLEAR);
log.warn(msgFormat.format(new Object[] {errMe}));
}
}
}
// (5) Forward request
try {
context.forward(submit);
} catch (ServletException e) {
// Need to investigate whether refactoring this
// try to provide blanket coverage makes sense
MessageFormat msgFormat = new MessageFormat(ERR_FORWARD_FAILED);
// Log error and send error message to JspWriter
out.write(msgFormat.format(new Object[] {submit, namelist}));
log.error(msgFormat.format(new Object[] {submit, namelist}));
} // end of try-catch
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface WaterAndSandDetailsView extends BaseView {\n void successData(Map<String, String> data);\n\n}",
"@LogMethod\r\n private void publishDataToVisitBasedStudy()\r\n {\r\n log(\"Prepare visit map to check PTID counts in study navigator.\");\r\n\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_STUDY2);\r\n\r\n _studyHelper.goToManageVisits().goToImportVisitMap();\r\n setFormElement(Locator.name(\"content\"),\r\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\r\n \"<visitMap xmlns=\\\"http://labkey.org/study/xml\\\">\\n\" +\r\n \" <visit label=\\\"Test Visit1\\\" typeCode=\\\"X\\\" sequenceNum=\\\"6.0\\\" maxSequenceNum=\\\"13.0\\\"/>\\n\" +\r\n \" <visit label=\\\"Test Visit2\\\" typeCode=\\\"X\\\" sequenceNum=\\\"50.0\\\" maxSequenceNum=\\\"70.0\\\"/>\\n\" +\r\n \" <visit label=\\\"Test Visit3\\\" typeCode=\\\"X\\\" sequenceNum=\\\"302.0\\\" maxSequenceNum=\\\"303.0\\\"/>\\n\" +\r\n \"</visitMap>\"\r\n );\r\n clickButton(\"Import\");\r\n\r\n //select the Lab1 folder and view all the data for the test assay\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n clickAndWait(Locator.linkWithText(\"view results\"));\r\n\r\n //select all the data rows and click publish\r\n DataRegionTable table = new DataRegionTable(\"Data\", getDriver());\r\n table.checkAll();\r\n table.clickHeaderButton(\"Copy to Study\");\r\n\r\n checkCheckbox(Locator.xpath(\"//input[@id='chooseStudy']\"));\r\n\r\n // Make sure the selected study is Study2\r\n selectOptionByText(Locator.xpath(\"//select[@name='targetStudy']\"), getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY2));\r\n\r\n clickButton(\"Next\");\r\n assertTextPresent(\"Copy to \" + TEST_ASSAY_FLDR_STUDY2 + \" Study: Verify Results\");\r\n\r\n //populate initial set of values and verify the timepoint preview column\r\n String[] visits = new String[]{\"302\", \"33\", \"4\", \"70\"};\r\n int idx = 1;\r\n for (String v : visits)\r\n {\r\n setFormElement(Locator.xpath(\"(//input[@name='visitId'])[\" + idx + \"]\"), v);\r\n idx++;\r\n }\r\n\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[1]\"), \"new1\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[2]\"), \"new2\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[3]\"), \"new3\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[4]\"), \"new4\");\r\n\r\n DataRegionTable copyStudy = new DataRegionTable(\"Data\", getDriver());\r\n copyStudy.clickHeaderButton(\"Re-Validate\");\r\n\r\n //validate timepoints:\r\n assertElementPresent(Locator.xpath(\"//td[text()='Test Visit3' and following-sibling::td/a[text()='AAA07XMC-02']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='33.0' and following-sibling::td/a[text()='AAA07XMC-04']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='4.0' and following-sibling::td/a[text()='AAA07XSF-02']]\"));\r\n\r\n assertElementPresent(Locator.xpath(\"//td[text()='Test Visit2' and following-sibling::td/a[text()='AssayTestControl1']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Test Visit1' and following-sibling::td/a[text()='AssayTestControl2']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Test Visit1' and following-sibling::td/a[text()='BAQ00051-09']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Test Visit1' and following-sibling::td/a[text()='BAQ00051-08']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Test Visit1' and following-sibling::td/a[text()='BAQ00051-11']]\"));\r\n\r\n copyStudy.clickHeaderButton(\"Copy to Study\");\r\n\r\n log(\"Verifying that the data was published\");\r\n assertTextPresent(\r\n TEST_RUN1_COMMENTS,\r\n \"2000-01-01\");\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Study Navigator\"));\r\n\r\n log(\"Test participant counts and row counts in study overview\");\r\n String[] row2 = new String[]{TEST_ASSAY, \"9\", \" \", \" \", \" \", \"1\", \" \", \" \", \"1\", \" \", \" \", \"4\", \" \", \" \", \" \", \" \", \"1\", \"1\", \" \", \" \", \" \", \"1\", \" \", \" \", \" \", \" \", \" \"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n // Manually click the checkbox -- normal checkCheckbox() method doesn't seem to work for checkbox that reloads using onchange event\r\n clickAndWait(Locator.checkboxByNameAndValue(\"visitStatistic\", \"RowCount\"));\r\n row2 = new String[]{TEST_ASSAY, \"9 / 9\", \" \", \" \", \" \", \"1 / 1\", \" \", \" \", \"1 / 1\", \" \", \" \", \"4 / 4\", \" \", \" \", \" \", \" \", \"1 / 1\", \"1 / 1\", \" \", \" \", \" \", \"1 / 1\", \" \", \" \", \" \", \" \", \" \"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n\r\n log(\"Test that correct timepoints were created\");\r\n\r\n clickTab(\"Overview\");\r\n _studyHelper.goToManageVisits();\r\n assertTextPresent(\r\n \"Test Visit1\",\r\n \"6.0 - 13.0\",\r\n \"Test Visit2\",\r\n \"50.0 - 70.0\",\r\n \"Test Visit3\",\r\n \"302.0 - 303.0\");\r\n }",
"public interface ListFrgView extends BaseView {\n void getDpSuccess(List<Map<String, Object>> testModel);\n}",
"private void populateViewCollections() {\n\n\t}",
"@LogMethod\r\n private void publishData()\r\n {\r\n log(\"Prepare visit map to check PTID counts in study navigator.\");\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_STUDY1);\r\n _studyHelper.goToManageVisits().goToImportVisitMap();\r\n setFormElement(Locator.name(\"content\"),\r\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\r\n \"<visitMap xmlns=\\\"http://labkey.org/study/xml\\\">\\n\" +\r\n \" <visit label=\\\"Test Visit\\\" typeCode=\\\"X\\\" sequenceNum=\\\"301.0\\\" maxSequenceNum=\\\"302.0\\\"/>\\n\" +\r\n \"</visitMap>\");\r\n clickButton(\"Import\");\r\n\r\n log(\"Publishing the data as the PI\");\r\n\r\n //impersonate the PI\r\n impersonate(TEST_ASSAY_USR_PI1);\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n clickAndWait(Locator.linkWithText(\"view results\"));\r\n\r\n //select all the data rows and click publish\r\n DataRegionTable table = new DataRegionTable(\"Data\", this);\r\n table.checkAllOnPage();\r\n table.clickHeaderButton(\"Copy to Study\");\r\n\r\n //the target study selected before was Study2, but the PI is not an editor there\r\n //so ensure that system has correctly caught this fact and now asks the PI to\r\n //select a different study, and lists only those studies in which the PI is\r\n //an editor\r\n\r\n //ensure warning\r\n assertTextPresent(\"WARNING: You do not have permissions to copy to one or more of the selected run's associated studies.\");\r\n\r\n //ensure that Study2 and Study 3 are not available in the target study drop down\r\n assertElementNotPresent(Locator.xpath(\"//select[@name='targetStudy']/option[.='\" +\r\n getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY2) + \"']\"));\r\n assertElementNotPresent(Locator.xpath(\"//select[@name='targetStudy']/option[.='\" +\r\n getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY3) + \"']\"));\r\n\r\n //Study1 is the only one left, so it should be there and already be selected\r\n assertElementPresent(Locator.xpath(\"//select[@name='targetStudy']/option[.='\" +\r\n getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY1) + \"']\"));\r\n\r\n // Make sure the selected study is Study1\r\n selectOptionByText(Locator.xpath(\"//select[@name='targetStudy']\"), getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY1));\r\n\r\n clickButton(\"Next\");\r\n assertTextPresent(\"Copy to \" + TEST_ASSAY_FLDR_STUDY1 + \" Study: Verify Results\");\r\n\r\n setFormElement(Locator.name(\"visitId\"), \"301.5\");\r\n clickButton(\"Copy to Study\");\r\n\r\n log(\"Verifying that the data was published\");\r\n _customizeViewsHelper.openCustomizeViewPanel();\r\n _customizeViewsHelper.addColumn(\"QCState\", \"QC State\");\r\n _customizeViewsHelper.applyCustomView();\r\n assertTextPresent(\r\n \"Pending Review\",\r\n TEST_RUN1_COMMENTS,\r\n \"2000-01-01\");\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Study Navigator\"));\r\n\r\n log(\"Test participant counts and row counts in study overview\");\r\n String[] row2 = new String[]{TEST_ASSAY, \"8\", \"1\", \"1\", \"1\", \"1\", \"1\", \"1\", \"2\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n // Manually click the checkbox -- normal checkCheckbox() method doesn't seem to work for checkbox that reloads using onchange event\r\n clickAndWait(Locator.checkboxByNameAndValue(\"visitStatistic\", \"RowCount\"));\r\n row2 = new String[]{TEST_ASSAY, \"8 / 9\", \"1 / 1\", \"1 / 1\", \"1 / 1\", \"1 / 1\", \"1 / 1\", \"1 / 1\", \"2 / 3\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n doAndWaitForPageToLoad(() -> uncheckCheckbox(Locator.checkboxByNameAndValue(\"visitStatistic\", \"ParticipantCount\")));\r\n row2 = new String[]{TEST_ASSAY, \"9\", \"1\", \"1\", \"1\", \"1\", \"1\", \"1\", \"3\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n\r\n clickAndWait(Locator.linkWithText(\"9\"));\r\n\r\n assertElementPresent(Locator.linkWithText(\"999320885\"), 1);\r\n assertElementPresent(Locator.linkWithText(\"999320885\"), 1);\r\n assertTextPresent(\r\n \"301.0\",\r\n \"9.0\",\r\n \"8.0\",\r\n TEST_RUN1_COMMENTS,\r\n TEST_RUN2_COMMENTS,\r\n TEST_RUN1,\r\n TEST_RUN2,\r\n \"2000-06-06\",\r\n TEST_ASSAY_RUN_PROP1,\r\n \"18\");\r\n\r\n // test recall\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n waitAndClickAndWait(Locator.linkWithText(\"view copy-to-study history\"));\r\n\r\n // Set a filter so that we know we're recalling SecondRun\r\n DataRegionTable region = new DataRegionTable(\"query\", this);\r\n region.setFilter(\"Comment\", \"Starts With\", \"3 row(s) were copied to a study from the assay\");\r\n doAndWaitForPageToLoad(() -> region.detailsLink(region.getRowIndex(\"Assay/Protocol\", TEST_ASSAY)).click());\r\n\r\n DataRegionTable copyStudy = new DataRegionTable(\"Dataset\", this);\r\n copyStudy.checkAll();\r\n doAndWaitForPageToLoad(() ->\r\n {\r\n copyStudy.clickHeaderButton(\"Recall Rows\");\r\n acceptAlert();\r\n });\r\n assertTextPresent(\"row(s) were recalled to the assay: \" + TEST_ASSAY);\r\n\r\n // Set a filter so that we know we're looking at the copy event for SecondRun again\r\n region.setFilter(\"Comment\", \"Starts With\", \"3 row(s) were copied to a study from the assay\");\r\n\r\n // verify audit entry was adjusted\r\n doAndWaitForPageToLoad(() -> region.detailsLink(region.getRowIndex(\"Assay/Protocol\", TEST_ASSAY)).click());\r\n assertTextPresent(\"All rows that were previously copied in this event have been recalled\");\r\n\r\n stopImpersonating();\r\n }",
"public interface IScenicServiceView extends MvpView {\n void showTicketList(List<TicketDto> ticketDtos,int money);\n\n void applyFreeTeaSuccess();\n\n void showActionInfo(ActionDto actionDto);\n}",
"public interface ISearchView extends IView{\n void showLoadSearchResult(List<Map<String, Object>> data);\n void showLoadSearchHistory(List<SearchHistory> data);\n String getSearch();\n}",
"public interface TravelView extends BaseViewImp {\n void onRefreshData(List<TravelListBean> data);\n\n void onGetMoreData(List<TravelListBean> data);\n}",
"@Override\n public void loadViewContent(PortletRequest request) {\n }",
"public void consumeDataModel(final Map<String, Object> dataModel);",
"public interface ViewMappingService extends GenericService<ViewResourcesMapping, ViewResourcesMappingPK> {\n\n\t/**\n\t * find list of view resources mapping data that matches the given search\n\t * conditions in View_Resources_Mapping table\n\t * @param viewResourceSearchVO an object that contains search conditions\n\t * @return Page list of view resources mapping data\n\t * @throws Exception fail to find list\n\t */\n\tPage getList(ViewResourceSearchVO viewResourceSearchVO) throws Exception;\n\n\t/**\n\t * delete view resources mapping data that match the given\n\t * ViewResourcesMappingPK\n\t * @param list list of ViewResourcesMappingPK\n\t * @throws Exception fail to delete data\n\t */\n\tvoid delete(List<ViewResourcesMappingPK> list) throws Exception;\n\n\t/**\n\t * find View Mapping data that matches the given viewResource ID\n\t * @param viewResourceId View Resource ID\n\t * @return List List of view Mapping data that matches the given\n\t * viewResource ID\n\t * @throws Exception fail to find list\n\t */\n\tList<ViewResourcesMapping> get(String viewResourceId) throws Exception;\n\n\t/**\n\t * delete View Mapping data that matches the given viewResource ID\n\t * @param viewResourceId View Resource ID\n\t * @return ViewResourceMapping return an Object if deleting finish\n\t * successfully\n\t * @throws Exception fail to delete data\n\t */\n\tViewResourcesMapping save(ViewResourcesMapping[] viewResourcesMapping) throws Exception;\n\t\n\tViewResourcesMapping save(ViewResourcesMapping viewResourcesMapping) throws Exception;\n\t\n\tvoid removeAllViewResourceMapping() throws Exception;\n}",
"private void setUpViews() {\n\n updateFooterCarInfo();\n updateFooterUsrInfo();\n\n\n setResultActionListener(new ResultActionListener() {\n @Override\n public void onResultAction(AppService.ActionType actionType) {\n if (ModelManager.getInstance().getGlobalInfo() != null) {\n GlobalInfo globalInfo = ModelManager.getInstance().getGlobalInfo();\n\n switch (actionType) {\n case CarInfo:\n updateFooterCarInfo();\n break;\n case UsrInfo:\n updateFooterUsrInfo();\n break;\n case Charger:\n updateChargeStationList();\n break;\n }\n }\n }\n });\n }",
"public interface SGTView extends IView {\n\n void getSGTHomeData(ApiResponse<List<SGTHomeListEntity>> listApiResponse, String msg, Throwable mThrowable);//赛格通主页列表数据\n\n void getSGTSearchData(ApiResponse<List<FootSSEntity>> listApiResponse, String msg, Throwable mThrowable);//赛格通主页列表数据\n\n void getSearchFootInfoData(ApiResponse<SearchFootEntity> listApiResponse, String msg, Throwable mThrowable);//搜索足环号码\n\n// void getSGTSearchData(List<FootSSEntity> data, String msg);//赛格通足环搜索页\n\n void getFootImg(List<SGTImgEntity> imgDatas, String str);//获取足环照片\n\n void getFootInfo(SGTFootInfoEntity infoData, String str);//获取足环详情\n\n void getGZImgEntity(List<GZImgEntity> gzImgData, String str);//获取鸽主图片\n\n void uploadResults(ApiResponse<Object> dateApiResponse, String msg);//上传图片结果\n\n void getTagData(List<TagEntitiy> tagDatas);//获取标签数据\n\n void getGeZhuFootData(ApiResponse<GeZhuFootEntity> listApiResponse, String msg);//获取鸽主下的足环列表\n\n void getUserInfo_SGT(ApiResponse<SGTUserInfo> dataApiResponse, String msg);//获取赛鸽通用户信息\n\n void getSetRpTimeResults(ApiResponse<Object> dataApiResponse, String msg);//设置本届比赛入棚时间(修改足环号码)\n\n void getSetGPKrysResults(ApiResponse<Object> dataApiResponse, String msg);//设置公棚可容羽数\n}",
"@Override\n\tprotected void initViews(View view) {\n\t\tsuper.initViews(view);\n//\t\tsendRequestData();\n\t}",
"@Override\r\n \tpublic void refresh() {\r\n \t\tview.clear();\t\t\r\n \t\t// Fetch the data about this dataset from the server\r\n \t\tnodeService.getNodeJSON(NodeType.LAYER, this.layerId, new AsyncCallback<String>() {\r\n \t\t\t@Override\r\n \t\t\tpublic void onSuccess(String layerJson) {\t\t\t\t\t\t\t\r\n \t\t\t\ttry {\r\n \t\t\t\t\tlayerModel = nodeModelCreator.createLayer(layerJson);\t\t\t\t\t\r\n \t\t\t\t} catch (RestServiceException ex) {\r\n \t\t\t\t\tif(!DisplayUtils.handleServiceException(ex, placeChanger, authenticationController.getLoggedInUser())) {\r\n \t\t\t\t\t\tonFailure(null);\r\n \t\t\t\t\t}\r\n \t\t\t\t\treturn;\r\n \t\t\t\t}\t\t\t\t\t\r\n \t\t\t\t// Load calls that required the model \r\n \t\t\t\tloadLicenseAgreement(layerModel, showDownload);\r\n \t\t\t\tloadPermissionLevel(layerModel);\r\n \t\t\t\tloadDownloadLocations(layerModel, showDownload); \r\n \t\t\t}\r\n \t\t\t\r\n \t\t\t@Override\r\n \t\t\tpublic void onFailure(Throwable caught) {\r\n \t\t\t\tview.showErrorMessage(\"An error occured retrieving this Layer. Please try reloading the page.\");\r\n \t\t\t}\t\t\t\r\n \t\t});\t\t\r\n \t\t\t\t\r\n \t\tloadLayerPreview();\t\t\r\n \t}",
"public interface IPeopleView extends BaseView{\n void oninsertStaffAdd(String data);\n\n void ondeleteStaffAdd(String data);\n\n void onupdateStaffAdd(String data);\n\n void onauditStaffAdd(String data);\n\n void OngetStaffAddList(List<PeopleBean> data);\n\n void ongetStaffAddDetail(PeopleBean data);\n\n\n void onGgetParentDepartmentStaffList(List<MeParentBean> data);\n}",
"public interface IRegionView extends BaseView{\n void onIinsertAreaStudy(String data);\n\n void onDdeleteAreaStudy(String data);\n\n void onDdeleteAreaStudyFile(String data);\n\n void onUupdateAreaStudy(String data);\n\n void OnGgetAreaStudyList(List<AreaStudyBean> data);\n\n void onGgetAreaStudyDetail(AreaStudyBean data);\n\n void onUploadFiles(String[] data);\n\n void onUauditAreaStudy(String data);\n}",
"public interface IReserveView extends IBaseView {\n\n void getReserveSuccess(ReserveResponseBody data);\n}",
"private void collectData() {\n this.collectContest();\n this.collectProblems();\n this.collectPreCollegeParticipants();\n this.collectObservers();\n }",
"@Override\r\n\tpublic Map<String, Object> returnData(Map<String, Object> map,Model model, HttpServletRequest request) {\n\t\treturn null;\r\n\t}",
"public interface IPreSaleView {\n // 把请求下来的数据存储到PreSaleActivity中\n void setDataInActivity(GoodsInStockActivityBean goodsInStockActivityBean);\n}",
"private void getData(){\n mapFStreets = new ArrayList<>();\n mapFAreas = new ArrayList<>();\n mapIcons = new ArrayList<>();\n coastLines = new ArrayList<>();\n //Get a rectangle of the part of the map shown on screen\n bounds.updateBounds(getVisibleRect());\n Rectangle2D windowBounds = bounds.getBounds();\n sorted = zoomLevel >= 5;\n\n coastLines = (Collection<MapFeature>) (Collection<?>) model.getVisibleCoastLines(windowBounds);\n\n Collection < MapData > bigRoads = model.getVisibleBigRoads(windowBounds, sorted);\n mapFStreets = (Collection<MapFeature>)(Collection<?>) bigRoads;\n\n if (drawAttributeManager.isTransport() && zoomLevel > 9)\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>) model.getVisibleLanduse(windowBounds, sorted));\n else if (zoomLevel > 4)\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>) model.getVisibleLanduse(windowBounds, sorted));\n\n if (drawAttributeManager.isTransport() && zoomLevel > 9)\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>)model.getVisibleNatural(windowBounds, sorted));\n else if (zoomLevel > 7)\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>)model.getVisibleNatural(windowBounds, sorted));\n\n if (drawAttributeManager.isTransport())\n mapFStreets.addAll((Collection<MapFeature>) (Collection<?>) model.getVisibleStreets(windowBounds, sorted));\n else if(zoomLevel > 7)\n mapFStreets.addAll((Collection<MapFeature>) (Collection<?>) model.getVisibleStreets(windowBounds, sorted));\n\n if (drawAttributeManager.isTransport())\n mapFStreets.addAll((Collection<MapFeature>) (Collection<?>) model.getVisibleRailways(windowBounds, sorted));\n else if(zoomLevel > 7) {\n mapFStreets.addAll((Collection<MapFeature>) (Collection<?>) model.getVisibleRailways(windowBounds, sorted));\n }\n\n if (drawAttributeManager.isTransport() && zoomLevel > 14)\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>) model.getVisibleBuildings(windowBounds, sorted));\n else if(zoomLevel > 10)\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>) model.getVisibleBuildings(windowBounds, sorted));\n\n if(zoomLevel > 14)\n mapIcons = (Collection<MapIcon>) (Collection<?>) model.getVisibleIcons(windowBounds);\n\n if (!drawAttributeManager.isTransport())\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>) model.getVisibleBigForests(windowBounds, sorted));\n else {\n if (zoomLevel > 3)\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>) model.getVisibleBigForests(windowBounds, sorted));\n }\n mapFAreas.addAll((Collection<MapFeature>) (Collection<?>) model.getVisibleBikLakes(windowBounds, sorted));\n\n }",
"public interface DiscoverView {\n void loadDiscoverData(DiscoverListBean bean);\n}",
"@PostConstruct\n\tpublic void view() {\n\t\tif (log.isDebugEnabled()) {\n log.debug(\"Entering 'ConsultaHIPCuentaCorrientesAction - view' method\");\n }\n\t\tMap<String, String> parametros = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();;\n\t\tthis.parametrosPantalla = new HashMap<String, String>();\n\t\tthis.parametrosPantalla.putAll(parametros);\n\t\ttry {\n\t\t\tthis.formBusqueda = this.devuelveFormBusqueda();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t\n\t\t}\n\t}",
"public interface ClassifyView extends IView {\n\n void loadRv(UserLeftRvAdapter leftAdapter, UserRightRecAdapter rightAdapter);\n\n void loadBanner(List<BannerBean.RecordsBean> list);\n\n}",
"@SkipValidation\r\n\tpublic String invokeTerritoryList() throws Exception{\r\n\t\t\r\n\t\t //territoryList=dao_impl.fetchTerritory(); ------>>>>>Written in prepare method, so commented\r\n\t\t dsgnList = dao_impl.fetchDesignation();\r\n\t\t bloodGrpList = dao_impl.fetchBloodGroup();\r\n\t\t stateList = dao_impl.fetchState();\r\n\t\t cityList = dao_impl.fetchCity();\r\n\t\t regionList = dao_impl.fetchRegion();\r\n\t\t stateList = dao_impl.fetchState();\r\n\t\t \r\n\t\t System.out.println(\"size of bloodGrpList in AddMRAction class --->> \"+bloodGrpList.size());\r\n\t\t \r\n\t\t return \"SUCCESS\";\r\n\t\t\r\n\t}",
"public interface ICollectView extends IBaseView {\n\n void showResult(int result);\n\n void showResult(long result);\n\n void showList(List<CollectBean> list);\n}",
"public interface InterViewInter extends BaseView {\n /**\n * 设置商品的数据\n * @param goodsBeans\n */\n void setMyGoodsData(List<MyGoodsBean> goodsBeans);\n\n void setMyTestData(List<MyGoodsBean> goodsBeans);\n}",
"public interface ConsultView {\n\n void onAddCommonConsultSuccess(ResultListEntity<String> result);\n\n void onAddCommonConsultError();\n\n void onGetConsultInitSuccess(ResultListEntity<ConsultInitEntity> result);\n\n void onGetConsultInitError();\n\n\n void onUploadImageSuccess(ResultListEntity<String> responseBody);\n\n void onUploadImageError();\n}",
"public interface ISYview {\n void getADInfoData(ADBean adBean);\n void getSYRecycleInfoData(SYRecycleBean bean);\n}",
"@LogMethod\r\n private void publishDataToDateBasedStudy()\r\n {\r\n log(\"Prepare visit map to check PTID counts in study navigator.\");\r\n\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_STUDY3);\r\n\r\n clickAndWait(Locator.linkWithText(\"Manage\"));\r\n clickAndWait(Locator.linkWithText(\"Manage Timepoints\"));\r\n clickAndWait(Locator.linkWithText(\"Create New Timepoint\"));\r\n setFormElement(Locator.name(\"label\"), \"Preexisting Timepoint\");\r\n setFormElement(Locator.name(\"sequenceNumMin\"), \"50\");\r\n setFormElement(Locator.name(\"sequenceNumMax\"), \"89\");\r\n selectOptionByText(Locator.name(\"typeCode\"), \"Screening\");\r\n\r\n clickButton(\"Save\");\r\n assertElementPresent(Locator.tagWithAttribute(\"a\", \"data-original-title\", \"edit\"), 1);\r\n\r\n //select the Lab1 folder and view all the data for the test assay\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n clickAndWait(Locator.linkWithText(\"view results\"));\r\n\r\n //select all the data rows and click publish\r\n DataRegionTable table = new DataRegionTable(\"Data\", getDriver());\r\n table.checkAll();\r\n table.clickHeaderButton(\"Copy to Study\");\r\n\r\n checkCheckbox(Locator.xpath(\"//input[@id='chooseStudy']\"));\r\n\r\n // Make sure the selected study is Study3\r\n selectOptionByText(Locator.xpath(\"//select[@name='targetStudy']\"), getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY3));\r\n\r\n clickButton(\"Next\");\r\n assertTextPresent(\"Copy to \" + TEST_ASSAY_FLDR_STUDY3 + \" Study: Verify Results\");\r\n\r\n //populate initial set of values and verify the timepoint preview column\r\n String[] dates = new String[]{\"2000-02-02\", \"2000-03-03\", \"2000-04-04\", \"2000-05-05\", \"2000-06-06\", \"2001-01-01\", \"2000-01-01\", \"2000-02-02\", \"2000-03-03\"};\r\n int idx = 1;\r\n for (String d : dates)\r\n {\r\n setFormElement(Locator.xpath(\"(//input[@name='date'])[\" + idx + \"]\"), d);\r\n idx++;\r\n }\r\n\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[1]\"), \"new1\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[2]\"), \"new2\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[3]\"), \"new3\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[4]\"), \"new4\");\r\n\r\n DataRegionTable copyStudy = new DataRegionTable(\"Data\", getDriver());\r\n copyStudy.clickHeaderButton(\"Re-Validate\");\r\n\r\n //validate timepoints:\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 32 - 39' and following-sibling::td/a[text()='AAA07XMC-02'] and following-sibling::td[text()='301.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Preexisting Timepoint' and following-sibling::td/a[text()='AAA07XMC-04'] and following-sibling::td[not(text())]]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 90 - 95' and following-sibling::td/a[text()='AAA07XSF-02'] and following-sibling::td[not(text())]]\"));\r\n\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 120 - 127' and following-sibling::td/a[text()='AssayTestControl1'] and following-sibling::td[text()='5.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 152 - 159' and following-sibling::td/a[text()='AssayTestControl2'] and following-sibling::td[text()='6.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 0 - 7' and following-sibling::td/a[text()='BAQ00051-09'] and following-sibling::td[text()='7.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 32 - 39' and following-sibling::td/a[text()='BAQ00051-08'] and following-sibling::td[text()='8.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Preexisting Timepoint' and following-sibling::td/a[text()='BAQ00051-11'] and following-sibling::td[text()='9.0']]\"));\r\n\r\n copyStudy.clickHeaderButton(\"Copy to Study\");\r\n\r\n log(\"Verifying that the data was published\");\r\n assertTextPresent(\r\n TEST_RUN1_COMMENTS,\r\n \"2000-01-01\");\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Study Navigator\"));\r\n\r\n log(\"Test participant counts and row counts in study overview\");\r\n String[] row2 = new String[]{TEST_ASSAY, \"9\", \"1\", \"2\", \"2\", \"1\", \"1\", \"1\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n // Manually click the checkbox -- normal checkCheckbox() method doesn't seem to work for checkbox that reloads using onchange event\r\n clickAndWait(Locator.checkboxByNameAndValue(\"visitStatistic\", \"RowCount\"));\r\n row2 = new String[]{TEST_ASSAY, \"9 / 9\", \"1 / 1\", \"2 / 2\", \"2 / 2\", \"1 / 1\", \"1 / 1\", \"1 / 1\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n\r\n log(\"Test that correct timepoints were created\");\r\n\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Manage Study\"));\r\n clickAndWait(Locator.linkWithText(\"Manage Timepoints\"));\r\n assertTextPresent(\r\n \"Day 0 - 7\",\r\n \"Day 32 - 39\",\r\n \"Day 90 - 95\",\r\n \"Day 120 - 127\",\r\n \"Day 152 - 159\");\r\n }",
"@Override\n protected void publishResults(CharSequence constraint, FilterResults results) {\n\n datamodels.clear();\n datamodels.addAll((Collection<? extends MapDataModel>) results.values);\n notifyDataSetChanged();\n }",
"private void supplyLookupValues(ModelAndView modelAndView) throws PortalServiceException {\n modelAndView.addObject(\"requestTypesLookup\", lookupService.findAllLookups(RequestType.class));\n modelAndView.addObject(\"enrollmentStatusesLookup\", lookupService.findAllLookups(EnrollmentStatus.class));\n modelAndView.addObject(\"riskLevelsLookup\", lookupService.findAllLookups(RiskLevel.class));\n ProviderTypeSearchCriteria providerTypeSearchCriteria = new ProviderTypeSearchCriteria();\n providerTypeSearchCriteria.setAscending(true);\n providerTypeSearchCriteria.setSortColumn(\"description\");\n providerTypeSearchCriteria.setPageNumber(1);\n providerTypeSearchCriteria.setPageSize(-1);\n List<ProviderType> items = providerTypeService.search(providerTypeSearchCriteria).getItems();\n modelAndView.addObject(\"providerTypesLookup\", items);\n }",
"public interface IGetDataView extends IBaseView {\n void getDataSuccess(Cursor cursor);\n void getDataFail();\n}",
"private void init(final DccdSB dccdHit)\n\t{\n\t\tLink viewResultLink = new Link(\"viewResult\")\n\t\t{\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override\n\t\t\tpublic void onClick()\n\t\t\t{\n\t\t\t\t// now navigate to view page with given project;\n\t\t\t\tretrieveProjectAndObject(dccdHit);\n\t\t\t\t// Note: could also give selected entity object!\n\t\t\t\tString selectedEntityId = object.getId();\n\n\t\t\t\tsetResponsePage(new ProjectViewPage(project, selectedEntityId));\n\t\t\t}\n };\n add(viewResultLink);\n\n\t\taddObjectInformation(viewResultLink, dccdHit);\n\t\taddProjectInformation(viewResultLink, dccdHit);\n\t\t\n\t\tboolean hasMarkerOnMap = false;\n\t\tif (dccdHit.hasLatLng())\n\t\t{\n\t\t\t//Check for permission\n\t\t\tDccdUser user = (DccdUser) ((DccdSession) getSession()).getUser();\n\t\t\tProjectPermissionLevel effectivelevel = dccdHit.getEffectivePermissionLevel(user);\n\t\t\tBoolean isAllowedToViewLocation = ProjectPermissionLevel.OBJECT.isPermittedBy(effectivelevel);\n\t\t\thasMarkerOnMap = isAllowedToViewLocation;\n\t\t}\n\t\t// add location marker icon\n\t\tResourceReference markerIconImageReference = GeoViewer.getDefaultMarkerIconImageReference();\n\t\tif(hasMarkerOnMap) \n\t\t{\n\t\t\t// use index specific marker icon image\n\t\t\tint latLngMarkerIndex = dccdHit.latLngMarkerIndex;\n\t\t\tlogger.debug(\"Marker index to use on HitPanel: \" + latLngMarkerIndex);\n\t\t\tif (latLngMarkerIndex >= 0)\n\t\t\t\tmarkerIconImageReference = GeoViewer.getLetterMarkerIconImageReference(latLngMarkerIndex);\n\t\t}\n\t\tImage geoMarkerIconImage = new Image(\"geoMarkerIconImage\", markerIconImageReference);\n\t\tviewResultLink.add(geoMarkerIconImage);\n\t\t// only show icon if marker is on the map\n\t\tgeoMarkerIconImage.setVisible(hasMarkerOnMap);\n\t}",
"public interface IMovieReviewView extends BaseView{\n void setReviewData(Review reviewData);\n}",
"public interface IView extends BaseIView{\n void getDataSuccess(LoginBean loginBean);\n void getDataError(String error);\n\n}",
"public interface RxViewDispatch {\n\n /**\n * All the stores will call this event after they process an action and the store change it.\n * The view can react and request the needed data\n */\n void onRxStoreChanged(@NonNull RxStoreChange change);\n\n\n}",
"@RequestMapping(value = \"/usermaps/data\", method = RequestMethod.GET, produces = \"application/json; charset=utf-8\")\r\n @ResponseBody\r\n public ResponseEntity<String> userMapViews(HttpServletRequest request)\r\n throws ServletException, IOException, ServiceException {\r\n ResponseEntity<String> ret;\r\n String tableName = env.getProperty(\"postgres.local.usermapsTable\");\r\n try {\r\n List<Map<String, Object>> userMapData = magicDataTpl.queryForList(\r\n \"SELECT * FROM \" + tableName + \" WHERE owner_name=? GROUP BY basemap, id ORDER BY name\", \r\n userAuthoritiesProvider.getInstance().currentUserName()\r\n );\r\n if (userMapData != null && !userMapData.isEmpty()) {\r\n JsonArray views = jsonMapper.toJsonTree(userMapData).getAsJsonArray();\r\n ret = PackagingUtils.packageResults(HttpStatus.OK, views.toString(), null);\r\n } else {\r\n /* No data is fine - simply return empty results array */\r\n ret = PackagingUtils.packageResults(HttpStatus.OK, \"[]\", null);\r\n }\r\n } catch(DataAccessException dae) {\r\n ret = PackagingUtils.packageResults(HttpStatus.BAD_REQUEST, null, \"Exception fetching saved map data - error was : \" + dae.getMessage());\r\n }\r\n return(ret);\r\n }",
"public interface DataShowService {\n\n List<Map<String,Object>> getCitySessionSummary(Map<String,Object> params);\n\n List<Map<String, Object>> getCitys();\n\n List<Integer> getCitySessions(Integer city_id);\n\n List<String> getCitySrcs(Integer city_id);\n\n List<Map<String, Object>> getSrcdatabySessions(Map<String,Object> params);\n}",
"public ViewFinalFixAction() {\n this.viewData = new StudioFinalFixDTO();\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n long id = new Integer(request.getParameter(\"id\"));\n\n \n ResourcePOJO res = null;\n// try {\n res = manager.getResource(id, false);\n// } catch (JAXBException e) {\n// throw new IOException(e.getMessage());\n// }\n LayerManager layerBean = new LayerManager(res);\n \n try {\n \n request.setAttribute(\"layer\", layerBean);\n \n String layerName = layerBean.getName();\n \n List<ResourcePOJO> relatedStatsDefs = manager.searchStatsDefByLayer(layerName);\n request.setAttribute(\"statsDefs\", relatedStatsDefs);\n \n List<ResourcePOJO> relatedLayerUpdates = manager.searchLayerUpdatesByLayerName(layerName);\n request.setAttribute(\"layerUpdates\", relatedLayerUpdates);\n \n String data = manager.getData(id, MediaType.WILDCARD_TYPE.toString());\n layerBean.setData(data);\n \n request.setAttribute(\"storedData\", data);\n \n } catch (Exception ex) {\n Logger.getLogger(LayerShow.class.getName()).log(Level.SEVERE, null, ex);\n }\n String outputPage = getServletConfig().getInitParameter(\"outputPage\");\n RequestDispatcher rd = request.getRequestDispatcher(outputPage);\n rd.forward(request, response);\n }",
"public interface PostsListView extends LoadDataView {\n void renderList(Collection<Post> postCollection);\n\n void viewPostDetails(Post post);\n\n}",
"private void addDataForListView() {\n \t\n \tif(loadable)\n \t{\t\n \tloadable = false;\n \tdirection = BACKWARD;\n \tstrUrl = Url.composeHotPageUrl(type_id, class_id, last_id);\n \trequestData();\n \t}\n\t}",
"protected void doView (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doView method not implemented\");\n }",
"public interface ExpensesRecordView extends BaseView {\n void showData(List entityList);\n}",
"public interface HomePageView extends BaseView{\n Context getContext();\n\n void getSummary(SummaryBean.Data repest);\n\n void getUserinfo(UserInfoBean.Data userInfo);\n\n}",
"public static int buildSlice(AcceptedReq acceptedReq, HashMap<String, VM> allocVmMapForReq, HashMap<String, VSw> rsvdVSwIdToObjMap, HashMap<String, Datapath> datapathIdToObjMap, String controller_url){\n\n\t\tint threadSleepTime = 0;\n\t\t\n\t\t\n\t\t\n\t\tString reqUri = acceptedReq.getReqUri();\n\t\t\n\t\t//String fvReqMethod = \"get-config\";\n\t\t//String fvReqJsonString = new JsonObject().add(\"id\",99).add(\"method\", \"get-config\").add(\"params\", new JsonObject()).add(\"jsonrpc\", \"2.0\").toString();\n\t\tSystem.out.println(\"\\nAdding slice for Request \"+reqUri);\n\t\t//Multimap<String, String> hostedVmUris = getHostedVmUris(allocVmMapForReq);\n\t\tMap<String, String> hostedOvsUris = getHostedOvsUris(rsvdVSwIdToObjMap, datapathIdToObjMap);\n\n\t\tSystem.out.println(\"Allocated VMs = \"+allocVmMapForReq.size());\n\t\tfor(String allocVmUri : allocVmMapForReq.keySet()){\n\t\t\tVM allocVmObj = allocVmMapForReq.get(allocVmUri);\n\t\t\tSystem.out.println(\"\\nresourceUri \\t = \"+allocVmObj.getResourceURI());\n\t\t\tSystem.out.println(\"resourceLocation \\t = \"+allocVmObj.getResLocation());\n\t\t\tSystem.out.println(\"intfs.macAddress \\t = \"+allocVmObj.getIntfsObjArray()[0].getMacAddress());\n\t\t\tSystem.out.println(\"target VLAN-id \\t = \"+acceptedReq.getTargetVlan());\n\t\t\t\n\t\t}\n\n\t\tif(BUILD_SLICE_DBG)\n\t\t\tfor(String rsvdVSwId : acceptedReq.getRsvdVsResList()){\n\t\t\t\tVSw vSwObj = rsvdVSwIdToObjMap.get(rsvdVSwId);\n\t\t\t\tPrintContainerValues.printVSwObj(vSwObj);\n\t\n\t\t\t}\n\t\t\t// TODO: Edit this to print only location Datapath info \n\t\tif(BUILD_SLICE_DBG)\n\t\t\tfor(String datapathUri : datapathIdToObjMap.keySet()){\n\t\t\t\tDatapath datapathObj = datapathIdToObjMap.get(datapathUri);\n\t\t\t\tPrintContainerValues.printDatapathObj(datapathObj);\n\t\n\t\t\t}\n\t\t\n\t\t//if(BUILD_SLICE_DBG)\n\t\tSystem.out.println(\"\\nhostedOvsUris.size() = \"+hostedOvsUris.size());\n\t\t\tfor(String hostUri : hostedOvsUris.keySet())\n\t\t\t\tSystem.out.println(\"\\t Host = \"+hostUri+\"\\t Ovs = \"+hostedOvsUris.get(hostUri));\n\t\t\n\t\t\n\n\t\t// Creating one flowvisor slice for each request\n\t\tJsonObject addSliceParamObj = new JsonObject();\n\t\taddSliceParamObj.add(\"slice-name\", reqUri).add(\"controller-url\", controller_url).add(\"admin-contact\", \"[email protected]\").add(\"password\", \"\");\n\t\tJsonObject addSliceJsonReq= new JsonObject();\n\t\taddSliceJsonReq.add(\"id\",1).add(\"method\", \"add-slice\").add(\"params\", addSliceParamObj).add(\"jsonrpc\", \"2.0\");\n\t\tSystem.out.println(addSliceJsonReq.toString());\n\t\t// Commit slice creation by making flowvisor request\n\t\tif(COMMIT_DEPLOYMENT)makeFvRequest(\"add-slice\", addSliceJsonReq.toString());\n\t\telse PrintContainerValues.prettyPrintJSONAsString(addSliceJsonReq.toString());\n\t\t\n\t\t// $ curl -k -d '{\"id\":1,\"method\":\"add-slice\",\"params\":{\"slice-name\":\"REQ-0\",\"controller-url\":\"tcp:192.168.0.203:6633\",\"admin-contact\":\"[email protected]\",\"password\":\"\"},\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.200:8081\n\t\t// Creating flowspace array\n\t\t//JsonArray addFlowspaceArray = new JsonArray();\n\t\t\n\t\tSystem.out.println(\"acceptedReq.getAlocVsResList().size() = \"+acceptedReq.getRsvdVsResList().size());\n\t\tfor (String rsvdVsResId : acceptedReq.getRsvdVsResList()){\n\t\t\tString virtualizedSwUri = rsvdVSwIdToObjMap.get(rsvdVsResId).getLocation();\n\t\t\tDatapath virtualizedSwObj = datapathIdToObjMap.get(virtualizedSwUri);\n\t\t\tString ovsMacAddress = virtualizedSwObj.getDpid();\n\t\t\tSystem.out.println(\"\\t virtualizedSwUri = \"+virtualizedSwUri+\"\\t Location = \"+virtualizedSwObj.getResLocation());\n\t\t\t\n\t\t\tif(COMMIT_DEPLOYMENT)\n\t\t\ttry {\n\t\t\t\tThread.sleep(2000);\n\t\t\t\tthreadSleepTime += 2000;\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t// Creating flowspace array\n\t\t\tJsonArray addFlowspaceArray = new JsonArray();\n\t\t\t// $ fvctl -f /dev/null add-flowspace all-host3-ovsbr0 00:00:d4:ae:52:d2:73:da 1 all pox1=7\n\t\t\t// $ curl -k -d '{\"id\":\"1\",\"method\":\"list-datapath-flowdb\",\"params\":{\"dpid\":\"5e:3e:08:9e:01:93:5e:08\"},\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.101:8081\n\t\t\t\n\t\t\tJsonObject sliceActionJsonObj = new JsonObject();\n\t\t\tsliceActionJsonObj.add(\"slice-name\", reqUri).add(\"permission\", 7);\t//\t{ \"slice-name\" : <name> \", \"permission\" : <perm-value> }\n\t\n\t\t\tJsonArray sliceActionJsonArray = new JsonArray();\t\t\t\t\t//\t[ { \"slice-name\" : <name> \", \"permission\" : <perm-value> } ]\n\t\t\tsliceActionJsonArray.add(sliceActionJsonObj);\n\t\n\t\t\tJsonObject matchJsonObj = new JsonObject();\t\t\t\t\t\t\t// \t{\"dl_vlan\":1000}\n\t\t\tmatchJsonObj.add(\"dl_vlan\", acceptedReq.getTargetVlan());\n\t\n\t\t\tJsonObject addFlowspaceParamObj = new JsonObject();\n\t\t\t//addFlowspaceParamObj.add(\"name\",virtualizedSwUri+\"_\"+reqUri+\"_\"+flowSpaceNumber).add(\"dpid\", ovsMacAddress).add(\"priority\", 1).add(\"match\", matchJsonObj).add(\"slice-action\", sliceActionJsonArray);\n\t\t\taddFlowspaceParamObj.add(\"name\",virtualizedSwUri+\"_\"+reqUri).add(\"dpid\", ovsMacAddress).add(\"priority\", 1).add(\"match\", matchJsonObj).add(\"slice-action\", sliceActionJsonArray);\n\t\t\t// {\"name\":\"S-4_REQ-0\",\"dpid\":\"00:00:f0:4d:a2:33:8e:7d\",\"priority\":1,\"match\":{\"dl_src\":\"f0:62:15:9f:71:97\"},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]}\n\t\t\t\n\t\t\taddFlowspaceArray.add(addFlowspaceParamObj);\n\t\t\t// [{addFlowspaceParamObj1}, {addFlowspaceParamObj2}, ... ]\n\t\t\t\n\t\t\tJsonObject addFlowspaceJsonReq= new JsonObject();\n\t\t\taddFlowspaceJsonReq.add(\"id\",1).add(\"method\", \"add-flowspace\").add(\"params\", addFlowspaceArray).add(\"jsonrpc\", \"2.0\");\n\t\t\t\n\t\t\t//\tCommit flowspace creation by making flowvisor request\n\t\t\tif(COMMIT_DEPLOYMENT)makeFvRequest(\"add-flowspace\", addFlowspaceJsonReq.toString());\n\t\t\t//else PrintContainerValues.prettyPrintJSONAsString(addFlowspaceJsonReq.toString());\n\t\t\t\n\t\t}\n\t\t\n\t\t//JsonObject addFlowspaceJsonReq= new JsonObject();\n\t\t//addFlowspaceJsonReq.add(\"id\",1).add(\"method\", \"add-flowspace\").add(\"params\", addFlowspaceArray).add(\"jsonrpc\", \"2.0\");\n\t\t// {\"id\":1, \"method\":\"add-flowspace\", \"params\": [{addFlowspaceParamObj1}, {addFlowspaceParamObj2}, ... ], \"jsonrpc\":\"2.0\"}\n\t\t\n\t\t// curl -k -d '{\"id\":1,\"method\":\"add-flowspace\",\"params\":[{\"name\":\"S-1_REQ-0_FS-0\",\"dpid\":\"00:0037d\",\"priority\":1,\"match\":{\"dl_vlan\":1000},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]}],\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.200:8081\n\t\t// curl -k -d '{\"id\":1,\"method\":\"add-flowspace\",\"params\":[{\"name\":\"S-1_REQ-0_FS-0\",\"dpid\":\"00:00:f0:4d:a2:33:8e:7d\",\"priority\":1,\"match\":{\"dl_vlan\":1000},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]},{\"name\":\"S-10_REQ-0_FS-1\",\"dpid\":\"5e:3e:08:9e:01:93:5d:90\",\"priority\":1,\"match\":{\"dl_vlan\":1000},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]},{\"name\":\"S-4_REQ-0_FS-2\",\"dpid\":\"00:00:d4:ae:52:d2:73:da\",\"priority\":1,\"match\":{\"dl_vlan\":1000},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]},{\"name\":\"S-3_REQ-0_FS-3\",\"dpid\":\"5e:3e:08:9e:01:93:5e:08\",\"priority\":1,\"match\":{\"dl_vlan\":1000},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]},{\"name\":\"S-2_REQ-0_FS-4\",\"dpid\":\"5e:3e:c4:54:44:4f:2b:24\",\"priority\":1,\"match\":{\"dl_vlan\":1000},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]}],\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.200:8081\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// curl -k -d '{\"id\":1,\"method\":\"add-flowspace\",\"params\":[{\"name\":\"S-6_REQ-0\",\"dpid\":\"00:00:f0:4d:a2:33:8e:7d\",\"priority\":1,\"match\":{\"dl_src\":\"5e:ef:de:b5:7e:b2\"},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]},{\"name\":\"S-5_REQ-0\",\"dpid\":\"00:00:d4:ae:52:d2:73:da\",\"priority\":1,\"match\":{\"dl_src\":\"32:bb:e5:61:66:fa\"},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]},{\"name\":\"S-5_REQ-0\",\"dpid\":\"00:00:d4:ae:52:d2:73:da\",\"priority\":1,\"match\":{\"dl_src\":\"fa:83:bb:4b:cb:c0\"},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]}],\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.101:8081\n\t\t// \n\t\t// curl -k -d '{\"id\":1,\"method\":\"add-flowspace\",\"params\":[{\"name\":\"S-3_REQ-0_FS-0\",\"dpid\":\"00:00:f0:4d:a2:33:8e:7d\",\"priority\":1,\"match\":{\"dl_src\":\"08:0d:40:bd:51:e2\"},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]}],\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.101:8081\n\t\t// curl -k -d '{\"id\":1,\"method\":\"add-flowspace\",\"params\":[{\"name\":\"S-4_REQ-0_FS-0\",\"dpid\":\"00:00:d4:ae:52:d2:73:da\",\"priority\":1,\"match\":{\"dl_src\":\"2c:ed:7a:9c:1a:2b\"},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]}],\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.101:8081\n\t\t// curl -k -d '{\"id\":1,\"method\":\"add-flowspace\",\"params\":[{\"name\":\"S-4_REQ-0_FS-1\",\"dpid\":\"00:00:d4:ae:52:d2:73:da\",\"priority\":1,\"match\":{\"dl_src\":\"00:34:63:74:74:dd\"},\"slice-action\":[{\"slice-name\":\"REQ-0\",\"permission\":7}]}],\"jsonrpc\":\"2.0\"}' https://fvadmin:@192.168.0.101:8081\n\t\t\n\t\t//PrintContainerValues.prettyPrintJSONAsString(addFlowspaceJsonReq.toString());\n\t\t//makeFvRequest(\"add-flowspace\", addFlowspaceJsonReq.toString());\n\t\treturn threadSleepTime;\n\t}",
"public interface IFeedRepresentationDelegate\n{\n public void userSelectedFeedback(HashMap<String, Object> categoryData);\n}",
"protected List<Params> setViewData(ScheduleParams searchParam)\n throws CommonException\n {\n\n List<Params> outParams = new ArrayList<Params>();\n\n //Receiving plan search\n ReceivingPlanHandler receivingHandler = new ReceivingPlanHandler(this.getConnection());\n ReceivingPlanSearchKey searchKey = new ReceivingPlanSearchKey();\n\n //Collects by planned receiving date\n searchKey.setPlanDayCollect();\n searchKey.setConsignorCodeCollect();\n searchKey.setPlanDayGroup();\n searchKey.setConsignorCodeGroup();\n searchKey.setStatusFlag(ReceivingPlan.STATUS_FLAG_DELETE, \"!=\");\n searchKey.setConsignorCode(searchParam.getString(CONSIGNOR_CODE));\n searchKey.setPlanDayOrder(true);\n\n //Button controls\n String btnControl = buttonContlor(searchParam);\n\n //When a display button on an initial or auto display is pushed \n if (ReceivingInParameter.PROCESS_FLAG_VIEW.equals(searchParam.get(PROCESS_FLAG)))\n {\n //Search condition\n searchKey.setPlanDay(searchParam.getString(PLAN_DAY), \">=\");\n }\n //When the next button is pushed\n else if (ReceivingInParameter.PROCESS_FLAG_NEXT_PAGE.equals(searchParam.get(PROCESS_FLAG)))\n {\n //Gets two planned date data that are greater than a standard date (the lower section)\n searchKey.setPlanDay(searchParam.getString(PLAN_DAY), \">\");\n }\n //When the previous button is pushed\n else if (ReceivingInParameter.PROCESS_FLAG_PREVIOUS_PAGE.equals(searchParam.get(PROCESS_FLAG)))\n {\n //Gets two planned date data that are smaller than a standard date (the upper section)\n searchKey.setPlanDay(searchParam.getString(PLAN_DAY), \"<\");\n }\n\n ReceivingPlan[] searchPlanDayEntity = (ReceivingPlan[])receivingHandler.find(searchKey);\n\n //Initializes an array-acquisition-search position\n int start = 0;\n int end = 2;\n\n //When the previous button is pushed\n if (searchPlanDayEntity.length == 0)\n {\n return outParams;\n }\n else if (ReceivingInParameter.PROCESS_FLAG_PREVIOUS_PAGE.equals(searchParam.get(PROCESS_FLAG))\n && searchPlanDayEntity.length != 1)\n {\n start = searchPlanDayEntity.length - 2;\n end = searchPlanDayEntity.length;\n }\n\n outParams = createViewData(searchPlanDayEntity, start, end, btnControl);\n\n return outParams;\n }",
"private void fetchData() {\r\n RequesterBean requesterBean = new RequesterBean();\r\n requesterBean.setDataObject(hierarchyTitle);\r\n requesterBean.setFunctionType(GET_HIERARCHY_DATA);\r\n AppletServletCommunicator conn = new AppletServletCommunicator(connect,requesterBean);\r\n conn.send();\r\n ResponderBean responderBean = conn.getResponse();\r\n if(responderBean != null) {\r\n if(responderBean.isSuccessfulResponse()) {\r\n queryKey = hierarchyTitle;\r\n Hashtable htData = (Hashtable)responderBean.getDataObject();\r\n extractToQueryEngine(htData);\r\n }\r\n }else {\r\n //Server Error\r\n// throw new CoeusUIException(responderBean.getMessage(),CoeusUIException.ERROR_MESSAGE);\r\n }\r\n }",
"public interface RegisterView {\n void setObjData(BaseBean<UserRegisterBean> result);//设置注册信息结果\n void setVerifycode(BaseBean result);\n}",
"public interface PayView extends BaseView{\n void renderData(PayInfoBean bean);\n void paySuccess(PayResultBean bean);\n void payBalanceNotEnough();\n void payFail();\n void renderMyTaoCan(MyTaocanBean bean);\n}",
"public ActionForward populateXenograftDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request,\n HttpServletResponse response) throws Exception {\n String modelID = request.getParameter(\"xModelID\");\n String nsc = request.getParameter(\"nsc\");\n \t\tif(nsc != null && nsc.length()==0) return mapping.findForward(\"viewModelCharacteristics\");\n log.info(\"<populateXenograftDetails> modelID:\" + modelID);\n log.info(\"<populateXenograftDetails> nsc:\" + nsc);\n \t\tXenograftManager mgr = (XenograftManager) getBean(\"xenograftManager\");\n \n Xenograft x = null;\n try {\n x = mgr.get(modelID);\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n setCancerModel(request);\n request.getSession().setAttribute(Constants.XENOGRAFTMODEL, x);\n request.getSession().setAttribute(Constants.NSC_NUMBER, nsc);\n return mapping.findForward(\"viewInvivoDetails\");\n }",
"public void updateView() {\n if (mData.isEmpty()) {\n Logger.d(TAG, \"The mData is empty\");\n return;\n }\n Set<View> viewSet = mData.keySet(); // keySet() returns [] if map is\n // empty\n Iterator<View> viewIterator = viewSet.iterator();\n if (viewIterator == null) {\n Logger.d(TAG, \"The viewIterator is null\");\n return;\n }\n while (viewIterator.hasNext()) {\n View view = viewIterator.next();\n if (view == null) {\n Logger.d(TAG, \"The view is null\");\n } else {\n Object obj = mData.get(view);\n if (obj == null) {\n Logger.d(TAG, \"The value is null\");\n } else {\n if (obj instanceof ChatsStruct) {\n ChatsStruct chatStruct = (ChatsStruct) obj;\n updateChats(view, chatStruct);\n } else if (obj instanceof InvitationStruct) {\n InvitationStruct inviteStruct = (InvitationStruct) obj;\n updateInvitations(view, inviteStruct);\n } else {\n Logger.d(TAG, \"Unknown view type\");\n }\n }\n }\n }\n }",
"public interface StockTransferByAllocationView extends MvpView {\n\n void initViewPage(List<StockTransferWithAllocationSnBo> stockTransferWithAllocationSnBoList,int originDataSize, boolean isRefresh,int position);\n\n void dealPosition(List<StockTransferWithAllocationSnBo> stockTransferWithAllocationSnBo, int position,int size);\n\n}",
"public void process(HttpServletRequest req, HttpServletResponse resp, IDataAccessor access) throws DataAccessException {\n if(req.getParameter(\"id\") != null) {\n try {\n IOffice office = access.getOfficeByID(new BigInteger(req.getParameter(\"id\")));\n Collection<IWorker> workers = access.getAllWorkers(null);\n \tHashMap<BigInteger,String> managersname = new HashMap<BigInteger,String>();\n \tfor(IWorker worker: workers) {\n \t\tmanagersname.put(worker.getID(), worker.getLastName()); \t\n \t}\n req.getSession().setAttribute(\"o_offices\", null);\n req.getSession().setAttribute(\"o_office\", office);\n req.getSession().setAttribute(\"o_manager\", managersname);\n try {\n resp.sendRedirect(\"index.jsp?action_id=view_office\");\n } catch (IOException e) {\n log.error(\"can't redirect on the showoffices.jsp\",e);\n }\n } catch (DataAccessException e) {\n log.error(\"can't gets data from IDataAccessor\",e);\n }\n return;\n } else if(req.getParameter(\"title\") != null) {\n try {\n IOffice office = access.getOfficeByTitle(req.getParameter(\"title\"));\n req.getSession().setAttribute(\"o_offices\", null);\n req.getSession().setAttribute(\"o_office\", office);\n try {\n resp.sendRedirect(\"showoffices.jsp\");\n } catch (IOException e) {\n log.error(\"can't redirect on the showoffices.jsp\",e);\n }\n } catch (DataAccessException e) {\n log.error(\"can't gets data from IDataAccessor\",e);\n }\n return;\n } else {\n try {\n \t Collection<IOffice> offices = null;\n \tif (req.getParameter(\"sort\") != null) {\n \t\toffices = access.getAllOffices(req.getParameter(\"sort\"));\n \t} else {\n \t\toffices = access.getAllOffices(null);\n \t}\n \tCollection<IWorker> workers = access.getAllWorkers(null);\n \tHashMap<BigInteger,String> managersname = new HashMap<BigInteger,String>();\n \tfor(IWorker worker: workers) {\n \t\tmanagersname.put(worker.getID(), worker.getLastName()); \t\n \t}\n \tfor (IOffice office: offices) {\n \t\tif (office.getManagerID() != null ) {\n \t\t\t\tif (access.getWorkerByID(office.getManagerID()) == null) {\n \t\t\t\t\toffice.setManagerID(null);\n \t\t\t\t}\n \t\t\t}\n \t}\n req.getSession().setAttribute(\"o_offices\", offices);\n req.getSession().setAttribute(\"o_manager\", managersname);\n try {\n if (req.getParameter(\"select\") == null) {\n \t if(req.getParameter(\"sort\") == null) {\n \t\t resp.sendRedirect(\"index.jsp?action_id=view_office\");\n \t } else {\n \t\t resp.sendRedirect(\"index.jsp?action_id=view_office&sort=\"+req.getParameter(\"sort\"));\n \t }\n \t} else {\n \t\tif(req.getParameter(\"sort\") == null) {\n \t\t\tresp.sendRedirect(\"index.jsp?action_id=view_office&select=true\");\n \t\t} else {\n \t\t\tresp.sendRedirect(\"index.jsp?action_id=view_office&select=true&sort=\"+req.getParameter(\"sort\"));\n \t\t}\n \t}\n } catch (IOException e) {\n log.error(\"can't redirect on the showoffices.jsp\",e);\n }\n } catch (DataAccessException e) {\n log.error(\"can't gets data from IDataAccessor\",e);\n } return;\n }\n }",
"private void process(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tAddModel model = Util.getModel(request, Const.RESULT);\n\t\t\n\t\t// Print the \"VIEW\" using the \"MODEL\"\n\t\tprintView(response, model);\n\t}",
"public interface ICategoryView extends IMvpView {\n\n void addCatrgoty(List<CategoryOneBean> data);\n void onFaile(Call call, Throwable t, int code, String errorMsg);\n\n}",
"public interface ICommonAction {\n\n void obtainData(Object data, String methodIndex, int status,Map<String, String> parameterMap);\n\n\n}",
"ViewResourcesMapping save(ViewResourcesMapping[] viewResourcesMapping) throws Exception;",
"interface RedeemView extends BaseView {\n\n void LoadingReddemData (List<RedeemResponse> redeemResponses );\n void hide_refreshView();\n void show_errorView(boolean Isshow , String error);\n}",
"@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}",
"public interface ICQDSInvYView extends BaseView {\n /**\n * 读取单据数据\n *\n * @param datas:明细数据\n */\n void getReferenceSuccess(List<RefDetailEntity> datas);\n\n void loadReferenceComplete();\n\n void getReferenceFail(String message);\n\n}",
"@Override\r\n public void onRender() {\n try {\r\n if (this.isLookupMode) { \r\n //查找返回模式\r\n this.pageActionList.clear();\r\n String divID =\"\";\r\n for(String key : this.divMap.keySet()) {\r\n Control control = this.divMap.get(key);\r\n if (control.getName().equals(this.lookupControlID)) {\r\n divID = key;\r\n break;\r\n }\r\n }\r\n //增加查找返回操作\r\n ActionButton newLink = new ActionButton(this.getClass(),\"lookup\",\"确认选择\",\"\",null);\r\n newLink.setOnClick(\"javascript:doLookupSelectDiv('\"+divID+\"','\"+this.lookupCallback+\"')\");\r\n newLink.setAttribute(\"class\",\"icon\"); \r\n this.regPageButton(newLink);\r\n }\r\n } catch (BizException e) {\r\n throw e;\r\n } catch (Exception ex) {\r\n throw new BizException(BizException.SYSTEM, \"渲染页面失败\", ex);\r\n }\r\n }",
"public interface CategorySubscribeView extends BaseView {\n void onCategorySubscribeDataSuccess(CategorySubscribeBean categorySubscribeBean) ;\n void onCategorySubscribeDataError(String msg);\n}",
"public interface IFeedBackView extends IView {\n void feedBackListSuccess(List<FeedBackResponse> response);\n}",
"public abstract Collection<Entry<K, V>> dataToServe();",
"protected abstract void retrievedata();",
"public interface ContractsView extends MvpView {\n void showContracts(LoadMoreWrapper wrapper,List<Contact> contacts);\n void showPayContactOrder(PayOrderContactDto payOrderContactDto);\n}",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n RequestDispatcher rd=null;\n HttpSession session = request.getSession();\n String userid = (String)session.getAttribute(\"userid\");\n if(userid==null)\n {\n session.invalidate();\n response.sendRedirect(\"accessdenied.html\");\n return;\n }\n try\n {\n System.out.println(\"in the try of election result controller servlet\");\n Map<String , Integer> result = VoteDao.getResult();\n System.out.println(\"fetched party and vote from voteDao\");\n Set s = result.entrySet();\n Iterator it = s.iterator();\n LinkedHashMap<PartyWiseResult , Integer> resultDetails = new LinkedHashMap<>();\n while(it.hasNext())\n {\n Map.Entry<String , Integer> e = (Map.Entry)it.next();\n System.out.println(\"no we are iterating with \"+e.getKey());\n String symbol = CandidateDao.getPartySymbol(e.getKey());\n System.out.println(\"got the symbol for \"+e.getKey());\n PartyWiseResult pw = new PartyWiseResult();\n pw.setParty(e.getKey());\n pw.setSymbol(symbol);\n resultDetails.put(pw, e.getValue());\n \n }\n request.setAttribute(\"votecount\", VoteDao.getVoteCount());\n request.setAttribute(\"result\", resultDetails);\n rd = request.getRequestDispatcher(\"electionresult.jsp\");\n System.out.println(\"attribute for show election result is setted successfully\");\n }\n catch(Exception ex)\n {\n System.out.println(ex.getMessage());\n ex.printStackTrace();\n request.setAttribute(\"Exception\", ex);\n rd = request.getRequestDispatcher(\"showexception.jsp\");\n }\n finally\n {\n System.out.println(\"we are in the finally\");\n rd.forward(request, response);\n }\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String statsDefName = request.getParameter(\"stats_def\");\n \n try {\n List<ResourcePOJO> resources;\n if (statsDefName == null || \"\".equals(statsDefName)) {\n // if no layer is given in http parameters, find all stats data\n resources = manager.searchStatsDataByStatsDef(null);\n } else {\n // otherwise find all stats with the given statsDef attribute\n resources = manager.searchStatsDataByStatsDef(statsDefName);\n //request.setAttribute(\"statsDef\", statsDefName);\n }\n request.setAttribute(\"resources\", resources);\n \n //Retrieve stats data and store them in a Map \n Map<Long, ResourcePOJO> statsDefMap = new HashMap<Long, ResourcePOJO>();\n ResourcePOJO statsDef = manager.searchResourceByName(statsDefName, CategoryPOJO.STATSDEF);\n request.setAttribute(\"statsDef\", statsDef);\n \n RequestDispatcher rd = request.getRequestDispatcher(\"stats-data-list.jsp\");\n rd.forward(request, response);\n } catch (JAXBException ex) {\n throw new ServletException(ex);\n }\n }",
"private static BaseMessage dealViewEvent(Map<String, String> requestMap) {\n\t\treturn null;\r\n\t}",
"public interface MySetContract {\n\n interface View extends BaseContract.BaseView {\n void startDocData(DocDataBean docDataBean);\n void againDocData(int code);\n void startSDocData(SDocDataBean sDocDataBean);\n void againSDocData(int code);\n }\n\n interface Presenter extends BaseContract.BasePresenter<View> {\n void getDocDataAttribute(String docid);\n void getSDocDataAttribute(String docid,String docname,String sex,String birthday,\n String mobile,String professional, String hospital,String office);\n }\n\n}",
"ViewMap<IBranchMapping> getView();",
"public abstract List<LocationDto> viewAll();",
"@Override\n public void prepareHtmlDataList() {\n makeGCDataInfoOutputData();\n makeLaunchDataInfoOutputData();\n }",
"void setupRender() {\n List<Predmet> predmets = adminService.findAllPredmetsForPredavac(predavac);\n // create a SelectModel from my izlistaj of colors\n predmetSelectModel = selectModelFactory.create(predmets, \"name\");\n years = adminService.getYears();\n// List<Aktivnost> activities = adminService.getActivities(1, 2015);\n }",
"public interface SysDictDataMapper\n{\n /**\n * Query dictionary data page by condition\n * \n * @param dictData Dictionary data information\n * @return Dictionary data collection information\n */\n public List<SysDictData> selectDictDataList(SysDictData dictData);\n\n /**\n * Query dictionary data according to dictionary type\n * \n * @param dictType Dictionary type\n * @return Dictionary data collection information\n */\n public List<SysDictData> selectDictDataByType(String dictType);\n\n /**\n * Query dictionary data information according to dictionary type and dictionary key value\n * \n * @param dictType Dictionary type\n * @param dictValue Dictionary key\n * @return Dictionary tag\n */\n public String selectDictLabel(@Param(\"dictType\") String dictType, @Param(\"dictValue\") String dictValue);\n\n /**\n * Query information based on dictionary data ID\n * \n * @param dictCode Dictionary data ID\n * @return Dictionary data\n */\n public SysDictData selectDictDataById(Long dictCode);\n\n /**\n * Query dictionary data\n * \n * @param dictType Dictionary type\n * @return Dictionary data\n */\n public int countDictDataByType(String dictType);\n\n /**\n * Delete dictionary data information by dictionary ID\n * \n * @param dictCode Dictionary data ID\n * @return result\n */\n public int deleteDictDataById(Long dictCode);\n\n /**\n * Delete dictionary data in bulk\n * \n * @param ids Data to be deleted\n * @return result\n */\n public int deleteDictDataByIds(String[] ids);\n\n /**\n * New dictionary data information\n * \n * @param dictData Dictionary data information\n * @return result\n */\n public int insertDictData(SysDictData dictData);\n\n /**\n * Modify dictionary data information\n * \n * @param dictData Dictionary data information\n * @return result\n */\n public int updateDictData(SysDictData dictData);\n\n /**\n * Synchronously modify dictionary type\n * \n * @param oldDictType Old dictionary type\n * @param newDictType New and old dictionary types\n * @return result\n */\n public int updateDictDataType(@Param(\"oldDictType\") String oldDictType, @Param(\"newDictType\") String newDictType);\n}",
"public void transformandoObjectsToView() {\n //Transformacion a objetos de interfaz\n this.studyView = ConverterDTOtoDomain.getStudy(this.study);\n\n for (Factor factorStudy : this.factorsDtoStudy) {\n // exluded hardcoded study conditions\n if (!\"STUDY\".equals(factorStudy.getFname())){\n this.studyConditions.add(\n ConverterDTOtoDomain.getCondition(\n factorStudy,\n this.mapaLabes));\n }\n }\n for (Factor factorTrial : this.factorsDtoTrial) {\n this.conditions.add(\n ConverterDTOtoDomain.getCondition(\n factorTrial,\n this.mapaLabes));\n }\n for (Factor factorDtoView : this.factorsDtoAllFactorsView) {\n this.factorsView.add(\n ConverterDTOtoDomain.getFactor(\n factorDtoView,\n this.mapaLabes));\n }\n }",
"private void processObject( HttpServletResponse oResponse, Object oViewObject ) throws ViewExecutorException\r\n {\n try\r\n {\r\n oResponse.getWriter().print( oViewObject );\r\n }\r\n catch ( IOException e )\r\n {\r\n throw new ViewExecutorException( \"View \" + oViewObject.getClass().getName() + \", generic object view I/O error\", e );\r\n }\r\n }",
"public interface SearchView extends BaseView {\n\n void refersh(SearchBean searchBean);\n void refreshList(DetailListBean listBean);\n}",
"public interface IOrderStatisticsView extends IBaseView {\n\n //所有订单\n void onGetStylistOrderCount(StylistOrderBean bean);\n //订单统计\n void getStylistTimeSliceOrder(List<List<OrderChartBean>> orderChartBeans);\n}",
"protected Object getViewData() {\n\t\treturn view.getViewData();\n\t}",
"public void doPost(HttpServletRequest request,HttpServletResponse response)\n\t throws IOException, ServletException {\n\t\tRouteInfo nroute = new RouteInfo();\n\t\tArrayList<RouteInfo> a;\n\t\t\n\t\ta = nroute.CallRouting(\"\", \"Travel\");\n\t\t\n\t\tfor(int i=0; i<a.size(); i++){\n\t\t\t //request.setAttribute(\"userid\"+i, a.get(i).userid);\n\t\t\t //request.setAttribute(\"routename\"+i, a.get(i).routename);\n\t\t\t request.setAttribute(\"id\"+i, a.get(i).id);\n\t\t\t request.setAttribute(\"startTime\"+i, a.get(i).startTime);\n\t\t\t request.setAttribute(\"timecount\"+i, a.get(i).timecount);\n\t\t\t request.setAttribute(\"stat\"+i, a.get(i).stat);\n\t\t\t request.setAttribute(\"train\"+i, a.get(i).train);\n\t\t\t request.setAttribute(\"trainCount\"+i, a.get(i).traincount);\n\t\t\t request.setAttribute(\"timer\"+i, a.get(i).timer);\n\t\t\t request.setAttribute(\"ctype\"+i, a.get(i).ctype);\n\t\t\t request.setAttribute(\"dest\"+i, a.get(i).dest);\n\t\t\t request.setAttribute(\"startDate\"+i, a.get(i).startDate);\n\t\t\t request.setAttribute(\"endDate\"+i, a.get(i).endDate);\n\t\t\t request.setAttribute(\"freeCount\"+i, a.get(i).freeCount);\n\t\t\t request.setAttribute(\"dateCount\"+i, a.get(i).dateCount);\n\t\t\t request.setAttribute(\"companyName\"+i, a.get(i).companyName);\n\t\t\t request.setAttribute(\"score\"+i, a.get(i).score);\n\t\t\t request.setAttribute(\"mealCount\"+i, a.get(i).mealCount);\n\t\t\t request.setAttribute(\"sleepCount\"+i, a.get(i).sleepCount);\n\t\t\t request.setAttribute(\"type\"+i, a.get(i).type);\n\t\t\t}\n\n\t\tSystem.out.println(a.size());\n\t\t\trequest.setAttribute(\"count\",a.size());\n\t\t\n\t\tServletContext context = request.getSession().getServletContext();\n\t\tRequestDispatcher rd = context.getRequestDispatcher(\"/TimeTableView.jsp\");\n\t\t\n\t\trd.forward(request, response);\n\t}",
"Map getAspectDatas();",
"public interface UserInfoView {\n\n void onGetUserData(List<UserBean> followings);\n\n\n\n}",
"protected abstract void putDataInViewControls(Cursor cursor);",
"private void convertData() {\n m_traces = new ArrayList<Trace>();\n\n for (final TraceList trace : m_module.getContent().getTraceContainer().getTraces()) {\n m_traces.add(new Trace(trace));\n }\n\n m_module.getContent().getTraceContainer().addListener(m_traceListener);\n\n m_functions = new ArrayList<Function>();\n\n for (final INaviFunction function :\n m_module.getContent().getFunctionContainer().getFunctions()) {\n m_functions.add(new Function(this, function));\n }\n\n for (final Function function : m_functions) {\n m_functionMap.put(function.getNative(), function);\n }\n\n m_views = new ArrayList<View>();\n\n for (final INaviView view : m_module.getContent().getViewContainer().getViews()) {\n m_views.add(new View(this, view, m_nodeTagManager, m_viewTagManager));\n }\n\n createCallgraph();\n }",
"private void populateScreenViewMap() {\n\n log.debug(\"Populating the screens\");\n\n for (Screen screen : Screen.values()) {\n\n AbstractScreenView view = Screens.newScreen(screen);\n\n // Keep track of the view instances but don't initialise them\n screenViewMap.put(screen, view);\n\n }\n\n }",
"protected List<Params> createViewData(ReceivingPlan[] searchParam, int startPoint, int endPoint, String btnControl)\n throws CommonException\n {\n\n List<Params> outParams = new ArrayList<Params>();\n //Receiving plan search\n ReceivingPlanHandler receivingHandler = new ReceivingPlanHandler(this.getConnection());\n //Stores acquired data\n ReceivingPlanSearchKey searchProgressDateKey = new ReceivingPlanSearchKey();\n\n\n //Gets progress information of the two planned date since there are two display data\n for (int i = startPoint; i < endPoint; i++)\n {\n\n //Clears search keys\n searchProgressDateKey.clear();\n\n //Except \"delete\" status\n searchProgressDateKey.setConsignorCode(searchParam[i].getConsignorCode());\n searchProgressDateKey.setStatusFlag(ReceivingPlan.STATUS_FLAG_DELETE, \"!=\");\n searchProgressDateKey.setPlanDay(searchParam[i].getPlanDay(), \"=\");\n\n searchProgressDateKey.setPlanDayCollect();\n searchProgressDateKey.setPlanQtyCollect(\"SUM\");\n searchProgressDateKey.setResultQtyCollect(\"SUM\");\n searchProgressDateKey.setShortageQtyCollect(\"SUM\");\n\n //Gets Item Master information\n searchProgressDateKey.setJoin(ReceivingPlan.CONSIGNOR_CODE, Item.CONSIGNOR_CODE);\n searchProgressDateKey.setJoin(ReceivingPlan.ITEM_CODE, Item.ITEM_CODE);\n\n //Grouping planned dates\n searchProgressDateKey.setPlanDayGroup();\n\n ReceivingPlan[] searchEntity = (ReceivingPlan[])receivingHandler.find(searchProgressDateKey);\n\n // Seacrh results are zero.\n if (searchEntity.length == 0)\n {\n // 6003011 = \"Target data was not found.\"\n setMessage(\"6003011\");\n return null;\n }\n\n Params param = new Params();\n //Stores acquired information in outParam\n //Planned Date\n param.set(PLAN_DAY, WmsFormatter.toDate(searchEntity[0].getPlanDay()));\n //Planned quantity\n param.set(PLAN_QTY, searchEntity[0].getPlanQty());\n //Received quantity\n param.set(RESULT_QTY, searchEntity[0].getResultQty());\n //Shortage quantity\n param.set(SHORTAGE_QTY, searchEntity[0].getShortageQty());\n //Progress rate : ((Received quantity+Shortage quantity)/Planned quantity)*100\n double progress =\n (((double)(searchEntity[0].getResultQty() + searchEntity[0].getShortageQty()) / searchEntity[0].getPlanQty()) * 100);\n param.set(PROGRESS_RATE, progress);\n\n // Collects and groups Item Code. \n searchProgressDateKey.setCollect(Item.ENTERING_QTY);\n searchProgressDateKey.setItemCodeCollect();\n searchProgressDateKey.setGroup(Item.ENTERING_QTY);\n searchProgressDateKey.setItemCodeGroup();\n\n searchEntity = (ReceivingPlan[])receivingHandler.find(searchProgressDateKey);\n //Detail counts\n param.set(PLAN_ITEM_CNT, searchEntity.length);\n\n //Gets quantity of cases and pieces by the \"pieces of in one case\" of different items.\n //After acquisition, calculates a total.\n int sumPlanCaseQty = 0;\n int sumPlanPieceQty = 0;\n int sumResultCaseQty = 0;\n int sumResultPieceQty = 0;\n\n int planQty = 0;\n int resultQty = 0;\n int enteringQty = 0;\n\n for (int cnt = 0; cnt < searchEntity.length; cnt++)\n {\n planQty = searchEntity[cnt].getPlanQty();\n resultQty = searchEntity[cnt].getResultQty();\n enteringQty = searchEntity[cnt].getBigDecimal(Item.ENTERING_QTY).intValue();\n\n //Planned case quantity\n sumPlanCaseQty += DisplayUtil.getCaseQty(planQty, enteringQty);\n //Received case quantity\n sumResultCaseQty += DisplayUtil.getCaseQty(resultQty, enteringQty);\n\n //Planned pieces quantity\n sumPlanPieceQty += DisplayUtil.getPieceQty(planQty, enteringQty);\n //Received pieces quantity\n sumResultPieceQty += DisplayUtil.getPieceQty(resultQty, enteringQty);\n }\n //Planned case quantity\n param.set(CASE_QTY, sumPlanCaseQty);\n //Received case quantity\n param.set(RESULT_CASE_QTY, sumResultCaseQty);\n //Planned pieces quantity\n param.set(PIECE_QTY, sumPlanPieceQty);\n //Received pieces quantity\n param.set(RESULT_PIECE_QTY, sumResultPieceQty);\n\n // Sets Status flag \"Completion\"\n //Result Detail counts\n searchProgressDateKey.setStatusFlag(ReceivingPlan.STATUS_FLAG_COMPLETION, \"=\");\n param.set(RESULT_ITEM_CNT, receivingHandler.find(searchProgressDateKey).length);\n\n param.set(DETAIL_COUNT, WmsFormatter.getNumFormat(param.getInt(RESULT_ITEM_CNT)) + \"/\"\n + WmsFormatter.getNumFormat(param.getInt(PLAN_ITEM_CNT)));\n \n param.set(CASE_QTY, WmsFormatter.getNumFormat(param.getInt(RESULT_CASE_QTY)) + \"/\"\n + WmsFormatter.getNumFormat(param.getInt(CASE_QTY)));\n \n param.set(RECEIVE_COUNT, WmsFormatter.getNumFormat(param.getInt(RESULT_QTY)) + \"/\"\n + WmsFormatter.getNumFormat(param.getInt(PLAN_QTY)));\n \n param.set(PIECE_QTY, WmsFormatter.getNumFormat(param.getInt(RESULT_PIECE_QTY)) + \"/\"\n + WmsFormatter.getNumFormat(param.getInt(PIECE_QTY)));\n\n //Button control flag\n param.set(BUTTON_CONTROL_FLAG, btnControl);\n //Increment an index for the output array\n\n outParams.add(param);\n\n if (searchParam.length == 1)\n {\n\n break;\n }\n\n }\n\n return outParams;\n }",
"public void findDataFromServer() {\n try {\n JSONObject jsonObjectGetPostParameterEachScreen = null;\n PassParameterbean passParameterbean = null;\n if (pageTokenAvailable) {\n searchbean_post_data.setPageToken(pageToken);\n }\n\n if (TextUtils.isEmpty(baseTextview_searched_item.getText().toString())) {\n\n } else {\n String name = URLEncoder.encode(baseTextview_searched_item.getText().toString(), \"utf-8\");\n searchbean_post_data.setSearchText(name);\n }\n\n\n searchbean_post_data.setIsCommuntiySearchByName(\"1\");\n searchbean_post_data.setUser_id(commonSession.getLoggedUserID());\n requestParametersbean.setSearchbeanPassPostData(searchbean_post_data);\n\n jsonObjectGetPostParameterEachScreen = GetPostParameterEachScreen.getPostParametersAccordingIndex(ScreensEnums.SEARCH_BY_COMMUNITYNAME.getScrenIndex(), requestParametersbean);\n passParameterbean = new PassParameterbean(this, CommunitySearchByNameActivity.this, getApplicationContext(), URLs.SEARCH_BY_COMMUNITYNAME, jsonObjectGetPostParameterEachScreen, ScreensEnums.SEARCH_BY_COMMUNITYNAME.getScrenIndex(), CommunitySearchByNameActivity.class.getClass());\n\n\n /* requestParametersbean.setUserId(commonSession.getLoggedUserID());\n requestParametersbean.setStart_limit(current_start);\n\n jsonObjectGetPostParameterEachScreen = GetPostParameterEachScreen.getPostParametersAccordingIndex(ScreensEnums.FILTER_COMMUNITY.getScrenIndex(), requestParametersbean);\n passParameterbean = new PassParameterbean(this, CommunitySearchByNameActivity.this, getApplicationContext(), URLs.FILTERCOMMUNITY, jsonObjectGetPostParameterEachScreen, ScreensEnums.FILTER_COMMUNITY.getScrenIndex(), CommunitySearchByNameActivity.class.getClass());\n*/\n\n\n passParameterbean.setNoNeedToDisplayLoadingDialog(true);\n new RequestToServer(passParameterbean, retryParameterbean).execute();\n\n\n } catch (Exception e) {\n e.printStackTrace();\n new BaseException(e, false, retryParameterbean);\n }\n }",
"@SkipValidation\r\n\tpublic String editMR() throws Exception{\r\n\t\t\r\n\t\tSystem.out.println(\"In Edit Action Class---->>>> In editMR Method------>emp_id = \"+addMRPojo.getEmp_id());\r\n\t\tterritoryListValueRemoved = dao_impl.fetchTerritory(); \r\n\t\t\r\n\t\t\r\n\t\tmrEditList = dao_impl.editMR(addMRPojo);\t\r\n\t\tbloodGrpList = dao_impl.fetchBloodGroup();\r\n\t\t stateList = dao_impl.fetchState();\r\n\t\t cityList = dao_impl.fetchCity();\r\n\t\t dsgnList = dao_impl.fetchDesignation();\r\n\t\t\r\n//Set date from database to string type and set the selected list of territory for edit and view page\r\n\t\t\r\n\t\tIterator<AddMRActionPojo> dsd= mrEditList.iterator();\r\n\t\twhile(dsd.hasNext()){\r\n\t\t\tAddMRActionPojo actionPojo=\t(AddMRActionPojo) dsd.next();\r\n\t\t\t//System.out.println(\"check\"+actionPojo.getDoj_db());\r\n/*\r\n * Set the date to string type \r\n */\r\n\t\t\t\r\n\t\t\tif(actionPojo.getDoj_db() != null )\r\n\t\t\t{\r\n\t\t\t\tactionPojo.setDoj(new SimpleDateFormat(\"dd/MM/yyyy\").format(actionPojo.getDoj_db()));\r\n\t\t\t\t//addMRPojo.setDoj(actionPojo.getDoj());\r\n\t\t\t}\r\n\t\t\tif(actionPojo.getDob_db() != null )\r\n\t\t\t{\r\n\t\t\t\tactionPojo.setDob(new SimpleDateFormat(\"dd/MM/yyyy\").format(actionPojo.getDob_db()));\r\n\t\t\t\t//addMRPojo.setDob(actionPojo.getDob());\r\n\t\t\t}\r\n\t\t\t\r\n/*\r\n * Populate the terrValues from the List which contains DB info of MR\r\n\t */\r\n\t\t\ttry{\r\n\t\t\t\tString tempTer_id = actionPojo.getTer_id();\r\n\t\t\t\tString delimiter = \",\"; \t\t\t\t\t\t//To classify string from the DB\r\n\t\t\t\t\r\n\t\t\t\tif(tempTer_id != null)\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp = tempTer_id.split(delimiter);\t\t\t\t//split method is used to split the string value with a string regex (here it is delimiter) coming from DB as in DB if multiple select value is stored then In DB it is stored as one string separated by a comma(,).\r\n\t\t\t\t\tfor(int i =0 ; i < temp.length ; i++){\t\t\t//for loop to check only\r\n\t\t\t\t\t\tSystem.out.println(\"temp[\"+i+\"] ---> \"+temp[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tterrValues = Arrays.asList(temp);\t\t\t\t//Convert string array to list\r\n\t\t\t\t\tSystem.out.println(\" --> After converting String Array to List <--\");\r\n\t\t\t\t\tfor (String e : terrValues) \t\t\t\t\t//forEach loop to check only\r\n\t\t\t\t { \r\n\t\t\t\t System.out.println(\"terrValues : \"+e); \r\n\t\t\t\t } \r\n\t\t\t\t\t\r\n\t\t\t\t\t territoryListValueInEdit = dao_impl.searchValueOfTerr(terrValues);\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*for (AddTerritoryActionPojo a : territoryListValueInEdit) \t\t\t\t\t//forEach loop to check only\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tSystem.out.println(\"territoryListValueInEdit : \"+a.getTer_id()+\" --> \"+a.getTerritory()); \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}*/\r\n\t\t\t\t\t \r\n\t\t\t\t\t \r\n /*\r\n * Logic to remove item from one list to another\r\n */\r\n\t\t for(Iterator<AddTerritoryActionPojo> itr = territoryListValueRemoved.iterator();itr.hasNext();) \r\n\t\t { \r\n\t\t AddTerritoryActionPojo element = itr.next(); \r\n\t\t \r\n\t\t for(Iterator<AddTerritoryActionPojo> itrWhichHasToBeRemoved = territoryListValueInEdit.iterator();itrWhichHasToBeRemoved.hasNext();) \r\n\t\t\t { \r\n\t\t\t AddTerritoryActionPojo elementToRemove = itrWhichHasToBeRemoved.next(); \r\n\t\t\t if(element.getTer_id().trim().equals(elementToRemove.getTer_id().trim())) \r\n\t\t\t { \r\n\t\t\t itr.remove();\r\n\t\t\t System.out.println(\"element --> \"+element.getTer_id());\r\n\t\t\t System.out.println(\"elementToRemove --> \"+elementToRemove.getTer_id());\r\n\t\t\t } \r\n\t\t\t }\r\n\t\t } \r\n\t\t /* for (AddTerritoryActionPojo b : territoryListValueRemoved) \t\t\t\t\t//forEach loop to check only\r\n\t\t\t\t\t{ \r\n\t\t\t\t\t\tSystem.out.println(\"territoryListValueRemoved : \"+b.getTer_id()+\" --> \"+b.getTerritory()); \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}*/ \r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tSystem.out.println(\"Exception While converting multiple territory to single territory\"+e);\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\t\r\n\t\treturn \"SUCCESS\";\r\n\t}",
"public void showRestaurantDetail(Map<String, Object> objectMap);",
"public interface ActionMapperVisitor {\r\n\r\n\t/**\r\n\t * This method creates a new AcquirePermitTile action according to the AcquirePermitTileDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * return an AcquirePermitTile action with all the parameters set\r\n\t */\r\n\tpublic AcquirePermitTile map(AcquirePermitTileDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new BuildByKing action according to the BuildByKingDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * return a BuildByKing action with all the parameters set\r\n\t */\r\n\tpublic BuildByKing map(BuildByKingDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new BuildByPermitTile action according to the BuildByPermitTileDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an BuildByPermitTile action with all the parameters set\r\n\t */\r\n\tpublic BuildByPermitTile map(BuildByPermitTileDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new ChangePermitTiles action according to the ChangePermitTilesDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an ChangePermitTiles action with all the parameters set\r\n\t */\r\n\tpublic ChangePermitTiles map(ChangePermitTilesDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new ElectCouncillor action according to the ElectCouncillorDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an ElectCouncillor action with all the parameters set\r\n\t */\r\n\tpublic ElectCouncillor map(ElectCouncillorDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new ElectCouncillorByAssistant action according to the ElectCouncillorByAssistantDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an ElectCouncillorByAssistant action with all the parameters set\r\n\t */\r\n\tpublic ElectCouncillorByAssistant map(ElectCouncillorByAssistantDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new MakeAnOffer action according to the MakeAnOfferDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an MakeAnOffer action with all the parameters set\r\n\t */\r\n\tpublic MakeAnOffer map(MakeAnOfferDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new AcceptAnOffer action according to the AcceptAnOfferDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an AcceptAnOffer action with all the parameters set\r\n\t */\r\n\tpublic AcceptAnOffer map(AcceptAnOfferDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new ChooseCityBonusAction action according to the ChooseCityBonusActionDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an ChooseCityBonusAction action with all the parameters set\r\n\t */\r\n\tpublic ChooseCityBonusAction map(ChooseCityActionDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new PurchasedPermitTileAction action according to the PurchasedPermitTileActionDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an PurchasedPermitTileAction action with all the parameters set\r\n\t */\r\n\tpublic PurchasedPermitTileAction map(PurchasedPermitTileActionDTO selectedActionDTO);\r\n\t\r\n\t/**\r\n\t * This method creates a new PickPermitTileBonusAction action according to the PickPermitTileBonusActionDTO received,\r\n\t * then maps all the parameters DTO into their corresponding real objects, setting them to the real action created\r\n\t * @param selectedActionDTO is the action selected by the client whose parameters need to be translated\r\n\t * @return an PickPermitTileBonusAction action with all the parameters set\r\n\t */\r\n\tpublic PickPermitTileBonusAction map(PickPermitTileActionDTO pickPermitTileActionDTO);\r\n\t\r\n}",
"@RequestMapping(\"/query.do\")\n\tpublic @ResponseBody Map<String, Object> query(@RequestParam Map reqMap) {\nList<CpzProductLevelBean> cpzproductlevelBeans=null;\ntry {\ncpzproductlevelBeans=cpzProductLevelService.get(reqMap);\n} catch (Exception e) {\n\te.printStackTrace();\n}\nMap r=new HashMap();\nr.put(\"returnData\",cpzproductlevelBeans);\n\t return CommonUtil.ReturnWarp(Constant.TRAN_SUCCESS, Constant.ERRORTYPE,\"\",r);\n\t}",
"public abstract void viewRun();",
"public interface MainBaseView extends BaseView {\n\n void onGetFirstDataSuccess(FirstDataResponse response);\n\n void onSelectNationSuccess(ProvinceResponse response);\n\n void onCheckUserStatusSuccess(User user);\n}",
"@Override\n public Navigation run() throws Exception {\n Map<String, Object> input = null;\n Key cafeKey=null;\n String returnKey = null;\n \n //投稿ボタンを押した場合\n if(request.getParameter(\"dataPost\") != null){\n \n input = new RequestMap(request);\n \n //店舗名称をセット\n \n \n //エリア系のデータを取得\n String geohash4 = null;\n String geohash5 = null;\n String geohash6 = null;\n String geohash8 = null;\n String geohashAll = null;\n String geohashAround = null;\n String storeFullName = null;\n \n \n if(input.get(\"storeName\") != null && \n !\"\".equals(input.get(\"storeName\")) && \n !\"(null)\".equals(input.get(\"storeName\")) &&\n input.get(\"storeFlag\") != null && \n !\"\".equals(input.get(\"storeFlag\")) && \n !\"(null)\".equals(input.get(\"storeFlag\"))\n ){\n String storeMainName = CafeUtil.createStoreMainName(EscapeUtil.toHtmlStringForObject(input.get(\"storeFlag\")).trim());\n String storeSubName = EscapeUtil.toHtmlStringForObject(input.get(\"storeName\")).trim();\n storeFullName = storeMainName+\" \"+storeSubName;\n input.put(\"storeFullName\", storeFullName);\n }\n \n //住所から緯度経度を取得\n double lat = 0;\n double lng = 0;\n //時間を取得\n String nowTime = DateTimeUtil.getDateTimeString();\n if(request.getParameter(\"storeAddress\") != null && request.getParameter(\"storeAddress\") != \"\"){\n //エリア系データを取得して、DBにいるか問い合わせ\n String[] areaAry = AreaHandle.feedGeoHash(request.getParameter(\"storeAddress\"));\n if(areaAry != null){\n if(areaAry.length == 7){\n geohashAll = areaAry[0];\n geohash4 = areaAry[6];\n geohash5 = areaAry[5];\n geohash6 = areaAry[1];\n geohash8 = areaAry[2];\n lat = Double.valueOf(areaAry[3]);\n lng = Double.valueOf(areaAry[4]);\n }\n }\n //geohashの周りの値を取得\n geohashAround = CafeUtil.geohashAround(geohash6);\n \n input.put(\"lat\", String.valueOf(lat));\n input.put(\"lon\", String.valueOf(lng));\n input.put(\"geohash4\", geohash4);\n input.put(\"geohash5\", geohash5);\n input.put(\"geohash6\", geohash6);\n input.put(\"geohash8\", geohash8);\n input.put(\"geohashAround\", geohashAround);\n input.put(\"geohashAll\", geohashAll);\n input.put(\"deleteFlag\", \"0\");\n input.put(\"updateDateTime\", nowTime);\n }\n \n \n //更新の場合\n if(request.getParameter(\"key\") != null && request.getParameter(\"key\") != \"\"){\n \n //input.put(\"iine\", \"0\");\n input.put(\"key\",request.getParameter(\"key\"));\n //DBを更新\n cafeKey = service.updateData(input);\n }else{\n //フォームのパラメータを取得\n //String StoreName = (String )createStoreName(request.getParameter(\"storeName\"),request.getParameter(\"storeFlag\"));\n //input.put(\"storeName\", StoreName);\n \n //イイネ\n /*\n if(request.getParameter(\"iine\") != null && request.getParameter(\"iine\") != \"\"){\n input.put(\"iine\", 1);\n }\n */\n \n //DBに投入\n cafeKey = service.postData(input);\n \n }\n }\n \n //削除の場合\n if(request.getParameter(\"delete\") != null && request.getParameter(\"delete\") != \"\"){\n input = new RequestMap(request);\n input.put(\"deleteFlag\", \"1\");\n input.put(\"key\",request.getParameter(\"key\"));\n //DBを更新\n cafeKey = service.deleteData(input);\n }\n if(cafeKey != null){\n returnKey = String.valueOf(cafeKey.getId());\n } \n requestScope(\"returnKey\", returnKey);\n //nullがセットされないため対策\n input = notNullinput(input);\n requestScope(\"reqParam\", input);\n return forward(\"index.vm\");\n }",
"public interface RegistContract {\n interface Model {\n }\n\n interface View extends BaseView<Presenter>{\n void setInfo(String user, String user_id, String tel, String customer, String email, String storeID);\n\n void setProvince(List<String> sysNo, List<String> parentId, List<String> addressName);\n\n void infoError();\n\n void onSuccess(String description, String string);\n\n void onError(String description);\n\n void setFClass(List<String> sysNo, List<String> classID, List<String> className);\n }\n\n interface Presenter extends BasePresenter{\n\n void initData();\n\n void changeInfo(String userName,\n String passWord,\n String shopName,\n String email,\n String tenantsRate,\n String mailCode,\n String addressDetail,\n String addressCode,\n String faxNum,\n String staffId, String classCode, String classNames, String bankType, String nickNameS, String tenantsRateZ, String zfbPassageWay, String wxType, String zfbType);\n\n void insertRole(String customer, String description);\n\n void insertRate(String string);\n\n void insertPassgeWay(String string);\n }\n}",
"void render(Map<String,List<Map<String,String>>> data);"
] | [
"0.5898399",
"0.5816825",
"0.55566466",
"0.5527435",
"0.54994375",
"0.5499295",
"0.54386485",
"0.54283804",
"0.54217315",
"0.53734016",
"0.53731287",
"0.53606766",
"0.53503686",
"0.5323135",
"0.5307524",
"0.5285106",
"0.5273416",
"0.52401227",
"0.5232822",
"0.5230522",
"0.522921",
"0.52265227",
"0.5217986",
"0.5214082",
"0.5204208",
"0.5201326",
"0.5197092",
"0.51870674",
"0.51736796",
"0.5172232",
"0.5169562",
"0.51645994",
"0.515725",
"0.5146161",
"0.513595",
"0.5127125",
"0.5113596",
"0.51132554",
"0.5112218",
"0.51001245",
"0.50947183",
"0.5090882",
"0.5079748",
"0.50666493",
"0.50632554",
"0.50604206",
"0.5058888",
"0.50584537",
"0.50564283",
"0.50486696",
"0.5042809",
"0.50387955",
"0.50289243",
"0.5028801",
"0.5028095",
"0.50251526",
"0.5025083",
"0.5010599",
"0.5010582",
"0.5008371",
"0.5006495",
"0.5001532",
"0.49976784",
"0.49806094",
"0.49588394",
"0.49506626",
"0.4947618",
"0.4940866",
"0.49306586",
"0.49283928",
"0.4913382",
"0.49105215",
"0.49087614",
"0.49034452",
"0.4897715",
"0.4895978",
"0.48911896",
"0.48852873",
"0.48838568",
"0.48792246",
"0.48646492",
"0.48630184",
"0.4859097",
"0.4858583",
"0.48567986",
"0.485604",
"0.48523957",
"0.48507535",
"0.484251",
"0.48407674",
"0.48404145",
"0.4838872",
"0.4832574",
"0.4830381",
"0.4828201",
"0.48233995",
"0.4822767",
"0.48224437",
"0.48215333",
"0.4820107",
"0.48141772"
] | 0.0 | -1 |
Retrieve data posted to viewsMap for this request according to the RDCstruts interface contract, and populate the ActionForm using this data. | public static void populate(ActionForm formBean, HttpServletRequest req,
ActionErrors errors) {
Map viewsMap = (Map) req.getSession().getAttribute(ATTR_VIEWS_MAP);
Map formData = (Map) viewsMap.get(req.getAttribute(ATTR_VIEWS_MAP_KEY));
try {
BeanUtils.populate(formBean, formData);
} catch (IllegalAccessException iae) {
log.error(ERR_ILLEGAL_ACCESS);
errors.add(ERR_POP_FORM_BEAN, new ActionMessage(ERR_ILLEGAL_ACCESS));
} catch (InvocationTargetException ite) {
log.error(ERR_ILLEGAL_INVOC);
errors.add(ERR_POP_FORM_BEAN, new ActionMessage(ERR_ILLEGAL_INVOC));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@PostConstruct\n\tpublic void view() {\n\t\tif (log.isDebugEnabled()) {\n log.debug(\"Entering 'ConsultaHIPCuentaCorrientesAction - view' method\");\n }\n\t\tMap<String, String> parametros = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();;\n\t\tthis.parametrosPantalla = new HashMap<String, String>();\n\t\tthis.parametrosPantalla.putAll(parametros);\n\t\ttry {\n\t\t\tthis.formBusqueda = this.devuelveFormBusqueda();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t\n\t\t}\n\t}",
"protected ActionForm processActionForm(HttpServletRequest request,\n HttpServletResponse response,\n ActionMapping mapping)\n {\n String scope = mapping.getScope();\n if(scope != null)\n {\n try\n {\n if(scope.equals(\"session\"))\n {\n OperationContext opCon = OperationContext.getOperationContext(request);\n if(opCon != null)\n {\n if(_log.isInfoEnabled())\n {\n _log.info(\"Looking for ActionForm in OperationContext[id=\" + opCon.getOperationContextId() + \"]\"); //20030124AH\n }\n ActionForm form = opCon.getActionForm();\n if(form != null)\n {\n if(_log.isInfoEnabled())\n {\n _log.info(\"Found ActionForm in OperationContext\"); //20030124AH\n }\n return form;\n }\n else\n {\n if(_log.isWarnEnabled())\n {\n _log.warn(\"No ActionForm found in OperationContext\"); //20030124AH\n }\n return null; //20030124AH\n }\n }\n }\n }\n catch(OperationException e)\n {\n // OperationExceptions here are normal when we forward from a completed operation\n // to the next action, so we ignore them.\n }\n catch(Throwable t)\n {\n if(_log.isErrorEnabled())\n {\n _log.error(\"Error caught in processActionForm() performing customised ActionForm handling\", t); //20030124AH\n }\n }\n }\n\n if(mapping instanceof GTActionMapping)\n { //20030124AH - Check the mapping to see if we should defer form creation or do it as normal\n if( ((GTActionMapping)mapping).isDeferFormCreation() )\n {\n if(_log.isInfoEnabled())\n {\n _log.info(\"Deferring ActionForm creation\");\n }\n return null;\n }\n }\n //...\n if(_log.isInfoEnabled())\n {\n _log.info(\"Delegating to superclass to obtain ActionForm\"); //20030124AH\n }\n ActionForm form = super.processActionForm(request, response, mapping);\n return form;\n }",
"private void loadForm() {\n service.getReasons(refusalReasons);\n service.getVacEligibilty(vacElig);\n service.getVacSites(vacSites);\n service.getReactions(vacReactions);\n service.getOverrides(vacOverrides);\n updateComboValues();\n \n selPrv = \"\";\n selLoc = \"\";\n \n //datGiven.setDateConstraint(new SimpleDateConstraint(SimpleDateConstraint.NO_NEGATIVE, DateUtil.addDays(patient.getBirthDate(), -1, true), null, BgoConstants.TX_BAD_DATE_DOB));\n datGiven.setDateConstraint(getConstraintDOBDate());\n datEventDate.setConstraint(getConstraintDOBDate());\n radFacility.setLabel(service.getParam(\"Caption-Facility\", \"&Facility\"));\n if (immunItem != null) {\n \n txtVaccine.setValue(immunItem.getVaccineName());\n txtVaccine.setAttribute(\"ID\", immunItem.getVaccineID());\n txtVaccine.setAttribute(\"DATA\", immunItem.getVaccineID() + U + immunItem.getVaccineName());\n setEventType(immunItem.getEventType());\n \n radRefusal.setDisabled(!radRefusal.isChecked());\n radHistorical.setDisabled(!radHistorical.isChecked());\n radCurrent.setDisabled(!radCurrent.isChecked());\n \n visitIEN = immunItem.getVisitIEN();\n if (immunItem.getProvider() != null) {\n txtProvider.setText(FhirUtil.formatName(immunItem.getProvider().getName()));\n txtProvider.setAttribute(\"ID\", immunItem.getProvider().getId().getIdPart());\n selPrv = immunItem.getProvider().getId().getIdPart() + U + U + immunItem.getProvider().getName();\n }\n switch (immunItem.getEventType()) {\n case REFUSAL:\n ListUtil.selectComboboxItem(cboReason, immunItem.getReason());\n txtComment.setText(immunItem.getComment());\n datEventDate.setValue(immunItem.getDate());\n break;\n case HISTORICAL:\n datEventDate.setValue(immunItem.getDate());\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n txtAdminNote.setText(immunItem.getAdminNotes());\n ZKUtil.disableChildren(fraDate, true);\n ZKUtil.disableChildren(fraHistorical, true);\n default:\n service.getLot(lotNumbers, getVaccineID());\n loadComboValues(cboLot, lotNumbers, comboRenderer);\n loadVaccination();\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n ListUtil.selectComboboxItem(cboLot, immunItem.getLot());\n ListUtil.selectComboboxItem(cboSite, StrUtil.piece(immunItem.getInjSite(), \"~\", 2));\n spnVolume.setText(immunItem.getVolume());\n datGiven.setDate(immunItem.getDate());\n datVIS.setValue(immunItem.isImmunization() ? immunItem.getVISDate() : null);\n ListUtil.selectComboboxItem(cboReaction, immunItem.getReaction());\n ListUtil.selectComboboxData(cboOverride, immunItem.getVacOverride());\n txtAdminNote.setText(immunItem.getAdminNotes());\n cbCounsel.setChecked(immunItem.wasCounseled());\n }\n } else {\n IUser user = UserContext.getActiveUser();\n Practitioner provider = new Practitioner();\n provider.setId(user.getLogicalId());\n provider.setName(FhirUtil.parseName(user.getFullName()));\n txtProvider.setValue(FhirUtil.formatName(provider.getName()));\n txtProvider.setAttribute(\"ID\", VistAUtil.parseIEN(provider)); //provider.getId().getIdPart());\n selPrv = txtProvider.getAttribute(\"ID\") + U + U + txtProvider.getValue();\n Location location = new Location();\n location.setName(\"\");\n location.setId(\"\");\n datGiven.setDate(getBroker().getHostTime());\n onClick$btnVaccine(null);\n \n if (txtVaccine.getValue().isEmpty()) {\n close(true);\n return;\n }\n \n Encounter encounter = EncounterContext.getActiveEncounter();\n if (!EncounterUtil.isPrepared(encounter)) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n if (isCategory(encounter, \"E\")) {\n setEventType(EventType.HISTORICAL);\n Date date = encounter == null ? null : encounter.getPeriod().getStart();\n datEventDate.setValue(DateUtil.stripTime(date == null ? getBroker().getHostTime() : date));\n radCurrent.setDisabled(true);\n txtLocation.setText(user.getSecurityDomain().getName());\n PromptDialog.showInfo(user.getSecurityDomain().getLogicalId());\n txtLocation.setAttribute(\"ID\", user.getSecurityDomain().getLogicalId());\n \n } else {\n if (isVaccineInactive()) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n setEventType(EventType.CURRENT);\n radCurrent.setDisabled(false);\n }\n }\n }\n selectItem(cboReason, NONESEL);\n }\n btnSave.setLabel(immunItem == null ? \"Add\" : \"Save\");\n btnSave.setTooltiptext(immunItem == null ? \"Add record\" : \"Save record\");\n txtVaccine.setFocus(true);\n }",
"@Override\n\tprotected ModelAndView showForm(HttpServletRequest request\n\t\t, HttpServletResponse response\n\t\t, BindException errors){\n\n\t\tHttpSession session = null;\n\t\tModelAndView model = null;\n\n\t\t// retrieve the session Information.\n\t\tCurrentInstanceData currentInstanceData = null;\n\n\n\t\t// retrieve the session Information.\n\t\tsession = request.getSession();\n\t\tcurrentInstanceData = SessionUtils.isSessionAlive(session);\n\n\t\tif(currentInstanceData == null){\n\t\t\tException ex = new Exception(\"errors.noSession\");\n\t\t\tLogger.getLogger(ColumnController.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\terrors.reject(ex.getMessage());\n\t\t}\n\n\t\t// Send the layer list to the JSP\n\t\tmodel = new ModelAndView();\n\t\tmodel.setViewName(\"showResultingMap\");\n model.addObject(filtersKey,filtersMap.getFilters());\n\t\tmodel.addObject(\"exportForm\", new ExportData());\n\t\tmodel.addObject(\"fullSessionInfo\", currentInstanceData);\n\t\tmodel.addObject(\"speciesLayers\", layerManagerImpl.getSpeciesDistributionLayerList());\n\t\tmodel.addObject(\"mainLayer\", currentInstanceData.getLimitLayerName());\n\n\t\tif(errors != null && errors.hasErrors())\n\t\t\tmodel.addAllObjects(errors.getModel());\n\n\t\treturn model;\n\t}",
"@Override\n\tprotected void initViews(View view) {\n\t\tsuper.initViews(view);\n//\t\tsendRequestData();\n\t}",
"IFormView getFormView();",
"private void show_reviewform(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString restaurant = request.getParameter(\"key_id\");\n\t\tString restaurant_Name = request.getParameter(\"key_restName\");\n\t\tString restaurant_loc = request.getParameter(\"key_restloc\");\n\t\trequest.setAttribute(\"rrid\", restaurant);\n\t\trequest.setAttribute(\"rrname\", restaurant_Name);\n\t\trequest.setAttribute(\"rrloc\", restaurant_loc);\n\t\trequest.getRequestDispatcher(\"/WEB-INF/jsp/view/reviewform.jsp\").forward(request, response);\n\n\t}",
"public ViewFinalFixAction() {\n this.viewData = new StudioFinalFixDTO();\n }",
"private void getDataFromView() throws EmptyTextFieldException, EmptyChoiceBoxException, NumberSmallerOneException {\n\n date = _view.getDate().getValue();\n title = _view.getTitle().getText();\n function = _view.getFunction().getText();\n protagonist = _view.getProtagonist().getText();\n source = _view.getSource().getText();\n references = _view.getReferences().getText();\n description = _view.getDescription().getText();\n checkForEmptyFields();\n\n priority = _view.getPriorityMap().get(_view.getPriority().getValue());\n classification = _view.getClassificationMap().get(_view.getClassification().getValue());\n checkForEmptyChoiceBox();\n\n id = Integer.parseInt(_view.getId().getText());\n ftr = Integer.parseInt(_view.getFtr().getText());\n det = Integer.parseInt(_view.getDet().getText());\n checkForNumbersSmallerOne();\n }",
"public ActionForward populateXenograftDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request,\n HttpServletResponse response) throws Exception {\n String modelID = request.getParameter(\"xModelID\");\n String nsc = request.getParameter(\"nsc\");\n \t\tif(nsc != null && nsc.length()==0) return mapping.findForward(\"viewModelCharacteristics\");\n log.info(\"<populateXenograftDetails> modelID:\" + modelID);\n log.info(\"<populateXenograftDetails> nsc:\" + nsc);\n \t\tXenograftManager mgr = (XenograftManager) getBean(\"xenograftManager\");\n \n Xenograft x = null;\n try {\n x = mgr.get(modelID);\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n setCancerModel(request);\n request.getSession().setAttribute(Constants.XENOGRAFTMODEL, x);\n request.getSession().setAttribute(Constants.NSC_NUMBER, nsc);\n return mapping.findForward(\"viewInvivoDetails\");\n }",
"@View( value = VIEW_MULTIVIEW_FORMS, defaultView = true )\n public String getMultiviewFormsView( HttpServletRequest request )\n {\n // Retrieve the list of all filters, columns and panels if the pagination and\n // the sort are not used\n boolean bIsSessionLost = isSessionLost( );\n if ( isPaginationAndSortNotUsed( request ) || bIsSessionLost )\n {\n initFormRelatedLists( request );\n manageSelectedPanel( );\n }\n _listAuthorizedFormPanelDisplay = _listFormPanelDisplay.stream( )\n .filter( fpd -> RBACService.isAuthorized( fpd.getFormPanel( ).getFormPanelConfiguration( ), FormPanelConfigIdService.PERMISSION_VIEW,\n (User) AdminUserService.getAdminUser( request ) ) )\n .collect( Collectors.toList( ) );\n\n // Build the Column for the Panel and save their values for the active panel\n initiatePaginatorProperties( request );\n buildFormItemSortConfiguration( request );\n buildFormPanelDisplayWithData( request, getIndexStart( ), _nItemsPerPage, _formItemSortConfig );\n\n // Build the template of each form filter display\n if ( isPaginationAndSortNotUsed( request ) || bIsSessionLost )\n {\n _listFormFilterDisplay.stream( ).forEach( formFilterDisplay -> formFilterDisplay.buildTemplate( request ) );\n Collections.sort( _listFormFilterDisplay, new FormListPositionComparator( ) );\n }\n\n // Retrieve the list of all id of form response of the active FormPanelDisplay\n List<Integer> listIdFormResponse = MultiviewFormUtil.getListIdFormResponseOfFormPanel( _formPanelDisplayActive );\n\n // Build the model\n if ( _formPanelDisplayActive == null && CollectionUtils.isNotEmpty( _listAuthorizedFormPanelDisplay ) )\n {\n _formPanelDisplayActive = _listAuthorizedFormPanelDisplay.get( 0 );\n _formPanelDisplayActive.setActive( true );\n }\n Map<String, Object> model = getPaginatedListModel( request, AbstractPaginator.PARAMETER_PAGE_INDEX, listIdFormResponse, buildPaginatorUrl( ),\n _formPanelDisplayActive.getFormPanel( ).getTotalFormResponseItemCount( ) );\n\n // Get the config multiview action if the current admin user is authorized\n GlobalFormsAction multiviewConfigAction = GlobalFormsActionHome.selectGlobalFormActionByCode( FormsConstants.ACTION_FORMS_MANAGE_MULTIVIEW_CONFIG,\n FormsPlugin.getPlugin( ), request.getLocale( ) );\n\n if ( RBACService.isAuthorized( (RBACResource) multiviewConfigAction, GlobalFormsAction.PERMISSION_PERFORM_ACTION,\n (User) AdminUserService.getAdminUser( request ) ) )\n {\n model.put( FormsConstants.MARK_MULTIVIEW_CONFIG_ACTION, multiviewConfigAction );\n }\n\n GlobalFormsAction multiviewExportAction = GlobalFormsActionHome.selectGlobalFormActionByCode( FormsConstants.ACTION_FORMS_EXPORT_RESPONSES,\n FormsPlugin.getPlugin( ), request.getLocale( ) );\n\n if ( RBACService.isAuthorized( (RBACResource) multiviewExportAction, GlobalFormsAction.PERMISSION_PERFORM_ACTION,\n (User) AdminUserService.getAdminUser( request ) ) )\n {\n model.put( FormsConstants.MARK_MULTIVIEW_EXPORT_ACTION, multiviewExportAction );\n }\n\n model.put( MARK_PAGINATOR, getPaginator( ) );\n model.put( MARK_LOCALE, getLocale( ) );\n model.put( MARK_FORM_FILTER_LIST, _listFormFilterDisplay );\n\n // Add the template of column to the model\n String strSortUrl = String.format( BASE_SORT_URL_PATTERN, _strSelectedPanelTechnicalCode );\n String strRedirectionDetailsBaseUrl = buildRedirectionDetailsBaseUrl( );\n String strTableTemplate = \"\";\n if ( _formPanelDisplayActive != null )\n {\n strTableTemplate = FormListTemplateBuilder.buildTableTemplate( _listFormColumnDisplay, _formPanelDisplayActive.getFormResponseItemList( ),\n getLocale( ), strRedirectionDetailsBaseUrl, strSortUrl, getPaginator( ).getPageItems( ) );\n }\n model.put( MARK_TABLE_TEMPLATE, strTableTemplate );\n\n // Add the list of all form panel\n model.put( MARK_FORM_PANEL_LIST, _listAuthorizedFormPanelDisplay );\n model.put( MARK_CURRENT_SELECTED_PANEL, _strSelectedPanelTechnicalCode );\n model.put( MARK_LIST_FORMAT_EXPORT, ExportServiceManager.getInstance( ).getRefListFormatExport( ) );\n\n return getPage( PROPERTY_FORMS_MULTIVIEW_PAGE_TITLE, TEMPLATE_FORMS_MULTIVIEW, model );\n }",
"void invokeAppLogic(IMenu fromMenu, Map<String, String> formData);",
"@Override\r\n\tprotected void validateData(ActionMapping arg0, HttpServletRequest arg1) {\n\t\t\r\n\t}",
"public abstract FullResponse onServeFormParams(Map<String, List<String>> formParams);",
"abstract public void dispatch(final String serializedForm);",
"private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }",
"private static BaseMessage dealViewEvent(Map<String, String> requestMap) {\n\t\treturn null;\r\n\t}",
"private void buildFormPanelDisplayWithData( HttpServletRequest request, int nIndexStart, int nPageSize, FormItemSortConfig sortConfig )\n {\n // Retrieve the list of all FormFilter\n List<FormFilter> listFormFilter = _listFormFilterDisplay.stream( ).map( IFormFilterDisplay::getFormFilter ).collect( Collectors.toList( ) );\n\n // Check in filters if the columns list has to be fetch again\n reloadFormColumnList( listFormFilter, request.getLocale( ), (User) AdminUserService.getAdminUser( request ) );\n if ( formSelectedAsChanged( request ) )\n {\n _strFormSelectedValue = request.getParameter( FormsConstants.PARAMETER_ID_FORM );\n reloadFormFilterList( listFormFilter, request );\n }\n\n for ( IFormPanelDisplay formPanelDisplay : _listAuthorizedFormPanelDisplay )\n {\n // Retrieve the FormPanel from the FormPanelDisplay\n FormPanel formPanel = formPanelDisplay.getFormPanel( );\n\n // Populate the FormColumns from the information of the list of FormResponseItem\n // of the given FormPanel\n MultiviewFormService.getInstance( ).populateFormColumns( formPanel, _listFormColumn, listFormFilter, nIndexStart, nPageSize, sortConfig );\n\n // Associate for each FormColumnDisplay its FormColumnValues if the panel is\n // active\n if ( formPanelDisplay.isActive( ) )\n {\n _formPanelDisplayActive = formPanelDisplay;\n }\n\n // Build the template of the form list panel\n formPanelDisplay.buildTemplate( getLocale( ) );\n }\n }",
"public void setFormData(){\r\n try{\r\n if(vecSpecialReviewData != null){\r\n SpecialReviewFormBean specialReviewFormBean = null;\r\n for(int index = 0; index < vecSpecialReviewData.size(); index++){\r\n specialReviewFormBean = (SpecialReviewFormBean)vecSpecialReviewData.elementAt(index);\r\n \r\n // Case# 3110: Special review in prop dev linked to protocols - Start\r\n if(enableProtocolToDevProposalLink == 1 && specialReviewFormBean .getSpecialReviewCode() == specialReviewTypeCode){\r\n specialReviewFormBean .setSpecialReviewCode(specialReviewTypeCode);\r\n // 4154: Problems in IRB Linking - Start\r\n// specialReviewFormBean .setApprovalCode(linkedToIRBCode);\r\n// specialReviewFormBean .setApplicationDate(null);\r\n// specialReviewFormBean .setApprovalDate(null);\r\n // 4154: Problems in IRB Linking - End\r\n if(specialReviewFormBean.getProtocolSPRevNumber()!= null){\r\n ProtocolInfoBean protocolInfoBean = getProtocolDetails(specialReviewFormBean.getProtocolSPRevNumber().trim());\r\n if(protocolInfoBean!= null){\r\n if(protocolInfoBean.getProtocolStatusDesc() != null && !protocolInfoBean.getProtocolStatusDesc().equals(\"\")){\r\n specialReviewFormBean.setApprovalDescription(protocolInfoBean.getProtocolStatusDesc());\r\n }\r\n if(protocolInfoBean.getApplicationDate() != null && !protocolInfoBean.getApplicationDate().equals(\"\")){\r\n specialReviewFormBean.setApplicationDate(protocolInfoBean.getApplicationDate());\r\n }\r\n if(protocolInfoBean.getApprovalDate() != null && !protocolInfoBean.getApprovalDate().equals(\"\")){\r\n specialReviewFormBean.setApprovalDate(protocolInfoBean.getApprovalDate());\r\n }\r\n // 4154: Problems in IRB Linking - Start\r\n // Enabled for COEUSQA-3726 : Issue with IRB linking - while adding a special review in proposal dev application is incorrectly updating the approval type code - Start\r\n if(protocolInfoBean.getProtocolNumber() != null){\r\n specialReviewFormBean .setApprovalCode(linkedToIRBCode);\r\n }\r\n // Enabled for COEUSQA-3726 : Issue with IRB linking - while adding a special review in proposal dev application is incorrectly updating the approval type code - End\r\n // 4154: Problems in IRB Linking - End\r\n }\r\n }\r\n //Added for COEUSQA-3119- Need to implement IACUC link to Award, IP, Prop Dev, and IRB - start\r\n //If ENABLE_IACUC_TO_DEV_PROPOSAL_LINK is 1 and special review code is of type Animal Usage then it should display the\r\n //iacuc details of that special review.\r\n } else if(enableIacucToDevProposalLink == 1 && specialReviewFormBean .getSpecialReviewCode() == specialRevTypeCodeParamForIacuc){\r\n specialReviewFormBean .setSpecialReviewCode(specialRevTypeCodeParamForIacuc);\r\n if(specialReviewFormBean.getProtocolSPRevNumber()!= null){\r\n edu.mit.coeus.iacuc.bean.ProtocolInfoBean protocolInfoBean = \r\n getIacucProtocolDetails(specialReviewFormBean.getProtocolSPRevNumber().trim());\r\n if(protocolInfoBean!= null){\r\n if(protocolInfoBean.getProtocolStatusDesc() != null && !CoeusGuiConstants.EMPTY_STRING.equals(protocolInfoBean.getProtocolStatusDesc())){\r\n specialReviewFormBean.setApprovalDescription(protocolInfoBean.getProtocolStatusDesc());\r\n }\r\n if(protocolInfoBean.getApplicationDate() != null && !CoeusGuiConstants.EMPTY_STRING.equals(protocolInfoBean.getApplicationDate())){\r\n specialReviewFormBean.setApplicationDate(protocolInfoBean.getApplicationDate());\r\n }\r\n if(protocolInfoBean.getApprovalDate() != null && !CoeusGuiConstants.EMPTY_STRING.equals(protocolInfoBean.getApprovalDate())){\r\n specialReviewFormBean.setApprovalDate(protocolInfoBean.getApprovalDate());\r\n }\r\n // Enabled for COEUSQA-3726 : Issue with IRB linking - while adding a special review in proposal dev application is incorrectly updating the approval type code - Start\r\n if(protocolInfoBean.getProtocolNumber() != null){\r\n specialReviewFormBean .setApprovalCode(linkedToIACUCCode);\r\n }\r\n // Enabled for COEUSQA-3726 : Issue with IRB linking - while adding a special review in proposal dev application is incorrectly updating the approval type code - End\r\n }\r\n }\r\n }\r\n //Added for COEUSQA-3119- Need to implement IACUC link to Award, IP, Prop Dev, and IRB - end\r\n \r\n //Added for COEUSQA-2984 : Statuses in special review - start\r\n /*\r\n * When proposal will be in progress and it is human usage linkage it should display the current status of the protocol(special review)\r\n * But once proposal is submitted it should not display the current status of the protocol\r\n */\r\n else{\r\n int statusCode = getCreationStatusCode();\r\n \r\n ProposalSpecialReviewFormBean proposalSpecialReviewFormBean = null;\r\n if(PROPOSAL_SUBMITTED_STATUS != statusCode && SPECIAL_REVIEW_FOR_HUMAN_SUBJECTS == specialReviewFormBean .getSpecialReviewCode()){\r\n //Added for COEUSQA-3367 : Unknown error opening dev proposal - Error with IACUC link - start\r\n //Added for COEUSQA-3418 : Special Reviews approval type & other details do not \"stick\" in Dev Proposal, IP, or Award - start\r\n //if parameter ENABLE_PROTOCOL_TO_DEV_PROPOSAL_LINK is enabled then only special review should display the original status\r\n if(specialReviewFormBean.getProtocolSPRevNumber()!=null && enableProtocolToDevProposalLink == 1){\r\n ProtocolInfoBean protocolInfoBean = getProtocolDetails(specialReviewFormBean.getProtocolSPRevNumber().trim());\r\n if(protocolInfoBean.getProtocolStatusDesc()!= null){\r\n specialReviewFormBean.setApprovalDescription(protocolInfoBean.getProtocolStatusDesc());\r\n }\r\n if(protocolInfoBean.getProtocolStatusDesc()== null && specialReviewFormBean.getApprovalDescription()!=null){\r\n specialReviewFormBean.setApprovalDescription(specialReviewFormBean.getApprovalDescription());\r\n }\r\n }\r\n //Added for COEUSQA-3418 : Special Reviews approval type & other details do not \"stick\" in Dev Proposal, IP, or Award - end\r\n //Added for COEUSQA-3367 : Unknown error opening dev proposal - Error with IACUC link - end\r\n }\r\n //If there is no protocol status code in DB for particular special review and proposal is in submitted status\r\n //then it should display the actual status of the protocol(special review)\r\n if(PROPOSAL_SUBMITTED_STATUS == statusCode && specialReviewFormBean.getProtocolStatusCode()== 0 &&\r\n SPECIAL_REVIEW_FOR_HUMAN_SUBJECTS == specialReviewFormBean .getSpecialReviewCode()){\r\n //Added for COEUSQA-3367 : Unknown error opening dev proposal - Error with IACUC link - start\r\n if(specialReviewFormBean.getProtocolSPRevNumber()!=null){\r\n ProtocolInfoBean protocolInfoBean = getProtocolDetails(specialReviewFormBean.getProtocolSPRevNumber().trim());\r\n if(protocolInfoBean.getProtocolStatusDesc()!= null){\r\n specialReviewFormBean.setApprovalDescription(protocolInfoBean.getProtocolStatusDesc());\r\n }\r\n if(protocolInfoBean.getProtocolStatusDesc()== null && specialReviewFormBean.getApprovalDescription()!=null){\r\n specialReviewFormBean.setApprovalDescription(specialReviewFormBean.getApprovalDescription());\r\n }\r\n }\r\n //Added for COEUSQA-3367 : Unknown error opening dev proposal - Error with IACUC link - end\r\n }\r\n \r\n //Added for COEUSQA-3119- Need to implement IACUC link to Award, IP, Prop Dev, and IRB - start\r\n //When proposal will be in progress and it is human usage linkage it should display the current status of the protocol(special review)\r\n //But once proposal is submitted it should not display the current status of the protocol\r\n if(PROPOSAL_SUBMITTED_STATUS != statusCode && SPECIAL_REVIEW_FOR_ANIMAL_USAGE == specialReviewFormBean .getSpecialReviewCode()){\r\n //Added for COEUSQA-3367 : Unknown error opening dev proposal - Error with IACUC link - start\r\n //Added for COEUSQA-3418 : Special Reviews approval type & other details do not \"stick\" in Dev Proposal, IP, or Award - start\r\n //if parameter ENABLE_IACUC_TO_DEV_PROPOSAL_LINK is enabled then only special review should display the original status\r\n if(specialReviewFormBean.getProtocolSPRevNumber()!=null && enableIacucToDevProposalLink == 1){\r\n edu.mit.coeus.iacuc.bean.ProtocolInfoBean protocolInfoBean = getIacucProtocolDetails(specialReviewFormBean.getProtocolSPRevNumber().trim());\r\n if(protocolInfoBean.getProtocolStatusDesc()!= null){\r\n specialReviewFormBean.setApprovalDescription(protocolInfoBean.getProtocolStatusDesc());\r\n }\r\n if(protocolInfoBean.getProtocolStatusDesc()== null && specialReviewFormBean.getApprovalDescription()!=null){\r\n specialReviewFormBean.setApprovalDescription(specialReviewFormBean.getApprovalDescription());\r\n }\r\n }\r\n //Added for COEUSQA-3418 : Special Reviews approval type & other details do not \"stick\" in Dev Proposal, IP, or Award - end\r\n //Added for COEUSQA-3367 : Unknown error opening dev proposal - Error with IACUC link - end\r\n \r\n }\r\n\r\n //If there is no protocol status code in DB for particular special review and proposal is in submitted status\r\n //then it should display the actual status of the protocol(special review)\r\n if(PROPOSAL_SUBMITTED_STATUS == statusCode && specialReviewFormBean.getProtocolStatusCode()== 0 &&\r\n SPECIAL_REVIEW_FOR_ANIMAL_USAGE == specialReviewFormBean .getSpecialReviewCode()){\r\n //Added for COEUSQA-3367 : Unknown error opening dev proposal - Error with IACUC link - start\r\n if(specialReviewFormBean.getProtocolSPRevNumber()!=null){\r\n edu.mit.coeus.iacuc.bean.ProtocolInfoBean protocolInfoBean = getIacucProtocolDetails(specialReviewFormBean.getProtocolSPRevNumber().trim());\r\n if(protocolInfoBean.getProtocolStatusDesc()!= null){\r\n specialReviewFormBean.setApprovalDescription(protocolInfoBean.getProtocolStatusDesc());\r\n }\r\n if(protocolInfoBean.getProtocolStatusDesc()== null && specialReviewFormBean.getApprovalDescription()!=null){\r\n specialReviewFormBean.setApprovalDescription(specialReviewFormBean.getApprovalDescription());\r\n }\r\n }\r\n //Added for COEUSQA-3367 : Unknown error opening dev proposal - Error with IACUC link - end\r\n }\r\n //Added for COEUSQA-3119- Need to implement IACUC link to Award, IP, Prop Dev, and IRB - end\r\n }\r\n //Added for COEUSQA-2984 : Statuses in special review - end\r\n \r\n// // Case# 3110: Special review in prop dev linked to protocols - End\r\n\r\n if(specialReviewFormBean.getAcType() != null && specialReviewFormBean.getAcType().equals(\"D\")){\r\n /*\r\n *Fix for Bugid #2435\r\n *Create delete vector instance if its null\r\n *Geo on 09-29-2006\r\n *BEGIN\r\n */\r\n if(vecDelSpecialReviewData==null) vecDelSpecialReviewData = new Vector();\r\n /*\r\n *END #2435\r\n */\r\n vecDelSpecialReviewData.addElement(specialReviewFormBean);\r\n vecSpecialReviewData.removeElementAt(index);\r\n index--;\r\n }\r\n }\r\n //Added for case#3183 - Proposal Hierarchy - starts\r\n //To update the records in the table after syncing.\r\n// specialReviewForm.setFormData();\r\n specialReviewForm.setTableEditors();\r\n if(((DefaultTableModel) specialReviewForm.tblSpecialReview.getModel()).getRowCount() >0){\r\n (specialReviewForm.tblSpecialReview.getSelectionModel()).setSelectionInterval(0, 0);\r\n }\r\n //Added for case#3183 - Proposal Hierarchy - ends\r\n // Commented for Case# 3110: Special review in prop dev linked to protocols - Start\r\n// // Case # 2021\r\n// for(int index=0;index<vecSpecialReviewData.size();index++){\r\n// specialReviewFormBean = (SpecialReviewFormBean)vecSpecialReviewData.get(index);\r\n// //Added/Modified for case#2990 - start\r\n// if(specialReviewFormBean.getSpecialReviewCode() == 1){\r\n// if(specialReviewFormBean.getProtocolSPRevNumber()!= null){\r\n// ProtocolInfoBean protocolInfoBean = getProtocolDetails(specialReviewFormBean.getProtocolSPRevNumber().trim());\r\n// if(protocolInfoBean!= null){\r\n// if(protocolInfoBean.getProtocolStatusDesc() != null && !protocolInfoBean.getProtocolStatusDesc().equals(\"\")){\r\n// specialReviewFormBean.setApprovalDescription(protocolInfoBean.getProtocolStatusDesc());\r\n// }\r\n// if(protocolInfoBean.getApplicationDate() != null && !protocolInfoBean.getApplicationDate().equals(\"\")){\r\n// specialReviewFormBean.setApplicationDate(protocolInfoBean.getApplicationDate());\r\n// }\r\n// if(protocolInfoBean.getApprovalDate() != null && !protocolInfoBean.getApprovalDate().equals(\"\")){\r\n// specialReviewFormBean.setApprovalDate(protocolInfoBean.getApprovalDate());\r\n// }\r\n// }\r\n// }\r\n// }\r\n// //Added/Modified for case#2990 - end\r\n// }// Case # 2021\r\n // Commented for Case# 3110: Special review in prop dev linked to protocols - End\r\n }\r\n }catch (CoeusException ex){\r\n ex.printStackTrace();\r\n CoeusOptionPane.showErrorDialog(ex.getMessage());\r\n }\r\n }",
"private void createForm(ArrayList<HashMap<String, String>> data) {\n\t\tLayoutInflater inflater = LayoutInflater.from(IPropertyRegistrationActivity.this);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.MATCH_PARENT,\n\t\t\t\tandroid.widget.LinearLayout.LayoutParams.WRAP_CONTENT);\n\t\tparams.topMargin = 10;\n\n\t\tfields = data;\n\t\tLinearLayout layout = null;\n\t\tint len = fields.size();\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tfinal HashMap<String, String> field = fields.get(j);\n\t\t\tView fieldView = inflater.inflate(R.layout.iproperty_registration_dynamic_view_item, null);\n\n\t\t\tif (field.get(TYPE).equals(LABEL)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrLabel));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditArea));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\n\t\t\t\tif (field.get(VALUE).toString().trim().length() > 0) {\n\t\t\t\t\tedit.setText(field.get(VALUE));\n\t\t\t\t} else {\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tfinal ImageView imgMap;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditMap));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\timgMap = ((ImageView) layout.findViewById(R.id.imgMap));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.state))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getAdminArea().replace(address.getCountryName() == null ? \"\" : address.getCountryName(), \"\")\n\t\t\t\t\t\t\t\t.replace(address.getPostalCode() == null ? \"\" : address.getPostalCode(), \"\"));\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(NAME).equalsIgnoreCase(getString(R.string.city_town))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getSubAdminArea());\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\timgMap.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\teditMap = edit;\n\t\t\t\t\t\tIntent intent = new Intent(IPropertyRegistrationActivity.this, IjoomerMapAddress.class);\n\t\t\t\t\t\tstartActivityForResult(intent, GET_ADDRESS_FROM_MAP);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(SELECT)) {\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrSpin));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tfinal Spinner spn;\n\t\t\t\tspn = ((Spinner) layout.findViewById(R.id.txtValue));\n\t\t\t\tspn.setAdapter(IjoomerUtilities.getSpinnerAdapter(field));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.country))) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tString country = address.getCountryName();\n\t\t\t\t\t\tint selectedIndex = 0;\n\t\t\t\t\t\tJSONArray jsonArray = null;\n\n\t\t\t\t\t\tjsonArray = new JSONArray(field.get(OPTIONS));\n\t\t\t\t\t\tint optionSize = jsonArray.length();\n\t\t\t\t\t\tfor (int k = 0; k < optionSize; k++) {\n\t\t\t\t\t\t\tJSONObject options = (JSONObject) jsonArray.get(k);\n\n\t\t\t\t\t\t\tif (options.getString(VALUE).equalsIgnoreCase(country)) {\n\t\t\t\t\t\t\t\tselectedIndex = k;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tspn.setSelection(selectedIndex);\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tspn.setSelection(0);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getDateDialog(((IjoomerEditText) v).getText().toString(), true, new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(TIME)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getTimeDialog(((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getMultiSelectionDialog(field.get(NAME), field.get(OPTIONS), ((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (field.get(REQUIRED).equalsIgnoreCase(\"1\")) {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME) + \" *\");\n\t\t\t} else {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t}\n\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEdit)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditArea)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrSpin)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrLabel)).setVisibility(View.GONE);\n\n\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrReadOnly));\n\t\t\tlayout.setVisibility(View.VISIBLE);\n\n\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t((IjoomerEditText) layout.findViewById(R.id.txtValue)).setText(field.get(VALUE));\n\t\t\tfieldView.setTag(field);\n\t\t\tlnr_form.addView(fieldView, params);\n\t\t}\n\t}",
"@Override\r\n\tpublic void fill(FormMap formMap) {\n\t\tif (log.isInfoEnabled()) {\r\n\t\t\tlog.info(\"Into the fill method\");\t\t\t\r\n\t\t}\r\n\t\tif (formMap == null) return;\r\n\t\tif ( formMap.getField(\"name\") != null) {\r\n\t\t\tString name=formMap.getField(\"name\").getValue();\r\n\t\t\tsetName(name);\r\n\t\t}\r\n\t\tif ( formMap.getField(\"email\") != null) {\r\n\t\t\tString email=formMap.getField(\"email\").getValue();\r\n\t\t\tsetEmail(email);\r\n\t\t}\r\n\t\tif ( formMap.getField(\"comment\") != null) {\r\n\t\t\tString comment=formMap.getField(\"comment\").getValue();\r\n\t\t\tsetComment(comment);\r\n\t\t}\r\n\t\tif ( formMap.getField(\"rating\") != null) {\r\n\t\t\tString rating=formMap.getField(\"rating\").getValue();\r\n\t\t\tLong longrating=Long.parseLong(rating);\r\n\t\t\tsetRating(longrating);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void updateView() {\n if (mData.isEmpty()) {\n Logger.d(TAG, \"The mData is empty\");\n return;\n }\n Set<View> viewSet = mData.keySet(); // keySet() returns [] if map is\n // empty\n Iterator<View> viewIterator = viewSet.iterator();\n if (viewIterator == null) {\n Logger.d(TAG, \"The viewIterator is null\");\n return;\n }\n while (viewIterator.hasNext()) {\n View view = viewIterator.next();\n if (view == null) {\n Logger.d(TAG, \"The view is null\");\n } else {\n Object obj = mData.get(view);\n if (obj == null) {\n Logger.d(TAG, \"The value is null\");\n } else {\n if (obj instanceof ChatsStruct) {\n ChatsStruct chatStruct = (ChatsStruct) obj;\n updateChats(view, chatStruct);\n } else if (obj instanceof InvitationStruct) {\n InvitationStruct inviteStruct = (InvitationStruct) obj;\n updateInvitations(view, inviteStruct);\n } else {\n Logger.d(TAG, \"Unknown view type\");\n }\n }\n }\n }\n }",
"public sub_Form(HashMap<String, ReturnedValue> entry, int index){\n this.form_ID = entry.get(\"formID\").to_string();\n this.repID = entry.get(\"repID\").to_string();\n this.plantRegistry = entry.get(\"plantRegistry\").to_string();\n this.domesticOrImported = entry.get(\"domesticOrImported\").to_string();\n this.serialNumber = entry.get(\"serialNumber\").to_string();\n this.beverageType = entry.get(\"beverageType\").to_string();\n this.brandName = entry.get(\"brandName\").to_string();\n this.fancifulName = entry.get(\"fancifulName\").to_string();\n this.vintage = entry.get(\"vintage\").to_string();\n this.grapeVarietals = entry.get(\"grapeVarietals\").to_string();\n this.pHValue = entry.get(\"pHValue\").to_string();\n this.wineAppellation = entry.get(\"wineAppellation\").to_string();\n this.alcoholContent = entry.get(\"alcoholContent\").to_string();\n this.phoneNumber = entry.get(\"phoneNumber\").to_string();\n this.email = entry.get(\"email\").to_string();\n this.index = index;\n }",
"private void readForm() {\n }",
"private void renderTransferData() {\n \n Transfer transfer = data.getTransfer();; \n JsArray<CustomFieldValue> customFieldValues = transfer.getCustomValues();\n \n String loggedName = LoggedUser.get().getInitialData().getProfile().getName();\n String transferName = transfer.getBasicMember() == null ? transfer.getSystemAccountName() : transfer.getBasicMember().getName();\n\n // Set from and to\n String from = transfer.getAmount() > 0 ? transferName : loggedName;\n String to = transfer.getAmount() > 0 ? loggedName : transferName;\n \n Map<String, String> formData = new LinkedHashMap<String, String>();\n \n // Add transfer properties\n formData.put(messages.date(), transfer.getFormattedProcessDate());\n formData.put(messages.paymentNumber(), transfer.getTransactionNumber());\n formData.put(messages.from(), from);\n formData.put(messages.to(), to);\n formData.put(messages.type(), transfer.getTransferType().getName());\n formData.put(messages.amount(), transfer.getFormattedAmount());\n formData.put(messages.description(), transfer.getDescription()); \n \n // Add custom fields\n if(customFieldValues != null && customFieldValues.length() > 0) {\n for(int i = 0; i < customFieldValues.length(); i++) {\n CustomFieldValue value = customFieldValues.get(i);\n formData.put(value.getDisplayName(), value.getValue()); \n } \n } \n form.setData(formData);\n \n List<PageAction> actions = new ArrayList<PageAction>(); \n \n // Add contact action if related member is not a contact yet\n if(data.isCanAddContact()) {\n actions.add(getAddToContactsAction());\n }\n \n // Add payment action if contact can make member/system payments\n if(transfer.getBasicMember() == null && LoggedUser.get().getInitialData().canMakeSystemPayments()) {\n actions.add(getNewPaymentAction());\n } else if(transfer.getBasicMember() != null && LoggedUser.get().getInitialData().canMakeMemberPayments()) {\n actions.add(getNewPaymentAction());\n }\n \n // Add actions asynchronously\n CyclosMobile.get().getMainLayout().addActions(actions, true);\n \n // Display loaded data\n container.setVisible(true);\n }",
"ActionMap getActionMap() {\n return createActionMap(); }",
"public Form getViewForm() throws PublicationTemplateException;",
"public void setFormData(Object data) /*throws edu.mit.coeus.exception.CoeusException*/ {\r\n try {\r\n cvHierarchyData = (CoeusVector)queryEngine.getDetails(queryKey,SponsorHierarchyBean.class);\r\n cvSortData = (CoeusVector)queryEngine.getDetails(queryKey,SponsorHierarchyBean.class);\r\n cvGroupsData = (CoeusVector)queryEngine.getDetails(queryKey,SponsorMaintenanceFormBean.class);\r\n rowId = cvHierarchyData.size()+1;\r\n //Case#2445 - proposal development print forms linked to indiv sponsor, should link to sponsor hierarchy \r\n if(getFunctionType() != CoeusGuiConstants.DISPLAY_MODE){\r\n try{\r\n isPrintingHierarchy = canUserLoadSponsorForms();\r\n }catch (CoeusUIException coeusUIException) {\r\n CoeusOptionPane.showErrorDialog(coeusUIException.getMessage());\r\n return;\r\n }\r\n }\r\n //Case#2445 - End\r\n \r\n }catch (CoeusException coeusException) {\r\n coeusException.printStackTrace();\r\n }\r\n }",
"ActionMap createActionMap() {\n ActionMap am = super.createActionMap();\n if (am != null) {\n am.put(\"selectMenu\", new PostAction((JMenu)menuItem, true)); }\n return am; }",
"private void initForm(@Nullable View view){\n inputCalendar = formatCalendar(new GregorianCalendar());\n\n if (view == null) view = getView();\n\n setValueOfField(view, R.id.at_button_date, getContext().getString(R.string.ad_button_date));\n setValueOfField(view, R.id.at_editTextNumberSigned_timeValue, \"0\");\n setValueOfField(view, R.id.at_editTextNumberSigned_levelEasyValue, \"0\");\n setValueOfField(view, R.id.at_editTextNumberSigned_levelMiddleValue, \"0\");\n setValueOfField(view, R.id.at_editTextNumberSigned_levelHighValue, \"0\");\n setValueOfField(view, R.id.at_editTextNumberSigned_levelExpertValue, \"0\");\n }",
"private void populateForm() {\n Part selectedPart = (Part) PassableData.getPartData();\n partPrice.setText(String.valueOf(selectedPart.getPrice()));\n partName.setText(selectedPart.getName());\n inventoryCount.setText(String.valueOf(selectedPart.getStock()));\n partId.setText(String.valueOf(selectedPart.getId()));\n maximumInventory.setText(String.valueOf(selectedPart.getMax()));\n minimumInventory.setText(String.valueOf(selectedPart.getMin()));\n\n if (PassableData.isOutsourced()) {\n Outsourced part = (Outsourced) selectedPart;\n variableTextField.setText(part.getCompanyName());\n outsourced.setSelected(true);\n\n } else if (!PassableData.isOutsourced()) {\n InHouse part = (InHouse) selectedPart;\n variableTextField.setText(String.valueOf(part.getMachineId()));\n inHouse.setSelected(true);\n }\n\n\n }",
"@Override\n protected void initForm(HttpServletRequest request, ActionForm form,\n \t\tRepairPlan domain, boolean canEdit) {\n \trequest.setAttribute(\"maintenaceLevelSelect\",DataDictHelper.findDataDicts(\"BYJB\"));\n \trequest.setAttribute(\"intervalSelect\", this.repairRecordService.getIntervalSelect());\n \trequest.setAttribute(\"projectName\",this.repairRecordService.getProjectName());\n \tLong id = RequestUtils.getLongParameter(\"id\", -1);\n \tMap<String,RepairPlanRule> map = new HashMap<String, RepairPlanRule>();\n \tif(id != -1){\n \t\tRepairPlan bean = this.getService().load(id);\n \t\tif(bean != null){\n \t\t\tList<RepairPlanRule> repairPlanRules = bean.getRepairPlanRules();\n \t\t\tif(repairPlanRules != null && !repairPlanRules.isEmpty()){\n \t\t\t\tfor(RepairPlanRule rpr : repairPlanRules){\n \t\t\t\t\tif(rpr != null)\n \t\t\t\t\t\tmap.put(rpr.getMaintenaceLevel(), rpr);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n \tLong equipmentId = RequestUtils.getLongParameter(\"equipmentId\", -1);\n \tboolean barShow = RequestUtils.getBooleanParameter(\"barShow\", true);\n \tboolean selShow = true;\n \tif(equipmentId != -1){\n \t\tEquipmentDetailsService equipmentDetailsService = AppContext.getServiceFactory().getService(\"equipmentDetailsService\");\n \t\tdomain.setEquipmentDetails(equipmentDetailsService.load(equipmentId));\n \t\tselShow = false;\n \t}\n \trequest.setAttribute(\"selShow\",selShow);\n \trequest.setAttribute(\"barShow\",barShow);\n \trequest.setAttribute(\"ruleMap\",map);\n }",
"@Override\r\n \tpublic ActionForward executeSecureAction(ActionMapping mapping, ActionForm form,\r\n \t\t\tHttpServletRequest request, HttpServletResponse response) throws IOException,\r\n \t\t\tServletException\r\n \t{\r\n \t\tsaveActionErrors(form, request);\r\n \t\t// //Gets the value of the operation parameter.\r\n \t\t// String operation = request.getParameter(Constants.OPERATION);\r\n \t\t//\r\n \t\t// //Sets the operation attribute to be used in the Add/Edit Institute\r\n \t\t// Page.\r\n \t\t// request.setAttribute(Constants.OPERATION, operation);\r\n \t\ttry\r\n \t\t{\r\n \t\t\tfinal IFactory factory = AbstractFactoryConfig.getInstance().getBizLogicFactory();\r\n \t\t\tfinal IBizLogic bizLogic = factory.getBizLogic(Constants.DEFAULT_BIZ_LOGIC);\r\n \r\n \t\t\t// ************* ForwardTo implementation *************\r\n \t\t\t// forwarded from Specimen page\r\n \t\t\tfinal HashMap forwardToHashMap = (HashMap) request.getAttribute(\"forwardToHashMap\");\r\n \t\t\tString specimenId = null;\r\n \t\t\tString specimenLabel = null;\r\n \t\t\tString specimenClass = null;\r\n \t\t\t// -------------Mandar 04-July-06 QuickEvents start\r\n \t\t\tString fromQuickEvent = (String) request.getAttribute(\"isQuickEvent\");\r\n \t\t\tif (fromQuickEvent == null)\r\n \t\t\t{\r\n \t\t\t\tfromQuickEvent = request.getParameter(\"isQuickEvent\");\r\n \t\t\t}\r\n \t\t\tString eventSelected = \"\";\r\n \t\t\tif (fromQuickEvent != null)\r\n \t\t\t{\r\n \t\t\t\tspecimenId = (String) request.getAttribute(Constants.SPECIMEN_ID);\r\n \t\t\t\teventSelected = (String) request.getAttribute(Constants.EVENT_SELECTED);\r\n \t\t\t\tif (eventSelected == null && forwardToHashMap != null)\r\n \t\t\t\t{\r\n \t\t\t\t\tspecimenClass = (String) forwardToHashMap.get(\"specimenClass\");\r\n \t\t\t\t\tspecimenId = (String) forwardToHashMap.get(\"specimenId\");\r\n \t\t\t\t\tif (specimenClass.equalsIgnoreCase(\"Tissue\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\teventSelected = Constants.EVENT_PARAMETERS[14];\r\n \t\t\t\t\t}\r\n \t\t\t\t\telse if (specimenClass.equalsIgnoreCase(\"Molecular\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\teventSelected = Constants.EVENT_PARAMETERS[9];\r\n \t\t\t\t\t}\r\n \t\t\t\t\telse if (specimenClass.equalsIgnoreCase(\"Cell\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\teventSelected = Constants.EVENT_PARAMETERS[1];\r\n \t\t\t\t\t}\r\n \t\t\t\t\telse if (specimenClass.equalsIgnoreCase(\"Fluid\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\teventSelected = Constants.EVENT_PARAMETERS[7];\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t}\r\n \t\t\t\trequest.setAttribute(Constants.EVENT_SELECTED, eventSelected);\r\n \t\t\t\t// System.out.println(\"::::::::::::::\\n\\n\\n\\n\"+form.getClass().\r\n \t\t\t\t// getName() );\r\n \t\t\t\tListSpecimenEventParametersForm eventForm = (ListSpecimenEventParametersForm) form;\r\n \t\t\t\tif (eventForm == null)\r\n \t\t\t\t{\r\n \t\t\t\t\teventForm = new ListSpecimenEventParametersForm();\r\n \t\t\t\t}\r\n \t\t\t\teventForm.setSpecimenEventParameter(eventSelected);\r\n \t\t\t\teventForm.setSpecimenId(specimenId.trim());\r\n \r\n \t\t\t}\r\n \t\t\t// -------------Mandar 04-July-06 QuickEvents end\r\n \t\t\tif (forwardToHashMap != null)\r\n \t\t\t{\r\n \t\t\t\t// Fetching SpecimenId from HashMap generated by\r\n \t\t\t\t// ForwardToProcessor\r\n \t\t\t\tspecimenId = (String) forwardToHashMap.get(\"specimenId\");\r\n \t\t\t\tspecimenLabel = (String) forwardToHashMap.get(Constants.SPECIMEN_LABEL);\r\n \t\t\t\tLogger.out.debug(\"SpecimenID found in \" + \"forwardToHashMap========>>>>>>\"\r\n \t\t\t\t\t\t+ specimenId);\r\n \t\t\t}\r\n \t\t\t// ************* ForwardTo implementation *************\r\n \r\n \t\t\t// If new SpecimenEvent is added, specimenId in forwardToHashMap\r\n \t\t\t// will be null, following code handles that case\r\n \t\t\tif (specimenId == null)\r\n \t\t\t{\r\n \t\t\t\tfinal String eventId = request.getParameter(\"eventId\");\r\n \r\n \t\t\t\t// Added by Vijay Pande. While cliking on events tab both\r\n \t\t\t\t// specimenId and eventId are getting null. Since there was no\r\n \t\t\t\t// check on eventId it was throwing error for following retrieve\r\n \t\t\t\t// call.\r\n \t\t\t\t// Null check is added for eventId. Fix for bug Id: 4731\r\n \t\t\t\tif (eventId != null)\r\n \t\t\t\t{\r\n \t\t\t\t\tLogger.out.debug(\"Event ID added===>\" + eventId);\r\n \t\t\t\t\t// Retrieving list of SpecimenEvents for added\r\n \t\t\t\t\t// SpecimenEventId\r\n \t\t\t\t\tfinal Object object = bizLogic.retrieve(\r\n \t\t\t\t\t\t\tSpecimenEventParameters.class.getName(), new Long(eventId));\r\n \r\n \t\t\t\t\tif (object != null)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\t// Getting object of specimenEventParameters from the\r\n \t\t\t\t\t\t// list of SepcimenEvents\r\n \t\t\t\t\t\tfinal SpecimenEventParameters specimenEventParameters = (SpecimenEventParameters) object;\r\n \r\n \t\t\t\t\t\t// getting SpecimenId of SpecimenEventParameters\r\n \t\t\t\t\t\tfinal AbstractSpecimen specimen = specimenEventParameters.getSpecimen();\r\n \t\t\t\t\t\tspecimenId = specimen.getId().toString();\r\n \t\t\t\t\t\t// specimenLabel = specimen.getLabel();\r\n \t\t\t\t\t\tLogger.out.debug(\"Specimen of Event Added====>\"\r\n \t\t\t\t\t\t\t\t+ (specimenEventParameters.getSpecimen()).getId());\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \r\n \t\t\tif (specimenId == null)\r\n \t\t\t{\r\n \t\t\t\tspecimenId = request.getParameter(Constants.SPECIMEN_ID);\r\n \t\t\t\tspecimenLabel = request.getParameter(Constants.SPECIMEN_LABEL);\r\n \t\t\t}\r\n \t\t\tif (specimenId == null)\r\n \t\t\t{\r\n \t\t\t\tspecimenId = (String) request.getAttribute(Constants.SPECIMEN_ID);\r\n \t\t\t}\r\n \r\n \t\t\trequest.setAttribute(Constants.SPECIMEN_ID, specimenId);\r\n \r\n \t\t\tfinal Object object = bizLogic.retrieve(Specimen.class.getName(), new Long(specimenId));\r\n \r\n \t\t\tif (object != null)\r\n \t\t\t{\r\n \t\t\t\tfinal Specimen specimen = (Specimen) object;\r\n \t\t\t\tif (specimenLabel == null)\r\n \t\t\t\t{\r\n \t\t\t\t\tspecimenLabel = specimen.getLabel();\r\n \t\t\t\t}\r\n \t\t\t\t// Setting Specimen Event Parameters' Grid\r\n \r\n \t\t\t\t// Ashish - 4/6/07 --- Since lazy=true, retriving the events\r\n \t\t\t\t// collection.\r\n \t\t\t\tfinal Collection<SpecimenEventParameters> specimenEventCollection = this\r\n \t\t\t\t\t\t.getSpecimenEventParametersColl(specimenId, bizLogic);\r\n \t\t\t\tfinal Collection<ActionApplication> dynamicEventCollection = this\r\n \t\t\t\t\t\t.getDynamicEventColl(specimenId, bizLogic);\r\n \t\t\t\t/**\r\n \t\t\t\t * Name: Chetan Patil Reviewer: Sachin Lale Bug ID: Bug#4180\r\n \t\t\t\t * Patch ID: Bug#4180_1 Description: The values of event\r\n \t\t\t\t * parameter is stored in a Map and in turn the Map is stored in\r\n \t\t\t\t * a List. This is then sorted chronologically, using a date\r\n \t\t\t\t * value form the Map. After sorting the List of Map is\r\n \t\t\t\t * converted into the List of List, which is used on the UI for\r\n \t\t\t\t * displaying values form List on the grid.\r\n \t\t\t\t */\r\n \t\t\t\tif (dynamicEventCollection != null)\r\n \t\t\t\t{\r\n \t\t\t\t\tfinal List<Map<String, Object>> gridData = new ArrayList<Map<String, Object>>();\r\n \r\n \t\t\t\t\tfor (final ActionApplication actionApp : dynamicEventCollection)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tfinal Map<String, Object> rowDataMap = new HashMap<String, Object>();\r\n \t\t\t\t\t\tif (actionApp != null)\r\n \t\t\t\t\t\t{\r\n \t\t\t\t\t\t\t//final String[] events = EventsUtil\r\n \t\t\t\t\t\t\t//\t\t.getEvent(eventParameters);\r\n \t\t\t\t\t\t\tlong contId = actionApp.getApplicationRecordEntry().getFormContext()\r\n \t\t\t\t\t\t\t\t\t.getContainerId();\r\n \t\t\t\t\t\t\tList contList = AppUtility\r\n \t\t\t\t\t\t\t\t\t.executeSQLQuery(\"select caption from dyextn_container where identifier=\"\r\n \t\t\t\t\t\t\t\t\t\t\t+ contId);\r\n \t\t\t\t\t\t\tString container = (String) ((List) contList.get(0)).get(0);\r\n \t\t\t\t\t\t\t//final Object container =bizLogic.retrieve(Container.class.getName(),new Long(contId));\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.ID, String.valueOf(actionApp.getId()));\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.EVENT_NAME,\r\n \t\t\t\t\t\t\t\t\tedu.wustl.cab2b.common.util.Utility\r\n \t\t\t\t\t\t\t\t\t\t\t.getFormattedString(container));\r\n \r\n \t\t\t\t\t\t\t// Ashish - 4/6/07 - retrieving User\r\n \t\t\t\t\t\t\t// User user = eventParameters.getUser();\r\n \t\t\t\t\t\t\tfinal User user = this.getUser(actionApp.getId(), bizLogic);\r\n \r\n \t\t\t\t\t\t\trowDataMap.put(Constants.USER_NAME, user.getLastName() + \", \"\r\n \t\t\t\t\t\t\t\t\t+ user.getFirstName());\r\n \r\n \t\t\t\t\t\t\t// rowDataMap.put(Constants.EVENT_DATE,\r\n \t\t\t\t\t\t\t// Utility.parseDateToString\r\n \t\t\t\t\t\t\t// (eventParameters.getTimestamp(),\r\n \t\t\t\t\t\t\t// Constants.TIMESTAMP_PATTERN)); // Sri: Changed\r\n \t\t\t\t\t\t\t// format for bug #463\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.EVENT_DATE, actionApp.getTimestamp());\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.PAGE_OF, \"pageOfDynamicEvent\");// pageOf\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.SPECIMEN_ID, request\r\n \t\t\t\t\t\t\t\t\t.getAttribute(Constants.SPECIMEN_ID));// pageOf\r\n \t\t\t\t\t\t\tgridData.add(rowDataMap);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\tfinal List<List<String>> gridDataList = this.getSortedGridDataList(gridData);\r\n \t\t\t\t\tfinal String[] columnList1 = Constants.EVENT_PARAMETERS_COLUMNS;\r\n \t\t\t\t\tfinal List<String> columnList = new ArrayList<String>();\r\n \t\t\t\t\tfor (final String element : columnList1)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tcolumnList.add(element);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tAppUtility.setGridData(gridDataList, columnList, request);\r\n \t\t\t\t\trequest.setAttribute(\r\n \t\t\t\t\t\t\tedu.wustl.simplequery.global.Constants.SPREADSHEET_DATA_LIST,\r\n \t\t\t\t\t\t\tgridDataList);\r\n \t\t\t\t\tfinal Integer identifierFieldIndex = new Integer(0);\r\n \t\t\t\t\trequest.setAttribute(\"identifierFieldIndex\", identifierFieldIndex.intValue());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tif (request.getAttribute(Constants.SPECIMEN_LABEL) == null)\r\n \t\t\t{\r\n \t\t\t\trequest.setAttribute(Constants.SPECIMEN_LABEL, specimenLabel);\r\n \t\t\t}\r\n \t\t\trequest.setAttribute(Constants.EVENT_PARAMETERS_LIST, new SOPBizLogic()\r\n \t\t\t\t\t.getAllSOPEventFormNames(dynamicEventMap));\r\n \t\t\trequest.getSession().setAttribute(\"dynamicEventMap\", dynamicEventMap);\r\n \r\n \t\t}\r\n \t\tcatch (final Exception e)\r\n \t\t{\r\n \t\t\tthis.logger.error(e.getMessage(), e);\r\n \t\t}\r\n \t\trequest.setAttribute(Constants.MENU_SELECTED, new String(\"15\"));\r\n \t\tString pageOf = (String) request.getParameter(Constants.PAGE_OF);\r\n \t\tif (pageOf == null)\r\n \t\t\tpageOf = (String) request.getAttribute(Constants.PAGE_OF);\r\n \t\trequest.setAttribute(Constants.PAGE_OF, pageOf);\r\n \r\n \t\tif (pageOf.equals(Constants.PAGE_OF_LIST_SPECIMEN_EVENT_PARAMETERS_CP_QUERY))\r\n \t\t{\r\n \t\t\trequest.getSession().setAttribute(\"CPQuery\", \"CPQuery\");\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tif (request.getSession().getAttribute(\"CPQuery\") != null)\r\n \t\t\t{\r\n \t\t\t\trequest.getSession().removeAttribute(\"CPQuery\");\r\n \t\t\t}\r\n \t\t}\r\n \t\tLong specimenRecEntryEntityId = null;\r\n \t\ttry\r\n \t\t{\r\n \t\t\tif (CatissueCoreCacheManager.getInstance().getObjectFromCache(\r\n \t\t\t\t\tAnnotationConstants.SPECIMEN_REC_ENTRY_ENTITY_ID) != null)\r\n \t\t\t{\r\n \t\t\t\tspecimenRecEntryEntityId = (Long) CatissueCoreCacheManager.getInstance()\r\n \t\t\t\t\t\t.getObjectFromCache(AnnotationConstants.SPECIMEN_REC_ENTRY_ENTITY_ID);\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tspecimenRecEntryEntityId = AnnotationUtil\r\n \t\t\t\t\t\t.getEntityId(AnnotationConstants.ENTITY_NAME_SPECIMEN_REC_ENTRY);\r\n \t\t\t\tCatissueCoreCacheManager.getInstance().addObjectToCache(\r\n \t\t\t\t\t\tAnnotationConstants.SPECIMEN_REC_ENTRY_ENTITY_ID, specimenRecEntryEntityId);\r\n \t\t\t}\r\n \r\n \t\t}\r\n \t\tcatch (final Exception e)\r\n \t\t{\r\n \t\t\tthis.logger.error(e.getMessage(), e);\r\n \t\t}\r\n \t\t// request.setAttribute(\"specimenEntityId\", specimenEntityId);\r\n \t\trequest.setAttribute(AnnotationConstants.SPECIMEN_REC_ENTRY_ENTITY_ID,\r\n \t\t\t\tspecimenRecEntryEntityId);\r\n \t\treturn mapping.findForward(request.getParameter(Constants.PAGE_OF));\r\n \t}",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n // Adding All values to Params.\n params.put(\"user_id\", userIdInput);\n params.put(\"date\", selectedDate);\n params.put(\"type\", typeInput);\n\n return params;\n }",
"@Override\n public JSONObject viewApprisalFormByDirector() {\n\n return in_apprisialformdao.viewApprisalFormByDirector();\n }",
"public RequestDataBuilder post() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.POST);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}",
"public void processRequest(HttpServletRequest request)\n {\n // do nothing if not initialized or session has expired.\n if(mv==null || request.getSession().isNew())\n {\n errorMsg = \"Session has expired (or is new). Please fill in the form and \"+\n \"click on the Submit button.\"; \n return;\n }\n \n success = false;\n errorMsg = null;\n if(action!=null) // user clicked an action button\n {\n if(\"Submit\".equalsIgnoreCase(action))\n doSubmit();\n else if(\"Zm In\".equalsIgnoreCase(action))\n doZoomIn();\n else if(\"Zm Out\".equalsIgnoreCase(action))\n doZoomOut(); \n else if(\"Pan W.\".equalsIgnoreCase(action))\n doPanHalf('W');\n else if(\"Pan E.\".equalsIgnoreCase(action))\n doPanHalf('E');\n else if(\"Pan S.\".equalsIgnoreCase(action))\n doPanHalf('S');\n else if(\"Pan N.\".equalsIgnoreCase(action))\n doPanHalf('N');\n }\n else if(request.getParameter(\"mouseClick.x\")!=null)\n {\n // user clicked on the map itself: recenter\n doRecenter(request);\n }\n \n if(success)\n {\n //reset action\n action = null;\n //update map size for display purpose\n size = mv.getRequestSize();\n //update center x,y for display purpose\n Point2D p = mv.getRequestCenter();\n if(p !=null)\n {\n centerX = p.getX();\n centerY = p.getY();\n }\n }\n }",
"@RequestMapping(value = \"getinput.htm\")\n public ModelAndView getInput() {\n ModelAndView modelAndView = new ModelAndView();\n modelAndView.addObject(\"inputentity\", new InputFormBean());\n return modelAndView;\n }",
"public void doTag()\n throws IOException, JspException, JspTagException {\n\n JspWriter out = context.getOut();\n\n if (!RDCUtils.isStringEmpty(namelist)) {\n // (1) Access/create the views map \n Map viewsMap = (Map) context.getSession().\n getAttribute(ATTR_VIEWS_MAP);\n if (viewsMap == null) {\n viewsMap = new HashMap();\n context.getSession().setAttribute(ATTR_VIEWS_MAP, viewsMap);\n }\n \n // (2) Populate form data \n Map formData = new HashMap();\n StringTokenizer nameToks = new StringTokenizer(namelist, \" \");\n while (nameToks.hasMoreTokens()) {\n String name = nameToks.nextToken();\n formData.put(name, context.getAttribute(name));\n }\n \n // (3) Store the form data according to the RDC-struts \n // interface contract\n String key = \"\" + context.hashCode();\n viewsMap.put(key, formData);\n context.getRequest().setAttribute(ATTR_VIEWS_MAP_KEY, key);\n }\n\n if (!RDCUtils.isStringEmpty(clearlist)) { \n // (4) Clear session state based on the clearlist\n if (dialogMap == null) {\n throw new IllegalArgumentException(ERR_NO_DIALOGMAP);\n }\n StringTokenizer clearToks = new StringTokenizer(clearlist, \" \");\n outer:\n while (clearToks.hasMoreTokens()) {\n String clearMe = clearToks.nextToken();\n String errMe = clearMe;\n boolean cleared = false;\n int dot = clearMe.indexOf('.');\n if (dot == -1) {\n if(dialogMap.containsKey(errMe)) {\n dialogMap.remove(errMe);\n cleared = true;\n }\n } else {\n // TODO - Nested data model re-initialization\n BaseModel target = null;\n String childId = null;\n while (dot != -1) {\n try {\n childId = clearMe.substring(0,dot);\n if (target == null) {\n target = (BaseModel) dialogMap.get(childId);\n } else {\n if ((target = RDCUtils.getChildDataModel(target,\n childId)) == null) {\n break;\n }\n }\n clearMe = clearMe.substring(dot+1);\n dot = clearMe.indexOf('.');\n } catch (Exception e) {\n MessageFormat msgFormat =\n new MessageFormat(ERR_CANNOT_CLEAR);\n log.warn(msgFormat.format(new Object[] {errMe}));\n continue outer;\n }\n }\n if (target != null) {\n cleared = RDCUtils.clearChildDataModel(target,\n clearMe);\n }\n }\n if (!cleared) {\n MessageFormat msgFormat = \n new MessageFormat(ERR_CANNOT_CLEAR);\n log.warn(msgFormat.format(new Object[] {errMe}));\n }\n }\n }\n\n // (5) Forward request\n try {\n context.forward(submit);\n } catch (ServletException e) {\n // Need to investigate whether refactoring this\n // try to provide blanket coverage makes sense\n MessageFormat msgFormat = new MessageFormat(ERR_FORWARD_FAILED);\n // Log error and send error message to JspWriter \n out.write(msgFormat.format(new Object[] {submit, namelist}));\n log.error(msgFormat.format(new Object[] {submit, namelist}));\n } // end of try-catch\n }",
"public void consumeDataModel(final Map<String, Object> dataModel);",
"default T forms(Map<String, String> map) {\n return body(new FormHttpBody(map.entrySet()));\n }",
"@Override\n public void doInit() {\n action = (String) getRequestAttributes().get(\"action\");\n }",
"private void dataSubmission() {\n getPreferences(); // reload all the data\n\n String jsonObjectString = createJsonObject();\n StringBuilder url = new StringBuilder();\n url.append(serverUrl);\n\n if (vslaName == null || numberOfCycles == null || representativeName == null || representativePost == null\n || repPhoneNumber == null || grpBankAccount == null || physAddress == null\n || grpPhoneNumber == null || grpSupportType == null) {\n flashMessage(\"Please Fill all Fields\");\n\n } else if (IsEditing.equalsIgnoreCase(\"1\")) {\n url.append(\"editVsla\");\n new HttpAsyncTaskClass().execute(url.toString(), jsonObjectString);\n saveVslaInformation();\n\n } else { // Creating a new VSLA\n url.append(\"addNewVsla\");\n new HttpAsyncTaskClass().execute(url.toString(), jsonObjectString);\n saveVslaInformation();\n }\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"tag\", \"ViewList\");\n params.put(\"created_by\", created_by);\n params.put(\"created_for\",created_for);\n\n\n return params;\n }",
"@Override\n protected Map<String,String> getParams(){\n return postParameters;\n }",
"@RequestMapping(method=RequestMethod.GET,value=\"/form_modelmap\")\n\tpublic String getcustomerform_modelmap(ModelMap modelmap)\n\t{\n\t\t\n\t\tmodelmap.addAttribute(\"message\", \"using ModelMap\");\n\t\t\n\t\tSystem.out.println(\"============Customer form called============\");\n\t\treturn \"form\";\n\t}",
"public ActionForward populateTherapeuticApproaches(ActionMapping mapping, ActionForm form,\n HttpServletRequest request, HttpServletResponse response) throws Exception {\n setCancerModel(request);\n //\n // query caBIO and load clinical protocols information\n // store clinicalProtocol info in a hashmap keyed by NSC#\n //\n final HashMap clinProtocols = new HashMap();\n final HashMap yeastResults = new HashMap();\n final HashMap invivoResults = new HashMap();\n final List therapeuticApprochesColl = new ArrayList();\n \n String modelID = request.getParameter(Constants.Parameters.MODELID);\n AnimalModelManager animalModelManager = (AnimalModelManager) getBean(\"animalModelManager\");\n AnimalModel am = animalModelManager.get(modelID);\n final List therapyColl = am.getTherapyCollection();\n final int cc = (therapyColl != null) ? therapyColl.size() : 0;\n log.info(\"Looking up clinical protocols for \" + cc + \" agents...\");\n \n for (int i = 0; i < cc; i++) {\n Therapy t = (Therapy) therapyColl.get(i);\n final boolean isTherapy = (t.getTherapeuticExperiment() != null) ? t.getTherapeuticExperiment()\n .booleanValue() : false;\n if (isTherapy) {\n therapeuticApprochesColl.add(t);\n }\n Agent a = t.getAgent();\n AgentManager myAgentManager = (AgentManager) getBean(\"agentManager\");\n if (a != null) {\n Long nscNumber = a.getNscNumber();\n if (nscNumber != null) {\n Collection protocols = myAgentManager.getClinicalProtocols(a);\n clinProtocols.put(nscNumber, protocols);\n // get the yeast data\n List yeastStages = myAgentManager.getYeastResults(a);\n yeastResults.put(nscNumber, yeastStages);\n // now get invivo/Xenograft data\n List xenograftResults = QueryManagerSingleton.instance().getInvivoResults(a);\n invivoResults.put(nscNumber, xenograftResults);\n }\n }\n }\n request.getSession().setAttribute(Constants.THERAPEUTIC_APPROACHES_COLL, therapeuticApprochesColl);\n request.getSession().setAttribute(Constants.CLINICAL_PROTOCOLS, clinProtocols);\n request.getSession().setAttribute(Constants.YEAST_DATA, yeastResults);\n request.getSession().setAttribute(Constants.INVIVO_DATA, invivoResults);\n \n setComments(request, Constants.Pages.THERAPEUTIC_APPROACHES);\n \n return mapping.findForward(\"viewTherapeuticApproaches\");\n }",
"public ActionForward populate(ActionMapping mapping, ActionForm form, HttpServletRequest request,\n \t\t\tHttpServletResponse response) throws Exception {\n \n \t\tSystem.out.println(\"<ViralTreatmentPopulateAction populate> ... \");\n \n \t\tViralTreatmentForm viralTreatmentForm = (ViralTreatmentForm) form;\n \n \t\tString aTherapyID = request.getParameter(\"aTherapyID\");\n \n \t\tTherapyManager therapyManager = (TherapyManager) getBean(\"therapyManager\");\n \t\tTherapy therapy = therapyManager.get(aTherapyID);\n \n \t\t// Handle back-arrow on the delete\n \t\tif (therapy == null) {\n \t\t\trequest.setAttribute(Constants.Parameters.DELETED, \"true\");\n \t\t} else {\n \n \t\t\trequest.setAttribute(\"aTherapyID\", aTherapyID);\n \n \t\t\t// Set the otherName and/or the selected name attribute\n \t\t\tif (therapy.getAgent().getNameUnctrlVocab() != null) {\n \t\t\t\tviralTreatmentForm.setName(Constants.Dropdowns.OTHER_OPTION);\n \t\t\t\tviralTreatmentForm.setOtherName(therapy.getAgent().getNameUnctrlVocab());\n \t\t\t} else {\n \t\t\t\tviralTreatmentForm.setName(therapy.getAgent().getName());\n \t\t\t}\n \n \t\t\tif (therapy.getTreatment().getSexDistribution() != null) {\n \t\t\t\tviralTreatmentForm.setType(therapy.getTreatment().getSexDistribution().getType());\n \t\t\t}\n \t\t\tviralTreatmentForm.setAgeAtTreatment(therapy.getTreatment().getAgeAtTreatment());\n \t\t\tviralTreatmentForm.setDosage(therapy.getTreatment().getDosage());\n \n \t\t\tviralTreatmentForm.setRegimen(therapy.getTreatment().getRegimen());\n \t\t\tviralTreatmentForm.setAdministrativeRoute(therapy.getTreatment().getAdministrativeRoute());\n \n if (therapy.getTreatment().getAdminRouteUnctrlVocab() != null) {\n viralTreatmentForm.setAdministrativeRoute(Constants.Dropdowns.OTHER_OPTION);\n viralTreatmentForm.setOtherAdministrativeRoute(therapy.getTreatment().getAdminRouteUnctrlVocab());\n }\n \t\t}\n \n \t\t// Prepopulate all dropdown fields, set the global Constants to the\n \t\t// following\n \t\tthis.dropdown(request, response);\n \n \t\t// Store the Form in session to be used by the JSP\n \t\trequest.getSession().setAttribute(Constants.FORMDATA, viralTreatmentForm);\n \n \t\treturn mapping.findForward(\"submitViralTreatment\");\n \t}",
"protected void processPopulate(HttpServletRequest request,\n HttpServletResponse response,\n ActionForm form,\n ActionMapping mapping)\n throws ServletException\n {\n if(form != null)\n {\n if(mapping instanceof GTActionMapping)\n { //20030124AH\n if( ((GTActionMapping)mapping).isPopulate() == false )\n {\n return; //Do not pass go. Do not collect $200.\n }\n }\n super.processPopulate(request,response,form,mapping);\n }\n else\n {\n return; //No form to populate\n }\n }",
"@Override\n public void buildView(IModelForm modelForm) {\n FormSection inputSection = modelForm.addSection(\"Input\");\n inputSection.addEntityListField(_inputGrids, new Grid3dTimeDepthSpecification());\n inputSection.addEntityComboField(_velocityVolume, new VelocityVolumeSpecification());\n inputSection.addEntityComboField(_aoi, AreaOfInterest.class).showActiveFieldToggle(_aoiFlag);\n\n // Build the conversion section.\n FormSection parameterSection = modelForm.addSection(\"Conversion\");\n parameterSection.addRadioGroupField(_conversionMethod, Method.values());\n\n // Build the output section.\n FormSection outputSection = modelForm.addSection(\"Output\");\n outputSection.addTextField(_outputGridSuffix);\n }",
"public void loadForm() {\n if (!selectedTipo.equals(\"accion\")) {\n this.renderPaginaForm = true;\n } else {\n this.renderPaginaForm = false;\n }\n if (selectedTipo.equals(null) || selectedTipo.equals(\"menu\")) {\n this.renderGrupoForm = false;\n } else {\n this.renderGrupoForm = true;\n }\n populateListaObjetos();\n }",
"protected ActionForward performAction(ActionMapping \t\tmapping,\n\t\t\t\t\t\t\t\t\t\t ActionForm\t\t\tform,\n\t\t\t\t\t\t\t\t\t\t HttpServletRequest\trequest,\n\t\t\t\t\t\t\t\t\t\t HttpServletResponse\tresponse)\n\t\tthrows Exception \n\t{\n\t\tString forward = \"success\";\n\t\trequest.setAttribute(ALLOW_EDITS_KEY, \"false\");\n\t\t\n\t\tHttpSession session = request.getSession();\n\t\tArrayList selectedTestIds = new ArrayList();\n\t\tsession.setAttribute(\"selectedTestIds\", selectedTestIds);\n\n\t\tBaseActionForm dynaForm = (BaseActionForm) form;\n\n\t\t// Initialize the form.\n\t\tdynaForm.initialize(mapping);\n\t\t\n\t\tPropertyUtils.setProperty(dynaForm, \"currentDate\", DateUtil.getCurrentDateAsText());\n\t\tPropertyUtils.setProperty(dynaForm, \"sampleTypes\", DisplayListService.getList(ListType.SAMPLE_TYPE_ACTIVE));\n\t\tPropertyUtils.setProperty(dynaForm, \"sampleSources\", DisplayListService.getList(ListType.SAMPLE_SOURCE));\n\t\tPropertyUtils.setProperty(dynaForm, \"initConditionFormErrorsList\", DisplayListService.getList(ListType.SAMPLE_ENTRY_INIT_COND_FORM_ERRORS));\n\t\tPropertyUtils.setProperty(dynaForm, \"initConditionLabelErrorsList\", DisplayListService.getList(ListType.SAMPLE_ENTRY_INIT_COND_LABEL_ERRORS));\n\t\tPropertyUtils.setProperty(dynaForm, \"initConditionMiscList\", DisplayListService.getList(ListType.SAMPLE_ENTRY_INIT_COND_MISC));\n\t\tPropertyUtils.setProperty(dynaForm, \"rejectionReasonFormErrorsList\", DisplayListService.getList(ListType.SAMPLE_ENTRY_REJECTION_FORM_ERRORS));\n\t\tPropertyUtils.setProperty(dynaForm, \"rejectionReasonLabelErrorsList\", DisplayListService.getList(ListType.SAMPLE_ENTRY_REJECTION_LABEL_ERRORS));\n\t\tPropertyUtils.setProperty(dynaForm, \"rejectionReasonMiscList\", DisplayListService.getList(ListType.SAMPLE_ENTRY_REJECTION_MISC));\n PropertyUtils.setProperty(dynaForm, \"genderList\", DisplayListService.getList(ListType.GENDERS));\n PropertyUtils.setProperty(dynaForm, \"cityList\", DisplayListService.getList(ListType.CITY));\n PropertyUtils.setProperty(dynaForm, \"districtList\", DisplayListService.getList(ListType.DISTRICT));\n PropertyUtils.setProperty(dynaForm, \"departmentList\", DisplayListService.getList(ListType.DEPARTMENT));\n PropertyUtils.setProperty(dynaForm, \"patientTypeList\", DisplayListService.getList(ListType.PATIENT_TYPE));\n\n // for backwards compatibility with non-modal version of sample entry\n\t\tPropertyUtils.setProperty(dynaForm, \"initialSampleConditionList\", DisplayListService.getList(ListType.INITIAL_SAMPLE_CONDITION));\n\t\tPropertyUtils.setProperty(dynaForm, \"testSectionList\", DisplayListService.getList(ListType.TEST_SECTION));\n\n\t\tSample\tsample\t= new Sample();\n\n\t\t// Set received date and entered date to today's date\n\t\tDate today = Calendar.getInstance().getTime();\n\t\tString dateAsText = DateUtil.formatDateAsText(today);\n\n\t\tSystemConfiguration sysConfig = SystemConfiguration.getInstance();\n\t\t\n\t\tsample.setReceivedDateForDisplay(dateAsText);\n\t\tsample.setEnteredDateForDisplay(dateAsText);\n\t\tsample.setReferredCultureFlag(sysConfig.getQuickEntryDefaultReferredCultureFlag());\n\t\tsample.setStickerReceivedFlag(sysConfig.getQuickEntryDefaultStickerReceivedFlag());\n\t\t\n\t\t// default nextItemSequence to 1 (for clinical - always 1)\n\t\tsample.setNextItemSequence(sysConfig.getQuickEntryDefaultNextItemSequence());\n\n\t\t// revision is set to 0 on insert\n\t\tsample.setRevision(sysConfig.getQuickEntryDefaultRevision());\n\n\t\tsample.setCollectionTimeForDisplay(sysConfig.getQuickEntryDefaultCollectionTimeForDisplay());\n\n\t\tif (sample.getId() != null && !sample.getId().equals(\"0\"))\n\t\t{\n\t\t\trequest.setAttribute(ID, sample.getId());\n\t\t}\n\n\t\t// populate form from valueholder\n\t\tPropertyUtils.copyProperties(form, sample);\n\n\t\tPropertyUtils.setProperty(form, \"currentDate\",\t\tdateAsText);\n\t\trequest.setAttribute(\"menuDefinition\", \"BatchEntryDefinition\");\n\t\treturn mapping.findForward(forward);\n\t}",
"private Map<String, Object> initializeModelForEntryForm() {\r\n\t\tMap<String, Object> myModel = new HashMap<String, Object>();\r\n\t\tCollection<Tag> primaryTags = tagService.getPrimaryTags();\r\n\t\tmyModel.put(\"primaryTags\", primaryTags);\r\n\r\n\t\tMap<String, Object> featured = new HashMap<String, Object>();\r\n\t\tfeatured.put(\"true\", \"featured\");\r\n\t\tmyModel.put(\"featured\", featured);\r\n\r\n\t\tList<Tag> secondaryTags = new ArrayList<Tag>();\r\n\r\n\t\tfor (Tag aTag : primaryTags) {\r\n\t\t\tsecondaryTags.addAll(tagService.getBelongingTags(aTag.getId()));\r\n\t\t}\r\n\r\n\t\tCollections.sort(secondaryTags, new Comparator<Tag>() {\r\n\t\t public int compare(Tag tag1, Tag tag2) {\r\n\t\t return tag1.getName().compareTo(tag2.getName());\r\n\t\t }\r\n\t\t});\r\n\r\n\t\tmyModel.put(\"secondaryTags\", secondaryTags);\r\n\t\tCollection<WebItemType> webItemTypes = webItemTypeService.getAllWebItemTypes();\r\n\t\tmyModel.put(\"allWebItemTypes\", webItemTypes);\r\n\r\n\t\treturn myModel;\r\n\t}",
"@Override\r\n\tpublic Map<String, Object> returnData(Map<String, Object> map,Model model, HttpServletRequest request) {\n\t\treturn null;\r\n\t}",
"public Form readForm(String formKey);",
"private void getRecipeFields(View view) throws JSONException {\n EditText recipeTitleEditText = findViewById(R.id.recipeTitleInput);\n String recipeTitle = recipeTitleEditText.getText().toString();\n\n EditText caloriesEditText = findViewById(R.id.caloriesInput);\n String calories = caloriesEditText.getText().toString();\n\n EditText timeEditText = findViewById(R.id.timeInput);\n String time = timeEditText.getText().toString();\n\n LinearLayout ingredientsLayout = findViewById(R.id.recipeIngredientsInputLayout);\n String[] ingredientsArray = new String[ingredientsLayout.getChildCount()];\n for (int i = 0; i < ingredientsLayout.getChildCount(); ++i) {\n EditText ingredientText = (EditText) ingredientsLayout.getChildAt(i);\n ingredientsArray[i] = ingredientText.getText().toString();\n }\n\n LinearLayout instructionsLayout = findViewById(R.id.recipeInstructionsInputLayout);\n String[] instructionsArray = new String[instructionsLayout.getChildCount()];\n for (int i = 0; i < instructionsLayout.getChildCount(); ++i) {\n EditText instructionText = (EditText) instructionsLayout.getChildAt(i);\n instructionsArray[i] = instructionText.getText().toString();\n }\n\n recipeSubmit = new JSONObject();\n List ingredientsList;\n List instructionsList;\n\n ingredientsList = Arrays.asList(ingredientsArray);\n instructionsList = Arrays.asList(instructionsArray);\n\n recipeSubmitFireStore.put(\"recipeTitle\", recipeTitle);\n recipeSubmitFireStore.put(\"recipeIngredients\", ingredientsList);\n recipeSubmitFireStore.put(\"recipeInstruction\", instructionsList);\n recipeSubmitFireStore.put(\"calories\", calories);\n recipeSubmitFireStore.put(\"time\", time);\n recipeSubmitFireStore.put(\"recipePublisher\", firebaseAuth.getCurrentUser().getUid());\n\n recipeSubmit.put(\"recipeTitle\", recipeTitle);\n recipeSubmit.put(\"recipeIngredients\", ingredientsList);\n recipeSubmit.put(\"recipeInstruction\", instructionsList);\n recipeSubmit.put(\"calories\", calories);\n recipeSubmit.put(\"time\", time);\n recipeSubmit.put(\"recipePublisher\", firebaseAuth.getCurrentUser().getUid());\n }",
"@ModelAttribute(\"form\")\n public SearchFiltersLocationForm getForm(PortletRequest request, PortletResponse response) throws PortletException {\n // Portal controller context\n PortalControllerContext portalControllerContext = new PortalControllerContext(this.portletContext, request, response);\n\n return this.service.getForm(portalControllerContext);\n }",
"public Object formBackingObject(HttpServletRequest request)\n\t\t\tthrows ServletException {\n \t\n \t// get the User's type from session \t\n \t// \n \t/*String action = request.getParameter(\"action\");\n \tString basketId = request.getParameter(\"basket\"); \t\n \t*/\n \t\n \tString vasItemId = request.getParameter(\"vasitem\");\n \tString funcId = request.getParameter(\"funcid\");\n \t\n \tVasMrtSelectionDTO vasMrtSelectionDTO = new VasMrtSelectionDTO();\n \tvasMrtSelectionDTO.setFuncId(funcId);\n \t\n \tBomSalesUserDTO user = (BomSalesUserDTO) request.getSession().getAttribute(\"bomsalesuser\");\n \tString appMode = (String) request.getSession().getAttribute(\"appMode\");\n \t\n \tif (\"EX06\".equals(funcId)){\n \t\n \tvasMrtSelectionDTO = (VasMrtSelectionDTO) request.getSession().getAttribute(\"vasMrtSelectionSession\");\n \t\n \tCustomerProfileDTO sessionCustomer = null; //Dennis MIP3\n \t\n \t\n \t \n\t\t\n\t\tif (\"mobccs\".equals(appMode)) {\n\t\t\tsessionCustomer = (CustomerProfileDTO) MobCcsSessionUtil.getSession(request, \"customer\");\n\t\t} else {\n\t\t\tsessionCustomer = (CustomerProfileDTO) request.getSession().getAttribute(\"customer\");\n\t\t} \t\t\n \t\n \t\n \tif (vasMrtSelectionDTO == null || !vasItemId.equals(vasMrtSelectionDTO.getVasItemId())) {\n \t\tvasMrtSelectionDTO = new VasMrtSelectionDTO();\n \tvasMrtSelectionDTO.setFuncId(funcId);\n \t\t\n \t\tvasMrtSelectionDTO.setVasItemId(vasItemId);\n \t\t\n \t\t\n \t\tif (sessionCustomer != null) {\n \t\t\tvasMrtSelectionDTO.setNumType(sessionCustomer.getNumType());\n \t\t}\t\t\t\t\n \t\t\n\t\t} \telse {\n\t\t\tif (StringUtils.isNotEmpty(vasMrtSelectionDTO.getMsisdn())){\n\t\t\t\t\tif (\"mobccs\".equals(appMode)) {\n\t\t\t\t\t\tList<String[]> lists = mobCcsMrtService.getOneCardTwoNumberByFullNumber(user.getChannelCd(), vasMrtSelectionDTO.getMsisdn(), vasMrtSelectionDTO.getNumType());\n\n\t\t\t\n\t\t\t\t\t\tIterator<String[]> itr = lists.iterator();\n\t\t\t\t\t while (itr.hasNext()){\n\t\t\t\t\t \tString[] item = itr.next();\n\t\t\t\t\t \t\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setMsisdn(item[0]);\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setMsisdnLvl(item[1]);\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setChannelCd(item[2]);\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setCityCd(item[3]);\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setMsisdnStatus(item[4]);\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setNumType(item[5]);\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setSrvNumType(item[6]);\n\t\t\t\t\t }\n\t\t\t\t\t} else {\n\t\t\t\t\t\tList<CnpDTO> output = mnpService.getNew1C2NMsisdn(vasMrtSelectionDTO.getMsisdn(),\n\t\t\t\t\t\t\t\tBomWebPortalConstant.CNM_STATUS_NORMAL, user.getBomShopCd(), \"R\", null,\n\t\t\t\t\t\t\t\tsessionCustomer.getNumType(), 1);\n\t\t\t\t\t\tif (output != null && !output.isEmpty() && output.size() == 1) {\n\t\t\t\t\t\t\tCnpDTO temp = output.get(0);\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setMsisdn(temp.getMsisdn());\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setNumType(temp.getNumType());\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setCityCd(temp.getCity());\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setMsisdnStatus(String.valueOf(temp.getStatus()));\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setSrvNumType(temp.getType());\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setShopCd(temp.getDepartmentCode().substring(1));\n\t\t\t\t\t\t\tvasMrtSelectionDTO.setMsisdnLvl(temp.getLevel());\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n \t\n \tvasMrtSelectionDTO.setSession(request.getSession());\n \tvasMrtSelectionDTO.setChinaInd(\"Y\");\n \t}\n \t\n \tif (\"EX07\".equals(funcId)){\n \t\n \tvasMrtSelectionDTO = (VasMrtSelectionDTO) request.getSession().getAttribute(\"ssMrtSelectionSession\");\n\n \tCustomerProfileDTO sessionCustomer = null; //Dennis MIP3\n\t\t\n\t\tif (user.getChannelId() == 2) {\n\t\t\tsessionCustomer = (CustomerProfileDTO) MobCcsSessionUtil.getSession(request, \"customer\");\n\t\t} else {\n\t\t\tsessionCustomer = (CustomerProfileDTO) request.getSession().getAttribute(\"customer\");\n\t\t} \t\t\n \t\n \tif (vasMrtSelectionDTO == null || !vasItemId.equals(vasMrtSelectionDTO.getVasItemId())) {\n \t\tvasMrtSelectionDTO = new VasMrtSelectionDTO();\n \tvasMrtSelectionDTO.setFuncId(funcId);\n \t\t\n \t\tvasMrtSelectionDTO.setVasItemId(vasItemId);\n \t\t\t\n \t\tif (sessionCustomer != null) {\n \t\t\tvasMrtSelectionDTO.setNumType(sessionCustomer.getNumType());\n \t\t}\n \t\t\n\t\t} else {\n\t\t\tif (StringUtils.isNotEmpty(vasMrtSelectionDTO.getSecSrvNum())){\n\t\t\t\tList<CnpDTO> output = mnpService.getNewSsMsisdn(vasMrtSelectionDTO.getSecSrvNum(), BomWebPortalConstant.CNM_STATUS_NORMAL, user.getBomShopCd(), \"R\", sessionCustomer.getNumType(), 1);\n\t\t\t\tif (output != null && !output.isEmpty() && output.size() == 1){\n\t\t\t\t\tCnpDTO temp = output.get(0);\n\t\t\t\t\tvasMrtSelectionDTO.setMsisdn(temp.getMsisdn());\n\t\t\t\t\tvasMrtSelectionDTO.setNumType(temp.getNumType());\n\t\t\t\t\tvasMrtSelectionDTO.setCityCd(temp.getCity());\n\t\t\t\t\tvasMrtSelectionDTO.setMsisdnStatus(String.valueOf(temp.getStatus()));\n\t\t\t\t\tvasMrtSelectionDTO.setSrvNumType(temp.getType());\n\t\t\t\t\tvasMrtSelectionDTO.setShopCd(temp.getDepartmentCode().substring(1));\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tvasMrtSelectionDTO.setMsisdnLvl(temp.getLevel());\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t\n \tif (vasMrtSelectionDTO.getVasItemId() == null) {\n \t\tvasMrtSelectionDTO.setVasItemId(vasItemId);\n\t\t}\n \t\n \tif (vasMrtSelectionDTO.getFuncId() == null) {\n \t\tvasMrtSelectionDTO.setFuncId(funcId);\n\t\t} \t\n\t\t\n \t}\n \t\n \tvasMrtSelectionDTO.setValue(\"user\", user);\n \tvasMrtSelectionDTO.setValue(\"request\", request);\n \t\n\t\treturn vasMrtSelectionDTO;\n \t\n }",
"@Override\n\tprotected void setViewAtributes() throws Exception {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Entering 'save' method\");\n\t\t}\n\t\tlog.debug(\"setAddAttributes method ....\");\n\t\tMantenimientoCRAMatrizDiasSearchForm f = (MantenimientoCRAMatrizDiasSearchForm) this.formBusqueda;\n\t\tPais pais = this.mPantallaPrincipalBean.getCurrentCountry();\n\n\t\tf.setCodigoPais(pais.getCodigo());\n\n\t\tf.setActividad(null);\n\t\tf.setGrupoZona(null);\n\n\t\tReporteService reporteService = (ReporteService) getBean(\"scsicc.reporteService\");\n\n\t\t// obteniendo las lista de grupode facturacion y actividad\n\t\tMantenimientoMAEClienteService clienteService = (MantenimientoMAEClienteService) getBean(\"spusicc.mantenimientoMAEClienteService\");\n\t\tLong oidMarca = clienteService\n\t\t\t\t.getOidMarca(Constants.CODIGO_MARCA_DEFAULT);\n\t\tLong oidCanal = clienteService\n\t\t\t\t.getOidCanal(Constants.CODIGO_CANAL_DEFAULT);\n\n\t\tMap params = new HashMap();\n\t\tparams.put(\"codigoPais\", pais.getCodigo());\n\t\tparams.put(\n\t\t\t\t\"oidPais\",\n\t\t\t\tnew Long(reporteService.getOidString(\"getOidPaisByCodigoPais\",\n\t\t\t\t\t\tparams)));\n\t\tparams.put(\"oidMarca\", oidMarca);\n\t\tparams.put(\"oidCanal\", oidCanal);\n\n\t\tsiccGrupoFacturacionList = reporteService.getGrupoFacturacion(params);\n\t\tsiccActividadList = reporteService.getActividad(params);\n\t\tfindList(f);\n\n\t\tthis.mostrarBotonBuscar = false;\n\t\tthis.mostrarBotonModificar = false;\n\t\tthis.mostrarBotonNuevo = false;\n\t\tthis.mostrarBotonEliminar = false;\n\t\tthis.mostrarBotonConsultar = false;\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n String action = request.getParameter(\"action\");\n LogementModel model = new LogementModel();\n MaisonDAO implm = new MaisonDAO();\n AppartementDAO impla = new AppartementDAO();\n ChambreDAO implc = new ChambreDAO();\n\n request.setAttribute(\"model\", model);\n\n if (action != null) {\n if (action.equals(\"maison\")) {\n ArrayList<Maison> listm = implm.listMaisonD();\n model.setMaisons(listm);\n } else if (action.equals(\"appartement\")) {\n ArrayList<Appartement> lisa = impla.listAppartementD();\n model.setAppartements(lisa);\n } else if (action.equals(\"chambre\")) {\n ArrayList<Chambre> lista = implc.listChambreD();\n model.setChambres(lista);\n }/*else if (action.equals(\"tout\")) {\n List<Logement> logement = impl.listlogements();\n model.setLogements(logement);\n }*/\n\n }\n request.getRequestDispatcher(\"index.jsp\").forward(request,\n response);\n\n }",
"@Override\n\tpublic ActionForward doExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tString action = request.getParameter(\"action1\");\n\t\tif (action == null) action = LIST;\n\t\tif (log.isDebugEnabled()) log.debug(\"action:\" + action);\n\t\tActionForward forward = null;\n\t\tUserDefinedQueryForm theForm = (UserDefinedQueryForm) form;\n\t\ttry {\n\t\t\tif (LIST.equalsIgnoreCase(action)) forward = listAdvanceBacth(mapping, theForm, request, response); // 打开复杂查询列表页面\n\t\t\telse if (\"LISTSIMPLE\".equalsIgnoreCase(action)) forward = listSimpleBacth(mapping, theForm, request, response); // 打开简单查询列表页面\n\t\t\telse if (\"SHOWQUERY\".equalsIgnoreCase(action)) forward = queryAdvance(mapping, theForm, request, response);\n\t\t\telse if (\"SHOWSIMPLE\".equalsIgnoreCase(action)) forward = querySimple(mapping, theForm, request, response);\n\t\t\telse if (\"VALID\".equalsIgnoreCase(action)) forward = validate(mapping, theForm, request, response);\n\t\t\telse if (\"PREVIEWSQL\".equalsIgnoreCase(action)) forward = getSQLForPreview(mapping, theForm, request, response);\n\t\t\telse if (\"VALIDSIMPLE\".equalsIgnoreCase(action)) forward = validateSimple(mapping, theForm, request, response);\n\t\t\telse if (\"ADVANCEOVERVIEW\".equalsIgnoreCase(action)) forward = queryAdvanceOverview(mapping, theForm, request, response);\n\t\t\telse if (\"SIMPLEOVERVIEW\".equalsIgnoreCase(action)) forward = querySimpleOverview(mapping, theForm, request, response);\n\t\t\telse if (\"SAVERESULT\".equalsIgnoreCase(action)) forward = saveResult(mapping, theForm, request, response);\n\t\t\telse if (\"SHOWEXPORTEXCEL\".equalsIgnoreCase(action)) forward = showExportExcel(mapping, theForm, request, response);\n\t\t\telse if (\"EXPORTEXCEL\".equalsIgnoreCase(action)) forward = exportExcel(mapping, theForm, request, response);\n\t\t\telse {\n\t\t\t\trequest.setAttribute(\"err\", new WebException(\"找不到该action方法:\" + action));\n\t\t\t\tforward = mapping.findForward(ERROR);// 找不到合适的action\n\t\t\t}\n\n\t\t\t// else if(\"SAVEPARAM\".equalsIgnoreCase(action))\n\t\t\t// forward=saveQueryParam(mapping, theForm, request, response);\n\t\t\t// //保存查询条件到个人空间\n\t\t}\n\t\tcatch (Exception e) {// 其他系统出错\n\t\t\trequest.setAttribute(\"err\", e);\n\t\t\tforward = mapping.findForward(ERROR);\n\t\t}\n\t\treturn forward;\n\t}",
"private ApplicationActionMap getAppActionMap() {\n\t\treturn Application.getInstance().getContext().getActionMap(this);\n\t}",
"public Form getActionForm(String stateName, String actionName)\r\n throws ProcessManagerException {\r\n try {\r\n return processModel.getPublicationForm(actionName, currentRole,\r\n getLanguage());\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.UNKNOWN_ACTION\", e);\r\n }\r\n }",
"ActionMap createActionMap() {\n ActionMap map = new ActionMapUIResource();\n Action[] actions = editor.getActions();\n //System.out.println(\"building map for UI: \" + getPropertyPrefix());\n int n = actions.length;\n for (int i = 0; i < n; i++) {\n Action a = actions[i];\n map.put(a.getValue(Action.NAME), a);\n //System.out.println(\" \" + a.getValue(Action.NAME));\n }\n map.put(TransferHandler.getCutAction().getValue(Action.NAME),\n TransferHandler.getCutAction());\n map.put(TransferHandler.getCopyAction().getValue(Action.NAME),\n TransferHandler.getCopyAction());\n map.put(TransferHandler.getPasteAction().getValue(Action.NAME),\n TransferHandler.getPasteAction());\n return map;\n }",
"private void retrieveInputs(HttpServletRequest req){\n\n\t\ttry {\t\t\t\t\n\n\t\t\t_medicalData = new MedicalData();\n\n\t\t\t\n\t\t\t_medicalData.setUserId(_userId);\n\t\t\t\n\t\t\t_medicalData.setPersonalName(req.getParameter(\"personalcontact_name\").trim());\n\t\t\t_medicalData.setSex(req.getParameter(\"personalcontact_sex\").trim());\n\t\t\t_medicalData.setPersonalAddress(req.getParameter(\"personalcontact_address\").trim());\t\t\t\n\t\t\t_medicalData.setPersonalPhone(req.getParameter(\"personalcontact_phonenumber1\").trim() + \",\" + \n\t\t\t\t\t\t\t\t\t\t req.getParameter(\"personalcontact_phonenumber2\").trim() + \",\" + \n\t\t\t\t\t\t\t\t\t\t req.getParameter(\"personalcontact_phonenumber3\").trim() );\n\t\t\t_medicalData.setPersonalDateOfBirth(req.getParameter(\"personalcontact_month\").trim() + \",\" + \n\t\t\t\t\t\t\t\t\t\t\t\treq.getParameter(\"personalcontact_day\").trim() + \",\" + \n\t\t\t\t\t\t\t\t\t\t\t\treq.getParameter(\"personalcontact_year\").trim() );\t\t\n\t\t\t\n\t\t\t_medicalData.setEmergencyContact1(req.getParameter(\"emergencycontact_name1\").trim());\n\t\t\t_medicalData.setEmergencyContact1Phone(req.getParameter(\"emergencycontact_1_phone1\").trim() + \",\" + \n\t\t\t\t\t \t\t\t\t\t req.getParameter(\"emergencycontact_1_phone2\").trim() + \",\" + \n\t\t\t\t\t req.getParameter(\"emergencycontact_1_phone3\").trim() );\n\t\t\t_medicalData.setEmergencyContact2(req.getParameter(\"emergencycontact_name2\").trim());\n\t\t\t_medicalData.setEmergencyContact2Phone(req.getParameter(\"emergencycontact_2_phone1\").trim() + \",\" + \n\t\t\t\t\t \t\t\t\t\t req.getParameter(\"emergencycontact_2_phone2\").trim() + \",\" + \n\t\t\t\t\t req.getParameter(\"emergencycontact_2_phone3\").trim() );\n\t\t\t\n\t\t\t_medicalData.setPrimaryCare(req.getParameter(\"emergencycontact_care\").trim());\n\t\t\t_medicalData.setPrimaryCarePhone(req.getParameter(\"emergencycontact_care_phone1\").trim() + \",\" + \n\t\t\t\t\t\t\t\t\t\t\t req.getParameter(\"emergencycontact_care_phone2\").trim() + \",\" + \n\t\t\t\t\t\t\t\t\t\t\t req.getParameter(\"emergencycontact_care_phone3\").trim() );\n\t\t\t_medicalData.setInsurance(req.getParameter(\"emergencycontact_insurance\").trim());\n\t\t\t_medicalData.setInsuranceId(req.getParameter(\"emergencycontact_insuranceid\").trim());\n\t\t\t\n\t\t\t_medicalData.setMedicalCondition(req.getParameter(\"emergencycontact_medications\").trim());\n\t\t\t_medicalData.setAllergies(req.getParameter(\"emergencycontact_allergies\").trim());\n\t\t\t_medicalData.setSpecialNotes(req.getParameter(\"emergencycontact_specialnote\").trim());\n\t\t\t\n\t\t\t_medicalData.setHeadNotes(req.getParameter(\"head_notes\").trim());\n\t\t\t_medicalData.setNeckNotes(req.getParameter(\"neck_notes\").trim());\n\t\t\t_medicalData.setChestNotes(req.getParameter(\"chest_notes\").trim());\n\t\t\t_medicalData.setArmsNotes(req.getParameter(\"arms_notes\").trim());\n\t\t\t_medicalData.setLegsNotes(req.getParameter(\"legs_notes\").trim());\n\t\t\t\n\t\t\t//Get the tab marker\n\t\t\t_tabMarker = req.getParameter(\"tabMarker\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t_log.warning(e.getMessage());\n\t\t}\t\t\t\n\t}",
"@Override\n\tprotected void buildExcelDocument(Map<String, Object> model, HSSFWorkbook workbook, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception \n\t{\n\t\t\n\t\tString formName = (String)model.get(\"formName\");\n\t\tif (\"Supplier\".equals(formName))\n\t\t\tsetSupplierExcelData(model, workbook);\n\t\telse if (\"Customer\".equals(formName))\n\t\t\tsetCustomerExcelData(model, workbook);\n\t\telse if (\"Item\".equals(formName))\n\t\t\tsetItemExcelData(model, workbook);\n\t\telse if (\"NonInventoryItem\".equals(formName))\n\t\t\tsetNonInventoryExcelData(model, workbook);\n\t\telse if (\"Project\".equals(formName))\n\t\t\tsetProjectExcelData(model, workbook);\n\t\telse if (\"Warehouse\".equals(formName))\n\t\t\tsetWarehouseExcelData(model, workbook);\n\t\t\n\t\tSystem.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\" + formName);\n\t\n\t}",
"@RequestMapping(method=RequestMethod.GET,value=\"/form_modelandview\")\n\tpublic ModelAndView getcustomerform_modelandview()\n\t{\n\t\t ModelAndView modelAndView = new ModelAndView(\"form\");\n\t\t modelAndView.addObject(\"message\", \"Model and View\");\t \n\t\t\t\t \n\t\tSystem.out.println(\"============Customer form called============\");\n\t\treturn modelAndView;\n\t}",
"@Override\r\n public ModelAndView getView(TypeForm form, BindException errors)\r\n {\n typeName = StringUtils.trimToNull(form.getType());\r\n\r\n if (null != typeName)\r\n {\r\n dd = OntologyManager.getDomainDescriptor(typeName, getContainer());\r\n properties = OntologyManager.getPropertiesForType(typeName, getContainer());\r\n\r\n d = dd != null ? d = PropertyService.get().getDomain(dd.getDomainId()) : null;\r\n kind = d != null ? d.getDomainKind() : null;\r\n }\r\n\r\n return new JspView<>(\"/org/labkey/experiment/types/typeDetails.jsp\", this);\r\n }",
"public interface WaterAndSandDetailsView extends BaseView {\n void successData(Map<String, String> data);\n\n}",
"public void showReviewForm() throws ServletException, IOException {\r\n\t\tSystem.out.println(request.getParameter(\"album_id\"));\r\n\t\tInteger albumId = Integer.parseInt(request.getParameter(\"album_id\"));\r\n\t\tAlbumDAO albumDao = new AlbumDAO();\r\n\t\tAlbum album = albumDao.get(albumId);\r\n\t\t\r\n\t\tHttpSession session = request.getSession(); \r\n\t\tsession.setAttribute(\"album\", album);\r\n\t\t\r\n\t\tCustomer customer = (Customer) session.getAttribute(\"loggedCustomer\");\r\n\t\t\r\n\t\tReview existReview = reviewDAO.findByCustomerAndAlbum(customer.getCustomerId(), albumId);\r\n\t\t\r\n\t\tString targetPage = \"frontend/review_form.jsp\";\r\n\t\t\r\n\t\tif (existReview != null) {\r\n\t\t\trequest.setAttribute(\"review\", existReview);\r\n\t\t\ttargetPage = \"frontend/review_info.jsp\";\r\n\t\t}\r\n\r\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(targetPage);\r\n\t\tdispatcher.forward(request, response);\t\t\r\n\t}",
"@RequestMapping(value = \"/grtICFileForm\", method = RequestMethod.GET)\r\n\tpublic ModelAndView grtICFileForm(HttpServletRequest request) {\r\n\t\tlogger.log(IAppLogger.INFO, \"Enter: grtICFileForm()\");\r\n\t\tModelAndView modelAndView = new ModelAndView(\"inors/grtICFileForm\");\r\n\r\n\t\tString testAdministrationVal = (String) request.getParameter(\"p_test_administration\");\r\n\t\tString testProgram = (String) request.getParameter(\"p_test_program\");\r\n\t\tString corpDiocese = (String) request.getParameter(\"p_corpdiocese\");\r\n\t\tString school = (String) request.getParameter(\"p_school\");\r\n\t\tlogger.log(IAppLogger.INFO, \"testAdministrationVal=\" + testAdministrationVal);\r\n\t\tlogger.log(IAppLogger.INFO, \"testProgram=\" + testProgram);\r\n\t\tlogger.log(IAppLogger.INFO, \"corpDiocese=\" + corpDiocese);\r\n\t\tlogger.log(IAppLogger.INFO, \"school=\" + school);\r\n\r\n\t\tif ((testAdministrationVal == null) || (\"null\".equalsIgnoreCase(testAdministrationVal))) {\r\n\t\t\tString reportUrl = (String) request.getParameter(\"reportUrl\");\r\n\t\t\tlogger.log(IAppLogger.INFO, \"reportUrl=\" + reportUrl);\r\n\t\t\tmodelAndView.addObject(\"reportUrl\", reportUrl);\r\n\t\t\t// get parameter values for report\r\n\t\t\tMap<String, Object> parameters = getReportParameters(request, reportUrl);\r\n\t\t\tlogger.log(IAppLogger.INFO, \"parameters = \" + parameters);\r\n\t\t\trequest.getSession().setAttribute(IApplicationConstants.REPORT_TYPE_CUSTOM + \"parameters\" + reportUrl, parameters);\r\n\t\t\tif ((parameters != null) && (!parameters.isEmpty())) {\r\n\t\t\t\ttestAdministrationVal = CustomStringUtil.getNotNullString(parameters.get(\"p_test_administration\"));\r\n\t\t\t\ttestProgram = CustomStringUtil.getNotNullString(parameters.get(\"p_test_program\"));\r\n\t\t\t\tcorpDiocese = CustomStringUtil.getNotNullString(parameters.get(\"p_corpdiocese\"));\r\n\t\t\t\tschool = CustomStringUtil.getNotNullString(parameters.get(\"p_school\"));\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.log(IAppLogger.INFO, \"testAdministrationVal=\" + testAdministrationVal);\r\n\t\tlogger.log(IAppLogger.INFO, \"testProgram=\" + testProgram);\r\n\t\tlogger.log(IAppLogger.INFO, \"corpDiocese=\" + corpDiocese);\r\n\t\tlogger.log(IAppLogger.INFO, \"school=\" + school);\r\n\r\n\t\tString productName = getProductNameById(testAdministrationVal);\r\n\t\tlogger.log(IAppLogger.INFO, \"productName=\" + productName);\r\n\r\n\t\tmodelAndView.addObject(\"testAdministrationVal\", testAdministrationVal);\r\n\t\tmodelAndView.addObject(\"testAdministrationText\", productName);\r\n\t\tmodelAndView.addObject(\"testProgram\", testProgram);\r\n\t\tmodelAndView.addObject(\"corpDiocese\", corpDiocese);\r\n\t\tmodelAndView.addObject(\"school\", school);\r\n\r\n\t\tString reportId = (String) request.getParameter(\"reportId\");\r\n\t\tString productId = (testAdministrationVal == null) ? IApplicationConstants.DEFAULT_PRODUCT_ID : testAdministrationVal;\r\n\t\tString customerId = (String) request.getSession().getAttribute(IApplicationConstants.CUSTOMER);\r\n\t\tString orgNodeLevel = ((Long) request.getSession().getAttribute(IApplicationConstants.CURRORGLVL)).toString();\r\n\t\t// String currentUserId = (String) request.getSession().getAttribute(IApplicationConstants.CURRUSERID);\r\n\t\tlogger.log(IAppLogger.INFO, \"reportId=\" + reportId);\r\n\t\tlogger.log(IAppLogger.INFO, \"productId=\" + productId);\r\n\t\tlogger.log(IAppLogger.INFO, \"customerId=\" + customerId);\r\n\t\tlogger.log(IAppLogger.INFO, \"orgNodeLevel=\" + orgNodeLevel);\r\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\r\n\t\tparamMap.put(\"REPORT_ID\", reportId);\r\n\t\tparamMap.put(\"PRODUCT_ID\", productId);\r\n\t\tparamMap.put(\"CUSTOMER_ID\", customerId);\r\n\t\tparamMap.put(\"ORG_NODE_LEVEL\", orgNodeLevel);\r\n\t\t// paramMap.put(\"USER_ID\", currentUserId);\r\n\t\tList<ReportMessageTO> reportMessages = reportService.getAllReportMessages(paramMap);\r\n\t\tmodelAndView.addObject(\"reportMessages\", reportMessages);\r\n\t\tString dataloadMessage = getReportMessage(reportMessages, IApplicationConstants.DASH_MESSAGE_TYPE.DM.toString(), IApplicationConstants.DATALOAD_MESSAGE);\r\n\t\tlogger.log(IAppLogger.INFO, \"dataloadMessage=\" + dataloadMessage);\r\n\t\tmodelAndView.addObject(\"dataloadMessage\", dataloadMessage);\r\n\r\n\t\tString currentAdminYear = inorsService.getCurrentAdminYear();\r\n\t\tint lastAdmYr = Integer.parseInt(currentAdminYear) - 1;\r\n\t\tString lastAdminYear = String.valueOf(lastAdmYr);\r\n\t\tlogger.log(IAppLogger.INFO, \"currentAdminYear=\" + currentAdminYear);\r\n\t\tlogger.log(IAppLogger.INFO, \"lastAdminYear=\" + lastAdminYear);\r\n\r\n\t\tmodelAndView.addObject(\"currentAdminYear\", currentAdminYear);\r\n\t\tmodelAndView.addObject(\"lastAdminYear\", lastAdminYear);\r\n\r\n\t\tString currentIcFile = \"IC_ISTEP_SPRING_\" + currentAdminYear + \"_FILENAME\";\r\n\t\tString lastIcFile = \"IC_ISTEP_SPRING_\" + lastAdminYear + \"_FILENAME\";\r\n\r\n\t\tString currentIcFileName = propertyLookup.get(currentIcFile);\r\n\t\tString lastIcFileName = propertyLookup.get(lastIcFile);\r\n\r\n\t\tlogger.log(IAppLogger.INFO, \"currentIcFileName=\" + currentIcFileName);\r\n\t\tlogger.log(IAppLogger.INFO, \"lastIcFileName=\" + lastIcFileName);\r\n\r\n\t\tmodelAndView.addObject(\"currentIcFileName\", currentIcFileName);\r\n\t\tmodelAndView.addObject(\"lastIcFileName\", lastIcFileName);\r\n\r\n\t\tString showGrtDiv = \"Y\";\r\n\t\tString showIcDiv = \"N\";\r\n\t\tif (productName != null && productName.length() >= 4) {\r\n\t\t\tString selectedYear = productName.substring(productName.length() - 4);\r\n\t\t\tlogger.log(IAppLogger.INFO, \"selectedYear=\" + selectedYear);\r\n\t\t\tmodelAndView.addObject(\"selectedYear\", selectedYear);\r\n\r\n\t\t\tString yearPrefix = getYearPrefix(selectedYear);\r\n\t\t\tlogger.log(IAppLogger.INFO, \"yearPrefix=\" + yearPrefix);\r\n\t\t\tString productPrefix = \"\";\r\n\t\t\tString productSuffix = \"\";\r\n\t\t\tif (productName.toUpperCase().contains(\"ISTEP\")) {\r\n\t\t\t\tproductPrefix = \"ISTEP\";\r\n\t\t\t} else if (productName.toUpperCase().contains(\"IMAST\")) {\r\n\t\t\t\tproductPrefix = \"IMAST\";\r\n\t\t\t} else if (productName.toUpperCase().contains(\"IREAD\")) {\r\n\t\t\t\tproductPrefix = \"IREAD3\";\r\n\t\t\t} else {\r\n\t\t\t\tlogger.log(IAppLogger.ERROR, \"Invalid Product Prefix: Expected - ISTEP/IMAST/IREAD\");\r\n\t\t\t}\r\n\t\t\tif (productName.toUpperCase().contains(\"SPRING\")) {\r\n\t\t\t\tproductSuffix = \"SPRING\";\r\n\t\t\t} else if (productName.toUpperCase().contains(\"SUMMER\")) {\r\n\t\t\t\tproductSuffix = \"SUMMER\";\r\n\t\t\t} else {\r\n\t\t\t\tlogger.log(IAppLogger.ERROR, \"Invalid Product Suffix: Expected - SPRING/SUMMER\");\r\n\t\t\t}\r\n\r\n\t\t\t// IC is available for latest two years\r\n\t\t\tif ((productName.contains(currentAdminYear)) || (productName.contains(lastAdminYear))) {\r\n\t\t\t\t// IC is available for ISTEP\r\n\t\t\t\tif (productName.contains(\"ISTEP\")) {\r\n\t\t\t\t\tshowIcDiv = \"Y\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\tMap<String, Object> propertyMap = (Map<String,Object>)request.getSession().getAttribute(\"propertyMap\");\r\n\t\t\tif(propertyMap == null){\r\n\t\t\t\tMap<String, Object> tileParamMap = new HashMap<String, Object>();\r\n\t\t\t\ttileParamMap.put(\"contractName\", Utils.getContractName());\r\n\t\t\t\tpropertyMap = loginService.getContractProerty(tileParamMap);\r\n\t\t\t\trequest.getSession().setAttribute(\"propertyMap\", propertyMap);\r\n\t\t\t}\r\n\t\t\tString icFileLayoutDisplayName = yearPrefix + \" Invitation Code File Record Layout\";\r\n\t\t\tString icFileLayoutHref = propertyMap.get(IApplicationConstants.STATIC_PDF_LOCATION) + File.separator + propertyLookup.get(\"S3KEY_LAYOUTS\") + propertyLookup.get(\"IC_\" + productPrefix + \"_\" + productSuffix + \"_\" + selectedYear + \"_FILENAME\");\r\n\t\t\tif (icFileLayoutHref == null || icFileLayoutHref.isEmpty()) {\r\n\t\t\t\tif (showIcDiv == \"Y\") {\r\n\t\t\t\t\tlogger.log(IAppLogger.ERROR, \"IC Layout Filename is not configured in Properties file\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlogger.log(IAppLogger.INFO, \"icFileLayoutHref=\" + icFileLayoutHref);\r\n\t\t\t}\r\n\t\t\tlogger.log(IAppLogger.INFO, \"icFileLayoutDisplayName=\" + icFileLayoutDisplayName);\r\n\t\t\tmodelAndView.addObject(\"icFileLayoutDisplayName\", icFileLayoutDisplayName);\r\n\t\t\tmodelAndView.addObject(\"icFileLayoutHref\", icFileLayoutHref);\r\n\r\n\t\t\t// GRT is available for all years\r\n\t\t\tString grtFileLayoutDisplayName = yearPrefix + \" GRT File Record Layout\";\r\n\t\t\tString grtFileLayoutHref = propertyMap.get(IApplicationConstants.STATIC_PDF_LOCATION) + File.separator + propertyLookup.get(\"S3KEY_LAYOUTS\") + propertyLookup.get(\"GRT_\" + productPrefix + \"_\" + productSuffix + \"_\" + selectedYear + \"_FILENAME\");\r\n\t\t\tif (grtFileLayoutHref == null || grtFileLayoutHref.isEmpty()) {\r\n\t\t\t\tif (showGrtDiv == \"Y\") {\r\n\t\t\t\t\tlogger.log(IAppLogger.ERROR, \"GRT Layout Filename is not configured in Properties file\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlogger.log(IAppLogger.INFO, \"grtFileLayoutHref=\" + grtFileLayoutHref);\r\n\t\t\t}\r\n\t\t\tlogger.log(IAppLogger.INFO, \"grtFileLayoutDisplayName=\" + grtFileLayoutDisplayName);\r\n\t\t\tmodelAndView.addObject(\"grtFileLayoutDisplayName\", grtFileLayoutDisplayName);\r\n\t\t\tmodelAndView.addObject(\"grtFileLayoutHref\", grtFileLayoutHref);\r\n\t\t} else {\r\n\t\t\tlogger.log(IAppLogger.ERROR, \"Invalid Product Name\");\r\n\t\t}\r\n\t\tlogger.log(IAppLogger.INFO, \"showGrtDiv=\" + showGrtDiv);\r\n\t\tlogger.log(IAppLogger.INFO, \"showIcDiv=\" + showIcDiv);\r\n\t\tmodelAndView.addObject(\"showGrtDiv\", showGrtDiv);\r\n\t\tmodelAndView.addObject(\"showIcDiv\", showIcDiv);\r\n\r\n\t\tlogger.log(IAppLogger.INFO, \"Exit: grtICFileForm()\");\r\n\t\treturn modelAndView;\r\n\t}",
"private FormMediator() {\n queryViews = new LinkedList<QueryView>();\n searchAction = Actions.SEARCH_ACTION;\n }",
"public void buildAndShowListForm() {\n GeyserAdvancement categoryAdvancement = storedAdvancements.get(currentAdvancementCategoryId);\n String language = session.locale();\n\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .title(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getTitle(), language))\n .content(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getDescription(), language));\n\n List<GeyserAdvancement> visibleAdvancements = new ArrayList<>();\n if (currentAdvancementCategoryId != null) {\n for (GeyserAdvancement advancement : storedAdvancements.values()) {\n boolean earned = isEarned(advancement);\n if (earned || !advancement.getDisplayData().isHidden()) {\n if (advancement.getParentId() != null && currentAdvancementCategoryId.equals(advancement.getRootId(this))) {\n String color = earned ? advancement.getDisplayColor() : \"\";\n builder.button(color + MessageTranslator.convertMessage(advancement.getDisplayData().getTitle()) + '\\n');\n\n visibleAdvancements.add(advancement);\n }\n }\n }\n }\n\n builder.button(GeyserLocale.getPlayerLocaleString(\"gui.back\", language));\n\n builder.closedResultHandler(() -> {\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n\n }).validResultHandler((response) -> {\n if (response.getClickedButtonId() < visibleAdvancements.size()) {\n GeyserAdvancement advancement = visibleAdvancements.get(response.clickedButtonId());\n buildAndShowInfoForm(advancement);\n } else {\n buildAndShowMenuForm();\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n }\n });\n\n session.sendForm(builder);\n }",
"public static RegionAccessListForm formFromCollection(\n ArrayList accessCollection,\n RegionAccessListForm regfrm) {\n\n\t\tregfrm.setViewplan(new int[0]);\n regfrm.setEditplan(new int[0]);\n regfrm.setViewfact(new int[0]);\n regfrm.setEditfact(new int[0]);\n\t \n ArrayList tempeditfact = new ArrayList();\n ArrayList tempviewfact = new ArrayList();\n ArrayList tempeditplan = new ArrayList();\n ArrayList tempviewplan = new ArrayList();\n\n Iterator itr = accessCollection.iterator();\n while (itr.hasNext()) {\n RegionAccess sra = (RegionAccess) itr.next();\n if (sra.isEditfact()) {\n tempeditfact.add(new Integer(sra.getRegionid()));\n }\n if (sra.isViewfact()) {\n tempviewfact.add(new Integer(sra.getRegionid()));\n }\n if (sra.isEditplan()) {\n tempeditplan.add(new Integer(sra.getRegionid()));\n }\n if (sra.isViewplan()) {\n tempviewplan.add(new Integer(sra.getRegionid()));\n }\n }\n //sorting ??\n if (tempeditfact.size() > 0) {\n Object editfact[] = (Object[]) tempeditfact.toArray();\n int inteditfact[] = new int[editfact.length];\n for (int i = 0; i < editfact.length; i++) {\n inteditfact[i] = ((Integer) editfact[i]).intValue();\n }\n regfrm.setEditfact(inteditfact);\n }\n\n if (tempviewfact.size() > 0) {\n Object viewfact[] = (Object[]) tempviewfact.toArray();\n int intviewfact[] = new int[viewfact.length];\n for (int i = 0; i < viewfact.length; i++) {\n intviewfact[i] = ((Integer) viewfact[i]).intValue();\n }\n regfrm.setViewfact(intviewfact);\n }\n\n if (tempeditplan.size() > 0) {\n Object editplan[] = (Object[]) tempeditplan.toArray();\n int inteditplan[] = new int[editplan.length];\n for (int i = 0; i < editplan.length; i++) {\n inteditplan[i] = ((Integer) editplan[i]).intValue();\n }\n regfrm.setEditplan(inteditplan);\n }\n\n if (tempviewplan.size() > 0) {\n Object viewplan[] = (Object[]) tempviewplan.toArray();\n int intviewplan[] = new int[viewplan.length];\n for (int i = 0; i < viewplan.length; i++) {\n intviewplan[i] = ((Integer) viewplan[i]).intValue();\n }\n regfrm.setViewplan(intviewplan);\n }\n\n return regfrm;\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString action = request.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action.equals(\"Save\")){\r\n\t\t\tmodel.setAddress(request.getParameter(\"address\"));\r\n\t model.setPort( Integer.parseInt(request.getParameter(\"port\")));\r\n\t model.setAddressIp(request.getParameter(\"addressIp\"));\r\n\t save();\r\n\t\t}\r\n\t\trequest.setAttribute(\"model\", model);\r\n\t\trequest.getRequestDispatcher(\"param.jsp\").forward(request, response);\r\n\t}",
"private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }",
"protected abstract void populateView(View v, T model);",
"public Vector getFormData(){\r\n if(vecDelSpecialReviewData != null)\r\n { \r\n int delSize = vecDelSpecialReviewData.size();\r\n for(int index = 0; index < delSize; index++){\r\n SpecialReviewFormBean specialReviewBean = (SpecialReviewFormBean)vecDelSpecialReviewData.get(index);\r\n if(specialReviewBean != null && vecSpecialReviewData !=null){\r\n vecSpecialReviewData.insertElementAt(specialReviewBean,index);\r\n }\r\n }\r\n }\r\n vecDelSpecialReviewData = null;\r\n return vecSpecialReviewData;\r\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n params.put(\"user_id\", globalClass.getId());\n params.put(\"view\", \"getMyTaskRewardsByUser\");\n\n Log.d(TAG, \"getParams: \"+params);\n return params;\n }",
"public static Map<String, String> prepareFormMap(String formID, String... varargs) {\n\t\t// setting the default values when arguments' values are omitted\n\t\tString sessionID = varargs.length > 0 ? varargs[0] : null;\n\t\t// Prepare a form-dictionary that can be used later on to submit new form data\n\t\t// for a slide\n\t\tif (formID == null) {\n\t\t\treturn null;\n\t\t}\n\t\tsessionID = sessionId(sessionID);\n\t\tMap<String, String> formDef = new HashMap<>();\n\t\tString url = apiUrl(sessionID, false) + \"GetFormDefinitions?sessionID=\" + PMA.pmaQ(sessionID);\n\t\ttry {\n\t\t\tURL urlResource = new URL(url);\n\t\t\tHttpURLConnection con;\n\t\t\tif (url.startsWith(\"https\")) {\n\t\t\t\tcon = (HttpsURLConnection) urlResource.openConnection();\n\t\t\t} else {\n\t\t\t\tcon = (HttpURLConnection) urlResource.openConnection();\n\t\t\t}\n\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\tString jsonString = PMA.getJSONAsStringBuffer(con).toString();\n\t\t\tif (jsonString != null && jsonString.length() > 0) {\n\t\t\t\tif (PMA.isJSONObject(jsonString)) {\n\t\t\t\t\tJSONObject jsonResponse = PMA.getJSONObjectResponse(jsonString);\n\t\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\t\tif (jsonResponse.has(\"Code\")) {\n\t\t\t\t\t\tif (PMA.logger != null) {\n\t\t\t\t\t\t\tPMA.logger.severe(\"\" + jsonResponse.get(\"Message\") + \"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthrow new Exception(\"\" + jsonResponse.get(\"Message\") + \"\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tformDef = null;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tJSONArray jsonResponse = PMA.getJSONArrayResponse(jsonString);\n\t\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\t\tfor (int i = 0; i < jsonResponse.length(); i++) {\n\t\t\t\t\t\tif ((jsonResponse.optJSONObject(i).get(\"FormID\").toString().equals(formID))\n\t\t\t\t\t\t\t\t|| (jsonResponse.optJSONObject(i).get(\"FormName\").toString().equals(formID))) {\n\t\t\t\t\t\t\tfor (int j = 0; j < jsonResponse.optJSONObject(i).getJSONArray(\"FormFields\")\n\t\t\t\t\t\t\t\t\t.length(); j++) {\n\t\t\t\t\t\t\t\tformDef.put(jsonResponse.optJSONObject(i).getJSONArray(\"FormFields\").getJSONObject(j)\n\t\t\t\t\t\t\t\t\t\t.getString(\"Label\"), null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tformDef = null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tif (PMA.logger != null) {\n\t\t\t\tStringWriter sw = new StringWriter();\n\t\t\t\te.printStackTrace(new PrintWriter(sw));\n\t\t\t\tPMA.logger.severe(sw.toString());\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\treturn formDef;\n\t}",
"void prepareCommonInfo(UserInfo userInfo, ModelAndView mav, PortletSession session, DashboardForm formBean) {\r\n log.debug(\"prepareCommonInfo.START\");\r\n assignmentDao = new AssignmentDao();\r\n developerDao = new DeveloperDao();\r\n generalReferenceDao = new GeneralReferenceDao();\r\n businessDomainDao = new BusinessDomainDao();\r\n\r\n if (formBean.getInit()) {\r\n // Get user info\r\n Developer developer = developerDao.getDeveloperByAccount(userInfo.getUsername());\r\n dashboardList = new ArrayList<Dashboard>();\r\n // Get project user belong to\r\n projectList = assignmentDao.getProjectByDeveloperId(developer.getDeveloperId());\r\n statusList = generalReferenceDao.getProjectStatusEn();\r\n businessDomainList = businessDomainDao.getBusinessDomain();\r\n categoryList = generalReferenceDao.getProjectCategoryEn();\r\n\r\n formBean.setProjectCategory(Constant.ALL_VALUE);\r\n formBean.setProjectDomain(Constant.ALL_VALUE);\r\n formBean.setProjectStatus(Constant.ALL_VALUE);\r\n formBean.setProjectHealth(Constant.ALL_VALUE);\r\n\r\n // Set value for dashboard list\r\n for (int i = 0; i < projectList.size(); i++) {\r\n dashboard = new Dashboard();\r\n dashboard.setProject(projectList.get(i));\r\n dashboard.setPercentTime(calculatePercentTime(projectList.get(i).getPlanStartDate(), projectList.get(i)\r\n .getPlanFinishDate()));\r\n dashboard.setPercentProgress(calculatePercentProgress(projectList.get(i).getProjectId()));\r\n dashboard.setProgressStatus(calculateProgressStatus(projectList.get(i).getProjectId()));\r\n dashboard.setEfficiencyStatus(calculateEfficiencyStatus(projectList.get(i).getProjectId()));\r\n dashboard.setCostStatus(calculateCostStatus(projectList.get(i).getProjectId()));\r\n dashboard.setProjectHealthStatus(calculateProjectHealth(dashboard.getProgressStatus(),\r\n dashboard.getCostStatus(), dashboard.getEfficiencyStatus()));\r\n dashboard.setPercentEffort(calculateUsedEffortRate(projectList.get(i).getProjectId()));\r\n dashboardList.add(dashboard);\r\n }\r\n }\r\n\r\n statusMap = new LinkedHashMap<String, String>();\r\n projectHealthMap = new LinkedHashMap<String, String>();\r\n categoryMap = new LinkedHashMap<String, String>();\r\n businessDomainMap = new LinkedHashMap<String, String>();\r\n\r\n // set value for statusMap\r\n statusMap.put(formBean.getProjectStatus(), Constant.ALL_VALUE);\r\n if (formBean.getInit() == false)\r\n statusMap.put(Constant.ALL_VALUE, Constant.ALL_VALUE);\r\n for (int i = 0; i < statusList.size(); i++) {\r\n statusMap.put(statusList.get(i).getGeneralRefId().toString(), statusList.get(i).getDescription());\r\n }\r\n // set value for businessDomainMap\r\n businessDomainMap.put(formBean.getProjectDomain(), Constant.ALL_VALUE);\r\n if (formBean.getInit() == false)\r\n businessDomainMap.put(Constant.ALL_VALUE, Constant.ALL_VALUE);\r\n for (int i = 0; i < businessDomainList.size(); i++) {\r\n businessDomainMap.put(businessDomainList.get(i).getDomainId().toString(), businessDomainList.get(i)\r\n .getDomainName());\r\n }\r\n // set value for categoryMap\r\n categoryMap.put(formBean.getProjectCategory(), Constant.ALL_VALUE);\r\n if (formBean.getInit() == false)\r\n categoryMap.put(Constant.ALL_VALUE, Constant.ALL_VALUE);\r\n for (int i = 0; i < categoryList.size(); i++) {\r\n categoryMap.put(categoryList.get(i).getGeneralRefId().toString(), categoryList.get(i).getDescription());\r\n }\r\n // set value for projectHealthMap\r\n projectHealthMap.put(formBean.getProjectHealth(), Constant.ALL_VALUE);\r\n if (formBean.getInit() == false)\r\n projectHealthMap.put(Constant.ALL_VALUE, Constant.ALL_VALUE);\r\n projectHealthMap.put(Constant.GOOD_STATUS, \"Good\");\r\n projectHealthMap.put(Constant.NORMAL_STATUS, \"Normal\");\r\n projectHealthMap.put(Constant.BAD_STATUS, \"Bad\");\r\n\r\n mav.addObject(\"dashboardList\", dashboardList);\r\n mav.addObject(\"statusMap\", statusMap);\r\n mav.addObject(\"businessDomainMap\", businessDomainMap);\r\n mav.addObject(\"categoryMap\", categoryMap);\r\n mav.addObject(\"projectHealthMap\", projectHealthMap);\r\n\r\n updateUserInfo(session, userInfo);\r\n\r\n log.debug(\"prepareCommonInfo.END\");\r\n\r\n }",
"public void processAction(ActionMapping mapping, ActionForm form, PortletConfig portletConfig,\r\n ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {\r\n\r\n long planTypeId = ParamUtil.getLong(actionRequest, PlanConstants.PLAN_TYPE_ID);\r\n PlansUserSettings userSettings = PlanLocalServiceHelper.getPlanUserSettings(actionRequest, planTypeId);\r\n Set<String> cols = new HashSet<String>();\r\n if (actionRequest.getParameter(\"columns\") == null) {\r\n SessionErrors.add(actionRequest, \"columns can't be empty\");\r\n }\r\n else {\r\n for (String s:actionRequest.getParameterMap().get(\"columns\")) {\r\n \t cols.add(s);\r\n }\r\n PlanType planType = PlanTypeLocalServiceUtil.getPlanType(planTypeId);\r\n for (Columns c: Columns.getPlanTypeColumns(planType)) {\r\n \t String name = c.name();\r\n \t c.setUserSetting(userSettings, cols.contains(name));\r\n }\r\n\r\n PlanLocalServiceHelper.saveUserSettings(actionRequest, userSettings);\r\n }\r\n\r\n \r\n \r\n String redirect = ParamUtil.getString(actionRequest, PlanConstants.REDIRECT);\r\n actionResponse.sendRedirect(redirect);\r\n }",
"@Override\n public void loadViewContent(PortletRequest request) {\n }",
"void onPrepareForSubmit() {\n\t\t// Create the same list as was rendered.\n\t\t// Loop will write its input field values into the list's objects.\n\n\t\tcreatePersonsList();\n\n\t\t// Prepare to take a copy of each field.\n\n\t\trowNum = -1;\n\t\tfirstNameFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tlastNameFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tregionFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tstartDateFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t}",
"@LogMethod\r\n private void publishDataToVisitBasedStudy()\r\n {\r\n log(\"Prepare visit map to check PTID counts in study navigator.\");\r\n\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_STUDY2);\r\n\r\n _studyHelper.goToManageVisits().goToImportVisitMap();\r\n setFormElement(Locator.name(\"content\"),\r\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\r\n \"<visitMap xmlns=\\\"http://labkey.org/study/xml\\\">\\n\" +\r\n \" <visit label=\\\"Test Visit1\\\" typeCode=\\\"X\\\" sequenceNum=\\\"6.0\\\" maxSequenceNum=\\\"13.0\\\"/>\\n\" +\r\n \" <visit label=\\\"Test Visit2\\\" typeCode=\\\"X\\\" sequenceNum=\\\"50.0\\\" maxSequenceNum=\\\"70.0\\\"/>\\n\" +\r\n \" <visit label=\\\"Test Visit3\\\" typeCode=\\\"X\\\" sequenceNum=\\\"302.0\\\" maxSequenceNum=\\\"303.0\\\"/>\\n\" +\r\n \"</visitMap>\"\r\n );\r\n clickButton(\"Import\");\r\n\r\n //select the Lab1 folder and view all the data for the test assay\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n clickAndWait(Locator.linkWithText(\"view results\"));\r\n\r\n //select all the data rows and click publish\r\n DataRegionTable table = new DataRegionTable(\"Data\", getDriver());\r\n table.checkAll();\r\n table.clickHeaderButton(\"Copy to Study\");\r\n\r\n checkCheckbox(Locator.xpath(\"//input[@id='chooseStudy']\"));\r\n\r\n // Make sure the selected study is Study2\r\n selectOptionByText(Locator.xpath(\"//select[@name='targetStudy']\"), getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY2));\r\n\r\n clickButton(\"Next\");\r\n assertTextPresent(\"Copy to \" + TEST_ASSAY_FLDR_STUDY2 + \" Study: Verify Results\");\r\n\r\n //populate initial set of values and verify the timepoint preview column\r\n String[] visits = new String[]{\"302\", \"33\", \"4\", \"70\"};\r\n int idx = 1;\r\n for (String v : visits)\r\n {\r\n setFormElement(Locator.xpath(\"(//input[@name='visitId'])[\" + idx + \"]\"), v);\r\n idx++;\r\n }\r\n\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[1]\"), \"new1\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[2]\"), \"new2\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[3]\"), \"new3\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[4]\"), \"new4\");\r\n\r\n DataRegionTable copyStudy = new DataRegionTable(\"Data\", getDriver());\r\n copyStudy.clickHeaderButton(\"Re-Validate\");\r\n\r\n //validate timepoints:\r\n assertElementPresent(Locator.xpath(\"//td[text()='Test Visit3' and following-sibling::td/a[text()='AAA07XMC-02']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='33.0' and following-sibling::td/a[text()='AAA07XMC-04']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='4.0' and following-sibling::td/a[text()='AAA07XSF-02']]\"));\r\n\r\n assertElementPresent(Locator.xpath(\"//td[text()='Test Visit2' and following-sibling::td/a[text()='AssayTestControl1']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Test Visit1' and following-sibling::td/a[text()='AssayTestControl2']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Test Visit1' and following-sibling::td/a[text()='BAQ00051-09']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Test Visit1' and following-sibling::td/a[text()='BAQ00051-08']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Test Visit1' and following-sibling::td/a[text()='BAQ00051-11']]\"));\r\n\r\n copyStudy.clickHeaderButton(\"Copy to Study\");\r\n\r\n log(\"Verifying that the data was published\");\r\n assertTextPresent(\r\n TEST_RUN1_COMMENTS,\r\n \"2000-01-01\");\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Study Navigator\"));\r\n\r\n log(\"Test participant counts and row counts in study overview\");\r\n String[] row2 = new String[]{TEST_ASSAY, \"9\", \" \", \" \", \" \", \"1\", \" \", \" \", \"1\", \" \", \" \", \"4\", \" \", \" \", \" \", \" \", \"1\", \"1\", \" \", \" \", \" \", \"1\", \" \", \" \", \" \", \" \", \" \"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n // Manually click the checkbox -- normal checkCheckbox() method doesn't seem to work for checkbox that reloads using onchange event\r\n clickAndWait(Locator.checkboxByNameAndValue(\"visitStatistic\", \"RowCount\"));\r\n row2 = new String[]{TEST_ASSAY, \"9 / 9\", \" \", \" \", \" \", \"1 / 1\", \" \", \" \", \"1 / 1\", \" \", \" \", \"4 / 4\", \" \", \" \", \" \", \" \", \"1 / 1\", \"1 / 1\", \" \", \" \", \" \", \"1 / 1\", \" \", \" \", \" \", \" \", \" \"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n\r\n log(\"Test that correct timepoints were created\");\r\n\r\n clickTab(\"Overview\");\r\n _studyHelper.goToManageVisits();\r\n assertTextPresent(\r\n \"Test Visit1\",\r\n \"6.0 - 13.0\",\r\n \"Test Visit2\",\r\n \"50.0 - 70.0\",\r\n \"Test Visit3\",\r\n \"302.0 - 303.0\");\r\n }",
"private void setAllAttributesFromController() {\n obsoData.setSupplier(supplier);\n \n obsoData.setEndOfOrderDate(endOfOrderDate);\n obsoData.setObsolescenceDate(obsolescenceDate);\n \n obsoData.setEndOfSupportDate(endOfSupportDate);\n obsoData.setEndOfProductionDate(endOfProductionDate);\n \n obsoData.setCurrentAction(avlBean.findAttributeValueListById(\n ActionObso.class, actionId));\n obsoData.setMtbf(mtbf);\n \n obsoData.setStrategyKept(avlBean.findAttributeValueListById(\n Strategy.class,\n strategyId));\n obsoData.setContinuityDate(continuityDate);\n \n obsoData.setManufacturerStatus(avlBean.findAttributeValueListById(\n ManufacturerStatus.class, manufacturerStatusId));\n obsoData.setAirbusStatus(avlBean.findAttributeValueListById(\n AirbusStatus.class, airbusStatusId));\n \n obsoData.setLastObsolescenceUpdate(lastObsolescenceUpdate);\n obsoData.setConsultPeriod(avlBean.findAttributeValueListById(\n ConsultPeriod.class, consultPeriodId));\n \n obsoData.setPersonInCharge(personInCharge);\n obsoData.setCommentOnStrategy(comments);\n }",
"public Map<String, HasFormAssociation> fetchFormAssociations();",
"@Override\r\n\tpublic Map<String, Object> referenceData(HttpServletRequest request) {\n\t\treturn null;\r\n\t}",
"@RequestMapping(value = \"/save\")\r\n\tpublic ModelAndView save(HttpServletRequest request) throws Exception {\r\n\t\tModelAndView mav = new ModelAndView(\"oq_demo\");\t\r\n\r\n\t\t/*\r\n\t\t * if this is the second time coming to this CKO, we have to show all the previously entered data\r\n\t\t * we get the previously entered data from the session and setting it to mav, in js, we iterate over this\r\n\t\t * value and default all the fields.\r\n\t\t */\r\n\t\tif(!Utils.isBlank((String)request.getSession().getAttribute(\"previouslyGivenDataId\"))){\r\n\t\t\t//logger.info(\"Customer Qualification Page entered Dialogues ACTION PAGE :::::::: \"+(String) request.getSession().getAttribute(\"previouslyGivenDataId\"));\r\n\t\t\tString prevEnteredData = (String)request.getSession().getAttribute(\"previouslyGivenDataId\");\r\n\t\t\tmav.addObject(\"previouslyEnteredData\",prevEnteredData);\r\n\t\t}\r\n\t\tif(request.getSession().getAttribute(\"mandatoryDisclosureCheckboxes\") != null){\r\n\t\t\tmav.addObject(\"mandatoryDisclosureCheckboxes\",(request.getSession().getAttribute(\"mandatoryDisclosureCheckboxes\")).toString());\r\n\t\t}\r\n\t\t\r\n\t\t//saved provider data into session level for Pivoting Between Products\r\n\t\tif((String)request.getSession().getAttribute(\"isSessionpreviouslyGivenDataId\") != null\r\n\t\t\t\t&& !Utils.isBlank((String)request.getSession().getAttribute(\"isSessionpreviouslyGivenDataId\"))){\r\n\t\t\tMap<String,Map<String,String>> providerSessionData = (Map<String,Map<String,String>>)request.getSession().getAttribute(\"providerSessionData\");\r\n\t\t\tString providerExternalID = (String)request.getSession().getAttribute(\"providerExternalID\");\r\n\t\t\tif(!Utils.isBlank(providerExternalID) && providerSessionData != null && providerSessionData.get(providerExternalID) != null){\r\n\t\t\t\tString previouslyGivenDataId = providerSessionData.get(providerExternalID).get(\"previouslyGivenDataId\");\r\n\t\t\t\tif(!Utils.isBlank(previouslyGivenDataId)){\r\n\t\t\t\t\tmav.addObject(\"previouslyEnteredData\", previouslyGivenDataId);\r\n\t\t\t\t}\r\n\t\t\t\tlogger.info(\"session_previouslyGivenDataId\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*\r\n\t\t * getting the session object from CKO cache service\r\n\t\t */\r\n\t\tSessionVO sessionVO = CKOCacheService.INSTANCE.get(request.getSession().getId());\r\n\r\n\t\t/*\r\n\t\t * checking whether the session is a valid session or not.\r\n\t\t * if the session is valid, normal process takes place,\r\n\t\t * if the session is invalid, we redirect to session timedout page.\r\n\t\t */\r\n\t\tif(!Utils.isValidSession(sessionVO, SessionKeys.initiator.name())){\r\n\t\t\tModelAndView sessionTimedoutView = new ModelAndView(\"session_timed_out\");\r\n\t\t\treturn sessionTimedoutView;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * getting CKO vo and orderQualVO objects from session\r\n\t\t */\r\n\t\tCKOInitialVo CKOVo = (CKOInitialVo)sessionVO.get(SessionKeys.initiator.name());\r\n\r\n\t\tOrderQualVO orderQualVO = (OrderQualVO)sessionVO.get(SessionKeys.orderQualVo.name());\r\n\r\n\t\t/*\r\n\t\t * converting the request into map\r\n\t\t */\r\n\t\tMap<String, String> reuestParamMap = RequestUtil.INSTANCE.dumpRequestScope(request);\r\n\r\n\t\tmav = buildStaticProductDialoues(request, reuestParamMap, orderQualVO, mav);\r\n\r\n\t\tlogger.info(\"setting values to session object\");\r\n\t\tsessionVO.put(SessionKeys.orderQualVo.name(), orderQualVO);\r\n\r\n\t\tList<String> params = CKOVo.getParams();\r\n\t\tlogger.info(\"Before_modify_paramsList=\"+params);\r\n\t\tif(params != null){\r\n\t\t\tfor(String parmsValue : params){\r\n\t\t\t\tif((!Utils.isBlank(parmsValue)) && parmsValue.contains(Constants.PAGE_ID)){\r\n\t\t\t\t\tint pageIndex = params.indexOf(parmsValue);\r\n\t\t\t\t\tparams.set(pageIndex,\"page_id=\"+PageConstantsEnum.OQ_DEMO_CONTENTS.getId());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t\tlogger.info(\"After_modify_paramsList=\"+params);\r\n\t\t\tCKOVo.setParams(params);\r\n\t\t}\r\n\r\n\t\tViewUtil.processViewByStatus(mav, CKOVo, \"Success\", Constants.CKO_SUCCESS);\r\n\r\n\t\tString baseRecPriceAfterCalc = request.getParameter(\"monthlyCostAmtFld\");\r\n\t\tString baseNonRecPriceAfterCalc = request.getParameter(\"oneTimePriceFld\");\r\n\r\n\t\tString baseRecPrice = request.getParameter(\"lineItemMonthlyPrice\");\r\n\t\tString baseNonRecPrice = request.getParameter(\"lineItemInstallationPrice\");\r\n\r\n\t\tString featureMonthlyPrice = request.getParameter(\"featureMonthlyPrice\");\r\n\t\tString featureOneTimePrice = request.getParameter(\"featureOneTimePrice\");\r\n\r\n\t\tmav.addObject(\"baseRecPrice\", baseRecPriceAfterCalc);\r\n\t\tmav.addObject(\"baseNonRecPrice\", baseNonRecPriceAfterCalc);\r\n\r\n\t\tmav.addObject(\"productMonthlyPrice\", baseRecPrice);\r\n\t\tmav.addObject(\"productInstallationPrice\", baseNonRecPrice);\r\n\r\n\t\tmav.addObject(\"featureMonthlyPrice\", featureMonthlyPrice);\r\n\t\tmav.addObject(\"featureOneTimePrice\", featureOneTimePrice);\r\n\t\tString promotionSelectedFields = request.getParameter(\"promotionSelectedFields\");\r\n\t\tString featureCheckboxFields = request.getParameter(\"featureCheckboxFields\");\r\n\t\tString featureSelectBoxFields = request.getParameter(\"featureSelectBoxFields\");\r\n\t\tString featureGroupSelectedFields = request.getParameter(\"featureGroupSelectBoxFields\");\r\n\r\n\t\tmav.addObject(\"promotionSelectedFields\", promotionSelectedFields);\r\n\t\tmav.addObject(\"featureCheckboxFields\", featureCheckboxFields);\r\n\t\tmav.addObject(\"featureSelectBoxFields\", featureSelectBoxFields);\r\n\t\tmav.addObject(\"featureGroupSelectBoxFields\", featureGroupSelectedFields);\r\n\t\tmav.addObject(\"parentExternalID\", orderQualVO.getParentExternalId());\r\n\t\treturn mav;\r\n\t}",
"private void populateViewCollections() {\n\n\t}",
"@Override\r\n\tpublic Visit getModel() {\n\t\treturn form;\r\n\t}",
"private void setUpViews() {\n\n updateFooterCarInfo();\n updateFooterUsrInfo();\n\n\n setResultActionListener(new ResultActionListener() {\n @Override\n public void onResultAction(AppService.ActionType actionType) {\n if (ModelManager.getInstance().getGlobalInfo() != null) {\n GlobalInfo globalInfo = ModelManager.getInstance().getGlobalInfo();\n\n switch (actionType) {\n case CarInfo:\n updateFooterCarInfo();\n break;\n case UsrInfo:\n updateFooterUsrInfo();\n break;\n case Charger:\n updateChargeStationList();\n break;\n }\n }\n }\n });\n }",
"public interface View{\n void setupViews();\n void onClickSubmitReview();\n void showSuccessfullReviewSubmit();\n void showErrorSubmitReview();\n }",
"@Override\r\n\tprotected String doExecute(ActionForm form, HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, ActionMapping mapping)\r\n\t\t\tthrows Exception {\n\t\treturn null;\r\n\t}",
"public void postData() {\n\n\t}",
"public String getInputFormView() {\n\t\treturn inputFormView;\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tpostData();\n\t\t\t\t\t}",
"protected ActionForward performAction(ActionMapping mapping,\n ActionForm form, HttpServletRequest request,\n HttpServletResponse response) throws Exception {\n\n String forward = FWD_SUCCESS;\n request.setAttribute(ALLOW_EDITS_KEY, \"true\");\n request.setAttribute(PREVIOUS_DISABLED, \"false\");\n request.setAttribute(NEXT_DISABLED, \"false\");\n\n String id = request.getParameter(ID);\n \n if (StringUtil.isNullorNill(id) || \"0\".equals(id)) {\n isNew = true;\n } else {\n isNew = false;\n }\n \n BaseActionForm dynaForm = (BaseActionForm) form;\n \n ActionMessages errors = dynaForm.validate(mapping, request); \n if (errors != null && errors.size() > 0) {\n // System.out.println(\"Server side validation errors \"\n // + errors.toString());\n saveErrors(request, errors);\n // since we forward to jsp - not Action we don't need to repopulate\n // the lists here\n return mapping.findForward(FWD_FAIL);\n }\n \n String start = (String) request.getParameter(\"startingRecNo\");\n String direction = (String) request.getParameter(\"direction\");\n \n District district = new District();\n //get sysUserId from currentUserId\n district.setSysUserId(currentUserId); \n org.hibernate.Transaction tx = HibernateUtil.getSession().beginTransaction();\n \n // populate value holder from form\n PropertyUtils.copyProperties(district, dynaForm);\n // Get cityId from property \"selectedCityId\"\n String selectedCityId = PropertyUtils\n .getProperty(dynaForm, \"selectedCityId\").toString();\n // Get City object from cityId\n DictionaryDAO dictionaryDAO = new DictionaryDAOImpl();\n Dictionary city = new Dictionary();\n city = dictionaryDAO.getDataForId(selectedCityId);\n \n // Get DictrictEntry from districtName property from form\n String districtName = PropertyUtils\n .getProperty(dynaForm, \"districtName\").toString();\n \n DistrictDAO distDAO = new DistrictDAOImpl();\n \n List<Dictionary> districtEntry = distDAO.getDistrictsEntyByName(districtName);\n \n // Set some property for district\n district.setCity(city);\n district.setDescription(\"\");\n \n try {\n // Check DistrictEntry is already exists or not.\n if (districtEntry.size() == 0) {\n Dictionary newDistrictEntry = new Dictionary();\n newDistrictEntry.setDictEntry(districtName);\n DictionaryCategory dicCategory = new DictionaryCategory();\n DictionaryCategoryDAO dicCategoryDAO = \n new DictionaryCategoryDAOImpl();\n dicCategory = dicCategoryDAO\n .getDictionaryCategoryByName(\"districts\");\n newDistrictEntry.setDictionaryCategory(dicCategory);\n newDistrictEntry.setSysUserId(currentUserId);\n newDistrictEntry.setIsActive(\"Y\");\n dictionaryDAO.insertData(newDistrictEntry);\n district.setDistrictEntry(dictionaryDAO\n .getDictionaryByDictEntry(districtName));\n } else {\n district.setDistrictEntry(districtEntry.get(0));\n }\n if (!isNew) {\n // UPDATE\n distDAO.updateData(district);\n } else {\n // INSERT\n distDAO.insertData(district);\n }\n tx.commit();\n \n } catch (LIMSRuntimeException lre) {\n //bugzilla 2154\n LogEvent.logError(\"DistrictUpdateAction\", \"performAction()\",\n lre.toString());\n tx.rollback();\n errors = new ActionMessages();\n java.util.Locale locale = (java.util.Locale) request.getSession()\n .getAttribute(\"org.apache.struts.action.LOCALE\");\n ActionError error = null;\n if (lre.getException()\n instanceof org.hibernate.StaleObjectStateException) {\n // how can I get popup instead of struts error at the top of\n // page?\n // ActionMessages errors = dynaForm.validate(mapping, request);\n error = new ActionError(\"errors.OptimisticLockException\", null,\n null);\n } else {\n // bugzilla 1482\n if (lre.getException()\n instanceof LIMSDuplicateRecordException) {\n String messageKey = \"district.browse.title\";\n String msg = ResourceLocator.getInstance()\n .getMessageResources().getMessage(locale,\n messageKey);\n error = new ActionError(\"errors.DuplicateRecord\",\n msg, null);\n\n } else {\n error = new ActionError(\"errors.UpdateException\", null,\n null);\n }\n }\n errors.add(ActionMessages.GLOBAL_MESSAGE, error);\n saveErrors(request, errors);\n request.setAttribute(Globals.ERROR_KEY, errors);\n //bugzilla 1485: allow change and try updating again \n //enable save button & disable previous and next\n request.setAttribute(PREVIOUS_DISABLED, \"true\");\n request.setAttribute(NEXT_DISABLED, \"true\");\n forward = FWD_FAIL;\n\n } finally {\n HibernateUtil.closeSession();\n }\n \n if (forward.equals(FWD_FAIL)) {\n return mapping.findForward(forward);\n }\n // initialize the form\n dynaForm.initialize(mapping);\n // repopulate the form from valueholder\n PropertyUtils.copyProperties(dynaForm, district);\n if (\"true\".equalsIgnoreCase(request.getParameter(\"close\"))) {\n forward = FWD_CLOSE;\n }\n\n if (district.getId() != null && !district.getId().equals(\"0\")) {\n request.setAttribute(ID, district.getId());\n\n }\n\n //bugzilla 1400\n if (isNew) {\n forward = FWD_SUCCESS_INSERT;\n }\n //bugzilla 1467 added direction for redirect to NextPreviousAction\n return getForward(mapping.findForward(forward), id, start, direction);\n \n }",
"@Override\r\n\tpublic ActionForward executeSecureAction(ActionMapping mapping, ActionForm form,\r\n\t\t\tHttpServletRequest request, HttpServletResponse response) throws IOException,\r\n\t\t\tServletException, Exception\r\n\t{\r\n\t\tgetOperation(request);\r\n\r\n\t\tSet<AbstractFormContext> formContextCollection = new HashSet<AbstractFormContext>();\r\n\t\tMap<AbstractFormContext, Map<String, Object>> formContextParameterMap = new HashMap<AbstractFormContext, Map<String, Object>>();\r\n\r\n\t\tActionForward actionForward = mapping.findForward(Constants.PAGE_OF_SPP);\r\n\t\t//Save SPP events\r\n\t\tif (Boolean.parseBoolean(request.getParameter(Constants.SAVE_SPP_EVENTS)))\r\n\t\t{\r\n\t\t\tSPPEventProcessor sppEventProcessor = new SPPEventProcessor();\r\n\t\t\tformContextParameterMap = sppEventProcessor.populateFormContextParmaterMap(request\r\n\t\t\t\t\t.getParameterMap());\r\n\t\t\tformContextCollection.addAll(formContextParameterMap.keySet());\r\n\t\t\tboolean isEditOperation = false;\r\n\r\n\t\t\tList<String> listOfError = validateDEData(request, formContextCollection,\r\n\t\t\t\t\tformContextParameterMap, sppEventProcessor);\r\n\r\n\t\t\tif (listOfError.isEmpty())\r\n\t\t\t{\r\n\t\t\t\tfor (AbstractFormContext formContext : formContextCollection)\r\n\t\t\t\t{\r\n\t\t\t\t\tAction action = (Action) formContext;\r\n\r\n\t\t\t\t\t//Generate mock request object required for DE data entry\r\n\t\t\t\t\tMutableHttpRequest httprequest = getMockRequestObject(request,\r\n\t\t\t\t\t\t\tformContextParameterMap, formContext);\r\n\r\n\t\t\t\t\tMap<AbstractFormContext, Long> contextRecordIdMap = new SPPBizLogic()\r\n\t\t\t\t\t\t\t.generateContextRecordIdMap(formContext, action);\r\n\r\n\t\t\t\t\tSet<AbstractFormContext> contextCollection = new HashSet<AbstractFormContext>();\r\n\t\t\t\t\tcontextCollection.add(formContext);\r\n\r\n\t\t\t\t\tMap<AbstractFormContext, Long> contextVsRecordIdMap = sppEventProcessor\r\n\t\t\t\t\t\t\t.insertUpdateDEDataForSPPEvents(httprequest, contextRecordIdMap,\r\n\t\t\t\t\t\t\t\t\tcontextCollection);\r\n\r\n\t\t\t\t\tif (action.getApplicationDefaultValue() == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tDEIntegration deIntegration = new DEIntegration();\r\n\t\t\t\t\t\tdeIntegration.insertAndHookRecordEntry(formContext, action,\r\n\t\t\t\t\t\t\t\tcontextVsRecordIdMap);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tisEditOperation = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tString[] displayNameParams = {Constants.DEFAULT_VALUES, Constants.SPP_EVENTS_MSG};\r\n\t\t\t\tsetSuccessMsg(request, displayNameParams, isEditOperation);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tsaveActionErrors(request, listOfError);\r\n\t\t\t\tactionForward = mapping.findForward(\"pageOfDisplaySPPDefaultValue\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn actionForward;\r\n\t}",
"protected IManagedForm getForm(){\r\n\t\treturn _mForm;\r\n\t}"
] | [
"0.5290527",
"0.5242913",
"0.5170634",
"0.5165535",
"0.5119865",
"0.5051311",
"0.50394064",
"0.5035321",
"0.5002642",
"0.5002406",
"0.49894032",
"0.49887493",
"0.49750638",
"0.49667946",
"0.49600244",
"0.49389374",
"0.4938133",
"0.49346793",
"0.4928017",
"0.49091488",
"0.48995206",
"0.48968223",
"0.48904526",
"0.4884127",
"0.48451662",
"0.48056078",
"0.4802696",
"0.4802463",
"0.4792233",
"0.47920963",
"0.4790968",
"0.47754773",
"0.4774743",
"0.47747207",
"0.47281912",
"0.4724506",
"0.47217682",
"0.47199082",
"0.47007522",
"0.46852568",
"0.46781412",
"0.4676917",
"0.46712855",
"0.46546346",
"0.46380633",
"0.46223652",
"0.4620689",
"0.4611007",
"0.46077526",
"0.45840055",
"0.45599616",
"0.45589873",
"0.45566458",
"0.45501038",
"0.45434773",
"0.45413443",
"0.45408446",
"0.45403925",
"0.45373893",
"0.45309776",
"0.45306975",
"0.45287886",
"0.4527175",
"0.45263723",
"0.45260057",
"0.45196313",
"0.45187446",
"0.45175314",
"0.45173258",
"0.45125487",
"0.4510696",
"0.45105544",
"0.45091024",
"0.45078036",
"0.44968742",
"0.44909808",
"0.44896156",
"0.44830978",
"0.4475142",
"0.4470828",
"0.4467872",
"0.446609",
"0.44633743",
"0.44549608",
"0.44488412",
"0.44484165",
"0.44466954",
"0.4446524",
"0.44455633",
"0.44413373",
"0.4438798",
"0.44387576",
"0.44359028",
"0.44225943",
"0.44141057",
"0.44072226",
"0.44063804",
"0.44061247",
"0.44042364",
"0.44001868"
] | 0.5390947 | 0 |
Attempt to add log to batch, and suppress exceptions thrown in case of failure | void tryAddLogToBatch(TelemetryData log); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addLogToBatch(TelemetryData log) throws IOException;",
"@Override\r\n\tpublic void addLog(Log log) throws RuntimeException {\n\t\tlogMapper.addLog(log);\r\n\t}",
"void addLogEntry(LogEntry entry) throws LogEntryOperationFailedException;",
"private void addLog(String log) {\n LogHelper.addIdentificationLog(log);\n }",
"abstract protected void _log(TrackingEvent event) throws Exception;",
"@Override\n public void addFailedworklog(Integer worklogId, DestinationWorklogDTO worklog) {\n try (Connection connection = database.connect();\n PreparedStatement stmt = connection.prepareStatement(ADD_FAILED_WORKLOG_SQL)) {\n stmt.setInt(1, worklogId);\n stmt.setString(2, worklog.getWorker());\n stmt.setString(3, worklog.getStarted());\n stmt.setInt(4, worklog.getTimeSpentSeconds());\n stmt.setString(5, worklog.getOriginTaskId());\n\n stmt.executeUpdate();\n } catch (SQLException e) {\n logger.logToDatabase(getClass().getName(), \"addFailedworklog\", e);\n throw new InternalServerErrorException(e.getMessage());\n }\n }",
"abstract protected void _log(TrackingActivity activity) throws Exception;",
"abstract void initiateErrorLog();",
"@Test\n @Deployment(resources = \"org/camunda/bpm/engine/test/jobexecutor/delegateThrowsException.bpmn20.xml\")\n public void shouldLogFailingJobOnlyOnceReducedLogging() {\n processEngineConfiguration.setEnableCmdExceptionLogging(false);\n runtimeService.startProcessInstanceByKey(\"testProcess\");\n\n // when executing the job and wait\n JobExecutor jobExecutor = processEngineConfiguration.getJobExecutor();\n jobExecutor.start();\n testRule.waitForJobExecutorToProcessAllJobs();\n jobExecutor.shutdown();\n\n List<ILoggingEvent> jobLog = loggingRule.getFilteredLog(JOBEXECUTOR_LOGGER, \"Exception while executing job\");\n List<ILoggingEvent> ctxLog = loggingRule.getFilteredLog(CONTEXT_LOGGER, \"Exception while closing command context\");\n\n // then\n assertThat(jobLog.size()).isEqualTo(1);\n assertThat(ctxLog.size()).isEqualTo(0);\n }",
"public abstract boolean insert(Log log) throws DataException;",
"public synchronized long addLog(final Log log) {\n if (log == null\n || TextUtils.isEmpty(log.getUrl())\n || TextUtils.isEmpty(log.getToken())\n || log.getJSON() == null) {\n Logger.e(\"Cannot add log without args.\");\n return getCount();\n }\n\n queryExecutor(new QueryExecCallback<Void>() {\n @Override\n public Void execute(SQLiteDatabase db) {\n ContentValues values = new ContentValues();\n values.put(Columns.URL, log.getUrl());\n values.put(Columns.TOKEN, log.getToken());\n values.put(Columns.LOG, log.getJSON().toString());\n values.put(Columns.CREATED_AT, System.currentTimeMillis());\n\n db.insert(TABLE_NAME, null, values);\n return null;\n }\n });\n\n return getCount();\n }",
"@Override\r\n\tpublic void updateLog(Log log) throws RuntimeException {\n\t\tlogMapper.updateLog(log);\r\n\t}",
"@Test\n @Deployment(resources = \"org/camunda/bpm/engine/test/jobexecutor/delegateThrowsException.bpmn20.xml\")\n public void shouldLogFailingJobTwiceDefaultLogging() {\n processEngineConfiguration.setEnableCmdExceptionLogging(true);\n runtimeService.startProcessInstanceByKey(\"testProcess\");\n \n // when executing the job and wait\n JobExecutor jobExecutor = processEngineConfiguration.getJobExecutor();\n jobExecutor.start();\n testRule.waitForJobExecutorToProcessAllJobs();\n jobExecutor.shutdown();\n\n List<ILoggingEvent> jobLog = loggingRule.getFilteredLog(JOBEXECUTOR_LOGGER, \"Exception while executing job\");\n List<ILoggingEvent> ctxLog = loggingRule.getFilteredLog(CONTEXT_LOGGER, \"Exception while closing command context\");\n \n // then\n assertThat(jobLog.size()).isEqualTo(1);\n assertThat(ctxLog.size()).isEqualTo(1);\n }",
"protected abstract void logError(Exception e);",
"private void divertLog() {\n wr = new StringWriter(1000);\n LogTarget[] lt = { new WriterTarget(wr, fmt) };\n SampleResult.log.setLogTargets(lt);\n }",
"@Transactional\n public void save(TicketBatchSendLog ticketBatchSendLog){\n String json= JsonUtil.toJson(ticketBatchSendLog);\n warnlog.error(\"批次送票日志:{}\",json);\n }",
"void updateCardLogsFailed(Throwable throwable);",
"LogRecord saveLog(LogRecord logRecord);",
"public abstract WriteResult writeSystemLog(Log log);",
"private void log(IndexObjectException e) {\n\t\t\r\n\t}",
"public void log(boolean log) {\n this.log = log;\n }",
"public static void appendLog(String log) {\n\t\tif (mTracker != null && mDebugLogFile) {\n\t\t\tmTracker.appendLog(log);\n\t\t}\n\t}",
"@SuppressWarnings(\"resource\")\n @Explain(\"We close the statement later, this is just an intermediate\")\n protected void addBatch() throws SQLException {\n prepareStmt().addBatch();\n batchBacklog++;\n if (batchBacklog > batchBacklogLimit) {\n commit();\n }\n }",
"abstract protected void _log(Snapshot snapshot) throws Exception;",
"@Override\n public void log()\n {\n }",
"void completeLogs() throws IOException;",
"void log(Log log);",
"private void log() {\n logger.error(\"insert queue (last {}, current {}, change {}/minute)\",\n insertQueueLast, insertQueueCurrent,\n insertQueueDelta);\n logger.error(\"commits (last {}, current {}, change {}/minute)\",\n commitLast, commitCurrent, commitDelta);\n logger.error(\"dropped (last {}, current {}, change {}/minute)\",\n droppedLast, droppedCurrent, droppedDelta);\n logger.error(\"total memory {}; free memory {}\",\n Runtime.getRuntime().totalMemory(),\n Runtime.getRuntime().freeMemory());\n }",
"private static void writeLog(String log) {\n\t\twriteLog(log, true);\n\t}",
"private void doTestDontLog(File log) throws IOException {\n FileHandler fileHandler = new FileHandler(log.getPath());\n fileHandler.setFormatter(new SimpleFormatter());\n Logger logger = Logger.getLogger(JdkLogChute.DEFAULT_LOG_NAME);\n logger.addHandler(fileHandler);\n logger.setLevel(Level.ALL);\n LogManager logManager = LogManager.getLogManager();\n logManager.addLogger(logger);\n\n // Now do a random compilation that implies using RetroWeiboProcessor.\n JavaFileObject javaFileObject = JavaFileObjects.forSourceLines(\n \"foo.bar.Baz\",\n \"package foo.bar;\",\n \"\",\n \"import retroweibo.RetroWeibo;\",\n \"\",\n \"@RetroWeibo\",\n \"public abstract class Baz {\",\n \" public abstract int buh();\",\n \"\",\n \" public static Baz create(int buh) {\",\n \" return new RetroWeibo_Baz(buh);\",\n \" }\",\n \"}\");\n assert_().about(javaSource())\n .that(javaFileObject)\n .processedWith(new RetroWeiboProcessor())\n .compilesWithoutError();\n\n // The log file should be empty.\n fileHandler.close();\n assertEquals(\"\", Files.toString(log, StandardCharsets.UTF_8));\n }",
"public void addLog(Log p) {\n logs.add(p);\n }",
"private void _addMessage(LogMessage logMessage) {\n\t\tString realmName = logMessage.getRealm();\n\t\tLinkedHashSet<LogMessage> logMessages = this.logMessagesByRealmAndId.computeIfAbsent(realmName,\n\t\t\t\tOperationsLog::newHashSet);\n\t\tlogMessages.add(logMessage);\n\n\t\t// store under locator\n\t\tLinkedHashMap<Locator, LinkedHashSet<LogMessage>> logMessagesLocator = this.logMessagesByLocator.computeIfAbsent(\n\t\t\t\trealmName, this::newBoundedLocatorMap);\n\t\tLinkedHashSet<LogMessage> messages = logMessagesLocator.computeIfAbsent(logMessage.getLocator(),\n\t\t\t\tOperationsLog::newHashSet);\n\t\tmessages.add(logMessage);\n\n\t\t// prune if necessary\n\t\tList<LogMessage> messagesToRemove = _pruneMessages(realmName, logMessages);\n\n\t\t// persist changes for non-transient realms\n\t\tStrolchRealm realm = getContainer().getRealm(realmName);\n\t\tif (!realm.getMode().isTransient())\n\t\t\tpersist(realm, logMessage, messagesToRemove);\n\t}",
"void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}",
"static public void storeLogs(final boolean shouldStoreLogs) {\n ThreadPoolWorkQueue.execute(new Runnable() {\n @Override public void run() {\n setCaptureSync(shouldStoreLogs);\n // we do this mostly to enable unit tests to logger.wait(100) instead of\n // Thread.sleep(100) -- it's faster, more stable, and more deterministic that way\n synchronized (WAIT_LOCK) {\n WAIT_LOCK.notifyAll ();\n }\n }\n });\n }",
"private static void writeLog(Exception e) {\n if (logFile == null) createLogFile();\n LogTools.trace(e);\n LogTools.flush();\n }",
"void write(Batch batch) throws InfluxDbApiNotFoundException, InfluxDbApiBadrequestException, InfluxDbTransportException;",
"public void uploadLogCollection();",
"private void addEntranceLog(String logType) {\n if(ticketTrans == null || checkedItems.size() == 0) return;\n\n Entrance entrance = new Entrance(EntranceStep2Activity.this);\n\n Log.d(EntranceStep2Activity.class.toString(), logType);\n\n try {\n entrance.add(encryptRefNo, checkedItems, logType);\n } catch (Exception e) {\n String reason = e.getMessage();\n Toast.makeText(getApplicationContext(), reason, Toast.LENGTH_SHORT).show();\n } finally {\n loading.dismiss();\n }\n }",
"abstract void initiateLog();",
"abstract public void log(int level, String msg, Throwable thrown);",
"@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = \"RV_RETURN_VALUE_IGNORED_BAD_PRACTICE\",\n justification = \"Return value for file delete is not important here.\")\n private void initLogWriter() throws org.apache.geode.admin.AdminException {\n loggingSession.createSession(this);\n\n final LogConfig logConfig = agentConfig.createLogConfig();\n\n // LOG: create logWriterAppender here\n loggingSession.startSession();\n\n // LOG: look in AgentConfigImpl for existing LogWriter to use\n InternalLogWriter existingLogWriter = agentConfig.getInternalLogWriter();\n if (existingLogWriter != null) {\n logWriter = existingLogWriter;\n } else {\n // LOG: create LogWriterLogger\n logWriter = LogWriterFactory.createLogWriterLogger(logConfig, false);\n // Set this log writer in AgentConfigImpl\n agentConfig.setInternalLogWriter(logWriter);\n }\n\n // LOG: create logWriter here\n logWriter = LogWriterFactory.createLogWriterLogger(logConfig, false);\n\n // Set this log writer in AgentConfig\n agentConfig.setInternalLogWriter(logWriter);\n\n // LOG:CONFIG: changed next three statements from config to info\n logger.info(LogMarker.CONFIG_MARKER,\n String.format(\"Agent config property file name: %s\",\n AgentConfigImpl.retrievePropertyFile()));\n logger.info(LogMarker.CONFIG_MARKER, agentConfig.getPropertyFileDescription());\n logger.info(LogMarker.CONFIG_MARKER, agentConfig.toPropertiesAsString());\n }",
"int insertProductTaskLog(ProductTaskLog productTaskLog);",
"public void saveLogger(Logger log) {\n this.getHibernateTemplate().save(log);\n \n\t}",
"protected void addRecordWithoutChecks(final AbstractRecord record) {\n\t\trecords.add(record);\n\t}",
"@LogLevel(\"=WARN\") \n public void testDeprecatedBaseClassMethods() throws Exception {\n final ListAppender rootSanityCheck = new ListAppender(\"sanity-checker\");\n try {\n LoggerContext.getContext(false).getConfiguration().getRootLogger().addAppender(rootSanityCheck, Level.WARN, null);\n LoggerContext.getContext(false).updateLoggers();\n \n log.error(\"this matches the default ignore_exception pattern\");\n log.error(\"something matching foo that should make it\"); // 1\n assertEquals(1, rootSanityCheck.getEvents().size());\n ignoreException(\"foo\");\n log.error(\"something matching foo that should NOT make it\");\n ignoreException(\"foo\");\n ignoreException(\"ba+r\");\n log.error(\"something matching foo that should still NOT make it\");\n log.error(\"something matching baaaar that should NOT make it\");\n log.warn(\"A warning should be fine even if it matches ignore_exception and foo and bar\"); // 2\n assertEquals(2, rootSanityCheck.getEvents().size());\n unIgnoreException(\"foo\");\n log.error(\"another thing matching foo that should make it\"); // 3\n assertEquals(3, rootSanityCheck.getEvents().size());\n log.error(\"something matching baaaar that should still NOT make it\");\n resetExceptionIgnores();\n log.error(\"this still matches the default ignore_exception pattern\");\n log.error(\"but something matching baaaar should make it now\"); // 4\n assertEquals(4, rootSanityCheck.getEvents().size());\n\n } finally {\n LoggerContext.getContext(false).getConfiguration().getRootLogger().removeAppender(rootSanityCheck.getName());\n LoggerContext.getContext(false).updateLoggers();\n }\n assertEquals(4, rootSanityCheck.getEvents().size());\n }",
"protected void logEntry(String logString) {\n\t\tReporter.log(logString, true);\n\t}",
"@Test\npublic void testAppend() throws Exception { \n Syslog.Append(\"SylogTest\",\"testAppend\",\"Test ok\");\n}",
"@Override\n protected void append(LoggingEvent event) {\n if (event.getMessage() instanceof WrsAccessLogEvent) {\n WrsAccessLogEvent wrsLogEvent = (WrsAccessLogEvent) event.getMessage();\n\n try {\n HttpServletRequest request = wrsLogEvent.getRequest();\n if (request != null) {\n String pageHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_PAGEHASH));\n String requestHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_REQUESTHASH));\n String sessionId = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_SESSION_ID));\n String requestUrl = request.getRequestURL().toString();\n String reqQuery = request.getQueryString();\n requestUrl += (reqQuery != null ? \"?\" + reqQuery : \"\");\n if (requestUrl.length()> 2000)\n requestUrl = requestUrl.substring(0, 2000);\n String bindingSetName = wrsLogEvent.getBindingSetName();\n if (bindingSetName != null && bindingSetName.length()> 255)\n bindingSetName = bindingSetName.substring(0, 255);\n String requestXML = wrsLogEvent.getRequestDoc()!=null ? Utils.serializeElement(wrsLogEvent.getRequestDoc()) : null;\n\n // log access\n if(AccessSqlLogger.getInstance().isEnabled()) {\n final AccessSqlLogger.LogRecord recordAccess = new AccessSqlLogger.LogRecord(\n sessionId\n , requestUrl\n , pageHash\n , requestHash\n , bindingSetName\n , requestXML\n , wrsLogEvent.getRowCount()\n , wrsLogEvent.getValueCount()\n , wrsLogEvent.getRsStartTime()\n , wrsLogEvent.getRsEndTime()\n , wrsLogEvent.getWriteDuration()\n , wrsLogEvent.getExecuteDuration()\n );\n AccessSqlLogger.getInstance().process(recordAccess);\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"public void setLog(boolean log)\n {\n this.log = log;\n }",
"public static void logGenericUserError() {\n\n }",
"@Override\n public void setLogTracer(LogTracer log) {\n\n }",
"public boolean add( TPMTransportLogEntry logEntry )\r\n {\n return log.add( logEntry );\r\n }",
"public abstract WriteResult writeUserLog(User user, Log log);",
"long addEntry(long ledger, ByteBuf entry, boolean rollLog) throws IOException;",
"void addBatch() throws SQLException;",
"public void enableLogging();",
"void setupFileLogging();",
"void markFailed(Execution execution, Throwable cause);",
"int insert(Miss_control_log record);",
"public void setLogUtilities(LogUtilities log) { this.log = log; }",
"@Test\r\n public void test_logException1_NoLogging() throws Exception {\r\n log = null;\r\n Exception res = LoggingWrapperUtility.logException(log, signature, exception);\r\n\r\n assertSame(\"'logException' should be correct.\", exception, res);\r\n\r\n assertEquals(\"'logException' should be correct.\", 0, TestsHelper.readFile(TestsHelper.LOG_FILE).length());\r\n }",
"void initializeLogging();",
"@Override\n public final void accept(PutRecordResponse response, Throwable exception) {\n if (exception != null) {\n failedRequestCount++;\n appender.addError(\"Failed to publish a log entry to kinesis using appender: \" + appenderName, exception);\n } else {\n successfulRequestCount++;\n }\n }",
"@Override\n public void append( LogEvent event ) {\n long eventTimestamp;\n if (event instanceof AbstractLoggingEvent) {\n eventTimestamp = ((AbstractLoggingEvent) event).getTimestamp();\n } else {\n eventTimestamp = System.currentTimeMillis();\n }\n LogEventRequest packedEvent = new LogEventRequest(Thread.currentThread().getName(), // Remember which thread this event belongs to\n event, eventTimestamp); // Remember the event time\n\n if (event instanceof AbstractLoggingEvent) {\n AbstractLoggingEvent dbLoggingEvent = (AbstractLoggingEvent) event;\n switch (dbLoggingEvent.getEventType()) {\n\n case START_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the test case id, which we will later pass to ATS agent\n testCaseState.setTestcaseId(eventProcessor.getTestCaseId());\n\n // clear last testcase id\n testCaseState.clearLastExecutedTestcaseId();\n\n //this event has already been through the queue\n return;\n }\n case END_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the last executed test case id\n testCaseState.setLastExecutedTestcaseId(testCaseState.getTestcaseId());\n\n // clear test case id\n testCaseState.clearTestcaseId();\n // this event has already been through the queue\n return;\n }\n case GET_CURRENT_TEST_CASE_STATE: {\n // get current test case id which will be passed to ATS agent\n ((GetCurrentTestCaseEvent) event).setTestCaseState(testCaseState);\n\n //this event should not go through the queue\n return;\n }\n case START_RUN:\n\n /* We synchronize the run start:\n * Here we make sure we are able to connect to the log DB.\n * We also check the integrity of the DB schema.\n * If we fail here, it does not make sense to run tests at all\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n Level level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n // create the queue logging thread and the DbEventRequestProcessor\n if (queueLogger == null) {\n initializeDbLogging(null);\n }\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, false);\n //this event has already been through the queue\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n return;\n case END_RUN: {\n /* We synchronize the run end.\n * This way if there are remaining log events in the Test Executor's queue,\n * the JVM will not be shutdown prior to committing all events in the DB, as\n * the END_RUN event is the last one in the queue\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n //this event has already been through the queue\n return;\n }\n case DELETE_TEST_CASE: {\n // tell the thread on the other side of the queue, that this test case is to be deleted\n // on first chance\n eventProcessor.requestTestcaseDeletion( ((DeleteTestCaseEvent) dbLoggingEvent).getTestCaseId());\n // this event is not going through the queue\n return;\n }\n default:\n // do nothing about this event\n break;\n }\n }\n\n passEventToLoggerQueue(packedEvent);\n }",
"public void recordLog(){\r\n\t\tthis.finishLog(resourceFiles.getString(\"PathHepparIITestDirectory\") + \"/\" + TEST_FILE_NAME); \r\n\t}",
"private void logException(java.lang.Exception e) {\n }",
"protected void append(LoggingEvent event) {\n if(sh != null) {\n sh.send(layout.format(event));\n if(layout.ignoresThrowable()) {\n String[] s = event.getThrowableStrRep();\n if (s != null) {\n StringBuilder buf = new StringBuilder();\n for(int i = 0; i < s.length; i++) {\n buf.append(s[i]);\n buf.append(EOL);\n }\n sh.send(buf.toString());\n }\n }\n }\n }",
"public void setLog(boolean log) {\n this.log = log;\n }",
"@Test\r\n public void test_logException2_NoLogging() throws Exception {\r\n log = null;\r\n Exception res = LoggingWrapperUtility.logException(log, signature, exception, true, Level.WARN);\r\n\r\n assertSame(\"'logException' should be correct.\", exception, res);\r\n\r\n assertEquals(\"'logException' should be correct.\", 0, TestsHelper.readFile(TestsHelper.LOG_FILE).length());\r\n }",
"@Override\n\tpublic boolean InsertEmployessLog(EmployeesLog employeesLog) {\n\t\treturn false;\n\t}",
"private void doLogAction(List<HipaaLogMessage> logMsgList) {\n logMsgList.forEach(logMsg -> {\n try {\n logger.log(logMsg);\n } catch (HipaaException e) {\n log.warn(\"Exception: [{}]\", e.getMessage());\n }\n });\n }",
"public boolean addLog(LogBean log) {\n\t\treturn ld.addLog(log);\n\t}",
"@Test\n\tpublic final void testWriteException() {\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our test assertion exception\"), \"Unit Tests\",\n\t\t\t\t\"Test of logging exception attachment.\", null);\n\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our top exception\",\n\t\t\t\t\t\tnew RuntimeException(\"This is our middle exception\",\n\t\t\t\t\t\t\t\tnew RuntimeException(\"This is our bottom exception\"))),\n\t\t\t\t\"Unit Tests\", \"Test of logging exception attachment with nested exceptions.\", null);\n\t}",
"public void saveImportLog(JSONObject requestJobj, String msg, int total, int failed, int moduleID) {\n\n try {\n HashMap<String, Object> logDataMap = new HashMap<>();\n logDataMap.put(\"FileName\", ImportLog.getActualFileName(requestJobj.getString(\"filename\")));\n logDataMap.put(\"StorageName\", requestJobj.getString(\"filename\"));\n logDataMap.put(\"Log\", msg);\n logDataMap.put(\"Type\", \"csv\");\n logDataMap.put(\"FailureFileType\", failed > 0 ? \"csv\" : \"\");\n logDataMap.put(\"TotalRecs\", total);\n logDataMap.put(\"Rejected\", failed);\n logDataMap.put(\"Module\", moduleID);\n logDataMap.put(\"ImportDate\", new Date());\n logDataMap.put(\"User\", requestJobj.getString(Constants.useridKey));\n logDataMap.put(\"Company\", requestJobj.getString(Constants.companyKey));\n importDao.saveImportLog(logDataMap);\n } catch (Exception ex) {\n Logger.getLogger(accSalesOrderServiceImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Test\r\n public void test_logEntrance1_NoLogging() throws Exception {\r\n log = null;\r\n LoggingWrapperUtility.logEntrance(log, signature, paramNames, paramValues);\r\n\r\n assertEquals(\"'logEntrance' should be correct.\", 0, TestsHelper.readFile(TestsHelper.LOG_FILE).length());\r\n }",
"public void addLog(int type)\n {\n m_Log.addFirst(new SecurityLog(type));\n //truncate log list to 6 entries\n if(m_Log.size() > 6)\n m_Log.removeLast();\n }",
"@Test\n public void testBrokenLogger() throws IOException {\n Configuration conf = new HdfsConfiguration();\n conf.set(DFSConfigKeys.DFS_NAMENODE_AUDIT_LOGGERS_KEY, TestAuditLogger.BrokenAuditLogger.class.getName());\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).build();\n try {\n cluster.waitClusterUp();\n FileSystem fs = cluster.getFileSystem();\n long time = System.currentTimeMillis();\n fs.setTimes(new Path(\"/\"), time, time);\n Assert.fail(\"Expected exception due to broken audit logger.\");\n } catch (RemoteException re) {\n // Expected.\n } finally {\n cluster.shutdown();\n }\n }",
"@Test\n\tpublic final void testWriteTrace() {\n\t\tLog.trace(\"This is a call to Log.Trace with no arguments\");\n\t\tLog.trace(\"This is a call to Log.Trace with two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tLog.write(LogMessageSeverity.INFORMATION, \"Unit Tests\", null, \"This is a call to Log.Write with no arguments\");\n\t\tLog.write(LogMessageSeverity.INFORMATION, \"Unit Tests\", null,\n\t\t\t\t\"This is a call to Log.Write with two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tRuntimeException exception = new GibraltarException(\"This is a dummy exception to test API calls.\");\n\n\t\tLog.trace(exception, \"This is a call to Log.Trace with an exception and no arguments\");\n\t\tLog.trace(exception, \"This is a call to Log.Trace with an exception and two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED, exception, \"Unit Tests\", null,\n\t\t\t\t\"This is a call to Log.Write with an exception and no arguments\");\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED, exception, \"Unit Tests\", null,\n\t\t\t\t\"This is a call to Log.Write with an exception and two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tLog.write(LogMessageSeverity.VERBOSE, \"Unit Tests\",\n\t\t\t\t\"This is a call to Log.Write with a caption and null description\", null);\n\t\tLog.write(LogMessageSeverity.VERBOSE, \"Unit Tests\",\n\t\t\t\t\"This is a call to Log.Write with a caption and description\", \"with no formatting arguments\");\n\t\tLog.write(LogMessageSeverity.VERBOSE, \"Unit Tests\",\n\t\t\t\t\"This is a call to Log.Write with a caption and description\",\n\t\t\t\t\"formatted with two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tLog.write(LogMessageSeverity.INFORMATION, LogWriteMode.WAIT_FOR_COMMIT, null, \"Unit Tests\",\n\t\t\t\t\"This is a call to Log.Write with WaitForCommit and null exception and with a caption and null description\",\n\t\t\t\tnull);\n\t}",
"void addLogger(BotLogger logger);",
"public void writeLog(String log){\n //Create, if no files.\n if(!this.loggingFile.exists()){\n try {\n this.loggingFile.createNewFile();\n FileWriter fileWriter = new FileWriter(this.loggingFile, true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.write(log);\n bufferedWriter.newLine();\n bufferedWriter.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //Open the file.\n else{\n try {\n synchronized (this.loggingFile) {\n FileWriter fileWriter = new FileWriter(this.loggingFile, true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.write(log);\n bufferedWriter.newLine();\n bufferedWriter.close();\n }\n }catch (IOException e){\n e.printStackTrace();\n }\n }\n\n }",
"private static final void log(Throwable e) {\n\t\tlog.println(e);\n\t}",
"@Override\n public void log(Request request, Response response)\n {\n int committedStatus = response.getCommittedMetaData().getStatus();\n\n // only interested in error cases - bad request & server errors\n if ((committedStatus >= 500) || (committedStatus == 400))\n {\n super.log(request, response);\n }\n else\n {\n System.err.println(\"### Ignored request (response.committed.status=\" + committedStatus + \"): \" + request);\n }\n }",
"int insertSelective(GatewayLog record);",
"private void repetitiveWork(){\n\t PropertyConfigurator.configure(\"log4j.properties\");\n\t log = Logger.getLogger(BackupRestore.class.getName());\n }",
"@Override\r\n\t\t\tpublic void onFailure(Call<LogDataModel> call, Throwable t) {\n\t\t\t\t\r\n\t\t\t}",
"abstract protected void logInternal(int level, String message);",
"void log(Level level, String message, Throwable throwable);",
"public void setLog(Log log) {\r\n this.delegate.setLog(log);\r\n }",
"void markFailed(Throwable t) {\n\t}",
"public void requestAppendLog(AppendLogCommand appendLogCmd) throws PandaException {\r\n\r\n //logger.info(\"request Append in ,UUID : {}\", cmd.getUuid());\r\n // uuid is handled ?\r\n \r\n if(this.counter.size() > 300) return ;\r\n\r\n if (uuidHadRequest(appendLogCmd)) {\r\n\r\n\r\n return;\r\n }\r\n \r\n \r\n\r\n\r\n counter.initCmdCounter(appendLogCmd, corePeer.getMemberPeers().size());\r\n\r\n\r\n corePeer.getStore().appendCommand(appendLogCmd);// leader store\r\n\r\n \r\n leaderHandler.sendToAllFollowers(appendLogCmd);\r\n\r\n\r\n\r\n }",
"@InsertProvider(type=BUMBCheckingLogSqlProvider.class, method=\"insertSelective\")\n int insertSelective(BUMBCheckingLog record);",
"@Override\n\tpublic int addLog(Log l) {\n\t\tString sql = \"INSERT INTO t_log(fTime,fTel,fType,fDocld,fResult)values(?,?,?,?,?)\";\n\t\tint result = 0;\n\t\tObject[] params = {l.getfTime(),l.getfTel(),l.getfType(),l.getfDocld(),l.getfResult()};\n\t\ttry {\n\t\t\tresult = qr.update(sql,params);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"@Test\n public void testWithDataLogNotPrimaryException() throws Exception {\n int streamSegmentCount = 1;\n int appendsPerStreamSegment = 1;\n\n @Cleanup\n TestContext context = new TestContext();\n\n // Generate some test data (no need to complicate ourselves with Transactions here; that is tested in the no-failure test).\n HashSet<Long> streamSegmentIds = createStreamSegmentsInMetadata(streamSegmentCount, context.metadata);\n List<Operation> operations = generateOperations(streamSegmentIds, new HashMap<>(), appendsPerStreamSegment,\n METADATA_CHECKPOINT_EVERY, false, false);\n\n // Setup an OperationProcessor and start it.\n @Cleanup\n TestDurableDataLog dataLog = TestDurableDataLog.create(CONTAINER_ID, MAX_DATA_LOG_APPEND_SIZE, executorService());\n dataLog.initialize(TIMEOUT);\n @Cleanup\n OperationProcessor operationProcessor = new OperationProcessor(context.metadata, context.stateUpdater,\n dataLog, getNoOpCheckpointPolicy(), executorService());\n operationProcessor.startAsync().awaitRunning();\n\n ErrorInjector<Exception> aSyncErrorInjector = new ErrorInjector<>(\n count -> true,\n () -> new CompletionException(new DataLogWriterNotPrimaryException(\"intentional\")));\n dataLog.setAppendErrorInjectors(null, aSyncErrorInjector);\n\n // Process all generated operations.\n List<OperationWithCompletion> completionFutures = processOperations(operations, operationProcessor);\n\n // Wait for all such operations to complete. We are expecting exceptions, so verify that we do.\n AssertExtensions.assertThrows(\n \"No operations failed.\",\n OperationWithCompletion.allOf(completionFutures)::join,\n ex -> ex instanceof IOException || ex instanceof DataLogWriterNotPrimaryException);\n\n // Verify that the OperationProcessor automatically shuts down and that it has the right failure cause.\n ServiceListeners.awaitShutdown(operationProcessor, TIMEOUT, false);\n Assert.assertEquals(\"OperationProcessor is not in a failed state after fence-out detected.\",\n Service.State.FAILED, operationProcessor.state());\n Assert.assertTrue(\"OperationProcessor did not fail with the correct exception.\",\n operationProcessor.failureCause() instanceof DataLogWriterNotPrimaryException);\n }",
"public final void log() throws ArithmeticException {\n\t\tif ((mksa&_LOG) != 0) throw new ArithmeticException\n\t\t(\"****Unit: log(\" + symbol + \")\") ;\n\t\tvalue = AstroMath.log(value);\n\t\tmksa |= _log;\n\t\tif (symbol != null) \n\t\t\tsymbol = \"[\" + symbol + \"]\";\t// Enough to indicate log\n\t}",
"private CTFFile uploadBuildLog(AbstractBuild <?, ?> build) {\n if (this.cna == null) {\n this.log(\"Cannot call updateSucceedingBuild, not logged in!\");\n return null;\n }\n try {\n return cna.upload(build.getLogFile());\n } catch (RemoteException re) {\n this.log(\"uploadBuildLog\", re);\n }\n return null;\n }",
"public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }",
"@Override\n\tpublic void log(Level level, Marker marker, Object message, Throwable t) {\n\n\t}",
"public void writeToExceptionLog(String report);",
"private void MinorException(Exception ex) {\n logger.logException(ex);\n }",
"private TypicalLogEntries() {}"
] | [
"0.7397246",
"0.6475702",
"0.60127354",
"0.57387733",
"0.57323337",
"0.5667867",
"0.5647763",
"0.55810136",
"0.5577284",
"0.5568325",
"0.55555254",
"0.551045",
"0.54716986",
"0.54678875",
"0.5446003",
"0.5406738",
"0.5338274",
"0.53247523",
"0.53093004",
"0.52667135",
"0.5266265",
"0.52448165",
"0.523774",
"0.521602",
"0.52126986",
"0.52111393",
"0.5206468",
"0.5204466",
"0.52021134",
"0.51995933",
"0.51891464",
"0.51872647",
"0.5171365",
"0.51683784",
"0.516471",
"0.51506835",
"0.5148877",
"0.51484346",
"0.5142619",
"0.5107162",
"0.5105878",
"0.5105249",
"0.51051587",
"0.509964",
"0.5086924",
"0.5077379",
"0.50687677",
"0.5063884",
"0.5061992",
"0.505799",
"0.50535",
"0.5050469",
"0.50275916",
"0.5026481",
"0.5025893",
"0.5019089",
"0.5007515",
"0.50054663",
"0.49961948",
"0.49877548",
"0.49781314",
"0.49705562",
"0.49677968",
"0.49675763",
"0.49667323",
"0.4966281",
"0.49615085",
"0.49507645",
"0.49478194",
"0.49476627",
"0.49354303",
"0.49330303",
"0.4932161",
"0.49277523",
"0.49120986",
"0.49057427",
"0.49023563",
"0.48992723",
"0.48807424",
"0.48714218",
"0.4869749",
"0.485921",
"0.48580524",
"0.48568973",
"0.48493814",
"0.48437005",
"0.48422685",
"0.4839015",
"0.4838166",
"0.48359308",
"0.48325247",
"0.4832496",
"0.483217",
"0.48318744",
"0.48272225",
"0.4825313",
"0.48206753",
"0.48201695",
"0.481954",
"0.4817793"
] | 0.82406634 | 0 |
Attempt to add log to batch, and suppress exceptions thrown in case of failure | void addLogToBatch(TelemetryData log) throws IOException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void tryAddLogToBatch(TelemetryData log);",
"@Override\r\n\tpublic void addLog(Log log) throws RuntimeException {\n\t\tlogMapper.addLog(log);\r\n\t}",
"void addLogEntry(LogEntry entry) throws LogEntryOperationFailedException;",
"private void addLog(String log) {\n LogHelper.addIdentificationLog(log);\n }",
"abstract protected void _log(TrackingEvent event) throws Exception;",
"@Override\n public void addFailedworklog(Integer worklogId, DestinationWorklogDTO worklog) {\n try (Connection connection = database.connect();\n PreparedStatement stmt = connection.prepareStatement(ADD_FAILED_WORKLOG_SQL)) {\n stmt.setInt(1, worklogId);\n stmt.setString(2, worklog.getWorker());\n stmt.setString(3, worklog.getStarted());\n stmt.setInt(4, worklog.getTimeSpentSeconds());\n stmt.setString(5, worklog.getOriginTaskId());\n\n stmt.executeUpdate();\n } catch (SQLException e) {\n logger.logToDatabase(getClass().getName(), \"addFailedworklog\", e);\n throw new InternalServerErrorException(e.getMessage());\n }\n }",
"abstract protected void _log(TrackingActivity activity) throws Exception;",
"abstract void initiateErrorLog();",
"@Test\n @Deployment(resources = \"org/camunda/bpm/engine/test/jobexecutor/delegateThrowsException.bpmn20.xml\")\n public void shouldLogFailingJobOnlyOnceReducedLogging() {\n processEngineConfiguration.setEnableCmdExceptionLogging(false);\n runtimeService.startProcessInstanceByKey(\"testProcess\");\n\n // when executing the job and wait\n JobExecutor jobExecutor = processEngineConfiguration.getJobExecutor();\n jobExecutor.start();\n testRule.waitForJobExecutorToProcessAllJobs();\n jobExecutor.shutdown();\n\n List<ILoggingEvent> jobLog = loggingRule.getFilteredLog(JOBEXECUTOR_LOGGER, \"Exception while executing job\");\n List<ILoggingEvent> ctxLog = loggingRule.getFilteredLog(CONTEXT_LOGGER, \"Exception while closing command context\");\n\n // then\n assertThat(jobLog.size()).isEqualTo(1);\n assertThat(ctxLog.size()).isEqualTo(0);\n }",
"public abstract boolean insert(Log log) throws DataException;",
"public synchronized long addLog(final Log log) {\n if (log == null\n || TextUtils.isEmpty(log.getUrl())\n || TextUtils.isEmpty(log.getToken())\n || log.getJSON() == null) {\n Logger.e(\"Cannot add log without args.\");\n return getCount();\n }\n\n queryExecutor(new QueryExecCallback<Void>() {\n @Override\n public Void execute(SQLiteDatabase db) {\n ContentValues values = new ContentValues();\n values.put(Columns.URL, log.getUrl());\n values.put(Columns.TOKEN, log.getToken());\n values.put(Columns.LOG, log.getJSON().toString());\n values.put(Columns.CREATED_AT, System.currentTimeMillis());\n\n db.insert(TABLE_NAME, null, values);\n return null;\n }\n });\n\n return getCount();\n }",
"@Override\r\n\tpublic void updateLog(Log log) throws RuntimeException {\n\t\tlogMapper.updateLog(log);\r\n\t}",
"@Test\n @Deployment(resources = \"org/camunda/bpm/engine/test/jobexecutor/delegateThrowsException.bpmn20.xml\")\n public void shouldLogFailingJobTwiceDefaultLogging() {\n processEngineConfiguration.setEnableCmdExceptionLogging(true);\n runtimeService.startProcessInstanceByKey(\"testProcess\");\n \n // when executing the job and wait\n JobExecutor jobExecutor = processEngineConfiguration.getJobExecutor();\n jobExecutor.start();\n testRule.waitForJobExecutorToProcessAllJobs();\n jobExecutor.shutdown();\n\n List<ILoggingEvent> jobLog = loggingRule.getFilteredLog(JOBEXECUTOR_LOGGER, \"Exception while executing job\");\n List<ILoggingEvent> ctxLog = loggingRule.getFilteredLog(CONTEXT_LOGGER, \"Exception while closing command context\");\n \n // then\n assertThat(jobLog.size()).isEqualTo(1);\n assertThat(ctxLog.size()).isEqualTo(1);\n }",
"protected abstract void logError(Exception e);",
"private void divertLog() {\n wr = new StringWriter(1000);\n LogTarget[] lt = { new WriterTarget(wr, fmt) };\n SampleResult.log.setLogTargets(lt);\n }",
"@Transactional\n public void save(TicketBatchSendLog ticketBatchSendLog){\n String json= JsonUtil.toJson(ticketBatchSendLog);\n warnlog.error(\"批次送票日志:{}\",json);\n }",
"void updateCardLogsFailed(Throwable throwable);",
"LogRecord saveLog(LogRecord logRecord);",
"public abstract WriteResult writeSystemLog(Log log);",
"public void log(boolean log) {\n this.log = log;\n }",
"private void log(IndexObjectException e) {\n\t\t\r\n\t}",
"public static void appendLog(String log) {\n\t\tif (mTracker != null && mDebugLogFile) {\n\t\t\tmTracker.appendLog(log);\n\t\t}\n\t}",
"@SuppressWarnings(\"resource\")\n @Explain(\"We close the statement later, this is just an intermediate\")\n protected void addBatch() throws SQLException {\n prepareStmt().addBatch();\n batchBacklog++;\n if (batchBacklog > batchBacklogLimit) {\n commit();\n }\n }",
"abstract protected void _log(Snapshot snapshot) throws Exception;",
"@Override\n public void log()\n {\n }",
"void completeLogs() throws IOException;",
"void log(Log log);",
"private static void writeLog(String log) {\n\t\twriteLog(log, true);\n\t}",
"private void log() {\n logger.error(\"insert queue (last {}, current {}, change {}/minute)\",\n insertQueueLast, insertQueueCurrent,\n insertQueueDelta);\n logger.error(\"commits (last {}, current {}, change {}/minute)\",\n commitLast, commitCurrent, commitDelta);\n logger.error(\"dropped (last {}, current {}, change {}/minute)\",\n droppedLast, droppedCurrent, droppedDelta);\n logger.error(\"total memory {}; free memory {}\",\n Runtime.getRuntime().totalMemory(),\n Runtime.getRuntime().freeMemory());\n }",
"private void doTestDontLog(File log) throws IOException {\n FileHandler fileHandler = new FileHandler(log.getPath());\n fileHandler.setFormatter(new SimpleFormatter());\n Logger logger = Logger.getLogger(JdkLogChute.DEFAULT_LOG_NAME);\n logger.addHandler(fileHandler);\n logger.setLevel(Level.ALL);\n LogManager logManager = LogManager.getLogManager();\n logManager.addLogger(logger);\n\n // Now do a random compilation that implies using RetroWeiboProcessor.\n JavaFileObject javaFileObject = JavaFileObjects.forSourceLines(\n \"foo.bar.Baz\",\n \"package foo.bar;\",\n \"\",\n \"import retroweibo.RetroWeibo;\",\n \"\",\n \"@RetroWeibo\",\n \"public abstract class Baz {\",\n \" public abstract int buh();\",\n \"\",\n \" public static Baz create(int buh) {\",\n \" return new RetroWeibo_Baz(buh);\",\n \" }\",\n \"}\");\n assert_().about(javaSource())\n .that(javaFileObject)\n .processedWith(new RetroWeiboProcessor())\n .compilesWithoutError();\n\n // The log file should be empty.\n fileHandler.close();\n assertEquals(\"\", Files.toString(log, StandardCharsets.UTF_8));\n }",
"public void addLog(Log p) {\n logs.add(p);\n }",
"private void _addMessage(LogMessage logMessage) {\n\t\tString realmName = logMessage.getRealm();\n\t\tLinkedHashSet<LogMessage> logMessages = this.logMessagesByRealmAndId.computeIfAbsent(realmName,\n\t\t\t\tOperationsLog::newHashSet);\n\t\tlogMessages.add(logMessage);\n\n\t\t// store under locator\n\t\tLinkedHashMap<Locator, LinkedHashSet<LogMessage>> logMessagesLocator = this.logMessagesByLocator.computeIfAbsent(\n\t\t\t\trealmName, this::newBoundedLocatorMap);\n\t\tLinkedHashSet<LogMessage> messages = logMessagesLocator.computeIfAbsent(logMessage.getLocator(),\n\t\t\t\tOperationsLog::newHashSet);\n\t\tmessages.add(logMessage);\n\n\t\t// prune if necessary\n\t\tList<LogMessage> messagesToRemove = _pruneMessages(realmName, logMessages);\n\n\t\t// persist changes for non-transient realms\n\t\tStrolchRealm realm = getContainer().getRealm(realmName);\n\t\tif (!realm.getMode().isTransient())\n\t\t\tpersist(realm, logMessage, messagesToRemove);\n\t}",
"void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}",
"static public void storeLogs(final boolean shouldStoreLogs) {\n ThreadPoolWorkQueue.execute(new Runnable() {\n @Override public void run() {\n setCaptureSync(shouldStoreLogs);\n // we do this mostly to enable unit tests to logger.wait(100) instead of\n // Thread.sleep(100) -- it's faster, more stable, and more deterministic that way\n synchronized (WAIT_LOCK) {\n WAIT_LOCK.notifyAll ();\n }\n }\n });\n }",
"private static void writeLog(Exception e) {\n if (logFile == null) createLogFile();\n LogTools.trace(e);\n LogTools.flush();\n }",
"void write(Batch batch) throws InfluxDbApiNotFoundException, InfluxDbApiBadrequestException, InfluxDbTransportException;",
"public void uploadLogCollection();",
"private void addEntranceLog(String logType) {\n if(ticketTrans == null || checkedItems.size() == 0) return;\n\n Entrance entrance = new Entrance(EntranceStep2Activity.this);\n\n Log.d(EntranceStep2Activity.class.toString(), logType);\n\n try {\n entrance.add(encryptRefNo, checkedItems, logType);\n } catch (Exception e) {\n String reason = e.getMessage();\n Toast.makeText(getApplicationContext(), reason, Toast.LENGTH_SHORT).show();\n } finally {\n loading.dismiss();\n }\n }",
"abstract void initiateLog();",
"@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = \"RV_RETURN_VALUE_IGNORED_BAD_PRACTICE\",\n justification = \"Return value for file delete is not important here.\")\n private void initLogWriter() throws org.apache.geode.admin.AdminException {\n loggingSession.createSession(this);\n\n final LogConfig logConfig = agentConfig.createLogConfig();\n\n // LOG: create logWriterAppender here\n loggingSession.startSession();\n\n // LOG: look in AgentConfigImpl for existing LogWriter to use\n InternalLogWriter existingLogWriter = agentConfig.getInternalLogWriter();\n if (existingLogWriter != null) {\n logWriter = existingLogWriter;\n } else {\n // LOG: create LogWriterLogger\n logWriter = LogWriterFactory.createLogWriterLogger(logConfig, false);\n // Set this log writer in AgentConfigImpl\n agentConfig.setInternalLogWriter(logWriter);\n }\n\n // LOG: create logWriter here\n logWriter = LogWriterFactory.createLogWriterLogger(logConfig, false);\n\n // Set this log writer in AgentConfig\n agentConfig.setInternalLogWriter(logWriter);\n\n // LOG:CONFIG: changed next three statements from config to info\n logger.info(LogMarker.CONFIG_MARKER,\n String.format(\"Agent config property file name: %s\",\n AgentConfigImpl.retrievePropertyFile()));\n logger.info(LogMarker.CONFIG_MARKER, agentConfig.getPropertyFileDescription());\n logger.info(LogMarker.CONFIG_MARKER, agentConfig.toPropertiesAsString());\n }",
"public void saveLogger(Logger log) {\n this.getHibernateTemplate().save(log);\n \n\t}",
"int insertProductTaskLog(ProductTaskLog productTaskLog);",
"abstract public void log(int level, String msg, Throwable thrown);",
"protected void addRecordWithoutChecks(final AbstractRecord record) {\n\t\trecords.add(record);\n\t}",
"@LogLevel(\"=WARN\") \n public void testDeprecatedBaseClassMethods() throws Exception {\n final ListAppender rootSanityCheck = new ListAppender(\"sanity-checker\");\n try {\n LoggerContext.getContext(false).getConfiguration().getRootLogger().addAppender(rootSanityCheck, Level.WARN, null);\n LoggerContext.getContext(false).updateLoggers();\n \n log.error(\"this matches the default ignore_exception pattern\");\n log.error(\"something matching foo that should make it\"); // 1\n assertEquals(1, rootSanityCheck.getEvents().size());\n ignoreException(\"foo\");\n log.error(\"something matching foo that should NOT make it\");\n ignoreException(\"foo\");\n ignoreException(\"ba+r\");\n log.error(\"something matching foo that should still NOT make it\");\n log.error(\"something matching baaaar that should NOT make it\");\n log.warn(\"A warning should be fine even if it matches ignore_exception and foo and bar\"); // 2\n assertEquals(2, rootSanityCheck.getEvents().size());\n unIgnoreException(\"foo\");\n log.error(\"another thing matching foo that should make it\"); // 3\n assertEquals(3, rootSanityCheck.getEvents().size());\n log.error(\"something matching baaaar that should still NOT make it\");\n resetExceptionIgnores();\n log.error(\"this still matches the default ignore_exception pattern\");\n log.error(\"but something matching baaaar should make it now\"); // 4\n assertEquals(4, rootSanityCheck.getEvents().size());\n\n } finally {\n LoggerContext.getContext(false).getConfiguration().getRootLogger().removeAppender(rootSanityCheck.getName());\n LoggerContext.getContext(false).updateLoggers();\n }\n assertEquals(4, rootSanityCheck.getEvents().size());\n }",
"protected void logEntry(String logString) {\n\t\tReporter.log(logString, true);\n\t}",
"@Test\npublic void testAppend() throws Exception { \n Syslog.Append(\"SylogTest\",\"testAppend\",\"Test ok\");\n}",
"@Override\n protected void append(LoggingEvent event) {\n if (event.getMessage() instanceof WrsAccessLogEvent) {\n WrsAccessLogEvent wrsLogEvent = (WrsAccessLogEvent) event.getMessage();\n\n try {\n HttpServletRequest request = wrsLogEvent.getRequest();\n if (request != null) {\n String pageHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_PAGEHASH));\n String requestHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_REQUESTHASH));\n String sessionId = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_SESSION_ID));\n String requestUrl = request.getRequestURL().toString();\n String reqQuery = request.getQueryString();\n requestUrl += (reqQuery != null ? \"?\" + reqQuery : \"\");\n if (requestUrl.length()> 2000)\n requestUrl = requestUrl.substring(0, 2000);\n String bindingSetName = wrsLogEvent.getBindingSetName();\n if (bindingSetName != null && bindingSetName.length()> 255)\n bindingSetName = bindingSetName.substring(0, 255);\n String requestXML = wrsLogEvent.getRequestDoc()!=null ? Utils.serializeElement(wrsLogEvent.getRequestDoc()) : null;\n\n // log access\n if(AccessSqlLogger.getInstance().isEnabled()) {\n final AccessSqlLogger.LogRecord recordAccess = new AccessSqlLogger.LogRecord(\n sessionId\n , requestUrl\n , pageHash\n , requestHash\n , bindingSetName\n , requestXML\n , wrsLogEvent.getRowCount()\n , wrsLogEvent.getValueCount()\n , wrsLogEvent.getRsStartTime()\n , wrsLogEvent.getRsEndTime()\n , wrsLogEvent.getWriteDuration()\n , wrsLogEvent.getExecuteDuration()\n );\n AccessSqlLogger.getInstance().process(recordAccess);\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"public void setLog(boolean log)\n {\n this.log = log;\n }",
"public static void logGenericUserError() {\n\n }",
"@Override\n public void setLogTracer(LogTracer log) {\n\n }",
"public boolean add( TPMTransportLogEntry logEntry )\r\n {\n return log.add( logEntry );\r\n }",
"public abstract WriteResult writeUserLog(User user, Log log);",
"long addEntry(long ledger, ByteBuf entry, boolean rollLog) throws IOException;",
"void addBatch() throws SQLException;",
"public void enableLogging();",
"void setupFileLogging();",
"void markFailed(Execution execution, Throwable cause);",
"int insert(Miss_control_log record);",
"public void setLogUtilities(LogUtilities log) { this.log = log; }",
"@Test\r\n public void test_logException1_NoLogging() throws Exception {\r\n log = null;\r\n Exception res = LoggingWrapperUtility.logException(log, signature, exception);\r\n\r\n assertSame(\"'logException' should be correct.\", exception, res);\r\n\r\n assertEquals(\"'logException' should be correct.\", 0, TestsHelper.readFile(TestsHelper.LOG_FILE).length());\r\n }",
"void initializeLogging();",
"@Override\n public void append( LogEvent event ) {\n long eventTimestamp;\n if (event instanceof AbstractLoggingEvent) {\n eventTimestamp = ((AbstractLoggingEvent) event).getTimestamp();\n } else {\n eventTimestamp = System.currentTimeMillis();\n }\n LogEventRequest packedEvent = new LogEventRequest(Thread.currentThread().getName(), // Remember which thread this event belongs to\n event, eventTimestamp); // Remember the event time\n\n if (event instanceof AbstractLoggingEvent) {\n AbstractLoggingEvent dbLoggingEvent = (AbstractLoggingEvent) event;\n switch (dbLoggingEvent.getEventType()) {\n\n case START_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the test case id, which we will later pass to ATS agent\n testCaseState.setTestcaseId(eventProcessor.getTestCaseId());\n\n // clear last testcase id\n testCaseState.clearLastExecutedTestcaseId();\n\n //this event has already been through the queue\n return;\n }\n case END_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the last executed test case id\n testCaseState.setLastExecutedTestcaseId(testCaseState.getTestcaseId());\n\n // clear test case id\n testCaseState.clearTestcaseId();\n // this event has already been through the queue\n return;\n }\n case GET_CURRENT_TEST_CASE_STATE: {\n // get current test case id which will be passed to ATS agent\n ((GetCurrentTestCaseEvent) event).setTestCaseState(testCaseState);\n\n //this event should not go through the queue\n return;\n }\n case START_RUN:\n\n /* We synchronize the run start:\n * Here we make sure we are able to connect to the log DB.\n * We also check the integrity of the DB schema.\n * If we fail here, it does not make sense to run tests at all\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n Level level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n // create the queue logging thread and the DbEventRequestProcessor\n if (queueLogger == null) {\n initializeDbLogging(null);\n }\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, false);\n //this event has already been through the queue\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n return;\n case END_RUN: {\n /* We synchronize the run end.\n * This way if there are remaining log events in the Test Executor's queue,\n * the JVM will not be shutdown prior to committing all events in the DB, as\n * the END_RUN event is the last one in the queue\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n //this event has already been through the queue\n return;\n }\n case DELETE_TEST_CASE: {\n // tell the thread on the other side of the queue, that this test case is to be deleted\n // on first chance\n eventProcessor.requestTestcaseDeletion( ((DeleteTestCaseEvent) dbLoggingEvent).getTestCaseId());\n // this event is not going through the queue\n return;\n }\n default:\n // do nothing about this event\n break;\n }\n }\n\n passEventToLoggerQueue(packedEvent);\n }",
"@Override\n public final void accept(PutRecordResponse response, Throwable exception) {\n if (exception != null) {\n failedRequestCount++;\n appender.addError(\"Failed to publish a log entry to kinesis using appender: \" + appenderName, exception);\n } else {\n successfulRequestCount++;\n }\n }",
"public void recordLog(){\r\n\t\tthis.finishLog(resourceFiles.getString(\"PathHepparIITestDirectory\") + \"/\" + TEST_FILE_NAME); \r\n\t}",
"private void logException(java.lang.Exception e) {\n }",
"protected void append(LoggingEvent event) {\n if(sh != null) {\n sh.send(layout.format(event));\n if(layout.ignoresThrowable()) {\n String[] s = event.getThrowableStrRep();\n if (s != null) {\n StringBuilder buf = new StringBuilder();\n for(int i = 0; i < s.length; i++) {\n buf.append(s[i]);\n buf.append(EOL);\n }\n sh.send(buf.toString());\n }\n }\n }\n }",
"public void setLog(boolean log) {\n this.log = log;\n }",
"@Override\n\tpublic boolean InsertEmployessLog(EmployeesLog employeesLog) {\n\t\treturn false;\n\t}",
"@Test\r\n public void test_logException2_NoLogging() throws Exception {\r\n log = null;\r\n Exception res = LoggingWrapperUtility.logException(log, signature, exception, true, Level.WARN);\r\n\r\n assertSame(\"'logException' should be correct.\", exception, res);\r\n\r\n assertEquals(\"'logException' should be correct.\", 0, TestsHelper.readFile(TestsHelper.LOG_FILE).length());\r\n }",
"private void doLogAction(List<HipaaLogMessage> logMsgList) {\n logMsgList.forEach(logMsg -> {\n try {\n logger.log(logMsg);\n } catch (HipaaException e) {\n log.warn(\"Exception: [{}]\", e.getMessage());\n }\n });\n }",
"public boolean addLog(LogBean log) {\n\t\treturn ld.addLog(log);\n\t}",
"@Test\n\tpublic final void testWriteException() {\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our test assertion exception\"), \"Unit Tests\",\n\t\t\t\t\"Test of logging exception attachment.\", null);\n\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our top exception\",\n\t\t\t\t\t\tnew RuntimeException(\"This is our middle exception\",\n\t\t\t\t\t\t\t\tnew RuntimeException(\"This is our bottom exception\"))),\n\t\t\t\t\"Unit Tests\", \"Test of logging exception attachment with nested exceptions.\", null);\n\t}",
"public void saveImportLog(JSONObject requestJobj, String msg, int total, int failed, int moduleID) {\n\n try {\n HashMap<String, Object> logDataMap = new HashMap<>();\n logDataMap.put(\"FileName\", ImportLog.getActualFileName(requestJobj.getString(\"filename\")));\n logDataMap.put(\"StorageName\", requestJobj.getString(\"filename\"));\n logDataMap.put(\"Log\", msg);\n logDataMap.put(\"Type\", \"csv\");\n logDataMap.put(\"FailureFileType\", failed > 0 ? \"csv\" : \"\");\n logDataMap.put(\"TotalRecs\", total);\n logDataMap.put(\"Rejected\", failed);\n logDataMap.put(\"Module\", moduleID);\n logDataMap.put(\"ImportDate\", new Date());\n logDataMap.put(\"User\", requestJobj.getString(Constants.useridKey));\n logDataMap.put(\"Company\", requestJobj.getString(Constants.companyKey));\n importDao.saveImportLog(logDataMap);\n } catch (Exception ex) {\n Logger.getLogger(accSalesOrderServiceImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Test\r\n public void test_logEntrance1_NoLogging() throws Exception {\r\n log = null;\r\n LoggingWrapperUtility.logEntrance(log, signature, paramNames, paramValues);\r\n\r\n assertEquals(\"'logEntrance' should be correct.\", 0, TestsHelper.readFile(TestsHelper.LOG_FILE).length());\r\n }",
"public void addLog(int type)\n {\n m_Log.addFirst(new SecurityLog(type));\n //truncate log list to 6 entries\n if(m_Log.size() > 6)\n m_Log.removeLast();\n }",
"@Test\n public void testBrokenLogger() throws IOException {\n Configuration conf = new HdfsConfiguration();\n conf.set(DFSConfigKeys.DFS_NAMENODE_AUDIT_LOGGERS_KEY, TestAuditLogger.BrokenAuditLogger.class.getName());\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).build();\n try {\n cluster.waitClusterUp();\n FileSystem fs = cluster.getFileSystem();\n long time = System.currentTimeMillis();\n fs.setTimes(new Path(\"/\"), time, time);\n Assert.fail(\"Expected exception due to broken audit logger.\");\n } catch (RemoteException re) {\n // Expected.\n } finally {\n cluster.shutdown();\n }\n }",
"@Test\n\tpublic final void testWriteTrace() {\n\t\tLog.trace(\"This is a call to Log.Trace with no arguments\");\n\t\tLog.trace(\"This is a call to Log.Trace with two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tLog.write(LogMessageSeverity.INFORMATION, \"Unit Tests\", null, \"This is a call to Log.Write with no arguments\");\n\t\tLog.write(LogMessageSeverity.INFORMATION, \"Unit Tests\", null,\n\t\t\t\t\"This is a call to Log.Write with two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tRuntimeException exception = new GibraltarException(\"This is a dummy exception to test API calls.\");\n\n\t\tLog.trace(exception, \"This is a call to Log.Trace with an exception and no arguments\");\n\t\tLog.trace(exception, \"This is a call to Log.Trace with an exception and two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED, exception, \"Unit Tests\", null,\n\t\t\t\t\"This is a call to Log.Write with an exception and no arguments\");\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED, exception, \"Unit Tests\", null,\n\t\t\t\t\"This is a call to Log.Write with an exception and two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tLog.write(LogMessageSeverity.VERBOSE, \"Unit Tests\",\n\t\t\t\t\"This is a call to Log.Write with a caption and null description\", null);\n\t\tLog.write(LogMessageSeverity.VERBOSE, \"Unit Tests\",\n\t\t\t\t\"This is a call to Log.Write with a caption and description\", \"with no formatting arguments\");\n\t\tLog.write(LogMessageSeverity.VERBOSE, \"Unit Tests\",\n\t\t\t\t\"This is a call to Log.Write with a caption and description\",\n\t\t\t\t\"formatted with two arguments #1:%s, #2:%s\", 1, 2);\n\n\t\tLog.write(LogMessageSeverity.INFORMATION, LogWriteMode.WAIT_FOR_COMMIT, null, \"Unit Tests\",\n\t\t\t\t\"This is a call to Log.Write with WaitForCommit and null exception and with a caption and null description\",\n\t\t\t\tnull);\n\t}",
"void addLogger(BotLogger logger);",
"public void writeLog(String log){\n //Create, if no files.\n if(!this.loggingFile.exists()){\n try {\n this.loggingFile.createNewFile();\n FileWriter fileWriter = new FileWriter(this.loggingFile, true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.write(log);\n bufferedWriter.newLine();\n bufferedWriter.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //Open the file.\n else{\n try {\n synchronized (this.loggingFile) {\n FileWriter fileWriter = new FileWriter(this.loggingFile, true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.write(log);\n bufferedWriter.newLine();\n bufferedWriter.close();\n }\n }catch (IOException e){\n e.printStackTrace();\n }\n }\n\n }",
"private static final void log(Throwable e) {\n\t\tlog.println(e);\n\t}",
"int insertSelective(GatewayLog record);",
"@Override\n public void log(Request request, Response response)\n {\n int committedStatus = response.getCommittedMetaData().getStatus();\n\n // only interested in error cases - bad request & server errors\n if ((committedStatus >= 500) || (committedStatus == 400))\n {\n super.log(request, response);\n }\n else\n {\n System.err.println(\"### Ignored request (response.committed.status=\" + committedStatus + \"): \" + request);\n }\n }",
"private void repetitiveWork(){\n\t PropertyConfigurator.configure(\"log4j.properties\");\n\t log = Logger.getLogger(BackupRestore.class.getName());\n }",
"@Override\r\n\t\t\tpublic void onFailure(Call<LogDataModel> call, Throwable t) {\n\t\t\t\t\r\n\t\t\t}",
"abstract protected void logInternal(int level, String message);",
"void log(Level level, String message, Throwable throwable);",
"public void setLog(Log log) {\r\n this.delegate.setLog(log);\r\n }",
"void markFailed(Throwable t) {\n\t}",
"public void requestAppendLog(AppendLogCommand appendLogCmd) throws PandaException {\r\n\r\n //logger.info(\"request Append in ,UUID : {}\", cmd.getUuid());\r\n // uuid is handled ?\r\n \r\n if(this.counter.size() > 300) return ;\r\n\r\n if (uuidHadRequest(appendLogCmd)) {\r\n\r\n\r\n return;\r\n }\r\n \r\n \r\n\r\n\r\n counter.initCmdCounter(appendLogCmd, corePeer.getMemberPeers().size());\r\n\r\n\r\n corePeer.getStore().appendCommand(appendLogCmd);// leader store\r\n\r\n \r\n leaderHandler.sendToAllFollowers(appendLogCmd);\r\n\r\n\r\n\r\n }",
"@Override\n\tpublic int addLog(Log l) {\n\t\tString sql = \"INSERT INTO t_log(fTime,fTel,fType,fDocld,fResult)values(?,?,?,?,?)\";\n\t\tint result = 0;\n\t\tObject[] params = {l.getfTime(),l.getfTel(),l.getfType(),l.getfDocld(),l.getfResult()};\n\t\ttry {\n\t\t\tresult = qr.update(sql,params);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"@InsertProvider(type=BUMBCheckingLogSqlProvider.class, method=\"insertSelective\")\n int insertSelective(BUMBCheckingLog record);",
"@Test\n public void testWithDataLogNotPrimaryException() throws Exception {\n int streamSegmentCount = 1;\n int appendsPerStreamSegment = 1;\n\n @Cleanup\n TestContext context = new TestContext();\n\n // Generate some test data (no need to complicate ourselves with Transactions here; that is tested in the no-failure test).\n HashSet<Long> streamSegmentIds = createStreamSegmentsInMetadata(streamSegmentCount, context.metadata);\n List<Operation> operations = generateOperations(streamSegmentIds, new HashMap<>(), appendsPerStreamSegment,\n METADATA_CHECKPOINT_EVERY, false, false);\n\n // Setup an OperationProcessor and start it.\n @Cleanup\n TestDurableDataLog dataLog = TestDurableDataLog.create(CONTAINER_ID, MAX_DATA_LOG_APPEND_SIZE, executorService());\n dataLog.initialize(TIMEOUT);\n @Cleanup\n OperationProcessor operationProcessor = new OperationProcessor(context.metadata, context.stateUpdater,\n dataLog, getNoOpCheckpointPolicy(), executorService());\n operationProcessor.startAsync().awaitRunning();\n\n ErrorInjector<Exception> aSyncErrorInjector = new ErrorInjector<>(\n count -> true,\n () -> new CompletionException(new DataLogWriterNotPrimaryException(\"intentional\")));\n dataLog.setAppendErrorInjectors(null, aSyncErrorInjector);\n\n // Process all generated operations.\n List<OperationWithCompletion> completionFutures = processOperations(operations, operationProcessor);\n\n // Wait for all such operations to complete. We are expecting exceptions, so verify that we do.\n AssertExtensions.assertThrows(\n \"No operations failed.\",\n OperationWithCompletion.allOf(completionFutures)::join,\n ex -> ex instanceof IOException || ex instanceof DataLogWriterNotPrimaryException);\n\n // Verify that the OperationProcessor automatically shuts down and that it has the right failure cause.\n ServiceListeners.awaitShutdown(operationProcessor, TIMEOUT, false);\n Assert.assertEquals(\"OperationProcessor is not in a failed state after fence-out detected.\",\n Service.State.FAILED, operationProcessor.state());\n Assert.assertTrue(\"OperationProcessor did not fail with the correct exception.\",\n operationProcessor.failureCause() instanceof DataLogWriterNotPrimaryException);\n }",
"public final void log() throws ArithmeticException {\n\t\tif ((mksa&_LOG) != 0) throw new ArithmeticException\n\t\t(\"****Unit: log(\" + symbol + \")\") ;\n\t\tvalue = AstroMath.log(value);\n\t\tmksa |= _log;\n\t\tif (symbol != null) \n\t\t\tsymbol = \"[\" + symbol + \"]\";\t// Enough to indicate log\n\t}",
"private CTFFile uploadBuildLog(AbstractBuild <?, ?> build) {\n if (this.cna == null) {\n this.log(\"Cannot call updateSucceedingBuild, not logged in!\");\n return null;\n }\n try {\n return cna.upload(build.getLogFile());\n } catch (RemoteException re) {\n this.log(\"uploadBuildLog\", re);\n }\n return null;\n }",
"public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }",
"@Override\n\tpublic void log(Level level, Marker marker, Object message, Throwable t) {\n\n\t}",
"public void writeToExceptionLog(String report);",
"private TypicalLogEntries() {}",
"private void MinorException(Exception ex) {\n logger.logException(ex);\n }"
] | [
"0.8241152",
"0.647484",
"0.60118645",
"0.5739178",
"0.5731129",
"0.56676114",
"0.5646765",
"0.55795276",
"0.5575603",
"0.5568036",
"0.555553",
"0.5509932",
"0.5469999",
"0.5465553",
"0.5445959",
"0.5407703",
"0.5336798",
"0.5324981",
"0.5310355",
"0.52663493",
"0.52648664",
"0.52449214",
"0.5237134",
"0.5214175",
"0.5211537",
"0.5210319",
"0.520673",
"0.5202275",
"0.520225",
"0.5199805",
"0.51901066",
"0.5188143",
"0.5170287",
"0.5169311",
"0.51631993",
"0.5151697",
"0.5148688",
"0.51485753",
"0.51423633",
"0.51061684",
"0.5105841",
"0.5105697",
"0.5104887",
"0.50988",
"0.50855863",
"0.5076357",
"0.50679636",
"0.50635624",
"0.5062526",
"0.50558484",
"0.50545514",
"0.5050232",
"0.5028386",
"0.50273156",
"0.5025963",
"0.50187266",
"0.5006272",
"0.50033224",
"0.49955657",
"0.4988078",
"0.49755844",
"0.49701297",
"0.49665004",
"0.49657246",
"0.4965482",
"0.496388",
"0.49610117",
"0.4951241",
"0.4947784",
"0.49455303",
"0.49343225",
"0.49329877",
"0.49290684",
"0.4927917",
"0.49103847",
"0.49057958",
"0.49015385",
"0.48969352",
"0.48812586",
"0.48726842",
"0.4866798",
"0.48578703",
"0.48571303",
"0.48570365",
"0.48484063",
"0.48429403",
"0.4841047",
"0.4840022",
"0.48365158",
"0.48357382",
"0.48328948",
"0.48323372",
"0.48305306",
"0.4830418",
"0.48253757",
"0.48242295",
"0.48193926",
"0.48189402",
"0.48172066",
"0.48169893"
] | 0.73989594 | 1 |
Close telemetry connector and send any unsubmitted logs | void close() throws IOException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void disconnect() {\n connector.disconnect();\n // Unregister from activity lifecycle tracking\n application.unregisterActivityLifecycleCallbacks(activityLifecycleTracker);\n getEcologyLooper().quit();\n }",
"public static void close()\n {\n if(!info) return;\n debugger.log.close();\n }",
"public void close() {\n try {\n jmxc.close();\n } catch (IOException e) {\n log.error(\"Unable to close JMX connector\", e);\n }\n log.info(\"JMX connector successfully closed\");\n }",
"@Override\n\tpublic synchronized void stop() throws ConnectorException {\n\t\tif (https != null) {\n\t\t\thttps.shutdownNow();\n\t\t}\n\t\tif (http != null) {\n\t\t\thttp.shutdownNow();\n\t\t}\n\t\tcaCert = null;\n\t\tagentIdToSessionId.clear();\n\t\tsessions.clear();\n\t\tlogMessage(\"Web-Connector has been stopped\");\n\t\tthis.myNode = null;\n\t}",
"public void close() {\n this.consoleListenerAndSender.shutdownNow();\n this.serverListenerAndConsoleWriter.shutdownNow();\n try {\n this.getter.close();\n this.sender.close();\n this.socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void close()\n {\n getConnectionManager().shutdown();\n }",
"private void shutdown()\n\t\t{\n\t\tif (myChannelGroup != null)\n\t\t\t{\n\t\t\tmyChannelGroup.close();\n\t\t\t}\n\t\tif (myHttpServer != null)\n\t\t\t{\n\t\t\ttry { myHttpServer.close(); } catch (IOException exc) {}\n\t\t\t}\n\t\tmyLog.log (\"Stopped\");\n\t\t}",
"@Override\n public void closeLog() {\n \n }",
"public void shutdown()\n {\n log.info(\"Stop accepting new events\");\n\n // Disable realtime hook\n forwardDispatcher.stop();\n\n // Disable writer to disk\n spoolDispatcher.shutdown();\n }",
"@Override\n public void close() {\n for ( TunnelConnection tunnelConnection : tunnelConnections ) {\n IOUtils.closeAndLogException( tunnelConnection );\n }\n }",
"@Override\n\t\t\t\tpublic void closing() {\n\t\t\t\t\tSystem.out.println(\"Topic Dashboard has been closed\");\n\t\t\t\t\ttradeDetail = null;\n\t\t\t\t\tcheckFrames();\n\t\t\t\t}",
"public void shutdown() {\n\t\tinternalShutdown();\n\t\tC4JPluginLogging.getDefault().removeLogManager(this); \n\t}",
"@Override\n\tpublic void onTerminating() {\n\t\tWriterUtil.flushBuffer(this.registryBuffer, this.socketChannel, LOGGER);\n\t\tWriterUtil.flushBuffer(this.buffer, this.socketChannel, LOGGER);\n\t\tWriterUtil.close(this.socketChannel, LOGGER);\n\t}",
"@Override\n public void close() throws Exception {\n log.info(\"Shutting down task replicator...\");\n while (running) {\n Thread.sleep(300L);\n }\n }",
"public void connectionClosed(Spy spy, long execTime);",
"@Override\n public void close()\n {\n this.disconnect();\n }",
"@Override\n public void destroy() {\n super.destroy();\n if(connector != null) {\n connector.close();\n }\n }",
"public void closeConnection(){\r\n\t\t_instance.getServerConnection().logout();\r\n\t}",
"public void shutdown() {\n for (Entry<String,Session> entry : _sessions.entrySet())\n entry.getValue().disconnect();\n \n writeLine(\"\\nDebugServer shutting down.\");\n close();\n }",
"@Override\r\n public void stopCrawling() {\n setState(ConnectorState.STOPPED);\r\n // shutdown the consumer\r\n consumer.close();\r\n // send a flush once the consumer is closed\r\n try {\r\n flush();\r\n } catch (Exception e) {\r\n log.warn(\"Error flushing last batch. {}\", e);\r\n }\r\n }",
"public void close() {\n\t\ttry {\n\t\t\tthis.stop();\n\t\t} catch (Exception e) {\n\t\t\tLOG.warn(\"Error closing Avro RPC server.\", e);\n\t\t}\n\t}",
"private void closeLogFile()\r\n {\n try\r\n {\r\n GregorianCalendar gc = new GregorianCalendar();\r\n String now = su.DateToString(gc.getTime(), DTFMT);\r\n writeToLogFile(\"identifyFTPRequests processing ended at \" +\r\n now.substring(8, 10) + \":\" + now.substring(10, 12) + \".\" +\r\n now.substring(12, 14) + \" on \" + now.substring(6, 8) + \"/\" +\r\n now.substring(4, 6) + \"/\" + now.substring(0, 4));\r\n logWriter.close();\r\n }\r\n catch (Exception ex)\r\n {\r\n System.out.println(\"Error closing log file: \" + ex.getMessage());\r\n System.exit(1);\r\n }\r\n }",
"public void close()\n {\n try\n {\n stop();\n }\n catch (IOException ioex)\n {\n logger.error(\"Failed to stop \" + getClass().getSimpleName(), ioex);\n }\n }",
"public void shutdown() {\n Log.info(Log.FAC_NETMANAGER, formatMessage(\"Shutdown requested\"));\n _run = false;\n if (_periodicTimer != null) _periodicTimer.cancel();\n if (_thread != null) _thread.interrupt();\n if (null != _channel) {\n try {\n setTap(null);\n } catch (IOException io) {\n }\n try {\n _channel.close();\n } catch (IOException io) {\n }\n }\n }",
"public void shutdown() {\n try {\n this.writer.close();\n } catch (IOException e) {\n log.warn(i18n.getString(\"problemCloseOutput\", e), e);\n }\n }",
"public synchronized void stop()\n {\n try\n {\n logger.info(\"Deactivation of full query log requested.\");\n if (binLog != null)\n {\n logger.info(\"Stopping full query log\");\n binLog.stop();\n binLog = null;\n }\n }\n catch (Exception e)\n {\n throw new RuntimeException(e);\n }\n }",
"private void closeStreams() {\n try {\n windowForCommunication.append(\"Closing connection now.\" + \"\\n\");\n sendMessageToClient(\"ENDING CHAT: Closing connection now\");\n input.close();\n output.close();\n serverSocket.close();\n }\n catch(IOException e) {\n System.out.println(e);\n windowForCommunication.append(\"Uh oh. Seems like there was a communication error....!\");\n }\n }",
"public void close() {\n for (final BasicServerMetrics metrics : myServerMetrics.values()) {\n metrics.close();\n }\n myServerMetrics.clear();\n }",
"public void close() {\n this.output = null;\n }",
"public void closeIdleConnections()\n {\n \n }",
"private void handleMqttEndpointClose() {\n\n if (this.mqttEndpointCloseHandler != null) {\n this.mqttEndpointCloseHandler.handle(this);\n }\n }",
"public void shutdown() {\n logger.info(\"Shutting down modules.\");\n for (Module module : modules) {\n module.stop();\n }\n logger.info(\"Shutting down reporters.\");\n for (Reporter reporter : reporters.values()) {\n reporter.stop();\n }\n }",
"public void terminate() {\n config.closeConnection();\n }",
"public void closeLog(){\n if(logWriter!=null){\n logWriter.closeLog();\n logWriter = null;\n }\n }",
"private void closeStatisticLog(int componentIndex, Long endTime, String payload) {\n\t\tStatisticsLog currentLog = messageFlowLogs.get(componentIndex);\n\t\tcurrentLog.decrementOpenTimes();\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Closed statistic log of [ElementId\" + currentLog.getComponentName());\n\t\t}\n\t\tcurrentLog.setEndTime(endTime);\n\t\t// TODO: add after payload\n\t\tcurrentLog.setAfterPayload(payload);\n\t\tupdateParentLogs(currentLog.getParentIndex(), endTime);\n\t}",
"public void close() {\n\t\ttry {\n\t\t\tcancel(true);\n\t\t\tif (future != null) {\n\t\t\t\tfuture.get();\n\t\t\t}\n\t\t}\n\t\tcatch (Throwable ex) {}\n\t\tfinally {\n\t\t\tlogger.close();\n\t\t}\n\t}",
"public void close() throws IOException {\n if (sink != null) {\n sink.receivedLast();\n }\n }",
"public void shutdown() {\n for (Connection connection : connections) { //Try closing all connections\n closeConnection(connection);\n }\n }",
"public static void disconnect() {\n \t\tconnPool.stop();\n \t}",
"@Override\n\tpublic void shutdown() {\n\t\tif (messageOpen) {\n\t\t\tDataOutputBlobWriter.closeLowLevelField(Pipe.outputStream(output)); \n\t\t\tPipe.confirmLowLevelWrite(output, Pipe.sizeOf(output, RawDataSchema.MSG_CHUNKEDSTREAM_1));\n\t\t\tPipe.publishWrites(output);\t\n\t\t\tmessageOpen=false;\n\t\t}\n\t}",
"public void close() {\n try {\n socket.close();\n } catch (IOException e) {\n renderablePublisher.submit(new ServerOfflineUpdate());\n }\n }",
"private static void closeAll() {\n try {\n outputFileBuffer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Encog.getInstance().shutdown();\n }",
"@Override\n public void close() {\n //no-op\n }",
"public void shutdown() {\n MultiThreadedHttpConnectionManager manager = \n (MultiThreadedHttpConnectionManager) httpClient.getHttpConnectionManager();\n manager.shutdown();\n }",
"public synchronized void closeAllConnections() {\n\t\tstop();\n\t}",
"public void close()\n {\n \tSystem.out.println(\"close\");\n \tsend(\"<message> <disconnect/></message>\");\n \ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }",
"public void shutdown() {\n try {\n infoServer.stop();\n } catch (Exception e) {\n }\n this.shouldRun = false;\n ((DataXceiveServer) this.dataXceiveServer.getRunnable()).kill();\n try {\n this.storage.closeAll();\n } catch (IOException ie) {\n }\n }",
"private void close() {\n\t\ttry {\n\t\t\tsendCommand(\"end\\n\");\n\t\t\tout.close();\n\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (MossException e) {\n\t\t} catch (IOException e2) {\n\t\t} finally {\n\t\t\tcurrentStage = Stage.DISCONNECTED;\n\t\t}\n\n\t}",
"public void disconnect(){ \r\n if (matlabEng!=null){ \r\n matlabEng.engEvalString (id,\"bdclose ('all')\");\r\n matlabEng.engClose(id);\r\n matlabEng=null;\r\n id=-1; \r\n }\r\n }",
"public void shutdownSilently() {\n shutdownSilently(true);\n }",
"@Override\n public void close() {\n LOG.info(\"Closing stream writer:\" + streamName);\n shutdown();\n try {\n awaitTermination(1, TimeUnit.MINUTES);\n } catch (InterruptedException ignored) {\n }\n }",
"public void stopAcceptingLifecycleEvents() {\n adapter.stop();\n LOGGER.info(\"stopped ETL protocol adapter \" + adapter.getClass() + \"'\");\n }",
"public static void shutdown() {\n\t\t// Ignore\n\t}",
"private void close() {\n\t\tif (socketChannel != null) {\n\t\t\ttry {\n\t\t\t\tif (in != null) {\n\t\t\t\t\tin.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.log(Level.SEVERE, \"Close in stream \", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (out != null) {\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.log(Level.SEVERE, \"Close out stream \", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tsocketChannel.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tlog.log(Level.SEVERE, \"Can't close socket channel\", ex);\n\t\t\t}\n\n\t\t}\n\t\t//Defender.stopConnection();\n\t}",
"public void stopTrack() {\n\t\ttwitterStream.shutdown();\n\t}",
"@Override\n public void shutdown() {\n _ahc.close();\n }",
"@Override\n public void onDisconnect(BinaryLogClient client) {\n }",
"public synchronized void close() {\n\t\t/**\n\t\t * DISCONNECT FROM SERVER\n\t\t */\n\t\tsrvDisconnect();\n\t}",
"protected void shutDown() throws Exception {\n logger.error(\"FetchCoinTask has been requested to shutdown\");\n }",
"public void clearCallLogs();",
"public synchronized void closeAllSocket()\n {\n \ttry {\n \t\toutput.close();\n \t}\n \tcatch(Exception e)\n \t{\n \t\terror(e);\n \t}\t\n }",
"public void disconnect() {}",
"private void handleClosedConnection() {\n final int currentConnections = concurrentConnections.decrementAndGet();\n\n log.debug(\"[Vertx-EventMetricsStream] - Current Connections - {} / Max Connections {}\", currentConnections, maxConcurrentConnections.get());\n }",
"public final void destroy()\n {\n log.info(\"PerformanceData Servlet: Done shutting down!\");\n }",
"private static void shutdownGracefully() {\n //record out file time for the last access to the stream.\n try {\n disruptor.shutdown();\n setLastReadTime();\n closeCouchbaseClient();\n } catch (Exception ex) {\n //not much we can do, what if our logging is already shutdown or not up\n // when this happens?\n ex.printStackTrace();\n }\n\n }",
"@Override\n public void close() throws Exception {\n\n socketAcceptor.close();\n rmiAcceptor.close();\n connectedViews.clear();\n\n synchronized (threadPool) {\n threadPool.shutdown();\n }\n while (!threadPool.awaitTermination(5, TimeUnit.SECONDS)) {\n logger.warning(\"Thread pool hasn't shut down yet, waiting...\");\n }\n }",
"void shutdown() {\n if (metricRegistry != null) {\n for (String metricName : gaugeMetricNames) {\n try {\n metricRegistry.remove(metricName);\n } catch (RuntimeException e) {\n // ignore\n }\n }\n }\n }",
"@Override\n public void stop() {\n lumenClient.shutdown();\n lumenClient = null;\n }",
"private void shutdown() {\n log.info(\"Shutting down\");\n kafka.shutdown();\n zookeeper.shutdown();\n }",
"private void stopHttpAdaptor() {\n if (!agentConfig.isHttpEnabled()) {\n return;\n }\n\n // stop the adaptor...\n try {\n httpAdaptor.stop();\n } catch (Exception e) {\n logger.warn(e.getMessage(), e);\n }\n\n try {\n MBeanUtils.unregisterMBean(getHttpAdaptorName());\n MBeanUtils.unregisterMBean(getXsltProcessorName());\n } catch (MalformedObjectNameException e) {\n logger.warn(e.getMessage(), e);\n }\n }",
"public void shutdown() {\n // no-op\n }",
"public synchronized void close() {\n\t\ttry {\n\t\t\tif (reader != null) reader.close();\n\t\t\tif (writer != null) writer.close();\n\t\t\tif (fromMonet != null) fromMonet.close();\n\t\t\tif (toMonet != null) toMonet.close();\n\t\t\tif (con != null) con.close();\n\t\t\tif (debug && log instanceof FileWriter) log.close();\n\t\t} catch (IOException e) {\n\t\t\t// ignore it\n\t\t}\n\t}",
"public void closeAll(){\n\t\t\n\t\tshowMessage(\"\\n Closing all connections...\");\n\t\tableToType(false);\n\t\ttry {\n\t\t\t\n\t\t\tinput.close();\n\t\t\toutput.close();\n\t\t\tconnection.close();\n\t\t\t\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}",
"@Override\n public synchronized void shutdown() throws Exception {\n OperatorContext context = getOperatorContext();\n Logger.getLogger(this.getClass()).trace(\"Operator \" + context.getName() + \" shutting down in PE: \" + context.getPE().getPEId() + \" in Job: \" + context.getPE().getJobId() );\n\n // Close connection to Elasticsearch server.\n client.shutdownClient();\n \n super.shutdown();\n }",
"public void shutdown() throws IOException, AutomationException {\n /*\n * The SOE should release its reference on the Server Object Helper.\n */\n this.serverLog.addMessage(3, 200, \"Shutting down \" + this.getClass().getName() + \" SOI.\");\n this.serverLog = null;\n }",
"@Override\n public void disconnect()\n {\n try\n {\n super.disconnect();\n }\n catch (Exception exec)\n {\n log.debug(\"Ignoring unexpected exception \" + exec.getClass().getSimpleName() + \" with message \" + exec.getMessage());\n }\n\n log.debug(\"Closing Cohort Registry Store.\");\n }",
"public static void stop() {\n enableIncomingMessages(false);\n }",
"private void closeConnection () {\n setConnection (null);\n }",
"public void disconnect() {\n\t\tdisconnect(null);\n\t}",
"public void destroy() {\n log = null;\n }",
"public void close() {\n try {\n socket.close();\n sInput.close();\n sOutput.close();\n sInput = null;\n socket = null;\n } catch (IOException e) {\n System.out.println(\"Logged Out.\");\n }\n }",
"public void shutdown() {\n // For now, do nothing\n }",
"private void close() {\r\n closeListener.run();\r\n }",
"public void shutdown() {\n shutdown(false);\n }",
"public void close(){\r\n\t\tif(managedOutputSocket != null) managedOutputSocket.close();\r\n\t\tmanagedOutputSocket = null;\r\n\t\tsuper.close();\r\n\t}",
"public void shutdown(){\n\t\tAndroidSensorDataManagerSingleton.cleanup();\n\t}",
"public void close() {\n\t\ttry {\n\t\t\texecutorService.shutdownNow();\n\t\t\toutput.close();\n\t\t\tinput.close();\n\t\t\tconnection.close();\n\t\t} catch (IOException ioe) {\n\t\t\tMain.LOGGER.log(Level.SEVERE, \"Error closing GameHandler\", ioe);\n\t\t} \n\t}",
"private void gracefullyShutdown() {\n try {\n this.inputStream.close();\n this.outputStream.close();\n } catch (IOException e) {\n // If there is an exception then there's nothing to be done.\n }\n }",
"public void disconnect() {\n try {\n client.disconnect(null, null);\n } catch (MqttException e) {\n Debug.logError(e, MODULE);\n }\n }",
"public void disconnect() {\n if (logger.isActivated()) {\n logger.info(\"Network access disconnected\");\n }\n ipAddress = null;\n }",
"static public void close() {\n renewalTimer.cancel();\n delegationTokens.clear();\n }",
"public void deleteAllLog()\n\t{\n\t\tchatLog.clear();\n\t}",
"public synchronized void close() {\r\n\t\tHashSet copiedLoggers = new HashSet(this.openLoggers);\r\n\t\tfor (Iterator iterator = copiedLoggers.iterator(); iterator.hasNext();) {\r\n\t\t\tXAResourceLogger logger = (XAResourceLogger) iterator.next();\r\n\t\t\ttry {\r\n\t\t\t\tlogger.close();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t;\r\n\t\t\t}\r\n\t\t\topenLoggers.remove(logger);\r\n\t\t}\r\n\r\n\t}",
"public void shutdown() {\n if (configurations.isRegisterMXBeans()) {\n JmxConfigurator.get().removeMXBean(this);\n }\n configurations.shutdown();\n }",
"@Override\n public void stop() {\n telemetry.addData(\"Say\", \"It Stopped!\");\n }",
"private void closeConnection() {\n\t\t\tSystem.out.println(\"\\nTerminating connection \" + myConID + \"\\n\");\n\t\t\ttry {\n\t\t\t\toutput.close(); // close output stream\n\t\t\t\tinput.close(); // close input stream\n\t\t\t\tconnection.close(); // close socket\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"Exception occured in closing connection\"\n\t\t\t\t\t\t+ ioException);\n\t\t\t}\n\t\t}",
"public void close() {\n saveConfigurationSettings();\n removeAllLogHandlers();\n try {\n Constants.PREFS.flush();\n }\n catch ( Exception e ) {\n e.printStackTrace();\n }\n }",
"public void destroy() throws IOException, InterruptedException {\n LOGGER.info(\"Trading bot shutting down, will first cancel all open orders\");\n this.sessionHandler.onShutDown(this.session);\n }",
"void close()\n {\n DisconnectInfo disconnectInfo = connection.getDisconnectInfo();\n if (disconnectInfo == null)\n {\n disconnectInfo = connection.setDisconnectInfo(\n new DisconnectInfo(connection, DisconnectType.UNKNOWN, null, null));\n }\n\n // Determine if this connection was closed by a finalizer.\n final boolean closedByFinalizer =\n ((disconnectInfo.getType() == DisconnectType.CLOSED_BY_FINALIZER) &&\n socket.isConnected());\n\n\n // Make sure that the connection reader is no longer running.\n try\n {\n connectionReader.close(false);\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n outputStream.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n socket.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n if (saslClient != null)\n {\n try\n {\n saslClient.dispose();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n finally\n {\n saslClient = null;\n }\n }\n\n debugDisconnect(host, port, connection, disconnectInfo.getType(),\n disconnectInfo.getMessage(), disconnectInfo.getCause());\n if (closedByFinalizer && debugEnabled(DebugType.LDAP))\n {\n debug(Level.WARNING, DebugType.LDAP,\n \"Connection closed by LDAP SDK finalizer: \" + toString());\n }\n disconnectInfo.notifyDisconnectHandler();\n }",
"public void stop() {\n try {\n stopAsync().get(10, SECONDS);\n } catch (Throwable throwable) {\n if (MockServerLogger.isEnabled(DEBUG)) {\n MOCK_SERVER_LOGGER.logEvent(\n new LogEntry()\n .setLogLevel(DEBUG)\n .setMessageFormat(\"exception while stopping - \" + throwable.getMessage())\n .setThrowable(throwable)\n );\n }\n }\n }",
"@Deactivate\n public void deactivate() {\n loggerThread.interrupt();\n }"
] | [
"0.60290575",
"0.59553194",
"0.59367967",
"0.5917388",
"0.5888458",
"0.5882708",
"0.58756137",
"0.5817929",
"0.58078325",
"0.5801313",
"0.5782931",
"0.5759714",
"0.5686659",
"0.5661905",
"0.56561524",
"0.5654497",
"0.5637187",
"0.5634642",
"0.5628979",
"0.5605145",
"0.55951774",
"0.55774736",
"0.5560886",
"0.5559905",
"0.55583906",
"0.55504704",
"0.55486286",
"0.5542677",
"0.5535275",
"0.5527577",
"0.5520711",
"0.5518335",
"0.5518007",
"0.5516894",
"0.54818535",
"0.5476485",
"0.54742074",
"0.54741085",
"0.54682386",
"0.54662794",
"0.54647124",
"0.5448724",
"0.5440215",
"0.5435646",
"0.5433179",
"0.54236573",
"0.5416057",
"0.5409217",
"0.54017127",
"0.53992087",
"0.5394772",
"0.53908443",
"0.5390792",
"0.537656",
"0.536799",
"0.53584915",
"0.53565234",
"0.53559667",
"0.53487754",
"0.534634",
"0.53382754",
"0.5335364",
"0.53307396",
"0.53282714",
"0.5327891",
"0.5325881",
"0.5323015",
"0.5312318",
"0.5308302",
"0.5298395",
"0.5290305",
"0.52781945",
"0.52769613",
"0.52655154",
"0.5263493",
"0.52626336",
"0.5262535",
"0.52606475",
"0.5257903",
"0.5254862",
"0.52528846",
"0.5249181",
"0.5247337",
"0.52472013",
"0.5242074",
"0.52284676",
"0.5227853",
"0.52272564",
"0.5225784",
"0.5222927",
"0.52180696",
"0.5217806",
"0.52143365",
"0.52138686",
"0.52133757",
"0.52103734",
"0.52084976",
"0.52083313",
"0.5206616",
"0.52032137",
"0.51994383"
] | 0.0 | -1 |
Send all cached logs to server | boolean sendBatch() throws IOException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void logAllMessages() {\r\n HistoricalMessage message;\r\n SessionProvider provider = SessionProvider.createSystemProvider();\r\n while (!logQueue.isEmpty()) {\r\n message = logQueue.poll();\r\n if (message != null) {\r\n this.addHistoricalMessage(message, provider);\r\n }\r\n }\r\n provider.close();\r\n }",
"@Override public void run() {\n\t\t\t\tsaveLogCache();\n\t\t\t\tserverToken = null;\n\t\t\t\toffline = true;\n\t\t\t}",
"private void sendMailLogInfo() {\n\t\tif (mChangedInfoList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t// 1.导出信息\n\t\tString content = dumpLogInfoWithHtml();\n\t\t\n\t\t// 2. 更新收件人与标题\n\t\tmMailSender.updateMailToAndCc(mMailReceivers, mMailCcReceivers);\n\t\t\n\t\tLogger.println(\"==SvnLog send emal with subject \" + mMailSubject);\n\t\t\n\t\t// 3.发送信息send\n\t\tmMailSender.sendHtmlMail(mMailSubject, content);\n\t\t\n\t\t// 4.清理此轮信息\n\t\tclearInfo();\n\t}",
"private void writeChatLog() {\n\t\tif (chatLog.size() < 100) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\n\t\t\tBufferedWriter log = new BufferedWriter(new FileWriter(Data.CHAT_LOG, true));\n\n\t\t\ttry {\n\n\t\t\t\tfor (int i = 0; i < chatLog.size(); i++) {\n\t\t\t\t\tlog.write(chatLog.get(i));\n\t\t\t\t\tlog.newLine();\n\t\t\t\t}\n\n\t\t\t} finally {\n\t\t\t\tlog.close();\n\t\t\t\tchatLog.clear();\n\t\t\t}\n\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}",
"private void syncLogsAccordingly() throws Exception{\n HashMap<String, String> params = new HashMap<>();\n params.put(\"timezone\", TimeZone.getDefault().getID());\n List<DeviceLogModel> deviceLogModels = HyperLog.getDeviceLogs(false) ;\n\n\n JSONObject jsonObject = new JSONObject();\n\n try{\n jsonObject.put(\"key\",gson.toJson(deviceLogModels));\n }catch (Exception e){\n Toast.makeText(mContext, \"\"+e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n\n\n AndroidNetworking.post(\"\" + EndPoint)\n .addJSONObjectBody(jsonObject)\n .setTag(this)\n .setPriority(Priority.HIGH)\n .build()\n .getAsJSONObject(new JSONObjectRequestListener() {\n @Override\n public void onResponse(final JSONObject jsonObject) {\n HyperLog.deleteLogs();\n }\n\n @Override\n public void onError(ANError anError) {\n// Toast.makeText(ATSApplication.this, \"ERROR : \"+anError.getErrorBody(), Toast.LENGTH_SHORT).show();\n }\n });\n }",
"public void serializeLogs();",
"private synchronized void flush() {\r\n\t\tif (!buffer.isEmpty()) {\r\n\t\t\tfor (final LoggingRecord record : buffer) {\r\n\t\t\t\thandler.handle(record);\r\n\t\t\t}\r\n\t\t\tbuffer.clear();\r\n\t\t}\r\n\t}",
"public void syncLogsServers() {\n initExecService();\n try {\n log.info(\"Number of logs founded: \" + Files.list(Paths.get(saveLocation)).count());\n\n /**\n * Find the files in the directory. For each file found with the .log extension\n * start to read it and submit it to the thread pool of the executor\n */\n Files.list(Paths.get(saveLocation))\n .filter(Files::isRegularFile)\n .filter(file -> FilenameUtils.getExtension(file.getFileName().toString()).equals(LOG_EXTENSION))\n .forEach(file -> executorService.submit(()-> readFile(file, Charset.forName(\"UTF-8\"))));\n\n log.info(\"Proceed to terminate all thread\");\n\n shutdownAndAwaitTermination(executorService,\n 150,\n TimeUnit.MINUTES);\n\n executorService = null;\n } catch (Exception ex) {\n log.error(ex.getMessage(), ex);\n try {\n executorService.shutdownNow();\n shutdownAndAwaitTermination(executorService, 5, TimeUnit.MINUTES);\n executorService = null;\n } catch (Exception e2) {\n log.error(e2.getMessage(), e2);\n }\n }\n }",
"public void syncLogsAccordingly( ){\n Log.d(TAG, \"Syncing Logs to Log panel\");\n\n try{\n Log.d(TAG , \"STATUS : \"+AppInfoManager.getAppStatusEncode());\n APPORIOLOGS.appStateLog(AppInfoManager.getAppStatusEncode());}catch (Exception e){}\n AndroidNetworking.post(\"\"+ AtsApplication.EndPoint_add_logs)\n .addBodyParameter(\"timezone\", TimeZone.getDefault().getID())\n .addBodyParameter(\"key\", AtsApplication.getGson().toJson(HyperLog.getDeviceLogs(false)))\n .setTag(\"log_sync\")\n .setPriority(Priority.HIGH)\n .build()\n .getAsJSONObject(new JSONObjectRequestListener() {\n @Override\n public void onResponse(JSONObject response) {\n try{\n ModelResultChecker modelResultChecker = AtsApplication.getGson().fromJson(\"\"+response,ModelResultChecker.class);\n if(modelResultChecker.getResult() == 1 ){\n Log.i(TAG, \"Logs Synced Successfully \");\n HyperLog.deleteLogs();\n onSync.onSyncSuccess(\"\"+AtsConstants.SYNC_EXISTING_LOGS);\n }else{\n Log.e(TAG, \"Logs Not synced from server got message \"+modelResultChecker.getMessage());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n }catch (Exception e){\n Log.e(TAG, \"Logs Not synced with error code: \"+e.getMessage());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n }\n @Override\n public void onError(ANError error) {\n Log.e(TAG, \"Logs Not synced with error code: \"+error.getErrorCode());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n });\n }",
"private void flushDirtyLogs() {\n logger.debug(\"Checking for dirty logs to flush...\");\n Utils.foreach(logs, new Callable1<Map.Entry<TopicAndPartition, Log>>() {\n @Override\n public void apply(Map.Entry<TopicAndPartition, Log> _) {\n TopicAndPartition topicAndPartition = _.getKey();\n Log log = _.getValue();\n\n try {\n long timeSinceLastFlush = time.milliseconds() - log.lastFlushTime();\n logger.debug(\"Checking if flush is needed on \" + topicAndPartition.topic + \" flush interval \" + log.config.flushMs + \" last flushed \" + log.lastFlushTime() + \" time since last flush: \" + timeSinceLastFlush);\n if (timeSinceLastFlush >= log.config.flushMs)\n log.flush();\n } catch (Throwable e) {\n logger.error(\"Error flushing topic \" + topicAndPartition.topic, e);\n if (e instanceof IOException) {\n logger.error(\"Halting due to unrecoverable I/O error while flushing logs: \" + e.getMessage(), e);\n System.exit(1);\n }\n }\n }\n });\n }",
"public void deleteAllLog()\n\t{\n\t\tchatLog.clear();\n\t}",
"private static void send() {\n Map<String, ArrayList<Event>> eventsByStream = new HashMap<>();\n for (Event event : QUEUE) {\n String stream = event.getStream();\n if (!eventsByStream.containsKey(stream) || eventsByStream.get(stream) == null) {\n eventsByStream.put(stream, new ArrayList<>());\n }\n eventsByStream.get(stream).add(event);\n }\n for (String stream : eventsByStream.keySet()) {\n if (Prefs.INSTANCE.isEventLoggingEnabled()) {\n sendEventsForStream(STREAM_CONFIGS.get(stream), eventsByStream.get(stream));\n }\n }\n }",
"void completeLogs() throws IOException;",
"private void collectLogs(Configuration config) {\r\n\t\tFileUtils loader = new FileUtils(DataCache.getInstance(config\r\n\t\t\t\t.getUniqueId()));\r\n\r\n\t\tfor (String l2 : config.getL2machines()){\r\n\t\t\ttry {\r\n\t\t\t\tloader.download(\"server-\" + l2 + LOG_EXT, config.getResultLocation());\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlog.error(\"Failed to download logs for the test. \" + e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (String l1 : config.getL1machines()){\r\n\t\t\ttry {\r\n\t\t\t\tloader.download(\"client-\" + l1 + LOG_EXT, config.getResultLocation());\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlog.error(\"Failed to download logs for the test. \" + e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (config.getLoadmachines().size() > 0) {\r\n\t\t\tfor (String load : config.getLoadmachines()){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tloader.download(\"load-\" + load + LOG_EXT, config.getResultLocation());\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tlog.error(\"Failed to download logs for the test. \" + e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tList<String> regex = Arrays.asList(\".*gz\", \".*csv\", \".*log\");\r\n\t\tString finalZipName = config.getTestName() + \"-\" + config.getTestCase()\r\n\t\t\t\t+ \"-\" + config.getUniqueId() + LOG_EXT;\r\n\r\n\t\tFile results = new File(finalZipName);\r\n\t\ttry {\r\n\t\t\tloader.gzipFiles(config.getResultLocation(), regex, results);\r\n\t\t\tconfig.setResultLog(results.getAbsolutePath());\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void flushAll(String arg0) throws TimeoutException,\n\t\t\tInterruptedException, MemcachedException {\n\n\t}",
"private void logToServer(PrintWriter out, BufferedReader in) throws InterruptedException, IOException {\n\t\tif (System.currentTimeMillis() - lastLog > 10_000) { // only log every 5 sec\n\t\t\tlogToServerNow(out, in);\n\t\t}\n\t}",
"private void logCacheStatus() {\n if (!LOGGER.canLogAtLevel(LogLevel.VERBOSE)) {\n return;\n }\n\n final int size = cache.size();\n final int length = cache.getTotalLength();\n\n LOGGER.atVerbose()\n .addKeyValue(SIZE_KEY, size)\n .addKeyValue(TOTAL_LENGTH_KEY, length)\n .log(\"Cache entry added or updated. Total number of entries: {}; Total schema length: {}\",\n size, length);\n }",
"@Override\n public void flush() {\n if (loggingEnabled) {\n changeLogger.logChange(changelogKey, state);\n }\n }",
"public static void flush() {\n try {\n sDiskLruCache.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public abstract List<String> getCachedLogs(String readerName);",
"public void log(Request request, Reply reply, int nbytes, long duration) {\n Client client = request.getClient();\n long date = reply.getDate();\n String user = (String) request.getState(AuthFilter.STATE_AUTHUSER);\n URL urlst = (URL) request.getState(Request.ORIG_URL_STATE);\n String requrl;\n if (urlst == null) {\n URL u = request.getURL();\n if (u == null) {\n requrl = noUrl;\n } else {\n requrl = u.toExternalForm();\n }\n } else {\n requrl = urlst.toExternalForm();\n }\n StringBuffer sb = new StringBuffer(512);\n String logs;\n int status = reply.getStatus();\n if ((status > 999) || (status < 0)) {\n status = 999;\n }\n synchronized (sb) {\n byte ib[] = client.getInetAddress().getAddress();\n if (ib.length == 4) {\n boolean doit;\n edu.hkust.clap.monitor.Monitor.loopBegin(349);\nfor (int i = 0; i < 4; i++) { \nedu.hkust.clap.monitor.Monitor.loopInc(349);\n{\n doit = false;\n int b = ib[i];\n if (b < 0) {\n b += 256;\n }\n if (b > 99) {\n sb.append((char) ('0' + (b / 100)));\n b = b % 100;\n doit = true;\n }\n if (doit || (b > 9)) {\n sb.append((char) ('0' + (b / 10)));\n b = b % 10;\n }\n sb.append((char) ('0' + b));\n if (i < 3) {\n sb.append('.');\n }\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(349);\n\n } else {\n sb.append(client.getInetAddress().getHostAddress());\n }\n sb.append(\" - \");\n if (user == null) {\n sb.append(\"- [\");\n } else {\n sb.append(user);\n sb.append(\" [\");\n }\n dateCache(date, sb);\n sb.append(\"] \\\"\");\n sb.append(request.getMethod());\n sb.append(' ');\n sb.append(requrl);\n sb.append(' ');\n sb.append(request.getVersion());\n sb.append(\"\\\" \");\n sb.append((char) ('0' + status / 100));\n status = status % 100;\n sb.append((char) ('0' + status / 10));\n status = status % 10;\n sb.append((char) ('0' + status));\n sb.append(' ');\n if (nbytes < 0) {\n sb.append('-');\n } else {\n sb.append(nbytes);\n }\n if (request.getReferer() == null) {\n if (request.getUserAgent() == null) {\n sb.append(\" \\\"-\\\" \\\"-\\\"\");\n } else {\n sb.append(\" \\\"-\\\" \\\"\");\n sb.append(request.getUserAgent());\n sb.append('\\\"');\n }\n } else {\n if (request.getUserAgent() == null) {\n sb.append(\" \\\"\");\n sb.append(request.getReferer());\n sb.append(\"\\\" \\\"-\\\"\");\n } else {\n sb.append(\" \\\"\");\n sb.append(request.getReferer());\n sb.append(\"\\\" \\\"\");\n sb.append(request.getUserAgent());\n sb.append('\\\"');\n }\n }\n sb.append('\\n');\n logs = sb.toString();\n }\n logmsg(logs);\n }",
"private void updateCache(long counter) {\n vertx.eventBus().rxSend(\"posting::get\", null)\n .toObservable()\n /* TODO:\n * 1. Log received string\n * 2. Deserialize received string to List<Posting>\n * 3. Add exponential backoff using .retryWhen\n */\n .subscribe();\n\n }",
"@Override\r\n\tpublic void clear() {\r\n\t\tlock_.lock();\r\n\r\n\t\ttry {\r\n\t\t\tlog_.clear();\r\n\t\t} finally {\r\n\t\t\tlock_.unlock();\r\n\t\t}\r\n\t}",
"void updateLocalCallLogs() {\n setIncludePairedCallLogs();\n buildCallLogsList();\n\n notifyCallDataChanged();\n }",
"public void viewLogs() {\n\t}",
"public void uploadLogCollection();",
"@Override\n\t\tpublic void clear() {\n\t\t\tsuper.clear();\n\t\t\tLogCateManager.getInstance().onLogsChanged();\n\t\t}",
"public void sendLog() {\n\t\tcommon.waitFor(5000);\n\t\tcommon.isElementDiplayed(sendButton);\n\t\tsendButton.click();\n\t\tcommon.isElementDiplayed(sucessMessage);\n\t\tsendButton.click();\n\n\t}",
"public void cleanupLogs() {\n logger.debug(\"Beginning log cleanup...\");\n int total = 0;\n long startMs = time.milliseconds();\n for (Log log : allLogs()) {\n if (log.config.dedupe)\n continue;\n\n logger.debug(\"Garbage collecting '{}'\", log.name());\n total += cleanupExpiredSegments(log) + cleanupSegmentsToMaintainSize(log);\n }\n logger.debug(\"Log cleanup completed. \" + total + \" files deleted in \" + (time.milliseconds() - startMs) / 1000 + \" seconds\");\n }",
"public void fulshLog() {\n\t\tif (logConfigurator!=null) {\n\t\t\tlogConfigurator.setImmediateFlush(true);\n\t\t\tlogConfigurator.setImmediateFlush(false);\n\t\t\tlogConfigurator.configure();\n\t\t}\n\t}",
"public Collection<Log> allLogs() {\n return logs.values();\n }",
"public void run(){\n\t\t\t\t\t\taddToHashmap(key, timestamp);\r\n\r\n\t\t\t\t\t\treq.response().putHeader(\"Content-Type\", \"text/plain\");\r\n\t\t\t\t\t\treq.response().end();\r\n\t\t\t\t\t\treq.response().close();\r\n\t\t\t\t\t}",
"public void syncCache() {\n for (String s : this.cache.keySet()) {\n JsonDocument document = this.cache.get(s);\n document.save(new File(directory, s + \".json\"));\n }\n }",
"LogTailer startTailing();",
"public void flush() throws IOException {\n // nothing to do with cached bytes\n }",
"@Override\n\tpublic void flushAll(long arg0) throws TimeoutException,\n\t\t\tInterruptedException, MemcachedException {\n\n\t}",
"public void clearCallLogs();",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"@Override\n @Transactional\n public List<AuditLog> logs() {\n\tCompany company = this.authHelper.getAuth().getCompany();\n\tLong companyID = company == null ? null : company.getId();\n\tList<AuditLog> logs = this.companyDAO.logs(companyID);\n\tfor (AuditLog log : logs) {\n\t log.setAuditAction(AuditAction.of(log.getAction()));\n\t}\n\treturn logs;\n }",
"@Override\n public void run()\n {\n List<Integer> sendedItemsIds = new ArrayList<>();\n\n final Collection<Map.Entry<Integer, ExerciseScore> > allExerciseItems = m_reportedScores.entrySet();\n try\n {\n for (Map.Entry<Integer, ExerciseScore> item : allExerciseItems)\n {\n final ExerciseScore exerciseScore = item.getValue();\n m_serverOperations.reportExerciseScore(exerciseScore.date, exerciseScore.exerciseName, exerciseScore.score);\n sendedItemsIds.add(item.getKey());\n }\n }\n catch (CommonException | NetworkException exp)\n {\n Log.w(LogTag, String.format(\"Failed to send cache item, exp:\\\"%s\\\"\", exp.getMessage()));\n if (exp instanceof CommonException)\n m_commonErrorCode = ((CommonException)exp).getResultCode();\n else\n m_networkErrorCode = ((NetworkException) exp).getResultCode();\n }\n\n m_exerciseScoreCache.removeCacheItems(sendedItemsIds);\n }",
"public void clearLog() {\n try {\n Runtime.getRuntime().exec(new String[] { \"logcat\", \"-c\" });\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void repetitiveWork(){\n\t PropertyConfigurator.configure(\"log4j.properties\");\n\t log = Logger.getLogger(BackupRestore.class.getName());\n }",
"@Override\n\tpublic void flushAll(InetSocketAddress arg0) throws MemcachedException,\n\t\t\tInterruptedException, TimeoutException {\n\n\t}",
"static public void storeLogs(final boolean shouldStoreLogs) {\n ThreadPoolWorkQueue.execute(new Runnable() {\n @Override public void run() {\n setCaptureSync(shouldStoreLogs);\n // we do this mostly to enable unit tests to logger.wait(100) instead of\n // Thread.sleep(100) -- it's faster, more stable, and more deterministic that way\n synchronized (WAIT_LOCK) {\n WAIT_LOCK.notifyAll ();\n }\n }\n });\n }",
"public void cache(){\n\t\t\n\t\t/*\n\t\t * second, check if there is a cache file\n\t\t * if yes, then check date\n\t\t * if no, then create a cache file \n\t\t*/\n\t\tif(cacheExist()){\n\t\t\t//check date and decide which file to update\n\t\t\tSystem.out.println(\" hahahaha, cache already there! \");\n\t\t\t\n\t\t\tFile cache = new File(\"./cache.txt\");\n\t\t\tsource = readFile(\"./cache.txt\",source);\n\t\t\tSystem.out.println(\"the size of source hashmap : \"+ source.size());\n\t\t\t\n\t\t\tfor(int i = 1; i < fileList.length;i++){\n\t\t\t\t//if this file need to be updated, write the data to source array\n\t\t\t\tif(needToUpdate(fileList[i], cache)){\n\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n\t\t\t\t\tSystem.out.println(\"S: \"+ sdf.format(fileList[i].lastModified()) + \" c: \"+ sdf.format(cache.lastModified()));\n\t\t\t\t\tsource = readFile(fileList[i].getPath(), source);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//after checking the whole source file and add the new data to source array\n\t\t\t//then sort the source array and write it to cache\n\t\t\tsort(source);\n\t\t\ttry\n\t\t\t{\n\t\t\t String filename= \"./cache.txt\";\n\t\t\t FileWriter fw = new FileWriter(filename,true); //the true will append the new data\n\t\t\t for(int j = 0; j < writeList.size(); j++){\n\t\t\t\t\tfw.write(writeList.get(j));\n\t\t\t\t}\n\t\t\t fw.close();\n\t\t\t}\n\t\t\tcatch(IOException ioe)\n\t\t\t{\n\t\t\t System.err.println(\"IOException: \" + ioe.getMessage());\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t//there are is no cache, need to create a cache file\n\t\telse{\n\t\t\tSystem.out.println(\" create new cache file !\");\n\t\t\t//create cache file and copy sort the data from source file\n\t\t\t//1. read all the source file and store the data to an arrayList\n\t\t\tfor(int i = 1; i < fileList.length; i++){\n\t\t\t\tsource = readFile(fileList[i].getPath(), source);\t\t\t\n\t\t\t}\n\t\t\tsort(source);\n//\t\t\tSystem.out.println(source);\n\t\t\t\n\t\t\t//2.write the data to the cache file\n\t\t\tPrintWriter writer;\n\t\t\ttry {\n\t\t\t\twriter = new PrintWriter(\"cache.txt\", \"UTF-8\");\t\t\t\n\t\t\t\twriter.println(writeList.size());\n\t\t\t\tfor(int j = 0; j < writeList.size(); j++){\n\t\t\t\t\twriter.println(writeList.get(j));\n\t\t\t\t}\n\t\t\t\twriter.close();\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t \n\t\t\n\t}",
"public void findMatchingFiles()\n {\n\t\t\n\t\t//Get Server name from the log directory path\n\t\t\t\t\t\t\n\t\tString server = path.substring(0, path.length()-2);\n\t\tserver = server.substring(0,server.lastIndexOf(\"/\"));\n\t\tserver = server.substring(server.lastIndexOf(\"/\") + 1);\n\t\tSystem.out.println(\"Server Name is : \" + server);\n\t\t\t\t\t\t\n Map <String, String> logPatternMap = new HashMap<>(); // Map of log stash config and RegEx\n List<String> fileList = new ArrayList<>(); // List of All files in Log Dir\n List<String> logStashCommandList = new ArrayList<>(); // List of commands to be executed for log stashing files\n String placeholder = \"FILE_PATH\";\n logPatternMap = fetchPropertyFromFile();\n fileList = getAllLogFileNames();\n\n for (String file : fileList) {\n\n for (Map.Entry<String, String> entry : logPatternMap.entrySet()) {\n String fileName = entry.getKey();\n String pattern = entry.getValue();\n\n if (Pattern.matches(pattern,file))\n {\n System.out.println( \"Found a matching file : \" + pattern + \" : \" + file );\n File source = new File(\"/slog/templates/\" + fileName);\n File dest = new File(\"/slog/configs/\" + fileName);\n File logFile = new File(path + file);\n try {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n //copy files from template directory to configs directory\n\t\t\t\t\t\tFiles.copy(source.toPath(), dest.toPath()); \n System.out.println(\"Destination path is : \" + dest.getPath());\n\n //Replace contents of the config file to match log file paths\n\n BufferedReader reader = new BufferedReader(new FileReader(dest));\n String line = \"\", oldtext = \"\";\n while((line = reader.readLine()) != null)\n {\n oldtext += line + \"\\r\\n\";\n }\n reader.close();\n\n String replacedtext = oldtext.replaceAll(placeholder, logFile.getPath().toString());\n\n FileWriter writer = new FileWriter(dest);\n writer.write(replacedtext);\n writer.close();\n\n //Form LogStash command and Execute it\n\n String command = \"/slog/bin/logstash -f \" + dest.getPath() + \" < \" + path + file;\n String[] cmd = { \"/bin/sh\", \"-c\", command};\n Process process = Runtime.getRuntime().exec(cmd);\n try {\n BufferedReader out = new BufferedReader(new InputStreamReader(process.getErrorStream()));\n out.lines().forEach(System.out::println);\n process.waitFor();\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n //delete config file and log file after the work is done\n dest.delete();\n // logFile.delete();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }\n }\n\n }",
"public void setLogFilesUrls() {\n String s = \"\";\n s = s + makeLink(\"NODE-\" + getNodeName() + \"-out.log\");\n s = s + \"<br>\" + makeLink(\"NODE-\" + getNodeName() + \"-err.log\");\n s = s + \"<br>\" + makeLink(\"log-\" + getNodeName() + \".html\");\n logFilesUrls = s;\n }",
"void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}",
"protected void writeLog() {\r\n\r\n // get the current date/time\r\n DateFormat df1 = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);\r\n\r\n // write to the history area\r\n if (Preferences.is(Preferences.PREF_LOG) && completed) {\r\n\r\n if (destImage != null) {\r\n\r\n if (srcImage != null) {\r\n destImage.getHistoryArea().setText(srcImage.getHistoryArea().getText());\r\n }\r\n\r\n if (historyString != null) {\r\n destImage.getHistoryArea().append(\"[\" + df1.format(new Date()) + \"] \" + historyString);\r\n }\r\n } else if (srcImage != null) {\r\n\r\n if (historyString != null) {\r\n srcImage.getHistoryArea().append(\"[\" + df1.format(new Date()) + \"] \" + historyString);\r\n }\r\n }\r\n }\r\n }",
"private Log() {\r\n readFile(\"Save.bin\",allLogs);\r\n readFile(\"Tag.bin\", allTags);\r\n readFile(\"Password.bin\", userInfo);\r\n }",
"@Override\n public void write(OutputStream outputStream) throws IOException {\n try {\n final Stopwatch watch = new Stopwatch();\n IOUtils.copy(inputStream, outputStream);\n LOGGER.debug(\"Streamed from the cache without resolving in {}\",\n watch);\n } finally {\n inputStream.close();\n // N.B.: Restlet will close the output stream.\n }\n }",
"@Override\n\t\tpublic void flush() throws IOException {\n\t\t\twriteBlock(true);\n\t\t\tout.flush();\n\n\t\t\t// it's a bit nasty if an exception is thrown from the log,\n\t\t\t// but ignoring it can be nasty as well, so it is decided to\n\t\t\t// let it go so there is feedback about something going wrong\n\t\t\t// it's a bit nasty if an exception is thrown from the log,\n\t\t\t// but ignoring it can be nasty as well, so it is decided to\n\t\t\t// let it go so there is feedback about something going wrong\n\t\t\tif (debug) {\n\t\t\t\tlog.flush();\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void update() {\n\t\tFile logFile = new File(AppStorage.getInstance().getLogFileLocation());\n\t\tlogFile.getParentFile().mkdirs();\n\n\t\ttry {\n\t\t\tFileHandler fileHandler = new FileHandler(AppStorage.getInstance().getLogFileLocation(), true);\n\t\t\tSimpleFormatter formatter = new SimpleFormatter();\n\t\t\tfileHandler.setFormatter(formatter);\n\n\t\t\twhile (logger.getHandlers().length > 0) {\n\t\t\t\tFileHandler prevFileHandler = (FileHandler)logger.getHandlers()[0];\n\t\t\t\tlogger.removeHandler(prevFileHandler);\n\t\t\t\tprevFileHandler.close();\n\t\t\t}\n\n\t\t\tlogger.addHandler(fileHandler);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tlogger.log();\n\t}",
"public void saveToLog(String log){\n \n File logfile = new File(System.getProperty(\"user.home\"), \"db_logfile\" + DwenguinoBlocklyArduinoPlugin.startTimestamp + \".txt\");\n try {\n BufferedWriter bWriter = new BufferedWriter(new PrintWriter(logfile));\n bWriter.write(log);\n bWriter.flush();\n bWriter.close();\n \n } catch (IOException ex) {\n Logger.getLogger(DwenguinoBlocklyServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public synchronized void startUploadToS3Server() {\n\t\t LogEntry [] logEntrys = null;\n\t\t\ttry {\n if(ReportService.ACTION_UPLOAD_UB_LOG.equals(action)) {\n if (tags == null || times == null || zipEntryNames == null || \n tags.length != times.length || tags.length != zipEntryNames.length || \n zipEntryNames.length != tags.length || !isZipEntryNameAllowed(zipEntryNames)) {\n Log.d(TAG, \"Stop uploading UB log --> tags array or times array or zip entry array isn't allowed.\");\n return;\n }\n if(Common.DEBUG && tags != null && times != null && tags.length == times.length) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"[UB Report] Ready to upload --> \");\n for(int i=0; i<tags.length; i++) {\n sb.append(\"tag: \").append(tags[i]).append(\", time: \").append(times[i]).append(\" \");\n }\n Log.d(TAG,sb.toString());\n }\n logEntrys = new LogEntry[tags.length];\n for(int i=0; i<tags.length; i++)\n logEntrys[i] = new LogEntry(tags[i], times[i], getContext(), key, iv);\n }\n else {\n logEntrys = new LogEntry[1];\n \t\t\t\tif(file != null)\n \t\t\t\t logEntrys[0] = new LogEntry(file, getContext());\n \t\t\t\telse if (fromDropBox)\n \t\t\t\t logEntrys[0] = new LogEntry(tag, time, getContext(), key, iv);\n \t\t\t\tzipEntryNames = new String [1];\n \t\t\t\tzipEntryNames[0] = \"Logfile\";\n }\n \n upload(tag, msg, position, mUniqueMsg, logEntrys, zipEntryNames, triggerType, packageName, processName);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tLog.e(TAG, \"Fail to create LogEntry\", e);\n\t\t\t} finally {\n\t\t\t if(logEntrys != null) {\n for(LogEntry logEntry : logEntrys)\n logEntry.closeEntry();\n\t\t\t }\n\t\t\t}\n\t }",
"public void resetLogCollection();",
"@Override\r\n\tpublic void flushAll() {\n\t\t\r\n\t}",
"@Override\n public void logs() {\n \n }",
"void flush() {\r\n synchronized (sync) {\r\n updatedFiles.clear();\r\n }\r\n }",
"@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n log();\n }",
"private void getAdminLogs(WebSocketConnector aConnector, Token aToken) {\n\t\tif (mService == null) {\n\t\t\tmService = new AdminPlugInService(NS_ADMIN, mNumberOfDays, getServer());\n\t\t}\n\n\t\tif (mLog.isDebugEnabled()) {\n\t\t\tmLog.debug(\"Processing 'getAdminLogs'...\");\n\t\t}\n\n\t\tgetServer().sendToken(aConnector, mService.getAdminLogs(aConnector, aToken));\n\t}",
"private void logToFile() {\n }",
"@Override\n public void send(String[] tokens, DataOutputStream dataOutputStream) throws IOException {\n if (headers.isEmpty()) {\n for (int i = 0; i < tokens.length; i++) {\n headers.put(tokens[i], i);\n }\n } else {\n long timestamp = Long.valueOf(tokens[headers.get(Constants.DATE)]) * 1000;\n String section = tokens[headers.get(Constants.REQUEST)].split(\" \")[1].split(\"\\\\/\")[1];\n String remoteHost = tokens[headers.get(Constants.REMOTE_HOST)];\n int bytes = Integer.valueOf(tokens[headers.get(Constants.BYTES)]);\n logEntryBuilder.newMsg().setTimestamp(timestamp).setSection(section).setRemoteHost(remoteHost).setBytes(bytes).send(dataOutputStream);\n }\n }",
"@Override\n\tpublic void printCacheEntries() {\n\t\tSystem.out.println(\"********* Fast Cache Entries *********\");\n\t\tSet<Map.Entry<K, V>> entrySet = cache.entrySet();\n\t\tfor (Map.Entry<K, V> entry : entrySet) {\n\t\t\tSystem.out.println(entry.getKey() + \", \" + entry.getValue());\n\t\t}\n\t\tSystem.out.println(\"*******************************\");\n\t}",
"public String compressLogCollection();",
"@Override\r\n\tpublic void flushAll(Date date) {\n\t\t\r\n\t}",
"private static void flushInternalBuffer() {\n\n //Strongly set the last byte to \"0A\"(new line)\n if (mPos < LOG_BUFFER_SIZE_MAX) {\n buffer[LOG_BUFFER_SIZE_MAX - 1] = 10;\n }\n\n long t1, t2;\n\n //Save buffer to SD card.\n t1 = System.currentTimeMillis();\n writeToSDCard();\n //calculate write file cost\n t2 = System.currentTimeMillis();\n Log.i(LOG_TAG, \"internalLog():Cost of write file to SD card is \" + (t2 - t1) + \" ms!\");\n\n //flush buffer.\n Arrays.fill(buffer, (byte) 0);\n mPos = 0;\n }",
"private void writeLog(){\n\t\tStringBuilder str = new StringBuilder();\r\n\t\tstr.append(System.currentTimeMillis() + \", \");\r\n\t\tstr.append(fileInfo.getCreator() + \", \");\r\n\t\tstr.append(fileInfo.getFileName() + \", \");\r\n\t\tstr.append(fileInfo.getFileLength() + \", \");\r\n\t\tstr.append(networkSize + \", \");\r\n\t\tstr.append(fileInfo.getN1() + \", \");\r\n\t\tstr.append(fileInfo.getK1() + \", \");\r\n\t\tstr.append(fileInfo.getN2() + \", \");\r\n\t\tstr.append(fileInfo.getK2() + \", \");\r\n\t\tstr.append(logger.getDiff(logger.topStart, logger.topEnd-Constants.TOPOLOGY_DISCOVERY_TIMEOUT)+ \", \");\r\n\t\tstr.append(logger.getDiff(logger.optStart, logger.optStop) + \", \");\r\n\t\tstr.append(logger.getDiff(logger.encryStart, logger.encryStop) + \", \");\r\n\t\tstr.append(logger.getDiff(logger.distStart, logger.distStop) + \"\\n\");\r\n\t\t\r\n\t\tString tmp=\"\t\";\r\n\t\tfor(Integer i : fileInfo.getKeyStorage())\r\n\t\t\ttmp += i + \",\";\r\n\t\ttmp += \"\\n\";\r\n\t\tstr.append(tmp);\r\n\t\t\r\n\t\ttmp=\"\t\";\r\n\t\tfor(Integer i : fileInfo.getFileStorage())\r\n\t\t\ttmp += i + \",\";\r\n\t\ttmp += \"\\n\";\r\n\t\tstr.append(tmp);\t\t\r\n\t\t//dataLogger.appendSensorData(LogFileName.FILE_CREATION, str.toString());\t\t\r\n\t\t\r\n\t\t// Topology Discovery\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"TopologyDisc, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(logger.topStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.topStart, logger.topEnd-Constants.TOPOLOGY_DISCOVERY_TIMEOUT ) + \", \");\r\n\t\tstr.append(\"\\n\");\t\t\t\t\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\r\n\t\t\r\n\t\t// Optimization\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"Optimization, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(logger.optStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.optStart, logger.optStop) + \", \");\r\n\t\tstr.append(\"\\n\");\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\t\t\r\n\t\t\r\n\t\t\r\n\t\t// File Distribution\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"FileDistribution, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(fileInfo.getFileLength() + \", \");\r\n\t\tstr.append(logger.distStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.distStart, logger.distStop) + \", \");\r\n\t\tstr.append(\"\\n\\n\");\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\t\t\r\n\t}",
"public static void writeObject() {\r\n ChunkedCharBuffer buf = new ChunkedCharBuffer();\r\n for (Map.Entry<String, CronJob> entry : getInstance().events.entrySet()) {\r\n CronJob event = entry.getValue();\r\n buf.append(entry.getKey());\r\n buf.append(\"|\");\r\n buf.append(String.valueOf(event.getInterval()));\r\n buf.append(\"|\");\r\n buf.append(String.valueOf(event.getStartTime().getTime()));\r\n buf.append(\"|\");\r\n buf.append(event.getCommandString());\r\n buf.append(\"|\");\r\n buf.append(event.getUser());\r\n buf.append(\"|\");\r\n buf.append(event.getUserService());\r\n buf.append(\"\\n\");\r\n }\r\n if (buf.size() > 0) {\r\n try {\r\n OutputStreamWriter out = new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(FILE, false)));\r\n buf.writeTo(out);\r\n out.flush();\r\n out.close();\r\n } catch (Exception e) {\r\n LoggingService.getInstance().serverLog(\"Error writing statistics: \" + e);\r\n }\r\n }\r\n }",
"@Override\r\npublic boolean writeEntries(CacheObject obj) {\n\t\r\n\ttry {\r\n\t\t\r\n\t\tthis.writer.append(\"[\"+obj.toString()+\"]\\r\\n\");\r\n\t\tthis.writer.flush();\r\n\t} catch (IOException e) {\r\n\t\tSystem.out.println(\"Error Occured while writing into File :\"+ e.getMessage());\r\n\t\te.printStackTrace();\r\n\t\t\r\n\t} \r\n\t\r\n\treturn false;\r\n}",
"ArrayList<ArrayList<String>> getAllLogs() {\r\n return allLogs;\r\n }",
"public void beginLogging() {\n\t\ttry {\n\t\t\tserverSocket.setSoTimeout(0);\n\t\t} catch(SocketException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSystem.out.println(\"Beginning logging...\");\t\t\n\n\t\twhile(keepRunning) {\n\n\t\t\ttry {\n\t\t\t\tSocket clientSocket = serverSocket.accept();\n\n\t\t\t\tSystem.out.println(\"Accepted a client for a NetworkDatum log!\");\n\t\t\t\t\n\t\t\t\tObjectInputStream inputData = new ObjectInputStream(clientSocket.getInputStream());\n\n\t\t\t\tSystem.out.println(\"Trying to add NetworkDatum to our list...\");\n\n\t\t\t\ttry {\n\t\t\t\t\tNetworkDatum nd = (NetworkDatum) inputData.readObject();\n\t\t\t\t\tnetworkLog.add(nd);\n\n\t\t\t\t\tSystem.out.println(\"NetworkDatum added from \" + nd.username + \" at playback time: \" + nd.time);\n\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t} catch(IOException e) {\n\t\t\t\tnetworkLog.registerError();\n\t\t\t}\n\n\t\t}\n\t}",
"@Override\r\n\tpublic void sendEmails() {\n\t\tSystem.out.println(\"All e-mails sent from e-mail service!\");\r\n\t}",
"@Override\n public void report() {\n\n try {\n File mFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/metrics.txt\");\n File eFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/latency_throughput.txt\");\n if (!mFile.exists()) {\n mFile.createNewFile();\n }\n if (!eFile.exists()) {\n eFile.createNewFile();\n }\n\n FileOutputStream mFileOut = new FileOutputStream(mFile, true);\n FileOutputStream eFileOut = new FileOutputStream(eFile, true);\n\n StringBuilder builder = new StringBuilder((int) (this.previousSize * 1.1D));\n StringBuilder eBuilder = new StringBuilder((int) (this.previousSize * 1.1D));\n\n// Instant now = Instant.now();\n LocalDateTime now = LocalDateTime.now();\n\n builder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n eBuilder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n\n builder.append(lineSeparator).append(\"---------- Counters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- records counter ----------\").append(lineSeparator);\n for (Map.Entry metric : counters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n if (( (String)metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Gauges ----------\").append(lineSeparator);\n for (Map.Entry metric : gauges.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Gauge) metric.getKey()).getValue()).append(lineSeparator);\n }\n\n builder.append(lineSeparator).append(\"---------- Meters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- throughput ----------\").append(lineSeparator);\n for (Map.Entry metric : meters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n if (((String) metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Histograms ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- lantency ----------\").append(lineSeparator);\n for (Map.Entry metric : histograms.entrySet()) {\n HistogramStatistics stats = ((Histogram) metric.getKey()).getStatistics();\n builder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n eBuilder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n }\n\n mFileOut.write(builder.toString().getBytes());\n eFileOut.write(eBuilder.toString().getBytes());\n mFileOut.flush();\n eFileOut.flush();\n mFileOut.close();\n eFileOut.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n\tpublic void flushAll(int arg0, long arg1) throws TimeoutException,\n\t\t\tInterruptedException, MemcachedException {\n\n\t}",
"public ChangeCache(File dir) {\n cacheDir = dir;\n cacheFile = new File(dir, \"changeLog\");\n }",
"public EchoServerMultiThreaded(){\n\t\tclients = new LinkedList<>();\n\t\thistory = new ArrayList<>();\n\n\t\t//History Log\n\t\tBufferedReader logIn = null;\n\t\tFile historyLog = new File(\"Code-Socket/lib/historyLog.txt\");\n\t\ttry {\n\t\t\tif(historyLog.createNewFile()){\n\t\t\t\tSystem.out.println(\"History log file not found, creation...\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"History log file found, loading...\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"An error occured with the history log file\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry{\n\t\t\tlogIn = new BufferedReader(new FileReader(historyLog));\n\t\t\tString line = logIn.readLine();\n\t\t\tlockHistory.writeLock().lock();\n\t\t\twhile(line!=null){\n\t\t\t\thistory.add(line);\n\t\t\t\tline=logIn.readLine();\n\t\t\t}\n\t\t\tlockHistory.writeLock().unlock();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"An error occured with the history log reader\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tlogIn.close();\n\t\t\t\tlogOut = new BufferedWriter(new FileWriter(historyLog,true));\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void run() {\n try {\n List<String> list = Lists.newArrayList();\n for (; ; ) {\n String url = Engine.routeQueue.poll();\n if (url == null && list.size() > 0) {\n File file = new File(\"./half-moil.db\");\n if (!file.exists()) file.createNewFile();\n FileWriter writer = new FileWriter(file, true);\n\n writer.write(Joiner.on(\"\\r\\n\").join(list) + \"\\r\\n\");\n writer.flush();\n writer.close();\n writer = null;\n logger.info(\"文件已保存,新增{}条\", list.size());\n list.clear();\n } else if (url != null) {\n list.add(url);\n } else {\n Thread.sleep(5000L);\n }\n }\n } catch (Exception e) {\n logger.error(e);\n }\n }",
"public List<LkuAuditLog> checkAutoSend() {\n\t\tList<LkuAuditLog> ret = null;\n\t\tif (autoThreshold > 0 && queue.size() >= autoThreshold) {\n\t\t\tlogger.debug(\"checkAutoSend() - queue size = \" + queue.size() + \", autoThreshold = \" + autoThreshold);\n\t\t\tret = getLogs(MAX_LOGS);\n\t\t}\n\t\treturn ret;\n\t}",
"public void flush() {\n final Collection<MappedPage> cachedPages = cache.getValues();\n for (final MappedPage mappedPage : cachedPages)\n mappedPage.flush();\n }",
"private void openLogFile()\r\n {\n try\r\n {\r\n GregorianCalendar gc = new GregorianCalendar();\r\n runTS = su.reformatDate(\"now\", null, DTFMT);\r\n logFile = new File(logDir + File.separator + runTS + \"_identifyFTPRequests_log.txt\");\r\n logWriter = new BufferedWriter(new FileWriter(logFile));\r\n String now = su.DateToString(gc.getTime(), DTFMT);\r\n writeToLogFile(\"identifyFTPRequests processing started at \" +\r\n now.substring(8, 10) + \":\" + now.substring(10, 12) + \".\" +\r\n now.substring(12, 14) + \" on \" + now.substring(6, 8) + \"/\" +\r\n now.substring(4, 6) + \"/\" + now.substring(0, 4));\r\n }\r\n catch (Exception ex)\r\n {\r\n System.out.println(\"Error opening log file: \" + ex.getMessage());\r\n System.exit(1);\r\n }\r\n }",
"public void flushCaches() {\n LOCAL_SMALL_CACHE.clear();\n LOCAL_LARGE_CACHE.clear();\n }",
"public void logData(){\n }",
"private void saveLocalFile(ByteArrayOutputStream out) {\n //sava in local files\n FileWriter fw;\n File file = new File(\"/home/shaowen2/testdata/\" + \"vm\" +servers.getServerAddress().substring(15, 17) +\"-ouput.log\");\n\n try {\n if (!file.exists()) {\n file.createNewFile();\n }\n fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(out.toString());\n //bw.write(\"\\n\" + \"Query Count:\" + count + \"|| Time:\" + new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()) + \"\\n\");\n bw.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"final protected void sendAll() {\n\t\tsendAllBut(null);\n\t}",
"public synchronized String getHistory() {\r\n\t\tString log = new String();\r\n\t\ttry {\r\n\t\t\tFile logFile = new File(\"serverlogs.log\");\r\n\t\t\tBufferedReader logReader = new BufferedReader(new InputStreamReader(new FileInputStream(logFile)));\r\n\t\t\tString line;\r\n\t\t\twhile((line = logReader.readLine()) != null) {\r\n\t\t\t\tlog += (line + \"\\n\");\r\n\t\t\t}\r\n\t\t\tlogReader.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tgui.acknowledge(\"Error : logs are not available\");\r\n\t\t\tstop();\r\n\t\t}\r\n\t\tif(log.equals(\"\\n\")) {\r\n\t\t\tlog = new String();\r\n\t\t}\r\n\t\treturn log;\r\n\t}",
"private void log() {\n\t\t\n//\t\tif (trx_loggin_on){\n\t\t\n\t\tif ( transLogModelThreadLocal.get().isTransLoggingOn() ) {\n\t\t\t\n\t\t\tTransLogModel translog = transLogModelThreadLocal.get();\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\ttransactionLogger.info(\"\"); // don't really need a msg here\n\t\t\t\n\t\t\t// TODO MDC maybe conflic with existing MDC using in the project\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\t\n\t\t\ttranslog.getAttributesOnce().clear();\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic void flushAll(InetSocketAddress arg0, long arg1)\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\n\t}",
"public synchronized void broadcastMsg(String msg) {\n try (BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(\"chatHistory.txt\", true)));) {\n bufferedWriter.append(msg).append(\"\\n\");\n } catch (IOException e) {\n LOG.error(\"Try save history to file\", e);\n e.printStackTrace();\n }\n\n for (ClientHandler clientHandler : clients) {\n clientHandler.sendMsg(msg);\n }\n }",
"@Override\r\n public void processRemoveAll()\r\n {\r\n final ICacheEvent<String> cacheEvent =\r\n createICacheEvent(getCacheName(), \"all\", ICacheEventLogger.REMOVEALL_EVENT);\r\n try\r\n {\r\n reset();\r\n }\r\n finally\r\n {\r\n logICacheEvent(cacheEvent);\r\n }\r\n }",
"@Override\n protected void append(LoggingEvent event) {\n if (event.getMessage() instanceof WrsAccessLogEvent) {\n WrsAccessLogEvent wrsLogEvent = (WrsAccessLogEvent) event.getMessage();\n\n try {\n HttpServletRequest request = wrsLogEvent.getRequest();\n if (request != null) {\n String pageHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_PAGEHASH));\n String requestHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_REQUESTHASH));\n String sessionId = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_SESSION_ID));\n String requestUrl = request.getRequestURL().toString();\n String reqQuery = request.getQueryString();\n requestUrl += (reqQuery != null ? \"?\" + reqQuery : \"\");\n if (requestUrl.length()> 2000)\n requestUrl = requestUrl.substring(0, 2000);\n String bindingSetName = wrsLogEvent.getBindingSetName();\n if (bindingSetName != null && bindingSetName.length()> 255)\n bindingSetName = bindingSetName.substring(0, 255);\n String requestXML = wrsLogEvent.getRequestDoc()!=null ? Utils.serializeElement(wrsLogEvent.getRequestDoc()) : null;\n\n // log access\n if(AccessSqlLogger.getInstance().isEnabled()) {\n final AccessSqlLogger.LogRecord recordAccess = new AccessSqlLogger.LogRecord(\n sessionId\n , requestUrl\n , pageHash\n , requestHash\n , bindingSetName\n , requestXML\n , wrsLogEvent.getRowCount()\n , wrsLogEvent.getValueCount()\n , wrsLogEvent.getRsStartTime()\n , wrsLogEvent.getRsEndTime()\n , wrsLogEvent.getWriteDuration()\n , wrsLogEvent.getExecuteDuration()\n );\n AccessSqlLogger.getInstance().process(recordAccess);\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\n\tpublic List<Log> finLogALL() {\n\t\tString sql = \"SELECT * FROM t_log ORDER BY ASC\";\n\t\tList<Log> list = null;\n\t\ttry {\n\t\t\tlist = qr.query(sql, new BeanListHandler<Log>(Log.class));\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}",
"private static void initLog() {\n LogManager.mCallback = null;\n if (SettingsManager.getDefaultState().debugToasts) {\n Toast.makeText(mContext, mContext.getClass().getCanonicalName(), Toast.LENGTH_SHORT).show();\n }\n if (SettingsManager.getDefaultState().debugLevel >= LogManager.LEVEL_ERRORS) {\n new TopExceptionHandler(SettingsManager.getDefaultState().debugMail);\n }\n //Si hubo un crash grave se guardo el reporte en el sharedpreferences, por lo que al inicio\n //levanto los posibles crashes y, si el envio por mail está activado , lo envio\n String possibleCrash = StoreManager.pullString(\"crash\");\n if (!possibleCrash.equals(\"\")) {\n OtherAppsConnectionManager.sendMail(\"Stack\", possibleCrash, SettingsManager.getDefaultState().debugMailAddress);\n StoreManager.removeObject(\"crash\");\n }\n }",
"@Postprocess\n public void getReport() {\n try {\n BufferedWriter bufferWriter = new BufferedWriter(new FileWriter(logfile, false));\n if (!results.isEmpty()) {\n bufferWriter.write(\"===========================================================\\n\");\n bufferWriter.write(\"sys_milli,\\t\\tdb_micro,\\t\\ttime_diff\\n\");\n Collections.sort(results);\n for (MysqlheartbeatBean mhb : results) {\n bufferWriter.write(String.valueOf(mhb.getSysMilli()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro() - mhb.getSysMilli()) + \"\\n\");\n }\n bufferWriter.flush();\n }\n bufferWriter.close();\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"{0}: {1}\", new Object[]{toolName, ex.getMessage()});\n }\n }",
"public boolean writeLogFile(){\n try {\n Log.i(LOG_TAG, \"Re-writing session log file:\");\n FileOutputStream outputStream = openFileOutput(logFileName, Context.MODE_PRIVATE);\n for (SessionLog item : sessionLogList){\n outputStream.write(item.toLogLine(false).getBytes());\n Log.i(LOG_TAG, \" - \"+item.toLogLine(false));\n }\n outputStream.close();\n Log.i(LOG_TAG, \"Wrote session log to file.\");\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n return true;\n }",
"private synchronized void updateLogCount() {\n this.logCount++;\n }",
"public void dataCachePrint()\n\t{\n\t\tSystem.out.println(\"DiffApp \" + nid + \": Printing the data cache: \" + dataCache.size() + \" entries.\");\n\t\tfor(DataCacheEntry entry: dataCache.values()){\n\t\t\tentry.printDataEntry() ;\n\t\t}\n\t}"
] | [
"0.598744",
"0.5859029",
"0.5826784",
"0.5796279",
"0.5725679",
"0.5705878",
"0.56872237",
"0.5684448",
"0.5675174",
"0.56162435",
"0.55781674",
"0.5574809",
"0.55294055",
"0.5477848",
"0.5472668",
"0.5432303",
"0.54209465",
"0.54000854",
"0.53962964",
"0.5346015",
"0.5295627",
"0.52902347",
"0.52821386",
"0.5266604",
"0.5259827",
"0.5254185",
"0.52529395",
"0.5239475",
"0.52382404",
"0.5232632",
"0.5225222",
"0.5201699",
"0.5193357",
"0.5190122",
"0.5160149",
"0.5121158",
"0.5111804",
"0.5109335",
"0.5109335",
"0.5109335",
"0.5098328",
"0.5076747",
"0.5073081",
"0.5058765",
"0.5047781",
"0.5037384",
"0.5034501",
"0.50301963",
"0.50205344",
"0.50188434",
"0.49984226",
"0.49968383",
"0.49861014",
"0.4982481",
"0.4975817",
"0.4971163",
"0.49655932",
"0.49650708",
"0.4958706",
"0.49530852",
"0.49405876",
"0.49348032",
"0.49344766",
"0.49243462",
"0.4917718",
"0.4917697",
"0.4905127",
"0.48968086",
"0.48944882",
"0.48806933",
"0.48786327",
"0.48784596",
"0.48759818",
"0.4873564",
"0.48716465",
"0.4869476",
"0.48504582",
"0.48482758",
"0.4846605",
"0.48460966",
"0.48453727",
"0.48413455",
"0.4840408",
"0.48398235",
"0.48284495",
"0.4828354",
"0.4813769",
"0.48114458",
"0.48087907",
"0.48010778",
"0.47948346",
"0.4782777",
"0.47802028",
"0.4773493",
"0.47722235",
"0.47654915",
"0.47647676",
"0.47635528",
"0.47615734",
"0.47591895",
"0.47581133"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
int[] a1 = {1,2,3,4,5,6,7,8,9};
System.out.println(containsDuplicates(a1));
int[] a2 = {1,2,3,4,6,6,7,8,9};
System.out.println(containsDuplicates(a2));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Json string to object | public static <T> T parse(String value, Class<T> clz){
if (StringUtils.isEmpty(value)) {
return null;
}
try {
return mapper.readValue(value, clz);
}
catch (Exception e) {
throw new IllegalStateException(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T fromJson(Object source);",
"public native Object parse( Object json );",
"<T> T fromJson(String json, Class<T> type);",
"public static <T> T string2Object(String source, Class<T> type){\n\t\treturn JSON.parseObject(source, type);\n\t}",
"public static final <V> V toObject(String json, Type type) {\n return gson.fromJson(json, type);\n }",
"public static <T> T json2pojo(String jsonStr, Class<T> clazz)\n throws Exception {\n return objectMapper.readValue(jsonStr, clazz);\n }",
"<T> T fromJson(String source, Class<T> type);",
"<T> T fromJson(String source, JavaType type);",
"<T> T parseToObject(Object json, Class<T> classObject);",
"<T> T toJsonPOJO(String jsonString, Class<T> classType);",
"public static JsonElement stringToJSON2(String json) {\n try {\n JsonElement parser = new JsonPrimitive(json);\n System.out.println(parser.getAsString());\n //JsonObject Jso = new JsonObject();\n //Jso = (JsonObject) parser.p(json);\n return parser;\n } catch (Exception e) {\n return new JsonObject();\n }\n }",
"public static <T> T parseJSON(final String jsonString, Class<T> type) {\r\n\t\tT retObject = null;\r\n\t\ttry {\r\n\t\t\tretObject = PARSER.parse(jsonString, type);\r\n\t\t} catch (ParseException ex) {\r\n\t\t\tLOGGER.log(Level.WARNING, \"JSON_UTIL:Error in de-serializing to object\", ex);\r\n\t\t\tretObject = null;\r\n\t\t}\r\n\t\treturn retObject;\r\n\t}",
"private <T> T convert(String json, Type resultObject) {\n\t\tGson gson = new GsonBuilder().create();\n\t\treturn gson.fromJson(json, resultObject);\n\t}",
"public static JinyouTestOne fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, JinyouTestOne.class);\n }",
"Map<String, Object> parseToMap(String json);",
"public Object parseJsonToObject(String response, Class<?> modelClass) {\n\n try {\n return gson.fromJson(response, modelClass);\n } catch (Exception ex) {\n ex.printStackTrace();\n return null;\n }\n }",
"public abstract void fromJson(JSONObject jsonObject);",
"protected <T> Object fromJson(String jsonString, Class<T> classInstance) {\n\n\t\tSystem.out.println(\"jsonString = \" + jsonString);\n\t\treturn gson.fromJson(jsonString, classInstance);\n\n\t}",
"public static <T> T fromJson(String json, Class<T> type)\n {\n return g.fromJson(json, type);\n }",
"public static ArticleInfo fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, ArticleInfo.class);\n }",
"public <T> T fromJson(String json, Type type) {\n return getGson().fromJson(json, type);\n }",
"public static JsonObject stringToJSON(String json) {\n try {\n JsonParser parser = new JsonParser();\n JsonObject Jso = parser.parse(json).getAsJsonObject();\n return Jso;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return new JsonObject();\n }\n }",
"private static Object m7292a(String str) throws JSONException {\n Object obj = null;\n String trim = str.trim();\n if (trim.startsWith(\"{\") || trim.startsWith(\"[\")) {\n obj = new JSONTokener(trim).nextValue();\n }\n return obj == null ? trim : obj;\n }",
"public static SofortInfo fromJson(String jsonString) throws JsonProcessingException {\n return JSON.getMapper().readValue(jsonString, SofortInfo.class);\n }",
"public Object stringToObject(String s, Class c){\n Gson gson = new Gson();\n Object o = gson.fromJson(s, c);\n return o;\n }",
"public FilterItems jsonToObject(String json){\n json = json.replace(\"body=\",\"{ \\\"body\\\" : \");\n json = json.replace(\"&oil=\",\", \\\"oil\\\" : \");\n json = json.replace(\"&transmission=\",\", \\\"transmission\\\" :\");\n json = json + \"}\";\n json = json.replace(\"[]\",\"null\");\n ObjectMapper mapper = new ObjectMapper();\n FilterItems itemSearch = null;\n try {\n itemSearch = mapper.readValue(json, FilterItems.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return itemSearch;\n }",
"public void deserialize(JsonObject src);",
"public @Nullable <T> T fromJson(@Nullable String jsonString, @NonNull Class<T> clazz) {\n return gson.fromJson(jsonString, clazz);\n }",
"public <T> T fromJson(String json, Class<T> clazz) {\n return getGson().fromJson(json, clazz);\n }",
"public static <T> T convertJsonStringToObject(String json,\n\t\t\tClass<T> valueType) {\n\t\ttry {\n\t\t\treturn mapper.readValue(json, valueType);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(\"Error converting Json String [\" + json\n\t\t\t\t\t+ \"] to [\" + valueType.getCanonicalName() + \"]\", e);\n\t\t}\n\t}",
"@Override\n\tpublic JSON parse(String in) throws IOException {\n\t\tMyJSON js = new MyJSON();\n\t\t//count brackets make sure they match\n\t\tif(!syntaxOkay(in)){\n\t\t\tthrow new IllegalStateException(\"Mismatched brackets error\");\n\t\t}\n\t\t//get rid of spaces to make things easier\n\t\tString withoutSpaces = remove(in, ' ');\n\t\t//handles edge case of an empty object\n\t\tString withoutBraces = remove(withoutSpaces, '{');\n\t\twithoutBraces = remove(withoutBraces, '}');\n\t\tif(withoutBraces.length() == 0){\n\t\t\treturn js;\n\t\t}\n\t\tint colonIndex = in.indexOf(\":\");\n\t\tString key = in.substring(0, colonIndex);\n\t\tString value = in.substring(colonIndex + 1);\n\n\t\tif(value.contains(\":\")){\n\t\t\t//this means the value is an object so we figure out how many strings to add to the object\n\t\t\tString[] values = value.split(\",\");\n\t\t\t//creates a temp for the new object\n\t\t\tMyJSON temp = new MyJSON();\n\t\t\tfillObject(values, temp);\n\t\t\tkey = removeOutsides(key);\n\t\t\tjs.setObject(key, temp);\n\t\t}else{\n\t\t\t//the base case that actually puts things as a JSON object\n\t\t\tkey = removeOutsides(key);\n\t\t\tvalue = removeOutsides(value);\n\t\t\tjs.setString(key, value);\n\t\t}\n\n\t\treturn js;\n\t}",
"public static <T> T mapJsonToObject(String json, Class<T> classType) {\n\t\tT obj = null;\n\t\tif (StringUtils.isBlank(json)) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\tobj = jsonMapper.readValue(json, classType);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"error mapJsonToObject: \" + e.getMessage());\n\t\t}\n\t\treturn obj;\n\t}",
"String parseObjectToJson(Object obj);",
"public static Object converFromJson(String src, Class cls) {\n\n String[] lines = src\n .replaceAll(\",\", \"\")\n .replaceAll(\"\\\"\", \"\")\n .split(\"\\n\");\n\n Map<String, String> keyValues = new HashMap<>();\n\n for (int i = 1; i < lines.length - 1; i++) {\n String[] keyAndValue = lines[i].trim().split(\":\");\n keyValues.put(keyAndValue[0], keyAndValue[1]);\n }\n\n try {\n Object obj = cls.newInstance();\n\n for (Field field : cls.getDeclaredFields()) {\n if (field.isAnnotationPresent(MyField.class)) {\n Type type = field.getType();\n if (type == double.class) {\n field.set(obj, Double.parseDouble(keyValues.get((field.getName()))));\n } else if (type == int.class) {\n field.set(obj, Integer.parseInt(keyValues.get((field.getName()))));\n } else if (type == boolean.class) {\n field.set(obj, Boolean.valueOf(keyValues.get((field.getName()))));\n } else {\n field.set(obj, keyValues.get((field.getName())));\n }\n }\n }\n\n return obj;\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n return null;\n }",
"Gist deserializeGistFromJson(String json);",
"public static JsonObject convertStringToJsonObject(final String str) {\n return JsonParser.parseString(str).getAsJsonObject();\n }",
"public static Example stringToJSON(String s){\n Gson gson = new Gson();\n JsonReader reader = new JsonReader(new StringReader(s));\n reader.setLenient(true);\n\n Example ex = gson.fromJson(reader, Example.class);\n\n return ex;\n }",
"private <T> T getObjectFromJsonObject(JSONObject j, Class<T> clazz) throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n T t = null;\n t = mapper.readValue(j.toString(), clazz);\n\n return t;\n }",
"public static RoyaltyEntity fromJson(String jsonString) throws IOException {\n return JSON.getGson().fromJson(jsonString, RoyaltyEntity.class);\n }",
"GistUser deserializeUserFromJson(String json);",
"public interface JsonParser {\n\n /**\n * convert string to POJO\n *\n * @param jsonString - string to convert to POJO\n * @param classType - POJO Type / Class Type to use for the deserialization\n * @param <T> the returned desirialized POJO\n * @return desiarilized POJO\n */\n <T> T toJsonPOJO(String jsonString, Class<T> classType);\n\n /**\n * convert from POJO to json string\n * @param data POJO to convert to json String\n * @return json string\n */\n String toJSONString(Object data);\n}",
"public void fromJSON(String json) throws JSONException;",
"public static <T> T fromJson(final String jsonString, final Class<T> clazz) {\n\t\treturn gson.fromJson(jsonString, clazz);\n\t}",
"public static Object decode(String content) {\n JsonElement obj = new JsonParser().parse(String.join(\"\", content));\n if (obj.isJsonNull()) {\n return null;\n }\n JsonObject newObj = obj.getAsJsonObject();\n return new exercise(newObj);\n }",
"static <T extends JSONSerializable> T deserialize(String json, Class<T> type) throws Exception {\n T result = type.newInstance();\n result.jsonDeserialize(json);\n return result;\n }",
"public static <T> T fromJSON(final String json, final Class<T> clazz) {\n return gson.fromJson(json, clazz);\n }",
"@Override\n public Object convertJsonToObject(String content) {\n try {\n Map<String, EventDataValue> data = reader.readValue(content);\n\n return convertEventDataValuesMapIntoSet(data);\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }",
"public abstract Object deserialize(Object object);",
"@Test\n public void simpleObject() throws IOException {\n String obj = \"{\\\"name\\\":\\\"value\\\",\\\"int\\\":1302,\\\"float\\\":1.57,\"\n + \"\\\"negint\\\":-5,\\\"negfloat\\\":-1.57,\\\"floatexp\\\":-1.5e7}\";\n JsonLexer l = new JsonLexer(new StringReader(obj));\n JsonParser p = new JsonParser(l);\n Map<String, Object> m = p.parseObject();\n\n assertEquals(6, m.size());\n assertEquals(\"value\", m.get(\"name\"));\n assertEquals(1302L, m.get(\"int\"));\n assertEquals(1.57, m.get(\"float\"));\n assertEquals(-5L, m.get(\"negint\"));\n assertEquals(-1.57, m.get(\"negfloat\"));\n assertEquals(-1.5e7, m.get(\"floatexp\"));\n }",
"public static <T> T pasarAObjeto(String json, Class<T> tipo) {\r\n try {\r\n ObjectMapper mapper = getBuilder().build();\r\n return mapper.readValue(json, tipo);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }",
"@Test\n public void readSystemObjectClassAppointmentRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AppointmentRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AppointmentRequest properly\", object.getClass(), actual.getClass());\n }",
"public native Object parse( Object json, String texturePath );",
"@Test\n public void readSystemObjectClassAppointment() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Appointment\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Appointment properly\", object.getClass(), actual.getClass());\n }",
"@Test\n public void readSystemObjectClassMedicineOrderRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"MedicineOrderRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return MedicineOrderRequest properly\", object.getClass(), actual.getClass());\n }",
"public static JSONObject saveStringToJSONObject(final String json) {\n JSONObject jsonObject = null;\n try {\n jsonObject = new JSONObject(json);\n } catch (final JSONException e) {\n Log.e(TAG, \"\" + e.getMessage());\n }\n return jsonObject;\n }",
"@Test\n public void readSystemObjectClassDoctorFeedback() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"DoctorFeedback\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return DoctorFeedback properly\", object.getClass(), actual.getClass());\n }",
"public static <T> T loadJson(String content, Class<T> valueType){\n return (T)JsonMapper.fromJsonString(content, valueType);\n }",
"private JSONObject serializeJson(String text){\n try {\n JSONObject jsonObject = new JSONObject(text);\n return jsonObject;\n }catch (JSONException err){\n return null;\n }\n }",
"@Test\n @SmallTest\n public void testReadFromJsonString() throws Throwable {\n final String jsonObjectString =\n \"{'crash-local-id':'123456abc','crash-capture-time':1234567890,\"\n + \"'crash-keys':{'app-package-name':'org.test.package'}}\";\n\n CrashInfo parsed = CrashInfo.readFromJsonString(jsonObjectString);\n CrashInfo expected =\n createCrashInfo(\"123456abc\", 1234567890, null, -1, \"org.test.package\", null);\n Assert.assertThat(parsed, equalsTo(expected));\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static<T> T createObjectFromJSON(final JSONObject json) throws JSONException {\n\t\tif(json.has(\"type\")) {\n\t\t\treturn (T) Helper.createItemFromJSON(json);\n\t\t} else if(json.has(\"triple_pattern\")) {\n\t\t\treturn (T) Helper.createTriplePatternFromJSON(json);\n\t\t} else if(json.has(\"histogram\")) {\n\t\t\treturn (T) Helper.createVarBucketFromJSON(json);\n\t\t} else {\n\t\t\tSystem.err.println(\"lupos.distributed.operator.format.Helper.createObjectFromJSON(...): Unknown type stored in JSON object, returning null!\");\n\t\t\treturn null;\n\t\t}\n\t}",
"public static Anuncio fromJson(String json) throws JsonParseException{\n Gson gson = new Gson();\n return gson.fromJson(json, Anuncio.class);\n }",
"public static JSONObject strToJson(String jsonstring) {\n JSONParser parser = new JSONParser();\n JSONObject json = null;\n try {\n json = (JSONObject) parser.parse(jsonstring);\n } catch (ParseException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return json;\n }",
"public interface ApiObject {\n\n String toJson();\n\n Object fromJson(JsonObject json);\n}",
"void mo59932a(String str, JSONObject jSONObject);",
"@Test\n public void readSystemObjectClassMedicine() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Medicine\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Medicine properly\", object.getClass(), actual.getClass());\n }",
"private JsonValidate convertFromJson(String result) {\n JsonValidate jv = null;\n if (result != null && result.length() > 0) {\n try {\n Gson gson = new Gson();\n jv = gson.fromJson(result, JsonValidate.class);\n } catch (Exception ex) {\n Log.v(Constants.LOG_TAG, \"Error: \" + ex.getMessage());\n }\n }\n return jv;\n }",
"public Object convertPayload(final String payload) {\n JsonValueBuilder b = SpinValues.jsonValue(payload);\n ;\n final JsonValue jsonValue = b.create();\n return jsonValue;\n }",
"public static <T> T getJSONObject(final String json, final Class<T> typeReference)\n\t{\n\t\tT obj = null;\n\t\ttry\n\t\t{\n\t\t\tobj = new ObjectMapper().readValue(json, typeReference);\n\t\t}\n\t\tcatch (final Exception exception)\n\t\t{\n\t\t\tLOG.error(\"Exception occured when converting string into object. Exception message: \", exception);\n\t\t}\n\t\treturn obj;\n\t}",
"public JSONModel(final String json) throws JSONException {\n jo = new JSONObject(json);\n }",
"public static Kaizen fromJson(String jsonString) {\n return new Gson().fromJson(jsonString, Kaizen.class);\n }",
"@Test\n public void readSystemObjectClassPrescription() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Prescription\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Prescription properly\", object.getClass(), actual.getClass());\n }",
"@Test\n public void readSystemObjectClassAccCrRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AccountCreationRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AccountCreationRequest properly\", object.getClass(), actual.getClass());\n }",
"T deserialize(JsonObject json, DynamicDeserializerFactory deserializerFactory) throws ClassNotFoundException;",
"GistComment deserializeCommentFromJson(String json);",
"@Test\n public void readSystemObjectClassAccDelRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AccountDeletionRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AccountDeletionRequest properly\", object.getClass(), actual.getClass());\n }",
"void mo16412a(String str, JSONObject jSONObject);",
"public static <T> T loadJson(String input, Class<T> classOfT) {\n Gson gson = new GsonBuilder().create();\n return gson.fromJson(input, classOfT);\n }",
"@Override\r\n public Object fromBinaryJava(byte[] bytes, Class<?> clazz) {\r\n return JSON.parseObject(bytes, clazz);\r\n }",
"public JSONString(String stringIn)\n {\n this.string = stringIn;\n }",
"static TodoItem fromJsonObject(JsonObject json) {\n TodoItem item = new TodoItem();\n item.setId(json.get(\"id\") == null ? -1 : json.getInt(\"id\"));\n item.setDescription(json.get(\"description\") == null ? null : json.getString(\"description\"));\n item.setCreatedAt(json.get(\"createdAt\") == null ? null : OffsetDateTime.parse(json.getString(\"createdAt\")));\n item.setDone(json.get(\"done\") == null ? false : json.getBoolean(\"done\"));\n LOGGER.fine(()->\"fromJsonObject returns:\"+item);\n return item;\n }",
"static <T extends SyntheticOptions> T optionsFromString(String json, Class<T> type)\n throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n T result = mapper.readValue(json, type);\n result.validate();\n return result;\n }",
"public void loadJson(String json) throws Exception {\r\n\t\tsetJsonToken(SimpleJson.textToHashMap(json));\r\n\t}",
"private static User getUserFromJson(String userJson) throws Exception {\n verifyJsonFormatting(userJson);\n ObjectMapper objectMapper = new ObjectMapper();\n return objectMapper.readValue(userJson, User.class);\n }",
"JsonObject raw();",
"@Test\n public void readUserClassPatient() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Patient\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Patient properly\", Factory.createUser(\"Patient\").getClass(), actual.getClass());\n }",
"public static <T> T getObject(final String json, final TypeReference<T> typeReference)\n\t{\n\t\tT obj = null;\n\t\ttry\n\t\t{\n\t\t\tobj = new ObjectMapper().readValue(json, typeReference);\n\t\t}\n\t\tcatch (final Exception exception)\n\t\t{\n\t\t\tLOG.error(\"Exception occured when converting string into object. Exception message: \", exception);\n\t\t}\n\t\treturn obj;\n\t}",
"private void testJsonObject(String jsonString, Citation entity) {\n JSONObject testObject = new JSONObject(jsonString);\n\n String pid = testObject.getString(\"pid\");\n String url = testObject.getString(\"url\");\n String erc = testObject.getString(\"erc\");\n String who = testObject.getString(\"who\");\n String what = testObject.getString(\"what\");\n String time = testObject.getString(\"date\");\n\n Assert.assertEquals(entity.getPurl(), pid);\n Assert.assertEquals(entity.getUrl(), url);\n Assert.assertEquals(entity.getErc(), erc);\n Assert.assertEquals(entity.getWho(), who);\n Assert.assertEquals(entity.getWhat(), what);\n Assert.assertEquals(entity.getDate(), time);\n }",
"private FieldDocument _fromJson (String json) {\n try {\n FieldDocument fd = this.mapper.readValue(json, FieldDocument.class);\n return fd;\n }\n catch (IOException e) {\n log.error(\"File json not found or unmappable: {}\",\n e.getLocalizedMessage());\n };\n return (FieldDocument) null;\n }",
"@Test\n public void readUserClassDoctor() throws UnsupportedEncodingException, IOException {\n testJson = gson.toJson(Factory.createUser(\"Doctor\"));\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n IUser actual = DataHandler.readUserClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Doctor properly\", Factory.createUser(\"Doctor\").getClass(), actual.getClass());\n }",
"@Test\n public void readSystemObjectClassMessage() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Message\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Message properly\", object.getClass(), actual.getClass());\n }",
"public static UserProfile fromJson(String jsonString) {\n final GsonBuilder builder = new GsonBuilder();\n builder.excludeFieldsWithoutExposeAnnotation();\n builder.setDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n final Gson gson = builder.create();\n return gson.fromJson(jsonString, UserProfile.class);\n }",
"private static JsonNode json2Node(String json) {\n try {\n return mapper.readTree(json);\n } catch (IOException e) {\n throw new IllegalStateException(\"Error mapping JSON: \" + json, e);\n }\n }",
"public static Object decode(JsonObject content) {\n return new exercise(content);\n }",
"public static Object fromJSON(quark.reflect.Class cls, Object result, io.datawire.quark.runtime.JSONObject json) {\n if (((json)==(null) || ((Object)(json) != null && ((Object) (json)).equals(null))) || ((json).isNull())) {\n return null;\n }\n Integer idx = 0;\n if ((result)==(null) || ((Object)(result) != null && ((Object) (result)).equals(null))) {\n if (((cls).name)==(\"quark.String\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.String\"))) {\n String s = (json).getString();\n return s;\n }\n if (((cls).name)==(\"quark.float\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.float\"))) {\n Double flt = (json).getNumber();\n return flt;\n }\n if (((cls).name)==(\"quark.int\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.int\"))) {\n Integer i = ((int) Math.round((json).getNumber()));\n return i;\n }\n if (((cls).name)==(\"quark.bool\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.bool\"))) {\n Boolean b = (json).getBool();\n return b;\n }\n result = (cls).construct(new java.util.ArrayList(java.util.Arrays.asList(new Object[]{})));\n }\n if (((cls).name)==(\"quark.List\") || ((Object)((cls).name) != null && ((Object) ((cls).name)).equals(\"quark.List\"))) {\n java.util.ArrayList<Object> list = (java.util.ArrayList<Object>) (result);\n while ((idx) < ((json).size())) {\n (list).add(Functions.fromJSON(((cls).getParameters()).get(0), null, (json).getListItem(idx)));\n idx = (idx) + (1);\n }\n return list;\n }\n java.util.ArrayList<quark.reflect.Field> fields = (cls).getFields();\n while ((idx) < ((fields).size())) {\n quark.reflect.Field f = (fields).get(idx);\n idx = (idx) + (1);\n if (Boolean.valueOf(((f).name).startsWith(\"_\"))) {\n continue;\n }\n if (!(((json).getObjectItem((f).name)).isNull())) {\n ((io.datawire.quark.runtime.QObject) (result))._setField((f).name, Functions.fromJSON((f).getType(), null, (json).getObjectItem((f).name)));\n }\n }\n return result;\n }",
"public static ResponseWrapper fromJson(String json)\n\t{ \n\t\tResponseWrapper response = new ResponseWrapper();\n\t\tresponse.fromJsonCore(json, \"response\", (type) -> type.getResponseContentType()); \n\t\treturn response;\n\t}",
"public static FeedWrapper convertToObjects(String json) {\n // TODO: GSON is created during each conversion - reusing possibilities need to be analyzed\n return new Gson().fromJson(json, FeedWrapper.class); // json -> pojos\n }",
"static public UserModel JSONtoModel(String input){\n UserModel model = new UserModel();\n model.Username = \"kting\";\n model.Password = \"123\";\n model.Email = \"[email protected]\";\n model.PreferredGym = \"Gym\";\n return model;\n }",
"public static <T> T getTestObject(String rs, Class<T> clazz) throws Exception {\n return JSON.parseObject(readSourceFile(rs), clazz);\n }",
"public Object readInternal(Class<? extends Object> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException {\n return JSON.parseObject(inputMessage.getBody(), this.fastJsonConfig.getCharset(), (Type) clazz, this.fastJsonConfig.getFeatures());\n }",
"private static FluidIngredient deserializeObject(JsonObject json) {\n if (json.entrySet().isEmpty()) {\n return EMPTY;\n }\n\n // fluid match\n if (json.has(\"name\")) {\n // don't set both, obviously an error\n if (json.has(\"tag\")) {\n throw new JsonSyntaxException(\"An ingredient entry is either a tag or an fluid, not both\");\n }\n\n // parse a fluid\n return FluidMatch.deserialize(json);\n }\n\n // tag match\n if (json.has(\"tag\")) {\n return TagMatch.deserialize(json);\n }\n\n throw new JsonSyntaxException(\"An ingredient entry needs either a tag or an fluid\");\n }",
"public static TestWebhookRequest fromJson(String jsonString) throws JsonProcessingException {\n return JSON.getMapper().readValue(jsonString, TestWebhookRequest.class);\n }"
] | [
"0.71494097",
"0.7062762",
"0.70175093",
"0.69727683",
"0.69477737",
"0.6932658",
"0.68742764",
"0.68595517",
"0.67602444",
"0.6724088",
"0.66787654",
"0.6669467",
"0.6604954",
"0.657764",
"0.6540441",
"0.6539313",
"0.6532676",
"0.65253866",
"0.65149105",
"0.6502414",
"0.65006983",
"0.6471989",
"0.6458261",
"0.6457995",
"0.64546174",
"0.6384537",
"0.6377352",
"0.63670677",
"0.6349695",
"0.6340237",
"0.631978",
"0.6306901",
"0.6299199",
"0.6286577",
"0.628164",
"0.6276096",
"0.6262043",
"0.6258289",
"0.62566525",
"0.6234061",
"0.6226124",
"0.6218527",
"0.62154883",
"0.6161291",
"0.6158052",
"0.61334145",
"0.6127566",
"0.6116715",
"0.61108",
"0.61013913",
"0.6085534",
"0.60746783",
"0.60592425",
"0.6041998",
"0.603097",
"0.60099375",
"0.598895",
"0.59864706",
"0.5984996",
"0.59806967",
"0.59788454",
"0.5954",
"0.5949293",
"0.5943247",
"0.5942997",
"0.5925631",
"0.5913921",
"0.5913872",
"0.59114534",
"0.590127",
"0.58826584",
"0.5881569",
"0.5873672",
"0.5868638",
"0.58658135",
"0.58593917",
"0.5846729",
"0.5839751",
"0.5828016",
"0.58248746",
"0.582374",
"0.5822044",
"0.58071387",
"0.58017325",
"0.5797023",
"0.5789885",
"0.57754153",
"0.57545334",
"0.5747217",
"0.57157326",
"0.5708658",
"0.57081115",
"0.5700745",
"0.5690494",
"0.56846523",
"0.5681422",
"0.56813157",
"0.56761205",
"0.5675886",
"0.5668666",
"0.5666009"
] | 0.0 | -1 |
Created by CodeGenerator on 2018/11/04. | public interface ISystemUpdateHistoryService extends IBaseService<SystemUpdateHistory> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public int describeContents() { return 0; }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"Consumable() {\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void init() {\n }",
"@Override\n void init() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void init() {}",
"public static void generateCode()\n {\n \n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"private TMCourse() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override public int describeContents() { return 0; }",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"private void m50366E() {\n }",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"private void kk12() {\n\n\t}",
"private void init() {\n\n\t}",
"public void mo4359a() {\n }",
"@Override\n public void initialize() { \n }",
"private ReportGenerationUtil() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"private Solution() {\n /**.\n * { constructor }\n */\n }",
"@Override\n\tpublic void jugar() {}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"@Override\n\tpublic void create () {\n\n\t}",
"private SourcecodePackage() {}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n protected void prot() {\n }",
"public void mo6081a() {\n }",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void init() {\n\t}",
"public void mo12930a() {\n }",
"private void poetries() {\n\n\t}",
"public void mo21785J() {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"public void method_4270() {}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }"
] | [
"0.60661477",
"0.6056204",
"0.60023725",
"0.59618723",
"0.59618723",
"0.5921887",
"0.584636",
"0.58240503",
"0.58086663",
"0.5758939",
"0.575788",
"0.5727575",
"0.57261026",
"0.57195747",
"0.57195747",
"0.57195747",
"0.57195747",
"0.57195747",
"0.57195747",
"0.5700906",
"0.56836337",
"0.5680224",
"0.5672078",
"0.5663459",
"0.56610984",
"0.56398976",
"0.5638046",
"0.56255543",
"0.5614085",
"0.560903",
"0.56041366",
"0.56002706",
"0.5596824",
"0.55901706",
"0.55870473",
"0.5573165",
"0.5573165",
"0.55728567",
"0.55677813",
"0.55677813",
"0.55595654",
"0.5558152",
"0.5555402",
"0.5549791",
"0.5549791",
"0.5549791",
"0.5549791",
"0.5549791",
"0.5547327",
"0.5540081",
"0.55360246",
"0.55331206",
"0.55331206",
"0.55331206",
"0.55292493",
"0.552833",
"0.55249923",
"0.5521524",
"0.5508059",
"0.5505501",
"0.5496199",
"0.549081",
"0.5484103",
"0.5481212",
"0.5474507",
"0.547032",
"0.54668266",
"0.5465858",
"0.5465858",
"0.545342",
"0.5450861",
"0.5446563",
"0.5446563",
"0.5446563",
"0.5442638",
"0.54398805",
"0.5437865",
"0.54356915",
"0.5435205",
"0.54329985",
"0.54320896",
"0.54320896",
"0.5429333",
"0.5429333",
"0.5429333",
"0.54289925",
"0.54289925",
"0.54289925",
"0.5426957",
"0.54267013",
"0.54204255",
"0.54127485",
"0.541132",
"0.5411006",
"0.54078406",
"0.54058665",
"0.5402307",
"0.5399454",
"0.5396427",
"0.53911674",
"0.53911674"
] | 0.0 | -1 |
set the data into each viewHolder (ie. place what each emotion has into the view) | @Override
public void onBindViewHolder(ViewHolder holder, int position) {
holder.title.setText(problems.getProblem(position).getTitle());
holder.date.setText(problems.getProblem(position).getDate());
holder.description.setText(problems.getProblem(position).getDescription());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void populateViews() {\n TextView songName = findViewById(R.id.songName);\n songName.setText(songs.getSongName());\n TextView albumName = findViewById(R.id.albumPlayerAlbumName);\n albumName.setText(songs.getAlbumName());\n TextView artistName = findViewById(R.id.albumPlayerArtistName);\n artistName.setText(songs.getArtistName());\n ImageView albumCover = findViewById(R.id.albumPlayerImage);\n albumCover.setImageResource(songs.getId());\n\n }",
"private void setValues() {\n for (int i = 0; i < name.length; i++) {\n TagViewDetailsModel listModel = new TagViewDetailsModel();\n listModel.setItemImage(image[i]);\n listModel.setItemName(name[i]);\n listModel.setDistance(distance[i]);\n listModel.setTags(tags[i]);\n listModel.setRating(rating[i]);\n savedListModels.add(listModel);\n }\n savedListAdapter = new TagViewDetailsAdapter(TagViewDetailsActivity.this, savedListModels);\n rvTagViewDetails.setAdapter(savedListAdapter);\n }",
"private void setViews() {\n\n TextView currentApixu = findViewById(R.id.currentApixu);\n TextView currentOwm = findViewById(R.id.currentOwm);\n TextView currentWu = findViewById(R.id.currentWu);\n\n currentApixu.setText(feedValues[0]);\n currentOwm.setText(feedValues[1]);\n currentWu.setText(feedValues[2]);\n }",
"private void setRecyclerViewData() {\n\n itemList = new ArrayList<ListItem>();\n itemList.add(new RememberCardView(\"Du musst 12€ zahlen\"));\n itemList.add(new DateCardItem(\"Mo\", \"29.07.\", \"Training\", \"20:00\", \"21:45\"));\n itemList.add(new VoteCardItem(\"Welche Trikotfarbe ist besser?\"));\n }",
"private void prepareViews() {\n mTextViewHeader = (TextView) mHeaderView.findViewById(R.id.tv_text_header_enhanced_listview);\n mTextViewFooter = (TextView) mFooterView.findViewById(R.id.tv_text_footer_enhanced_listview);\n mTextViewTime = (TextView) mHeaderView.findViewById(R.id.tv_time_update_header);\n\n mArrowHeader = mHeaderView.findViewById(R.id.arrow_header);\n mArrowFooter = mFooterView.findViewById(R.id.arrow_footer);\n\n mPbHeader = mHeaderView.findViewById(R.id.pb_header_enhanced_listview);\n mPbFooter = mFooterView.findViewById(R.id.pb_footer_enhanced_listview);\n\n }",
"private void initData() {\n contents.clear();\n images.clear();\n contents.add(\"荣誉殿堂\");\n contents.add(getResources().getString(R.string.mine_item1));\n contents.add(getResources().getString(R.string.mine_item2));\n contents.add(getResources().getString(R.string.mine_item4));\n contents.add(getResources().getString(R.string.mine_item3));\n\n String sex = SPHelper.getDetailMsg(getActivity(), Cons.USER_INFO, getString(R.string.appsex_man));\n images.add(BGHelper.setButtonSetting(getActivity(), sex));\n images.add(BGHelper.setButtonNotify(getActivity(), sex));\n images.add(BGHelper.setButtonReport(getActivity(), sex));\n images.add(sex.equals(\"M\") ? R.drawable.ioc_mine_que_blue : R.drawable.ioc_mine_que_red);\n images.add(BGHelper.setButtonSetting(getActivity(), sex));\n\n\n adapter = new MineAdapter(getActivity(), contents, images, this);\n lv_mine.setAdapter(adapter);\n }",
"private void initViews() {\n animalImageNIV = (NetworkImageView)findViewById(R.id.animal_image_niv);\n\n animalIdTV = (TextView)findViewById(R.id.animal_id_tv);\n rfidTV = (TextView)findViewById(R.id.rfid_tv);\n otherIdTV = (TextView)findViewById(R.id.other_id_tv);\n statusTV = (TextView)findViewById(R.id.status_tv);\n\n speciesTV = (TextView)findViewById(R.id.species_tv);\n sexTV = (TextView)findViewById(R.id.sex_tv);\n breedsTV = (TextView)findViewById(R.id.breeds_tv);\n dobTV = (TextView)findViewById(R.id.dob_tv);\n\n ownerTV = (TextView)findViewById(R.id.owner_tv);\n experimentTV = (TextView)findViewById(R.id.experiment_tv);\n locationCanvasLL = (LinearLayout)findViewById(R.id.location_canvas_ll);\n locLayer1TV = (TextView)findViewById(R.id.loc_layer_1_tv);\n locLayer2TV = (TextView)findViewById(R.id.loc_layer_2_tv);\n locCommentTV = (TextView)findViewById(R.id.loc_comment_tv);\n\n damCanvasLL = (LinearLayout)findViewById(R.id.dam_canvas_ll);\n damCanvasLL.setOnClickListener(this);\n damIdTV = (TextView)findViewById(R.id.dam_id_tv);\n damBreedsTV = (TextView)findViewById(R.id.dam_breeds_tv);\n damStatusTV = (TextView)findViewById(R.id.dam_status_tv);\n\n sireCanvasLL = (LinearLayout)findViewById(R.id.sire_canvas_ll);\n sireCanvasLL.setOnClickListener(this);\n sireIdTV = (TextView)findViewById(R.id.sire_id_tv);\n sireBreedsTV = (TextView)findViewById(R.id.sire_breeds_tv);\n sireStatusTV = (TextView)findViewById(R.id.sire_status_tv);\n\n recordFAB = (FloatingActionButton)findViewById(R.id.record_fab);\n recordFAB.setOnClickListener(this);\n }",
"public void fillViews(){\n if(interestPoint.getContents().size() > 0){\n contentList = (RecyclerView)findViewById(R.id.recyclerView);\n contentList.setAdapter(new ContentSelectionAdapter(this, interestPoint.getContents())); // Pass the ids for the icons\n contentList.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));\n\n // Get first subject to populate views\n Content first = interestPoint.getContents().get(0);\n\n Content.DisplayValues dv = first.getDisplayValues(Locale.getDefault());\n ((TextView) findViewById(R.id.subject_title)).setText(dv.title);\n ((TextView) findViewById(R.id.subject_content)).setText(Html.fromHtml(dv.description));\n\n // Load multimedia\n LayoutInflater inflater = getLayoutInflater();\n LinearLayout linearLayout = ((LinearLayout)findViewById(R.id.content_container));\n linearLayout.removeAllViewsInLayout();\n for(Multimedia m : first.getMultimedia()){\n NetworkImageView imageView = (NetworkImageView) inflater.inflate(R.layout.content_image, null);\n String url = \"http://\" + m.geteURL();\n ImageLoader loader = RequestManager.getInstance(getApplicationContext()).getImageLoader();\n loader.get(url, loader.getImageListener(imageView, R.mipmap.ic_launcher, R.mipmap.ic_launcher_round));\n imageView.setImageUrl(url, loader);\n\n linearLayout.addView(imageView);\n }\n\n final int pathID = (int)getIntent().getExtras().getLong(\"PathwayID\");\n // Read the path from the network\n PathUtils.readPathFromNetwork(this, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n path = PathwayJSON.createFullPathFromJSON(ContentActivity.this, response);\n }catch(Exception e){\n Log.e(\"PATH LOADING ERROR\", \"Failed loading the path\");\n }\n\n ((TextView)findViewById(R.id.regionText)).setText(String.valueOf(path.getreg()));\n ((TextView)findViewById(R.id.countryText)).setText(String.valueOf(path.getcouEN()));\n\n }\n }, pathID);\n }\n }",
"private void initViews() {\n removeAllViews();\n this.setOrientation(HORIZONTAL);\n this.setOnTouchListener(this);\n\n TextView textView;\n ImageView imageView;\n for (PickerItem pickerItem : items) {\n if (pickerItem.hasDrawable()) {\n imageView = new ImageView(getContext());\n imageView.setImageResource(pickerItem.getDrawable());\n imageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE);\n initStyle(imageView);\n this.addView(imageView);\n } else {\n if (pickerItem.getText() != null) {\n textView = new TextView(getContext());\n textView.setGravity(Gravity.CENTER);\n textView.setText(pickerItem.getText());\n initStyle(textView);\n this.addView(textView);\n }\n }\n }\n }",
"private void findViews() {\n jurgen = (ImageView) findViewById(R.id.jurgen_view);\n jurgen.setTag(JURGEN_VIEW_TAG);\n joost = (ImageView) findViewById(R.id.joost_view);\n joost.setTag(JOOST_VIEW_TAG);\n nick = (ImageView) findViewById(R.id.nick_view);\n nick.setTag(NICK_VIEW_TAG);\n stijn = (ImageView) findViewById(R.id.stijn_view);\n stijn.setTag(STIJN_VIEW_TAG);\n }",
"private void initLsitData() {\n\t\tlist = new ArrayList<View>();\n\n\t\tlist.add(new NewsMenupagerItem(Mactivity,TY).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,YL).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,QW).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,MV).initView());\n\n\n\t}",
"private void setData() {\n\n if (id == NO_VALUE) return;\n MarketplaceItem item = ControllerItems.getInstance().getModel().getItemById(id);\n if (item == null) return;\n\n ControllerAnalytics.getInstance().logItemView(id, item.getTitle());\n\n if (item.getPhotos() != null\n && item.getPhotos().size() > 0 &&\n !TextUtils.isEmpty(item.getPhotos().get(0).getSrc_big(this)))\n Picasso.with(this).load(item.getPhotos().get(0).getSrc_big(this)).into((ImageView) findViewById(R.id.ivItem));\n else if (!TextUtils.isEmpty(item.getThumb_photo()))\n Picasso.with(this).load(item.getThumb_photo()).into((ImageView) findViewById(R.id.ivItem));\n\n adapter.updateData(item, findViewById(R.id.rootView));\n }",
"private void init(){\n for(int i=0; i<MyRoomWriteActivity.myroomwritetag.size(); i++){\r\n if(i ==0){\r\n MyRoomWriteActivity.mr_write_tag1.setText(\"#\"+MyRoomWriteActivity.myroomwritetag.get(i));\r\n }else if(i ==1){\r\n MyRoomWriteActivity.mr_write_tag2.setText(\"#\"+MyRoomWriteActivity.myroomwritetag.get(i));\r\n }else if(i ==2){\r\n MyRoomWriteActivity.mr_write_tag3.setText(\"#\"+MyRoomWriteActivity.myroomwritetag.get(i));\r\n }else if(i ==3){\r\n MyRoomWriteActivity.mr_write_tag4.setText(\"#\"+MyRoomWriteActivity.myroomwritetag.get(i));\r\n }else if(i ==4){\r\n MyRoomWriteActivity.mr_write_tag5.setText(\"#\"+MyRoomWriteActivity.myroomwritetag.get(i));\r\n }\r\n\r\n }\r\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.mImageView1.setImageResource(mDataset.get(position).img1);\n holder.mTextView1.setText(mDataset.get(position).text1);\n holder.mImageView2.setImageResource(mDataset.get(position).img2);\n holder.mTextView2.setText(mDataset.get(position).text2);\n holder.mTextView3.setText(mDataset.get(position).text3);\n\n }",
"@Override\n public void onBindViewHolder(final ViewHolder holder, final int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n if(values != null) {\n final Genres genre = values.get(position);\n holder.txtHeader.setText(genre.getName());\n holder.txtFooter.setText(\"Type : \" + genre.getType());\n\n Picasso.get().load(img_url).resize(170,180).into(holder.img);\n\n }else if(animevalues != null){\n final Anime anime = animevalues.get(position);\n holder.txtHeader.setText(anime.getTitle());\n /*holder.txtHeader.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n }\n });*/\n holder.txtFooter.setText(\"Type : \" + anime.getType());\n\n Picasso.get().load(anime.getImage_url()).resize(150,180).into(holder.img);\n }\n }",
"private void initializeViews() {\n mAllEditTexts = new ArrayList<>();\n\n mImagesRecyclerView = findViewById(R.id.images_recycler_view);\n mAddPictureBtn = findViewById(R.id.add_picture_btn);\n\n mSaleStatusImage = findViewById(R.id.sale_status_image);\n mSaleStatusImage.setTag(FOR_SALE_TAG);\n\n mTypeSpinner = findViewById(R.id.type_spinner);\n mBedroomsSpinner = findViewById(R.id.rooms_spinner);\n\n mTypeSpinner.setAdapter(new ArrayAdapter<>(this, R.layout.spinner_item, getResources().getStringArray(R.array.spinner_types)));\n mBedroomsSpinner.setAdapter(new ArrayAdapter<>(this, R.layout.spinner_item, getResources().getStringArray(R.array.spinner_number_of_rooms)));\n\n mSurfaceAreaText = findViewById(R.id.surface_area_text1);\n mPriceEditText = findViewById(R.id.price_edit_text1);\n mAddressPostcodeEditText = findViewById(R.id.address_postcode_et1);\n mAddressNumberEditText = findViewById(R.id.address_number_et1);\n mAddressStreetEditText = findViewById(R.id.address_street_et1);\n mAddressTownEditText = findViewById(R.id.address_town_et1);\n mAddressCountyEditText = findViewById(R.id.address_county_et1);\n mDescriptionEditText = findViewById(R.id.description_edit_text1);\n mBuyOrLetSwitch = findViewById(R.id.buy_or_let);\n\n mSaveButton = findViewById(R.id.savebtn);\n\n mAllEditTexts.add(mSurfaceAreaText);\n mAllEditTexts.add(mPriceEditText);\n mAllEditTexts.add(mAddressPostcodeEditText);\n mAllEditTexts.add(mAddressNumberEditText);\n mAllEditTexts.add(mAddressStreetEditText);\n mAllEditTexts.add(mAddressTownEditText);\n mAllEditTexts.add(mAddressCountyEditText);\n mAllEditTexts.add(mDescriptionEditText);\n\n }",
"public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_car_type_select, R.string.can_car_lock_set, R.string.can_ac_set, R.string.can_light_set, R.string.can_sshbl, R.string.can_cds, R.string.can_car_info, R.string.can_oil_mile_info, R.string.can_tmps, R.string.can_other_set, R.string.can_lang_set};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON};\n this.mItemIcons = new int[]{R.drawable.can_icon_esc, R.drawable.can_icon_lock, R.drawable.can_icon_ac, R.drawable.can_icon_light, R.drawable.can_icon_service, R.drawable.can_icon_cds, R.drawable.can_icon_sudu, R.drawable.can_icon_consumption, R.drawable.can_icon_tpms, R.drawable.can_icon_setup, R.drawable.can_icon_tyres};\n this.mItemVisibles[0] = 0;\n this.mItemVisibles[1] = 0;\n this.mItemVisibles[3] = 0;\n this.mItemVisibles[4] = 0;\n this.mItemVisibles[5] = 0;\n this.mItemVisibles[6] = 0;\n this.mItemVisibles[7] = 0;\n this.mItemVisibles[8] = 0;\n this.mItemVisibles[9] = 0;\n }",
"@Override\n public void onBindViewHolder(ViewHolder viewHolder, final int position) {\n Log.d(TAG, \"Element \" + position + \" set.\");\n\n // Get element from your dataset at this position and replace the contents of the view\n // with that element\n //viewHolder.getTextView().setText(mDataSet[position]);\n TextDrawable drawable = TextDrawable.builder().buildRound(\"AB\", Color.RED);\n viewHolder.getIconView().setImageDrawable(drawable);\n viewHolder.getNameView().setText(items.get(position).getName());\n viewHolder.getEmailView().setText(items.get(position).getEmail());\n viewHolder.getJobTitleView().setText(items.get(position).getJobTitle());\n viewHolder.getLocationView().setText(items.get(position).getLocation());\n viewHolder.getExtView().setText(items.get(position).getExt());\n }",
"private void initViews() {\n\t\t// TODO Auto-generated method stub\n\t\t// venuePager = (ViewPager)findViewById(R.id.pager);\n\n\t\tmyGallery = (LinearLayout) findViewById(R.id.horizontalScrollItems);\n\n\t\tvenueImageLarge = (ImageView) findViewById(R.id.imageVenueLarge);\n\n\t\tinfoImageView = (ImageView) findViewById(R.id.imageInfo);\n\n\t\tcloseBtn = (ImageView) findViewById(R.id.imageclose);\n\n\t\tvenueCapacity = (TextView) findViewById(R.id.venueCapacity);\n\n\t\tvenueDes = (TextView) findViewById(R.id.venueDes);\n\n\t\tvenueName = (TextView) findViewById(R.id.venueName);\n\n\t\tvenueRelative = (RelativeLayout) findViewById(R.id.venue_relative);\n\n\t\tviewAnimator = (ViewAnimator) this.findViewById(R.id.viewFlipper_venue);\n\n\t\tvenueFullname = (TextView) findViewById(R.id.venueFullnameValue);\n\n\t\tvenueCity = (TextView) findViewById(R.id.venueCityValue);\n\n\t\tvenueOwner = (TextView) findViewById(R.id.venueOwnerValue);\n\n\t\tvenueOpened = (TextView) findViewById(R.id.venueOpenedValue);\n\n\t\tvenueSurface = (TextView) findViewById(R.id.venueSurfaceValue);\n\n\t\tvenueWebsite = (TextView) findViewById(R.id.venueWebsiteValue);\n\n\n\t}",
"@Override\n public void onBindViewHolder(DetailAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n //holder.mTextView.setText(mDataset[position]);\n holder.informacion.setText(mDataset[position]); //informacion es el dato que nos entrega el arreglo\n }",
"@Override\r\n\tpublic void setupView() {\n\t\tbitmapUtils.configDefaultBitmapConfig(Config.RGB_565);//设置图片压缩类型\r\n\t\tbitmapUtils.configDefaultLoadingImage(R.drawable.test_default_wait_img);// 默认背景图片\r\n\t\tbitmapUtils.configDefaultLoadFailedImage(R.drawable.test_default_wait_img);// 加载失败图片\r\n\t\t\r\n\t\t// 获取数据\r\n\t\tintent = getIntent();\r\n\t\tBlogsInfoEntity entity = (BlogsInfoEntity) intent.getSerializableExtra(\"entity\");\r\n\t\tlist_images = entity.getImg_attachment();\r\n\t\tint position = intent.getIntExtra(\"position\", 0);\r\n\t\tleft_btn = (ImageView) findViewById(R.id.left_btn);\r\n\t\tleft_btn.setOnClickListener(l);\r\n\t\tcenter_content = (TextView) findViewById(R.id.center_content);\r\n\t\tcenter_content.setText(String.valueOf(position + 1) + \"/\"+ String.valueOf(list_images.size()));\r\n\t\tmViewPager = (CustomViewPager) findViewById(R.id.pager);\r\n\t\tmViewPager.setScanScroll(true);\r\n\t\tSamplePagerAdapter adapter = new SamplePagerAdapter();// 声明适配器\r\n\t\tmViewPager.setAdapter(adapter);// 绑定\r\n\t\tmViewPager.setCurrentItem(position);\r\n\t\tmViewPager.setOnPageChangeListener(new OnPageChangeListener() {\r\n\t\t\t// 页面更变\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageSelected(int position) {\r\n\t\t\t\tcenter_content.setText(String.valueOf(position + 1) + \"/\"+ String.valueOf(list_images.size()));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int state) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageScrolled(int position, float positionOffset,\r\n\t\t\t\t\tint positionOffsetPixels) {\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public void initData(){\n\n String birdname,birdscientificname,birdfamily,birdecosystem;\n Bundle extras = getActivity().getIntent().getExtras();\n if(extras == null) {\n birdname=null;\n birdscientificname=null;\n birdfamily=null;\n birdecosystem=null;\n } else {\n birdname=extras.getString(\"birdname\");\n birdscientificname=extras.getString(\"birdscientificname\");\n birdfamily=extras.getString(\"birdfamily\");\n birdecosystem=extras.getString(\"birdecosystem\");\n }\n\n presenter.initData(birdname,birdscientificname,birdfamily,birdecosystem,imageView1,imageView2,imageView3);\n }",
"protected void findAndCacheViews(View view) {\n\t SpeakerItemViews views = new SpeakerItemViews();\n\t views.headerView = view.findViewById(R.id.header);\n\t views.headerTextView = (TextView) view.findViewById(R.id.header_text);\n\t views.dividerView = view.findViewById(R.id.session_divider);\n\t views.nameView = (TextView) view.findViewById(R.id.speaker_name);\n\t views.companyView = (TextView) view.findViewById(R.id.speaker_company);\n\t views.starButton = (CheckBox) view.findViewById(R.id.star_button);\n\t view.setTag(views);\n\t }",
"private void iniAllObjects(){\n References = new HashSet<>();\n\n TurnBack = findViewById(R.id.onItem_back);\n TurnBack.setOnClickListener(this);\n ShowOptions = findViewById(R.id.onItem_options);\n ShowOptions.setOnClickListener(this);\n\n RefrButton = findViewById(R.id.onItem_refr);\n RefrButton.setOnClickListener(this);\n RootButton = findViewById(R.id.onItem_root);\n RootButton.setOnClickListener(this);\n BackPageButton = findViewById(R.id.onItem_backpage);\n BackPageButton.setOnClickListener(this);\n AddPageButton = findViewById(R.id.onItem_add);\n AddPageButton.setOnClickListener(this);\n\n ItemType = findViewById(R.id.onItem_type);\n ItemWord = findViewById(R.id.onItem_word);\n ItemTran = findViewById(R.id.onItem_tran);\n ItemFon = findViewById(R.id.onItem_fon);\n ItemFlag = findViewById(R.id.onItem_flag);\n\n //iniRecyclerViewFragment();\n setObjectsContent();\n\n DotLayout = findViewById(R.id.onItem_dot);\n\n SlideViewPager = findViewById(R.id.onItem_ViewPager);\n SlideViewPager.addOnPageChangeListener(this);\n sliderAdapter = new SliderAdapter(this, getIntent().getExtras().getString(\"ThisInfo\"));\n SlideViewPager.setAdapter(sliderAdapter);\n\n addDotIndicator(0);\n }",
"public static void setFixtureView(Context context, RemoteViews views, Cursor cursor) {\n\n String homeTeamName = cursor.getString(cursor.getColumnIndex(DatabaseContract.scores_table.HOME_COL));\n views.setTextViewText(R.id.home_name, homeTeamName);\n //views.setTextColor(R.id.home_name, ContextCompat.getColor(context, R.color.blue09));\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {\n Utils.setImageContentDescription(views, R.id.home_crest, homeTeamName);\n }\n // score and match time\n views.setTextViewText(R.id.score_textview, Utils.getScores(\n cursor.getInt(cursor.getColumnIndex(DatabaseContract.scores_table.HOME_GOALS_COL)),\n cursor.getInt(cursor.getColumnIndex(DatabaseContract.scores_table.AWAY_GOALS_COL))));\n // views.setTextColor(R.id.score_textview, ContextCompat.getColor(context, R.color.blue09));\n views.setTextViewText(R.id.date_textview, cursor.getString(cursor.getColumnIndex(DatabaseContract.scores_table.TIME_COL)));\n // views.setTextColor(R.id.date_textview, ContextCompat.getColor(context, R.color.blue09));\n\n // away team logo and name\n // setPicasso(context, views, R.id.away_crest, cursor.getString(cursor.getColumnIndex(DatabaseContract.scores_table.AWAY_LOGO_COL)));\n\n String awayTeamName = cursor.getString(cursor.getColumnIndex(DatabaseContract.scores_table.AWAY_COL));\n views.setTextViewText(R.id.away_name, awayTeamName);\n // views.setTextColor(R.id.away_name, ContextCompat.getColor(context, R.color.blue09));\n\n // set content description on away team logo\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {\n Utils.setImageContentDescription(views, R.id.away_crest, awayTeamName);\n }\n }",
"private void prepareView(){\n mAvatar = (ImageButton)findViewById(R.id.btnAvatar);\n mAvatar.setOnClickListener(this);\n\n mName = (TextView)findViewById(R.id.tvName);\n mEmail = (TextView)findViewById(R.id.tvEmail);\n mWelcome = (TextView)findViewById(R.id.tvSelectionTitle);\n\n mDesigner = (ImageButton)findViewById(R.id.btnDesigner);\n mDesigner.setOnClickListener(this);\n\n mDeveloper = (ImageButton)findViewById(R.id.btnDeveloper);\n mDeveloper.setOnClickListener(this);\n }",
"public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_carset_ljzmys, R.string.can_carset_hjzmys, R.string.can_carset_15zdls, R.string.can_carset_ecjs, R.string.can_carset_kmtzys, R.string.can_carset_jcygd, R.string.can_carset_ykjc, R.string.can_carset_ykss, R.string.can_carset_ddyczm, R.string.can_carset_logod, R.string.can_carset_hsjzdzd, R.string.can_carset_cbjdq, R.string.can_carset_jsyzdhw, R.string.can_carset_zxzdkqqwd};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH};\n this.mPopValueIds[0] = new int[]{R.array.can_baic_hss6_zmys};\n this.mPopValueIds[1] = this.mPopValueIds[0];\n this.mPopValueIds[3] = new int[]{R.string.can_sym, R.string.can_jsym};\n this.mPopValueIds[8] = new int[]{R.string.can_headlightautoofftime_0s, R.string.can_headlightautoofftime_8s, R.string.can_headlightautoofftime_15s, R.string.can_headlightautoofftime_30s};\n this.mPopValueIds[11] = new int[]{R.string.can_carset_gcms, R.string.can_carset_yhms};\n this.mAdtData = new CanDataInfo.BaicHsS6Set();\n this.mSetData = new CanDataInfo.BaicHsS6Set();\n }",
"@Override\n\tpublic void findViews() {\n\t\tet1 = (TextView) findViewById(R.id.et1);\n\t\tet2 = (TextView) findViewById(R.id.et2);\n\t\tet3 = (TextView) findViewById(R.id.et3);\n\t\tet4 = (TextView) findViewById(R.id.et4);\n\t\tet5 = (TextView) findViewById(R.id.et5);\n\t\tet6 = (TextView) findViewById(R.id.et6);\n\t\tet7 = (TextView) findViewById(R.id.et7);\n\t\tet8 = (TextView) findViewById(R.id.et8);\n\t\tet9 = (TextView) findViewById(R.id.et9);\n\t\tet10 = (TextView) findViewById(R.id.et10);\n\t\tet11 = (TextView) findViewById(R.id.et11);\n\t\tet12 = (TextView) findViewById(R.id.et12);\n\t\tet13 = (TextView) findViewById(R.id.et13);\n\t\tet14 = (TextView) findViewById(R.id.et14);\n\t\ttv_total1 = findViewById(R.id.tv_total1);\n\t\ttv_total2 = findViewById(R.id.tv_total2);\n\t\tiv1 = findViewById(R.id.im1);\n\t\tiv2 = findViewById(R.id.im2);\n\t\tiv3 = findViewById(R.id.im3);\n\t\tiv4 = findViewById(R.id.im4);\n\t\tiv5 = findViewById(R.id.im5);\n\t\tiv6 = findViewById(R.id.im6);\n\t\tiv7 = findViewById(R.id.im7);\n\t\tiv8 = findViewById(R.id.im8);\n\t\tiv9 = findViewById(R.id.im9);\n\t\tiv10 = findViewById(R.id.im10);\n\t\tiv11 = findViewById(R.id.im11);\n\t\tiv12 = findViewById(R.id.im12);\n\t\tiv13 = findViewById(R.id.im13);\n\t\tiv14 = findViewById(R.id.im14);\n\t\ttv_title1 = (TextView) findViewById(R.id.tv_title1);\n\t\ttv_title2 = (TextView) findViewById(R.id.tv_title2);\n\t\ttv_title3 = (TextView) findViewById(R.id.tv_title3);\n\t\ttv_title4 = (TextView) findViewById(R.id.tv_title4);\n\t\ttv_title5 = (TextView) findViewById(R.id.tv_title5);\n\t\ttv_title6 = (TextView) findViewById(R.id.tv_title6);\n\t\ttv_title7 = (TextView) findViewById(R.id.tv_title7);\n\t\tll_progress = (LinearLayout) findViewById(R.id.ll_progress);\n\t\tll_progress.setVisibility(View.VISIBLE);\n\t}",
"public ViewHolder(View v) {\n super(v);\n Typeface oldLondon = Typeface.createFromAsset(context.getAssets(), \"fonts/Blackwood Castle.ttf\");\n\n iView = (ImageView) v.findViewById(to[0]);\n nameView = (TextView) v.findViewById(to[1]);\n nameView.setTypeface(oldLondon);\n descView = (TextView) v.findViewById(to[2]);\n boostView = (TextView) v.findViewById(to[3]);\n }",
"public ViewHolder(View itemView) {\n super(itemView);\n imageView = itemView.findViewById(R.id.ivSomeImage);\n textView = itemView.findViewById(R.id.tvSomeText);\n }",
"public void setRoutineElements() {\n\n routineNameTextView = findViewById(R.id.routineNameTV);\n routineTypeTextView = findViewById(R.id.routineTypeTV);\n\n routineItem = (Routine) getIntent().getSerializableExtra(INTENT_OBJECT_EXTRA);\n\n routineNameTextView.setText(routineItem.getName());\n routineTypeTextView.setText(routineItem.getType());\n\n mRecyclerView = (RecyclerView) findViewById(R.id.exercises_recycler);\n\n mRecyclerView.setHasFixedSize(true);\n\n mLayoutManager = new LinearLayoutManager(this);\n mRecyclerView.setLayoutManager(mLayoutManager);\n\n mAdapter = new ExerciseInRoutineAdapter(ShowRoutine.this, item -> {\n AlertDialog diaBox = AskOption(item);\n diaBox.show();\n });\n\n new AsyncLoad().execute();\n mRecyclerView.setAdapter(mAdapter);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n HashMap<String, String> map = new HashMap<String, String>();\n //FILL\n for (int i = 0; i < players.length; i++) {\n map = new HashMap<String, String>();\n map.put(\"Player\", players[i]);\n map.put(\"Desc\", desc[i]);\n map.put(\"Image\", Integer.toString(images[i]));\n map.put(\"Imagemain\", Integer.toString(imagemain[i]));\n data.add(map);\n }\n //KEYS IN MAP\n String[] from = {\"Player\",\"Desc\", \"Image\"};\n //IDS OF VIEWS\n int[] to = {R.id.textView3, R.id.nameTxt, R.id.imageView1};\n//ADAPTER\n adapter = new SimpleAdapter(getActivity(), data, R.layout.model, from, to);\n setListAdapter(adapter);\n return super.onCreateView(inflater, container, savedInstanceState);\n }",
"public void populateView() {\r\n populateHead();\r\n ArrayList arrayList = new ArrayList();\r\n arrayList.add(new AccDetailItem(\"Loan Amount\", this.account.totLoanAmt, MiscUtils.getColor(getResources(), this.account.totLoanAmt)));\r\n arrayList.add(new AccDetailItem(\"Interest Rate\", this.account.interestRate));\r\n arrayList.add(new AccDetailItem(\"Repayment Amount\", this.account.repaymentAmt, MiscUtils.getColor(getResources(), this.account.repaymentAmt)));\r\n arrayList.add(new AccDetailItem(\"Start Date\", this.account.startDt));\r\n arrayList.add(new AccDetailItem(\"End Date\", this.account.endDt));\r\n arrayList.add(new AccDetailItem(\"Status\", this.account.loanStatus));\r\n ArrayList arrayList2 = new ArrayList();\r\n arrayList2.add(new AccDetailItem(\"Outstanding Amount\", this.account.formattedOutstandingAmount, ContextCompat.getColor(getContext(), R.color.primary_red)));\r\n arrayList2.add(new AccDetailItem(\"Overdue Amount\", String.valueOf(this.account.overdueAmount), MiscUtils.getColor(getResources(), (double) this.account.overdueAmount)));\r\n arrayList2.add(new AccDetailItem(\"No. of Repayments Overdue\", this.account.overdueCount));\r\n this.list.setAdapter(new AccountDetailItemAdapter(getActivity(), arrayList));\r\n this.list2.setAdapter(new AccountDetailItemAdapter(getActivity(), arrayList2));\r\n MiscUtils.setListViewHeightBasedOnChildren(this.list);\r\n MiscUtils.setListViewHeightBasedOnChildren(this.list2);\r\n }",
"private void setItems()\n {\n sewers.setItem(rope); \n promenade.setItem(rope);\n bridge.setItem(potion);\n tower.setItem(potion);\n throneRoomEntrance.setItem(potion);\n depths.setItem(shovel);\n crypt.setItem(shovel);\n }",
"private void setupViews() {\n ivBack.setVisibility(View.VISIBLE);\n if (isCreateDeal) {\n tvTitle.setText(getString(R.string.create_deal));\n btnDone.setVisibility(View.VISIBLE);\n btnDone.setText(R.string.done);\n etEndTime.setText(appUtils.parseToTimeAndDate(pickUpTime));\n\n } else {\n tvTitle.setText(getString(R.string.deactivated_deal));\n btnDone.setVisibility(View.VISIBLE);\n btnDone.setText(R.string.activate);\n\n if (dealData != null) {\n etTitle.setText(dealData.getDealTitle());\n etTitle.setSelection(etTitle.getText().length());\n etDescription.setText(dealData.getDealDescription());\n etTotalItems.setText(dealData.getTotalItems());\n etOriginalPrice.setText(dealData.getOriginalPrice());\n tvNewPrice.setText(dealData.getNewPrice());\n double discount = (Double.parseDouble(dealData.getOriginalPrice()) -\n Double.parseDouble(dealData.getNewPrice())) / Double.parseDouble(dealData.getOriginalPrice()) * 100;\n String perc = discount + getString(R.string.percent_symbol);\n tvDiscountPerc.setText(perc);\n seekbarNewprice.setProgress((int) discount / 5);\n etBeginTime.setText(appUtils.parseToTimeAndDate(dealData.getStartTime()));\n etEndTime.setText(appUtils.parseToTimeAndDate(dealData.getEndTime()));\n }\n }\n }",
"private void bindAllViewElements() {\n\t\tseatingInfoList = (LinearLayoutForListView) findViewById(R.id.ticket_detail_view_seating_info_list);\n\t\tqrCodeButton = (Button) findViewById(R.id.ticket_detail_view_view_qr_code_btn);\n\t\tpdfButton = (Button) findViewById(R.id.ticket_detail_view_view_pdf_btn);\n\n\t\tdnrNumberValue = (TextView) findViewById(R.id.ticket_detail_view_booking_detail_reference_number_value);\n\t\tpnrNumberValue = (TextView) findViewById(R.id.ticket_detail_view_booking_detail_resevation_code_value);\n\t\t//paymentMethod = (TextView) findViewById(R.id.ticket_detail_view_booking_detail_payment_method_TextView);\n\t\t//paymentMethodValue = (TextView) findViewById(R.id.ticket_detail_view_booking_detail_payment_method_value);\n\t\ttotalPriceValue = (TextView) findViewById(R.id.ticket_detail_view_booking_detail_total_price_value);\n\t\tinsurance = (TextView) findViewById(R.id.ticket_detail_view_booking_detail_insurance_TextView);\n\t\tinsuranceValue = (TextView) findViewById(R.id.ticket_detail_view_booking_detail_insurance_value);\n\t\ttariffValue = (TextView) findViewById(R.id.ticket_detail_view_booking_detail_tariff_value);\n\n\t\ttariffDetail = (TextView) findViewById(R.id.ticket_detail_view_tariff_details_TextView);\n\n\t\tdeliveryMethodValue = (TextView) findViewById(R.id.ticket_detail_view_delivery_method_value);\n\t\tdeliveryMethodInfo = (TextView) findViewById(R.id.ticket_detail_view_delivery_method_info_TextView);\n\t\tdeliveryMethodInfoDetail1 = (TextView) findViewById(R.id.ticket_detail_view_delivery_method_info_detail1_TextView);\n\t\tdeliveryMethodInfoDetail2 = (TextView) findViewById(R.id.ticket_detail_view_delivery_method_info_detail2_TextView);\n\n\t\texchangeButton = (Button) findViewById(R.id.ticket_detail_view_view_exchange_btn);\n\t\tcancelButton = (Button) findViewById(R.id.ticket_detail_view_view_cancel_btn);\n\n\t\ttitle = (TextView) findViewById(R.id.ticket_detail_view_title);\n\n\t\tstationList = (LinearLayoutForListView) findViewById(R.id.ticket_detail_view_station_list);\n\t\trooView = findViewById(R.id.ticket_detail_root_view);\n\t\trooView.setVisibility(View.VISIBLE);\n\t\tprogressBar = (LinearLayout)findViewById(R.id.tickets_detail_view_progressBarLayout);\n\t\terrorLayout = (LinearLayout) findViewById(R.id.tickets_detail_view_service_error_Layout);\n\t\t\n\t\terrorTextview = (TextView) findViewById(R.id.tickets_detail_view_retrieving_real_time_service_error_textview);\n\t\t\n\t\trunProgressBar();\n\t\t\n\t\tbindAllListeners();\n\t}",
"public void initViews(){\n layout_health = (RelativeLayout) findViewById(R.id.layout_health);\n layout_msg = (RelativeLayout) findViewById(R.id.layout_msg);\n layout_usercenter = (RelativeLayout) findViewById(R.id.layout_usercenter);\n\n// img_home = (ImageView) findViewById(R.id.img_home);\n img_health = (ImageView) findViewById(R.id.img_health);\n img_msg = (ImageView) findViewById(R.id.img_msg);\n img_usercenter = (ImageView) findViewById(R.id.img_usercenter);\n\n// tv_home = (TextView) findViewById(R.id.tv_home);\n tv_health = (TextView) findViewById(R.id.tv_health);\n tv_msg = (TextView) findViewById(R.id.tv_msg);\n tv_usercenter = (TextView) findViewById(R.id.tv_usercenter);\n\n }",
"private void populateTextViews() {\n full_name_tv.setText(contact.getFullName());\n school_tv.setText(contact.getSchool());\n department_tv.setText(getDepartmentString());\n email.setText(contact.getEmail());\n number_tv.setText(contact.getNumber());\n }",
"private void setViews() {\n lv.setAdapter(adapter);\n\n dialog2 = new MiddleDialog2(INSTANCE, getResources().getString(R.string.title), getResources().getString(R.string.value), new MiddleDialog2.onBottonListener() {\n @Override\n public void onOk() {\n\n finish();\n }\n },R.style.registDialog);\n }",
"private void LoopData() {\n\t\tfor (int i = 0; i < drawable.length; i++) {\n\t\t\titems_list items_list = new items_list();\n\t\t\titems_list.setDrawable(getResources().getDrawable(drawable[i]));\n\t\t\titems_list.setLek(string[i]);\n\t\t\tlists.add(items_list);\n\t\t}\n\n\t}",
"public ViewHolder(View itemView) {\n super(itemView);\n hospname= itemView.findViewById(R.id.hospname);\n address= itemView.findViewById(R.id.hospaddress);\n rrr= itemView.findViewById(R.id.rrrtext);\n hospimage= itemView.findViewById(R.id.hospital_image);\n callambulance= itemView.findViewById(R.id.bookambulancebutton);\n getroom= itemView.findViewById(R.id.bookroombutton);\n /*price= itemView.findViewById(R.id.bedprice);\n cat= itemView.findViewById(R.id.bedcat);\n bedimage= itemView.findViewById(R.id.bedimage);*/\n\n\n }",
"private void fillLayout(View view) {\n findViews(view);\n\n //collect our bundle and populate our layout\n Bundle bundle = getArguments();\n\n Long id = bundle.getLong(\"id\", 0);\n String companyName = bundle.getString(\"companyName\");\n String modelName = bundle.getString(\"modelName\");\n double tankVolume = bundle.getDouble(\"tankVolume\", 0);\n String gearbox = bundle.getString(\"gearbox\");\n int seats = bundle.getInt(\"seats\", 0);\n String pictureURL = bundle.getString(\"pictureURL\");\n\n //set elements\n new DownLoadImageTask(modelDetailImageView, id, view.getContext()).execute(pictureURL);\n modelDetailIdTextView.setText(Long.toString(id));\n modelDetailCompanyNameTextView.setText(companyName);\n modelDetailModelNameTextView.setText(modelName);\n modelDetailTankVolumeTextView.setText(Double.toString(tankVolume));\n modelDetailGearboxTextView.setText(gearbox);\n modelDetailSeatsTextView.setText(Integer.toString(seats));\n\n getActivity().setTitle(\"Model #\" + id);\n }",
"public ViewHolder(View view) {\n super(view);\n mView = view;\n mTextviewTeamNumber = (TextView) view.findViewById(R.id.textviewTeamNumber);\n mImageViewTeamLogo = (ImageView) view.findViewById(R.id.imageViewTeamLogo);\n mTextViewTeamName = (TextView) view.findViewById(R.id.textViewTeamName);\n mTextViewPlayedGameNumber = (TextView) view.findViewById(R.id.textViewPlayedGameNumber);\n mTextViewTotalPoint = (TextView) view.findViewById(R.id.textViewTotalPoint);\n }",
"private void setupAllRegularDataViews(){\n allRegularDataViews = new ArrayList<>();\n allRegularDataViews.add(entryRadians);\n allRegularDataViews.add(sineRegularData);\n allRegularDataViews.add(cosineRegularData);\n allRegularDataViews.add(tangentRegularData);\n }",
"private void setItemData(ViewHolder holder, int position) {\n final int loc = position;\n holder.textView_xingming.setText(list.get(position).getItemHuanzheName());\n holder.textView_jiuzhenhao.setText(list.get(position).getItemHuanzheId());\n\n if(list.get(position).getItemGuangzhu()) {\n holder.textView_guangzhu.setText(\"取消关注\");\n holder.textView_guangzhu.setBackgroundColor(Color.RED);\n }\n else {\n holder.textView_guangzhu.setText(\"关 注\");\n holder.textView_guangzhu.setBackgroundColor(context.getResources().getColor(android.R.color.holo_blue_dark));\n }\n\n holder.textView_guangzhu.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_1;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }\n });\n\n holder.imageView_chakan.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_TAIL;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }\n });\n\n holder.linearLayout_head.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_HEAD;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }\n });\n }",
"private void initializeViews()\n {\n ButterKnife.bind(this);\n\n LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n rv_my_vehicles.setLayoutManager(layoutManager);\n rv_my_vehicles.setAdapter(myVehiclesAdapter);\n\n myVehiclesAdapter.setParent(getIntent().getIntExtra(COMING_FROM,0));\n presenter.fetchMyVehicles();\n progressDialog = alerts.getProcessDialog(this);\n progressDialog.setCancelable(false);\n\n tv_all_tool_bar_title.setText(my_vehicles);\n tv_all_tool_bar_title.setTypeface(appTypeface.getPro_narMedium());\n tv_add_new_vehicle.setTypeface(appTypeface.getPro_narMedium());\n tv_vehicles_empty.setTypeface(appTypeface.getPro_narMedium());\n }",
"private void setupViews() {\n this.rvArticles = (RecyclerView) findViewById(R.id.rvArticles);\n this.articles = new ArrayList<>();\n this.articleArrayAdapter = new ArticleArrayAdapter(this, this.articles);\n this.rvArticles.setAdapter(this.articleArrayAdapter);\n StaggeredGridLayoutManager gridLayoutManager =\n new StaggeredGridLayoutManager(GRID_NUM_COLUMNS,\n StaggeredGridLayoutManager.VERTICAL);\n this.rvArticles.setLayoutManager(gridLayoutManager);\n ItemClickSupport.addTo(this.rvArticles).setOnItemClickListener(\n (recyclerView, position, v) -> launchArticleView(position)\n );\n SpacesItemDecoration decoration = new SpacesItemDecoration(GRID_SPACE_SIZE);\n this.rvArticles.addItemDecoration(decoration);\n this.rvArticles.addOnScrollListener(\n new EndlessRecyclerViewScrollListener(gridLayoutManager) {\n @Override\n public void onLoadMore(int page, int totalItemsCount) {\n articleSearch(searchView.getQuery().toString(), page);\n }\n });\n }",
"private void setVariables() {\n vb = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);\n linBoardGame = (LinearLayout) ((Activity) context).findViewById(boardID);\n gridContainer = (RelativeLayout) ((Activity) context).findViewById(R.id.gridContainer);\n shipTV = (TextView) ((Activity) context).findViewById(R.id.shipTV);\n linBoardGame.setOnTouchListener(this);\n sizeOfCell = Math.round(ScreenWidth() / (maxN + (1)));\n occupiedCells = new ArrayList<>();\n playerAttacks = new ArrayList<>();\n hit = false;\n gridID = R.drawable.grid;\n if (!player ) lockGrid = true;\n ships = new ArrayList<>();\n }",
"private void updateViews() {\n titleTextView.setText(currentVolume.getTitle());\n descTextView.setText(Html.fromHtml(currentVolume.getDesc(), Html.FROM_HTML_MODE_COMPACT));\n authorsTextView.setText(currentVolume.getAuthors());\n\n retrieveImage();\n }",
"private void initViews() {\n user_name = (LinearLayout)findViewById(R.id.user_name);\n user_photo = (LinearLayout)findViewById(R.id.user_photo);\n user_sex = (LinearLayout)findViewById(R.id.user_sex);\n user_notes = (LinearLayout)findViewById(R.id.user_notes);\n name = (TextView)findViewById(R.id.name);\n sex = (TextView)findViewById(R.id.sex);\n notes = (TextView)findViewById(R.id.notes);\n email = (TextView)findViewById(R.id.email);\n photo = (ImageView)findViewById(R.id.photo);\n }",
"private void setUpViews() {\n\n updateFooterCarInfo();\n updateFooterUsrInfo();\n\n\n setResultActionListener(new ResultActionListener() {\n @Override\n public void onResultAction(AppService.ActionType actionType) {\n if (ModelManager.getInstance().getGlobalInfo() != null) {\n GlobalInfo globalInfo = ModelManager.getInstance().getGlobalInfo();\n\n switch (actionType) {\n case CarInfo:\n updateFooterCarInfo();\n break;\n case UsrInfo:\n updateFooterUsrInfo();\n break;\n case Charger:\n updateChargeStationList();\n break;\n }\n }\n }\n });\n }",
"public void bindViews(){\n txtBio = (TextView) findViewById(R.id.txtBio);\n txtSpeakerName = (TextView) findViewById(R.id.txtSpeakerName);\n imgSpeaker = (ImageView) findViewById(R.id.imgSpeaker);\n speaker = getSpeaker();\n\n\n String image_name = speaker.getImage().toUpperCase().replace(\" \", \"_\");\n String url = IMAGE_URL + image_name;\n ImageLoader imgLoader = AppController.getInstance().getImageLoader();\n imgLoader.get(url, new ImageLoader.ImageListener() {\n @Override\n public void onResponse(ImageLoader.ImageContainer response, boolean isImmediate) {\n if (response.getBitmap() != null) {\n imgSpeaker.setAdjustViewBounds(true);\n imgSpeaker.setImageBitmap(response.getBitmap());\n\n }\n }\n\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n if(speaker!=null) {\n txtBio.setText(speaker.getBio());\n txtSpeakerName.setText(speaker.getName());\n }\n }",
"private void populateInterfaceElements() {\n prismUserTextView.setTypeface(Default.sourceSansProBold);\n prismPostDateTextView.setTypeface(Default.sourceSansProLight);\n likesCountTextView.setTypeface(Default.sourceSansProLight);\n repostsCountTextView.setTypeface(Default.sourceSansProLight);\n\n setupPostUserUIElements();\n setupPostImageView();\n setupActionButtons();\n }",
"private void setInfo(ViewHolder holder, int position) {\n // the id for the two views is the position they are in the RecyclerView so whenever they are clicked I can just check the id of the view and pull the info at that position from adapter\n holder.menuTV.setId(position);\n holder.favTV.setId(position);\n\n // sets filename to selected view.\n String currentFile = sortedFilesArrList.get(position);\n StringBuilder filenameBuilder = new StringBuilder(currentFile);\n int indexOfExtension = filenameBuilder.indexOf(\".txt\"); // sometimes the adapter will not have the filenames with the .txt extension\n if (indexOfExtension > -1)\n filenameBuilder.delete(indexOfExtension, filenameBuilder.length());\n\n String formattedFilename = filenameBuilder.toString().replaceAll(\"_\", \" \");\n\n if (formattedFilename.length() > 3) { // user can name a file with a name shorter than 4 letters. This catches that exception\n switch (formattedFilename.substring(0, 4)) {\n case \"Temp\":\n holder.titleTV.setText(\"\");\n break;\n default:\n holder.titleTV.setText(formattedFilename);\n break;\n }\n } else\n holder.titleTV.setText(formattedFilename);\n\n\n Calendar calendar = Calendar.getInstance();\n\n // gets a calendar instance and changes views text to corresponding info.\n File file = new File(context.getFilesDir(), sortedFilesArrList.get(position));\n calendar.setTimeInMillis(file.lastModified());\n\n holder.timeTV.setText(MiscMethods.getLocalizedTime(calendar));\n\n // uses string builder to append info about the day of month.\n StringBuilder dayBuilder = new StringBuilder(String.format(locale, \"%1$td\", calendar));\n dayBuilder.append(\",\");\n holder.dayTV.setText(dayBuilder.toString());\n holder.monthTV.setText(String.format(locale, \"%1$tB\", calendar));\n\n\n // sets the faves view to the corresponding emoticon\n if (favArrList.get(position))\n holder.favTV.setText(\"★\");\n else\n holder.favTV.setText(\"☆\");\n\n\n setSummary(holder.summaryTV, currentFile);\n\n }",
"private void initViews() {\n ListFragment listFragment = ListFragment.newInstance();\n fragmentManager.beginTransaction().replace(R.id.holder, listFragment, \"List fragment\").commit();\n\n if (findViewById(R.id.detail_fragment) != null) {\n isTablet = true;\n DetailFragment detailFragment = DetailFragment.newInstance();\n fragmentManager.beginTransaction().replace(R.id.detail_fragment, detailFragment, \"Detail fragment\").addToBackStack(null).commit();\n }\n }",
"private void setupImageViews(int currentPosition) {\n DataModel prevModel = musicList.get(currentPosition > 0 ? currentPosition - 1 : musicList.size() - 1);\n tv_previous_music.setText(prevModel.getTitle() + \"\\n\" + prevModel.getArtist_actors());\n String prevUrl = getString(R.string.imageUrl) + \"/img/\" + prevModel.getImage();\n Log.e(\"url\", prevUrl);\n Picasso.with(getApplicationContext()).load(prevUrl).fit()\n .error(R.drawable.image_placeholder)\n .placeholder(R.drawable.image_placeholder)\n .into(previous_pic_imv);\n\n\n DataModel nextModel = musicList.get(currentPosition < musicList.size() - 1 ? currentPosition + 1 : 0);\n tv_next_music.setText(nextModel.getTitle() + \"\\n\" + prevModel.getArtist_actors());\n String nextUrl = getString(R.string.imageUrl) + \"/img/\" + nextModel.getImage();\n Log.e(\"url\", nextUrl);\n Picasso.with(getApplicationContext()).load(nextUrl).fit()\n .error(R.drawable.image_placeholder)\n .placeholder(R.drawable.image_placeholder)\n .into(next_pic_imv);\n\n\n }",
"public ViewHolder(View itemView) {\n super(itemView);\n\n tvMessageLeft = (TextView) itemView.findViewById(R.id.tvMessageLeft);\n tvMessageRight = (TextView) itemView.findViewById(R.id.tvMessageRight);\n ivUserIcon = (ImageView) itemView.findViewById(R.id.ivProfPicMessageList);\n // tvTime_stamp = (TextView) itemView.findViewById(R.id.tvTime);\n\n\n //llItemListTop = (LinearLayout) itemView.findViewById(R.id.llListItemTop);\n //llItemListMiddle = (LinearLayout) itemView.findViewById(R.id.llListItemMiddle);\n //llItemListBottom = (LinearLayout) itemView.findViewById(R.id.llListItemTop);\n\n\n }",
"private void initViews() {\n\n myOnClickListener = new MyOnClickListener(getContext());\n recyclerView = (RecyclerView)view.findViewById(R.id.recyclerView_ID);\n recyclerView.setHasFixedSize(true);\n layoutManager = new GridLayoutManager(getActivity(), 2);\n recyclerView.setLayoutManager(layoutManager);\n// adapter = new HomeAdapter(al,al2);\n// recyclerView.setAdapter(adapter);\n\n Log.e(\"adapter value : \",\"\"+this.al +this.al2);\n }",
"private void initData(View view) {\n /*\n * the array of item which need to show in gridview\n * it contains string and a picture\n * */\n ArrayList<HashMap<String, Object>> mList = new ArrayList<HashMap<String, Object>>();\n\n\n /**\n * download info from local database\n * */\n ContentResolver contentResolver = mContext.getContentResolver();\n Uri uri = Uri.parse(\"content://com.example.root.libapp_v1.SQLiteModule.Bookpage.BookpageProvider/bookpage\");\n Cursor cursor = contentResolver.query(uri, null, null, null, null);\n if (cursor != null) {\n while (cursor.moveToNext()) {\n HashMap<String, Object> map = new HashMap<String, Object>();\n String bookname = cursor.getString(cursor.getColumnIndex(\"name\"));\n map.put(\"image\", mImgUrl+\"bookimg_\"+bookname+\".png\");\n map.put(\"text\", bookname);\n mList.add(map);\n }\n /**\n * use the new data to show in gridview\n * */\n initGridView(view, mList);\n }\n cursor.close();\n }",
"public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_volvo_cysjysz, R.string.can_volvo_zdsm, R.string.can_door_unlock, R.string.can_volvo_zdhsj, R.string.can_volvo_qxzchsj, R.string.can_volvo_qxychsj, R.string.can_volvo_fxplsz, R.string.can_volvo_dstc, R.string.can_volvo_csaq, R.string.can_volvo_hfqcsz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.TITLE};\n this.mPopValueIds[2] = new int[]{R.string.can_door_unlock_key2, R.string.can_door_unlock_key1};\n this.mPopValueIds[6] = new int[]{R.string.can_ac_low, R.string.can_ac_mid, R.string.can_ac_high};\n this.mSetData = new CanDataInfo.VolvoXc60_CarSet();\n }",
"private void setRecyclerViewData() {\n }",
"public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n imageView1 = itemView.findViewById(R.id.item_health_center_first_photo);\n imageView2 = itemView.findViewById(R.id.item_health_center_second_photo);\n imageView3 = itemView.findViewById(R.id.item_health_center_third_photo);\n imageView4 = itemView.findViewById(R.id.item_health_center_forth_photo);\n }",
"public ViewHolder (View view){\n super(view);\n jView = view;\n //tvJoin = (TextView) view.findViewById(R.id.tvGroup);\n tvGroupTitle = view.findViewById(R.id.tvGroupTitle);\n }",
"@Override\n public void bind(@NonNull ViewHolder viewHolder, int position) {\n TextView nomePosto = viewHolder.itemView.findViewById(R.id.vl_nomeParceiroItem);\n TextView endereco = viewHolder.itemView.findViewById(R.id.vl_enderecoDenunciaItem);\n TextView bairro = viewHolder.itemView.findViewById(R.id.vl_bairroDenunciaItem);\n TextView cidade = viewHolder.itemView.findViewById(R.id.vc_cidadeDenunciaItem);\n ImageView bandeiraIcone = viewHolder.itemView.findViewById(R.id.im_bandeiraDenunciaItem);\n TextView cnpj = viewHolder.itemView.findViewById(R.id.vl_cnpjDenunciaItem);\n TextView reclacamacoes = viewHolder.itemView.findViewById(R.id.vl_totalReclamacoes);\n\n\n //CARREGANDO IMAGEM DAS BANDEIRAS TESTANDO PARA CADA UM DOS POSTOS\n if (posto.getBandeira().equalsIgnoreCase(\"PETROBRAS\")) {\n Picasso.get()\n .load(\"https://firebasestorage.googleapis.com/v0/b/kartel-59019.appspot.com/o/images%2FbandeiraPetrobras.jpg?alt=media&token=d53b4fee-d299-4422-a9e7-43d034613ec5\")\n .into(bandeiraIcone);\n }\n if (posto.getBandeira().equalsIgnoreCase(\"IPIRANGA\")) {\n Picasso.get()\n .load(\"https://firebasestorage.googleapis.com/v0/b/kartel-59019.appspot.com/o/images%2FbandeiraIpiranga.jpg?alt=media&token=b0c55805-61cc-45f2-886f-51be07bb0fed\")\n .into(bandeiraIcone);\n }\n if (posto.getBandeira().equalsIgnoreCase(\"SHELL\")) {\n Picasso.get()\n .load(\"https://firebasestorage.googleapis.com/v0/b/kartel-59019.appspot.com/o/images%2FbandeiraShell.jpg?alt=media&token=4874b289-f988-4dce-aa09-7011f0e1db9e\")\n .into(bandeiraIcone);\n }\n if (posto.getBandeira().equalsIgnoreCase(\"MEGAPETRO\")) {\n Picasso.get()\n .load(\"https://firebasestorage.googleapis.com/v0/b/kartel-59019.appspot.com/o/images%2FbandeiraMegapetro.jpg?alt=media&token=71eed8b5-05f4-4e81-9a40-e4081bcf8de6\")\n .into(bandeiraIcone);\n }\n if (posto.getBandeira().equalsIgnoreCase(\"BRANCA\")) {\n Picasso.get()\n .load(\"https://firebasestorage.googleapis.com/v0/b/kartel-59019.appspot.com/o/images%2FbandeiraBranca.jpg?alt=media&token=bee27663-f1a9-48bc-9243-6856f95929f7\")\n .into(bandeiraIcone);\n }\n\n //POPULANDO DADOS DO ITEM COM O RESTANTE DOS ATRIBUTOS\n nomePosto.setText(posto.getNome());\n endereco.setText(posto.getEndereco());\n bairro.setText(posto.getBairro());\n cidade.setText(posto.getCidade());\n cnpj.setText(posto.getCnpj());\n reclacamacoes.setText(\"\" + count);\n\n }",
"private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }",
"private void initializeViews(Object object, ViewHolder holder) {\n }",
"private void initViews(View view) {\n\n tvEmptyView = view.findViewById(R.id.tv_empty_view);\n swipeRefreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.swipe_refresh_layout);\n\n contentLayout = view.findViewById(R.id.content_layout);\n\n RecyclerView.LayoutManager manager = new LinearLayoutManager(view.getContext());\n RecyclerView mRecyclerView = (RecyclerView) contentLayout;\n mRecyclerView.setLayoutManager(manager);\n\n String sportsType = getRequestParameters().get(ScoresContentHandler.PARAM_SPORTS_TYPE);\n mAdapter = new BroadcastListAdapter(sportsType, commentaries, view.getContext());\n mRecyclerView.setAdapter(mAdapter);\n mAdapter.notifyDataSetChanged();\n\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n\n @Override\n public void onRefresh() {\n requestContent();\n }\n\n });\n }",
"public void setUpViews(){\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n // ListView Clicked item index\n Intent i = new Intent(getActivity(), MediaDetailActivity.class);\n Media media = lectures.get(position);\n i.putExtra(\"url\", media.getUrl());\n i.putExtra(\"type\", media.type);\n i.putExtra(\"author\", media.author);\n i.putExtra(\"author_image_url\", media.getImageUrl());\n i.putExtra(\"name\", media.getName());\n startActivity(i);\n }\n });\n }",
"public ViewHolder(View itemView) {\n super(itemView);\n tvNature = (TextView)itemView.findViewById(R.id.item_name);\n tvAmountNature = (TextView)itemView.findViewById(R.id.item_amount);\n }",
"public void setDataAndRefresh(List<T> data) {\n this.data = data;\n// views = new ArrayList<>(data.size());\n// // builder data set of all item view\n// for (int i = 0; i < data.size(); i++) {\n// int itemLayoutId = getItemLayoutId();\n// LayoutInflater inflater = LayoutInflater.from(getContext());\n// View itemView = inflater.inflate(itemLayoutId, null);\n// fillData(itemView, data.get(i));\n// // add item titleView\n// views.add(itemView);\n// }\n notifyDataSetChanged();\n }",
"public void reconstructViews() {\n for (int i = 0; i < getChildCount(); i++) {\n VerificationCustomItem item = (VerificationCustomItem) getChildAt(i);\n item.reconstructView();\n }\n }",
"public MyHolder(final View itemView) {\n super(itemView);\n Typeface tf = Typeface.createFromAsset(context.getAssets(), \"fonts/segoeui.ttf\");\n event_time = (TextView) itemView.findViewById(vineture.wowhubb.R.id.event_time);\n event_name=(TextView)itemView.findViewById(vineture.wowhubb.R.id.event_name);\n event_who = (TextView) itemView.findViewById(vineture.wowhubb.R.id.event_who);\n event_where=(ImageView) itemView.findViewById(vineture.wowhubb.R.id.event_where);\n\n\n\n event_time.setTypeface(tf);\n event_name.setTypeface(tf);\n event_who.setTypeface(tf);\n\n\n }",
"public MapHolder(LayoutInflater inflater, ViewGroup parent) {\n super(inflater.inflate(R.layout.area_cell, parent, false));\n itemView.setOnClickListener(this);\n //sets the recycler views highet at runtime, divide that by the number of cells that can fit\n int size = parent.getMeasuredHeight() / GameData.ROW + 1;\n ViewGroup.LayoutParams lp = itemView.getLayoutParams();\n lp.width = size;\n lp.height = size;\n image1 = (ImageView)itemView.findViewById(R.id.imagetopleft);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n Intent playerIntent = getActivity().getIntent();\n bundle = getArguments();\n Player player = (Player) bundle.getSerializable(\"player\");\n type = bundle.getString(\"type\");\n illuminatiCard = player.getIlluminatiCard();\n views = new ArrayList<ImageView>();\n\n //set up the layouts to fit their parents\n ViewGroup.LayoutParams p = new ViewGroup.LayoutParams(\n ViewGroup.LayoutParams.WRAP_CONTENT,\n ViewGroup.LayoutParams.WRAP_CONTENT\n );\n\n //ViewGroup.LayoutParams p = new ViewGroup.LayoutParams(1000,1000);\n\n ScrollView sc = new ScrollView(getActivity()); //let the activity scroll vertically\n\n HorizontalScrollView sv = new HorizontalScrollView(getActivity()); //let the activity scroll horizontally\n\n ll = new RelativeLayout(getActivity()); //instantiate main layout\n\n sc.setLayoutParams(p); //make fill parent\n sv.setLayoutParams(p); //make fill parent\n ll.setLayoutParams(p); //make fill parent\n\n ImageView backGround = new ImageView(getActivity());\n backGround.setId(View.generateViewId());\n ImageView illCard = new ImageView(getActivity()); //create image for illuminati card\n //illCard.setImageResource(R.drawable.card); //set it to the feminist pic (only one we have so far)\n illCard.setImageResource(getResources().getIdentifier(illuminatiCard.getCardName().toLowerCase(), \"drawable\", getActivity().getPackageName()));\n illCard.setId(View.generateViewId()); //for the layout to work, each imageview needs an ID,\n //this generates a random ID for the view and set it to it\n //the actual ID doesn't matter since we'll always use the getID() method\n\n Display display = getActivity().getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n\n// layout for center card\n// RelativeLayout.LayoutParams rp = new RelativeLayout.LayoutParams(\n// RelativeLayout.LayoutParams.WRAP_CONTENT,\n// RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams rp = new RelativeLayout.LayoutParams(cardWidth,cardHeight);\n rp.addRule(RelativeLayout.ALIGN_RIGHT, backGround.getId());\n rp.addRule(RelativeLayout.ALIGN_BOTTOM, backGround.getId());\n\n // rp.addRule(RelativeLayout.CENTER_VERTICAL); //put card in center (buggy)\n // rp.addRule(RelativeLayout.CENTER_HORIZONTAL);\n illCard.setLayoutParams(rp); //picture for illuminati card\n views.add(backGround);\n views.add(illCard);\n //ll.addView(illCard);\n //ll.addView(illCard);\n attach(illuminatiCard, illCard, new Point(0,0)); //run sequence to make board\n RelativeLayout.LayoutParams bg = new RelativeLayout.LayoutParams((xPad+2)/2*cardWidth, (yPad+2)/2*cardHeight);\n bg.addRule(RelativeLayout.ALIGN_PARENT_LEFT, RelativeLayout.TRUE);\n bg.addRule(RelativeLayout.ALIGN_PARENT_TOP, RelativeLayout.TRUE);\n backGround.setLayoutParams(bg);\n for(ImageView iv : views)\n {\n ll.addView(iv);\n }\n //ll.addView(backGround);\n //ll.addView(illCard); //add card to relative layout\n\n\n\n //finish creating other views\n sv.addView(ll); //add layout to the scroll\n sc.addView(sv); //add scrolls together\n view_a = sc; //view to make view\n\n if(type != null) {\n if(type.equals(\"transfer_money\")){\n Context context = getActivity().getApplicationContext();\n CharSequence text = \"Choose receiving group\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n } else if(type.equals(\"drop_group\")) {\n Context context = getActivity().getApplicationContext();\n CharSequence text = \"Choose group to drop\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n } else if(type.equals(\"move_group\")) {\n Context context = getActivity().getApplicationContext();\n CharSequence text = \"Choose group to move\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }\n }\n\n return view_a; //send main view out\n }",
"public void initviews(ViewHolder holder,int position){\n holder.txtQuestion.setText(queslist.get(position).getQuestion());\n holder.rdobtnAns0.setText(queslist.get(position).getOpt1());\n holder.rdobtnAns1.setText(queslist.get(position).getOpt2());\n holder.rdobtnAns2.setText(queslist.get(position).getOpt3());\n holder.rdobtnAns3.setText(queslist.get(position).getOpt4());\n holder.rlBody.setBackgroundColor(context.getResources().getColor(R.color.light_cyan));\n\n }",
"void populate() {\n daftarNotifikasi.add(new DaftarNotifikasi(\"Ludfi Ika P\", \"Hari ini mau gathering dimana?\", 2, R.drawable.profil_2));\n daftarNotifikasi.add(new DaftarNotifikasi(\"Erinda\", \"Ada pagelaran di kota\", 6, R.drawable.profil_3));\n daftarNotifikasi.add(new DaftarNotifikasi(\"Aleq\", \"Saya punya solusi untuk itu\", 10, R.drawable.profil_1));\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, final int position) {\n Pokemon pokemon1 = dataset.get(position);\n//storing the Data_set in shared preferences\n Gson gson=new Gson();\n String json=gson.toJson(dataset);\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor= sharedPreferences.edit();\n editor.putString(\"dataset\",json);\n editor.apply();\n holder.TextViewTitle.setText(pokemon1.getName());\n converted_id=String.valueOf(pokemon1.getNumber());\n holder.TextViewId.setText(\"ID:\"+converted_id);\n\n\n //getting image\n\n if(dataset.get(0).getName().equals(\"bulbasaur\")) {\n Glide.with(context)\n .load(\"https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/\" + pokemon1.getNumber() + \".png\")\n .centerCrop()\n .crossFade()\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(holder.imageView);\n holder.parentlayout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent=new Intent(context, screen2.class);\n intent.putExtra(\"posn\",position);\n context.startActivity(intent);\n\n }\n });\n }\n else if(dataset.get(0).getName().equals(\"normal\"))\n {\n holder.imageView.setVisibility(View.INVISIBLE);\n holder.TextViewTitle.setTextSize(30);\n holder.TextViewId.setVisibility(View.INVISIBLE);\n holder.parentlayout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent=new Intent(context, specific_type_screen.class);\n intent.putExtra(\"type_sent\",position);\n context.startActivity(intent);\n\n\n }\n });\n }\n else if(dataset.get(0).getName().equals(\"kanto\"))\n {\n holder.imageView.setVisibility(View.INVISIBLE);\n holder.TextViewTitle.setTextSize(30);\n holder.TextViewId.setVisibility(View.INVISIBLE);\n holder.parentlayout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent=new Intent(context, specific_region_screen.class);\n intent.putExtra(\"region_sent\",position);\n context.startActivity(intent);\n\n\n\n }\n });\n }\n else if(dataset.get(0).getName().equals(\"canalave-city\"))\n { holder.imageView.setVisibility(View.INVISIBLE);\n holder.TextViewTitle.setTextSize(20);\n\n //has nothing\n }\n else\n {\n replace=pokemon1.getName();\n replace=replace.replace(\"-\",\"\");\n\n Glide.with(context)\n .load(\"https://www.serebii.net/itemdex/sprites/pgl/\" + replace + \".png\")\n .centerCrop()\n .crossFade()\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(holder.imageView);\n }\n\n\n }",
"public ViewHolder(View view) {\n super(view);\n mView = view;\n mIdView = (TextView) view.findViewById(R.id.item_number);\n mContentView = (TextView) view.findViewById(R.id.content);\n }",
"public void InitData() {\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE};\n this.mItemTitleIds = new int[]{R.string.can_dlxdcgz, R.string.can_gybjd, R.string.can_dczjysxgz, R.string.can_zcbjd, R.string.can_djgzzsd, R.string.can_djxtgr, R.string.can_igbt_wdzt, R.string.can_zkbgz, R.string.can_zbzt, R.string.can_cdszzt, R.string.can_dcdc, R.string.can_dlxdcqd, R.string.can_fzdcdl};\n this.mWarn = new CanDataInfo.DT_V80_BMS_WARN();\n }",
"private void initView(View view) {\n imageView = (ImageView) view.findViewById(R.id.imageView);\n imageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n// new Setting_ItemFragment().show(getFragmentManager(), \"\");\n Intent intent = new Intent(getContext(), setting_Activity.class);\n startActivity(intent);\n }\n });\n card1 = (CardView) view.findViewById(R.id.card1);\n card1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n// ViewGroup.LayoutParams layoutParams = card1.getLayoutParams();\n// layoutParams\n// card3.setLayoutParams(layoutParams);\n// card3.bringToFront();\n// ObjectAnimator animator = ObjectAnimator.ofFloat(card1, \"translationX\", 0, 200);\n// ObjectAnimator animator1 = ObjectAnimator.ofFloat(card1, \"translationY\", 0, 200);\n// ObjectAnimator animator2 = ObjectAnimator.ofFloat(card1, \"scaleX\", 1f, 2f);\n// ObjectAnimator animator3 = ObjectAnimator.ofFloat(card1, \"scaleY\", 1f, 2f);\n//\n// AnimatorSet set = new AnimatorSet();\n// set.setDuration(2500);\n// set.play(animator2).with(animator3).with(animator).with(animator1);\n// set.start();\n }\n });\n\n tv_healthy_point = (TextView) view.findViewById(R.id.tv_healthy_point);\n double num_1 = Math.random() * 100;\n tv_healthy_point.setText(String.format(\"%.0f\",num_1));\n tv_heart_mes = (TextView) view.findViewById(R.id.tv_heart_mes);\n tv_heart_mes.setText(String.format(\"%.0f\",Math.random() * 100));\n tv_xieya_mes = (TextView) view.findViewById(R.id.tv_xieya_mes);\n tv_xieya_mes.setText(String.format(\"%.0f\",Math.random() * 100));\n tv_weight_mes = (TextView) view.findViewById(R.id.tv_weight_mes);\n tv_weight_mes.setText(String.format(\"%.0f\",Math.random() * 100));\n\n tv_suggest_mes = (TextView) view.findViewById(R.id.tv_suggest_mes);\n String poi = tv_healthy_point.getText().toString();\n tv_suggest_mes.setText(\"哇赛,您的身体数据击败了全国\"+String.format(\"%.0f\",num_1)+\"%的人哦!身体是革命的本钱,继续加油,勇往直前,进击!\");\n\n btn_start = (Button) view.findViewById(R.id.btn_start);\n ll_heart = (LinearLayout) view.findViewById(R.id.ll11);\n ll_heart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent_from(\"1\");\n }\n });\n ll_xieya = (LinearLayout) view.findViewById(R.id.ll12);\n ll_xieya.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent_from(\"2\");\n }\n });\n ll_tz = (LinearLayout) view.findViewById(R.id.ll13);\n ll_tz.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent_from(\"3\");\n }\n });\n ll_more = (LinearLayout) view.findViewById(R.id.ll14);\n ll_more.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n new More_Fragment().show(getFragmentManager(), \"\");\n }\n });\n\n //MP表开始\n mChart = view.findViewById(R.id.chart1);\n mChart.setBackgroundColor(Color.rgb(230, 230, 250));\n\n// mChart.getDescription().setEnabled(false);\n\n mChart.setWebLineWidth(3f);\n Description description = new Description();\n description.setText(\"个人健康指标图\");\n description.setTextSize(15f);\n mChart.setDescription(description);\n mChart.setWebColor(Color.BLACK);\n mChart.setWebLineWidthInner(3f);\n mChart.setWebColorInner(Color.BLACK);\n mChart.setWebAlpha(300);\n setData();\n\n mChart.animateXY(2400,2400);\n XAxis xAxis = mChart.getXAxis();\n// xAxis.setTypeface(mTfLight);\n xAxis.setTextSize(9f);\n xAxis.setYOffset(0f);\n xAxis.setXOffset(0f);\n xAxis.setValueFormatter(new IAxisValueFormatter() {\n\n private String[] mActivities = new String[]{\"体重\", \"血压\", \"心率\", \"体脂\", \"水分\"};\n\n @Override\n public String getFormattedValue(float value, AxisBase axis) {\n return mActivities[(int) value % mActivities.length];\n }\n });\n xAxis.setTextColor(Color.BLACK);\n\n YAxis yAxis = mChart.getYAxis();\n// yAxis.setTypeface(mTfLight);\n yAxis.setLabelCount(5, false);\n yAxis.setTextSize(9f);\n yAxis.setAxisMinimum(0f);\n yAxis.setAxisMaximum(80f);\n yAxis.setDrawLabels(false);\n\n// Legend l = mChart.getLegend();\n// l.setVerticalAlignment(Legend.LegendVerticalAlignment.TOP);\n// l.setHorizontalAlignment(Legend.LegendHorizontalAlignment.CENTER);\n// l.setOrientation(Legend.LegendOrientation.HORIZONTAL);\n// l.setDrawInside(false);\n//// l.setTypeface(mTfLight);\n// l.setXEntrySpace(17f);\n// l.setYEntrySpace(15f);\n// l.setTextColor(Color.WHITE);\n }",
"private void setDishInfo(final HashMap<String, ArrayList<String>> dishNames,\n final HashMap<String, ArrayList<Integer>> dishPrices,\n final HashMap<String, ArrayList<String>> dishImgs,\n final String type) {\n ArrayList<Integer> dishPrice = dishPrices.get(type);\n ArrayList<String> dishName = dishNames.get(type);\n final ArrayList<String> dishImg = dishImgs.get(type);\n for (int i = 0; i < dishName.size() && i < 15; i++) {\n final int finalI = i;\n final Bitmap[] bm = {null};\n final int m = i / DISH_WIDTH, n = i % DISH_WIDTH;\n final int dsPrice = dishPrice.get(i);\n final String dsName = dishName.get(i);\n final SubsamplingScaleImageView iv = imgs[m][n];\n TextView tv = names[m][n];\n tv.setTextColor(Color.DKGRAY);\n tv.setTextSize(12f);\n tv.setText(dsName + RMB + dsPrice);\n new Thread() {\n @Override\n public void run() {\n bm[0] = StormImg.getBm(a, dishImg.get(finalI));\n Handler handler = new Handler(a.getMainLooper()) {\n @Override\n public void handleMessage(android.os.Message msg) {\n super.handleMessage(msg);\n if (bm[0] != null)\n iv.setImage(ImageSource.bitmap(bm[0]));\n }\n };\n handler.sendMessage(handler.obtainMessage());\n }\n }.start();\n\n View.OnClickListener listener = new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n addDishToList(dsName, 1, dsPrice, type);\n }\n };\n View.OnLongClickListener ll = new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n String title = \"Input the amount of \" + dsName + \" you want: \";\n final EditText et = new EditText(v.getContext());\n et.setInputType(InputType.TYPE_CLASS_NUMBER);\n et.setKeyListener(DigitsKeyListener.getInstance(\"0123456789\"));\n et.setFilters(new InputFilter[]{new InputFilter.LengthFilter(2)});\n new AlertDialog.Builder(v.getContext()).setTitle(title).setView(et).setPositiveButton(\"okay\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (et.getText().length() > 0) {\n int amt = Integer.valueOf(et.getText().toString());\n if (amt > 0)\n addDishToList(dsName, amt, dsPrice, type);\n dialog.dismiss();\n }\n }\n }).setNegativeButton(\"cancel\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n }).show();\n return true;\n }\n };\n // click to add dishes to the dish list\n tv.setOnClickListener(listener);\n iv.setOnClickListener(listener);\n tv.setOnLongClickListener(ll);\n iv.setOnLongClickListener(ll);\n }\n }",
"@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n TextView Ename = (TextView) view.findViewById(R.id.Ename);\n TextView Designation = (TextView) view.findViewById(R.id.Designation);\n TextView Salary = (TextView) view.findViewById(R.id.Salary);\n // Extract properties from cursor\n String ename = cursor.getString(cursor.getColumnIndexOrThrow(\"ename\"));\n String designation = cursor.getString(cursor.getColumnIndexOrThrow(\"designation\"));\n int salary = cursor.getInt(cursor.getColumnIndexOrThrow(\"salary\"));\n\n ImageView imgView =(ImageView)view.findViewById(R.id.ImageView01);\n\n\n imgView.setImageResource(R.drawable.ic_launcher);\n\n\n\n\n\n // Populate fields with extracted properties\n Ename.setText(ename);\n Designation.setText(designation);\n Salary.setText(String.valueOf(salary));\n }",
"private void populateData() {\n animals.add(new Animal(\"Bear Arlan\", 10, true, \"Student\",\n \"Watch cartoons\", R.drawable.bear));\n animals.add(new Animal(\"Marten Chrisst\", 15, true, \"McDonald employee\",\n \"Play video games\", R.drawable.marten));\n animals.add(new Animal(\"Octopus Tenta\", 18, false, \"Ink producer\",\n \"Camouflage and attack jellyfish\", R.drawable.octopus));\n animals.add(new Animal(\"Ostrich Mellow\", 19, false, \"Zoo runner\",\n \"Peck other animals\", R.drawable.ostrich));\n animals.add(new Animal(\"Raccoon Garack\", 21, true, \"Office worker\",\n \"Build diagrams for statistics\", R.drawable.racoon));\n animals.add(new Animal(\"Rooster Billo\", 16, true, \"Early waker\",\n \"Fly and chirp in morning\", R.drawable.rooster));\n animals.add(new Animal(\"Seagull Ranch\", 23, false, \"Scout\",\n \"Practice carrying water in mouth\", R.drawable.seagull));\n animals.add(new Animal(\"Seal Arlan\", 25, true, \"Security\",\n \"Work on belly muscles\", R.drawable.seal));\n animals.add(new Animal(\"Tiger Stitch\", 30, false, \"Hunter\",\n \"Make soup\", R.drawable.tiger));\n animals.add(new Animal(\"Zebra Dillian\", 6, true, \"Student\",\n \"Watch movies about zebras\", R.drawable.zebra));\n }",
"@Override\n public void onBindViewHolder(final ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n if (getItemViewType(position) == 0) {\n final Emplois emplois = listCurrentsSeances.get(position);\n\n\n\n holder.rawFiliere.setText(emplois.getFiliere());\n holder.rawEnseignant.setText(emplois.getEnseignant());\n holder.rawMatiere.setText(emplois.getMatiere());\n holder.rawSalle.setText(emplois.getSalle());\n\n Log.e(\"Item\",emplois.getEnseignant()+\" -> \" + emplois.getPresence());\n if (emplois.getPresence() == 1) {\n Log.e(\"COLOR\",\"WITHE\");\n holder.itemSeanceLayout.setBackgroundResource(R.color.colorListSeancesBg);\n holder.rootLayout.setBackgroundResource(R.color.colorListSeancesBg);\n } else if (emplois.getPresence() == 2) {\n holder.itemSeanceLayout.setBackgroundResource(R.color.colorAbscenceGroupe);\n holder.rootLayout.setBackgroundResource(R.color.colorAbscenceGroupe);\n } else {\n holder.itemSeanceLayout.setBackgroundResource(R.color.colorAbscent);\n holder.rootLayout.setBackgroundResource(R.color.colorAbscent);\n }\n // Return the View you just created\n\n holder.itemSeanceLayout.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent event) {\n if (event.getAction() == MotionEvent.ACTION_UP) {\n if (emplois.getPresence() == 1) {\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n animateRevealView(holder.rootLayout, holder.itemSeanceLayout, R.color.colorAbscent, event.getX(), event.getY());\n } else {\n animateView(holder.rootLayout,holder.itemSeanceLayout,R.color.colorListSeancesBg,R.color.colorAbscent);\n }\n updatePresenceEmplois(emplois.getId(), 0);\n emplois.setPresence(0);\n\n } else if (emplois.getPresence() == 0) {\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n animateRevealView(holder.rootLayout, holder.itemSeanceLayout, R.color.colorAbscenceGroupe, event.getX(), event.getY());\n } else {\n animateView(holder.rootLayout,holder.itemSeanceLayout,R.color.colorAbscent,R.color.colorAbscenceGroupe);\n }\n updatePresenceEmplois(emplois.getId(), 2);\n emplois.setPresence(2);\n } else {\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n animateRevealView(holder.rootLayout, holder.itemSeanceLayout, R.color.colorListSeancesBg, event.getX(), event.getY());\n } else {\n animateView(holder.rootLayout,holder.itemSeanceLayout,R.color.colorAbscenceGroupe,R.color.colorListSeancesBg);\n }\n updatePresenceEmplois(emplois.getId(), 1);\n emplois.setPresence(1);\n //holder.itemSeanceLayout.setBackgroundResource(R.color.colorListSeancesBg);\n }\n }\n return false;\n }\n });\n } else {\n\n holder.exporterSeances.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (listCurrentsSeances.size() == 1) {\n Snackbar.make(activity.getViewPager(),\"La liste des seances est vide!\",Snackbar.LENGTH_LONG).show();\n } else {\n if (!NetworkManager.getInstance().isNetworkAvailable (activity)) {\n Snackbar.make(activity.getViewPager(),\"Aucune connexion disponible!\",Snackbar.LENGTH_LONG).show();\n } else if (SharedPerefManager.getInstance(activity).IsSeanceUploaded(listCurrentsSeances.get(0).getDebut())) {\n Snackbar.make(activity.getViewPager(),\"L'exportation est permise une seule fois par seance!\",Snackbar.LENGTH_LONG).show();\n } else {\n SeancesToUploadManager.getInstance().setListSeancesToUpload(listCurrentsSeances);\n showUserAuthentification();\n }\n }\n\n /*if (gf.selectValeur(nomFichier, \"*S\" + mState.getNumeroSeance() + \":\").compareTo(cle) == 0) {\n Toast.makeText(getActivity(), \"L' exportation des données est permise une seule fois par jour.\", Toast.LENGTH_LONG).show();\n } else {\n showUserAuthentification();\n }*/\n\n\n }\n });\n\n }\n\n }",
"private void setListPlaces(View view, String places) {\n String[] name = new String[]{\"\"};\n String[] id = new String[]{\"\"};\n String[] desc = new String[]{\"\"};\n switch (places){\n case \"Family Walk\" :\n name = new String[]{data.get(4).getName(), data.get(5).getName(),data.get(6).getName()};\n id = new String[]{String.valueOf(data.get(4).getID()), String.valueOf(data.get(5).getID()), String.valueOf(data.get(6).getID())};\n desc = new String[]{data.get(4).getDescription(), data.get(5).getDescription(),data.get(6).getDescription()};\n break;\n\n case \"Retro Tour\":\n name = new String[]{data.get(7).getName(), data.get(8).getName(), data.get(9).getName()};\n id = new String[]{String.valueOf(data.get(7).getID()), String.valueOf(data.get(8).getID()), String.valueOf(data.get(9).getID())};\n desc = new String[]{data.get(7).getDescription(), data.get(8).getDescription(),data.get(9).getDescription()};\n break;\n case \"Sports Tour\":\n name = new String[]{data.get(9).getName(), data.get(8).getName(), data.get(11).getName()};\n id = new String[]{String.valueOf(data.get(9).getID()), String.valueOf(data.get(8).getID()), String.valueOf(data.get(11).getID())};\n desc = new String[]{data.get(9).getDescription(), data.get(8).getDescription(),data.get(11).getDescription()};\n break;\n case \"custom\":\n List<String> names = getActivity().getIntent().getStringArrayListExtra(\"name\");\n name = names.toArray(new String[0]);\n List<String> ID = getActivity().getIntent().getStringArrayListExtra(\"ID\");\n id = ID.toArray(new String[0]);\n List<String> Desc = getActivity().getIntent().getStringArrayListExtra(\"desc\");\n desc = Desc.toArray(new String[0]);\n break;\n }\n cardAdapter2 = new CardAdapter2(getContext(), name, id, desc, imageListener);\n recyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());\n recyclerView.setLayoutManager(layoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(cardAdapter2);\n }",
"public void loadIngredients(){\n llingerdientDetails.removeAllViews();\n for(int i = 0; i < llDishes.getChildCount();i++) {\n\n ((LinearLayout) llDishes.getChildAt(i).findViewById(R.id.llborderColor)).setBackgroundColor(Color.parseColor(\"#00800000\"));\n\n }\n //llborderColor_ingredients.setBackgroundColor(Color.parseColor(\"#800000\"));\n for(Dish dish: dinnerModel.getDishes()){\n\n for (Ingredient ing : dish.getIngredients()) {\n\n View ingtredientsItemView = layoutInflater.inflate(R.layout.ingredients_item_view,null);\n TextView txtingredientName = (TextView)ingtredientsItemView.findViewById(R.id.txtIngredientName);\n TextView txtingredientUnit = (TextView)ingtredientsItemView.findViewById(R.id.txtIngredientUnit);\n TextView txtingredientqty = (TextView)ingtredientsItemView.findViewById(R.id.txtIngredientqty);\n txtingredientName.setText(ing.getName());\n txtingredientqty.setText(Double.toString(Double.parseDouble(ing.getQuantity()) * dinnerModel.getNumberOfGuests()));\n txtingredientUnit.setText(ing.getUnit());\n llingerdientDetails.addView(ingtredientsItemView);\n }\n }\n }",
"private void inizialiteViews() {\n tvDirectionStore = findViewById(R.id.tvDirectionStore);\n tvNameOwner = findViewById(R.id.tvNameOwnerView);\n tvNameStore = findViewById(R.id.tvNameStoreView);\n tvPhonestore = findViewById(R.id.tvPhoneNumberOwner);\n editStore = findViewById(R.id.btnEditStore);\n imageViewStore = findViewById(R.id.imageStore);\n }",
"private void populateInterfaceElements() {\n usernameTextView.setTypeface(Default.sourceSansProBold);\n userFullNameText.setTypeface(Default.sourceSansProLight);\n userFollowButton.setTypeface(Default.sourceSansProLight);\n\n setupUserProfilePicImageView();\n setupUsernameAndFullNameTextView();\n setupUserFollowButton();\n setupUserRelativeLayout();\n }",
"private void assignViews() {\n mTextView = (TextView) findViewById(R.id.textViewForEnterEmail);\n mEdTxtEmail = (EditText) findViewById(R.id.edTxtEmailInForgotPass);\n mButton = (Button) findViewById(R.id.btnSubmit);\n }",
"private void initView() {\n\n main_ll_rl = (LinearLayout) findViewById(R.id.main_ll_rili);\n main_ll_xw = (LinearLayout) findViewById(R.id.main_ll_xw);\n main_ll_wode = (LinearLayout) findViewById(R.id.main_ll_wd);\n main_ll_self = (LinearLayout) findViewById(R.id.main_ll_self);\n main_ll_hq = (LinearLayout) findViewById(R.id.main_ll_hq);\n main_zt_color = (LinearLayout) findViewById(R.id.main_zt_color);\n\n main_zt_color.setBackgroundColor(Color.parseColor(\"#e9e9ea\"));\n\n imgrl = (ImageView) findViewById(R.id.imgrili);\n imgxw = (ImageView) findViewById(R.id.imgxw);\n imgwd = (ImageView) findViewById(R.id.imgwd);\n imggr = (ImageView) findViewById(R.id.imgself);\n imghq = (ImageView) findViewById(R.id.imghq);\n\n main_rl_tv = (TextView) findViewById(R.id.main_rl_tv);\n main_xw_tv = (TextView) findViewById(R.id.main_xw_tv);\n main_wd_tv = (TextView) findViewById(R.id.main_wd_tv);\n main_gr_tv = (TextView) findViewById(R.id.main_self_tv);\n main_hq_tv = (TextView) findViewById(R.id.main_hq_tv);\n\n main_ll_rl.setOnClickListener(this);\n main_ll_xw.setOnClickListener(this);\n main_ll_wode.setOnClickListener(this);\n main_ll_hq.setOnClickListener(this);\n main_ll_self.setOnClickListener(this);\n }",
"private void setupView() {\n view.setName(advertisement.getTitle());\n view.setPrice(advertisement.getPrice());\n view.setDescription(advertisement.getDescription());\n view.setDate(advertisement.getDatePublished());\n view.setTags(advertisement.getTags());\n setCondition();\n if (advertisement.getImageUrl() != null) { //the url here is null right after upload\n view.setImageUrl(advertisement.getImageUrl());\n }\n }",
"@Override\n public void bindView(View view, Context context, Cursor cursor) {\n ((TextView) view.findViewById(R.id.Title)).setText(cursor.getString(cursor.getColumnIndex(\"Title\")));\n ((TextView) view.findViewById(R.id.Mood)).setText(cursor.getString(cursor.getColumnIndex(\"Mood\")));\n ((TextView) view.findViewById(R.id.Timestamp)).setText(cursor.getString(cursor.getColumnIndex(\"Timestamp\")));\n String mood = cursor.getString(cursor.getColumnIndex(\"Mood\"));\n ImageView moodimage = view.findViewById(R.id.Moodimage);\n switch (mood) {\n case \"Angry\":\n moodimage.setImageResource(R.drawable.angry_egg);\n break;\n case \"Happy\":\n moodimage.setImageResource(R.drawable.happy_egg);\n break;\n case \"Confused\":\n moodimage.setImageResource(R.drawable.tired_egg);\n break;\n case \"Sad\":\n moodimage.setImageResource(R.drawable.sad_egg);\n break;\n\n }\n }",
"@Override\r\n public void onBindViewHolder(MyViewHolder holder, int position) {\r\n // - get element from your dataset at this position\r\n // - replace the contents of the view with that element\r\n holder.textView_longitude.setText(dataset.get(position).dataLongitude);\r\n holder.textView_latitude.setText(dataset.get(position).dataLatitude);\r\n holder.textView_speed.setText(dataset.get(position).dataSpeed);\r\n holder.textView_time.setText(dataset.get(position).dataTime);\r\n\r\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n\n // Individually handles each Contact in the contactList\n LeaderEntry currentEntry = leaderList.get(position);\n\n // Extracts the name of the Contact\n TextView name = holder.mTextViewName.findViewById(R.id.textView_Name);\n name.setText(currentEntry.getLeaderName());\n\n // Extracts the phone number of the Contact\n TextView number = holder.mTextViewName.findViewById(R.id.textView_Score);\n number.setText(currentEntry.getHighScore());\n\n }",
"public void setEvents(View convertView) {\n imgLeft = (RemoteImageView) convertView.findViewById(R.id.img_one_left);\r\n int imgW = (Config.getInstance().getScreenWidth(context) - ContextUtil\r\n .dip2px(context, ListItemBaseNews.ThreeImg_Dip_Offset)) / 3;\r\n int imgH = (int) (imgW * ListItemBaseNews.Defult_Img_Percent);\r\n imgLeft.getLayoutParams().width = imgW;\r\n imgLeft.getLayoutParams().height = imgH;\r\n RelaRight = (RelativeLayout) convertView.findViewById(R.id.rela_left);\r\n RelaRight.getLayoutParams().width = imgW;\r\n RelaRight.getLayoutParams().height = imgH;\r\n\r\n imgPlay = (ImageView) convertView.findViewById(R.id.img_play_icon);\r\n txtTitle = (TextView) convertView.findViewById(R.id.txt_newstitle1);\r\n txtSource = (TextView) convertView.findViewById(R.id.txt_source_3line);\r\n imgMore = (ImageView) convertView.findViewById(R.id.news_more_3line);\r\n txtTime = (TextView) convertView.findViewById(R.id.txt_time_3line);\r\n txtOffline = (TextView) convertView.findViewById(R.id.txt_offline3);\r\n linAddTag = (LinearLayout) convertView\r\n .findViewById(R.id.lin_addlabel_3line);\r\n\r\n }",
"@Override\n public View getView(final int i, View convertView, ViewGroup parent) {\n\n if (convertView == null) {\n li = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n convertView = li.inflate(R.layout.row_speaker, null);\n h = new ViewHolder(convertView);\n convertView.setTag(h);\n\n } else {\n h = (ViewHolder) convertView.getTag();\n }\n\n\n //___________________set data___________________\n h.sl.setText(list.get(i).sl+\". \");\n h.name.setText( list.get(i).name);\n h.topic.setText(list.get(i).topicExtra);\n\n\n /* h.theme.setText(list.get(i).themeExtra);\n h.country.setText(list.get(i).countryExtra);\n h.digit.setText(list.get(i).digitExtra);*/\n\n // hideBlankTextView();\n\n\n h.cardView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n A.setPerson(list.get(i));\n DialogFragment dialog = new InfoDialog();\n dialog.show(((AppCompatActivity) context).getSupportFragmentManager(), \"dialog\");\n }\n });\n return convertView;\n }",
"public void setupDemo() {\n\n Log.d(TAG, \"matching game setupdemo\");\n\n imageDemo = new ImageView(this);\n/*\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n tts.speak(\"Önce nesneleri taniyalim...\", TextToSpeech.QUEUE_FLUSH, null, null);\n }\n else{\n tts.speak(\"Önce nesneleri taniyalim...\", TextToSpeech.QUEUE_FLUSH, null);\n }*/\n\n rLayout = (RelativeLayout) findViewById(R.id.relative_layout);\n rLayout.setBackgroundColor(Color.GRAY);\n\n demoObjectObject = dbHandler.getDemoObjectObject(trainingID);\n\n final RelativeLayout.LayoutParams rLayParams = new RelativeLayout.LayoutParams(height/3, height/3);\n\n //putting middle to show demo of items in each iteration\n rLayParams.addRule(RelativeLayout.CENTER_HORIZONTAL);\n rLayParams.addRule(RelativeLayout.CENTER_IN_PARENT);\n\n final Handler handler = new Handler();\n\n for (int i = 0; i < demoObjectObject.size(); i++) {\n // Log.d(TAG, \"for i=\"+ i);\n\n speech = null;\n final int finalI = i;\n handler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n ObjectObject demoObject = new ObjectObject();\n demoObject = demoObjectObject.get(finalI);\n\n // Log.d(TAG,\"Bu nesnenin şekli \"+dbHandler.getShapeName(demoObject.getShapeID())+\n // \" rengi ise\"+dbHandler.getColorName(demoObject.getColorID())+\"id: \"+demoObject.getObjectID());\n\n\n speech = KEY_THIS + \", \" + dbHandler.getColorName(demoObject.getColorID()) + KEY_AN + \" \" + dbHandler.getShapeName(demoObject.getShapeID());\n Log.d(TAG, speech);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n tts.speak(speech, TextToSpeech.QUEUE_FLUSH, null, null);\n } else {\n tts.speak(speech, TextToSpeech.QUEUE_FLUSH, null);\n }\n\n imgBytes = demoObject.getObjectImageBlob();\n bmp = BitmapFactory.decodeByteArray(imgBytes, 0, imgBytes.length);\n\n imageDemo.setImageBitmap(bmp);\n rLayout.removeAllViews();\n //// TODO: 5/17/2016 background color degistir ki uyumlu olsun nesne ile karismasin rengi,zittini al\n rLayout.addView(imageDemo, rLayParams);\n }\n }, 5000 * i);\n\n // Log.d(TAG, \"3000i sonrasi\");\n/* Thread thread= new Thread(){\n @Override\n public void run(){\n try {\n Log.d(TAG, \"matching game inside thread\");\n wait(demoObjectObject.size() * 5000);\n setupForGame();\n }\n catch(InterruptedException e){\n e.printStackTrace();\n }\n }\n thread.start();*/\n }//for end\n\n handler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n Log.d(TAG, \"SECond handler\");\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n tts.speak(\"Eğitiminiz şimdi başlıyor...\", TextToSpeech.QUEUE_FLUSH, null, null);\n } else {\n tts.speak(\"Eğitiminiz şimdi başlıyor...\", TextToSpeech.QUEUE_FLUSH, null);\n }//// TODO: 5/22/2016 bunlari okuyamiyor süre yetmiyor cunku. bir wait lazim sanki\n\n //setupForGame();\n }\n }, 5000 * demoObjectObject.size());\n // setupForGame();\n\n handler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n Log.d(TAG, \"third handler\");\n setupForGame();\n }\n }, 5000 * demoObjectObject.size()+6000);\n\n Log.d(TAG, \"setupdemo end\");\n }",
"private void initViews() {\n\n //O metodo findViewById() recupera a referencia do EditText que se encontra no XML.\n editTextQuantidade = (EditText) findViewById(R.id.edittext_quantidade);\n imageViewOvos = (ImageView) findViewById(R.id.imageview_ovos);\n textViewTotal = (TextView) findViewById(R.id.textview_total);\n }",
"public ViewHolder(View view) {\r\n super(view);\r\n img = (ImageView) view.findViewById(R.id.recycleimg);\r\n// picture_text = (TextView) view.findViewById(R.id.picture_text);\r\n// picture_img = (TextView) view.findViewById(R.id.picture_img);\r\n// picture_heart = (TextView) view.findViewById(R.id.picture_heart);\r\n// picture_date = (TextView) view.findViewById(R.id.picture_date);\r\n// picture_num = (TextView) view.findViewById(R.id.picture_num);\r\n }",
"public void layoutSetting(PlayerHolder mHolder){\r\n // update the layout width\r\n mHolder.number.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.name.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.twomade.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.twotried.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.threemade.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.threetried.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.ftmade.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.fttried.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.defrebound.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.offrebound.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.assist.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.block.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.steal.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.turnover.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.foul.getLayoutParams().width = MultiDevInit.cellW;\r\n mHolder.point.getLayoutParams().width = MultiDevInit.cellW;\r\n // update the layout height\r\n mHolder.number.getLayoutParams().height = MultiDevInit.recordRowH;\r\n }",
"@Override\n\tprotected void initView() {\n\t\tiv_content = (ImageView) findViewById(R.id.music_content);\n\t\tiv_music = (ImageView) findViewById(R.id.music_me_iv);\n\t\tiv_queen = (ImageView) findViewById(R.id.music_queen_iv);\n\t\ttv_music = (TextView) findViewById(R.id.music_me_tv);\n\t\ttv_queen = (TextView) findViewById(R.id.music_queen_tv);\n\t\tiv_music.setOnClickListener(this);\n\t\tiv_queen.setOnClickListener(this);\n\t\t\n\t\tbitmap=DisplayUtil.readBitMap(getApplicationContext(), R.drawable.music_part1);\n\t\tiv_content.setImageBitmap(bitmap);\n\n\t}"
] | [
"0.671597",
"0.6614927",
"0.6609814",
"0.64849424",
"0.6343432",
"0.6333869",
"0.63174284",
"0.6283455",
"0.6262721",
"0.6251692",
"0.6246769",
"0.62404364",
"0.62311316",
"0.6212745",
"0.61719453",
"0.6169424",
"0.61564815",
"0.61474866",
"0.6144732",
"0.6135087",
"0.61251616",
"0.6123048",
"0.61064327",
"0.6090436",
"0.6075197",
"0.60747075",
"0.6072365",
"0.6066907",
"0.60592204",
"0.60480046",
"0.6046924",
"0.6046393",
"0.6035279",
"0.60343957",
"0.60134894",
"0.6012547",
"0.60124946",
"0.60068816",
"0.60022914",
"0.6001807",
"0.5998814",
"0.599184",
"0.5975466",
"0.5971971",
"0.59709936",
"0.5969294",
"0.5968391",
"0.59661555",
"0.5963855",
"0.59511083",
"0.59479403",
"0.59477425",
"0.59405774",
"0.5939223",
"0.5928423",
"0.5921957",
"0.5917796",
"0.5912763",
"0.59094846",
"0.59086555",
"0.59025383",
"0.59014976",
"0.5891703",
"0.58886063",
"0.58707505",
"0.58665687",
"0.5861645",
"0.5859718",
"0.5848857",
"0.5844465",
"0.5843202",
"0.5840596",
"0.5839243",
"0.58305734",
"0.582969",
"0.58269817",
"0.58197385",
"0.5818133",
"0.58160335",
"0.5813695",
"0.5810026",
"0.58081627",
"0.58064884",
"0.5804783",
"0.58007276",
"0.5799088",
"0.57974803",
"0.5794045",
"0.5792712",
"0.5789306",
"0.5789167",
"0.578891",
"0.5765954",
"0.57642305",
"0.57641536",
"0.5759702",
"0.57582426",
"0.575767",
"0.5749973",
"0.57461625",
"0.5745811"
] | 0.0 | -1 |
set onClick listener for each problem, so they can be edited | @Override
public void onClick(View v) {
int position = getAdapterPosition();
FragmentManager manager = adapter.activity.getSupportFragmentManager();
FragmentTransaction transaction = manager.beginTransaction();
Log.d("ProblemAdapter", "we are on index: " + position);
RecordsFragment fragment = RecordsFragment.newInstance(position);
transaction.addToBackStack(null);
transaction.replace(R.id.content, fragment);
transaction.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ProblemPostAdapter(List<Problem> problemSet, PostProblemViewHolder.OnClickListener onClickListener) {\n mDataSet = problemSet;\n this.onClickListener = onClickListener;\n }",
"protected void onClick() {\n for(Runnable action : onClick) action.run();\n }",
"private void setClickListeners() {\n buttonSomethingWentWrong.setOnClickListener(this);\n buttonSuggestion.setOnClickListener(this);\n buttonHighlightRequest.setOnClickListener(this);\n closeButton.setOnClickListener(this);\n }",
"@Override\n public void onClick(View view) {\n dude = exerciseId.get(position);\n\n Intent startChemTestActivity = new Intent(context, RenderChemsAndArrowsActivity.class);\n ProblemActivity pa = (ProblemActivity)context;\n pa.initExercise(dude);\n context.startActivity(startChemTestActivity);\n }",
"@Override\n public void onClick(View view) {\n mVoteListener.editListener(\"newQuestion\",\n \"newOptionOne\", \"newOptionTwo\");\n }",
"@Override\n\tpublic void onClick(View arg0) {\n\t\tswitch (arg0.getId()) {\n\t\tcase R.id.sureeditoptbtn:\n\t\t\tswitch (opt) {\n\t\t\tcase 0:\n //添加问题\n\t\t\t\tAlertDialog.Builder builder = new Builder(getActivity());\n\t\t\t\tbuilder.setTitle(\"请选择问题的类型\");\n\t\t\t\tbuilder.setIcon(R.drawable.icon_hint);\n\t\t\t\tbuilder.setSingleChoiceItems(items, 0,\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tquestionType = arg1 + 1;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t});\n\t\t\t\tbuilder.setPositiveButton(\"确定\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t// 第num题处添加一题\n\t\t\t\t\t\t\t\tQuestion question = new Question();\n\t\t\t\t\t\t\t\tquestion.setNum(num);\n\t\t\t\t\t\t\t\tquestion.setType(questionType);\n\t\t\t\t\t\t\t\tquestionList.add(num - 1, question);\n\t\t\t\t\t\t\t\tfor (int i = num; i < questionList.size(); i++) {\n\t\t\t\t\t\t\t\t\tquestionList.get(i).setNum(i + 1);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tquestionAapter.notifyDataSetChanged();\n\t\t\t\t\t\t\t\tnumList.add(String.valueOf(questionList.size() + 1));\n\t\t\t\t\t\t\t\tnumAdapter.notifyDataSetChanged();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\tbuilder.setNegativeButton(\"取消\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\tbuilder.create().show();\n\n\t\t\t\tbreak;\n\n\t\t\tcase 1:\n\t\t\t\tquestionList.remove(num - 1);\n\t\t\t\tfor (int i = num - 1; i < questionList.size(); i++) {\n\t\t\t\t\tquestionList.get(i).setNum(i + 1);\n\t\t\t\t}\n\t\t\t\tquestionAapter.notifyDataSetChanged();\n\t\t\t\tnumList.removeLast();\n\t\t\t\tnumAdapter.notifyDataSetChanged();\n\t\t\t\tToast.makeText(getActivity(), \"第\" + num + \"题被成功删除\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tLinkedList<Answer> answerList = questionList.get(num - 1)\n\t\t\t\t\t\t.getAnswerList();\n\t\t\t\tif (answerList == null) {\n\t\t\t\t\tanswerList = new LinkedList<Answer>();\n\t\t\t\t}\n\t\t\t\t\tanswerList.add(new Answer(answerList.size(), num - 1, \"\"));\n\t\t\t\t\tquestionList.get(num - 1).setAnswerList(answerList);\n\t\t\t\t\n\t\t\t\tquestionAapter.notifyDataSetChanged();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tquestionList.get(num - 1).getAnswerList().removeLast();\n\t\t\t\tquestionAapter.notifyDataSetChanged();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\tif(!game.getQuestions()[row][col].hasBeenAsked()) {\n\t\t\t\t\t\t\tupdates.append(\"\\n\" + teamList[game.getWhoseTurn()] + \" chose the question in \" + categories[row] + \" worth $\" + values[col] + \".\");\n\t\t\t\t\t\t\tquestionView(col, row);\n\t\t\t\t\t\t\tquestionPanel.setBackground(Color.GRAY);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"public void setOnClickListeners(){\n\n biegeAlien.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n normalizeImages();\n Constants.CHOSEN_CHARACTER = 0;\n biegeAlien.setImageResource(R.drawable.alienbeige_jump);\n biegeAlien.setBackgroundColor(getResources().getColor(R.color.colorMarker));\n }\n });\n\n blueAlien.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n normalizeImages();\n Constants.CHOSEN_CHARACTER = 1;\n blueAlien.setImageResource(R.drawable.alienblue_jump);\n blueAlien.setBackgroundColor(getResources().getColor(R.color.colorMarker));\n }\n });\n\n greenAlien.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n normalizeImages();\n Constants.CHOSEN_CHARACTER = 2;\n greenAlien.setImageResource(R.drawable.aliengreen_jump);\n greenAlien.setBackgroundColor(getResources().getColor(R.color.colorMarker));\n }\n });\n\n pinkAlien.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n normalizeImages();\n Constants.CHOSEN_CHARACTER = 3;\n pinkAlien.setImageResource(R.drawable.alienpink_jump);\n pinkAlien.setBackgroundColor(getResources().getColor(R.color.colorMarker));\n }\n });\n\n yellowAlien.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n normalizeImages();\n Constants.CHOSEN_CHARACTER = 4;\n yellowAlien.setImageResource(R.drawable.alienyellow_jump);\n yellowAlien.setBackgroundColor(getResources().getColor(R.color.colorMarker));\n }\n });\n }",
"void onEditClicked();",
"void onExamAnswerClick(int index);",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tactualizarOnClick();\n\t\t\t}",
"public void onClicked();",
"private void setOnClickListeners(){\n mDueDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n pickDate(mDueDateCalendar);\n }\n });\n mDueTime.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n pickTime(mDueDateCalendar);\n }\n });\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\n\t\t\t}",
"public void mouseClicked(MouseEvent e)\n {\n displaySelectedQuestion();\n }",
"@Override\n public void onClick() {\n }",
"@Override\n\tpublic void onClick() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n }",
"@Override\n public void onClick(View view) {\n Toast.makeText(MeetDetails.this,\n \"WIP: Ir a EditarCita\", Toast.LENGTH_LONG).show();\n }",
"@Override\r\n\t\t\t\tpublic void onClick() {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onClick() {\n\r\n\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tgeti();\n\t\t\t}",
"@Override\n public void onClick() {\n }",
"@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface arg0, int arg1) {\n }",
"@Override\n public void onClick(View v) {\n marcarLlamada(v); //llama al metodo marcarLlamada\n }",
"private void puzzleButtonClicked(int i){\n\t\tthis.lvl = new BuilderPuzzleLevelController(mc, this, model, i);\n\t\tmc.requestSwap(lvl);\n\t}",
"@Override\n public void onClick(DialogInterface arg0, int arg1) {\n }",
"@Override\n public void onClick(DialogInterface arg0, int arg1) {\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialogInterface, int i) {\n\t\t\t}",
"@Override\n public void onClick(View v) {\n togglePhysicianHint();\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"void onClick(int index);",
"public void mouseClicked(MouseEvent e) {\r\n\t\t\tswitch (mode) {\r\n\t\t\tcase CHANGE_VALUE:\r\n\t\t\t\tPoint accClick2 = new Point((int) e.getX(), (int) e.getY());\r\n\t\t\t\tint[] mockArr = canvas.getArr();\r\n\t\t\t\tint arrLen = canvas.getArr().length;\r\n\t\t\t\tint itemClicked = canvas.getArr().length; \r\n\t\t\t\tfor (int i = 0; i < arrLen; i++) {\r\n\t\t\t\t\tint y1 = 26+(60*i);\r\n\t\t\t\t\tint y2 = 76+(60*i);\r\n\t\t\t\t\tif (zoneClicked(22, 222, y1, y2, accClick2)) itemClicked = i;\r\n\t\t\t\t} \r\n\t\t\t\tif (itemClicked < canvas.getArr().length){\r\n\t\t\t\t\tJFrame addQuestion = new JFrame(\"Change an element\");\r\n\t\t\t\t\tString init = JOptionPane.showInputDialog(addQuestion, \"What integer should go in arr[\" + itemClicked + \"]?\");\r\n\t\t\t\t\tif (init != null) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tint i = Integer.valueOf(init);\r\n\t\t\t\t\t\t\tmockArr[itemClicked] = i;\r\n\t\t\t\t\t\t\tcanvas.setArr(mockArr);\r\n\t\t\t\t\t\t} catch(NumberFormatException error) {\r\n\t\t\t\t\t\t\tJFrame frame2 = new JFrame(\"\");\r\n\t\t\t\t\t\t\t// Warning\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frame2,\r\n\t\t\t\t\t\t\t\t\t\"Input value is not a valid number\",\r\n\t\t\t\t\t\t\t\t\t\"Input Warning\",\r\n\t\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tinstr.setText(\"Failed click on elements. Click again.\");\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\tcanvas.repaint();\r\n\t\t\t\tbreak;\t\t\r\n\t\t\tcase ACCESS:\r\n\t\t\t\tPoint accClick = new Point((int) e.getX(), (int) e.getY()); \t\t\t\t\r\n\t\t\t\tint arrLen2 = canvas.getArr().length;\r\n\t\t\t\tint itemClicked2 = canvas.getArr().length; \r\n\t\t\t\tfor (int i = 0; i < arrLen2; i++){\r\n\t\t\t\t\tint y1 = 26+(60*i);\r\n\t\t\t\t\tint y2 = 76+(60*i);\r\n\t\t\t\t\tif (zoneClicked(22, 222, y1, y2, accClick)) itemClicked2 = i;\r\n\t\t\t\t}\r\n\t\t\t\tinstr.setText(\"The item, if accessed, is in red.\");\r\n\t\t\t\tif (itemClicked2 < canvas.getArr().length){\r\n\t\t\t\t\tcanvas.arrAccess(itemClicked2);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tinstr.setText(\"Failed click on elements. Click again.\");\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\tbreak;\t\t\t\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(View v) {\n togglePhysicianHint();\n }",
"@Override\n\t\t\t public void onClick(DialogInterface arg0, int arg1) {\n\t\t\t \n\n\t\t\t\t\t\t\t\n\n\n\t\t\t \n\t\t\t }",
"public void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n branch[0] = branch[0] + edit.getText().toString();\n edit.setText(\"\");\n text1.setText(\"Enter the Marks(Out of 100)\");\n edit.setHint(\"Marks?\");\n butt.setText(\"Done\");\n if(branch[0].equals(\"11\") || branch[0].equals(\"21\") || branch[0].equals(\"31\") || branch[0].equals(\"41\")|| branch[0].equals(\"51\")) //1st semester\n {\n text2.setText(\"Chemistry\");\n butt.setOnClickListener(new View.OnClickListener() { //Chemistry marks entered\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Mechanics\"); //Mechanics\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Mathematics\"); //Maths\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Physics\"); //Physics\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Communication Skills\"); //CS\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Chemistry LAB\"); //chem lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(2*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Workshop\"); //Workshop\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Engineering Drawing\"); //ED\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(5*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=40.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"12\") || branch[0].equals(\"22\") || branch[0].equals(\"32\") || branch[0].equals(\"42\") || branch[0].equals(\"52\")) //2nd semester\n {\n text2.setText(\"IC\"); //IC\n butt.setOnClickListener(new View.OnClickListener() { //IC marks entered\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"BEES\"); //BEES\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Mathematics\"); //Maths\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Physics\"); //Physics\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"EVS\"); //EVS\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"IC LAB\"); //IC lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"BEES LAB\"); //BEES lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Physics Lab\"); //Physics lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=40.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"13\")) //CSE 3rd semester\n {\n text2.setText(\"Maths\"); //Maths\n butt.setOnClickListener(new View.OnClickListener() { //IC marks entered\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Data Structures\"); //Data Structures\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Discrete Mathematics\"); //Discrete Maths\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Design\"); //Digital Design\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Engineering Economics\"); //EE\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Data Structures LAB\"); //DS lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Design LAB\"); //DD lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=36.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"14\")) //CSE 4th semester\n {\n text2.setText(\"Formal Languages\"); //FM\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Algorithms\"); //algorithms\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Computer Architecture\"); //Computer Architecture\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Object Oriented Programming\"); //oops\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Probability and Random Process\"); //probability\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Algorithms LAB\"); //Algo lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Object Oriented Programming LAB\"); //oops lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Peripherals and Accessories LAB\"); //peripheral lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=41.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"15\")) //CSE 5th semester\n {\n text2.setText(\"Optimization\"); //optimization\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Software Engineering\"); //software engineering\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Operating System\"); //os\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Data Communication\"); //data communication\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Machine Learning\"); //machine learning\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Software Engineering LAB\"); //soft lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Operating Systems LAB\"); //os lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Machine Learning LAB\"); //ml lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=41.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"16\")) //CSE 6th semester\n {\n text2.setText(\"Management and Economics\"); //management\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Databases\"); //databases\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Compilers\"); //compilers\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Computer Networks\"); //comp. net.\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Information Storage and Retrieval\"); //info\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Databases LAB\"); //data lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"System Programming LAB\"); //compilers lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Computer Networks LAB\"); //cn lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"17\")) //CSE 7th semester\n {\n text2.setText(\"Computer Graphics\"); //graphics\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Numerical Methods\"); //numerical\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - I\"); //de1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - II\"); //de2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - III\"); //de3\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Computer Graphics LAB\"); //graphics lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project - I\"); //project1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"18\")) //CSE 8th semester\n {\n text2.setText(\"Department Elective - IV\"); //de4\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - V\"); //de5\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - VI\"); //de6\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project - II\"); //project2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=27.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"23\")) //ECE 3rd semester\n {\n text2.setText(\"Network Analysis\"); //na\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Semiconductor Device and Circuits\"); //sdc\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Analog Circuits\"); //AC\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Maths\"); //math\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"HSS Elective\"); //hss\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Network Analysis LAB\"); //na lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Semiconductor Device LAB\"); //sdc lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Analog Circuits LAB\"); //ac lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=37.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"24\")) //ECE 4th semester\n {\n text2.setText(\"Digital Electronics\"); //de\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Analog Communication\"); //ac\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electronics and Electrical Measurements\"); //ee\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Signals and System\"); //signals\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Probability and Random Process\"); //prob\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Electronics LAB\"); //de lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Analog Communication LAB\"); //ac lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electronics and Electrical Measurement LAB\"); //ee lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"25\")) //ECE 5th semester\n {\n text2.setText(\"Microprocessors\"); //micro\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Communication\"); //dc\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electromagnetic Thoery\"); //em\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Signal Processing\"); //digital signals\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Control System\"); //cs\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Microprocessors LAB\"); //micro lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Communication LAB\"); //dc lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Signal Processing LAB\"); //digital signals lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Control Systems LAB\"); //cs LAB\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0]+=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=42.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"26\")) //ECE 6th semester\n {\n text2.setText(\"VLSI Design\"); //vlsi\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Embedded System\"); //embedded systems\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Industrial Electronics\"); //industrial\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Antenna Design\"); //antenna\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"VHDL\"); //vhdl\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"VLSI and VHDL LAB\"); //VLSI lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Embedded System LAB\"); //embedded lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Industrial Electronics LAB\"); //industrial signals lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Antenna Design LAB\"); //antenna LAB\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0]+=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=42.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"27\")) //ECE 7th semester\n {\n text2.setText(\"Industrial Management\"); //industrial\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Microwave Engineering\"); //me\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Computer Networks\"); //computer\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - I\"); //de1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - II\"); //de2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project - I\"); //project1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Microwave Engineering LAB\"); //mw lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Computer Networks LAB\"); //networks lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=37.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"28\")) //ECE 8th semester\n {\n text2.setText(\"Department Elective - III\"); //de3\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - IV\"); //de4\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Open Elective\"); //oe\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Soft Skills\"); //soft skills\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project Work - II\"); //project\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(9*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=31.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"33\")) //ME 3rd semester\n {\n text2.setText(\"Mathematics\"); //maths\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Engineering Thermodynamics\"); //thermo\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Strength of Materials\"); //strength\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Engineering Materials\"); //eng. materials\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Manufacturing Technology\"); //manufacturing\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Machine Drawing\"); //machine drawing\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(5*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Strength of Materials LAB\"); //stength lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=40.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"34\")) //ME 4th semester\n {\n text2.setText(\"Numerical Methods\"); //numerical methods\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Fluid Mechanics\"); //fluid\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Kinematics of Machinery\"); //kinematics\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Heat and Mass Transfer\"); //heat\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Manufacturing Technology - II\"); //manufacturing\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Heat Transfer LAB\"); //heat transfer\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Manufacturing Technology LAB\"); //manufacturing technology lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=40.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"35\")) //ME 5th semester\n {\n text2.setText(\"Mechanical Measurements and Metrology\"); //measurements\n butt.setOnClickListener(new View.OnClickListener() { //IC marks entered\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Trubomachines\"); //turbo\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Dynamics of Machinery\"); //machinery\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Thermal Engineering - I\"); //Thermal Eng1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Design of Machine Elements - I\"); //machine elements\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Measurements and Metrology LAB\"); //Measurements lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Fluid Mechanics and Turbomachinery LAB\"); //fluid lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Dynamics of Machine LAB\"); //dynamics LAB\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=41.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"36\")) //ME 6th semester\n {\n text2.setText(\"Mechatronics\"); //mechatronics\n butt.setOnClickListener(new View.OnClickListener() { //IC marks entered\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Automobile Engineering\"); //automobile\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Refrigeration\"); //refrigeration\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Thermal Engineering - II\"); //Thermal Eng2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Design of Machine Elements - II\"); //machine elements2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Mechatronics LAB\"); //Mechatronics lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Automobile Engineering LAB\"); //automobile lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Thermal Engineering LAB\"); //thermal LAB\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=41.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"37\")) //ME 7th semester\n {\n text2.setText(\"HSS Elective\"); //hss\n butt.setOnClickListener(new View.OnClickListener() { //IC marks entered\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Industrial Engineering and Operations Reaserch\"); //insudtrial\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"CAD/CAM\"); //cad\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Departmental Elective - I\"); //de1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Departmental Elective - II\"); //de2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"CAD/CAM LAB\"); //cad lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project Work - I\"); //project1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=34.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"38\")) //ME 8th semester\n {\n text2.setText(\"HSS Elective\"); //hss\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - III\"); //de3\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - IV\"); //de4\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Open Elective\"); //oe\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project Work - II\"); //project\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(9*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=31.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"43\")) //EE 3rd semester\n {\n text2.setText(\"Network Analysis\"); //na\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Semiconductor Device and Circuits\"); //sdc\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Analog Circuits\"); //AC\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Maths\"); //math\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"HSS Elective\"); //hss\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Network Analysis LAB\"); //na lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Semiconductor Device LAB\"); //sdc lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Analog Circuits LAB\"); //ac lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=37.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"44\")) //EE 4th semester\n {\n text2.setText(\"Numerical Methods\"); //numerical\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Electronics\"); //ac\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Measurements and Instrumentation\"); //ee\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Signals and System\"); //signals\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electrical Machines - I\"); //machines\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Electronics LAB\"); //de lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electrical Machines LAB\"); //machines lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Measurement and Instrumentation LAB\"); //instrumentation lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=41.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"45\")) //EE 5th semester\n {\n text2.setText(\"Power Electronics\"); //power\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electrical Machines - II\"); //machines\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Transmission and Distribution\"); //transmission\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Control System\"); //systems\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electromagnetic Field\"); //electromagnetic feild\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electrical Machines - II LAB\"); //machines lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Power Electronics LAB\"); //power lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Numerical Methods LAB\"); //numericals lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"46\")) //EE 6th semester\n {\n text2.setText(\"Microprocessors and Applications\"); //microprocessors\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Power System Protection\"); //power system\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Advanced Control System\"); //advanced control\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Renewable Energy Resources\"); //Resources\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Communication System\"); //communication\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Microprocessor LAB\"); //microprocessors lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Power System LAB\"); //power lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Control System LAB\"); //control lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"47\")) //EE 7th semester\n {\n text2.setText(\"High Voltage Engineering\"); //voltage\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Power System Analysis\"); //power system\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Elective - I\"); //elective1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Elective - II\"); //elective2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Renewable Energy LAB\"); //renewable lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project - I\"); //project\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] += (6 * obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total /= 39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"48\")) //EE 8th semester\n {\n text2.setText(\"Power System Operation and Control\"); //power\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Elective - III\"); //elective3\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Open Elective\"); //op\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"HSS Elective - IV\"); //hss4\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project - II\"); //project2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total /= 39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"53\")) //CE 3rd semester\n {\n text2.setText(\"Mathematics\"); //maths\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Solid Mechanics\"); //sm\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Engineering Geology\"); //geology\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Civil Engineering Materials\"); //materials\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Surveying\"); //survey\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Civil Engineering Materials LAB\"); //Civil Engineering Materials lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Surveying LAB\"); //Surveying lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Building Drawing and CAD LAB\"); //Building Drawing and CAD lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=42.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"54\")) //CE 4th semester\n {\n text2.setText(\"Numerical Methods\"); //numerical\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Structural Analysis - I\"); //Structural Analysis I\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Environmental Engineering - I\"); //Environmental Engineering I\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Geotechnical Engineering - I\"); //Geotechnical Engineering I\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Hydrology and Water Resources Engineering\"); //Hydrology and Water Resources Engineering\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Environmental Engineering LAB\"); //Environmental Engineering lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Geotechnical Engineering - I LAB\"); //Geotechnical Engineering lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=38.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"55\")) //CE 5th semester\n {\n text2.setText(\"Structural Analysis II\"); //power\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Environmental Engineering II\"); //machines\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Geotechnical Engineering II\"); //transmission\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Fluid Mechanics\"); //systems\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Reinforced Concrete Design\"); //electromagnetic feild\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Geotechnical Engineering - II LAB\"); //machines lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Fluid Mechanics LAB\"); //power lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"56\")) //CE 6th semester\n {\n text2.setText(\"HSS - II\"); //microprocessors\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Transportation Engineering - I\"); //power system\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Construction Technology and Management\"); //advanced control\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Design of Steel Structures\"); //Resources\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Hydraulics and Hydraulic Structures\"); //communication\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Transportation Engineering - I LAB\"); //microprocessors lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Hydraulics and Hydraulic Structures LAB\"); //power lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"57\")) //CE 7th semester\n {\n text2.setText(\"HSS - III\"); //voltage\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Transportation Engineering - II\"); //power system\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Elective - I\"); //elective1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Elective - II\"); //elective2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Open Elective - I\"); //renewable lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Computational LAB\"); //project\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] += (3 * obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total /= 31.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"58\")) //CE 8th semester\n {\n text2.setText(\"Departmental Elective - III\"); //power\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Departmental Elective IV\"); //elective3\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Open Elective - II\"); //op\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project\"); //hss4\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(9*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total /= 27.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1)\r\n\t\t\t{\n\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tGridLayout gl;\n\t\t//fenetre.setLayout(gl=new GridLayout(3, 2));\n\t\tfenetre.setLayout(new FlowLayout());\n\t\tfenetre.add(label_pseudal);\n\t\tfenetre.add(pseudo);\n\t\t\n\t \n\t\tfenetre.setTitle(\"Travail sur des taches\");\n\t\tfenetre.add(bouton_ok);\n\t\t\n\t\tfenetre.setSize(400, 500);\n\t\t//gl.setColumns(2);\n\t\t//gl.setRows(3);\n\t\t\n\t\tfenetre.setLocationRelativeTo(null);\n\t\t\n\t\tfenetre.setVisible(true); \n\t\t\n\t\t\n\n\t\tbouton_ok.addMouseListener(new MouseListener(){\n\t\n\t\t @SuppressWarnings(\"deprecation\")\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t \t\n\t\t \ttry {\n\t\t \t\t\n\t\t\t\t\t\n\t\t\t \tString username = pseudo.getText();\n\n\t\t\t\t\tSystem.out.println(\"Etablir une liste de room\");\n\t\t\t\t\t\n\t\t\t\t\t // Now start our bot up.\n\t\t\t BotGetRoom botg = new BotGetRoom();\n\t\t\t \n\t\t\t // Enable debugging output.\n\t\t\t botg.setVerbose(true);\n\t\t\t \n\t\t\t // Connect to the IRC server.\n\t\t\t \n\t\t\t\t\tbotg.connect(\"irc.freenode.net\");\n\t\t\t\t\t\n\t\t\t // Join the channel.\n\t\t\t botg.joinChannel(\"#TEST_TER_GRID_JH\");\n\t\t\t // on ask le provider\n\t\t\t \n\t\t\t botg.sendMessage(\"#TEST_TER_GRID_JH\", \"problem?\");\n\t\t\t \n\t\t\t File resume = new File(\"resume.txt\");\n\t\t\t while(!resume.exists())\n\t\t\t {\t\n\t\t\t \tSystem.out.println(\"On attend le fichier qui resume tout les probleme disponible\");\n\t\t\t \tThread.sleep(500);\n\t\t\t } \n\t\t\t Scanner scanner = new Scanner(new File(\"resume.txt\"));\n\t\t\t\t\twhile (scanner.hasNextLine()) {\n\t\t\t\t\t\tString line = scanner.nextLine();\n\t\t\t\t\t\tcomboPrb.addItem(line);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"Fin de etablir une liste de room\");\n\n\t\t\t\t\t\n\t\t\t\t\tfenetre.remove(label_pseudal);\n\t\t\t\t\tfenetre.remove(pseudo);\n\t\t\t\t\t\n\t\t\t\t\tfenetre.remove(bouton_ok);\n\t\t\t\t\tfenetre.setVisible(false); \n\t\t\t\t\t\n\t\t\t\t\t//On rafraichit \n\t\t\t\t\tfenetre.add(affichage);\n\t\t\t\t\tfenetre.add(comboPrb);\n\t\t\t\t\tfenetre.add(bouton_ok_channel);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tbouton_ok_channel.setProblemeCourant(comboPrb.getSelectedItem().toString());\n\t\t\t\t\tbouton_ok_channel.setUsername(username);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfenetre.setVisible(true); \n\t\t\t\t\t\t\t\n\t\t\t\t} catch (NickAlreadyInUseException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (IrcException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t }\n\t\n\t\t public void mousePressed(MouseEvent e) {\n\t\n\t\t }\n\t\n\t\t public void mouseReleased(MouseEvent e) {\n\t\n\t\t }\n\t\n\t\t public void mouseEntered(MouseEvent e) {\n\t\n\t\t }\n\t\n\t\t public void mouseExited(MouseEvent e) {\n\t\n\t\t\t}\n\t\t});\n\t}",
"private void setUpClickListerns ()\n\t{\n\t\tLinearLayout temp_layout ;\n\t\tButton temp_button ;\n\t\tfor (int i = 0 ; i<numPad.getChildCount() ; i++)\n\t\t{\n\t\t\ttemp_layout = (LinearLayout) numPad.getChildAt(i);\n\t\t\tfor (int j = 0;j< temp_layout.getChildCount() ; j++)\n\t\t\t{\n\t\t\t\ttemp_button = (Button) temp_layout.getChildAt(j);\n\t\t\t\ttemp_button.setOnClickListener(this);\n\t\t\t}\n\t\t}\n\t\t\n\t\tchangePass.setOnClickListener(this);\n\t\tclear.setOnClickListener(this);\n\t\tpassField.setFocusable(false);\n\t}",
"@Override\n public void onClick(DialogInterface dialog,\n int which) {\n\n }",
"@Override\n public void onClick(View arg0) {\n }",
"@Override\n public void onClick(View arg0) {\n }",
"@Override\n public void onClick(View arg0) {\n }",
"@Override\n public void onClick(View arg0) {\n }",
"@Override\n public void onClick(View arg0) {\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n }",
"@Override\n public void onClick(View v) {\n set();\n }"
] | [
"0.66873264",
"0.61740285",
"0.61695665",
"0.6134984",
"0.6028738",
"0.5950286",
"0.59229606",
"0.5857231",
"0.5839922",
"0.5827",
"0.5812425",
"0.57884055",
"0.5765075",
"0.5745176",
"0.5745176",
"0.5745176",
"0.5742281",
"0.573374",
"0.5731646",
"0.5727194",
"0.5723694",
"0.5715215",
"0.5709305",
"0.5708532",
"0.56912535",
"0.56912535",
"0.56912535",
"0.56912535",
"0.56905985",
"0.56894284",
"0.5677985",
"0.5665708",
"0.5665708",
"0.5664926",
"0.5655668",
"0.56483626",
"0.56467116",
"0.56467116",
"0.56467116",
"0.56467116",
"0.56467116",
"0.56375617",
"0.56369287",
"0.56345654",
"0.56321627",
"0.56321627",
"0.5628398",
"0.5628398",
"0.5628398",
"0.5628398",
"0.5625108",
"0.56227237",
"0.561342",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5606586",
"0.5595996",
"0.55816835",
"0.55799574",
"0.5570737",
"0.556983",
"0.55654794",
"0.5561701",
"0.55604243",
"0.55581856",
"0.5557245",
"0.55557954",
"0.5552578",
"0.55519956",
"0.55519956",
"0.55519956",
"0.55519956",
"0.55519956",
"0.55497515",
"0.55497515",
"0.55497515",
"0.55497515",
"0.55497515",
"0.55497515",
"0.55480826",
"0.55480826",
"0.55480826",
"0.5547544"
] | 0.0 | -1 |
This constructs an instance from a factory and a notifier. | public tzpropOptionalItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Factory() {\n this(getInternalClient());\n }",
"public Factory() {\n\t\tsuper();\n\t}",
"private VerifierFactory() {\n }",
"public InternalFloaterFactory() {\n super();\n }",
"public static Factory factory() {\n return ext_h::new;\n }",
"public ObjectifyFactory factory() {\n return ofy().factory();\n }",
"public static Factory factory() {\n return ext_xspf::new;\n }",
"private FactoryTransformer(Factory factory) {\n super();\n iFactory = factory;\n }",
"public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }",
"private LocatorFactory() {\n }",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"public ParameterizedInstantiateFactory() {\r\n super();\r\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> defer(\r\n\t\t\t@Nonnull final Func0<? extends Observable<? extends T>> observableFactory) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull Observer<? super T> observer) {\r\n\t\t\t\treturn observableFactory.invoke().register(observer);\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"protected Object buildNewInstanceUsingFactory() throws DescriptorException {\n try {\n // If the method is static, the first argument is ignored and can be null\n if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){\n try {\n return AccessController.doPrivileged(new PrivilegedMethodInvoker(this.getMethod(), this.getFactory(), new Object[0]));\n } catch (PrivilegedActionException exception) {\n Exception throwableException = exception.getException();\n if (throwableException instanceof IllegalAccessException) {\n throw DescriptorException.illegalAccessWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), throwableException);\n } else {\n throw DescriptorException.targetInvocationWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), throwableException);\n }\n }\n } else {\n return PrivilegedAccessHelper.invokeMethod(this.getMethod(), this.getFactory(), new Object[0]);\n }\n } catch (IllegalAccessException exception) {\n throw DescriptorException.illegalAccessWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), exception);\n } catch (InvocationTargetException exception) {\n throw DescriptorException.targetInvocationWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), exception);\n } catch (NullPointerException exception) {\n // Some JVMs will throw a NULL pointer exception here\n throw DescriptorException.nullPointerWhileMethodInstantiation(this.getMethod().toString(), this.getDescriptor(), exception);\n }\n }",
"private ServiceFactory() {}",
"public ReplicateObjectMessageFactory() {\n super(null);\n }",
"public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public interface AbstractSenderFactory {\n Sender create();\n}",
"private Builder(final Function<Builder, DoubleFunction<String>> factory) {\n this.factory = factory;\n }",
"private ConcreteFactory() {}",
"interface Factory {\r\n /**\r\n * Create an instance of an agenda view model with the given saved\r\n * instance state.\r\n *\r\n * @param savedInstanceState previously saved state of the view model\r\n * @return the created agenda view model\r\n */\r\n AgendaViewModel create(Bundle savedInstanceState);\r\n }",
"public interface Factory {\r\n}",
"Instance createInstance();",
"public CertificationFactoryImpl() {\n\t\tsuper();\n\t}",
"Reproducible newInstance();",
"protected Object buildFactory() throws DescriptorException {\n if (this.getFactoryClass() == null) {\n return null;\n }\n\n // If there is a factory class specified but no factory method name,\n // instantiate the factory using the default constructor\n if (this.getFactoryMethodName() == null) {\n return this.buildFactoryUsingDefaultConstructor();\n }\n\n // If both the factory class and the factory method name have been specified,\n // instantiate the factory by invoking the static factory method\n return this.buildFactoryUsingStaticMethod();\n }",
"private NotificationClient() { }",
"public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}",
"public interface Factory<T> {\n T create();\n}",
"public static ToUseTimeLineFactory init() {\n\t\ttry {\n\t\t\tToUseTimeLineFactory theToUseTimeLineFactory = (ToUseTimeLineFactory)EPackage.Registry.INSTANCE.getEFactory(ToUseTimeLinePackage.eNS_URI);\n\t\t\tif (theToUseTimeLineFactory != null) {\n\t\t\t\treturn theToUseTimeLineFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ToUseTimeLineFactoryImpl();\n\t}",
"public interface SerializerFactory<T> {\n\t\n\t/** the method creates a new MessageSerializer.\n\t * \n\t * @return new object that implements the MessageSerializer interface. \n\t */\n MessageSerializer<T> create();\n}",
"private VegetableFactory() {\n }",
"private MultibinderFactory() { }",
"public static ScribbleFactory init()\n {\n\t\ttry {\n\t\t\tScribbleFactory theScribbleFactory = (ScribbleFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.scribble.org/Scribble\"); \n\t\t\tif (theScribbleFactory != null) {\n\t\t\t\treturn theScribbleFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ScribbleFactoryImpl();\n\t}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"private JSONMessageFactory(){}",
"public LanterneFactoryImpl() {\n\t\tsuper();\n\t}",
"private Notifier(){}",
"private static O11y create(\n Context context, CounterFactory counterFactory, DistributionFactory distributionFactory) {\n return new O11y(\n // throttlingMs is a special counter used by dataflow. When we are having to throttle,\n // we signal to dataflow that fact by adding to this counter.\n // Signaling to dataflow is important so that a bundle isn't categorised as hung.\n counterFactory.get(context.getNamespace(), \"throttlingMs\"),\n // metrics specific to each rpc\n counterFactory.get(context.getNamespace(), \"rpc_failures\"),\n counterFactory.get(context.getNamespace(), \"rpc_successes\"),\n counterFactory.get(context.getNamespace(), \"rpc_streamValueReceived\"),\n distributionFactory.get(context.getNamespace(), \"rpc_durationMs\"),\n // qos wide metrics\n distributionFactory.get(RpcQos.class.getName(), \"qos_write_latencyPerDocumentMs\"),\n distributionFactory.get(RpcQos.class.getName(), \"qos_write_batchCapacityCount\"));\n }",
"void init(Properties realTimeNotifierProperties, Properties persistentNotifierProperties);",
"public static Testing2Factory init() {\n\t\ttry {\n\t\t\tTesting2Factory theTesting2Factory = (Testing2Factory)EPackage.Registry.INSTANCE.getEFactory(Testing2Package.eNS_URI);\n\t\t\tif (theTesting2Factory != null) {\n\t\t\t\treturn theTesting2Factory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new Testing2FactoryImpl();\n\t}",
"static NotificationJobInstanceProcessorFactory of(NotificationJobInstanceProcessor<?, ?> jobInstanceProcessor) {\n return new NotificationJobInstanceProcessorFactory() {\n\n @Override\n @SuppressWarnings(\"unchecked\")\n public <T extends NotificationJobInstance<?, ?>> NotificationJobInstanceProcessor<?, T> createJobInstanceProcessor(NotificationJobContext jobContext, T jobInstance) {\n return (NotificationJobInstanceProcessor<?, T>) jobInstanceProcessor;\n }\n\n };\n }",
"public BaseNotificationBuilder() {\n this(new Notification());\n }",
"CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }",
"public HttpUrlFetcher(Call.Factory factory) {\n super(factory);\n Intrinsics.checkParameterIsNotNull(factory, \"callFactory\");\n }",
"public CommonsFactoryImpl() {\n\t\tsuper();\n\t}",
"public Testing2FactoryImpl() {\n\t\tsuper();\n\t}",
"public GpflFactoryImpl()\n {\n super();\n }",
"public interface AlertFactoryMethod {\n\n Alert createAlert(String message);\n\n}",
"Sticker.Factory getStickerFactory();",
"public interface Factory<T> {\n\n /**\n * Returns an instance of the required type. The implementation determines whether or not a new or cached\n * instance is created every time this method is called.\n *\n * @return an instance of the required type.\n */\n T getInstance();\n}",
"public static Factory factory() {\n return ext_accdt::new;\n }",
"public interface IMessageFetcherFactory {\n /**\n * Create a fetcher for a named queue with given consumer of the item\n *\n * @param queueName Named queue in HzC.\n * @param itemConsumer The logic to be called once the item arrives in the queue\n * @param <T> Type of the item kept in queue\n * @return Constructed instance of the message fetcher\n */\n <T> IMessageFetcher<T> createFetcher(String queueName, Consumer<T> itemConsumer);\n}",
"public static StaticFactoryInsteadOfConstructors newInstance() {\n return new StaticFactoryInsteadOfConstructors();\n }",
"private CloneFactory() {\n }",
"public FvFactoryImpl() {\n\t\tsuper();\n\t}",
"public PetrinetmodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public ResourceFactory(){}",
"private Instantiation(){}",
"public static Factory factory() {\n return text::new;\n }",
"public static CertificationFactory init() {\n\t\ttry {\n\t\t\tCertificationFactory theCertificationFactory = (CertificationFactory)EPackage.Registry.INSTANCE.getEFactory(CertificationPackage.eNS_URI);\n\t\t\tif (theCertificationFactory != null) {\n\t\t\t\treturn theCertificationFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CertificationFactoryImpl();\n\t}",
"public EsoFactoryImpl()\r\n {\r\n super();\r\n }",
"public StateMaintainer( final StateCaretaker caretaker, final ThreadFactory threadFactory) {\n _caretaker = caretaker;\n _scheduler = Executors.newSingleThreadScheduledExecutor( threadFactory);\n }",
"public interface Factory {\n LeiFeng createLeiFeng();\n}",
"public ClientRepositoryFactory() {\n this(new ClientAdapterFactory());\n }",
"public EcoreFactoryImpl()\n {\n super();\n }",
"private ObjectFactory() { }",
"public EcoreFactoryImpl() {\n super();\n }",
"public ClientRepositoryFactory(LocalAdapterFactory factory) {\n this.factory = factory;\n }",
"Factory<? extends T> buildPersonFactory(String type);",
"public static CostFactory init() {\n\t\ttry {\n\t\t\tCostFactory theCostFactory = (CostFactory)EPackage.Registry.INSTANCE.getEFactory(CostPackage.eNS_URI);\n\t\t\tif (theCostFactory != null) {\n\t\t\t\treturn theCostFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CostFactoryImpl();\n\t}",
"public Notification() {\n\n\t}",
"public ObjectFactory() {\n\t}",
"public static XCanopusFactory init()\r\n {\r\n try\r\n {\r\n XCanopusFactory theXCanopusFactory = (XCanopusFactory)EPackage.Registry.INSTANCE.getEFactory(XCanopusPackage.eNS_URI);\r\n if (theXCanopusFactory != null)\r\n {\r\n return theXCanopusFactory;\r\n }\r\n }\r\n catch (Exception exception)\r\n {\r\n EcorePlugin.INSTANCE.log(exception);\r\n }\r\n return new XCanopusFactoryImpl();\r\n }",
"public Factory() {\n\t\tnb_rounds = 0; \n\t\tnb_to_train = 0; \n\t\ttraining_queue = new LinkedList<Pair<Soldier, Integer>>(); \n\t\tcurrent = null;\n\t}",
"public MystFactoryImpl()\r\n {\r\n super();\r\n }",
"public ObjectFactory() {\r\n\t}",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }"
] | [
"0.6554377",
"0.6267452",
"0.6110438",
"0.6079239",
"0.60466135",
"0.604489",
"0.60234535",
"0.59148544",
"0.5899164",
"0.58979696",
"0.5893641",
"0.58793443",
"0.5844335",
"0.58347386",
"0.58312017",
"0.5821703",
"0.58199847",
"0.5806926",
"0.5787606",
"0.57490224",
"0.5725055",
"0.5724125",
"0.56987506",
"0.56891274",
"0.56845623",
"0.56736946",
"0.56718075",
"0.5665671",
"0.5663768",
"0.5650563",
"0.5640844",
"0.56399596",
"0.563873",
"0.5638041",
"0.56354344",
"0.56354344",
"0.56354344",
"0.56216717",
"0.56182796",
"0.56111145",
"0.56103194",
"0.56072205",
"0.56013024",
"0.5599487",
"0.5596933",
"0.5595322",
"0.5586119",
"0.55839396",
"0.5581179",
"0.55785006",
"0.55749834",
"0.5570536",
"0.5566775",
"0.5562288",
"0.55566174",
"0.555538",
"0.5553523",
"0.55497026",
"0.554756",
"0.55393547",
"0.5528356",
"0.55261666",
"0.55154634",
"0.55153036",
"0.55105793",
"0.5505707",
"0.5496463",
"0.54941535",
"0.5493109",
"0.5489857",
"0.5486462",
"0.54861534",
"0.5479804",
"0.54783547",
"0.5478229",
"0.54760635",
"0.5474515",
"0.5473367",
"0.5472519",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786",
"0.54608786"
] | 0.0 | -1 |
This returns the property descriptors for the adapted class. | @Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
addCommentPropertyDescriptor(object);
addRdatePropertyDescriptor(object);
addTznamePropertyDescriptor(object);
addX_propPropertyDescriptor(object);
addIana_propPropertyDescriptor(object);
}
return itemPropertyDescriptors;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PropertyDescriptor[] getPropertyDescriptors () {\n return desc;\n }",
"public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }",
"@Override\n public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }",
"public List<IPropertyDescriptor<T>> getProperties();",
"public java.beans.PropertyDescriptor[] getPropertyDescriptors()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfinal java.beans.PropertyDescriptor[] res =\n\t\t\t\t{ prop(\"TargetType\", \"the type of vessel this model is evading\"),\n\t\t\t\t\t\tprop(\"Name\", \"the name of this detonation model\"),\n\t\t\t\t\t\tprop(\"DetectionLevel\", \"the name of this detonation model\"), };\n\t\t\t\tres[2]\n\t\t\t\t\t\t.setPropertyEditorClass(DetectionEvent.DetectionStatePropertyEditor.class);\n\t\t\t\treturn res;\n\t\t\t}\n\t\t\tcatch (java.beans.IntrospectionException e)\n\t\t\t{\n\t\t\t\treturn super.getPropertyDescriptors();\n\t\t\t}\n\t\t}",
"public PropertyDescriptor[] getPropertyDescriptors() {\n\tPropertyDescriptor[] pd = new PropertyDescriptor[3];\n\ttry {\n\t\tpd [0] = new PropertyDescriptor(\"name\", RateTypeAccessBean.class);\n\t\tpd [1] = new PropertyDescriptor(\"ratetype\", RateTypeAccessBean.class);\n\t\tpd [2] = new PropertyDescriptor(\"basecurrency\", RateTypeAccessBean.class, \"getBasecurrency\", null);\n\t\treturn pd;\n\t} catch (IntrospectionException ex) {\n\t\tex.printStackTrace(System.out);\n\t}\n\treturn null;\n}",
"public java.beans.PropertyDescriptor[] getPropertyDescriptors() {\n\ttry {\n\t\tjava.beans.PropertyDescriptor aDescriptorList[] = {\n\t\t\tcomponentOrientationPropertyDescriptor()\n\t\t};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}",
"public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }",
"List<? extends T> getDeclaredProperties();",
"private static PropertyDescriptor[] getPdescriptor() {\n PropertyDescriptor[] properties = new PropertyDescriptor[4];\n\n try {\n properties[PROPERTY_length] = new PropertyDescriptor(\"length\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getLength\", \"setLength\"); // NOI18N\n properties[PROPERTY_name] = new PropertyDescriptor(\"name\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getName\", \"setName\"); // NOI18N\n properties[PROPERTY_nullable] = new PropertyDescriptor(\"nullable\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getNullable\", \"setNullable\"); // NOI18N\n properties[PROPERTY_type] = new PropertyDescriptor(\"type\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getType\", \"setType\"); // NOI18N\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }//GEN-HEADEREND:Properties\n\n // Here you can add code for customizing the properties array.\n\n return properties;\n }",
"public final PropertyDescriptor[] getPropertyDescriptors()\n {\n try{\n final PropertyDescriptor[] res={\n prop(\"Color\", \"Color to paint highlight\"),\n prop(\"Size\", \"size to paint highlight (pixels\"),\n };\n return res;\n }\n catch(Exception e)\n {\n MWC.Utilities.Errors.Trace.trace(e);\n return super.getPropertyDescriptors();\n }\n\n }",
"public PropertyDescription[] getPropertiesDescriptions() {\n\t\tPropertyDescription[] pds = new PropertyDescription[3];\n\t\tpds[0] =\n\t\t\tnew PropertyDescription(\n\t\t\t\t\"binMethod\",\n\t\t\t\t\"Discretization Method\",\n\t\t\t\t\"The method to use for discretization. Select 1 to create bins\"\n\t\t\t\t\t+ \" by weight. This will create bins with an equal number of items in \"\n\t\t\t\t\t+ \"each slot. Select 0 to do uniform discretization by specifying the number of bins. \"\n\t\t\t\t\t+ \"This will result in equally spaced bins between the minimum and maximum for \"\n\t\t\t\t\t+ \"each scalar column.\");\n\t\tpds[1] =\n\t\t\tnew PropertyDescription(\n\t\t\t\t\"binWeight\",\n\t\t\t\t\"Number of Items per Bin\",\n\t\t\t\t\"When binning by weight, this is the number of items\"\n\t\t\t\t\t+ \" that will go in each bin. However, the bins may contain more or fewer values than \"\n\t\t\t\t\t+ \"weight values, depending on how many items equal the bin limits. Typically \"\n\t\t\t\t\t+ \"the last bin will contain less or equal to weight values and the rest of the \"\n\t\t\t\t\t+ \"bins will contain a number that is equal or greater to weight values.\");\n\t\tpds[2] =\n\t\t\tnew PropertyDescription(\n\t\t\t\t\"numberOfBins\",\n\t\t\t\t\"Number of Bins\",\n\t\t\t\t\"Define the number of bins absolutely. \"\n\t\t\t\t\t+ \"This will give equally spaced bins between \"\n\t\t\t\t\t+ \"the minimum and maximum for each scalar \"\n\t\t\t\t\t+ \"column.\");\n\t\treturn pds;\n\t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddDescriptionPropertyDescriptor(object);\n\t\t\taddDeprecatedPropertyDescriptor(object);\n\t\t\taddExtendsPropertyDescriptor(object);\n\t\t\taddTypePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"PropertyDesc[] getPropertyDesc()\r\n\t{\r\n\t\tPropertyDesc[] p = new PropertyDesc[properties.size()];\r\n\t\tint i = 0;\r\n\t\tfor (Variable v : properties)\r\n\t\t{\r\n\t\t\tp[i++] = new PropertyDesc(v.name, v.varType, v.classID);\r\n\t\t}\r\n\t\treturn p;\r\n\t}",
"@Override\n public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n if (itemPropertyDescriptors == null) {\n super.getPropertyDescriptors(object);\n\n addOppositePropertyDescriptor(object);\n addRefsToPropertyDescriptor(object);\n addOriginalTypePropertyDescriptor(object);\n addFeaturesPropertyDescriptor(object);\n }\n return itemPropertyDescriptors;\n }",
"public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }",
"public List getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddConcurrentResourcesPropertyDescriptor(object);\r\n\t\t\taddMemorySpacesPropertyDescriptor(object);\r\n\t\t\taddForkPropertyDescriptor(object);\r\n\t\t\taddExitPropertyDescriptor(object);\r\n\t\t\taddBase_NamespacePropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddDisplayLabelPropertyDescriptor(object);\n\t\t\taddDisplayedOnPropertyDescriptor(object);\n\t\t\taddRequiresRolePropertyDescriptor(object);\n\t\t\taddTitlePropertyDescriptor(object);\n\t\t\taddCollectionDisplayOptionPropertyDescriptor(object);\n\t\t\taddMaximumDisplaySizePropertyDescriptor(object);\n\t\t\taddTruncatePropertyDescriptor(object);\n\t\t\taddDateFormatPropertyDescriptor(object);\n\t\t\taddDisableInputPropertyDescriptor(object);\n\t\t\taddRequiredPropertyDescriptor(object);\n\t\t\taddMustMatchPropertyDescriptor(object);\n\t\t\taddInterfaceTypePropertyDescriptor(object);\n\t\t\taddPlaceholderPropertyDescriptor(object);\n\t\t\taddValidationPatternPropertyDescriptor(object);\n\t\t\taddInputClassPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddValidationPatternPropertyDescriptor(object);\n\t\t\taddInputClassPropertyDescriptor(object);\n\t\t\taddHiddenPropertyDescriptor(object);\n\t\t\taddContainerUniquePropertyDescriptor(object);\n\t\t\taddPersistentTypePropertyDescriptor(object);\n\t\t\taddOrmTypePropertyDescriptor(object);\n\t\t\taddInterfaceTypePropertyDescriptor(object);\n\t\t\taddSlugFieldsPropertyDescriptor(object);\n\t\t\taddUniquePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddIdentifierPropertyDescriptor(object);\n\t\t\taddDescriptionPropertyDescriptor(object);\n\t\t\taddProgressPropertyDescriptor(object);\n\t\t\taddTypePropertyDescriptor(object);\n\t\t\taddDecompositionPropertyDescriptor(object);\n\t\t\taddParentDecompositionPropertyDescriptor(object);\n\t\t\taddTeamMembersPropertyDescriptor(object);\n\t\t\taddTestCasesPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"public List getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddKindPropertyDescriptor(object);\r\n\t\t\taddValuePropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"public Class<?>[] getAdapterList() {\n\t\treturn new Class[] { IPropertySource.class };\n\t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object)\n\t{\n\t\tif (itemPropertyDescriptors == null)\n\t\t{\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddFrequencyPropertyDescriptor(object);\n\t\t\taddPrintUPSPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"public XMLFieldDescriptor[] getAttributeDescriptors() {\n\n XMLFieldDescriptor[] fields\n = new XMLFieldDescriptor[attributeDescriptors.size()];\n\n attributeDescriptors.toArray(fields);\n return fields;\n }",
"public List getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddMp3EntryReferenceParameterPropertyDescriptor(object);\r\n\t\t\taddLinkTextParameterPropertyDescriptor(object);\r\n\t\t\taddLinkDescriptionParameterPropertyDescriptor(object);\r\n\t\t\taddCommentParameterPropertyDescriptor(object);\r\n\t\t\taddPodcastTitleParameterPropertyDescriptor(object);\r\n\t\t\taddPodcastSubtitleParameterPropertyDescriptor(object);\r\n\t\t\taddPodcastSummaryParameterPropertyDescriptor(object);\r\n\t\t\taddPodcastPublishingDateParameterPropertyDescriptor(object);\r\n\t\t\taddPublishedMp3EntryReferenceResultPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddActionPropertyDescriptor(object);\n\t\t\taddSourcePropertyDescriptor(object);\n\t\t\taddTargetPropertyDescriptor(object);\n\t\t\taddTypePropertyDescriptor(object);\n\t\t\taddIndexPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddCalleePropertyDescriptor(object);\r\n\t\t\taddParameterAssignmentsPropertyDescriptor(object);\r\n\t\t\taddCallerPropertyDescriptor(object);\r\n\t\t\taddNamePropertyDescriptor(object);\r\n\t\t\taddPreCallStateDefinitionsPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddWidgetTypePropertyDescriptor(object);\n\t\t\taddWidgetHintPropertyDescriptor(object);\n\t\t\taddReadOnlyPropertyDescriptor(object);\n\t\t\taddRequiredPropertyDescriptor(object);\n\t\t\taddIgnorePropertyDescriptor(object);\n\t\t\taddMenuActionsPropertyDescriptor(object);\n\t\t\taddElementFormNamePropertyDescriptor(object);\n\t\t\taddMultiLinePropertyDescriptor(object);\n\t\t\taddMultiChoicePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"public ClassDescriptor getDescriptor() {\n return descriptor;\n }",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddShapePropertyDescriptor(object);\n\t\t\taddColorPropertyDescriptor(object);\n\t\t\taddWidthPropertyDescriptor(object);\n\t\t\taddStylePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"public Result testGetPropertyDescriptors() {\n beanInfo.getPropertyDescriptors();\n PropertyDescriptor[] propertyDescriptors = beanInfo\n .getPropertyDescriptors();\n assertTrue(findProperty(\"property8\", propertyDescriptors));\n assertTrue(findProperty(\"class\", propertyDescriptors));\n assertEquals(propertyDescriptors.length, 2);\n return passed();\n }",
"private List<PropertyGenerator> getPropertyGenerators() {\n\t\tList<PropertyGenerator.GeneratorFactory> factories = new ArrayList<PropertyGenerator.GeneratorFactory>();\n\t\t// these bindings will not mangle their property names\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.NONE));\n\t\tfactories.add(new MethodCallableGenerator.Factory());\n\t\t// these bindings will try to drop their prefix and use a shorter name\n\t\t// (e.g. getFoo -> foo)\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.GET));\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.HAS));\n\t\tfactories.add(new MethodPropertyGenerator.Factory(AccessorPrefix.IS));\n\t\t// the field binding will use its name or append Field if it was already\n\t\t// taken by get/has/is\n\t\tfactories.add(new FieldPropertyGenerator.Factory());\n\n\t\tSet<String> namesTaken = new HashSet<String>();\n\t\tnamesTaken.add(\"getName\");\n\t\tnamesTaken.add(\"getPath\");\n\t\tnamesTaken.add(\"getType\");\n\t\tnamesTaken.add(\"getParentBinding\");\n\t\tnamesTaken.add(\"getChildBindings\");\n\n\t\tList<Element> elements = this.getAccessibleElements();\n\t\tList<PropertyGenerator> generators = new ArrayList<PropertyGenerator>();\n\n\t\tfor (PropertyGenerator.GeneratorFactory f : factories) {\n\t\t\tfor (Iterator<Element> i = elements.iterator(); i.hasNext();) {\n\t\t\t\tElement enclosed = i.next();\n\t\t\t\ttry {\n\t\t\t\t\tPropertyGenerator pg = f.newGenerator(this.pathBindingClass, this.name, this.element, enclosed,\n\t\t\t\t\t\t\tnamesTaken);\n\t\t\t\t\tif (namesTaken.contains(pg.getPropertyName())) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnamesTaken.add(pg.getPropertyName());\n\t\t\t\t\t}\n\t\t\t\t\ti.remove(); // element is handled, skip any further\n\t\t\t\t\t\t\t\t// generators\n\t\t\t\t\tgenerators.add(pg);\n\t\t\t\t\tthis.sourceElements.add(enclosed);\n\t\t\t\t} catch (WrongGeneratorException e) {\n\t\t\t\t\t// try next\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn generators;\n\t}",
"public List<NamedThing> getProperties() {\n // TODO this should be changed to AnyProperty type but it as impact everywhere\n List<NamedThing> properties = new ArrayList<>();\n List<Field> propertyFields = getAnyPropertyFields();\n for (Field f : propertyFields) {\n try {\n if (NamedThing.class.isAssignableFrom(f.getType())) {\n f.setAccessible(true);\n Object fValue = f.get(this);\n if (fValue != null) {\n NamedThing se = (NamedThing) fValue;\n properties.add(se);\n } // else not initalized but this is already handled in the initProperties that must be called\n // before the getProperties\n }\n } catch (IllegalAccessException e) {\n throw new TalendRuntimeException(CommonErrorCodes.UNEXPECTED_EXCEPTION, e);\n }\n }\n return properties;\n }",
"public abstract List<BeanPropertyDefinition> findProperties();",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddPeersPropertyDescriptor(object);\n\t\t\taddMessagesPropertyDescriptor(object);\n\t\t\taddInitialStatePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddDefaultAutowirePropertyDescriptor(object);\r\n\t\t\taddDefaultInitMethodPropertyDescriptor(object);\r\n\t\t\taddDefaultAutowireCandidatesPropertyDescriptor(object);\r\n\t\t\taddDefaultDestroyMethodPropertyDescriptor(object);\r\n\t\t\taddDefaultLazyInitPropertyDescriptor(object);\r\n\t\t\taddDefaultMergePropertyDescriptor(object);\r\n\t\t\taddProfilePropertyDescriptor(object);\r\n\t\t\taddDescriptionPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"Property[] getProperties();",
"public java.beans.MethodDescriptor[] getMethodDescriptors() {\n\ttry {\n\t\tjava.beans.MethodDescriptor aDescriptorList[] = {\n\t\t\tclearMethodDescriptor()\n\t\t\t,main_javalangString__MethodDescriptor()\n\t\t\t,toggleVisibilityMethodDescriptor()\n\t\t};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}",
"@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddAuditingPropertyDescriptor(object);\r\n\t\t\taddBranchingPropertyDescriptor(object);\r\n\t\t\taddWithRangesPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"public XMLFieldDescriptor[] getElementDescriptors() {\n XMLFieldDescriptor[] fields\n = new XMLFieldDescriptor[elementDescriptors.size()];\n elementDescriptors.toArray(fields);\n return fields;\n }",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddTypePropertyDescriptor(object);\n\t\t\taddDescriptionPropertyDescriptor(object);\n\t\t\taddNamePropertyDescriptor(object);\n\t\t\taddLocationPropertyDescriptor(object);\n\t\t\taddFlowPropertyDescriptor(object);\n\t\t\taddAuthorizationUrlPropertyDescriptor(object);\n\t\t\taddTokenUrlPropertyDescriptor(object);\n\t\t\taddGlobalNamePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddDependant1PropertyDescriptor(object);\n\t\t\taddDependant2PropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"private PropertyPagePropertyDescriptor getPropertyDescriptor() {\n \t\treturn propertyDescriptor;\n \t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddAfterColumnPropertyDescriptor(object);\n\t\t\taddBeforeColumnPropertyDescriptor(object);\n\t\t\taddPositionPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }",
"@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddC1PropertyDescriptor(object);\r\n\t\t\taddC2PropertyDescriptor(object);\r\n\t\t\taddPointReversePropertyDescriptor(object);\r\n\t\t\taddPointNormalPropertyDescriptor(object);\r\n\t\t\taddCrossing2PropertyDescriptor(object);\r\n\t\t\taddCrossing1PropertyDescriptor(object);\r\n\t\t\taddSignalsPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }",
"@Override\n public List<IItemPropertyDescriptor> getPropertyDescriptors ( Object object )\n {\n if ( itemPropertyDescriptors == null )\n {\n super.getPropertyDescriptors ( object );\n\n addIdPropertyDescriptor ( object );\n addConnectionDaPropertyDescriptor ( object );\n addConnectionAePropertyDescriptor ( object );\n addSiteOutputDirPropertyDescriptor ( object );\n addHierarchyPropertyDescriptor ( object );\n addAknPatternPropertyDescriptor ( object );\n }\n return itemPropertyDescriptors;\n }",
"List<? extends T> getProperties();",
"ArrayList<PropertyMetadata> getProperties();",
"private List<PropertyDescriptor> getProperties(Control control) {\n \t\tfinal Class<? extends Control> controlClass = control.getClass();\n \t\tList<PropertyDescriptor> propertyDescriptors = CONTROL_PROPERTIES.get(controlClass);\n \t\tif (propertyDescriptors == null) {\n \t\t\tpropertyDescriptors = new ArrayList<PropertyDescriptor>();\n \t\t\ttry {\n \t\t\t\tPropertyDescriptor[] descriptors = Introspector.getBeanInfo(controlClass).getPropertyDescriptors();\n \t\t\t\tfor (PropertyDescriptor pd : descriptors) {\n \t\t\t\t\tpropertyDescriptors.add(pd);\n \t\t\t\t}\n \t\t\t} catch (IntrospectionException e) {\n \t\t\t\tNop.reason(\"ignore\"); //$NON-NLS-1$\n \t\t\t}\n \t\t\tCONTROL_PROPERTIES.put(controlClass, propertyDescriptors);\n \t\t}\n \n \t\treturn propertyDescriptors;\n \t}",
"public Hashtable getProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getProperties();\n }",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddCellIDPropertyDescriptor(object);\n\t\t\taddVisitIDPropertyDescriptor(object);\n\t\t\taddNamePropertyDescriptor(object);\n\t\t\taddEmailPropertyDescriptor(object);\n\t\t\taddStartDatePropertyDescriptor(object);\n\t\t\taddEndDatePropertyDescriptor(object);\n\t\t\taddEnableAutoEmailPropertyDescriptor(object);\n\t\t\taddCalibrantPropertyDescriptor(object);\n\t\t\taddCalibrant_xPropertyDescriptor(object);\n\t\t\taddCalibrant_yPropertyDescriptor(object);\n\t\t\taddCalibrant_exposurePropertyDescriptor(object);\n\t\t\taddEnvSamplingIntervalsPropertyDescriptor(object);\n\t\t\taddEnvScannableNamesPropertyDescriptor(object);\n\t\t\taddNumberOfSamplesPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"public Collection<ModuleProperty> getProperties();",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddPersonPropertyDescriptor(object);\n\t\t\taddOrganizationPropertyDescriptor(object);\n\t\t\taddWishApparatusPropertyDescriptor(object);\n\t\t\taddLicensePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"@Override\n public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n if (itemPropertyDescriptors == null) {\n super.getPropertyDescriptors(object);\n\n addEditorPropertyDescriptor(object);\n addTitlePropertyDescriptor(object);\n addYearPropertyDescriptor(object);\n addVolumePropertyDescriptor(object);\n addNumberPropertyDescriptor(object);\n addSeriesPropertyDescriptor(object);\n addAddressPropertyDescriptor(object);\n addMonthPropertyDescriptor(object);\n addOrganizationPropertyDescriptor(object);\n addPublisherPropertyDescriptor(object);\n addNotePropertyDescriptor(object);\n addKeyPropertyDescriptor(object);\n addCrossrefPropertyDescriptor(object);\n addDoiPropertyDescriptor(object);\n addUrlPropertyDescriptor(object);\n }\n return itemPropertyDescriptors;\n }",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddBasisCurvePropertyDescriptor(object);\n\t\t\taddDistancePropertyDescriptor(object);\n\t\t\taddDistanceAsStringPropertyDescriptor(object);\n\t\t\taddSelfIntersectPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"public PropertyDescription [] getPropertiesDescriptions () {\n\t PropertyDescription [] pds = new PropertyDescription [1];\n\t pds[0] = new PropertyDescription (\"errorFunctionName\", \"Error Function\", \"The name of the error function, can be Absolute, Classification, Likelihood or Variance.\");\n\t return pds;\n }",
"@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddOtherIdentifyingInfoPropertyDescriptor(object);\r\n\t\t\taddIdentifyingDescriptionsPropertyDescriptor(object);\r\n\t\t\taddDedicatedPropertyDescriptor(object);\r\n\t\t\taddOtherDedicatedDescriptionsPropertyDescriptor(object);\r\n\t\t\taddResetCapabilityPropertyDescriptor(object);\r\n\t\t\taddHostedRoutingServicesPropertyDescriptor(object);\r\n\t\t\taddHostedForwardingServicesPropertyDescriptor(object);\r\n\t\t\taddHostedRoutingPolicyPropertyDescriptor(object);\r\n\t\t\taddHostedFilterListPropertyDescriptor(object);\r\n\t\t\taddRunningOSPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddCdobjPropertyDescriptor(object);\r\n\t\t\taddRec_idPropertyDescriptor(object);\r\n\t\t\taddRec_cdPropertyDescriptor(object);\r\n\t\t\taddRec_valPropertyDescriptor(object);\r\n\t\t\taddPy_cdPropertyDescriptor(object);\r\n\t\t\taddCust_val1PropertyDescriptor(object);\r\n\t\t\taddCust_val2PropertyDescriptor(object);\r\n\t\t\taddCust_val3PropertyDescriptor(object);\r\n\t\t\taddCust_val4PropertyDescriptor(object);\r\n\t\t\taddCust_val5PropertyDescriptor(object);\r\n\t\t\taddCust_val6PropertyDescriptor(object);\r\n\t\t\taddCust_val7PropertyDescriptor(object);\r\n\t\t\taddCust_val8PropertyDescriptor(object);\r\n\t\t\taddCust_val9PropertyDescriptor(object);\r\n\t\t\taddCdobj_idPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }",
"@Override\n public void updateClassDescriptor(ClassDescriptor desc) {\n desc.getters = List.of();\n desc.setters = List.of();\n\n for (Iterator<Binding> iterator = desc.fields.iterator(); iterator.hasNext(); ) {\n Binding binding = iterator.next();\n \n if (!Modifier.isPublic(binding.field.getModifiers())) {\n iterator.remove();\n } else {\n Property property = getProperty(binding.annotations);\n if (property != null) {\n binding.fromNames = new String[]{property.name()};\n binding.toNames = new String[]{property.name()};\n } else {\n iterator.remove();\n }\n }\n }\n }",
"@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddPropietarioPropertyDescriptor(object);\r\n\t\t\taddMarcaPropertyDescriptor(object);\r\n\t\t\taddReferenciaPropertyDescriptor(object);\r\n\t\t\taddModeloPropertyDescriptor(object);\r\n\t\t\taddTipovehiculoPropertyDescriptor(object);\r\n\t\t\taddPlacaPropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }",
"@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }",
"@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }",
"@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddChildrenPropertyDescriptor(object);\n\t\t\taddLookaheadLeafNodesPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"Collection<PropertyValidationAnnotationHandler> getPropertyHandlers();",
"public String[] getPropertyNames()\n {\n return ClassAnalyzer.getPropertyNames(m_Source.getClass());\n }",
"@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }",
"@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }",
"@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}",
"public List<PropertySchema> getProperties() {\n return _properties;\n }",
"public abstract List<PropertyType> getBuiltInProperties();",
"public\tList<JsClass.Property>\tgetAddedProperties() {\n\t\t\n\t\treturn\tCollections.unmodifiableList(this.addedProperties);\n\t}",
"public List<BeanDescriptor<?>> descriptors(String tableName) {\n return tableToDescMap.get(tableName.toLowerCase());\n }",
"public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }",
"@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddFoldersPropertyDescriptor(object);\r\n\t\t\taddParentPropertyDescriptor(object);\r\n\t\t\taddWorkspacePropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"@Override\n public ConfigurablePropertyMap getProperties() {\n return properties;\n }",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddBaseServerNamePropertyDescriptor(object);\n\t\t\taddProfilePathPropertyDescriptor(object);\n\t\t\taddProfileNamePropertyDescriptor(object);\n\t\t\taddBootstrapPortPropertyDescriptor(object);\n\t\t\taddIcpPortPropertyDescriptor(object);\n\t\t\taddSoapPortPropertyDescriptor(object);\n\t\t\taddRemoteOsUserPropertyDescriptor(object);\n\t\t\taddRemoteOsPasswordPropertyDescriptor(object);\n\t\t\taddServerVersionPropertyDescriptor(object);\n\t\t\taddSecurityUserIdPropertyDescriptor(object);\n\t\t\taddSecurityUserPasswordPropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"private static MethodDescriptor[] getMdescriptor() {\n MethodDescriptor[] methods = new MethodDescriptor[1];\n\n try {\n methods[METHOD_toString0] = new MethodDescriptor(org.geogurus.gas.objects.GeometryClassFieldBean.class.getMethod(\"toString\", new Class[]{})); // NOI18N\n methods[METHOD_toString0].setDisplayName(\"\");\n } catch (Exception e) {\n }//GEN-HEADEREND:Methods\n\n // Here you can add code for customizing the methods array.\n\n return methods;\n }",
"protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }",
"public HasDisplayableProperties getProperties();",
"@Override\n\tpublic List<MavenDeployableDescriptor> getDeployableDescriptors() {\n\t\treturn descriptors;\n\t}",
"@Override\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\n\t\tif (itemPropertyDescriptors == null) {\n\t\t\tsuper.getPropertyDescriptors(object);\n\n\t\t\taddVpcWithIVpc_software_amazon_awscdk_services_ec2_IVpc_AsReferencePropertyDescriptor(object);\n\t\t\taddDeletionProtection_java_lang_Boolean_PropertyDescriptor(object);\n\t\t\taddInternetFacing_java_lang_Boolean_PropertyDescriptor(object);\n\t\t\taddLoadBalancerName_java_lang_String_PropertyDescriptor(object);\n\t\t\taddVpcSubnetsWithSubnetSelection_software_amazon_awscdk_services_ec2_SubnetSelection_AsReferencePropertyDescriptor(\n\t\t\t\t\tobject);\n\t\t\taddHttp2Enabled_java_lang_Boolean_PropertyDescriptor(object);\n\t\t\taddIdleTimeoutWithDuration_software_amazon_awscdk_core_Duration_AsReferencePropertyDescriptor(object);\n\t\t\taddIpAddressType_software_amazon_awscdk_services_elasticloadbalancingv2_IpAddressType_PropertyDescriptor(\n\t\t\t\t\tobject);\n\t\t\taddSecurityGroupWithISecurityGroup_software_amazon_awscdk_services_ec2_ISecurityGroup_AsReferencePropertyDescriptor(\n\t\t\t\t\tobject);\n\t\t\taddGeneratedClassNamePropertyDescriptor(object);\n\t\t\taddVarNamePropertyDescriptor(object);\n\t\t\taddIdentifierPropertyDescriptor(object);\n\t\t\taddAdditionalCodePropertyDescriptor(object);\n\t\t}\n\t\treturn itemPropertyDescriptors;\n\t}",
"public PropertyMetaData[] getPropertyMetaData() \n {\n return METADATA;\n }",
"public Object getProperties() {\n return this.properties;\n }",
"public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() {\n\n return ListView.getClassCssMetaData();\n }",
"public List<String> propertyColumns() {\n return this.propertyColumns;\n }",
"public Iterator<String> listProperties(String ontClass)\r\n\t{\r\n\t\tOntClass ontR = obtainOntClass(ontClass);\r\n\t\treturn new ToStringIterator<String>(ontR.listDeclaredProperties());\r\n\t}",
"@Override\r\n\tpublic List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {\r\n\t\tif (itemPropertyDescriptors == null) {\r\n\t\t\tsuper.getPropertyDescriptors(object);\r\n\r\n\t\t\taddDefaultValuePropertyDescriptor(object);\r\n\t\t\taddMinimumValuePropertyDescriptor(object);\r\n\t\t\taddMaximumValuePropertyDescriptor(object);\r\n\t\t}\r\n\t\treturn itemPropertyDescriptors;\r\n\t}",
"public EntityDescriptor getDescriptor() {\n return descriptor;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic Hashtable getProperties() {\n\t\treturn _props;\n\t}",
"public final List<String> getPropertiesList()\n {\n\n List<String> allProps = new ArrayList<String>();\n Enumeration<?> e = this.fProp.propertyNames();\n\n while (e.hasMoreElements())\n {\n String key = (String) e.nextElement();\n String value = this.fProp.getProperty(key);\n allProps.add(key + \"=\" + value);\n } // end while\n\n Collections.sort(allProps);\n return allProps;\n\n }",
"public ClassDescriptor getClassDescriptor() {\n\t\tClassDescriptor desc = getDescriptor();\n\t\tif (desc instanceof ClassDescriptor) {\n\t\t\treturn (ClassDescriptor)desc;\n\t\t} else {\n\t\t\tthrow ValidationException.cannotCastToClass(desc, desc.getClass(), ClassDescriptor.class);\n\t\t}\n }",
"public static List<DisplayProperty> getDisplayProperties() {return DISPLAY_PROPERTIES;}"
] | [
"0.74827915",
"0.7437152",
"0.73936653",
"0.71689236",
"0.69981146",
"0.68416893",
"0.6700892",
"0.65058213",
"0.64298385",
"0.640673",
"0.6359638",
"0.62749296",
"0.62353",
"0.6228872",
"0.6227949",
"0.6221954",
"0.612216",
"0.6121374",
"0.6098768",
"0.6050726",
"0.602448",
"0.60213745",
"0.59914696",
"0.5983939",
"0.5974583",
"0.5954966",
"0.5937224",
"0.59332705",
"0.5928393",
"0.5905806",
"0.58849293",
"0.5882805",
"0.5878997",
"0.5875333",
"0.5867438",
"0.58579946",
"0.5857897",
"0.58438206",
"0.58438206",
"0.5838589",
"0.5830204",
"0.58275604",
"0.5827087",
"0.58037084",
"0.57941127",
"0.57927966",
"0.5783101",
"0.5781046",
"0.577658",
"0.5767759",
"0.5759265",
"0.57588667",
"0.5750731",
"0.5746345",
"0.57400376",
"0.57377076",
"0.5729014",
"0.5723351",
"0.5716584",
"0.5702981",
"0.57010984",
"0.5677946",
"0.56567466",
"0.5621221",
"0.5614446",
"0.56128633",
"0.55946195",
"0.55624133",
"0.55624133",
"0.55552924",
"0.5550719",
"0.55430067",
"0.5526791",
"0.5516797",
"0.5516797",
"0.5499401",
"0.54862696",
"0.5476911",
"0.5469154",
"0.54659986",
"0.54565734",
"0.54561114",
"0.54413134",
"0.5437856",
"0.542703",
"0.5424944",
"0.5410222",
"0.540016",
"0.5391988",
"0.5387996",
"0.5384976",
"0.53525573",
"0.53464633",
"0.534416",
"0.53436273",
"0.5321449",
"0.5294323",
"0.5291897",
"0.52859956",
"0.52847004"
] | 0.59914875 | 22 |
This adds a property descriptor for the Comment feature. | protected void addCommentPropertyDescriptor(Object object) {
itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_tzpropOptional_comment_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_tzpropOptional_comment_feature",
"_UI_tzpropOptional_type"),
ICalPackage.Literals.TZPROP_OPTIONAL__COMMENT, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@PropertySetter(role = COMMENT)\n\t<E extends CtElement> E addComment(CtComment comment);",
"protected void addCommentParameterPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_MPublishNewMp3Step_commentParameter_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_MPublishNewMp3Step_commentParameter_feature\", \"_UI_MPublishNewMp3Step_type\"),\r\n\t\t\t\t LogicPackage.Literals.MPUBLISH_NEW_MP3_STEP__COMMENT_PARAMETER,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public DataModelDescriptorBuilder comment(String string) {\n this.comment = string;\n return this;\n }",
"public String getComment() {\n return description;\n }",
"public void setComments(java.lang.String value);",
"public DataModelDescriptorBuilder property(PropertyDescriptor descriptor) {\n this.properties.add(descriptor);\n return this;\n }",
"@PropertySetter(role = COMMENT)\n\t<E extends CtElement> E setComments(List<CtComment> comments);",
"public void setComment(String comment);",
"public void setComment(String comment);",
"@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}",
"@PropertyGetter(role = COMMENT)\n\tList<CtComment> getComments();",
"Builder addComment(Comment value);",
"public String getComment() {\n return this.comment;\n }",
"public String getComment(){\n return this.comment;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getComments();",
"public void addComments(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), COMMENTS, value);\r\n\t}",
"public void addComments( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), COMMENTS, value);\r\n\t}",
"protected void addNotePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_note_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_note_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__NOTE,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"Builder addComment(String value);",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public void setComments(String newValue);",
"public String getComment() {\n return comment ;\n }",
"public void setComment(String c) {\n comment = c ;\n }",
"public String getComment() {\r\n\t\treturn comment;\r\n\t}",
"public String getComment(){\n return comment;\n }",
"org.hl7.fhir.String addNewComments();",
"public String getComment()\n {\n return comment;\n }",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public void addCommentField(String comment) {\n addCommentField(comment, false);\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public void setComments(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), COMMENTS, value);\r\n\t}",
"public void setComment(String new_comment){\n this.comment=new_comment;\n }",
"public void setComments( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), COMMENTS, value);\r\n\t}",
"@JSProperty(\"description\")\n void setDescription(String value);",
"private void addComment() {\r\n Editor classEditor = null;\r\n try {\r\n classEditor = curClass.getEditor();\r\n } catch (Exception e) {\r\n }\r\n if (classEditor == null) {\r\n System.out.println(\"Can't create Editor for \" + curClass);\r\n return;\r\n }\r\n\r\n int textLen = classEditor.getTextLength();\r\n TextLocation lastLine = classEditor.getTextLocationFromOffset(textLen);\r\n lastLine.setColumn(0);\r\n // The TextLocation now points before the first character of the last line of the current text\r\n // which we'll assume contains the closing } bracket for the class\r\n classEditor.setText(lastLine, lastLine, \"// Comment added by SimpleExtension\\n\");\r\n }",
"protected void addPy_cdPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_py_cd_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_py_cd_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__PY_CD,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public final String getComment() {\n return comment;\n }",
"public void addCommentField(String comment, boolean italics) {\n Label commentLabel = new Label(getComposite(), SWT.LEFT | SWT.WRAP);\n commentLabel.setText(comment);\n if (italics) {\n commentLabel.setFont(getCommentFont());\n }\n TableWrapData layoutData = TableWrapLayoutHelper.createLayoutData(true, false, TableWrapData.FILL,\n TableWrapData.FILL);\n layoutData.colspan = 4;\n layoutData.rowspan = 1;\n layoutData.maxWidth = 200;\n commentLabel.setLayoutData(layoutData);\n }",
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.COMMENT,\n adderName = \"comment\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n public void setComments(final Set<BwString> val) {\n comments = val;\n }",
"@Override\n public void comment(String comment)\n {\n }",
"public void setComment(String comment){\n this.comment = comment;\n }",
"public java.lang.String getComment() {\r\n return comment;\r\n }",
"protected void addEditorPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_editor_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_editor_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__EDITOR,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(example = \"This is a comment\", value = \"Comment for the secondary transaction.\")\n\n public String getComments() {\n return comments;\n }",
"public java.lang.String getComment() {\n return comment;\n }",
"public java.lang.String getComment() {\n return comment;\n }",
"public java.lang.String getComment() {\n return comment;\n }",
"public CompletionProvider createCommentCompletionProvider() {\n\t\tDefaultCompletionProvider cp = new DefaultCompletionProvider();\n\t\tcp.addCompletion(new BasicCompletion(cp, \"TODO:\", \"A to-do reminder\"));\n\t\tcp.addCompletion(new BasicCompletion(cp, \"FIXME:\", \"A bug that needs to be fixed\"));\n\t\treturn cp;\n\t}",
"public void setComments(String value) {\n setAttributeInternal(COMMENTS, value);\n }",
"public void addComment(String c) {\n comments.add(c);\n }",
"@ApiModelProperty(example = \"null\", value = \"The comments of the reporting task.\")\n public String getComments() {\n return comments;\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"@Override\n public void addComment(XmlElement xmlElement) {\n\n }",
"public void setComment(String comment)\n {\n this.comment = comment;\n }",
"public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }",
"@Test\n public void fieldComments() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Set a value for the document's \"Comments\" built-in property.\n doc.getBuiltInDocumentProperties().setComments(\"My comment.\");\n\n // Create a COMMENTS field to display the value of that built-in property.\n FieldComments field = (FieldComments) builder.insertField(FieldType.FIELD_COMMENTS, true);\n field.update();\n\n Assert.assertEquals(\" COMMENTS \", field.getFieldCode());\n Assert.assertEquals(\"My comment.\", field.getResult());\n\n // If we give the COMMENTS field's Text property value and update it, the field will\n // overwrite the current value of the \"Comments\" built-in property with the value of its Text property,\n // and then display the new value.\n field.setText(\"My overriding comment.\");\n field.update();\n\n Assert.assertEquals(\" COMMENTS \\\"My overriding comment.\\\"\", field.getFieldCode());\n Assert.assertEquals(\"My overriding comment.\", field.getResult());\n\n doc.save(getArtifactsDir() + \"Field.COMMENTS.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.COMMENTS.docx\");\n\n Assert.assertEquals(\"My overriding comment.\", doc.getBuiltInDocumentProperties().getComments());\n\n field = (FieldComments) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_COMMENTS, \" COMMENTS \\\"My overriding comment.\\\"\", \"My overriding comment.\", field);\n Assert.assertEquals(\"My overriding comment.\", field.getText());\n }",
"public Color getCommentColor() {\n return this.getConfiguredColor(PreferencesConstants.COLOR_COMMENT);\n }",
"public static void addComments(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, COMMENTS, value);\r\n\t}",
"public Comment () {\n init();\n }",
"public String getCommentContent() {\n return commentContent;\n }",
"@Schema(description = \"A comment about the worklog in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). Optional when creating or updating a worklog.\")\n public Object getComment() {\n return comment;\n }",
"public void setComment(Address address, int commentType, String comment);",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"@Override\n\tpublic void comment() {\n\t\t\n\t}",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public interface CommentGenerator {\n\n void addConfigurationProperties(Properties properties);\n\n void addFieldComment(Field field, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn);\n\n void addFieldComment(Field field, IntrospectedTable introspectedTable);\n\n void addClassComment(JavaElement element, IntrospectedTable introspectedTable);\n\n void addDataServiceComment(JavaElement element, IntrospectedTable introspectedTable);\n\n void addClassAnnotation(JavaElement element);\n\n void addClassComment(InnerClass innerClass, IntrospectedTable introspectedTable, boolean markAsDoNotDelete);\n\n void addEnumComment(InnerEnum innerEnum, IntrospectedTable introspectedTable);\n\n void addGeneralMethodComment(Method method, IntrospectedTable introspectedTable);\n\n void addDataServiceSaveMethodComment(Method method, IntrospectedTable introspectedTable);\n\n void addDataServiceQueryMethodComment(Method method, List<IntrospectedColumn> introspectedColumns, IntrospectedTable introspectedTable);\n\n void addGetterComment(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn);\n\n void addSetterComment(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn);\n\n void addJavaFileComment(CompilationUnit compilationUnit);\n\n void addComment(XmlElement xmlElement);\n\n void addRootComment(XmlElement rootElement);\n\n}",
"public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}",
"public Builder setComment(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n comment_ = value;\n onChanged();\n return this;\n }",
"protected void addDescriptionPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Configuration_description_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Configuration_description_feature\", \"_UI_Configuration_type\"),\r\n\t\t\t\t SpringConfigDslPackage.Literals.CONFIGURATION__DESCRIPTION,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public String getCommentText() {\r\n\r\n\t\treturn commentText;\r\n\t}",
"@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t */\n\tpublic void setItemHavingComment() {\n\t}",
"String getComment();",
"String getComment();",
"public String getCommentOp() {\n return commentOp;\n }",
"public static void addComments( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, COMMENTS, value);\r\n\t}",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder setComments(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n comments_ = value;\n onChanged();\n return this;\n }",
"public String description(){\n\t\treturn \"Mark: \" + mark + \"\\n\" + \"Comment: \" + comment;\n\t}",
"public String getComments() {\r\n return this.comments;\r\n }",
"public boolean supportsEntityComments() { return true; }",
"public void setComment(java.lang.String comment) {\r\n this.comment = comment;\r\n }",
"@SuppressWarnings(\"unused\")\n public Comment() {\n edited = false;\n }",
"public static void setComments(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, COMMENTS, value);\r\n\t}",
"protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Bean_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Bean_description_feature\", \"_UI_Bean_type\"),\n\t\t\t\t BeansPackage.Literals.BEAN__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"public String getComment() {\n\t\tif (comment != null)\n\t\t\treturn ProteomeXchangeFilev2_1.COM + TAB\n\t\t\t// + \"comment\" + TAB\n\t\t\t\t\t+ comment;\n\t\treturn null;\n\t}",
"String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}"
] | [
"0.72966826",
"0.6857188",
"0.643844",
"0.62430817",
"0.6183959",
"0.61592454",
"0.61569417",
"0.6147983",
"0.6147983",
"0.6073705",
"0.6052217",
"0.6017692",
"0.5994992",
"0.5987984",
"0.5985355",
"0.5957962",
"0.5956307",
"0.5940941",
"0.5925374",
"0.59130305",
"0.59130305",
"0.59130305",
"0.59130305",
"0.59130305",
"0.59130305",
"0.59130305",
"0.59004724",
"0.59004724",
"0.59004724",
"0.59004724",
"0.59004724",
"0.59004724",
"0.589667",
"0.58877593",
"0.5886077",
"0.58738154",
"0.5871675",
"0.58620393",
"0.58442754",
"0.5822279",
"0.5822279",
"0.5822165",
"0.579391",
"0.57912254",
"0.57482105",
"0.5747792",
"0.5737256",
"0.5733223",
"0.5732061",
"0.5724294",
"0.57150155",
"0.5714043",
"0.56997055",
"0.56881857",
"0.5651094",
"0.564658",
"0.564043",
"0.5626581",
"0.5626581",
"0.5626581",
"0.5621609",
"0.56038904",
"0.560185",
"0.55946577",
"0.55878943",
"0.5585889",
"0.5579556",
"0.55562496",
"0.55520725",
"0.5544453",
"0.5520978",
"0.55031914",
"0.5501099",
"0.5496541",
"0.54962003",
"0.5479694",
"0.5479694",
"0.54729253",
"0.54640883",
"0.5462061",
"0.5443445",
"0.543851",
"0.54265296",
"0.54174227",
"0.5416089",
"0.54109555",
"0.54109555",
"0.54063636",
"0.5400131",
"0.5393179",
"0.538586",
"0.5377843",
"0.5377055",
"0.5372431",
"0.537048",
"0.5364226",
"0.53548044",
"0.53533053",
"0.5348023",
"0.5346841"
] | 0.70787305 | 1 |
This adds a property descriptor for the Rdate feature. | protected void addRdatePropertyDescriptor(Object object) {
itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_tzpropOptional_rdate_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_tzpropOptional_rdate_feature",
"_UI_tzpropOptional_type"),
ICalPackage.Literals.TZPROP_OPTIONAL__RDATE, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void addEndDatePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Cell_endDate_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Cell_endDate_feature\", \"_UI_Cell_type\"),\n\t\t\t\t LDEExperimentsPackage.Literals.CELL__END_DATE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"protected void addStartDatePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Cell_startDate_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Cell_startDate_feature\", \"_UI_Cell_type\"),\n\t\t\t\t LDEExperimentsPackage.Literals.CELL__START_DATE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"protected void addDateFormatPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_UnitField_dateFormat_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_UnitField_dateFormat_feature\", \"_UI_UnitField_type\"),\n\t\t\t\t WafPackage.Literals.UNIT_FIELD__DATE_FORMAT,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"Date getDateRDV() {\n return this.dateRDV;\n }",
"public Date getRecdate() {\n return recdate;\n }",
"@Override\r\n\tpublic Date getAttr_reg_dt() {\n\t\treturn super.getAttr_reg_dt();\r\n\t}",
"public void setRecdate(Date recdate) {\n this.recdate = recdate;\n }",
"public Date getResDate() {\r\n\t\treturn resDate;\r\n\t}",
"public void _Date() {\n testProperty(\"Date\", new PropertyTester() {\n protected Object getNewValue(String prop, Object old) {\n return utils.isVoid(old) ? new Integer(6543) :\n super.getNewValue(prop, old) ;\n }\n }) ;\n }",
"protected void addRec_valPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_rec_val_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_rec_val_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__REC_VAL,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"@ApiModelProperty(example = \"Fri Aug 08 01:00:00 BST 2008\", required = true, value = \"Date of the marriage\")\n @NotNull\n\n @Valid\n\n public LocalDate getDateOfMarriage() {\n return dateOfMarriage;\n }",
"@Override\n public HangarMessages addConstraintsTypeLocalDateMessage(String property) {\n assertPropertyNotNull(property);\n add(property, new UserMessage(CONSTRAINTS_TypeLocalDate_MESSAGE));\n return this;\n }",
"protected DateFieldMetadata() {\r\n\r\n\t}",
"void setDateRDV(Date d) {\n this.dateRDV = d;\n }",
"@Override\n\tprotected void setDate() {\n\n\t}",
"protected void addYearPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_year_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_year_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__YEAR,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:date\")\n public Calendar getDate() {\n return getProperty(DATE);\n }",
"protected void addMonthPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_month_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_month_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__MONTH,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"protected void addRec_cdPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_rec_cd_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_rec_cd_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__REC_CD,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public LocalDate getRecommendDate() {\n\t\treturn RecommendDate;\n\t}",
"protected void addPodcastPublishingDateParameterPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_MPublishNewMp3Step_podcastPublishingDateParameter_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_MPublishNewMp3Step_podcastPublishingDateParameter_feature\", \"_UI_MPublishNewMp3Step_type\"),\r\n\t\t\t\t LogicPackage.Literals.MPUBLISH_NEW_MP3_STEP__PODCAST_PUBLISHING_DATE_PARAMETER,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getRenewalEffectiveDate();",
"public Collection<DateTimeFormatter> getFormattedRdates() {\n return formattedRdates;\n }",
"@Override\n\tpublic void addDateHeader(String name, long date) {\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getServiceDate();",
"public void setResDate(Date resDate) {\r\n\t\tthis.resDate = resDate;\r\n\t}",
"public Date getCarprodate() {\n return carprodate;\n }",
"public String getPerformanceDate()\r\n {\r\n return performanceDate;\r\n }",
"public DataModelDescriptorBuilder property(PropertyDescriptor descriptor) {\n this.properties.add(descriptor);\n return this;\n }",
"protected void addRec_idPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_rec_id_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_rec_id_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__REC_ID,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"@Override\n public void date_()\n {\n }",
"public Date getRegistDt() {\n return registDt;\n }",
"@ApiModelProperty(value = \"The date when the claim was entered.\")\n public DtoValueNullableDateTime getDate() {\n return date;\n }",
"public void addDate( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), DATE, value);\r\n\t}",
"public String getRequisitionCreateDate() {\r\n return requisitionCreateDate;\r\n }",
"protected void addX_propPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_tzpropOptional_x_prop_feature\"),\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_tzpropOptional_x_prop_feature\",\n\t\t\t\t\t\t\t\t\"_UI_tzpropOptional_type\"),\n\t\t\t\t\t\tICalPackage.Literals.TZPROP_OPTIONAL__XPROP, true, false, false,\n\t\t\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}",
"public String getADD_DATE1_DESC() {\r\n return ADD_DATE1_DESC;\r\n }",
"public String getADD_DATE1_DESC() {\r\n return ADD_DATE1_DESC;\r\n }",
"public String getADD_DATE4_DESC() {\r\n return ADD_DATE4_DESC;\r\n }",
"public String getADD_DATE4_DESC() {\r\n return ADD_DATE4_DESC;\r\n }",
"@Override\n\tpublic Date getDate() {\n\t\treturn this.description.getDate();\n\t}",
"@Override\n public Date getDate() {\n return date;\n }",
"public interface DatePropertySchema {\n /**\n * Returns source date format\n * @return Source date format\n */\n DateFormat getSourceDateFormat();\n\n /**\n * Returns display date format\n * @return Display date format\n */\n DateFormat getDisplayDateFormat();\n\n /**\n * Converts a string into a date with the source date format\n * @param date A string representing a date\n * @return Date\n */\n default Date fromSource(String date) {\n try {\n return getSourceDateFormat().parse(date);\n } catch (ParseException e) {\n throw new RuntimeException(String.format(\"couldn't parse date:{0} using:{1}\", date, getSourceDateFormat()));\n }\n }\n\n /**\n * Converts a string into a date with the display date format\n * @param date A string representing a date\n * @return Date\n */\n default Date fromDisplay(String date) {\n try {\n return getDisplayDateFormat().parse(date);\n } catch (ParseException e) {\n throw new RuntimeException(String.format(\"couldn't parse date:{0} using:{1}\", date, getDisplayDateFormat()));\n }\n }\n\n /**\n * Converts a date into a string with the display date format\n * @param date A date\n * @return A string representing a date\n */\n default String toDisplay(Date date) {\n return getDisplayDateFormat().format(date);\n }\n\n /**\n * Converts a date into a string with the source date format\n * @param date A date\n * @return A string representing a date\n */\n default String toSource(Date date) {\n return getSourceDateFormat().format(date);\n }\n}",
"@Override\n\tpublic void addProperty(String name) {\n\t}",
"protected void addCust_val9PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val9_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val9_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL9,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"@Override\n public Date getManufactureDate() {\n return manufacturedOn;\n }",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void addDateField(DateField f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}",
"public void setDateAdded(Date dateAdded);",
"public LocalDate getGenDate() {\n\t\treturn genDate;\n\t}",
"protected void addCust_val7PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val7_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val7_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL7,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"protected void addCust_val8PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val8_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val8_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL8,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public Date getRegDate() {\r\n\t\treturn regDate;\r\n\t}",
"public String getREGN_DATE() {\r\n return REGN_DATE;\r\n }",
"public Date getRatingDate() {\n return ratingDate;\n }",
"@ApiModelProperty(value = \"The date and time at which the activation occurred.\")\n public DateTime getDate() {\n return date;\n }",
"protected synchronized void setDateValue(String tag, Date date) {\n if (actualProperties != null) {\n long dateTime = date.getTime();\n actualProperties.put(tag, Long.toString(dateTime));\n }\n }",
"@ApiModelProperty(value = \"The event creation date in the site timezone\")\n public String getDate() {\n return date;\n }",
"public Date getRatedOn() {\n\t\treturn this.ratedOn;\n\t}",
"@IcalProperty(pindex = PropertyInfoIndex.XPROP,\n jname = \"xprop\",\n adderName = \"xproperty\",\n nested = true,\n keyindex = PropertyInfoIndex.NAME,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n @IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.CALSCALE,\n jname = \"calscale\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.AFFECTS_FREE_BUSY,\n jname = \"affectsFreeBusy\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.ALIAS_URI,\n jname = \"aliasURI\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.CALTYPE,\n jname = \"caltype\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.COL_PROPERTIES,\n jname = \"colProperties\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.COLPATH,\n jname = \"colPath\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.DISPLAY,\n jname = \"display\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.FILTER_EXPR,\n jname = \"filterExpr\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.IGNORE_TRANSP,\n jname = \"ignoreTransp\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.LAST_REFRESH,\n jname = \"lastRefresh\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.LAST_REFRESH_STATUS,\n jname = \"lastRefreshStatus\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.REFRESH_RATE,\n jname = \"refreshRate\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.REMOTE_ID,\n jname = \"remoteId\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.REMOTE_PW,\n jname = \"remotePw\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.UNREMOVEABLE,\n jname = \"unremoveable\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n \n @IcalProperty(pindex = PropertyInfoIndex.X_BEDEWORK_CONTACT,\n jname = \"xbwcontact\",\n adderName = \"xproperty\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.X_BEDEWORK_LOCATION,\n jname = \"xbwlocation\",\n adderName = \"xproperty\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.X_BEDEWORK_CATEGORIES,\n jname = \"xbwcategories\",\n adderName = \"xproperty\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_END,\n jname = \"eventregEnd\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_MAX_TICKETS,\n jname = \"eventregMaxTickets\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_MAX_TICKETS_PER_USER,\n jname = \"eventregMaxTicketsPerUser\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_START,\n jname = \"eventregStart\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_WAIT_LIST_LIMIT,\n jname = \"eventregWaitListLimit\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.IMAGE,\n jname = \"image\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.INSTANCE,\n jname = \"instance\",\n annotationRequired = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.METHOD,\n jname = \"method\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.PARAMETERS,\n jname = \"pars\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.PRODID,\n jname = \"prodid\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.SUGGESTED_TO,\n jname = \"suggestedTo\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.THUMBIMAGE,\n jname = \"thumbimage\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.TAG,\n jname = \"tag\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.TOPICAL_AREA,\n jname = \"topicalArea\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.UNKNOWN_PROPERTY,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.URI,\n jname = \"uri\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.VERSION,\n jname = \"version\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.VIEW,\n jname = \"view\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.VPATH,\n jname = \"vpath\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)}\n )\n public void setXproperties(final List<BwXproperty> val) {\n xproperties = val;\n }",
"@Override\n public final Date getDocumentDate() {\n return this.manufacture.getItsDate();\n }",
"public String getdate() {\n\t\treturn date;\n\t}",
"protected void addCust_val4PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val4_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val4_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL4,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public java.util.Date getRevisedDate () {\n\t\treturn revisedDate;\n\t}",
"protected void addColorPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Line_color_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Line_color_feature\", \"_UI_Line_type\"),\n\t\t\t\t GraphicsPackage.Literals.LINE__COLOR,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"public java.sql.Timestamp getRecdate() {\n\treturn recdate;\n}",
"@Override\n\tpublic void initDate() {\n\n\t}",
"public String getDateColor()\n {\n return this.dateColor;\n }",
"@Override\n\tpublic Date getStatusDate();",
"public String getDate(){\n\n return this.date;\n }",
"public Date getCreDate() {\n return creDate;\n }",
"net.opengis.gml.x32.TimeInstantPropertyType addNewBegin();",
"public void setCarprodate(Date carprodate) {\n this.carprodate = carprodate;\n }",
"@JsonGetter(\"dateAdded\")\r\n public String getDateAdded ( ) { \r\n return this.dateAdded;\r\n }",
"public LocalDate getDate() {\n\t\treturn this.date;\n\t}",
"public String getADD_DATE2_DESC() {\r\n return ADD_DATE2_DESC;\r\n }",
"public String getADD_DATE2_DESC() {\r\n return ADD_DATE2_DESC;\r\n }",
"protected void addPy_cdPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_py_cd_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_py_cd_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__PY_CD,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"DefinedProperty relAddProperty( long relId, int propertyKey, Object value );",
"void setModifiedDate(Date p_date)\n {\n throw new UnsupportedOperationException(\n \"This method is not supported. Use addHistory()\");\n }",
"public String getDateFlag() {\n return mDateFlag;\n }",
"protected void addCust_val1PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val1_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val1_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL1,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public void setDate() {\n this.date = new Date();\n }",
"@AutoEscape\n\tpublic String getEntityAddDate();",
"@Override\r\n\tpublic Date getAttr_upgraded_date() {\n\t\treturn super.getAttr_upgraded_date();\r\n\t}",
"@JsonProperty(\"modified_date\")\n\tpublic Date getModified_date() {\n\t\treturn modifiedDate;\n\t}",
"@Override\n\tpublic Date getCreateDate() {\n\t\treturn _paper.getCreateDate();\n\t}",
"public String getDate() {\n return this.date;\n }",
"public String getDate() {\n return this.date;\n }",
"public LocalDate getViewDate();",
"private void removeDate() {\r\n\t\tMyReportProperties.removeProperties(IreportConstant.CLASS_NAME);\r\n\t\tMyReportProperties.removeProperties(IreportConstant.METHOD_NAME);\r\n\t}",
"public LocalDate getStart_date(){\n return this.start_date;\n }",
"public Date getModifierDate() {\n return modifierDate;\n }",
"public LocalDate getDate() {\n return date;\n }",
"@Override\r\n\tpublic LocalDate toGraphProperty(Date value) {\n\t\treturn LocalDate.from(value.toInstant());\r\n\t}",
"public void setEntityAddDate(String entityAddDate);",
"@JsonSetter(\"dateAdded\")\r\n public void setDateAdded (String value) { \r\n this.dateAdded = value;\r\n }",
"@ApiModelProperty(value = \"Start of the range\")\n public String getDateStart() {\n return dateStart;\n }",
"public void setDate(String date){\n this.date = date;\n }",
"public boolean hasDate() {\n return fieldSetFlags()[5];\n }",
"protected void addNotePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_note_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_note_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__NOTE,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }"
] | [
"0.6259528",
"0.6254648",
"0.5924112",
"0.58753467",
"0.57869214",
"0.5717808",
"0.56971186",
"0.5676654",
"0.55817485",
"0.5561366",
"0.5548997",
"0.5529211",
"0.5458951",
"0.54352105",
"0.5427226",
"0.54066825",
"0.53900105",
"0.53808063",
"0.5376204",
"0.53533703",
"0.53532004",
"0.5337973",
"0.5323922",
"0.52996457",
"0.5283373",
"0.5275799",
"0.527492",
"0.5235186",
"0.52346253",
"0.52319556",
"0.521591",
"0.5211962",
"0.5197659",
"0.5195088",
"0.51937217",
"0.5189134",
"0.51821965",
"0.51821965",
"0.51813555",
"0.51813555",
"0.51801187",
"0.51789755",
"0.5178227",
"0.5163899",
"0.51515895",
"0.5147652",
"0.5144222",
"0.5124139",
"0.5114279",
"0.5108881",
"0.50807655",
"0.50802135",
"0.5079946",
"0.50789666",
"0.5075619",
"0.50713426",
"0.5063454",
"0.50630486",
"0.506242",
"0.50597465",
"0.5056108",
"0.50545675",
"0.5035586",
"0.50348175",
"0.5022419",
"0.5018678",
"0.5005104",
"0.50016356",
"0.5001125",
"0.5000324",
"0.49991372",
"0.49975947",
"0.4995818",
"0.49953476",
"0.49919787",
"0.49919787",
"0.49833903",
"0.49829996",
"0.49802718",
"0.49753407",
"0.49749243",
"0.49727985",
"0.49719775",
"0.49649844",
"0.49640816",
"0.49573052",
"0.49495995",
"0.49495995",
"0.49495056",
"0.49491748",
"0.49477997",
"0.49470794",
"0.49470282",
"0.4945682",
"0.4937859",
"0.4935269",
"0.49275607",
"0.49238318",
"0.49216396",
"0.4910615"
] | 0.76828873 | 0 |
This adds a property descriptor for the Tzname feature. | protected void addTznamePropertyDescriptor(Object object) {
itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_tzpropOptional_tzname_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_tzpropOptional_tzname_feature",
"_UI_tzpropOptional_type"),
ICalPackage.Literals.TZPROP_OPTIONAL__TZNAME, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void addProperty(String name) {\n\t}",
"protected void addPropNames()\n{\n addPropNames(\"Visible\", \"X\", \"Y\", \"Width\", \"Height\", \"Roll\", \"ScaleX\", \"ScaleY\",\n \"Font\", \"TextColor\", \"FillColor\", \"StrokeColor\", \"URL\");\n}",
"protected void addNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Cell_name_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Cell_name_feature\", \"_UI_Cell_type\"),\n\t\t\t\t LDEExperimentsPackage.Literals.CELL__NAME,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"protected void addNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_name_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_name_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__NAME,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"protected void addNamePropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors\r\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_OperationCall_name_feature\"),\r\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_OperationCall_name_feature\",\r\n\t\t\t\t\t\t\t\t\"_UI_OperationCall_type\"),\r\n\t\t\t\t\t\tSystemModelPackage.Literals.OPERATION_CALL__NAME, true, false, false,\r\n\t\t\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\r\n\t}",
"PropertyName getName();",
"public void setTanzartName(String tanzartName);",
"@VTID(7)\r\n java.lang.String name();",
"@VTID(17)\n java.lang.String getName();",
"public void setTname(String tname) {\r\n this.tname = tname;\r\n }",
"@Serialize//(getName = \"property\")\r\n\tpublic String getName()\r\n\t{\r\n\t\treturn _name; \r\n\t}",
"DavPropertyName getName();",
"org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGeneralNameType addNewGeneralName();",
"@Override\n public String getName() {\n return this.desc;\n }",
"@Override\n\tpublic void addProperty(String name, String text) {\n\t\tLuceneIndex.addPredicateField(name, text, doc);\n\t\tLuceneIndex.addTextField(text, doc);\n\t}",
"protected void addProfileNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\"_UI_WebsphereServerTask_profileName_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_WebsphereServerTask_profileName_feature\",\n\t\t\t\t\t\t\"_UI_WebsphereServerTask_type\"),\n\t\t\t\tServerPackage.Literals.WEBSPHERE_SERVER_TASK__PROFILE_NAME, true, false, false,\n\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}",
"@IcalProperty(pindex = PropertyInfoIndex.NAME,\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setName(final String val) {\n name = val;\n }",
"@Override\n\tpublic void setToolName(String typeName) throws PropertyVetoException {\n\t\tname = typeName;\n\t}",
"public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }",
"@Override\npublic void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {\narg2.setType(Feeds.class);\narg2.setName(\"Feeds\");\n\narg2.setNamespace(n1);\n\n}",
"@ApiModelProperty(value = \"Name of the target characteristic\")\n\n\n public String getName() {\n return name;\n }",
"String getPropertyName();",
"private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }",
"protected void addTitlePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_UnitField_title_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_UnitField_title_feature\", \"_UI_UnitField_type\"),\n\t\t\t\t WafPackage.Literals.UNIT_FIELD__TITLE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"public PropertySpecBuilder<T> name(String name)\n {\n Preconditions.checkArgument(this.name == null, \"property name already set\");\n this.shortName = name;\n this.name = prefix + name;\n\n return this;\n }",
"public RDFPropertyTest(String name) {\n\t\tsuper(name);\n\t}",
"@Override\n public String getDescription() {\n return name;\n }",
"@DISPID(14)\n\t// = 0xe. The runtime will prefer the VTID if present\n\t@VTID(24)\n\tvoid name(java.lang.String pVal);",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName();",
"public String getName()\r\n {\n return \"tan\";\r\n }",
"@Override\r\n public boolean isNameProperty() throws Exception\r\n {\n return false;\r\n }",
"public void setZonename(java.lang.String newZonename) {\n\tzonename = newZonename;\n}",
"private void setCustomName(EliteMobProperties eliteMobProperties) {\n this.name = ChatColorConverter.convert(\n eliteMobProperties.getName().replace(\n \"$level\", eliteMobLevel + \"\"));\n eliteMob.setCustomName(this.name);\n if (ConfigValues.defaultConfig.getBoolean(DefaultConfig.ALWAYS_SHOW_NAMETAGS))\n eliteMob.setCustomNameVisible(true);\n }",
"protected void addVarNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_varName_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_varName_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VAR_NAME, true,\n\t\t\t\tfalse, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}",
"private <V> Definition<V> addPropertyDefinition(String name, Class<V> type,\n String caption, Method getter, Method setter) {\n if (getter == null)\n throw new IllegalArgumentException(\"null getter\");\n return this.addPropertyDefinition(name, type, caption,\n target -> Primitive.wrap(type).cast(ReflectUtil.invoke(getter, target)),\n setter != null ? (target, value) -> ReflectUtil.invoke(setter, target, value) : null);\n }",
"public String getTname() {\r\n return tname;\r\n }",
"public String getPropertyName();",
"public void setName(String name) {\n\t\tgetNonVisualProperties().setName(name);\n\t}",
"@Override\n public String getName() {\n return name;\n }",
"public void setPropName(String name) {\n m_propName = name;\n }",
"@DISPID(5)\n\t// = 0x5. The runtime will prefer the VTID if present\n\t@VTID(12)\n\tvoid name(java.lang.String pVal);",
"public void addProperty(String name, PropertyObject data) {\n this.properties.put(name, data);\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}",
"private void setCustomName(String name) {\n this.name = ChatColorConverter.convert(name);\n this.getLivingEntity().setCustomName(this.name);\n this.hasCustomName = true;\n if (ConfigValues.defaultConfig.getBoolean(DefaultConfig.ALWAYS_SHOW_NAMETAGS))\n eliteMob.setCustomNameVisible(true);\n }",
"@Override\n public String getName()\n {\n return name;\n }",
"@Override\r\n\tprotected String getName() {\n\t\treturn NAME;\r\n\t}",
"@Override \n public String getName() {\n return NAME;\n }",
"public void setProperty(String name, Object value)\n {\n if (additionalProperties == null)\n {\n additionalProperties = new HashMap<String, Object>();\n }\n additionalProperties.put(name, value);\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"@Override\n public String getName() {\n return name;\n }",
"com.microsoft.schemas.xrm._2013.metadata.AttributeTypeDisplayName addNewAttributeTypeDisplayName();",
"@Override\n\tpublic TabFeature getFeatureType() {\n\t\treturn TabFeature.NAMETAGX;\n\t}",
"public void setHasCustomName(boolean bool) {\n this.hasCustomName = bool;\n }",
"public String getName() {\n\t\treturn getNonVisualProperties().getName();\n\t}",
"@Override\n public String getName(){\n return Name; \n }",
"@Override\r\n public String getName() {\r\n return NAME;\r\n }",
"@Override\r\n protected String getTooltip()\r\n {\n return \"This name is used as (unique) name for the pattern.\";\r\n }",
"protected void addGlobalNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_globalName_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_globalName_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__GLOBAL_NAME,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"@Override\n public String getName() {\n return \"Custom - \" + getTitle();\n }",
"@DISPID(14)\n\t// = 0xe. The runtime will prefer the VTID if present\n\t@VTID(23)\n\tjava.lang.String name();",
"public EJCoreFrameworkExtensionPropertyListEntry()\n {\n _propertyEntries = new HashMap<String, String>();\n }",
"@Override\n public String getName() {\n\n return name;\n }",
"@DISPID(9)\r\n\t// = 0x9. The runtime will prefer the VTID if present\r\n\t@VTID(15)\r\n\tjava.lang.String name();",
"@Override\n\tString getName() {\n\t\treturn \"Planet\"+\": \"+name;\n\t}",
"Builder addProperty(String name, String value);",
"@Override\n public InstanceProperties getNameInstanceProperties(String methodName) {\n InstanceProperties properties = super.getNameInstanceProperties(methodName);\n\n if (name != null) {\n String literalName = repositoryHelper.getExactMatchRegex(name);\n\n properties = repositoryHelper.addStringPropertyToInstance(serviceName, properties,\n OpenMetadataAPIMapper.NAME_PROPERTY_NAME, literalName, methodName);\n }\n\n return properties;\n }",
"@Override\n public void setName(String name) {\n \n }",
"@Override\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}",
"public void addNames() {}",
"public void addNames() {}",
"private Text initNameText(){\n Text name = new Text(Values.NAME);\n name.setStyle(\"-fx-font-weight: bold;\" + \"-fx-font-size: 24;\");\n return name;\n }",
"ObjectBuilder<T> addProperty(final String name, final String value) {\n properties.put(name, value);\n return this;\n }",
"@Override\r\n String getName();",
"public void setNewProperty(String name, String value) {\n PropertyHelper.getPropertyHelper(this).setNewProperty(null, name,\n value);\n }",
"@Override\n public String getName() {\n return NAME;\n }",
"@Override\n public String getName() {\n return NAME;\n }",
"@Override\n public String getName() {\n return NAME;\n }",
"@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}",
"@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}",
"@Override\n\tpublic String getFeatureName() {\n\t\treturn this.name();\n\t}",
"public String prop(String name);",
"@Override\r\n\tpublic String getName() {\n\t\treturn name;\r\n\t}",
"public void setCustomName ( String name ) {\n\t\texecute ( handle -> handle.setCustomName ( name ) );\n\t}",
"@Override\n String getName();",
"@Override public String getName() {\n return name;\n }",
"public String getName() { return name; }",
"@Override\n\tpublic String getName() {\n\t\treturn super.getName();\n\t}",
"@Override\n\tpublic String getName() {\n\t\treturn super.getName();\n\t}",
"@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}",
"@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}",
"@Override\n\tpublic String getName() {\n\t\treturn name;\n\t}"
] | [
"0.62219626",
"0.58382046",
"0.5769936",
"0.5757638",
"0.57225806",
"0.5684749",
"0.56766665",
"0.56345695",
"0.56281227",
"0.55953044",
"0.5501439",
"0.5479812",
"0.5457997",
"0.54553473",
"0.5414763",
"0.54099727",
"0.5406617",
"0.5381468",
"0.53631395",
"0.5361119",
"0.5343734",
"0.5328862",
"0.5312521",
"0.5307959",
"0.52816206",
"0.5279802",
"0.5267176",
"0.52574265",
"0.52537465",
"0.52537465",
"0.5237139",
"0.52290374",
"0.5225398",
"0.52162546",
"0.52141964",
"0.52135223",
"0.52133536",
"0.5203879",
"0.5196604",
"0.5193886",
"0.51906115",
"0.5187618",
"0.5181175",
"0.5180596",
"0.5180596",
"0.5179162",
"0.51735383",
"0.5167283",
"0.51580244",
"0.5157867",
"0.5154692",
"0.514921",
"0.514921",
"0.514921",
"0.514921",
"0.514921",
"0.514921",
"0.514921",
"0.514921",
"0.5149141",
"0.5147023",
"0.5146582",
"0.51439756",
"0.5142347",
"0.51343006",
"0.5112471",
"0.51047546",
"0.51038194",
"0.51018476",
"0.5100727",
"0.50960755",
"0.5095097",
"0.50944746",
"0.5093336",
"0.50870395",
"0.50859207",
"0.5083569",
"0.5081659",
"0.5081659",
"0.5079787",
"0.50783986",
"0.5073666",
"0.50584745",
"0.50583315",
"0.50583315",
"0.50583315",
"0.5055948",
"0.5055948",
"0.5047228",
"0.5041487",
"0.5038861",
"0.5038295",
"0.50331324",
"0.5028039",
"0.50279015",
"0.5023832",
"0.5023832",
"0.5022325",
"0.5022325",
"0.5022325"
] | 0.6606824 | 0 |
This adds a property descriptor for the Xprop feature. | protected void addX_propPropertyDescriptor(Object object) {
itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_tzpropOptional_x_prop_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_tzpropOptional_x_prop_feature",
"_UI_tzpropOptional_type"),
ICalPackage.Literals.TZPROP_OPTIONAL__XPROP, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void addProperty(String name) {\n\t}",
"public DataModelDescriptorBuilder property(PropertyDescriptor descriptor) {\n this.properties.add(descriptor);\n return this;\n }",
"@Test\n\tpublic void addProperty() {\n\t\tXMLTagParser.addNewElement(\"Person\");\n\t\tXMLTagParser.editElement(\"Person\", \"residence\", \"milan\");\n\n\t\tXMLTagParser.editProperty(\"Person\", \"residence\", \"isRenting\", \"false\");\n\t\tassertEquals(XMLTagParser.getPropertyValueFromTag(\"Person\", \"residence\", \"isRenting\"), \"false\");\n\t\tXMLTagParser.editProperty(\"Person\", \"residence\", \"hasGarage\", \"true\");\n\t\tassertEquals(XMLTagParser.getPropertyValueFromTag(\"Person\", \"residence\", \"hasGarage\"), \"true\");\n\t}",
"protected void addCrossrefPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_crossref_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_crossref_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__CROSSREF,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"@Override\n\tpublic void addProperty(IProperty property) {\n\t\t\n\t}",
"protected void addPropNames()\n{\n addPropNames(\"Visible\", \"X\", \"Y\", \"Width\", \"Height\", \"Roll\", \"ScaleX\", \"ScaleY\",\n \"Font\", \"TextColor\", \"FillColor\", \"StrokeColor\", \"URL\");\n}",
"protected void addPrintUPSPropertyDescriptor(Object object)\n\t{\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Cadence_printUPS_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Cadence_printUPS_feature\", \"_UI_Cadence_type\"),\n\t\t\t\t CadencePackage.Literals.CADENCE__PRINT_UPS,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}",
"protected void addCalibrant_xPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Cell_calibrant_x_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Cell_calibrant_x_feature\", \"_UI_Cell_type\"),\n\t\t\t\t LDEExperimentsPackage.Literals.CELL__CALIBRANT_X,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.REAL_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"IntegerProperty getXProperty();",
"private Element addProperty(String name, Property swagger_property) throws ParserConfigurationException {\n\t\tElement element = document.createElement(ParserConstants.element_prefix.value());\n\t\telement.setAttribute(ParserConstants.name.toString(), name);\n\n\t\tElement simple = element;\n\n\t\tif (swagger_property.getRequired()) {\n\t\t\telement.setAttribute(ParserConstants.minOccurs.toString(), ParserConstants.minOccurs.value());\n\t\t}\n\n\t\tif (swagger_property instanceof IntegerProperty) {\n\t\t\tIntegerProperty integerProperty = (IntegerProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.integer_prefix.value());\n\t\t\tif (integerProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(integerProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof LongProperty) {\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.long_prefix.value());\n\t\t} else if (swagger_property instanceof StringProperty) {\n\t\t\tStringProperty stringProperty = (StringProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.string_prefix.value());\n\t\t\tif (stringProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(stringProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof DateTimeProperty) {\n\t\t\tDateTimeProperty dateTimeProperty = (DateTimeProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.date_time_prefix.value());\n\t\t\tif (dateTimeProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(dateTimeProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof BooleanProperty) {\n\t\t\tBooleanProperty booleanProperty = (BooleanProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.boolean_prefix.value());\n\t\t} else if (swagger_property instanceof RefProperty) {\n\t\t\tRefProperty refProperty = (RefProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), refProperty.getSimpleRef());\n\t\t} else if (swagger_property instanceof ObjectProperty) {\n\t\t\tObjectProperty objectProperty = (ObjectProperty) swagger_property;\n\t\t\telement.appendChild(js2wadl(name, objectProperty.getProperties()));\n\t\t} else if (swagger_property instanceof ArrayProperty) {\n\t\t\tArrayProperty arrayProperty = (ArrayProperty) swagger_property;\n\t\t\telement.appendChild(addProperty(name, arrayProperty.getItems()));\n\t\t} else {\n\t\t\telement.setAttribute(ParserConstants.type.toString(), swagger_property.getFormat());\n\t\t}\n\n\t\tif (swagger_property.getDescription() != null) {\n\t\t\tElement ann = document.createElement(ParserConstants.annotation_prefix.value());\n\t\t\tElement desc = document.createElement(ParserConstants.documentation_prefix.value());\n\t\t\tdesc.setTextContent(swagger_property.getDescription());\n\t\t\tann.appendChild(desc);\n\t\t\tsimple.appendChild(ann);\n\t\t}\n\n\t\treturn element;\n\t}",
"public void addProperty(SGFProperty property)\r\n\t{\r\n\t\t_propertyList.add(property);\r\n\t}",
"@Override\n public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }",
"protected void addTitlePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_title_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_title_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__TITLE,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"private PropertyPagePropertyDescriptor getPropertyDescriptor() {\n \t\treturn propertyDescriptor;\n \t}",
"Builder addProperty(String name, String value);",
"DefinedProperty nodeAddProperty( long nodeId, int propertyKey, Object value );",
"@IcalProperty(pindex = PropertyInfoIndex.XPROP,\n jname = \"xprop\",\n adderName = \"xproperty\",\n nested = true,\n keyindex = PropertyInfoIndex.NAME,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n @IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.CALSCALE,\n jname = \"calscale\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.AFFECTS_FREE_BUSY,\n jname = \"affectsFreeBusy\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.ALIAS_URI,\n jname = \"aliasURI\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.CALTYPE,\n jname = \"caltype\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.COL_PROPERTIES,\n jname = \"colProperties\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.COLPATH,\n jname = \"colPath\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.DISPLAY,\n jname = \"display\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.FILTER_EXPR,\n jname = \"filterExpr\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.IGNORE_TRANSP,\n jname = \"ignoreTransp\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.LAST_REFRESH,\n jname = \"lastRefresh\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.LAST_REFRESH_STATUS,\n jname = \"lastRefreshStatus\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.REFRESH_RATE,\n jname = \"refreshRate\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.REMOTE_ID,\n jname = \"remoteId\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.REMOTE_PW,\n jname = \"remotePw\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.UNREMOVEABLE,\n jname = \"unremoveable\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n \n @IcalProperty(pindex = PropertyInfoIndex.X_BEDEWORK_CONTACT,\n jname = \"xbwcontact\",\n adderName = \"xproperty\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.X_BEDEWORK_LOCATION,\n jname = \"xbwlocation\",\n adderName = \"xproperty\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.X_BEDEWORK_CATEGORIES,\n jname = \"xbwcategories\",\n adderName = \"xproperty\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_END,\n jname = \"eventregEnd\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_MAX_TICKETS,\n jname = \"eventregMaxTickets\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_MAX_TICKETS_PER_USER,\n jname = \"eventregMaxTicketsPerUser\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_START,\n jname = \"eventregStart\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.EVENTREG_WAIT_LIST_LIMIT,\n jname = \"eventregWaitListLimit\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.IMAGE,\n jname = \"image\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.INSTANCE,\n jname = \"instance\",\n annotationRequired = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.METHOD,\n jname = \"method\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.PARAMETERS,\n jname = \"pars\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.PRODID,\n jname = \"prodid\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.SUGGESTED_TO,\n jname = \"suggestedTo\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.THUMBIMAGE,\n jname = \"thumbimage\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.TAG,\n jname = \"tag\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.TOPICAL_AREA,\n jname = \"topicalArea\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.UNKNOWN_PROPERTY,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.URI,\n jname = \"uri\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.VERSION,\n jname = \"version\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.VIEW,\n jname = \"view\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.VPATH,\n jname = \"vpath\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)}\n )\n public void setXproperties(final List<BwXproperty> val) {\n xproperties = val;\n }",
"void addPropertyListener(PropertyListener listener);",
"private void appendDowngraded(final Writer wtr,\n final Property prop) throws IOException {\n\n if (v3Ok(prop)) {\n wtr.write(prop.toString());\n return;\n }\n\n /* x-prop already? */\n\n// if (Property.Id.EXTENDED == prop.getId()) {\n// if (skipXprops.contains(Extend))\n// wtr.write(prop.toString());\n// return;\n// }\n\n /* Output as x-prop */\n if (prop.getGroup() != null) {\n wtr.write(prop.getGroup().toString());\n wtr.write('.');\n }\n\n wtr.write(VcardDefs.v4AsXpropPrefix);\n wtr.write(prop.getId().getPropertyName());\n\n for (final Parameter param : prop.getParameters()) {\n wtr.write(';');\n\n /* Watch for non v3 */\n wtr.write(param.toString());\n }\n wtr.write(':');\n\n if (prop instanceof Encodable) {\n wtr.write(Strings.escape(Strings.valueOf(prop.getValue())));\n }\n else {\n wtr.write(Strings.valueOf(prop.getValue()));\n }\n\n wtr.write(Strings.LINE_SEPARATOR);\n }",
"protected void addPublisherPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_publisher_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_publisher_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__PUBLISHER,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"Builder addProperty(String name, SchemaOrgType value);",
"DefinedProperty graphAddProperty( int propertyKey, Object value );",
"protected void addPointNormalPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Track_pointNormal_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Track_pointNormal_feature\", \"_UI_Track_type\"),\r\n\t\t\t\t OntrackPackage.Literals.TRACK__POINT_NORMAL,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t true,\r\n\t\t\t\t null,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"DefinedProperty relAddProperty( long relId, int propertyKey, Object value );",
"protected void addCrossing1PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Track_crossing1_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Track_crossing1_feature\", \"_UI_Track_type\"),\r\n\t\t\t\t OntrackPackage.Literals.TRACK__CROSSING1,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t true,\r\n\t\t\t\t null,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public static void addProperty(String[] attribs) {\n int mls = Integer.parseInt(attribs[2]); \n int zip = Integer.parseInt(attribs[7]);\n int numBedrooms = Integer.parseInt(attribs[8]);\n double numBathrooms = Double.parseDouble(attribs[9]);\n boolean isSold;\n if(attribs[10].toUpperCase().equals(\"Y\")) {\n isSold = true;\n } else {\n isSold = false;\n }\n double askingPrice = Double.parseDouble(attribs[11]);\n Property property = new Property(mls, attribs[3], attribs[4],\n attribs[5], attribs[6], zip, numBedrooms, numBathrooms, isSold,\n askingPrice);\n String added = propertyLogImpl.add(property) ? \"added\" : \"not added\";\n System.out.println(\"Property \" + added);\n }",
"@NoProxy\n @NoDump\n @NoWrap\n public String getXproperty(final String name) {\n BwXproperty prop = findXproperty(name);\n\n if (prop == null) {\n return null;\n }\n\n return prop.getValue();\n }",
"public DatatypeProp getProperty() {\n return property;\n }",
"public void addXPoint(double val) {\n\t\txStats.addSample(val);\n\t}",
"public PropertiesQDoxPropertyExpander() {\n super();\n }",
"protected void addPropietarioPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_propietario_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_propietario_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__PROPIETARIO,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public void addPropertyExpression(Object comp, String propertyName, DataStoreBuffer dsb, DataStoreExpression propExpression) throws NoSuchMethodException, DataStoreException {\r\n\r\n\t\tDataStoreEvaluator dse = new DataStoreEvaluator(dsb, propExpression);\r\n\t\taddPropertyExpression(comp, propertyName, dse);\r\n\t}",
"@Override\n @NoProxy\n @NoDump\n public List<BwXproperty> getXicalProperties(final String val) {\n List<BwXproperty> res = new ArrayList<>();\n List<BwXproperty> xs = getXproperties();\n if (xs == null) {\n return res;\n }\n\n for (BwXproperty x: xs) {\n if (x == null) {\n continue;\n }\n\n if (x.getName().equals(BwXproperty.bedeworkIcalProp)) {\n List<Xpar> xpars = x.getParameters();\n\n Xpar xp = xpars.get(0);\n if (xp.getName().equals(val)) {\n res.add(x);\n }\n }\n }\n\n return res;\n }",
"protected void addFeaturesPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_Reference_features_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_Reference_features_feature\", \"_UI_Reference_type\"),\n NoSQLSchemaPackage.Literals.REFERENCE__FEATURES,\n true,\n false,\n true,\n null,\n null,\n null));\n }",
"public void setProposition(PropositionDefinition.Builder prop) {\r\n\t\t\tthis.proposition = prop;\r\n\t\t\tthis.setPropId(prop.getId());\r\n\t\t}",
"protected void addKeyPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_key_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_key_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__KEY,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"protected void addVolumePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_volume_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_volume_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__VOLUME,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"protected void addNotePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_note_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_note_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__NOTE,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"public void enablePropertyAlive()\n {\n iPropertyAlive = new PropertyBool(new ParameterBool(\"Alive\"));\n addProperty(iPropertyAlive);\n }",
"private static Element createExtendedItemListProp(ReportDesigner reportDesigner){\r\n\t\tElement listPropertyNode = doc.createElement(\"list-property\");\r\n\t\tlistPropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"boundDataColumns\");\r\n\r\n\t\tList<ReportColumn> reportColumns = reportDesigner.getReportColumns();\r\n\r\n\t\tfor(ReportColumn col : reportColumns){\r\n\t\t\tElement structureNode = doc.createElement(ReportDesigner.NODE_NAME_STRUCTURE);\r\n\t\t\tlistPropertyNode.appendChild(structureNode);\r\n\r\n\t\t\tElement propertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,ReportDesigner.ATTRIBUTE_VALUE_NAME);\r\n\t\t\tpropertyNode.appendChild(doc.createTextNode(col.getName()));\r\n\t\t\tstructureNode.appendChild(propertyNode);\r\n\r\n\t\t\tElement expressionNode = doc.createElement(ReportDesigner.NODE_NAME_EXPRESSION);\r\n\t\t\texpressionNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,ReportDesigner.ATTRIBUTE_VALUE_EXPRESSION);\r\n\t\t\texpressionNode.appendChild(doc.createTextNode(\"dataSetRow[\\\"\"+col.getName()+\"\\\"]\"));\r\n\t\t\tstructureNode.appendChild(expressionNode);\r\n\r\n\t\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"dataType\");\r\n\t\t\tpropertyNode.appendChild(doc.createTextNode(ReportDesigner.fromXsd2ReportType(col.getDataType())));\r\n\t\t\tstructureNode.appendChild(propertyNode);\r\n\t\t}\r\n\r\n\t\treturn listPropertyNode;\r\n\t}",
"public X propertyChangeListener(String property, PropertyChangeListener listener) {\n component.addPropertyChangeListener(property, listener);\n return (X) this;\n }",
"abstract void putXMLProperty(XMLName name, Object value);",
"private static PropertyDescriptor[] getPdescriptor() {\n PropertyDescriptor[] properties = new PropertyDescriptor[4];\n\n try {\n properties[PROPERTY_length] = new PropertyDescriptor(\"length\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getLength\", \"setLength\"); // NOI18N\n properties[PROPERTY_name] = new PropertyDescriptor(\"name\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getName\", \"setName\"); // NOI18N\n properties[PROPERTY_nullable] = new PropertyDescriptor(\"nullable\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getNullable\", \"setNullable\"); // NOI18N\n properties[PROPERTY_type] = new PropertyDescriptor(\"type\", org.geogurus.gas.objects.GeometryClassFieldBean.class, \"getType\", \"setType\"); // NOI18N\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }//GEN-HEADEREND:Properties\n\n // Here you can add code for customizing the properties array.\n\n return properties;\n }",
"protected void addIana_propPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_tzpropOptional_iana_prop_feature\"),\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_tzpropOptional_iana_prop_feature\",\n\t\t\t\t\t\t\t\t\"_UI_tzpropOptional_type\"),\n\t\t\t\t\t\tICalPackage.Literals.TZPROP_OPTIONAL__IANA_PROP, true, false, false,\n\t\t\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}",
"@SuppressWarnings({ \"unchecked\", \"cast\" })\n @Override\n protected boolean addPropertyDefs(@SuppressWarnings(\"unused\")\n Object obj, String propName, Object pvalue, Map<String, Object> defs)\n {\n if (defs == null)\n throw new IllegalArgumentException(\"defs may not be null.\");\n\n if (pvalue instanceof String)\n {\n super.addPropertyDefs((String)pvalue, null, defs);\n }\n else if (pvalue instanceof List)\n {\n addFixmePropertyDefsForList(propName, (List)pvalue, defs);\n }\n else if (pvalue instanceof Map)\n {\n addPropertyDefsForMap(propName, pvalue, null, defs);\n }\n return true;\n }",
"public String prop(String name);",
"public void enablePropertyVolumeSteps()\n {\n iPropertyVolumeSteps = new PropertyUint(new ParameterUint(\"VolumeSteps\"));\n addProperty(iPropertyVolumeSteps);\n }",
"PropertyCallExp createPropertyCallExp();",
"public void addProperty(String key, String value);",
"Property createProperty();",
"void addOrReplaceProperty(Property prop, Collection<Property> properties);",
"protected void addTipovehiculoPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_tipovehiculo_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_tipovehiculo_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__TIPOVEHICULO,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public void addProperty( String key, String value )\n {\n Props.Entry entry = new Props.Entry();\n entry.setKey( key );\n entry.setValue( value );\n this.props.getEntry().add( entry );\n }",
"public void addProperty(Property property)\r\n {\r\n m_values.add(property);\r\n }",
"@Override\n public void alterColumnByName(String name, XPropertySet descriptor) throws SQLException, NoSuchElementException {\n \n }",
"void declare(String name, Supplier<T> propertySupplier);",
"protected void addEditorPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_editor_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_editor_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__EDITOR,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"public void setPropName(String name) {\n m_propName = name;\n }",
"public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }",
"protected void addCust_val1PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val1_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val1_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL1,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public DynamicCuboid setExtraX(float x) {\n this.extraX = x;\n return this;\n }",
"protected void addVarNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_varName_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_varName_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VAR_NAME, true,\n\t\t\t\tfalse, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}",
"@Override\n\tpublic void setProperty(String propertyName, Object value) {\n\t\t\n\t}",
"public PropertyDescriptor[] getPropertyDescriptors () {\n return desc;\n }",
"public void setMissing(String propname)\n\t\t{\n\t\t\tm_missingInformation.add(propname);\n\t\t}",
"protected void addCust_val7PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val7_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val7_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL7,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"protected void addAuditingPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors\r\n\t\t\t\t.add(createItemPropertyDescriptor(\r\n\t\t\t\t\t\t((ComposeableAdapterFactory) adapterFactory)\r\n\t\t\t\t\t\t\t\t.getRootAdapterFactory(),\r\n\t\t\t\t\t\tgetResourceLocator(),\r\n\t\t\t\t\t\tgetString(\"_UI_HorizontalMappingStrategyDef_auditing_feature\"),\r\n\t\t\t\t\t\tgetString(\r\n\t\t\t\t\t\t\t\t\"_UI_PropertyDescriptor_description\",\r\n\t\t\t\t\t\t\t\t\"_UI_HorizontalMappingStrategyDef_auditing_feature\",\r\n\t\t\t\t\t\t\t\t\"_UI_HorizontalMappingStrategyDef_type\"),\r\n\t\t\t\t\t\tCDOServerDbDefsPackage.Literals.HORIZONTAL_MAPPING_STRATEGY_DEF__AUDITING,\r\n\t\t\t\t\t\ttrue, false, false,\r\n\t\t\t\t\t\tItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null));\r\n\t}",
"public void addPropertyExpression(Object comp, String propertyName, DataStoreEvaluator expEval) throws NoSuchMethodException, DataStoreException {\r\n\t\tClass c = comp.getClass();\r\n\t\tMethod m[] = c.getMethods();\r\n\t\tMethod exe = null;\r\n\t\tString name = \"set\" + propertyName;\r\n\t\tClass parms[] = null;\r\n\t\tfor (int i = 0; i < m.length; i++) {\r\n\t\t\tif (name.equalsIgnoreCase(m[i].getName())) {\r\n\t\t\t\tparms = m[i].getParameterTypes();\r\n\t\t\t\tif (parms.length == 1) {\r\n\t\t\t\t\texe = m[i];\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (exe == null)\r\n\t\t\tthrow new NoSuchMethodException(\"Couldn't find a set method for property:\" + propertyName);\r\n\t\tThreeObjectContainer t = new ThreeObjectContainer(comp, exe, expEval);\r\n\t\tif (_propertyExpressions == null)\r\n\t\t\t_propertyExpressions = new Vector();\r\n\t\t_propertyExpressions.addElement(t);\r\n\t}",
"protected void addNamePropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors\r\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_OperationCall_name_feature\"),\r\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_OperationCall_name_feature\",\r\n\t\t\t\t\t\t\t\t\"_UI_OperationCall_type\"),\r\n\t\t\t\t\t\tSystemModelPackage.Literals.OPERATION_CALL__NAME, true, false, false,\r\n\t\t\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\r\n\t}",
"public final String getXvtXpeConfig() {\n\t\treturn xvtXpeConfig;\n\t}",
"public void addPropertyExpression(Object comp, String propertyName, DataStoreBuffer dsb, String expression) throws NoSuchMethodException, DataStoreException {\r\n\t\tDataStoreEvaluator dse = new DataStoreEvaluator(dsb, expression);\r\n\t\taddPropertyExpression(comp, propertyName, dse);\r\n\t}",
"protected void addNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_name_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_name_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__NAME,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"private static PropertyDescriptor[] getPdescriptor(){\n PropertyDescriptor[] properties = new PropertyDescriptor[19];\n \n try {\n properties[PROPERTY_board] = new PropertyDescriptor ( \"board\", org.yccheok.jstock.gui.MutableStock.class, \"getBoard\", null ); // NOI18N\n properties[PROPERTY_buyPrice] = new PropertyDescriptor ( \"buyPrice\", org.yccheok.jstock.gui.MutableStock.class, \"getBuyPrice\", \"setBuyPrice\" ); // NOI18N\n properties[PROPERTY_buyQuantity] = new PropertyDescriptor ( \"buyQuantity\", org.yccheok.jstock.gui.MutableStock.class, \"getBuyQuantity\", \"setBuyQuantity\" ); // NOI18N\n properties[PROPERTY_changePrice] = new PropertyDescriptor ( \"changePrice\", org.yccheok.jstock.gui.MutableStock.class, \"getChangePrice\", \"setChangePrice\" ); // NOI18N\n properties[PROPERTY_changePricePercentage] = new PropertyDescriptor ( \"changePricePercentage\", org.yccheok.jstock.gui.MutableStock.class, \"getChangePricePercentage\", \"setChangePricePercentage\" ); // NOI18N\n properties[PROPERTY_code] = new PropertyDescriptor ( \"code\", org.yccheok.jstock.gui.MutableStock.class, \"getCode\", null ); // NOI18N\n properties[PROPERTY_highPrice] = new PropertyDescriptor ( \"highPrice\", org.yccheok.jstock.gui.MutableStock.class, \"getHighPrice\", \"setHighPrice\" ); // NOI18N\n properties[PROPERTY_industry] = new PropertyDescriptor ( \"industry\", org.yccheok.jstock.gui.MutableStock.class, \"getIndustry\", null ); // NOI18N\n properties[PROPERTY_lastPrice] = new PropertyDescriptor ( \"lastPrice\", org.yccheok.jstock.gui.MutableStock.class, \"getLastPrice\", \"setLastPrice\" ); // NOI18N\n properties[PROPERTY_lastVolume] = new PropertyDescriptor ( \"lastVolume\", org.yccheok.jstock.gui.MutableStock.class, \"getLastVolume\", \"setLastVolume\" ); // NOI18N\n properties[PROPERTY_lowPrice] = new PropertyDescriptor ( \"lowPrice\", org.yccheok.jstock.gui.MutableStock.class, \"getLowPrice\", \"setLowPrice\" ); // NOI18N\n properties[PROPERTY_name] = new PropertyDescriptor ( \"name\", org.yccheok.jstock.gui.MutableStock.class, \"getName\", null ); // NOI18N\n properties[PROPERTY_openPrice] = new PropertyDescriptor ( \"openPrice\", org.yccheok.jstock.gui.MutableStock.class, \"getOpenPrice\", \"setOpenPrice\" ); // NOI18N\n properties[PROPERTY_prevPrice] = new PropertyDescriptor ( \"prevPrice\", org.yccheok.jstock.gui.MutableStock.class, \"getPrevPrice\", \"setPrevPrice\" ); // NOI18N\n properties[PROPERTY_sellPrice] = new PropertyDescriptor ( \"sellPrice\", org.yccheok.jstock.gui.MutableStock.class, \"getSellPrice\", \"setSellPrice\" ); // NOI18N\n properties[PROPERTY_sellQuantity] = new PropertyDescriptor ( \"sellQuantity\", org.yccheok.jstock.gui.MutableStock.class, \"getSellQuantity\", \"setSellQuantity\" ); // NOI18N\n properties[PROPERTY_stock] = new PropertyDescriptor ( \"stock\", org.yccheok.jstock.gui.MutableStock.class, \"getStock\", null ); // NOI18N\n properties[PROPERTY_symbol] = new PropertyDescriptor ( \"symbol\", org.yccheok.jstock.gui.MutableStock.class, \"getSymbol\", null ); // NOI18N\n properties[PROPERTY_volume] = new PropertyDescriptor ( \"volume\", org.yccheok.jstock.gui.MutableStock.class, \"getVolume\", \"setVolume\" ); // NOI18N\n }\n catch(IntrospectionException e) {\n e.printStackTrace();\n }//GEN-HEADEREND:Properties\n // Here you can add code for customizing the properties array.\n\n return properties; }",
"@java.lang.Override\n public boolean hasX() {\n return instance.hasX();\n }",
"public void setXCoordinates(double newX) { this.xCoordinates = newX; }",
"public void setX(double x) {\n this.x = x;\r\n }",
"public void setX(double x){\n this.x = x;\n }",
"public void setX(double x){\n this.x = x;\n }",
"public void notifyChanged(final Notification msg) {\r\n\t super.notifyChanged(msg);\r\n\t \r\n\t if(msg.getFeature() == PropertiesPackage.Literals.PROPERTY__VALUE) {\r\n\t \tsetGUIAttributes();\r\n\t }\r\n\t }",
"public boolean setProperty(String attName, Object value);",
"public void enablePropertyBalance()\n {\n iPropertyBalance = new PropertyInt(new ParameterInt(\"Balance\"));\n addProperty(iPropertyBalance);\n }",
"private static void addExtendedItemNonXmlProps(Element extendedItemNode,ReportDesigner reportDesigner){\r\n\t\t//outputFormat\r\n\t\tElement propertyNode = doc.createElement(\"property\");\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"outputFormat\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"JPG\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//inheritColumns\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"inheritColumns\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"false\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//Data Set Chart\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"dataSet\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"Data Set\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//height\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"height\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"3.7916666666666665in\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//width\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"width\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"7.875in\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\textendedItemNode.appendChild(createExtendedItemListProp(reportDesigner));\r\n\t}",
"private void showPropertyDescription(MouseEvent event) {\r\n\t\tPropertyDescriptionStage propertyDescriptionStage = new PropertyDescriptionStage(property);\r\n\t\tpropertyDescriptionStage.show();\r\n\t}",
"void setX(double x){\r\n\t\tthis.x=x;\r\n\t}",
"public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }",
"public void setX(double x)\n {\n this.x = x;\n }",
"public void setProperty(String prop, Object value)\r\n {\r\n\tswitch(prop)\r\n\t{\r\n\t case \"name\":\r\n\t\tname = value.toString();\r\n\t\tbreak;\r\n\t case \"description\":\r\n\t\tdesc = value.toString();\r\n\t\tbreak;\r\n\t case \"type\":\r\n\t\tsetType(value.toString());\r\n\t\tbreak;\r\n\t case \"level\":\r\n\t\tlevel = (Integer) value;\r\n\t\tbreak;\r\n\t case \"rarity\":\r\n\t\trare = Rarity.valueOf(value.toString().toUpperCase());\r\n\t\tbreak;\r\n\t case \"vendor_value\":\r\n\t\tvendorValue = (Integer) value;\r\n\t\tbreak;\r\n\t case \"game_types\":\r\n\t\taddGameType(value.toString());\r\n\t\tbreak;\r\n\t case \"flags\":\r\n\t\taddFlag(value.toString());\r\n\t\tbreak;\r\n\t case \"restrictions\":\r\n\t\taddRestriction(value.toString());\r\n\t\tbreak;\r\n\t case \"id\":\r\n\t\tid = (Integer) value;\r\n\t\tbreak;\r\n\t case \"icon\":\r\n\t\ttry {\r\n\t\t icon = new URL(value.toString());\r\n\t\t}\r\n\t\tcatch(MalformedURLException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\tbreak;\r\n\t}\r\n }",
"void addHasXCoordinate(Object newHasXCoordinate);",
"public static void registerProps() throws API_Exception {\n\t\tProperties.registerProp( DOCKER_IMG_VERSION, Properties.STRING_TYPE, DOCKER_IMG_VERSION_DESC );\n\t\tProperties.registerProp( SAVE_CONTAINER_ON_EXIT, Properties.BOOLEAN_TYPE, SAVE_CONTAINER_ON_EXIT_DESC );\n\t\tProperties.registerProp( DOCKER_HUB_USER, Properties.STRING_TYPE, DOCKER_HUB_USER_DESC );\n\t}",
"public void setProperties(List<IPropertyDescriptor<T>> propSchema);",
"public void setX(double x) {\n this.x = x;\n }",
"public void setX(double x) {\n this.x = x;\n }",
"public void setX(double x) {\n this.x = x;\n }",
"public void addProperty(org.apache.ant.antlib.system.SubBuild.Property property) {\n properties.put(property.getName(), property.getValue());\n }",
"public void NewX(double x){\n\t\tthis.x = x;\n\t}",
"Object getPropertytrue();",
"protected void addProgressPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Requirement_progress_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Requirement_progress_feature\", \"_UI_Requirement_type\"),\n\t\t\t\t Y3853992Package.Literals.REQUIREMENT__PROGRESS,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.REAL_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"public void writeProperties(Properties prop) {\n writeProperties(prop, \"[ No description provided! ]\");\n }",
"ProductPropertyExecution addProductPropertyList(List<PropertyValue> propertyValueList,PPManage ppManage);"
] | [
"0.609432",
"0.5848612",
"0.57622784",
"0.5740059",
"0.5549108",
"0.55419797",
"0.55215657",
"0.5450417",
"0.5448511",
"0.5428899",
"0.54245806",
"0.53932846",
"0.53371054",
"0.53304225",
"0.52967095",
"0.5277628",
"0.52430147",
"0.5241103",
"0.522851",
"0.52138627",
"0.51905566",
"0.51747495",
"0.5129479",
"0.51231176",
"0.51188916",
"0.5096791",
"0.5092776",
"0.5090137",
"0.50832224",
"0.5076071",
"0.5069255",
"0.50668997",
"0.50568265",
"0.50548893",
"0.50447416",
"0.50422233",
"0.5040676",
"0.5031427",
"0.50144744",
"0.50119513",
"0.5008901",
"0.498071",
"0.49673274",
"0.49654648",
"0.4913373",
"0.4910309",
"0.48897123",
"0.48763403",
"0.48648107",
"0.48583457",
"0.4856885",
"0.48567864",
"0.48465943",
"0.48445582",
"0.48442572",
"0.48306865",
"0.4829102",
"0.48284322",
"0.4816657",
"0.48129177",
"0.4806528",
"0.48046693",
"0.48017794",
"0.48006737",
"0.47932392",
"0.4792215",
"0.47891322",
"0.47849557",
"0.4782413",
"0.47784504",
"0.47735757",
"0.4772594",
"0.47696802",
"0.4762619",
"0.47586256",
"0.47526085",
"0.4750426",
"0.4748072",
"0.4748072",
"0.47425696",
"0.4741773",
"0.47405607",
"0.4734662",
"0.4732514",
"0.47273955",
"0.4723642",
"0.47210288",
"0.47204995",
"0.47177252",
"0.47160733",
"0.471552",
"0.47145957",
"0.47145957",
"0.47145957",
"0.4713596",
"0.4710406",
"0.470889",
"0.47067574",
"0.47041562",
"0.47032607"
] | 0.6655927 | 0 |
This adds a property descriptor for the Iana prop feature. | protected void addIana_propPropertyDescriptor(Object object) {
itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_tzpropOptional_iana_prop_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_tzpropOptional_iana_prop_feature",
"_UI_tzpropOptional_type"),
ICalPackage.Literals.TZPROP_OPTIONAL__IANA_PROP, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DataModelDescriptorBuilder property(PropertyDescriptor descriptor) {\n this.properties.add(descriptor);\n return this;\n }",
"@Override\n\tpublic void addProperty(IProperty property) {\n\t\t\n\t}",
"@Override\n\tpublic void addProperty(String name) {\n\t}",
"protected void addNotePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_note_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_note_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__NOTE,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"protected void addPlacaPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_placa_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_placa_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__PLACA,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"protected void addDoiPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_doi_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_doi_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__DOI,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"protected void addX_propPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_tzpropOptional_x_prop_feature\"),\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_tzpropOptional_x_prop_feature\",\n\t\t\t\t\t\t\t\t\"_UI_tzpropOptional_type\"),\n\t\t\t\t\t\tICalPackage.Literals.TZPROP_OPTIONAL__XPROP, true, false, false,\n\t\t\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}",
"public interface IPropertyInfo extends IAttributedFeatureInfo, IIntrinsicTypeReference\n{\n /**\n * @return true if the property is readable given the visibility constraint passed in,\n * false otherwise.\n */\n public boolean isReadable();\n\n /**\n * @return True if the property is writable given the visibility constraint passed in,\n * false otherwise.\n */\n public boolean isWritable();\n\n /**\n * @param whosAskin The type querying the property writability. For example, passing in the type the property is on will\n * allow properties that have private access in the setter to be written to. Passing in an unrelated type will only\n * allow properties that are public to be written to.\n *\n * @return True if the property is writable given the visibility constraint passed in,\n * false otherwise.\n */\n public boolean isWritable( IType whosAskin );\n\n /**\n * @return the PropertyAccessor (for getting and setting) this property.\n */\n public IPropertyAccessor getAccessor();\n\n public IPresentationInfo getPresentationInfo();\n}",
"protected void addTipovehiculoPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_tipovehiculo_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_tipovehiculo_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__TIPOVEHICULO,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"protected void addPropietarioPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_propietario_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_propietario_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__PROPIETARIO,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}",
"Builder addProperty(String name, String value);",
"protected void addTitlePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_title_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_title_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__TITLE,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"protected void addVolumePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_volume_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_volume_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__VOLUME,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"protected void addInterfaceTypePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_EntityAttribute_interfaceType_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_EntityAttribute_interfaceType_feature\", \"_UI_EntityAttribute_type\"),\n\t\t\t\t PersistencePackage.Literals.ENTITY_ATTRIBUTE__INTERFACE_TYPE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t getString(\"_UI_InterfacePropertyCategory\"),\n\t\t\t\t null));\n\t}",
"interface PropertyInfo {}",
"protected void addEditorPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_editor_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_editor_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__EDITOR,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"protected void addConnectionDaPropertyDescriptor ( Object object )\n {\n itemPropertyDescriptors.add ( createItemPropertyDescriptor ( ( (ComposeableAdapterFactory)adapterFactory ).getRootAdapterFactory (), getResourceLocator (), getString ( \"_UI_Site_connectionDa_feature\" ), getString ( \"_UI_PropertyDescriptor_description\", \"_UI_Site_connectionDa_feature\", \"_UI_Site_type\" ), GlobalPackage.Literals.SITE__CONNECTION_DA, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null ) );\n }",
"protected void addConnectionAePropertyDescriptor ( Object object )\n {\n itemPropertyDescriptors.add ( createItemPropertyDescriptor ( ( (ComposeableAdapterFactory)adapterFactory ).getRootAdapterFactory (), getResourceLocator (), getString ( \"_UI_Site_connectionAe_feature\" ), getString ( \"_UI_PropertyDescriptor_description\", \"_UI_Site_connectionAe_feature\", \"_UI_Site_type\" ), GlobalPackage.Literals.SITE__CONNECTION_AE, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null ) );\n }",
"protected void addPublisherPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_publisher_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_publisher_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__PUBLISHER,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"protected void addFeaturesPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_Reference_features_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_Reference_features_feature\", \"_UI_Reference_type\"),\n NoSQLSchemaPackage.Literals.REFERENCE__FEATURES,\n true,\n false,\n true,\n null,\n null,\n null));\n }",
"protected void addIdentifierPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Requirement_identifier_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Requirement_identifier_feature\", \"_UI_Requirement_type\"),\n\t\t\t\t Y3853992Package.Literals.REQUIREMENT__IDENTIFIER,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"private PropertyPagePropertyDescriptor getPropertyDescriptor() {\n \t\treturn propertyDescriptor;\n \t}",
"protected void addAuditingPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors\r\n\t\t\t\t.add(createItemPropertyDescriptor(\r\n\t\t\t\t\t\t((ComposeableAdapterFactory) adapterFactory)\r\n\t\t\t\t\t\t\t\t.getRootAdapterFactory(),\r\n\t\t\t\t\t\tgetResourceLocator(),\r\n\t\t\t\t\t\tgetString(\"_UI_HorizontalMappingStrategyDef_auditing_feature\"),\r\n\t\t\t\t\t\tgetString(\r\n\t\t\t\t\t\t\t\t\"_UI_PropertyDescriptor_description\",\r\n\t\t\t\t\t\t\t\t\"_UI_HorizontalMappingStrategyDef_auditing_feature\",\r\n\t\t\t\t\t\t\t\t\"_UI_HorizontalMappingStrategyDef_type\"),\r\n\t\t\t\t\t\tCDOServerDbDefsPackage.Literals.HORIZONTAL_MAPPING_STRATEGY_DEF__AUDITING,\r\n\t\t\t\t\t\ttrue, false, false,\r\n\t\t\t\t\t\tItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null));\r\n\t}",
"protected void addWishApparatusPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_JuristType_wishApparatus_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_JuristType_wishApparatus_feature\", \"_UI_JuristType_type\"),\n\t\t\t\t ContestPackage.Literals.JURIST_TYPE__WISH_APPARATUS,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"private void showPropertyDescription(MouseEvent event) {\r\n\t\tPropertyDescriptionStage propertyDescriptionStage = new PropertyDescriptionStage(property);\r\n\t\tpropertyDescriptionStage.show();\r\n\t}",
"protected void addProgressPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Requirement_progress_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Requirement_progress_feature\", \"_UI_Requirement_type\"),\n\t\t\t\t Y3853992Package.Literals.REQUIREMENT__PROGRESS,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.REAL_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"protected void renderAnnotationProperty(OWLAnnotationProperty prop) throws OWLException {\n\t}",
"@Test\n\tpublic void addProperty() {\n\t\tXMLTagParser.addNewElement(\"Person\");\n\t\tXMLTagParser.editElement(\"Person\", \"residence\", \"milan\");\n\n\t\tXMLTagParser.editProperty(\"Person\", \"residence\", \"isRenting\", \"false\");\n\t\tassertEquals(XMLTagParser.getPropertyValueFromTag(\"Person\", \"residence\", \"isRenting\"), \"false\");\n\t\tXMLTagParser.editProperty(\"Person\", \"residence\", \"hasGarage\", \"true\");\n\t\tassertEquals(XMLTagParser.getPropertyValueFromTag(\"Person\", \"residence\", \"hasGarage\"), \"true\");\n\t}",
"protected void addProfilePropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Configuration_profile_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Configuration_profile_feature\", \"_UI_Configuration_type\"),\r\n\t\t\t\t SpringConfigDslPackage.Literals.CONFIGURATION__PROFILE,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"protected void addIndexPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Edge_index_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Edge_index_feature\", \"_UI_Edge_type\"),\n\t\t\t\t HenshinPackage.Literals.EDGE__INDEX,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"protected void addDescriptionPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Configuration_description_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Configuration_description_feature\", \"_UI_Configuration_type\"),\r\n\t\t\t\t SpringConfigDslPackage.Literals.CONFIGURATION__DESCRIPTION,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Bean_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Bean_description_feature\", \"_UI_Bean_type\"),\n\t\t\t\t BeansPackage.Literals.BEAN__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"public interface IProperty<O extends Object> extends IFeature{\n O getProperty();\n void setProperty(O property);\n EPropertyCategory getCategory(); \n}",
"protected void addIcpPortPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors\n\t\t\t\t.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),\n\t\t\t\t\t\tgetResourceLocator(), getString(\"_UI_WebsphereServerTask_icpPort_feature\"),\n\t\t\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_WebsphereServerTask_icpPort_feature\",\n\t\t\t\t\t\t\t\t\"_UI_WebsphereServerTask_type\"),\n\t\t\t\t\t\tServerPackage.Literals.WEBSPHERE_SERVER_TASK__ICP_PORT, true, false, false,\n\t\t\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}",
"protected void addPropNames()\n{\n addPropNames(\"Visible\", \"X\", \"Y\", \"Width\", \"Height\", \"Roll\", \"ScaleX\", \"ScaleY\",\n \"Font\", \"TextColor\", \"FillColor\", \"StrokeColor\", \"URL\");\n}",
"protected void addPrintUPSPropertyDescriptor(Object object)\n\t{\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Cadence_printUPS_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Cadence_printUPS_feature\", \"_UI_Cadence_type\"),\n\t\t\t\t CadencePackage.Literals.CADENCE__PRINT_UPS,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"public void writeProperties(Properties prop) {\n writeProperties(prop, \"[ No description provided! ]\");\n }",
"protected void addIdentifierPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_identifier_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_identifier_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__IDENTIFIER, true,\n\t\t\t\tfalse, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}",
"Builder addProperty(String name, SchemaOrgType value);",
"protected void addInterfaceTypePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_InterfaceField_interfaceType_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_InterfaceField_interfaceType_feature\", \"_UI_InterfaceField_type\"),\n\t\t\t\t WafPackage.Literals.INTERFACE_FIELD__INTERFACE_TYPE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"protected void addPy_cdPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_py_cd_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_py_cd_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__PY_CD,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public void addProperty(SGFProperty property)\r\n\t{\r\n\t\t_propertyList.add(property);\r\n\t}",
"Property createProperty();",
"public static void addProperty(String[] attribs) {\n int mls = Integer.parseInt(attribs[2]); \n int zip = Integer.parseInt(attribs[7]);\n int numBedrooms = Integer.parseInt(attribs[8]);\n double numBathrooms = Double.parseDouble(attribs[9]);\n boolean isSold;\n if(attribs[10].toUpperCase().equals(\"Y\")) {\n isSold = true;\n } else {\n isSold = false;\n }\n double askingPrice = Double.parseDouble(attribs[11]);\n Property property = new Property(mls, attribs[3], attribs[4],\n attribs[5], attribs[6], zip, numBedrooms, numBathrooms, isSold,\n askingPrice);\n String added = propertyLogImpl.add(property) ? \"added\" : \"not added\";\n System.out.println(\"Property \" + added);\n }",
"protected void addKeyPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_key_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_key_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__KEY,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_description_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"protected void addKindPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\r\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory)\r\n\t\t\t\t\t\t.getRootAdapterFactory(),\r\n\t\t\t\tgetResourceLocator(),\r\n\t\t\t\tgetString(\"_UI_Action_kind_feature\"),\r\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\r\n\t\t\t\t\t\t\"_UI_Action_kind_feature\", \"_UI_Action_type\"),\r\n\t\t\t\tScenarioParticipantPackage.Literals.ACTION__KIND, true, false,\r\n\t\t\t\tfalse, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\r\n\t}",
"protected void addReferenciaPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_referencia_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_referencia_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__REFERENCIA,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"void setProperty(String attribute, String value);",
"protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Requirement_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Requirement_description_feature\", \"_UI_Requirement_type\"),\n\t\t\t\t Y3853992Package.Literals.REQUIREMENT__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"public EJCoreFrameworkExtensionPropertyListEntry()\n {\n _propertyEntries = new HashMap<String, String>();\n }",
"public OWLProperty (String iri) {\n\t\tthis.classIRI = iri;\n//\t\tthis.domain = domain;\n//\t\tthis.range = range;\n\t}",
"protected void addIdentifyingDescriptionsPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ComputerSystem_identifyingDescriptions_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ComputerSystem_identifyingDescriptions_feature\", \"_UI_ComputerSystem_type\"),\r\n\t\t\t\t CimPackage.eINSTANCE.getComputerSystem_IdentifyingDescriptions(),\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"protected void addPersonPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_JuristType_person_feature\"),\n\t\t\t\t getString(\"_UI_JuristType_person_description\"),\n\t\t\t\t ContestPackage.Literals.JURIST_TYPE__PERSON,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t true,\n\t\t\t\t null,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"void addPropertyListener(PropertyListener listener);",
"DefinedProperty graphAddProperty( int propertyKey, Object value );",
"protected void addDefaultAutowirePropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Configuration_defaultAutowire_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Configuration_defaultAutowire_feature\", \"_UI_Configuration_type\"),\r\n\t\t\t\t SpringConfigDslPackage.Literals.CONFIGURATION__DEFAULT_AUTOWIRE,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }",
"public void enablePropertyAlive()\n {\n iPropertyAlive = new PropertyBool(new ParameterBool(\"Alive\"));\n addProperty(iPropertyAlive);\n }",
"protected void addCalibrant_exposurePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Cell_calibrant_exposure_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Cell_calibrant_exposure_feature\", \"_UI_Cell_type\"),\n\t\t\t\t LDEExperimentsPackage.Literals.CELL__CALIBRANT_EXPOSURE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.REAL_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"@Override\npublic void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {\narg2.setType(Feeds.class);\narg2.setName(\"Feeds\");\n\narg2.setNamespace(n1);\n\n}",
"protected void addIdPropertyDescriptor ( Object object )\n {\n itemPropertyDescriptors.add ( createItemPropertyDescriptor ( ( (ComposeableAdapterFactory)adapterFactory ).getRootAdapterFactory (), getResourceLocator (), getString ( \"_UI_Site_id_feature\" ), getString ( \"_UI_PropertyDescriptor_description\", \"_UI_Site_id_feature\", \"_UI_Site_type\" ), GlobalPackage.Literals.SITE__ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null ) );\n }",
"protected void addVarNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_varName_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_varName_feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__VAR_NAME, true,\n\t\t\t\tfalse, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}",
"public interface PeopleAttribute {\n\n /**\n * Dynamically get the defined additional attribute of People\n * depending on their type\n *\n * @return pair of key indicating the label of the property\n * and value as the actual value of the additional attribute\n * @see Pair\n */\n Pair<String, String> getAdditionalAttribute();\n}",
"public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }",
"DefinedProperty nodeAddProperty( long nodeId, int propertyKey, Object value );",
"private Element addProperty(String name, Property swagger_property) throws ParserConfigurationException {\n\t\tElement element = document.createElement(ParserConstants.element_prefix.value());\n\t\telement.setAttribute(ParserConstants.name.toString(), name);\n\n\t\tElement simple = element;\n\n\t\tif (swagger_property.getRequired()) {\n\t\t\telement.setAttribute(ParserConstants.minOccurs.toString(), ParserConstants.minOccurs.value());\n\t\t}\n\n\t\tif (swagger_property instanceof IntegerProperty) {\n\t\t\tIntegerProperty integerProperty = (IntegerProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.integer_prefix.value());\n\t\t\tif (integerProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(integerProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof LongProperty) {\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.long_prefix.value());\n\t\t} else if (swagger_property instanceof StringProperty) {\n\t\t\tStringProperty stringProperty = (StringProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.string_prefix.value());\n\t\t\tif (stringProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(stringProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof DateTimeProperty) {\n\t\t\tDateTimeProperty dateTimeProperty = (DateTimeProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.date_time_prefix.value());\n\t\t\tif (dateTimeProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(dateTimeProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof BooleanProperty) {\n\t\t\tBooleanProperty booleanProperty = (BooleanProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.boolean_prefix.value());\n\t\t} else if (swagger_property instanceof RefProperty) {\n\t\t\tRefProperty refProperty = (RefProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), refProperty.getSimpleRef());\n\t\t} else if (swagger_property instanceof ObjectProperty) {\n\t\t\tObjectProperty objectProperty = (ObjectProperty) swagger_property;\n\t\t\telement.appendChild(js2wadl(name, objectProperty.getProperties()));\n\t\t} else if (swagger_property instanceof ArrayProperty) {\n\t\t\tArrayProperty arrayProperty = (ArrayProperty) swagger_property;\n\t\t\telement.appendChild(addProperty(name, arrayProperty.getItems()));\n\t\t} else {\n\t\t\telement.setAttribute(ParserConstants.type.toString(), swagger_property.getFormat());\n\t\t}\n\n\t\tif (swagger_property.getDescription() != null) {\n\t\t\tElement ann = document.createElement(ParserConstants.annotation_prefix.value());\n\t\t\tElement desc = document.createElement(ParserConstants.documentation_prefix.value());\n\t\t\tdesc.setTextContent(swagger_property.getDescription());\n\t\t\tann.appendChild(desc);\n\t\t\tsimple.appendChild(ann);\n\t\t}\n\n\t\treturn element;\n\t}",
"public void setProperty(String prop, Object value)\r\n {\r\n\tswitch(prop)\r\n\t{\r\n\t case \"name\":\r\n\t\tname = value.toString();\r\n\t\tbreak;\r\n\t case \"description\":\r\n\t\tdesc = value.toString();\r\n\t\tbreak;\r\n\t case \"type\":\r\n\t\tsetType(value.toString());\r\n\t\tbreak;\r\n\t case \"level\":\r\n\t\tlevel = (Integer) value;\r\n\t\tbreak;\r\n\t case \"rarity\":\r\n\t\trare = Rarity.valueOf(value.toString().toUpperCase());\r\n\t\tbreak;\r\n\t case \"vendor_value\":\r\n\t\tvendorValue = (Integer) value;\r\n\t\tbreak;\r\n\t case \"game_types\":\r\n\t\taddGameType(value.toString());\r\n\t\tbreak;\r\n\t case \"flags\":\r\n\t\taddFlag(value.toString());\r\n\t\tbreak;\r\n\t case \"restrictions\":\r\n\t\taddRestriction(value.toString());\r\n\t\tbreak;\r\n\t case \"id\":\r\n\t\tid = (Integer) value;\r\n\t\tbreak;\r\n\t case \"icon\":\r\n\t\ttry {\r\n\t\t icon = new URL(value.toString());\r\n\t\t}\r\n\t\tcatch(MalformedURLException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\tbreak;\r\n\t}\r\n }",
"protected void addMarcaPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_marca_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_marca_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__MARCA,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"protected void addVisitIDPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(new ItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Cell_visitID_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Cell_visitID_feature\", \"_UI_Cell_type\"),\n\t\t\t\t LDEExperimentsPackage.Literals.CELL__VISIT_ID,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null)\n\t\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic Collection<?> getChoiceOfValues(Object object) {\n\t\t\t\t\treturn getVisitIDs();\n\t\t\t\t}\n\t\t\t\t});\n\t}",
"interface PropItem {\n\t\t/**\n\t\t * The displayed text, including the current value\n\t\t * @return \n\t\t */\n\t\tString getText();\n\t\t/**\n\t\t * Changes the property.\n\t\t * @param up {@code true} increase value, {@code false} decrease it\n\t\t * @return {@code true} if the property has changed and the terrain should be regenerated\n\t\t */\n\t\tboolean change(boolean up);\n\t}",
"protected void addLinkDescriptionParameterPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_MPublishNewMp3Step_linkDescriptionParameter_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_MPublishNewMp3Step_linkDescriptionParameter_feature\", \"_UI_MPublishNewMp3Step_type\"),\r\n\t\t\t\t LogicPackage.Literals.MPUBLISH_NEW_MP3_STEP__LINK_DESCRIPTION_PARAMETER,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"protected void addOtherIdentifyingInfoPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ComputerSystem_otherIdentifyingInfo_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ComputerSystem_otherIdentifyingInfo_feature\", \"_UI_ComputerSystem_type\"),\r\n\t\t\t\t CimPackage.eINSTANCE.getComputerSystem_OtherIdentifyingInfo(),\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public String prop(String name);",
"protected void addAknPatternPropertyDescriptor ( Object object )\n {\n itemPropertyDescriptors.add ( createItemPropertyDescriptor ( ( (ComposeableAdapterFactory)adapterFactory ).getRootAdapterFactory (), getResourceLocator (), getString ( \"_UI_Site_aknPattern_feature\" ), getString ( \"_UI_PropertyDescriptor_description\", \"_UI_Site_aknPattern_feature\", \"_UI_Site_type\" ), GlobalPackage.Literals.SITE__AKN_PATTERN, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null ) );\n }",
"public void addProperty(String s, Object o) {\n }",
"public void addProperty(String s, Object o) {\n }",
"protected void addUniquePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_EntityAttribute_unique_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_EntityAttribute_unique_feature\", \"_UI_EntityAttribute_type\"),\n\t\t\t\t PersistencePackage.Literals.ENTITY_ATTRIBUTE__UNIQUE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,\n\t\t\t\t getString(\"_UI_ModelPropertyCategory\"),\n\t\t\t\t null));\n\t}",
"protected void addCrossrefPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_crossref_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_crossref_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__CROSSREF,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"protected void addFrequencyPropertyDescriptor(Object object)\n\t{\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Cadence_frequency_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Cadence_frequency_feature\", \"_UI_Cadence_type\"),\n\t\t\t\t CadencePackage.Literals.CADENCE__FREQUENCY,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"@Override\n public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }",
"Builder addAccessibilityFeature(String value);",
"public interface Property extends Assignable\n{\n\t/**\n\t * Property name\n\t */\n\tString getName();\n\n\t/**\n\t * Type.\n\t * \n\t * If this is a getter, the returned value is the getter's return type.\n\t * If this is a setter, the returned value is the type of the input argument of the setter.\n\t */\n\tType getType();\n\n /**\n * [InstanceType]\n *\n * @return null if the instance type metadata is not available or if the\n * instance type is not specified.\n */\n Type getInstanceType();\n\n\t/**\n\t * Is this read only?\n\t */\n\tboolean readOnly();\n\n /**\n\t *\n\t */\n\tboolean hasPublic();\n\n // metadata\n\n\t/**\n\t * [Inspectable]\n\t */\n\tInspectable getInspectable();\n\n\t/**\n\t * [CollapseWhiteSpace]\n\t */\n\tboolean collapseWhiteSpace();\n\n /**\n * [RichTextContent]\n */\n boolean richTextContent();\n\n\t/**\n\t * [Deprecated]\n\t */\n\tDeprecated getDeprecated();\n\n\t/**\n\t * [ChangeEvent]\n\t */\n\tboolean hasChangeEvent(String name);\n\n\n\t/**\n\t * [PercentProxy]\n\t */\n\tString getPercentProxy();\n}",
"protected void addFlowPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_flow_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_flow_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__FLOW,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"protected void addNumberOfSamplesPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Cell_numberOfSamples_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Cell_numberOfSamples_feature\", \"_UI_Cell_type\"),\n\t\t\t\t LDEExperimentsPackage.Literals.CELL__NUMBER_OF_SAMPLES,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"public DatatypeProp getProperty() {\n return property;\n }",
"protected void addTitlePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_UnitField_title_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_UnitField_title_feature\", \"_UI_UnitField_type\"),\n\t\t\t\t WafPackage.Literals.UNIT_FIELD__TITLE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"protected void addSoapPortPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\"_UI_WebsphereServerTask_soapPort_feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\", \"_UI_WebsphereServerTask_soapPort_feature\",\n\t\t\t\t\t\t\"_UI_WebsphereServerTask_type\"),\n\t\t\t\tServerPackage.Literals.WEBSPHERE_SERVER_TASK__SOAP_PORT, true, false, false,\n\t\t\t\tItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}",
"private <V> Definition<V> addPropertyDefinition(String name, Class<V> type,\n String caption, Method getter, Method setter) {\n if (getter == null)\n throw new IllegalArgumentException(\"null getter\");\n return this.addPropertyDefinition(name, type, caption,\n target -> Primitive.wrap(type).cast(ReflectUtil.invoke(getter, target)),\n setter != null ? (target, value) -> ReflectUtil.invoke(setter, target, value) : null);\n }",
"protected void addUrlPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_url_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_url_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__URL,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"public interface PropertyManager extends Manager {\n\t/**\n\t * The attribute \"attr\" has been added (instantiated for the first time).\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param newValue\n\t * . The new value of that attribute.\n\t */\n\tpublic void attributeAdded(Component component, String attr, String newValue);\n\n\t/**\n\t * The attribute \"attr\" has been modified.\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param newValue\n\t * . The new value of that attribute.\n\t * @param oldValue\n\t * . The previous value of that attribute.\n\t */\n\tpublic void attributeChanged(Component component, String attr, String newValue, String oldValue);\n\n\t/**\n\t * The attribute \"attr\" has been removed.\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribute name.\n\t * @param oldValue\n\t * . The previous value of that attribute.\n\t */\n\tpublic void attributeRemoved(Component component, String attr, String oldValue);\n}",
"protected void addSeriesPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_series_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_series_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__SERIES,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"public void addProperty(String key, String value);",
"public void setNewProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewProperty_descriptionType=param;\n \n\n }",
"protected void addPersistentTypePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_EntityAttribute_persistentType_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_EntityAttribute_persistentType_feature\", \"_UI_EntityAttribute_type\"),\n\t\t\t\t PersistencePackage.Literals.ENTITY_ATTRIBUTE__PERSISTENT_TYPE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t getString(\"_UI_DatabasePropertyCategory\"),\n\t\t\t\t null));\n\t}",
"public static void addIndividual(OWLIndividual owlIndi, OWLIndividual indiToAdd, String property, OWLOntology onto, OWLDataFactory factory, OWLOntologyManager manager){\n\t\tOWLObjectProperty p = factory.getOWLObjectProperty(IRI.create(Settings.uri+property));\n\t manager.applyChange(new AddAxiom(onto, factory.getOWLObjectPropertyAssertionAxiom(p, owlIndi, indiToAdd)));\n\t}",
"public void addProperty(org.apache.ant.antlib.system.SubBuild.Property property) {\n properties.put(property.getName(), property.getValue());\n }",
"DefinedProperty relAddProperty( long relId, int propertyKey, Object value );",
"protected void addNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_name_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_name_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__NAME,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}"
] | [
"0.6541521",
"0.6520563",
"0.6421468",
"0.6156312",
"0.60090524",
"0.59274834",
"0.59273595",
"0.5903976",
"0.58758545",
"0.5826888",
"0.572815",
"0.56910837",
"0.5671027",
"0.5668951",
"0.56500363",
"0.5646619",
"0.5616501",
"0.5611384",
"0.55966306",
"0.5596315",
"0.5591524",
"0.5583394",
"0.5566364",
"0.55590075",
"0.5555237",
"0.5551853",
"0.5524353",
"0.5520054",
"0.54925966",
"0.5477911",
"0.5472854",
"0.5467043",
"0.54659265",
"0.54504794",
"0.5440472",
"0.5428064",
"0.5424421",
"0.5413908",
"0.5404903",
"0.5386075",
"0.5381626",
"0.53753096",
"0.5363569",
"0.5351167",
"0.5350272",
"0.53473157",
"0.53431225",
"0.53217864",
"0.5312734",
"0.5311481",
"0.53106356",
"0.5309455",
"0.53034",
"0.53028005",
"0.5286753",
"0.52817714",
"0.5281067",
"0.52809006",
"0.52759033",
"0.5269526",
"0.525513",
"0.52438885",
"0.5243483",
"0.5243306",
"0.52394325",
"0.52349883",
"0.52271634",
"0.52197087",
"0.5208978",
"0.5205989",
"0.52016884",
"0.51951313",
"0.519513",
"0.5186502",
"0.51786053",
"0.51701796",
"0.5159135",
"0.5159135",
"0.51541543",
"0.51473796",
"0.513441",
"0.5132913",
"0.51265866",
"0.512604",
"0.5125082",
"0.5121826",
"0.512012",
"0.511813",
"0.5116791",
"0.51144654",
"0.5109927",
"0.5107405",
"0.51063675",
"0.5097184",
"0.5081022",
"0.5074",
"0.5073452",
"0.5058335",
"0.5052813",
"0.50505936"
] | 0.7152885 | 0 |
This returns the label text for the adapted class. | @Override
public String getText(Object object) {
String label = ((tzpropOptional) object).getTzname();
return label == null || label.length() == 0 ? getString("_UI_tzpropOptional_type")
: getString("_UI_tzpropOptional_type") + " " + label;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLabelText();",
"java.lang.String getLabel();",
"public java.lang.String getLabel();",
"public abstract String getLabelText();",
"public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName.replace('.', '_');\r\n\t}",
"public String getLabel();",
"public String getLabel();",
"public String getLabel();",
"public String getLabel();",
"String getLabel();",
"String getLabel();",
"public String getLabelText(){\n\t\treturn syncExec(new StringResult() {\t\t\n\t\t\t@Override\n\t\t\tpublic String run() {\n\t\t\t\tControl[] aux = widget.getParent().getChildren();\n\t\t\t\tfor (Control control : aux) {\n\t\t\t\t\tif (control instanceof CLabel){\n\t\t\t\t\t\treturn ((CLabel)control).getText();\n\t\t\t\t\t}\n\t\t\t\t\tif (control instanceof Label){\n\t\t\t\t\t\treturn ((Label)control).getText();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t}",
"public abstract String getLabel();",
"Label getLabel();",
"Label getLabel();",
"Label getLabel();",
"public String getLabel() {\r\n return lbl;\r\n }",
"public String getLabel()\n { \n return label;\n }",
"public String getLabel(){\n return label;\n }",
"public String getLabel()\n {\n return label;\n }",
"public String getLabel() { //gets the label\n\n\t\treturn rawLabel;\n\t}",
"public String getLabel()\n {\n return label;\n }",
"@Override\n public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel()\r\n {\r\n return label;\r\n }",
"public String getLabel()\r\n {\r\n return label;\r\n }",
"public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel()\n {\n return m_label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public Object getLabel() \n {\n return label;\n }",
"String getLabel() {\n return label;\n }",
"public String getLabel() {\r\n return label;\r\n }",
"private String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n return name().toLowerCase().replace(\"_\", \"\");\n }",
"public String getLabel()\n\t{\n\t\treturn label;\n\t}",
"public String getLabel(){\n\t\treturn label;\n\t}",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\n\t\treturn myLabel;\n\t}",
"public String toString() {\n return label;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn label;\n\t}",
"public Object getLabel(T instance) {\n if (labels.containsKey(instance)) {\n return labels.get(instance);\n } else {\n return \"\";\n }\n }",
"public String label() {\n return this.label;\n }",
"public String getLabel() {\n\t\treturn label;\n\t}",
"public T2 getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getContextualizedLabel() {\n\t\tString completeLbl = CodeUnit.getLabel(getRepo(), getArtFrag(), null, true);//this.getLabel();\r\n\t\t\r\n\t\t// strip number for anon class (shows in tooltip)\r\n\t\tif (RSECore.isAnonClassName(completeLbl))\r\n\t\t\tcompleteLbl = RSECore.stripAnonNumber(completeLbl);\r\n\t\t\r\n\t\tTitledArtifactEditPart parentTAFEP = this.getParentTAFEP();\r\n\t\tif (parentTAFEP != null) {\r\n\t\t\tString contextLbl = null;\r\n\t\t\tcontextLbl = getCntxLabel(parentTAFEP);\r\n\t\t\tif (completeLbl.startsWith(contextLbl) && !contextLbl.equals(\".\")) {\r\n\t\t\t\tcompleteLbl = completeLbl.substring(contextLbl.length());\r\n\t\t\t}\r\n\t\t}\r\n\t\tcompleteLbl = strTruncEnd(completeLbl, \".*\");\r\n\t\tcompleteLbl = strTruncBeg(completeLbl, \".\");\r\n\t\tif (completeLbl.length() == 0) completeLbl = \".\";\r\n\t\treturn completeLbl;\r\n\t}",
"public String getLabel() {\n return this.label;\n }",
"public String getLabel() {\n return _label == null ? name() : _label;\n }",
"public String getLabel() {\n return label == null ? StringUtils.EMPTY : label;\n }",
"public final String getLabel() {\n\t\treturn _label;\n\t}",
"public String getLabel() {\n\t\t// just return item text until we get the grade levels straighted out for\n\t\t// comm_core\n\t\treturn this.itemText;\n\t\t/*\n\t\t * if (this.label == null) { if (this.getLevel() == 1) { this.label =\n\t\t * this.itemText; } else if (this.getIsLeafNode()) { this.label = \"[\" +\n\t\t * this.getGradeRange() + \"] \" + this.itemText; } else { this.label =\n\t\t * this.itemText + \" [\" + this.getGradeRange() + \"]\"; } } return this.label;\n\t\t */\n\t}",
"public String getLabelName() {\r\n if( this.jlblHolder != null )\r\n return this.jlblHolder.getText();\r\n else\r\n return label;\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn Integer.toString(this.mClassLabel);\n\t}",
"public L getLabel() {\n\t\tcheckRep();\n\t\treturn this.label;\n\t}",
"public String toString()\n {\n return label;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \": \\\"\" + getLabel() + \"\\\"\";\n\t}",
"DatasetLabel getLabel();",
"public java.lang.String getLabel() {\n\t\treturn this.label;\n\t}",
"public String getLabel() {\n\t\treturn this._label;\n\t}",
"protected <T> String getLabelText(FormElement<T> element) {\n\t\treturn labelRenderer.getLabelText(element);\n\t}",
"public String getLabel() {\r\n return layout.label;\r\n }",
"public Label getLabel() {\n\t\treturn label;\n\t}",
"public Label getLabel() {\n\t\treturn label;\n\t}",
"public double getLabel() {\n\t\treturn label;\n\t}",
"public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}",
"String nameLabel();",
"public Object getLabel() {\n if (this.label != null) {\n return this.label;\n }\n\n return this.getDefaultLabel();\n }",
"public Label getLabel() {\n return this.label;\n }",
"@Override\n\t\t\tpublic String getLabel() {\n\t\t\t\treturn null;\n\t\t\t}",
"public CharSequence getSelectedLabel()\n\t{\n\t\treturn _current.label.getText();\n\t}",
"public Label getLabel() {\n\t\treturn this.label;\n\t}",
"public String getLabel() {\n return TrackerRes.getString(\"ModelFunctionPanel.Label\"); //$NON-NLS-1$\n }",
"@Override\n\tpublic String getShortLabel()\n\t{\n\t\treturn label;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn (\"\"+label);\n\t}",
"com.microsoft.schemas.xrm._2011.contracts.Label getLabel();",
"public final Label getLabel() {\n return label;\n }",
"double getLabel();",
"@DISPID(32)\r\n\t// = 0x20. The runtime will prefer the VTID if present\r\n\t@VTID(37)\r\n\tjava.lang.String label();",
"@Nullable\n public CharSequence getLabel() {\n return mPrimaryLabel;\n }",
"public JLabel getLabel() {\n return label;\n }",
"java.lang.String getViewsLabel();",
"public int getLabel() {\n\t\treturn label;\n\t}",
"com.google.ads.googleads.v6.resources.Label getLabel();",
"@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getLabel() {\n\t\treturn null;\n\t}",
"@DISPID(74)\r\n\t// = 0x4a. The runtime will prefer the VTID if present\r\n\t@VTID(72)\r\n\tjava.lang.String label();",
"public JLabel getLabel() {\n return this.label;\n }"
] | [
"0.7866285",
"0.7862631",
"0.780615",
"0.78000176",
"0.76271594",
"0.755294",
"0.755294",
"0.755294",
"0.755294",
"0.7546993",
"0.7546993",
"0.745652",
"0.7416987",
"0.7279132",
"0.7279132",
"0.7279132",
"0.725332",
"0.7239711",
"0.7218232",
"0.7210016",
"0.72058916",
"0.7205661",
"0.7167244",
"0.7166085",
"0.71659577",
"0.71659577",
"0.7158093",
"0.7139879",
"0.7139879",
"0.7139879",
"0.71270454",
"0.711787",
"0.7116996",
"0.7116996",
"0.7116996",
"0.71122426",
"0.7098622",
"0.70898575",
"0.7075169",
"0.70556206",
"0.70543754",
"0.70528585",
"0.70261335",
"0.7017035",
"0.7017035",
"0.7017035",
"0.7017035",
"0.70153856",
"0.70153856",
"0.70153856",
"0.70153856",
"0.6982396",
"0.69798696",
"0.6978997",
"0.6967756",
"0.6965524",
"0.69547063",
"0.6946187",
"0.6940005",
"0.69391346",
"0.6937268",
"0.69293433",
"0.6917002",
"0.69112223",
"0.6908707",
"0.69023293",
"0.68711025",
"0.68628305",
"0.68424904",
"0.6840678",
"0.68343735",
"0.68115723",
"0.6808262",
"0.6807868",
"0.67967325",
"0.67967325",
"0.6788413",
"0.67773396",
"0.67584354",
"0.6753206",
"0.67357635",
"0.6689456",
"0.6685848",
"0.66592276",
"0.6654374",
"0.6637526",
"0.66370255",
"0.66241866",
"0.66030127",
"0.65854555",
"0.6579934",
"0.65577686",
"0.65536433",
"0.6552838",
"0.65434283",
"0.6537824",
"0.6533181",
"0.6533181",
"0.6533181",
"0.6514733",
"0.6499105"
] | 0.0 | -1 |
Return the resource locator for this item provider's resources. | @Override
public ResourceLocator getResourceLocator() {
return ICalEditPlugin.INSTANCE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public ResourceLocator getResourceLocator ()\n {\n return ( (IChildCreationExtender)adapterFactory ).getResourceLocator ();\n }",
"public ResourceLocator getResourceLocator() {\r\n\t\treturn MARTE_sbEditPlugin.INSTANCE;\r\n\t}",
"@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\t// TODO\n\t\t// Specialize this to return a resource locator for messages specific to this validator.\n\t\t// Ensure that you remove @generated or mark it @generated NOT\n\t\treturn super.getResourceLocator();\n\t}",
"@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\t// TODO\n\t\t// Specialize this to return a resource locator for messages specific to this validator.\n\t\t// Ensure that you remove @generated or mark it @generated NOT\n\t\treturn super.getResourceLocator();\n\t}",
"@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\t// TODO\n\t\t// Specialize this to return a resource locator for messages specific to this validator.\n\t\t// Ensure that you remove @generated or mark it @generated NOT\n\t\treturn super.getResourceLocator();\n\t}",
"@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\t// TODO\n\t\t// Specialize this to return a resource locator for messages specific to this validator.\n\t\t// Ensure that you remove @generated or mark it @generated NOT\n\t\treturn super.getResourceLocator();\n\t}",
"@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\t// TODO\r\n\t\t// Specialize this to return a resource locator for messages specific to this validator.\r\n\t\t// Ensure that you remove @generated or mark it @generated NOT\r\n\t\treturn super.getResourceLocator();\r\n\t}",
"public ResourceLocator getResourceLocator() {\r\n\t\treturn UmlDomainEditPlugin.INSTANCE;\r\n\t}",
"@Override\n\tpublic ResourceLocator getResourceLocator() {\n // TODO\n // Specialize this to return a resource locator for messages specific to this validator.\n // Ensure that you remove @generated or mark it @generated NOT\n return super.getResourceLocator();\n }",
"@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn QFDDPlugin.INSTANCE;\n\t}",
"public CwmResourceLocator createCwmResourceLocator();",
"List<String> getApplicationContextResourcePaths();",
"public List<ResourceMethod> getSubResourceLocators() {\n return subResourceLocators;\n }",
"@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\treturn IccEditPlugin.INSTANCE;\r\n\t}",
"java.lang.String getResourceUri();",
"@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn OpenAPIEditPlugin.INSTANCE;\n\t}",
"public interface IResourceSource\n{\n /**\n * Get resource location based on resource name.\n *\n * @param name Name of resource to be searched\n * @return URL of resource\n */\n public URL getResourceLocation( String name );\n\n /**\n * Get resource locations based on resource name.\n *\n * @param name Name of resources to be searched\n * @return Enumeration of URLs of resources\n */\n public Enumeration getResourceLocations( String name );\n\n /**\n * Get resource path this resource source references. Each entry including the last must be\n * terminated with a semicolon.\n *\n * @return Resource path this resource source references\n */\n public String getResourcePath();\n}",
"public String getResourceUri() {\n return resourceUri;\n }",
"public interface ResourceLocation\n{\n\t/**\n\t * Create a new location that represents this resource but with a\n\t * different extension.\n\t *\n\t * @param newExtension\n\t * @return\n\t */\n\tResourceLocation withExtension(String newExtension);\n\n\t/**\n\t * Resolve a path relative to this location.\n\t *\n\t * @param path\n\t * @return\n\t */\n\tResourceLocation resolve(String path);\n\n\t/**\n\t * Get the name of this resource.\n\t *\n\t * @return\n\t */\n\tString getName();\n}",
"IWrfResourceProvider getProvider();",
"public List<String> getResources() {\n return resources;\n }",
"ResourceLocation resolve(String path);",
"@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\treturn ModelEditPlugin.INSTANCE;\r\n\t}",
"public String getResourceLocation() {\n return resourceLocation;\n }",
"public Enumeration getResourceLocations( String name );",
"public Iterator getResources() {\n return this.resources.iterator();\n }",
"@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn ModelEditPlugin.INSTANCE;\n\t}",
"public List<IResource> getResources();",
"@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\treturn DataflowsystemEditPlugin.INSTANCE;\r\n\t}",
"@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn Y3853992EditPlugin.INSTANCE;\n\t}",
"public List<ResourceItem> resourceList() {\n return this.resourceList;\n }",
"public interface IProvider {\n String provide(String resourceAbsolutePath);\n}",
"@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn WafEditPlugin.INSTANCE;\n\t}",
"@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\treturn SpringConfigDslEditPlugin.INSTANCE;\r\n\t}",
"public String getResourceIds() {\n return resourceIds;\n }",
"@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn SampledefinitionEditPlugin.INSTANCE;\n\t}",
"protected IResource getResource() {\r\n \t\tIEditorInput input = fTextEditor.getEditorInput();\r\n \t\treturn (IResource) ((IAdaptable) input).getAdapter(IResource.class);\r\n \t}",
"public ArrayList<Resource> getResources(){\n\t\treturn _resources;\n\t}",
"@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn SchemaEditPlugin.INSTANCE;\n\t}",
"Collection<? extends Resource> getResources();",
"public IPath[] getAdditionalResources();",
"public URL getProviderURL () {\n return impl.getProviderURL ();\n }",
"public ResourceManager getResourceManager ()\n {\n return _rsrcmgr;\n }",
"@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn ContestEditPlugin.INSTANCE;\n\t}",
"public Vector getResourceIds()\n {\n return mResourceIds;\n }",
"public static interface ResourceProvider {\n\t\t\n\t\t/**\n\t\t * Obtain an input stream pointing to a resource. The argument resource\n\t\t * file name is equivalent to the path info of the argument request,\n\t\t * but provided separately for instant access. The argument request,\n\t\t * in turn, is there to provide access to request parameters, session\n\t\t * info, etc.\n\t\t * @param resName the resource file name\n\t\t * @param request the original HTTP request asking for the resource\n\t\t * @return\n\t\t */\n\t\tpublic abstract ResourceInputStream getResource(String resName, HttpServletRequest request);\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic Enumeration<URL> findResources(String name) throws IOException\n\t{\n\t\tList<URL> urlList = null;\n\t\tif (debugEnabled) log.debug(\"resource [\" + name + \"] not found locally, attempting remote lookup\");\n\t\ttry\n\t\t{\n\t\t\tLOCK.lock();\n\t\t\tList<String> locationsList = cache.getResourcesLocations(name);\n\t\t\tif (locationsList == null)\n\t\t\t{\n\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\tmap.put(\"name\", name);\n\t\t\t\tmap.put(\"multiple\", \"true\");\n\t\t\t\tJPPFResourceWrapper resource = loadResourceData(map, true);\n\t\t\t\tList<byte[]> dataList = (List<byte[]>)resource.getData(\"resource_list\");\n\t\t\t\tboolean found = (dataList != null) && !dataList.isEmpty();\n\t\t\t\tif (debugEnabled) log.debug(\"resource [\" + name + \"] \" + (found ? \"\" : \"not \") + \"found remotely\");\n\t\t\t\tif (found)\n\t\t\t\t{\n\t\t\t\t\tcache.registerResources(name, dataList);\n\t\t\t\t\turlList = new ArrayList<URL>();\n\t\t\t\t\tlocationsList = cache.getResourcesLocations(name);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (locationsList != null)\n\t\t\t{\n\t\t\t\tfor (String path: locationsList)\n\t\t\t\t{\n\t\t\t\t\tFile file = new File(path);\n\t\t\t\t\tif (urlList == null) urlList = new ArrayList<URL>();\n\t\t\t\t\turlList.add(file.toURI().toURL());\n\t\t\t\t}\n\t\t\t\tif (debugEnabled) log.debug(\"found the following URLs for resource [\" + name + \"] : \" + urlList);\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tif (debugEnabled) log.debug(\"resource [\" + name + \"] not found remotely\");\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tLOCK.unlock();\n\t\t}\n\t\treturn urlList == null ? null : new IteratorEnumeration<URL>(urlList.iterator());\n\t}",
"public interface ResourcePaths {\n String imageFolderPath();\n String imageResourcePath();\n String videoFolderPath();\n String videoResourcePath();\n}",
"String getResourceType();",
"public IResource getResource();",
"public List<PrimaryType> getResources() {\n return resources;\n }",
"@Override\n protected URL\n findResource\n (\n String rname\n )\n {\n LogMgr.getInstance().log\n (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n \"Resource name (\" + rname + \")\");\n\n if(pResources != null) {\n if(pResources.containsKey(rname)) {\n\tPath resourcePath = new Path(pResourceRootPath, rname);\n\n\tLogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource path (\" + resourcePath + \")\");\n\n\tFile resourceFile = resourcePath.toFile();\n\n\tLogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource file (\" + resourceFile + \") exists (\" + resourceFile.exists() + \")\");\n\n\tif(!resourceFile.exists())\n\t return null;\n\n\tURI resourceURI = resourceFile.toURI();\n\n\tLogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource URI (\" + resourceURI + \")\");\n\n\ttry {\n\t URL resourceURL = resourceURI.toURL();\n\n\t LogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource URL (\" + resourceURL + \")\");\n\n\t return resourceURL;\n\t}\n\tcatch(MalformedURLException ex) {\n\t LogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Warning, \n\t \"Error constructing URL from (\" + rname + \")!\");\n\t}\n }\n }\n\n return null;\n }",
"public List<Resource> getFileLocations() throws IOException;",
"ResourceType getResource();",
"public ICodeBaseEntry lookupResource(String resourceName) throws ResourceNotFoundException;",
"public abstract String getResUri();",
"protected String getIconUri() {\n return getResourceUrl(ComponentConstants.ICON_RESOURCE);\n }",
"public String getImageResourceIds(){\n return imageResourceIds;\n }",
"public List<DataGridResource> getResources() {\n\t\tif(resources != null) Collections.sort(resources);\n\t\treturn resources;\n\t}",
"public List<SecretMetadata> resources() {\n return resources;\n }",
"@Override\n\tpublic IResource getCorrespondingResource() {\n\t\treturn getUnderlyingResource();\n\t}",
"public RegTapResource[] getResources() {\n return resMap_.values().toArray( new RegTapResource[ 0 ] );\n }",
"@Override\r\n\tpublic ResourceLocator getResourceLocator() {\r\n\t\treturn ScenarioParticipantEditPlugin.INSTANCE;\r\n\t}",
"public ArrayList<VirtualMachineImageResource> getResources() {\n return this.resources;\n }",
"abstract public String getRingResourcesDir();",
"public ResourceSet getResourceSet()\n {\n return resourceSet;\n }",
"public List<ITranslationResource> getResources(){\n\t\treturn resources;\n\t}",
"List<Resource> resources();",
"public Class<? extends Resources> getResourcesClass() {\n\t\treturn Resources.class;\n\t}",
"public Map<ResourceId, ResourceConfig> getResourceMap() {\n return _resourceMap;\n }",
"public interface ResourceLoader {\n\n\t/** Pseudo URL prefix for loading from the class path: \"classpath:\" */\n\tpublic static final String CLASSPATH_URL_PREFIX = \"classpath:\";\n\n\t/** URL prefix for loading from the file system: \"file:\" */\n\tpublic static final String FILE_URL_PREFIX = \"file:\";\n\n\tResource getResource(String location);\n\n}",
"public String getResourceUrl() {\n return this.resourceUrl;\n }",
"public Resources resources() {\n return this.resources;\n }",
"@Override\n\tpublic ResourceLocator getResourceLocator() {\n\t\treturn SystemBehaviorEditPlugin.INSTANCE;\n\t}",
"public String getResourceUrl() {\n\t\treturn resourceUrl;\n\t}",
"public Collection<Resource> getResources() {\n return resourceRegistry.getEntries().values();\n }",
"public String getResourceurl() {\n return resourceurl;\n }",
"public String getResourceName();",
"public URL getResourceLocation( String name );",
"public abstract Map<AbstractResource, ResourceResolution> findApplicableResources(\n TreeLogger logger, PathPrefixSet pathPrefixSet);",
"public String getProvider() {\r\n return provider;\r\n }",
"public String getProvider() {\n return provider;\n }",
"IconUris iconUris();",
"private ResourceInputStream findResource(String resName, HttpServletRequest request) throws IOException {\n\t\tFile resFile = this.findFile(resName);\n\t\tif (resFile != null)\n\t\t\treturn new ResourceInputStream(resFile);\n\t\t\n\t\t//\ttry resource providers (copy for thread safety, as we don't want concurrent modification exceptions)\n\t\tLinkedList rpList = new LinkedList(this.resourceProviders);\n\t\twhile (rpList.size() != 0) {\n\t\t\tResourceProvider rp = ((ResourceProvider) rpList.removeFirst());\n\t\t\tResourceInputStream ris = rp.getResource(resName, request);\n\t\t\tif (ris != null)\n\t\t\t\treturn ris;\n\t\t}\n\t\t\n\t\t//\tnothing we can do about this one\n\t\treturn null;\n\t}",
"protected Enumeration<URL> convertedFindResources(String name) throws IOException {\n ServiceReference reference = bundle.getBundleContext().getServiceReference(PackageAdmin.class.getName());\n PackageAdmin packageAdmin = (PackageAdmin) bundle.getBundleContext().getService(reference);\n try {\n List<URL> resources = findResources(packageAdmin, bundle, name, true);\n if (isMetaInfResource(name)) {\n LinkedHashSet<Bundle> wiredBundles = getWiredBundles();\n for (Bundle wiredBundle : wiredBundles) {\n resources.addAll(findResources(packageAdmin, wiredBundle, name, true));\n }\n }\n return Collections.enumeration(resources);\n } catch (Exception e) {\n throw (IOException) new IOException(\"Error discovering resources: \" + e).initCause(e);\n } finally {\n bundle.getBundleContext().ungetService(reference);\n }\n }",
"String getResourceName();",
"public String getResourceId();",
"public abstract IResource getResource();",
"protected Resource getResource() {\n return resource;\n }",
"public static Resources getSharedResources() {\n return sharedResource;\n }",
"public interface IResource {\n\t// TODO: Have priorities for resources either here or implemented in IResourceView\n\n\n\tpublic String getName();\n\t\n\tpublic IUniformLocation getLocation(); // public IStorageLocation getLocation() ?\n\t\n\tpublic IResourceType getType();\n}",
"public String getResourcePath () {\n return resourcePath;\n }",
"@Nonnull\n public Optional<ResourcePath> getExposedUri();",
"public Resource[] getResourceArray() {\n return resource;\n }",
"public String getProviderUrl() {\r\n return providerUrl;\r\n }",
"public String getProvider() {\n return mProvider;\n }",
"protected ResourceReference getItem()\n\t{\n\t\treturn ITEM;\n\t}",
"private static Hashtable<? super String, Object> getProviderResource(Object obj) throws NamingException {\n if (obj == null) {\n return (new Hashtable<>(1));\n }\n synchronized (propertiesCache) {\n Class<?> c = obj.getClass();\n\n Hashtable<? super String, Object> props = propertiesCache.get(c);\n if (props != null) {\n return props;\n }\n props = new Properties();\n\n InputStream istream = helper.getResourceAsStream(c, PROVIDER_RESOURCE_FILE_NAME);\n\n if (istream != null) {\n try {\n ((Properties) props).load(istream);\n } catch (IOException e) {\n NamingException ne = new ConfigurationException(\n \"Error reading provider resource file for \" + c);\n ne.setRootCause(e);\n throw ne;\n }\n }\n propertiesCache.put(c, props);\n return props;\n }\n }",
"@Override\n public Set<Resource> getRegisteredResources(DiscreteResourceId parent) {\n return null;\n }",
"public String getResourcePath () {\n return resourcePath;\n }"
] | [
"0.6168166",
"0.5996649",
"0.58934015",
"0.58934015",
"0.58934015",
"0.58934015",
"0.58662295",
"0.5846616",
"0.56440914",
"0.56411844",
"0.5633014",
"0.562223",
"0.5604277",
"0.55716634",
"0.54827195",
"0.54813886",
"0.5466805",
"0.5464909",
"0.5442891",
"0.54349494",
"0.53931206",
"0.53714985",
"0.5365023",
"0.5359322",
"0.5355213",
"0.5340789",
"0.53188056",
"0.53124774",
"0.52779603",
"0.52528644",
"0.525011",
"0.5243274",
"0.5233986",
"0.52309185",
"0.5227583",
"0.5191898",
"0.5169107",
"0.51531404",
"0.51525027",
"0.5150507",
"0.5139649",
"0.5113031",
"0.5080899",
"0.5071681",
"0.50658804",
"0.50613797",
"0.5061185",
"0.5046597",
"0.50419134",
"0.503584",
"0.5021518",
"0.5016796",
"0.50079983",
"0.50077754",
"0.4991826",
"0.49906018",
"0.49875325",
"0.497292",
"0.4967769",
"0.49646798",
"0.4950276",
"0.49414024",
"0.49313644",
"0.49303105",
"0.49221128",
"0.4920921",
"0.4920032",
"0.4917315",
"0.49074528",
"0.49067676",
"0.49020007",
"0.4894933",
"0.48868397",
"0.4877167",
"0.48725542",
"0.48690048",
"0.48601165",
"0.48579767",
"0.48509198",
"0.48485032",
"0.4835323",
"0.48307842",
"0.48274502",
"0.48144007",
"0.4806358",
"0.48029226",
"0.47914064",
"0.4788958",
"0.47832847",
"0.4782001",
"0.47813714",
"0.4777143",
"0.47753468",
"0.47709373",
"0.47659022",
"0.47651342",
"0.4762631",
"0.47538126",
"0.4742279",
"0.47380292"
] | 0.5760625 | 8 |
Default implementation for the Locatable Service interface. | public void init() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LocationService(String name) {\n super(name);\n }",
"LocService getService() {\n return LocService.this;\n }",
"public interface LocativeService {\n public List<Locative> getAll();\n public Locative add(Locative locative);\n public Locative update(Locative locative);\n public Locative findById(int id);\n public void delete(int id);\n /*public List<Locative> findByProperty(Property property);\n public List<Locative> findByCity(City city);*/\n public double garanty(int id);\n // public List<Locative> getLocativeNotInContrat();\n public int countLocative();\n public List<Locative> export(int cpt, HttpServletRequest request);\n}",
"private LocationService() {\n }",
"public interface LocationServiceManager {\n\t/**\n\t * Starts the location service.\n\t * \n\t * @return <code>true</code> if the service has been correctly started\n\t */\n\tpublic boolean startLocationService();\n\n\t/**\n\t * Stops the location service.\n\t * \n\t * @return always <code>false</code>\n\t */\n\tpublic boolean stopLocationService();\n\n\t/**\n\t * Checks whether the service is running or is stopped\n\t * \n\t * @return <code>true</code> if the service is running <code>false</code>\n\t * otherwise\n\t */\n\tpublic boolean isServiceRunning();\n\n}",
"public LocationService() {\r\n\t\tSettings settings = Settings.getInstance();\r\n\t\tthis.location = settings.getLocation();\r\n\t\tthis.ebAddress = settings.getEbAddress();\r\n\t\tthis.ebPort = settings.getEbPort();\r\n\t\tloggedIn = false;\r\n\t\tobservers = new ArrayList<IObserver>();\r\n\t\tdbAdapter = InformationStorageFactory.getStorageAdapter();\r\n\t}",
"protected SimpleRichLocation() {}",
"public VendorLocationsDAOImpl() {\n\t\tsuper();\n\t}",
"@Override\n protected void initLocation() {\n }",
"public MyLocation() {}",
"LocationsClient getLocations();",
"private LocationContract() {}",
"private ServiceLocator(){}",
"public void getLocationInfo() {\n startLocationService();\n }",
"@GetMapping(\"/locations\")\n public List<Location> getLocations(){\n return service.getAll();\n }",
"public LocationBuilder() {\n super(\"locations\");\n }",
"public Location() {\n\t}",
"public ArrayList<LocationDetail> getLocations() throws LocationException;",
"public interface CustomerStatusService extends GenericLookupService<CustomerStatus, Long> {\n}",
"public interface LocationClient {\n\n /**\n * @desc This method will fetch location details by list of code.\n * @param actorRef Actor reference.\n * @param codeList List of location code.\n * @return List of location.\n */\n List<Location> getLocationsByCodes(ActorRef actorRef, List<String> codeList);\n\n /**\n * @desc This method will fetch location details by id.\n * @param actorRef Actor reference.\n * @param id Location id.\n * @return Location details.\n */\n Location getLocationById(ActorRef actorRef, String id);\n\n /**\n * @desc This method will fetch location details by code.\n * @param actorRef Actor reference.\n * @param locationCode location code.\n * @return Location details.\n */\n Location getLocationByCode(ActorRef actorRef, String locationCode);\n\n /**\n * @desc This method will create Location and returns the response.\n * @param actorRef Actor reference.\n * @param location Location details.\n * @return Location id.\n */\n String createLocation(ActorRef actorRef, UpsertLocationRequest location);\n\n /**\n * @desc This method will update location details.\n * @param actorRef Actor reference.\n * @param location Location details.\n */\n void updateLocation(ActorRef actorRef, UpsertLocationRequest location);\n}",
"private void getLocation() {\n\n }",
"private ServiceLocator() {\r\n\t\t\r\n\t}",
"@Override\n public ArrayList<ICatLocDetail> getLocalities() {\n return localities;\n }",
"@Override\n public Iterable<Location> listLocations() {\n return ImmutableSet.<Location>of();\n }",
"public void getLocation(){\n }",
"public Location() {\n }",
"public interface LocationInteractor<T> {\n void queryLocation();\n\n void queryLateKnownLocation();\n\n void register(T t);\n\n\n void unRegister();\n\n}",
"@Override\n public String getLocation() {\n return location;\n }",
"public interface LocationProvider {\r\n\t\r\n\t/**\r\n\t * Returns the current location.\r\n\t * \r\n\t * @return the current location\r\n\t */\r\n\tpublic Location getCurrentLocation();\r\n\t\r\n\t/**\r\n\t * Returns the previous locations, not including the current location.\r\n\t * \r\n\t * @return the previous locations\r\n\t */\r\n\tpublic List<Location> getPreviousLocations();\r\n\t\r\n\t/**\r\n\t * Tells if this location manager is prepared for the first speed checks, i.e., if it has received at\r\n\t * least two location updates.\r\n\t * \r\n\t * @return true if sufficient locations are available\r\n\t */\r\n\tpublic boolean isReady();\r\n\r\n}",
"public Location location()\n {\n return myLoc;\n }",
"public abstract Location[] retrieveLocation();",
"public interface ILocationResponder\n{\n\tStartLocationResponderStatus startLocationResponder(Context ctx);\n\tEndLocationResponderStatus endLocationResponder(Context ctx);\n\n\tvoid setLocationPresenter(ILocationPresenter locationPresenter);\n\tILocationPresenter getLocationPresenter();\n}",
"public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsResponse getOPSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsRequest getOPSLocationsRequest\n )\n ;",
"@Service\r\npublic interface LocationService {\r\n\r\n String locationSet(Location location);\r\n\r\n String locationGet(String belong_stu_id);\r\n}",
"public Location() {\r\n \r\n }",
"Collection<L> getLocations ();",
"public abstract String getLocation();",
"public LOVLocationViewRowImpl() {\n }",
"public RiftsawServiceLocator() {\n }",
"@Override\n\tpublic List<SourceLocation> getLocations() {\n\t\treturn null;\n\t}",
"public interface LocationHandler {\n void handleLocation(Location location);\n}",
"@RemoteServiceRelativePath(\"location\")\r\npublic interface LocationService extends RemoteService {\r\n\t/**\r\n\t * Utility class for simplifying access to the instance of async service.\r\n\t */\r\n\tpublic static class Util {\r\n\t\tprivate static LocationServiceAsync instance;\r\n\t\tpublic static LocationServiceAsync getInstance(){\r\n\t\t\tif (instance == null) {\r\n\t\t\t\tinstance = GWT.create(LocationService.class);\r\n\t\t\t}\r\n\t\t\treturn instance;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\tpublic ResponseLocationDTO location();\r\n\t\r\n\t//Obtain location/s\r\n\tpublic List<LocationDTO> getLocations(String id);\r\n\tpublic List<LocationDTO> getLocations(LocationDTO initialLocation);\r\n\t\r\n\t//Set the the current location from geoLocalization\r\n\tpublic void setLat(String id, String lat);\r\n\tpublic void setLng(String id, String Lng);\r\n\t\r\n\t\r\n\t//Delete a location from MyPlaces\r\n\tpublic void deleteLocation(String idUser, List<LocationDTO> loc);\r\n\t\r\n\t//Add a new location\r\n\tpublic LocationDTO addLocation(String city, String userId);\r\n\t\r\n\t\r\n}",
"public interface Location {\n\t/**\n\t * Returns the current path such as <code>/app/settings</code>.\n\t * \n\t * @return Path\n\t */\n\tString getPath();\n}",
"public interface LookupManager {\n\n /**\n * Look up a service instance by the service name.\n *\n * It selects one instance from a set of instances for a given service based on round robin strategy.\n *\n * @param serviceName The Service name.\n * @return The ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance lookupInstance(String serviceName);\n\n /**\n * Look up a list of service instances for a given service.\n *\n * It returns the complete list of the service instances.\n *\n * @param serviceName The Service name.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> lookupInstances(String serviceName);\n\n /**\n * Query for a service instance based on the service name and some filtering criteria on the service metadata.\n *\n * It returns a service instance from the service instance list based on round robin selection strategy.\n * The ServiceInstance list is of the specified Service.\n *\n * @param serviceName The Service name.\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance queryInstanceByName(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Query for all the ServiceInstances of the specified Service, which satisfy the query criteria on the service metadata.\n *\n * It returns all ServiceInstances of specified Service that satisfy the ServiceInstanceQuery.\n * The ServiceInstance list is of the specified Service.\n *\n * @param serviceName The Service name.\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> queryInstancesByName(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Query for one the ServiceInstances which satisfy the query criteria on the service metadata.\n *\n * It returns a service instance from the service instance list based on round robin selection strategy.\n * The ServiceInstance list have different Services.\n *\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public ServiceInstance queryInstanceByKey(ServiceInstanceQuery query);\n\n /**\n * Query for all the ServiceInstances which satisfy the query criteria on the service metadata.\n *\n * It returns all ServiceInstances of different Services which satisfy the query criteria.\n *\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> queryInstancesByKey(ServiceInstanceQuery query);\n\n /**\n * Get a ServiceInstance.\n *\n * It returns a ServiceInstances of the Service including the ServiceInstance of OperationalStatus DOWN.\n *\n * @param serviceName\n * the service name.\n * @param instanceId\n * the istanceId\n * @return\n * the ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance getInstance(String serviceName, String instanceId);\n\n /**\n * Get all ServiceInstance List of the target Service, including the DOWN ServiceInstance.\n *\n * It will return all ServiceInstances of the Service including the ServiceInstance of OperationalStatus DOWN.\n *\n * @param serviceName\n * the service name.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances(String serviceName);\n\n /**\n * Get all ServiceInstances of the specified Service, including the DOWN ServiceIntance,\n * which satisfy the query criteria on the service metadata.\n *\n * It filter all ServiceInstances of the specified Service including the ServiceInstance of OperationalStatus DOWN,\n * against the ServiceInstanceQuery.\n *\n * @param serviceName\n * the Service name.\n * @param query\n * the ServiceInstanceQuery.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Get all the ServiceInstances, including the DOWN ServiceInstance, which satisfy the query criteria on the service metadata.\n *\n * It filters all ServiceInstances of different Services, including the DOWN ServiceInstance,\n * which satisfy the query criteria.\n *\n * @param query\n * the ServiceInstanceQuery criteria.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstancesByKey(ServiceInstanceQuery query);\n\n /**\n * Get the all ServiceInstances in the ServiceDirectory including the DOWN ServiceInstance.\n *\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances();\n\n /**\n * Add a NotificationHandler to the Service.\n *\n * This method can check the duplicate NotificationHandler for the serviceName, if the NotificationHandler\n * already exists in the serviceName, do nothing.\n *\n * Throw IllegalArgumentException if serviceName or handler is null.\n *\n * @param serviceName\n * the service name.\n * @param handler\n * the NotificationHandler for the service.\n * @throws ServiceException\n */\n public void addNotificationHandler(String serviceName, NotificationHandler handler);\n\n /**\n * Remove the NotificationHandler from the Service.\n *\n * Throw IllegalArgumentException if serviceName or handler is null.\n *\n * @param serviceName\n * the service name.\n * @param handler\n * the NotificationHandler for the service.\n * @throws ServiceException\n */\n public void removeNotificationHandler(String serviceName, NotificationHandler handler) ;\n}",
"public LocationService getService()\n {\n return LocationService.this;\n }",
"public abstract LocationDto defaultLocation(ScheduleDto schedule);",
"@Override\n public geo_location getLocation() {\n return location;\n }",
"public boolean startLocationService();",
"@Override\n void start(Collection<? extends Location> locations);",
"interface Blank extends WithLocation {\n }",
"interface Blank extends WithLocation {\n }",
"public interface Locateable extends GeoElementND {\n\t/**\n\t * @param p\n\t * start point\n\t * @throws CircularDefinitionException\n\t * in case the start point depends on this object\n\t */\n\tpublic void setStartPoint(GeoPointND p) throws CircularDefinitionException;\n\n\t/**\n\t * Unregisters start point\n\t * \n\t * @param p\n\t * start point to remove\n\t */\n\tdefault void removeStartPoint(GeoPointND p) {\n\t\tif (p == getStartPoint()) {\n\t\t\tinitStartPoint(p.copy(), 0);\n\t\t}\n\t}\n\n\t/**\n\t * Returns (first) start point\n\t * \n\t * @return start point\n\t */\n\tpublic GeoPointND getStartPoint();\n\n\t/**\n\t * @param p\n\t * start point\n\t * @param number\n\t * index (GeoImage has three startPoints (i.e. corners))\n\t * @throws CircularDefinitionException\n\t * in case the start point depends on this object\n\t */\n\tpublic void setStartPoint(GeoPointND p, int number)\n\t\t\tthrows CircularDefinitionException;\n\n\tdefault int getStartPointCount() {\n\t\treturn 1;\n\t}\n\n\tdefault GeoElementND getStartPoint(int idx) {\n\t\treturn getStartPoint();\n\t}\n\n\t/**\n\t * Sets the startpoint without performing any checks. This is needed for\n\t * macros.\n\t * \n\t * @param p\n\t * start point\n\t * @param number\n\t * index\n\t */\n\tpublic void initStartPoint(GeoPointND p, int number);\n\n\t/**\n\t * @return true iff the location is absolute\n\t */\n\tpublic boolean hasStaticLocation();\n\n\t/**\n\t * @return true iff object is always fixed\n\t */\n\tpublic boolean isAlwaysFixed();\n\n\t/**\n\t * Use this method to tell the locateable that its startpoint will be set\n\t * soon. (This is needed during XML parsing, as startpoints are processed at\n\t * the end of a construction, @see geogebra.io.MyXMLHandler)\n\t */\n\tdefault void setWaitForStartPoint() {\n\t\t// only relevant for vectors\n\t}\n\n\t/**\n\t * Update that does not change value, but only location\n\t */\n\tpublic void updateLocation();\n\n}",
"@Test\n\tpublic void listLocations(){\n\t\tList<Location> lists = locationService.queryLoctionsByLat(29.8679775, 121.5450105);\n\t\t//System.out.println(lists.size()) ;\n\t\tfor(Location loc : lists){\n\t\t\tSystem.out.println(loc.getAddress_cn());\n\t\t}\n\t}",
"@Override\n public List<String> getCmsLocations() {\n return Collections.emptyList();\n }",
"public LocService(String modelPath, String serializedPath) throws LocationException {\n // init the tt models\n try {\n ttLocal = new TTSessionLocal(true, true, true, modelPath, serializedPath);\n } catch (IOException | ClassNotFoundException e) {\n LOGGER.severe(\"Unable to read travel-time auxiliary data.\");\n e.printStackTrace();\n throw new LocationException(\"Unable to read travel-time auxiliary data.\");\n }\n\n // Read the Locator auxiliary files.\n try {\n locLocal = new LocSessionLocal(modelPath, serializedPath);\n } catch (IOException | ClassNotFoundException e) {\n LOGGER.severe(\"Unable to read Locator auxiliary data.\");\n e.printStackTrace();\n throw new LocationException(\"Unable to read Locator auxiliary data.\");\n }\n }",
"protected static void setServiceLocation(URI serviceLocation) {\n Program.serviceLocation = serviceLocation;\n }",
"public RemoteFacadeServiceLocator() {\r\n }",
"LocationsResponse callLocationGetRESTCall(String methodName,\n String urlTemplate,\n Object... params) throws PropertyServerException\n {\n return (LocationsResponse)this.callGetRESTCall(methodName, LocationsResponse.class, urlTemplate, params);\n }",
"public List<LocationInfo> getAllLocation() {\n return allLocation;\n }",
"@RequestMapping(value=\"/locations\", method=RequestMethod.GET)\n\t@ResponseBody\n\tpublic Iterable<Location> getLocations(){\n\t\treturn lr.findAll();\n\t}",
"public String[] provides() { return new String[] { Location.TYPE }; }",
"public org.davic.net.Locator getServiceLocator();",
"public abstract ServiceLocator find(String name);",
"public QueryLocusLocusSetter() {\n super(\"org.tair.db.locusdetail\", 2147483647);\n }",
"public interface ServiceandLocListner {\n public void failedtoConnect();\n public void GetServiceListFailed(String msg);\n\n public void GetServiceList(List<Services> servicesList);\n\n public void GetLocationList(List<PlaceLoc> placeLocList);\n\n public void GetLocationListFailed(String msg);\n\n public void AddLocationSuccess();\n\n public void AddLocationFailed(String msg);\n public void DeleteLocationSuccess();\n\n public void DeleteLocationFailed(String msg);\n public void AddServiceSuccess();\n\n public void AddServiceFailed(String msg);\n\n public void DeleteServiceSuccess();\n\n public void DeleteServiceFailed(String msg);\n\n\n\n}",
"public ProductLocation() {\n }",
"@Override\n\tpublic List<Historic_siteVO> MainLocation() throws Exception {\n\t\treturn dao.MainLocation();\n\t}",
"public interface ILocator {\n\n\tpublic void addName(IName name);\n\tpublic void removeName(IName name);\n\tpublic Iterator<IName> getAllNames();\n\t\n}",
"public QueryLociSetter() {\n super(\"org.tair.db.locusdetail\", 2147483647);\n }",
"public int getLocation()\r\n {\n }",
"public interface LocationServicesListener {\r\n\r\n /**\r\n * Callback on device location turned ON\r\n */\r\n void onSuccess();\r\n }",
"protected LocationGroup() {\n }",
"public ArrayList getLocations()\r\n\t\t{\r\n\t\t\treturn locations;\r\n\t\t}",
"@Override\n\tpublic String getLocation() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getLocation() {\n\t\treturn null;\n\t}",
"protected Location getLocation()\n {\n return location;\n }",
"protected Location getLocation()\n {\n return location;\n }",
"@Override\n\tdefault Optional<Locations> findById(Integer id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getLocation() {\n\t\treturn location;\n\t}",
"public interface LookUpService1 {\n public void say();\n}",
"public static MapLocation myLocation() {\n return RC.getLocation();\n }",
"LocationType getLocationType() {\r\n\t\treturn type;\r\n\t}",
"public interface IpLocator {\r\n\r\n\t/**\r\n\t * Other than the getters & setters, this is the only method visible to the\r\n\t * outside world\r\n\t * \r\n\t * @param ip\r\n\t * The ip address to be located\r\n\t * @return IPLocator instance\r\n\t * @throws IOException\r\n\t * in case of any error/exception\r\n\t */\r\n\tpublic IpLocation locate(String ip) throws IOException;\r\n\r\n}",
"public LocationData()\n {\n }",
"public interface ITbPromoLocationService {\n Iterable<TbPromoLocation> listAllTbPromoLocations();\n\n TbPromoLocation getTbPromoLocationById(Long id);\n\n TbPromoLocation saveTbPromoLocation(TbPromoLocation TbPromoLocation);\n\n void deleteTbPromoLocation(Long id);\n\n // 이하 추가\n void deleteTbPromoLocation2(Long id);\n\n// List<?> getPromoLocationCds(Long mbCd);\n}",
"public abstract List<LocationDto> viewAll();",
"@Override\n public void onLocationAvailability(LocationAvailability availability) {\n }",
"public String getLocationName(){\n return myLoc;\n }",
"public interface LocalHandle {\n\n /**\n * 获取城市名称\n *\n * @param city\n */\n public void getCity(String city);\n}",
"private GuidoLocationListener() {}",
"public LookupOperationContext( CoreSession session )\n {\n super( session );\n\n if ( session != null )\n {\n setInterceptors( session.getDirectoryService().getInterceptors( OperationEnum.LOOKUP ) );\n }\n }",
"@RequestMapping(value = \"/location-updates\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<List<LocationUpdate>> getAllLocationUpdates(Pageable pageable)\n throws URISyntaxException {\n log.debug(\"REST request to get a page of LocationUpdates\");\n Page<LocationUpdate> page = locationUpdateRepository.findAll(pageable); \n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/location-updates\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"public Location(Context context){\n//\t\tthis.context = context;\n\t\tinit(context);\n\t}",
"@Override\n\tpublic Location<Vector2> newLocation() {\n\t\treturn null;\n\t}",
"public TaskCatagoryPageLocators() {\n }",
"public interface IdbLocation {\n\n Location createLocation(int _id, String _name); //throws DBException;\n Location setLocation(int _id, String _name);\n boolean deleteLocation(int _id);\n\n static Location getLocation(int _id) {\n return new Location();\n }\n\n static HashMap<Integer, Location> getLocations() { // <id_Location, Location object itself>\n return new HashMap<Integer, Location>();\n }\n \n}",
"private HelperLocation() {}",
"Map<UUID, Optional<Location>> getAllCurrentLocations();",
"Location createLocation();",
"Location createLocation();",
"Location createLocation();"
] | [
"0.6663774",
"0.6575904",
"0.63524884",
"0.6333118",
"0.6292695",
"0.62860775",
"0.62397325",
"0.61685383",
"0.61359906",
"0.60618687",
"0.6009254",
"0.59766734",
"0.5940879",
"0.5919353",
"0.5892152",
"0.5791034",
"0.5772796",
"0.57422185",
"0.57357955",
"0.5733061",
"0.5725398",
"0.5720363",
"0.57010275",
"0.5686646",
"0.56855947",
"0.56738687",
"0.5664712",
"0.56605697",
"0.56335545",
"0.5632118",
"0.5622123",
"0.5616184",
"0.5613519",
"0.5611888",
"0.5604914",
"0.55994844",
"0.55928844",
"0.55924594",
"0.5582328",
"0.55511963",
"0.5538061",
"0.5535102",
"0.55343395",
"0.55240035",
"0.5523252",
"0.5514546",
"0.54974455",
"0.5493358",
"0.5485658",
"0.5484572",
"0.5484572",
"0.5484128",
"0.54764396",
"0.5463753",
"0.5463505",
"0.5460617",
"0.545659",
"0.54469514",
"0.54330176",
"0.5415476",
"0.5411216",
"0.53943706",
"0.53932446",
"0.53824407",
"0.53674376",
"0.5366832",
"0.5366687",
"0.5355932",
"0.5349247",
"0.53459847",
"0.53253424",
"0.5322622",
"0.5319866",
"0.5318492",
"0.5318492",
"0.53147733",
"0.53147733",
"0.53099823",
"0.530542",
"0.53031623",
"0.5299263",
"0.5297536",
"0.5295269",
"0.5293905",
"0.5291421",
"0.5290523",
"0.52667433",
"0.52651525",
"0.52612835",
"0.52603716",
"0.52594405",
"0.52580774",
"0.5257419",
"0.5256527",
"0.5242467",
"0.52310485",
"0.52283394",
"0.522139",
"0.5219241",
"0.5219241",
"0.5219241"
] | 0.0 | -1 |
Default implementation for the Locatable Service interface. | public void destroy() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LocationService(String name) {\n super(name);\n }",
"LocService getService() {\n return LocService.this;\n }",
"public interface LocativeService {\n public List<Locative> getAll();\n public Locative add(Locative locative);\n public Locative update(Locative locative);\n public Locative findById(int id);\n public void delete(int id);\n /*public List<Locative> findByProperty(Property property);\n public List<Locative> findByCity(City city);*/\n public double garanty(int id);\n // public List<Locative> getLocativeNotInContrat();\n public int countLocative();\n public List<Locative> export(int cpt, HttpServletRequest request);\n}",
"private LocationService() {\n }",
"public interface LocationServiceManager {\n\t/**\n\t * Starts the location service.\n\t * \n\t * @return <code>true</code> if the service has been correctly started\n\t */\n\tpublic boolean startLocationService();\n\n\t/**\n\t * Stops the location service.\n\t * \n\t * @return always <code>false</code>\n\t */\n\tpublic boolean stopLocationService();\n\n\t/**\n\t * Checks whether the service is running or is stopped\n\t * \n\t * @return <code>true</code> if the service is running <code>false</code>\n\t * otherwise\n\t */\n\tpublic boolean isServiceRunning();\n\n}",
"public LocationService() {\r\n\t\tSettings settings = Settings.getInstance();\r\n\t\tthis.location = settings.getLocation();\r\n\t\tthis.ebAddress = settings.getEbAddress();\r\n\t\tthis.ebPort = settings.getEbPort();\r\n\t\tloggedIn = false;\r\n\t\tobservers = new ArrayList<IObserver>();\r\n\t\tdbAdapter = InformationStorageFactory.getStorageAdapter();\r\n\t}",
"protected SimpleRichLocation() {}",
"public VendorLocationsDAOImpl() {\n\t\tsuper();\n\t}",
"@Override\n protected void initLocation() {\n }",
"public MyLocation() {}",
"LocationsClient getLocations();",
"private LocationContract() {}",
"private ServiceLocator(){}",
"public void getLocationInfo() {\n startLocationService();\n }",
"@GetMapping(\"/locations\")\n public List<Location> getLocations(){\n return service.getAll();\n }",
"public LocationBuilder() {\n super(\"locations\");\n }",
"public Location() {\n\t}",
"public ArrayList<LocationDetail> getLocations() throws LocationException;",
"public interface CustomerStatusService extends GenericLookupService<CustomerStatus, Long> {\n}",
"public interface LocationClient {\n\n /**\n * @desc This method will fetch location details by list of code.\n * @param actorRef Actor reference.\n * @param codeList List of location code.\n * @return List of location.\n */\n List<Location> getLocationsByCodes(ActorRef actorRef, List<String> codeList);\n\n /**\n * @desc This method will fetch location details by id.\n * @param actorRef Actor reference.\n * @param id Location id.\n * @return Location details.\n */\n Location getLocationById(ActorRef actorRef, String id);\n\n /**\n * @desc This method will fetch location details by code.\n * @param actorRef Actor reference.\n * @param locationCode location code.\n * @return Location details.\n */\n Location getLocationByCode(ActorRef actorRef, String locationCode);\n\n /**\n * @desc This method will create Location and returns the response.\n * @param actorRef Actor reference.\n * @param location Location details.\n * @return Location id.\n */\n String createLocation(ActorRef actorRef, UpsertLocationRequest location);\n\n /**\n * @desc This method will update location details.\n * @param actorRef Actor reference.\n * @param location Location details.\n */\n void updateLocation(ActorRef actorRef, UpsertLocationRequest location);\n}",
"private void getLocation() {\n\n }",
"private ServiceLocator() {\r\n\t\t\r\n\t}",
"@Override\n public ArrayList<ICatLocDetail> getLocalities() {\n return localities;\n }",
"@Override\n public Iterable<Location> listLocations() {\n return ImmutableSet.<Location>of();\n }",
"public void getLocation(){\n }",
"public Location() {\n }",
"public interface LocationInteractor<T> {\n void queryLocation();\n\n void queryLateKnownLocation();\n\n void register(T t);\n\n\n void unRegister();\n\n}",
"@Override\n public String getLocation() {\n return location;\n }",
"public interface LocationProvider {\r\n\t\r\n\t/**\r\n\t * Returns the current location.\r\n\t * \r\n\t * @return the current location\r\n\t */\r\n\tpublic Location getCurrentLocation();\r\n\t\r\n\t/**\r\n\t * Returns the previous locations, not including the current location.\r\n\t * \r\n\t * @return the previous locations\r\n\t */\r\n\tpublic List<Location> getPreviousLocations();\r\n\t\r\n\t/**\r\n\t * Tells if this location manager is prepared for the first speed checks, i.e., if it has received at\r\n\t * least two location updates.\r\n\t * \r\n\t * @return true if sufficient locations are available\r\n\t */\r\n\tpublic boolean isReady();\r\n\r\n}",
"public Location location()\n {\n return myLoc;\n }",
"public abstract Location[] retrieveLocation();",
"public interface ILocationResponder\n{\n\tStartLocationResponderStatus startLocationResponder(Context ctx);\n\tEndLocationResponderStatus endLocationResponder(Context ctx);\n\n\tvoid setLocationPresenter(ILocationPresenter locationPresenter);\n\tILocationPresenter getLocationPresenter();\n}",
"public nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsResponse getOPSLocations\n (\n nl.tudelft.ewi.st.atlantis.tudelft.v1.services.GetOPSLocationsRequest getOPSLocationsRequest\n )\n ;",
"@Service\r\npublic interface LocationService {\r\n\r\n String locationSet(Location location);\r\n\r\n String locationGet(String belong_stu_id);\r\n}",
"public Location() {\r\n \r\n }",
"Collection<L> getLocations ();",
"public abstract String getLocation();",
"public LOVLocationViewRowImpl() {\n }",
"public RiftsawServiceLocator() {\n }",
"@Override\n\tpublic List<SourceLocation> getLocations() {\n\t\treturn null;\n\t}",
"public interface LocationHandler {\n void handleLocation(Location location);\n}",
"@RemoteServiceRelativePath(\"location\")\r\npublic interface LocationService extends RemoteService {\r\n\t/**\r\n\t * Utility class for simplifying access to the instance of async service.\r\n\t */\r\n\tpublic static class Util {\r\n\t\tprivate static LocationServiceAsync instance;\r\n\t\tpublic static LocationServiceAsync getInstance(){\r\n\t\t\tif (instance == null) {\r\n\t\t\t\tinstance = GWT.create(LocationService.class);\r\n\t\t\t}\r\n\t\t\treturn instance;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\tpublic ResponseLocationDTO location();\r\n\t\r\n\t//Obtain location/s\r\n\tpublic List<LocationDTO> getLocations(String id);\r\n\tpublic List<LocationDTO> getLocations(LocationDTO initialLocation);\r\n\t\r\n\t//Set the the current location from geoLocalization\r\n\tpublic void setLat(String id, String lat);\r\n\tpublic void setLng(String id, String Lng);\r\n\t\r\n\t\r\n\t//Delete a location from MyPlaces\r\n\tpublic void deleteLocation(String idUser, List<LocationDTO> loc);\r\n\t\r\n\t//Add a new location\r\n\tpublic LocationDTO addLocation(String city, String userId);\r\n\t\r\n\t\r\n}",
"public interface Location {\n\t/**\n\t * Returns the current path such as <code>/app/settings</code>.\n\t * \n\t * @return Path\n\t */\n\tString getPath();\n}",
"public interface LookupManager {\n\n /**\n * Look up a service instance by the service name.\n *\n * It selects one instance from a set of instances for a given service based on round robin strategy.\n *\n * @param serviceName The Service name.\n * @return The ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance lookupInstance(String serviceName);\n\n /**\n * Look up a list of service instances for a given service.\n *\n * It returns the complete list of the service instances.\n *\n * @param serviceName The Service name.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> lookupInstances(String serviceName);\n\n /**\n * Query for a service instance based on the service name and some filtering criteria on the service metadata.\n *\n * It returns a service instance from the service instance list based on round robin selection strategy.\n * The ServiceInstance list is of the specified Service.\n *\n * @param serviceName The Service name.\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance queryInstanceByName(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Query for all the ServiceInstances of the specified Service, which satisfy the query criteria on the service metadata.\n *\n * It returns all ServiceInstances of specified Service that satisfy the ServiceInstanceQuery.\n * The ServiceInstance list is of the specified Service.\n *\n * @param serviceName The Service name.\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> queryInstancesByName(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Query for one the ServiceInstances which satisfy the query criteria on the service metadata.\n *\n * It returns a service instance from the service instance list based on round robin selection strategy.\n * The ServiceInstance list have different Services.\n *\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public ServiceInstance queryInstanceByKey(ServiceInstanceQuery query);\n\n /**\n * Query for all the ServiceInstances which satisfy the query criteria on the service metadata.\n *\n * It returns all ServiceInstances of different Services which satisfy the query criteria.\n *\n * @param query The ServiceInstanceQuery for filtering the service instances.\n * @return The ServiceInstance list.\n * @throws ServiceException\n */\n public List<ServiceInstance> queryInstancesByKey(ServiceInstanceQuery query);\n\n /**\n * Get a ServiceInstance.\n *\n * It returns a ServiceInstances of the Service including the ServiceInstance of OperationalStatus DOWN.\n *\n * @param serviceName\n * the service name.\n * @param instanceId\n * the istanceId\n * @return\n * the ServiceInstance.\n * @throws ServiceException\n */\n public ServiceInstance getInstance(String serviceName, String instanceId);\n\n /**\n * Get all ServiceInstance List of the target Service, including the DOWN ServiceInstance.\n *\n * It will return all ServiceInstances of the Service including the ServiceInstance of OperationalStatus DOWN.\n *\n * @param serviceName\n * the service name.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances(String serviceName);\n\n /**\n * Get all ServiceInstances of the specified Service, including the DOWN ServiceIntance,\n * which satisfy the query criteria on the service metadata.\n *\n * It filter all ServiceInstances of the specified Service including the ServiceInstance of OperationalStatus DOWN,\n * against the ServiceInstanceQuery.\n *\n * @param serviceName\n * the Service name.\n * @param query\n * the ServiceInstanceQuery.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances(String serviceName, ServiceInstanceQuery query);\n\n /**\n * Get all the ServiceInstances, including the DOWN ServiceInstance, which satisfy the query criteria on the service metadata.\n *\n * It filters all ServiceInstances of different Services, including the DOWN ServiceInstance,\n * which satisfy the query criteria.\n *\n * @param query\n * the ServiceInstanceQuery criteria.\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstancesByKey(ServiceInstanceQuery query);\n\n /**\n * Get the all ServiceInstances in the ServiceDirectory including the DOWN ServiceInstance.\n *\n * @return\n * the ServiceInstance List.\n * @throws ServiceException\n */\n public List<ServiceInstance> getAllInstances();\n\n /**\n * Add a NotificationHandler to the Service.\n *\n * This method can check the duplicate NotificationHandler for the serviceName, if the NotificationHandler\n * already exists in the serviceName, do nothing.\n *\n * Throw IllegalArgumentException if serviceName or handler is null.\n *\n * @param serviceName\n * the service name.\n * @param handler\n * the NotificationHandler for the service.\n * @throws ServiceException\n */\n public void addNotificationHandler(String serviceName, NotificationHandler handler);\n\n /**\n * Remove the NotificationHandler from the Service.\n *\n * Throw IllegalArgumentException if serviceName or handler is null.\n *\n * @param serviceName\n * the service name.\n * @param handler\n * the NotificationHandler for the service.\n * @throws ServiceException\n */\n public void removeNotificationHandler(String serviceName, NotificationHandler handler) ;\n}",
"public LocationService getService()\n {\n return LocationService.this;\n }",
"public abstract LocationDto defaultLocation(ScheduleDto schedule);",
"@Override\n public geo_location getLocation() {\n return location;\n }",
"public boolean startLocationService();",
"@Override\n void start(Collection<? extends Location> locations);",
"interface Blank extends WithLocation {\n }",
"interface Blank extends WithLocation {\n }",
"public interface Locateable extends GeoElementND {\n\t/**\n\t * @param p\n\t * start point\n\t * @throws CircularDefinitionException\n\t * in case the start point depends on this object\n\t */\n\tpublic void setStartPoint(GeoPointND p) throws CircularDefinitionException;\n\n\t/**\n\t * Unregisters start point\n\t * \n\t * @param p\n\t * start point to remove\n\t */\n\tdefault void removeStartPoint(GeoPointND p) {\n\t\tif (p == getStartPoint()) {\n\t\t\tinitStartPoint(p.copy(), 0);\n\t\t}\n\t}\n\n\t/**\n\t * Returns (first) start point\n\t * \n\t * @return start point\n\t */\n\tpublic GeoPointND getStartPoint();\n\n\t/**\n\t * @param p\n\t * start point\n\t * @param number\n\t * index (GeoImage has three startPoints (i.e. corners))\n\t * @throws CircularDefinitionException\n\t * in case the start point depends on this object\n\t */\n\tpublic void setStartPoint(GeoPointND p, int number)\n\t\t\tthrows CircularDefinitionException;\n\n\tdefault int getStartPointCount() {\n\t\treturn 1;\n\t}\n\n\tdefault GeoElementND getStartPoint(int idx) {\n\t\treturn getStartPoint();\n\t}\n\n\t/**\n\t * Sets the startpoint without performing any checks. This is needed for\n\t * macros.\n\t * \n\t * @param p\n\t * start point\n\t * @param number\n\t * index\n\t */\n\tpublic void initStartPoint(GeoPointND p, int number);\n\n\t/**\n\t * @return true iff the location is absolute\n\t */\n\tpublic boolean hasStaticLocation();\n\n\t/**\n\t * @return true iff object is always fixed\n\t */\n\tpublic boolean isAlwaysFixed();\n\n\t/**\n\t * Use this method to tell the locateable that its startpoint will be set\n\t * soon. (This is needed during XML parsing, as startpoints are processed at\n\t * the end of a construction, @see geogebra.io.MyXMLHandler)\n\t */\n\tdefault void setWaitForStartPoint() {\n\t\t// only relevant for vectors\n\t}\n\n\t/**\n\t * Update that does not change value, but only location\n\t */\n\tpublic void updateLocation();\n\n}",
"@Test\n\tpublic void listLocations(){\n\t\tList<Location> lists = locationService.queryLoctionsByLat(29.8679775, 121.5450105);\n\t\t//System.out.println(lists.size()) ;\n\t\tfor(Location loc : lists){\n\t\t\tSystem.out.println(loc.getAddress_cn());\n\t\t}\n\t}",
"@Override\n public List<String> getCmsLocations() {\n return Collections.emptyList();\n }",
"public LocService(String modelPath, String serializedPath) throws LocationException {\n // init the tt models\n try {\n ttLocal = new TTSessionLocal(true, true, true, modelPath, serializedPath);\n } catch (IOException | ClassNotFoundException e) {\n LOGGER.severe(\"Unable to read travel-time auxiliary data.\");\n e.printStackTrace();\n throw new LocationException(\"Unable to read travel-time auxiliary data.\");\n }\n\n // Read the Locator auxiliary files.\n try {\n locLocal = new LocSessionLocal(modelPath, serializedPath);\n } catch (IOException | ClassNotFoundException e) {\n LOGGER.severe(\"Unable to read Locator auxiliary data.\");\n e.printStackTrace();\n throw new LocationException(\"Unable to read Locator auxiliary data.\");\n }\n }",
"protected static void setServiceLocation(URI serviceLocation) {\n Program.serviceLocation = serviceLocation;\n }",
"public RemoteFacadeServiceLocator() {\r\n }",
"LocationsResponse callLocationGetRESTCall(String methodName,\n String urlTemplate,\n Object... params) throws PropertyServerException\n {\n return (LocationsResponse)this.callGetRESTCall(methodName, LocationsResponse.class, urlTemplate, params);\n }",
"public List<LocationInfo> getAllLocation() {\n return allLocation;\n }",
"@RequestMapping(value=\"/locations\", method=RequestMethod.GET)\n\t@ResponseBody\n\tpublic Iterable<Location> getLocations(){\n\t\treturn lr.findAll();\n\t}",
"public String[] provides() { return new String[] { Location.TYPE }; }",
"public org.davic.net.Locator getServiceLocator();",
"public abstract ServiceLocator find(String name);",
"public QueryLocusLocusSetter() {\n super(\"org.tair.db.locusdetail\", 2147483647);\n }",
"public interface ServiceandLocListner {\n public void failedtoConnect();\n public void GetServiceListFailed(String msg);\n\n public void GetServiceList(List<Services> servicesList);\n\n public void GetLocationList(List<PlaceLoc> placeLocList);\n\n public void GetLocationListFailed(String msg);\n\n public void AddLocationSuccess();\n\n public void AddLocationFailed(String msg);\n public void DeleteLocationSuccess();\n\n public void DeleteLocationFailed(String msg);\n public void AddServiceSuccess();\n\n public void AddServiceFailed(String msg);\n\n public void DeleteServiceSuccess();\n\n public void DeleteServiceFailed(String msg);\n\n\n\n}",
"public ProductLocation() {\n }",
"@Override\n\tpublic List<Historic_siteVO> MainLocation() throws Exception {\n\t\treturn dao.MainLocation();\n\t}",
"public interface ILocator {\n\n\tpublic void addName(IName name);\n\tpublic void removeName(IName name);\n\tpublic Iterator<IName> getAllNames();\n\t\n}",
"public QueryLociSetter() {\n super(\"org.tair.db.locusdetail\", 2147483647);\n }",
"public int getLocation()\r\n {\n }",
"public interface LocationServicesListener {\r\n\r\n /**\r\n * Callback on device location turned ON\r\n */\r\n void onSuccess();\r\n }",
"protected LocationGroup() {\n }",
"public ArrayList getLocations()\r\n\t\t{\r\n\t\t\treturn locations;\r\n\t\t}",
"@Override\n\tpublic String getLocation() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getLocation() {\n\t\treturn null;\n\t}",
"protected Location getLocation()\n {\n return location;\n }",
"protected Location getLocation()\n {\n return location;\n }",
"@Override\n\tdefault Optional<Locations> findById(Integer id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getLocation() {\n\t\treturn location;\n\t}",
"public interface LookUpService1 {\n public void say();\n}",
"public static MapLocation myLocation() {\n return RC.getLocation();\n }",
"LocationType getLocationType() {\r\n\t\treturn type;\r\n\t}",
"public interface IpLocator {\r\n\r\n\t/**\r\n\t * Other than the getters & setters, this is the only method visible to the\r\n\t * outside world\r\n\t * \r\n\t * @param ip\r\n\t * The ip address to be located\r\n\t * @return IPLocator instance\r\n\t * @throws IOException\r\n\t * in case of any error/exception\r\n\t */\r\n\tpublic IpLocation locate(String ip) throws IOException;\r\n\r\n}",
"public LocationData()\n {\n }",
"public interface ITbPromoLocationService {\n Iterable<TbPromoLocation> listAllTbPromoLocations();\n\n TbPromoLocation getTbPromoLocationById(Long id);\n\n TbPromoLocation saveTbPromoLocation(TbPromoLocation TbPromoLocation);\n\n void deleteTbPromoLocation(Long id);\n\n // 이하 추가\n void deleteTbPromoLocation2(Long id);\n\n// List<?> getPromoLocationCds(Long mbCd);\n}",
"public abstract List<LocationDto> viewAll();",
"@Override\n public void onLocationAvailability(LocationAvailability availability) {\n }",
"public String getLocationName(){\n return myLoc;\n }",
"public interface LocalHandle {\n\n /**\n * 获取城市名称\n *\n * @param city\n */\n public void getCity(String city);\n}",
"private GuidoLocationListener() {}",
"public LookupOperationContext( CoreSession session )\n {\n super( session );\n\n if ( session != null )\n {\n setInterceptors( session.getDirectoryService().getInterceptors( OperationEnum.LOOKUP ) );\n }\n }",
"@RequestMapping(value = \"/location-updates\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<List<LocationUpdate>> getAllLocationUpdates(Pageable pageable)\n throws URISyntaxException {\n log.debug(\"REST request to get a page of LocationUpdates\");\n Page<LocationUpdate> page = locationUpdateRepository.findAll(pageable); \n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/location-updates\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"public Location(Context context){\n//\t\tthis.context = context;\n\t\tinit(context);\n\t}",
"@Override\n\tpublic Location<Vector2> newLocation() {\n\t\treturn null;\n\t}",
"public TaskCatagoryPageLocators() {\n }",
"public interface IdbLocation {\n\n Location createLocation(int _id, String _name); //throws DBException;\n Location setLocation(int _id, String _name);\n boolean deleteLocation(int _id);\n\n static Location getLocation(int _id) {\n return new Location();\n }\n\n static HashMap<Integer, Location> getLocations() { // <id_Location, Location object itself>\n return new HashMap<Integer, Location>();\n }\n \n}",
"private HelperLocation() {}",
"Map<UUID, Optional<Location>> getAllCurrentLocations();",
"Location createLocation();",
"Location createLocation();",
"Location createLocation();"
] | [
"0.6663774",
"0.6575904",
"0.63524884",
"0.6333118",
"0.6292695",
"0.62860775",
"0.62397325",
"0.61685383",
"0.61359906",
"0.60618687",
"0.6009254",
"0.59766734",
"0.5940879",
"0.5919353",
"0.5892152",
"0.5791034",
"0.5772796",
"0.57422185",
"0.57357955",
"0.5733061",
"0.5725398",
"0.5720363",
"0.57010275",
"0.5686646",
"0.56855947",
"0.56738687",
"0.5664712",
"0.56605697",
"0.56335545",
"0.5632118",
"0.5622123",
"0.5616184",
"0.5613519",
"0.5611888",
"0.5604914",
"0.55994844",
"0.55928844",
"0.55924594",
"0.5582328",
"0.55511963",
"0.5538061",
"0.5535102",
"0.55343395",
"0.55240035",
"0.5523252",
"0.5514546",
"0.54974455",
"0.5493358",
"0.5485658",
"0.5484572",
"0.5484572",
"0.5484128",
"0.54764396",
"0.5463753",
"0.5463505",
"0.5460617",
"0.545659",
"0.54469514",
"0.54330176",
"0.5415476",
"0.5411216",
"0.53943706",
"0.53932446",
"0.53824407",
"0.53674376",
"0.5366832",
"0.5366687",
"0.5355932",
"0.5349247",
"0.53459847",
"0.53253424",
"0.5322622",
"0.5319866",
"0.5318492",
"0.5318492",
"0.53147733",
"0.53147733",
"0.53099823",
"0.530542",
"0.53031623",
"0.5299263",
"0.5297536",
"0.5295269",
"0.5293905",
"0.5291421",
"0.5290523",
"0.52667433",
"0.52651525",
"0.52612835",
"0.52603716",
"0.52594405",
"0.52580774",
"0.5257419",
"0.5256527",
"0.5242467",
"0.52310485",
"0.52283394",
"0.522139",
"0.5219241",
"0.5219241",
"0.5219241"
] | 0.0 | -1 |
B U S I N E S S M E T H O D S P E R S I S T E N C E M E T H O D S Adds a new student to the database. | public sust.paperlessexm.entity.Student addStudent(sust.paperlessexm.entity.Student model) throws GenericBusinessException {
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
hibernateTemplate.save(model);
return getStudent(model.getPrimaryKey());
} finally {
log.debug("finished addStudent(sust.paperlessexm.entity.Student model)");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addStudent() {\n\t\t\n\t\tString lastName = sLastNameTF.getText();\n\t\tString firstName = sFirstNameTF.getText();\n\t\tString schoolName = sSchoolNameTF.getText();\n\t\tchar[] password = sPasswordPF1.getPassword();\n\t\tString sA1 = sSecurityQ1TF.getText();\n\t\tString sQ1 = (String)sSecurityList1.getSelectedItem();\n\t\tString sA2 = sSecurityQ2TF.getText();\n\t\tString sQ2 = (String)sSecurityList2.getSelectedItem();\n\t\tString grade = (String)sGradeList.getSelectedItem();\n\t\t\n\t\tstudent = new Student(lastName, firstName, schoolName, password, sA1, sQ1, sA2, sQ2, grade);\n\t\t\n\t\t//Add student to database\n\t\t\n\t}",
"public void addStudents(Student theStudent) {\n\t\tConnection myConn=null;\n\t\tPreparedStatement myStmt=null;\n\t\ttry\n\t\t{\n\t\t//get db connection\n\t\tmyConn=dataSource.getConnection();\n\t\t\n\t\t// create sql for insert\n\t\tString sql=\"insert into student \"+\"(first_name, last_name, email) \"+\"values(?,?,?)\";\n\t\tmyStmt=myConn.prepareStatement(sql);\n\t\t\n\t\t//set the param values for the student\n\t\tmyStmt.setString(1, theStudent.getFirstName());\n\t\tmyStmt.setString(2, theStudent.getLastName());\n\t\tmyStmt.setString(3, theStudent.getEmail());\n\t\t\n\t\t//execute sql insert\n\t\tmyStmt.execute();\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose(myConn,myStmt,null);\n\t\t}\n\t}",
"public void addStudent(Student student) {\n\t\t\r\n\t}",
"private void addStudent(Student student) {\n\t\tSystem.out.println(\"Add Student\");\n\t\tsmb.saveStudent(student);\n\t}",
"public static void addStudent(Student student) throws SQLException {\r\n\t String sql = \" INSERT INTO Studentspring VALUES (?,?,?,?,?)\";\r\n\t PreparedStatement pStmt = con.prepareStatement(sql);\r\n\r\n\t String Name=student.getName();\r\n\t int Age=student.getAge();\r\n\t String Course=student.getCourse();\r\n\t int Year=student.getYear();\r\n\t String Section=student.getSection();\r\n\t \r\n\t pStmt.setString(1, Name);\r\n\t pStmt.setInt(2,Age);\r\n\t pStmt.setString(3,Course);\r\n\t pStmt.setInt(4,Year );\r\n\t pStmt.setString(5,Section);\r\n\r\n\t pStmt.executeUpdate();\r\n\t \r\n\t }",
"public void AddToStudent(){\n\n try {\n\n String addDataSQL = \"INSERT INTO \" + STUDENT_TABLE_NAME + \"(\" + STUDENT_FIRST_COLUMN + \", \" + STUDENT_LAST_COLUMN + \", \" + STUDENT_PHONE_COLUMN + \")\" + \" VALUES ('Margaret', 'Elkins', '555-555-1212')\";\n ConnectDB.statement.executeUpdate(addDataSQL);\n addDataSQL = \"INSERT INTO \" + STUDENT_TABLE_NAME + \"(\" + STUDENT_FIRST_COLUMN + \", \" + STUDENT_LAST_COLUMN +\", \" + STUDENT_PHONE_COLUMN + \")\" + \" VALUES ('Scott', 'Sivad', '555-555-1313')\";\n ConnectDB.statement.executeUpdate(addDataSQL);\n addDataSQL = \"INSERT INTO \" + STUDENT_TABLE_NAME + \"(\" + STUDENT_FIRST_COLUMN + \", \" + STUDENT_LAST_COLUMN +\", \" + STUDENT_PHONE_COLUMN + \")\" + \" VALUES ('Sarah', 'Kwabi', '555-555-1414')\";\n ConnectDB.statement.executeUpdate(addDataSQL);\n addDataSQL = \"INSERT INTO \" + STUDENT_TABLE_NAME + \"(\" + STUDENT_FIRST_COLUMN + \", \" + STUDENT_LAST_COLUMN +\", \" + STUDENT_PHONE_COLUMN + \")\" + \" VALUES ('Caleb', 'Mohammad', '555-555-1515')\";\n ConnectDB.statement.executeUpdate(addDataSQL);\n }\n catch (SQLException se){\n System.out.println(se);\n se.printStackTrace();\n }\n }",
"private void saveStudent() {\n // Check that every required field has been filled in with valid parameters\n if (!checkUserInputValidity()) {\n return;\n }\n\n // Insert the new student info into the database\n if (isEditStudent) {\n updateStudentOnFirebaseDatabase();\n } else {\n // Make a unique id for the student\n String studentId = UUID.randomUUID().toString();\n saveNewStudentToFirebaseDatabase(studentId);\n }\n }",
"private static int addNewStudent(){\n\t\tSystem.out.println(\"===Add New Student To Database===\");\n\t\tScanner string_input = new Scanner(System.in); //gets String input from the user\n\t\tScanner integer_input = new Scanner(System.in); //get integer input from the user\n\t\tStudentDetails new_student = new StudentDetails();\n\t\t\n\t\tString firstname;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter new student's first name: \");\n\t\t\tfirstname = string_input.next();\n\t\t}while(!new_student.setFirstName(firstname)); //loop until name input is valid\n\t\t\n\t\tString middlename;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter new student's middle name (Type 'null' if author has no middle name): \");\n\t\t\tmiddlename = string_input.next();\n\t\t}while(!new_student.setMiddleName(middlename)); //loop until name input is valid\n\t\t\n\t\tString lastname;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter new student's last name: \");\n\t\t\tlastname = string_input.next();\n\t\t}while(!new_student.setLastName(lastname)); //loop until name input is valid\n\t\t\n\t\tint grade;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter new student's grade (9 - 12): \");\n\t\t\tgrade = integer_input.nextInt();\n\t\t}while(!new_student.setGrade(grade)); //loop until name input is valid\n\t\t\n\t\tALL_STUDENTS.add(new_student);\n\t\tint new_studentId = ALL_STUDENTS.size() - 1; //since student was the most recently added element to the ALL_STUDENTS ArrayList, its index should be ALL_STUDENTS.size() - 1. Student's index in this ArrayList should be the new student's Id.\n\t\tnew_student.setId(new_studentId); //set the new student's Id\n\t\t\n\t\treturn new_student.getId();\n\t}",
"public void addStudents(Student student) {\r\n System.out.println(\"conectado con model ---> metodo addStudents\");\r\n //TODO\r\n }",
"@Override\n\tpublic void create(Student student) {\n\t\tString query=\"insert into student values('\"+student.getId()+\"','\"+student.getName()+\"','\"+student.getAge()+\"')\";\n\t//\tjdbcTemplate.update(query);\n\t\tint result=jdbcTemplate.update(query);\n\t\tSystem.out.println(result+\"Record Inserted\");\n\t}",
"@Override\r\n\tpublic Student createOrUpdateStudentRecord(Student student) {\r\n\t\t\tstudentDAO.addStudent(student);\r\n\t\treturn student;\r\n\t}",
"public void addStudent(Student student);",
"public void addStudent(Student InStudent)\n\t{\n\t\tclassRoll.add (InStudent);\n\t\tthis.saveNeed = true;\n\n\t\t\n\t}",
"public void insert(Student student) {\t\t\r\n\t\tdao.insertStudent(student); \r\n\t}",
"@Override\n public void addStudent(Student student) {}",
"@Override\n\tpublic Student addStudent(Student std)\n\t {\n\t\t return studentrepo.save(std);\t\t \n\t }",
"public boolean addStudent(Student student) throws Exception {\n\t\tint collegeid = 0;\n\t\tString courseid = null;\n\t\tint i = 0;\n\t\tConnection con = null;\n\t\tcon = DBConnector.dbConnection();\n\t\ttry {\n\t\t\tSystem.out.println(student.getCoursename());\n\t\t\tPreparedStatement st = con.prepareStatement(\"select course_id from course where course_name=?\");\n\t\t\tst.setString(1, student.getCoursename());\n\t\t\tResultSet rs = st.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tcourseid = rs.getString(1);\n\t\t\t}\n\t\t\tSystem.out.println(student.getCollegename());\n\t\t\tPreparedStatement st1 = con.prepareStatement(\"select college_id from college where college_name=?\");\n\t\t\tst1.setString(1, student.getCollegename());\n\t\t\tResultSet rs1 = st1.executeQuery();\n\t\t\twhile (rs1.next()) {\n\t\t\t\tcollegeid = rs1.getInt(1);\n\t\t\t}\n\t\t\tPreparedStatement st2 = con.prepareStatement(\n\t\t\t\t\t\"insert into student(student_name, college_id, course_id, phn_no, address) values(?,?,?,?,?)\");\n\t\t\tst2.setString(1, student.getStudentname());\n\t\t\tst2.setInt(2, collegeid);\n\t\t\tst2.setString(3, courseid);\n\t\t\tst2.setString(4, student.getPhno());\n\t\t\tst2.setString(5, student.getAddress());\n\t\t\ti = st2.executeUpdate();\n\t\t\tcon.close();\n\t\t} catch (SQLSyntaxErrorException e) {\n\t\t\tthrow new SQLSyntaxErrorException(\"Error in SQL syntax\");\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException(\"Connection with database failed\");\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"Some error occured\");\n\t\t}\n\t\tif (i != 0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"@Override\r\n public void enroll(Student student, String courseId) throws SQLException {\n\r\n courseDAO.insert(student.getId(), courseId);\r\n\r\n }",
"public Student addStudent(AddOrUpdateStudentDTO student) throws SQLException {\n\n\t\t// try with resources: used when we want for our applicaton to automatically\n\t\t// call the .close() method on whatever \"resource\"\n\t\t// we are using\n\t\t// The connection interface defines a close() method. This method, when invoked,\n\t\t// will disconnect from the database\n\t\t// Whenever we are done with our block of code inside with\n\t\ttry (Connection con = JDBCUtil.getConnection()) {\n\t\t\tString sql = \"INSERT INTO students (student_first_name, student_last_name, student_classification, student_age)\"\n\t\t\t\t\t+ \"VALUES (?,?,?,?)\";\n\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n\n\t\t\tpstmt.setString(1, student.getFirstName());\n\t\t\tpstmt.setString(2, student.getFirstName());\n\t\t\tpstmt.setString(3, student.getClassification());\n\t\t\tpstmt.setInt(4, student.getAge());\n\n\t\t\tint numberOfRecordsInserted = pstmt.executeUpdate(); // Instead of execute query like we use for select\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// statement, INSERT, UPDATE, and DELETE will use\n\t\t\t// executeUpdate(). This method returns an integer representing the number of\n\t\t\t// rows that were modified.\n\n\t\t\t// if numbers of records that were inserted is NOT 1, then something went wrong\n\t\t\tif (numberOfRecordsInserted != 1) {\n\t\t\t\tthrow new SQLException(\"Adding a new Student was unsucessful\");\n\t\t\t}\n\n\t\t\tResultSet rs = pstmt.getGeneratedKeys();\n\t\t\trs.next(); // iterating to the first row\n\t\t\tint automaticallyGeneratedId = rs.getInt(1); // grabing the first column information from that \"row\"\n\n\t\t\t// When we return the Student that we created in the database\n\t\t\t// The missing data is the automatically generated ID\n\t\t\t// How do we obtain that id?\n\t\t\treturn new Student(automaticallyGeneratedId, student.getFirstName(), student.getLastName(),\n\t\t\t\t\tstudent.getClassification(), student.getAge());\n\t\t}\n\t}",
"public void createStudent(String name, String ID){}",
"@GetMapping(\"/add\")\n\tpublic List<Students> addStudent() {\n\t\tStudents student = new Students();\n\t\tstudent.setRollno(04);\n\t\tstudent.setSname(\"Cyborg\");\n\t\tstudent.setStudent_role(\"Graduate\");\n\t\tstudentMapper.insert(student);\n\t\treturn studentMapper.findAll(); \n\t}",
"private void ADDStudents(Student s) {\n\t\t\tint exist = 0;\n\n\t\t\tif(data.size() > 0) {\n\t\t\t\tfor(Student st: data) {\n\t\t\t\t\tif(s.id == st.id) {\n\t\t\t\t\t\texist = 1;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tthrow new Exception(\"This student already in the table.\");\n\t\t\t\t\t\t\t}catch(Exception ex){\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"This student already in the table.\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tIDField.setText(\"\");\n\t\t\t\t\t\tfirstNameField.setText(\"\");\n\t\t\t\t\t\tlastNameField.setText(\"\");\n\t\t\t\t\t\tgenderField.setText(\"\");\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\t}\n\t\t\t\tdata.add(s);\n\t\t\t\tObject[] row = new Object[4];\n\t\t\t\trow[0] = \"\" + s.id;\n\t\t\t\trow[1] = s.firstName;\n\t\t\t\trow[2] = s.lastName;\n\t\t\t\trow[3] = s.gender;\n\t\t\t\tmodel.addRow(row);\n\t\t\t if(exist ==1) {\n\t\t\t\t data.remove(s);\n\t\t\t\t model.removeRow(data.size());\n\t\t\t }\n\t\t\t\t\n\t\t\t}",
"int insert(StudentInfo record);",
"public void addStudent(User user) {\n\t\t\r\n\t}",
"int insert(Student record);",
"int insert(Student record);",
"int insert(Student record);",
"public void addStudent(Student student) {\n students.add(student);\n }",
"@Override\n public void addStudent(String firstName, String lastName, int age, Set<Course> courses) {}",
"public long addStudent(String studentname, String rollno, String ssg) {\n ContentValues initialValues=new ContentValues();\n initialValues.put(KEY_STUDENT_NAME,studentname);\n initialValues.put(KEY_STUDENT_ROLL,rollno);\n initialValues.put(KEY_FOREIGN,ssg);\n return liteDatabase.insert(DATABASE_TABLE2,null,initialValues);\n }",
"@Override\n\tpublic void createStudent(Student student) {\n\t\tem.persist(student);\n\t}",
"public boolean addStudent(Student student) throws DocumentException, IOException {\n String name = student.getName();\n if(getUser(name)==null){//hasn't got a user called the same name\n String password = student.getPassword();\n Student.Speciality speciality = student.getSpeciality();\n String mail = student.getMail();\n root = document.getRootElement();\n Element root2 = root.addElement(\"student\");\n int nb = root.elements().size()-1;\n root2.addAttribute(\"id\", String.valueOf(nb));\n Element usernameElement = root2.addElement(\"username\");\n Element passwordElement = root2.addElement(\"password\");\n Element mailElement = root2.addElement(\"mail\");\n Element specialityElement = root2.addElement(\"speciality\");\n usernameElement.setText(name);\n passwordElement.setText(password);\n mailElement.setText(mail);\n specialityElement.setText(speciality.name());\n writeXML();\n return true;\n }\n else{//the same name already in the list\n return false;\n }\n }",
"@FXML\n private void newStudent() {\n System.out.println(\"trying to insert new student to database\");\n DBhandler db = new DBhandler();\n Student s = new Student(\n txfID.getText(),\n txfFirstName.getText(),\n txfLastName.getText(),\n txfAddress.getText(),\n txfZIP.getText(),\n txfZIPloc.getText(),\n txfEmail.getText(),\n txfPhone.getText()\n );\n System.out.println(s.toString());\n db.insertStudent(s);\n Cancel(new ActionEvent());\n }",
"public Student addStudent(Student student){\r\n Student.assignId(student);\r\n Student response = repo.save(student);\r\n if(response == null){\r\n StudentChangeEvent event = new StudentChangeEvent(EventType.ADD, student);\r\n notifyObservers(event);\r\n }\r\n return response;\r\n }",
"public void addStu(Student stu) {\n\t\tSessionFactory sessionFactory = null;\n\t\tStandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n\t\t\t\t.configure()\t\t\t\t\t\t\t\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tsessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n\t\t} catch (Exception ex) {\n\t\t\tStandardServiceRegistryBuilder.destroy(registry);\n\t\t\tSystem.out.println(\"Setup Failed:\" + ex.getMessage());\n\t\t}\n\t\t// Session sessionObj = null; \n\t\tSession sessionObj = sessionFactory.openSession();\n\t\ttry {\n\t\t\t// Creating Hibernate SessionFactory Instance\n\t\t\t// sessionObj = configObj.buildSessionFactory(serviceRegistryObj).openSession();\n\t\t\tsessionObj.beginTransaction();\n\t\t\tsessionObj.save(stu);\n\t\t\tSystem.out.println(\"\\n.......Records Saved Successfully To The Database.......\\n\");\n\t\t\t// Committing The Transactions To The Database\n\t\t\tsessionObj.getTransaction().commit();\n\t\t} catch (Exception sqlException) {\n\t\t\tif (null != sessionObj.getTransaction()) {\n\t\t\t\tSystem.out.println(\"\\n.......Transaction Is Being Rolled Back.......\");\n\t\t\t\tsessionObj.getTransaction().rollback();\n\t\t\t}\n\t\t\tsqlException.printStackTrace();\n\t\t} finally {\n\t\t\tif (sessionObj != null) {\n\t\t\t\tsessionObj.close();\n\t\t\t}\n\t\t}\n\t}",
"public static void createRecord() throws IOException {\r\n\t\tstudRecs.add(new Student());\r\n\t\tint i = studRecs.size() - 1;\r\n\t\tStudent tempRecord = studRecs.get(i);\r\n\t\tSystem.out.println(\"Creating Student \" + i + \" (\" + tempRecord.getStudentID() + \")\");\r\n\t\ttempRecord.setFirstName(StudentInput.firstName());\r\n\t\ttempRecord.setLastName(StudentInput.lastName());\r\n\t\ttempRecord.setStreetAddress(StudentInput.streetAddress());\r\n\t\ttempRecord.setCity(StudentInput.city());\r\n\t\ttempRecord.setProvince(StudentInput.province());\r\n\t\ttempRecord.setPostalCode(StudentInput.postalCode());\r\n\t\ttempRecord.setPhoneNumber(StudentInput.phoneNumber());\r\n\t\ttempRecord.setBirthDate(StudentInput.birthDate());\r\n\t\tSystem.out.println(\"Student \" + i + \" (\" + tempRecord.getStudentID() + \")\" + \" Created!\");\r\n\t}",
"public void addStudentInCourse(Course course, Student student){\n \n String statement = ADD_STUDENT_IN_COURSE;\n data.makeUpdateStatement(statement,new Object[]{(Object)course.getId(),(Object)student.getId()});\n data.closeConnections(data.ps, data.conn);\n }",
"@Override\n\tpublic void gstudentAdd(Gstudent gstudent) {\n\t\tGstudentMapper.gstudentAdd(gstudent);\n\t}",
"public boolean addStudent(Student student)\r\n {\r\n int new_student_ID = student.getStudent_ID();\r\n checkID(new_student_ID);\r\n student_IDs.add(new_student_ID);\r\n updateAcademicLevels(\"add\", student.getAcademic_year());\r\n\r\n Node new_node = new Node(student, first_node);\r\n first_node = new_node;\r\n\r\n number_of_entries++;\r\n return true; \r\n }",
"public void add(Student s)\r\n {\r\n students.add(s);\r\n }",
"public void registerDB(Course curs, Student stud) throws SQLException {\r\n Connection con = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/Hogwarts\",\"postgres\" , \"admin\");\r\n Statement st = con.createStatement();\r\n\r\n st.executeUpdate(\"INSERT INTO public.enrolled(\\n\" +\r\n \"\\t\\\"studentID\\\", \\\"courseID\\\")\\n\" +\r\n \"\\tVALUES (\" + stud.getId() + \", \" + curs.getId() + \")\");\r\n\r\n st.close();\r\n }",
"@Override\n public void createStudent(Student student) throws ClassRosterDuplicateIdException, ClassRosterDataValidationException, ClassRosterPersistenceException {\n if (dao.getStudent(student.getStudentId()) != null) {\n throw new ClassRosterDuplicateIdException(\"ERROR: Could not create student. Student Id \" + student.getStudentId() + \" already exists\");\n }\n \n // RULE TWO: is the student valid\n validateStudentData(student);\n \n // RULE THREE: Pass data to DAO\n dao.addStudent(student.getStudentId(), student);\n auditDao.writeAuditEntry(\"Student \" + student.getStudentId() + \" CREATED.\");\n }",
"@Override\n\t//插入数据\n\tpublic void insertStudent(Student student) {\n\t\tConnection conn = null;\n\t\tPreparedStatement pStatement = null;\t\t\n\t\ttry {\n\t\t\tconn = MySQLConnectUtil.getMySQLConnection();\n\t\t\tpStatement = conn.prepareStatement(INSERT);\n\t\t\t\n\t\t\tpStatement.setString(1, student.getId());\n\t\t\tpStatement.setString(2, student.getName());\n\t\t\tpStatement.setInt(3, student.getAge());\n\t\t\tint i =pStatement.executeUpdate();\n\t\t\tSystem.out.println(\"影响行数\"+i);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tMySQLConnectUtil.closePreparestatement(pStatement);\n\t\t\tMySQLConnectUtil.closeConnection(conn);\n\t\t}\n\t}",
"Student createStudent();",
"private void addStudent() throws FileNotFoundException, ValidatorException {\n //Lesen wir die Daten\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Read student information\");\n System.out.print(\"ID: \");\n long studentId = sc.nextLong();\n System.out.print(\"First name: \");\n String firstName = sc.next();\n System.out.print(\"Last Name: \");\n String lastName = sc.next();\n\n //Wir rufen die addStudent Funktion vom dem Controller mit den gelesenen Daten auf\n if (ctrl.addStudent(studentId, firstName, lastName)) {\n System.out.println(\"Please add the courses later from the Registration System menu!\");\n System.out.println(\"Student saved with success!\");\n } else\n System.out.println(\"Student with this ID already exists!\");\n }",
"public static boolean addStudent(String Name, String Password, String Email, Calendar dob, String MatricNo,\n\t\t\tString SchoolID, String Degree) {\n\n\t\tif (StudentList.size() == 0) {\n\t\t\tStudent newStudent = new Student(Name, Password, Email, dob, MatricNo, SchoolID, Degree);\n\t\t\tList<Object> student = new ArrayList<Object>();\n\t\t\tstudent.add((Object) newStudent);\n\t\t\tSystem.out.println(\"Succesfully Added Student\");\n\t\t\tFileManager.writeObjectToFile(\"student.dat\", student);\n\t\t\treturn true;\n\t\t}\n\t\tif (checkIfStudentExists(MatricNo)) {\n\t\t\tSystem.out.println(\"Matriculation Number already exists\");\n\t\t\treturn false;\n\t\t}\n\n\t\tStudent newStudent = new Student(Name, Password, Email, dob, MatricNo, SchoolID, Degree);\n\t\tStudentList.add(newStudent);\n\t\tSystem.out.println(\"Succesfully Added Student\");\n\t\tFileManager.addObjectToFile(newStudent);\n\t\treturn true;\n\t}",
"@RequestMapping(value = \"/student\")\r\n\tpublic String addstudent(Student student) {\r\n\t\tStudentdaoimpl impl = new Studentdaoimpl();\r\n\t\timpl.addstudent(student);\r\n\t\treturn \"redirect:/findallstudent\";\r\n\r\n\t}",
"int insert(StudentEntity record);",
"private void saveStudent(){\n StudentGroupThrift group = mainWindow.getStudentClient().getStudentGroupByName\n (this.group.getSelectedItem().toString());\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n String birthDate = format.format(jDateChooser.getDate());\n StudentThrift studentThrift = new StudentThrift(\n id,\n getTextID(FIRST_NAME),\n getTextID(LAST_NAME),\n getTextID(MIDDLE_NAME),\n birthDate,\n getTextID(ADDRESS),\n group\n );\n mainWindow.getStudentClient().saveStudent(studentThrift);\n closeDialog();\n }",
"public void insertStudent(Student newStudent)\n\t{\n\t\tif (numStudents < students.length) {\n\t\t\tstudents[numStudents] = newStudent;\n\t\t\tnumStudents++;\n\t\t}\n\t}",
"public void addStudent(String theStudent) {\n\t\tstudents[numberOfStudents] = theStudent;\n\t\tnumberOfStudents++; // Upadate the total number of students\n\t}",
"@Override\n\t\tpublic void saveStudent(Student stu) {\n\t\t\tsessionFactory.getCurrentSession().save(stu);\n\t\t\tSystem.out.println(\"DATA HAS BEEN SAVED.........\");\n\t\t}",
"private void saveData() {\n try {\n Student student = new Student(firstName.getText(), lastName.getText(),\n form.getText(), stream.getText(), birth.getText(),\n gender.getText(), Integer.parseInt(admission.getText()),\n Integer.parseInt(age.getText()));\n\n\n if (action.equalsIgnoreCase(\"new\") && !assist.checkIfNull(student)) {\n\n dao.insertNew(student);\n JOptionPane.showMessageDialog(null, \"Student saved !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n\n } else if (action.equalsIgnoreCase(\"update\") && !assist.checkIfNull(student)) {\n dao.updateStudent(student, getSelected());\n JOptionPane.showMessageDialog(null, \"Student Updated !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n }\n\n prepareTable();\n prepareHistory();\n buttonSave.setVisible(false);\n admission.setEditable(true);\n }catch (Exception e)\n {}\n }",
"public void actionPerformed(ActionEvent e){\n \t\t \tstudentsController.addStudent();\n \t\t }",
"public int insertStudent(Student aStudent) {\n\t\tint updateCount = 0;\n\t\t\n\t\tint aId = aStudent.getId();\n\t\tString afName = aStudent.getfName();\n\t\tString alName = aStudent.getlName();\n\t\tdouble aGpa = aStudent.getGpa();\n\t\tint aSat = aStudent.getSat();\n\t\tint aMajor = aStudent.getMajor();\n\t\t\n\t\tString sql = \"insert into student values \" +\n\t\t\t\tString.format(\"(%4d, '%s', '%s', %4d, %4.2f , %4d)\", aId, afName, alName, aSat, aGpa, aMajor);\n\n\t\ttry {\n\t\t\tupdateCount = myDB.execSQLUpdate(sql);\n\t\t} catch (SQLException e) { e.printStackTrace(); }\n\t\t\n\t\treturn updateCount;\n\t}",
"private void saveNewStudentToFirebaseDatabase(String studentId) {\n // Extract Student information from the edit text views\n String studentName = mStudentNameEditText.getText().toString().toLowerCase().trim();\n int studentSex = mStudentSex;\n long studentBirthdate = mStudentBirthdate;\n int studentGrade = Integer.parseInt(mStudentGradeEditText.getText().toString());\n\n if (mViewModel.studentPicBitmap != null) {\n // Save photo to Firebase Storage using AsyncTask\n saveStudentPhotoToFirebaseStorage(studentId);\n } else {\n Student newStudent = new Student(studentName, studentSex, studentBirthdate, studentGrade,\n mChosenClassesList, null, studentId);\n\n mStudentsDatabaseReference.child(studentId).setValue(newStudent);\n }\n\n // Close activity\n finish();\n }",
"public Student saveStudent(Student student) {\n\t\tlog.info(\"Add Student Name = \" + student.getFirstname() + \" \"\n\t\t\t\t+ student.getLastname());\n\t\tlog.debug(\"Initialise SQL Parameters\");\n\t\tfinal Object[] param = new Object[] { student.getMatnr(),\n\t\t\t\tstudent.getFirstname(), student.getLastname(), student.getEmail() };\n\t\tlog.debug(\"Initialise Transaction Manager\");\n\t\tTransactionTemplate tt = new TransactionTemplate(transactionManager);\n\t\tObject result = tt.execute(new TransactionCallback() {\n\t\t\tpublic Object doInTransaction(TransactionStatus status) {\n\t\t\t\t// The transaction is run from here\n\t\t\t\tlog.debug(\"Start Transaction\");\n\t\t\t\tquery_insertStudent.update(param);\n\n\t\t\t\t/*\n\t\t\t\t * activate the following error line to create an Error which\n\t\t\t\t * terminates this method. One will see, that the complete\n\t\t\t\t * transaction is rolled back, hence the insert statement above\n\t\t\t\t * is not executed, alternatively the second rollback statement\n\t\t\t\t * can be activated with the same result which in that case is a\n\t\t\t\t * manual rollback of the transaction\n\t\t\t\t */\n\n\t\t\t\t// if (true) throw new Error(\"Test Exception\");\n\t\t\t\t// or\n\t\t\t\t// status.setRollbackOnly();\n\t\t\t\t/*\n\t\t\t\t * result from query is a list, actually containing only one row\n\t\t\t\t * and one column\n\t\t\t\t */\n\t\t\t\tList<?> results = query_getStudentId.execute();\n\t\t\t\tInteger id = (Integer) results.get(0);\n\t\t\t\tlog.debug(\"End Transaction\");\n\t\t\t\treturn id;\n\t\t\t\t/*\n\t\t\t\t * and the transaction ends here! if no error occurs the\n\t\t\t\t * transaction is committed by Spring otherwise it is rolled\n\t\t\t\t * back\n\t\t\t\t */\n\t\t\t}\n\t\t});\n\t\tInteger id = (Integer) result;\n\t\tstudent.setId(id);\n\t\tlog.info(\"Return ID from inserted dataset = \" + id);\n\t\treturn id!=0 ? student : null;\n\t}",
"public void addStudent(Student newStudent) {\n if (studentCount >= MAXSTUDENT) {\n throw new IllegalArgumentException(\"There are too many students in \"\n + \"the course!\");\n } else {\n studentList.add(newStudent);\n studentCount++;\n }\n }",
"@Override\r\n\t@Transactional\r\n\tpublic void createStudent(Bookmodel s1) {\n\t\tdao.createStudent(s1);\r\n\t}",
"int insert(StudentGuardian record);",
"@POST\r\n\t@Path(\"/student\")\r\n\tpublic void enrollStudentToCourse(@FormParam(\"studentID\") String studentID,\r\n\t\t\t@FormParam(\"courseID\") String courseID) {\r\n\r\n\t\tStudent student = InMemoryDataStore.getStudent(studentID);\r\n\t\tCourse course = InMemoryDataStore.getCourse(courseID);\r\n\r\n\t\tif (student == null || course == null) {\r\n\t\t\tthrow new WebApplicationException(Response.Status.BAD_REQUEST);\r\n\t\t}\r\n\r\n\t\tstudent.addCourse(courseID);\r\n\t\tcourse.addStudent(studentID);\r\n\t}",
"public void add(Student student) {\n\t\tstudentList.add(student);\n\t}",
"int insert(SalGrade record);",
"@Override\n\tpublic void saveStudent(Student student) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\tif (student.getId() != 0) {\n\t\t// update the student\n\t\t\tcurrentSession.update(student);\n\t\t}\n\t\telse {\n\t\t\t// save the student\n\t\tcurrentSession.save(student);\n\t\t}\n\n\t}",
"public Student insertStudent() {\n\t\tSystem.out.print(\"\\n--- 학생 정보 등록 ---\\n\");\n\t\tSystem.out.print(\"학생 이름 입력 \");\n\t\tString name = sc.next();\n\t\tSystem.out.print(\"학생 나이 입력 \");\n\t\tint age = sc.nextInt();\n\t\tSystem.out.print(\"학생 주소 입력 \");\n\t\tString addr= sc.next();\n\t\tStudent st = new Student(name, age, addr);\n\t\treturn st;\n\t}",
"void save(Student student);",
"@Override\n\tpublic boolean saveStudentByPst(final Student s) {\n\t\tString query=\"insert into student values(?,?,?)\";\n\t\treturn jdbcTemplate.execute(query,new PreparedStatementCallback<Boolean>() {\n\t\tpublic Boolean doInPreparedStatement(PreparedStatement ps) throws SQLException ,DataAccessException\n\t\t{\n\t\t\tps.setInt(1,s.getId());\n\t\t\tps.setString(2,s.getName());\n\t\t\tps.setInt(3,s.getAge());\n\t\t\treturn ps.execute();\n\t\t}\n\t\t});\n\t\n\t}",
"@Override\n\tpublic int insertOne(StudentVO vo) {\n\t\treturn 0;\n\t}",
"public void registerStudent(String webID, Student student) {\n if (students.getStudent(webID) != null)\n throw new IllegalArgumentException();\n\n //add student to database\n students.addStudent(webID, student);\n }",
"public static void Add_students() throws SQLException \n\t {\n\t\ttry\n\t\t{\n\t\t\t//Declarations \n\t\t\tFloat gpa=0.0f;\n\t\t\tString fname=\"\",lname=\"\",status=\"\";\n\t\t\tString email=\"\";\n\t\t\tString sid=\"\";\n\t\t\tSystem.out.println(\"Please enter the students sid (starting with 'B')\\n\"); \n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in ) ); \n\t\t\tsid = br.readLine(); \n\t\t\t\t\t \t\t\t\n\t\t\tSystem.out.println(\"Please enter the students First name \\n\");\n\t\t\tfname=br.readLine();\n\n\t\t\t System.out.println(\"Please enter the students Last name \\n\"); \n lname=br.readLine();\n\t\t\t\n\t\t\t\tSystem.out.println(\"Please enter the students status (('freshman', 'sophomore', 'junior', 'senior', 'graduate'))\\n\"); \n\t\t\t\tstatus = br.readLine();\n\t\t\n\t\t\tdo{\n\t\t\t\tSystem.out.println(\"Please enter the students GPA ((gpa >= 0 and gpa <= 4.0))\\n\"); \n\t\t\t\tgpa = Float.parseFloat(br.readLine());\n\t\t\t}while(gpa<0.0 && gpa>4.0);\n\n\t\t\t\t\t\t \n\t\t\tSystem.out.println(\"Please enter the students email address\\n\"); \n\t\t\temail = br.readLine();\n //Connection to Oracle server\n OracleDataSource ds = new oracle.jdbc.pool.OracleDataSource();\n ds.setURL(\"jdbc:oracle:thin:@grouchoIII.cc.binghamton.edu:1521:ACAD111\");\n Connection conn = ds.getConnection(\"vbobhat1\", \"BingData\");\n\tCallableStatement cs = conn.prepareCall (\"begin StudRegSys.add_student(:1,:2,:3,:4,:5,:6); end;\");\n\t\t\tcs.setString(1,sid);\t\t \t \n\t\t \tcs.setString(2,fname);\n\t\t\tcs.setString(3,lname);\n\t\t \tcs.setString(4,status);\n\t\t \tcs.setFloat(5,gpa);\n\t\t \tcs.setString(6,email);\n\t\t\tcs.executeQuery();\n\t \n\t \tSystem.out.println(\"Student Succesfully Added!\");\n\t \n\t \t// close the result set, statement, and the connection\n\t\t \tcs.close();\n\t\t \tconn.close();\n\t\t }\n\tcatch (SQLException ex) { System.out.println (\"\\n*** SQLException caught ***\\n\" + ex.getMessage());}\n catch (Exception e) {System.out.println (\"\\n*** other Exception caught ***\\n\");}\n\t }",
"@Override\n\tpublic void saveStudent(StudentForm student) {\n\t\t\n\t}",
"public int add(Users student) {\n\t\treturn this.userDao.add(student);\n\t}",
"public String addStudent() {\r\n\t\tint rollnumber, no_of_courses = 0;\r\n\t\tString studname, coursename, courseid;\r\n\t\tSystem.out.println(\"Enter the Student rollnumber: \");\r\n\t\trollnumber=sc.nextInt();\r\n\t\tfor(int i=0;i<count;i++)\r\n\t\t{\r\n\t\tif(rollnumber==students[i].getRollNumber()) {\r\n\t\t\treturn (\"Sorry the Roll number is already taken!!\");\r\n\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter the Student name: \");\r\n\t\tstudname=sc.next();\r\n\t\tSystem.out.println(\"Enter the Number of courses student want to enroll: \");\r\n\t\tno_of_courses=sc.nextInt();\r\n\t\tCourses [] courses=new Courses[no_of_courses];\r\n\t\tfor(int i=0;i<no_of_courses;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter the course id: \");\r\n\t\t\tcourseid=sc.next();\r\n\t\t\tSystem.out.println(\"Enter the course name:\");\r\n\t\t\tcoursename=sc.next();\r\n\t\t\tCourses object=new Courses(courseid, coursename);\r\n\t\t\tcourses[i]=object;\r\n\t\t}\t\t\r\n\t\tstudents[count++]=new Student(rollnumber, studname, courses);\r\n\t\treturn \"Student added successfully\";\t\r\n\t}",
"public void testAddMinimalStudent()\r\n throws Exception\r\n {\r\n Student student1 = new Student();\r\n student1.setGender( Gender.MALE );\r\n studentId1 = StudentIdGen.getInstance().nextStudentId();\r\n student1.setId( studentId1 );\r\n\r\n try\r\n {\r\n Session session = SessionUtil.begin();\r\n session.save( student1 );\r\n SessionUtil.end();\r\n }\r\n catch ( Exception e )\r\n {\r\n SessionUtil.rollback( e );\r\n }\r\n }",
"public Query_InsertStudent(DataSource ds) {\n\t\t\tsuper.setDataSource(ds);\n\t\t\tsetSql(sql_insertStudent);\n\t\t\tdeclareParameter(new SqlParameter(\"matnr\", Types.VARCHAR));\n\t\t\tdeclareParameter(new SqlParameter(\"firstname\", Types.VARCHAR));\n\t\t\tdeclareParameter(new SqlParameter(\"lastname\", Types.VARCHAR));\n\t\t\tdeclareParameter(new SqlParameter(\"email\", Types.VARCHAR));\n\t\t}",
"@Override\n public StudentDTO createNewStudent(StudentDTO studentDTO) {\n studentRepository.save(studentMapper.studentDTOToStudent(studentDTO));\n log.info(\"Student with id: \" + studentDTO.getId() + \" successfully saved\");\n return studentDTO;\n }",
"public static void creaStudente(Student stud) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.CREATE_USER;\n\t\t\trp.userType = UserType.STUDENT;\n\t\t\trp.parameters = new Object[] { stud };\n\t\t\tsend(rp);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}",
"@GetMapping(\"/save\")\n\tpublic @ResponseBody String addNewStudent(@RequestParam int rollno, @RequestParam String name, @RequestParam String role) {\n\t\tStudents student = new Students();\n\t\tstudent.setRollno(rollno);\n\t\tstudent.setSname(name);\n\t\tstudent.setStudent_role(role);\n\t\tstudentMapper.insert(student);\n\t\treturn \"Saved New User\";\n\t}",
"public void insertCourse(){\n \n }",
"public int save(Student stud) {\r\n\t\tint status = 0;\r\n\t\ttry {\r\n\t\t\tConnection con = DatabaseUtility.getCon(inputStream);\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\r\n\t\t\t\t\t\"insert into student(first_name,last_name,email,gender,date_of_birth,address,contact_no) values(?,?,?,?,?,?,?)\");\r\n\t\t\tps.setString(1, stud.getFname());\r\n\t\t\tps.setString(2, stud.getLname());\r\n\t\t\tps.setString(3, stud.getEmail());\r\n\t\t\tps.setString(4, stud.getGender());\r\n\t\t\tps.setString(5, stud.getDOB());\r\n\t\t\tps.setString(6, stud.getAddress());\r\n\t\t\tps.setString(7, stud.getContact());\r\n\r\n\t\t\tstatus = ps.executeUpdate();\r\n\t\t\tcon.close();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(ex);\r\n\t\t}\r\n\t\treturn status;\r\n\t}",
"public void newRecord() {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tdateTxt.setText(dateFormat.format(new Date()));\n\t\t//mark all students enrolled as attendant\n\t\tif (courseTable.getSelectedRow() != -1) {\n\t\t\tsetWarningMsg(\"\");\n\t\t\tupdateStudent(currentCourse);\n\t\t\tfor (int i = 0; i < studentTable.getRowCount(); i++) {\n\t\t\t\tstudentTable.setValueAt(new Boolean(true), i, 0);\n\t\t\t}\t\t\t\n\t\t}\n\t\telse {\n\t\t\t//show message: choose course first\n\t\t\tsetWarningMsg(\"please select course first\");\n\t\t}\n\t}",
"@Override\r\n\tpublic void addStudentInCourse(Course course, User user) {\n\t\t\r\n\t}",
"public void enrollStudent(Student student) {\n\n\t}",
"private void insertEntry() {\n String desiredId = idField.getText();\n String desiredName = nameField.getText();\n String desiredMajor = majorField.getText();\n\n if (studentHashMap.containsKey(desiredId)) {\n this.displayStatusPanel(\n \"Error: A student with this information already exists.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n } else {\n studentHashMap.put(desiredId, new Student(desiredName, desiredMajor));\n\n this.displayStatusPanel(\n \"Success: \" + desiredName + \" has been added.\",\n \"Success\",\n JOptionPane.INFORMATION_MESSAGE\n );\n }\n }",
"public String addStudent (String name,String admin){\n Document doc = new Document(\"name\", name);\n doc.put(\"skills\",Arrays.asList());\n studentSkills.insertOne(doc);\n this.createNewToken(doc.get(\"_id\").toString(),admin);\n return doc.get(\"_id\").toString();\n}",
"void create(Student entity);",
"public void addStaff(String name, String dob, String email, String number, String address, String password) throws SQLException { //code for add-operation \n st.executeUpdate(\"INSERT INTO IOTBAY.STAFF \" + \"VALUES ('\" \n + name + \"', '\" + dob + \"', '\" \n + email + \"', '\" + number+ \"', '\" \n + address + \"', '\" + password + \"')\");\n\n }",
"public boolean addNew(Student st){\n for(Student stItem : listStudents){\r\n // check for duplicate id\r\n if(stItem.getId() == st.getId()) return false;\r\n \r\n// if(checkRule(stItem, st)) break;\r\n// else return false;\r\n \r\n }\r\n this.listStudents.add(st);\r\n return true;\r\n }",
"public long add(String name, String discipline, String grade) {\n SQLiteDatabase db = _openHelper.getWritableDatabase();\n if (db == null) {\n return 0;\n }\n ContentValues row = new ContentValues();\n row.put(\"name\", name);\n row.put(\"discipline\", discipline);\n row.put(\"grade\", grade);\n long id = db.insert(\"Exams\", null, row);\n db.close();\n return id;\n }",
"@Override\n\tpublic boolean insert(Student student) {\n\t\treturn sDao.insert(student) > 0;\n\t}",
"private void addStudentParticulars() throws Exception {\n String gender = \"MALE\";\n Student student = new Student();\n\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"Please enter the student's username:\");\n String username = sc.nextLine();\n while((!username.matches(\"^[a-zA-Z0-9]+$\"))||(username.length()!=7))\n {\n if (username.length()!=7)\n System.out.println(\"Input characters only can have 7 characters.\");\n else\n System.out.println(\"Only alphanumeric allowed\");\n System.out.println(\"\\nPlease enter the student's username:\");\n username = sc.nextLine();\n }\n username = username.toUpperCase();\n\n\n while((this.studentMgr.readSingleStudent(username).getName())!=null){\n\n System.out.println(\"Username already exist\");\n System.out.println(\"\\n***********What would you like to do next ?***********\");\n System.out.println(\" Student Information \");\n System.out.println(\"______________________________________________________\\n\");\n System.out.println(\"|1. Add another student |\");\n System.out.println(\"|2. Update information for this student |\");\n System.out.println(\"|----------------------------------------------------|\");\n System.out.println(\"|0. Return to admin menu page |\");\n System.out.println(\"|----------------------------------------------------|\");\n System.out.println(\"______________________________________________________\");\n\n //sc.nextLine();\n int choice;\n do {\n while (!sc.hasNextInt()) {\n System.out.println(\"Invalid input! Please enter your choice:\");\n sc.next();\n }\n choice = sc.nextInt();\n if((choice < 0) || (choice > 2))\n System.out.println(\"Invalid input! Please enter your choice:\");\n } while ((choice < 0) || (choice > 2));\n if(choice == 1){\n System.out.println(\"Please enter the student's username:\");\n username = sc.nextLine();\n while(!username.matches(\"^[a-zA-Z0-9]+$\"))\n {\n System.out.println(\"Invalid input! Please enter again!\");\n System.out.println(\"Please enter the student's username:\");\n username = sc.nextLine();\n }\n username = username.toUpperCase();\n student.setName(username);\n }\n else if(choice ==2){\n this.nameExist = username;\n this.updStudentParticulars();\n }\n else\n return;\n\n }\n\n student.setUsername(username);\n \n\n System.out.println(\"Please enter \"+username+\"'s student name:\");\n String name = sc.nextLine();\n while(!name.matches(\"^[ A-Za-z]+$\"))\n {\n System.out.println(\"Invalid input! Please enter again!\");\n System.out.println(\"Please enter \"+username+\"'s student name:\");\n name = sc.nextLine();\n }\n name = name.toUpperCase();\n student.setName(name);\n\n\n System.out.println(\"Please enter \"+username+\"'s password:\");\n String password = sc.nextLine();\n student.setPassword(password);\n\n\n\n //matric num\n System.out.println(\"Please enter \"+username+\"'s matric num (A1234567B):\");\n String matricNum = sc.nextLine();\n while(!matricNum.matches(\"[a-zA-Z]\\\\d{7}[a-zA-Z]\"))\n {\n System.out.println(\"Invalid input! Please enter again!\");\n System.out.println(\"Please enter \"+username+\"'s matric num (A1234567B):\");\n matricNum = sc.nextLine();\n }\n matricNum = matricNum.toUpperCase();\n student.setMatricNumber(matricNum);\n\n //gender\n System.out.println(\"Please enter \"+username+\"'s gender, M or F?\");\n char genderChar = sc.next().charAt(0);\n while((Character.toUpperCase(genderChar)!='M')&&(Character.toUpperCase(genderChar)!='F'))\n {\n System.out.println(\"Invalid input! Please enter again!\");\n System.out.println(\"Please enter \"+username+\"'s gender, M or F?\");\n genderChar = sc.next().charAt(0);\n }\n sc.nextLine();\n genderChar = Character.toUpperCase(genderChar);\n if(genderChar=='F')\n gender = \"FEMALE\";\n\n student.setGender(gender);\n\n //nationality\n System.out.println(\"Please enter \"+username+\"'s nationality :\");\n String nationality = sc.nextLine();\n while(!nationality.matches(\"^[a-zA-Z]*$\"))\n {\n System.out.println(\"Invalid input! Please enter again!\");\n System.out.println(\"Please enter \"+username+\"'s nationality: \");\n nationality = sc.nextLine();\n }\n nationality = nationality.toUpperCase();\n\n student.setNationality(nationality);\n\n\n adminManager.addStudent(student);\n System.out.println(\"Add student successfully!\\n\");\n printAllStudentInDB();\n //add student information\n }",
"private void insert() {\n\t\tConfiguration conf = new Configuration();\n\t\tconf.configure(\"hibernate.cfg.xml\");\n\t\tSessionFactory sf = conf.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\ts.beginTransaction();\n\n\t\tQuery query = s.createQuery(\"insert into OldStudent(id,name,grade) select s.id,s.name,s.grade from Student s\");\n\t\tint count = query.executeUpdate();\n\t\tSystem.out.println(\"Number of Rows inserted in the oldstudent table=\" + count);\n\n\t\ts.getTransaction().commit();\n\t\ts.clear();// s.evict() on all student objects in session\n\t\tsf.close();\n\t}",
"public void registerStudent(String firstName, String lastName, String bcsYear,\n String email, String accountID) throws SQLException {\n Statement myStatement = studentConn.createStatement();\n\n myStatement.executeUpdate(\"INSERT INTO student(firstName, lastName, bcsYear, email, accountID) \"\n + \"VALUES(\\\"\" + firstName + \"\\\", \\\"\" + lastName + \"\\\", \\\"\"\n + bcsYear + \"\\\", \\\"\" + email + \"\\\", \\\"\" + accountID + \"\\\");\");\n }",
"@POST\n\t@Path(\"add\")\n\tpublic String addStudent(Representation entity) {\n\t\tForm form = new Form(entity);\n\t\tString name = form.getFirstValue(\"name\");\n\t\tint grade = Integer.parseInt(form.getFirstValue(\"grade\"));\n\t\tint sex = Integer.parseInt(form.getFirstValue(\"sex\"));\n\t\tint age = Integer.parseInt(form.getFirstValue(\"age\"));\n\n\t\tStudent student = new Student();\n\t\tstudent.setGrade(grade);\n\t\tstudent.setName(name);\n\t\tstudent.setSex(sex);\n\t\tstudent.setAge(age);\n\n\t\tint id = StorageOperator.studentID + 1;\n\t\tstudent.setId(id);\n\t\treturn String.valueOf(StorageOperator.addStudent(student));\n\t}",
"public String addStudent(StudentDetailsDTO studentDetailsDTO)\n {\n log.info(\"Executing SudentService.addStudent() with param studentDetailsDTO:{}\"+\n \"which save student to our System\",studentDetailsDTO);\n StudentDetails studentDetails=mapper.mapStudentDetailsDTOToStudentDetails(studentDetailsDTO);\n StudentDetails returnedStudentDetails=studentRepository.save(studentDetails);\n log.debug(\"Saving saved student into its class\");\n ClassDetails classDetails=classRepository.findByClassId(studentDetailsDTO.getClassId());\n List<String> studentOFClass=classDetails.getStudentIDs();\n if(studentOFClass==null) {\n studentOFClass=new ArrayList<String>();\n }\n studentOFClass.add(returnedStudentDetails.getStudentId());\n classDetails.setStudentIDs(studentOFClass);\n log.debug(\"Again saving the classDetails after student have been added\");\n classRepository.save(classDetails);\n log.info(\"Returing studentId of the saved student from SudentService.addStudent()\");\n return returnedStudentDetails.getStudentId();\n }",
"@PostMapping(\"/api/students\")\n public ResponseEntity createOrUpdateStudent(@RequestBody StudentDto studentRequest) {\n this.studentService.createOrUpdateStudent(studentRequest);\n return ResponseEntity.ok().build();\n }",
"@RequestMapping( value = \"/{id}/student\", method = RequestMethod.POST )\n public Set<StudentDTO> addStudents\n (@PathVariable(value=\"id\") long id, @RequestBody StudentDTO student) {\n\n return classService.addStudent(id, student);\n\n }",
"public static void addStudentToClass(String classCode, int userId)\n\t{\n\t\tString sql = \"INSERT INTO ClassMember (studentID, classcode) \"\n\t\t\t\t+ \"VALUES (?, ?)\";\n\t\ttry(Connection conn = DriverManager.getConnection(db, user, pwd);\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);)\n\t\t{\n\t\t\tps.setInt(1, userId);\n\t\t\tps.setString(2, classCode);\n\t\t\tps.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public boolean add(int grade, String student) {\r\n Grade toInsert = new Grade(student, grade);\r\n boolean ret = rbt.insert(toInsert);\r\n if (ret == true) {\r\n return true;\r\n }\r\n return false;\r\n }",
"@Test\n\tpublic void addStudentTest() {\n\t\tint numberOfStudents = student.getNumberOfStudents();\n\n\t\t// add a new student\n\t\tstudent.newStudent();\n\n\t\t// expected number of students after adding a new student\n\t\tint expected = numberOfStudents++;\n\n\t\t// actual number of students\n\t\tint actual = student.getNumberOfStudents();\t\t\n\t\tassertEquals(expected, actual);\n\t}"
] | [
"0.85572225",
"0.79773647",
"0.7834838",
"0.7805763",
"0.77334374",
"0.77181816",
"0.76648414",
"0.7653824",
"0.7571041",
"0.7563252",
"0.7506467",
"0.7506244",
"0.74813247",
"0.7441723",
"0.738382",
"0.7344547",
"0.7321687",
"0.7290842",
"0.7266156",
"0.7254962",
"0.71694165",
"0.71478444",
"0.713316",
"0.7132475",
"0.711725",
"0.711725",
"0.711725",
"0.706867",
"0.7037698",
"0.7034741",
"0.70201",
"0.69876724",
"0.6981242",
"0.69702303",
"0.69640166",
"0.69564533",
"0.6944345",
"0.6941833",
"0.6918196",
"0.69170344",
"0.6912458",
"0.68967825",
"0.68965966",
"0.6894768",
"0.6881361",
"0.6873255",
"0.6869785",
"0.6858546",
"0.68581706",
"0.6855391",
"0.6853841",
"0.6853787",
"0.6826333",
"0.6825855",
"0.6813877",
"0.67999846",
"0.67914414",
"0.6781665",
"0.67735195",
"0.6754744",
"0.675409",
"0.67511535",
"0.67441624",
"0.6725789",
"0.67248625",
"0.6722047",
"0.6719367",
"0.66803694",
"0.66498625",
"0.6647297",
"0.6644147",
"0.6634099",
"0.66316783",
"0.66291225",
"0.66264457",
"0.6625774",
"0.6625743",
"0.6618892",
"0.6618201",
"0.65842175",
"0.6573914",
"0.6554059",
"0.65417314",
"0.6525203",
"0.65239453",
"0.65186596",
"0.6513447",
"0.65113795",
"0.65080076",
"0.6497853",
"0.6487623",
"0.6486531",
"0.6482037",
"0.6477434",
"0.6460014",
"0.6455242",
"0.6434704",
"0.6425525",
"0.64172316",
"0.64145046"
] | 0.73054415 | 17 |
Stores the Student in the database. | public void saveStudent(sust.paperlessexm.entity.Student model) throws GenericBusinessException {
// We have to create an object:
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
// Now update the data.
hibernateTemplate.update(model);
} finally {
log.debug("finished saveStudent(sust.paperlessexm.entity.Student model)");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void saveStudent() {\n // Check that every required field has been filled in with valid parameters\n if (!checkUserInputValidity()) {\n return;\n }\n\n // Insert the new student info into the database\n if (isEditStudent) {\n updateStudentOnFirebaseDatabase();\n } else {\n // Make a unique id for the student\n String studentId = UUID.randomUUID().toString();\n saveNewStudentToFirebaseDatabase(studentId);\n }\n }",
"@Override\n\t\tpublic void saveStudent(Student stu) {\n\t\t\tsessionFactory.getCurrentSession().save(stu);\n\t\t\tSystem.out.println(\"DATA HAS BEEN SAVED.........\");\n\t\t}",
"void save(Student student);",
"public void insert(Student student) {\t\t\r\n\t\tdao.insertStudent(student); \r\n\t}",
"private void addStudent() {\n\t\t\n\t\tString lastName = sLastNameTF.getText();\n\t\tString firstName = sFirstNameTF.getText();\n\t\tString schoolName = sSchoolNameTF.getText();\n\t\tchar[] password = sPasswordPF1.getPassword();\n\t\tString sA1 = sSecurityQ1TF.getText();\n\t\tString sQ1 = (String)sSecurityList1.getSelectedItem();\n\t\tString sA2 = sSecurityQ2TF.getText();\n\t\tString sQ2 = (String)sSecurityList2.getSelectedItem();\n\t\tString grade = (String)sGradeList.getSelectedItem();\n\t\t\n\t\tstudent = new Student(lastName, firstName, schoolName, password, sA1, sQ1, sA2, sQ2, grade);\n\t\t\n\t\t//Add student to database\n\t\t\n\t}",
"@Override\n\tpublic void saveStudent(Student student) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\tif (student.getId() != 0) {\n\t\t// update the student\n\t\t\tcurrentSession.update(student);\n\t\t}\n\t\telse {\n\t\t\t// save the student\n\t\tcurrentSession.save(student);\n\t\t}\n\n\t}",
"public void save() {\n sessionBean.saveStudent();\n success = true;\n }",
"private void saveStudent(){\n StudentGroupThrift group = mainWindow.getStudentClient().getStudentGroupByName\n (this.group.getSelectedItem().toString());\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n String birthDate = format.format(jDateChooser.getDate());\n StudentThrift studentThrift = new StudentThrift(\n id,\n getTextID(FIRST_NAME),\n getTextID(LAST_NAME),\n getTextID(MIDDLE_NAME),\n birthDate,\n getTextID(ADDRESS),\n group\n );\n mainWindow.getStudentClient().saveStudent(studentThrift);\n closeDialog();\n }",
"@Override\r\n\tpublic Student createOrUpdateStudentRecord(Student student) {\r\n\t\t\tstudentDAO.addStudent(student);\r\n\t\treturn student;\r\n\t}",
"@Override\n\tpublic void createStudent(Student student) {\n\t\tem.persist(student);\n\t}",
"@Override\n\tpublic boolean saveStudentByPst(final Student s) {\n\t\tString query=\"insert into student values(?,?,?)\";\n\t\treturn jdbcTemplate.execute(query,new PreparedStatementCallback<Boolean>() {\n\t\tpublic Boolean doInPreparedStatement(PreparedStatement ps) throws SQLException ,DataAccessException\n\t\t{\n\t\t\tps.setInt(1,s.getId());\n\t\t\tps.setString(2,s.getName());\n\t\t\tps.setInt(3,s.getAge());\n\t\t\treturn ps.execute();\n\t\t}\n\t\t});\n\t\n\t}",
"public Student saveStudent(Student student) {\n\t\tlog.info(\"Add Student Name = \" + student.getFirstname() + \" \"\n\t\t\t\t+ student.getLastname());\n\t\tlog.debug(\"Initialise SQL Parameters\");\n\t\tfinal Object[] param = new Object[] { student.getMatnr(),\n\t\t\t\tstudent.getFirstname(), student.getLastname(), student.getEmail() };\n\t\tlog.debug(\"Initialise Transaction Manager\");\n\t\tTransactionTemplate tt = new TransactionTemplate(transactionManager);\n\t\tObject result = tt.execute(new TransactionCallback() {\n\t\t\tpublic Object doInTransaction(TransactionStatus status) {\n\t\t\t\t// The transaction is run from here\n\t\t\t\tlog.debug(\"Start Transaction\");\n\t\t\t\tquery_insertStudent.update(param);\n\n\t\t\t\t/*\n\t\t\t\t * activate the following error line to create an Error which\n\t\t\t\t * terminates this method. One will see, that the complete\n\t\t\t\t * transaction is rolled back, hence the insert statement above\n\t\t\t\t * is not executed, alternatively the second rollback statement\n\t\t\t\t * can be activated with the same result which in that case is a\n\t\t\t\t * manual rollback of the transaction\n\t\t\t\t */\n\n\t\t\t\t// if (true) throw new Error(\"Test Exception\");\n\t\t\t\t// or\n\t\t\t\t// status.setRollbackOnly();\n\t\t\t\t/*\n\t\t\t\t * result from query is a list, actually containing only one row\n\t\t\t\t * and one column\n\t\t\t\t */\n\t\t\t\tList<?> results = query_getStudentId.execute();\n\t\t\t\tInteger id = (Integer) results.get(0);\n\t\t\t\tlog.debug(\"End Transaction\");\n\t\t\t\treturn id;\n\t\t\t\t/*\n\t\t\t\t * and the transaction ends here! if no error occurs the\n\t\t\t\t * transaction is committed by Spring otherwise it is rolled\n\t\t\t\t * back\n\t\t\t\t */\n\t\t\t}\n\t\t});\n\t\tInteger id = (Integer) result;\n\t\tstudent.setId(id);\n\t\tlog.info(\"Return ID from inserted dataset = \" + id);\n\t\treturn id!=0 ? student : null;\n\t}",
"@Override\n\tpublic void saveStudent(StudentForm student) {\n\t\t\n\t}",
"@Override\r\n\tpublic Student saveStudent(Student student) {\n\t\treturn studentRepository.save(student);\r\n\t}",
"public static void addStudent(Student student) throws SQLException {\r\n\t String sql = \" INSERT INTO Studentspring VALUES (?,?,?,?,?)\";\r\n\t PreparedStatement pStmt = con.prepareStatement(sql);\r\n\r\n\t String Name=student.getName();\r\n\t int Age=student.getAge();\r\n\t String Course=student.getCourse();\r\n\t int Year=student.getYear();\r\n\t String Section=student.getSection();\r\n\t \r\n\t pStmt.setString(1, Name);\r\n\t pStmt.setInt(2,Age);\r\n\t pStmt.setString(3,Course);\r\n\t pStmt.setInt(4,Year );\r\n\t pStmt.setString(5,Section);\r\n\r\n\t pStmt.executeUpdate();\r\n\t \r\n\t }",
"@Override\n\tpublic void create(Student student) {\n\t\tString query=\"insert into student values('\"+student.getId()+\"','\"+student.getName()+\"','\"+student.getAge()+\"')\";\n\t//\tjdbcTemplate.update(query);\n\t\tint result=jdbcTemplate.update(query);\n\t\tSystem.out.println(result+\"Record Inserted\");\n\t}",
"private void saveData() {\n try {\n Student student = new Student(firstName.getText(), lastName.getText(),\n form.getText(), stream.getText(), birth.getText(),\n gender.getText(), Integer.parseInt(admission.getText()),\n Integer.parseInt(age.getText()));\n\n\n if (action.equalsIgnoreCase(\"new\") && !assist.checkIfNull(student)) {\n\n dao.insertNew(student);\n JOptionPane.showMessageDialog(null, \"Student saved !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n\n } else if (action.equalsIgnoreCase(\"update\") && !assist.checkIfNull(student)) {\n dao.updateStudent(student, getSelected());\n JOptionPane.showMessageDialog(null, \"Student Updated !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n }\n\n prepareTable();\n prepareHistory();\n buttonSave.setVisible(false);\n admission.setEditable(true);\n }catch (Exception e)\n {}\n }",
"void saveStudents(ArrayList<Student> studentList) throws SQLException {\n clearTable(\"Students\");\n Connection conn = getConnection();\n String setStatement, studentName, prefRole;\n double attendance;\n int studentID, groupID;\n for (int i = 0; i < studentList.size(); i++) {\n Student currentStudent = studentList.get(i);\n studentName = currentStudent.getName();\n prefRole = currentStudent.getPrefRole();\n attendance = currentStudent.getAttendance();\n studentID = currentStudent.getStudentID();\n groupID = currentStudent.getGroupID();\n setStatement = \"INSERT INTO Students(studentID, studentName, prefRole, attendance, groupID) VALUES ('\"\n + studentID + \"', '\"\n + studentName + \"', '\"\n + prefRole + \"', '\"\n + attendance + \"', '\"\n + groupID + \"')\";\n Statement stm = conn.createStatement();\n stm.execute(setStatement);\n }\n }",
"public void AddToStudent(){\n\n try {\n\n String addDataSQL = \"INSERT INTO \" + STUDENT_TABLE_NAME + \"(\" + STUDENT_FIRST_COLUMN + \", \" + STUDENT_LAST_COLUMN + \", \" + STUDENT_PHONE_COLUMN + \")\" + \" VALUES ('Margaret', 'Elkins', '555-555-1212')\";\n ConnectDB.statement.executeUpdate(addDataSQL);\n addDataSQL = \"INSERT INTO \" + STUDENT_TABLE_NAME + \"(\" + STUDENT_FIRST_COLUMN + \", \" + STUDENT_LAST_COLUMN +\", \" + STUDENT_PHONE_COLUMN + \")\" + \" VALUES ('Scott', 'Sivad', '555-555-1313')\";\n ConnectDB.statement.executeUpdate(addDataSQL);\n addDataSQL = \"INSERT INTO \" + STUDENT_TABLE_NAME + \"(\" + STUDENT_FIRST_COLUMN + \", \" + STUDENT_LAST_COLUMN +\", \" + STUDENT_PHONE_COLUMN + \")\" + \" VALUES ('Sarah', 'Kwabi', '555-555-1414')\";\n ConnectDB.statement.executeUpdate(addDataSQL);\n addDataSQL = \"INSERT INTO \" + STUDENT_TABLE_NAME + \"(\" + STUDENT_FIRST_COLUMN + \", \" + STUDENT_LAST_COLUMN +\", \" + STUDENT_PHONE_COLUMN + \")\" + \" VALUES ('Caleb', 'Mohammad', '555-555-1515')\";\n ConnectDB.statement.executeUpdate(addDataSQL);\n }\n catch (SQLException se){\n System.out.println(se);\n se.printStackTrace();\n }\n }",
"@Override\r\n public void enroll(Student student, String courseId) throws SQLException {\n\r\n courseDAO.insert(student.getId(), courseId);\r\n\r\n }",
"private void SaveStudentInfo() {\n EditText _fullName = (EditText) findViewById(R.id.editTextFullName);\n EditText _birthdate = (EditText) findViewById(R.id.dateBirthday);\n EditText _fullStreetAddress = (EditText) findViewById(R.id.editTextFullAddress);\n EditText _contactPhone = (EditText) findViewById(R.id.editTextContactPhone);\n EditText _contactEmail = (EditText) findViewById(R.id.editTextContactEmail);\n EditText _parentNames = (EditText) findViewById(R.id.editTextParentNames);\n EditText _defaultRate = (EditText) findViewById(R.id.numberRate);\n EditText _notes = (EditText) findViewById(R.id.editTextNotes);\n\n // ***** Create the Student Object\n Student _student = new Student();\n\n // ***** Set the field values\n _student.fullName = String.valueOf(_fullName.getText());\n _student.birthDate = String.valueOf(_birthdate.getText());\n _student.fullAddress = String.valueOf(_fullStreetAddress.getText());\n _student.contactPhone = String.valueOf(_contactPhone.getText());\n _student.contactEmail = String.valueOf(_contactEmail.getText());\n _student.parentNames = String.valueOf(_parentNames.getText());\n\n // ***** Convert to a double to store in database for calulations\n _student.defaultRate = Double.valueOf(String.valueOf(_defaultRate.getText()));\n\n _student.notes = String.valueOf(_notes.getText());\n\n // **** Save the student information\n _myDb.setStudentInfo(_student);\n\n\n }",
"public void addStudents(Student theStudent) {\n\t\tConnection myConn=null;\n\t\tPreparedStatement myStmt=null;\n\t\ttry\n\t\t{\n\t\t//get db connection\n\t\tmyConn=dataSource.getConnection();\n\t\t\n\t\t// create sql for insert\n\t\tString sql=\"insert into student \"+\"(first_name, last_name, email) \"+\"values(?,?,?)\";\n\t\tmyStmt=myConn.prepareStatement(sql);\n\t\t\n\t\t//set the param values for the student\n\t\tmyStmt.setString(1, theStudent.getFirstName());\n\t\tmyStmt.setString(2, theStudent.getLastName());\n\t\tmyStmt.setString(3, theStudent.getEmail());\n\t\t\n\t\t//execute sql insert\n\t\tmyStmt.execute();\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose(myConn,myStmt,null);\n\t\t}\n\t}",
"public void addStu(Student stu) {\n\t\tSessionFactory sessionFactory = null;\n\t\tStandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n\t\t\t\t.configure()\t\t\t\t\t\t\t\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tsessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n\t\t} catch (Exception ex) {\n\t\t\tStandardServiceRegistryBuilder.destroy(registry);\n\t\t\tSystem.out.println(\"Setup Failed:\" + ex.getMessage());\n\t\t}\n\t\t// Session sessionObj = null; \n\t\tSession sessionObj = sessionFactory.openSession();\n\t\ttry {\n\t\t\t// Creating Hibernate SessionFactory Instance\n\t\t\t// sessionObj = configObj.buildSessionFactory(serviceRegistryObj).openSession();\n\t\t\tsessionObj.beginTransaction();\n\t\t\tsessionObj.save(stu);\n\t\t\tSystem.out.println(\"\\n.......Records Saved Successfully To The Database.......\\n\");\n\t\t\t// Committing The Transactions To The Database\n\t\t\tsessionObj.getTransaction().commit();\n\t\t} catch (Exception sqlException) {\n\t\t\tif (null != sessionObj.getTransaction()) {\n\t\t\t\tSystem.out.println(\"\\n.......Transaction Is Being Rolled Back.......\");\n\t\t\t\tsessionObj.getTransaction().rollback();\n\t\t\t}\n\t\t\tsqlException.printStackTrace();\n\t\t} finally {\n\t\t\tif (sessionObj != null) {\n\t\t\t\tsessionObj.close();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t//插入数据\n\tpublic void insertStudent(Student student) {\n\t\tConnection conn = null;\n\t\tPreparedStatement pStatement = null;\t\t\n\t\ttry {\n\t\t\tconn = MySQLConnectUtil.getMySQLConnection();\n\t\t\tpStatement = conn.prepareStatement(INSERT);\n\t\t\t\n\t\t\tpStatement.setString(1, student.getId());\n\t\t\tpStatement.setString(2, student.getName());\n\t\t\tpStatement.setInt(3, student.getAge());\n\t\t\tint i =pStatement.executeUpdate();\n\t\t\tSystem.out.println(\"影响行数\"+i);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tMySQLConnectUtil.closePreparestatement(pStatement);\n\t\t\tMySQLConnectUtil.closeConnection(conn);\n\t\t}\n\t}",
"int insert(StudentEntity record);",
"@Override\r\n\tpublic void save() {\n\t\tif (section != null && !section.isEmpty()) {\r\n\t\t\tif (gradeLevel == null || gradeLevel.isEmpty()) {\r\n\t\t\t\tSection sec = (Section) Section.extractObject(Section.class.getSimpleName(), section);\r\n\t\t\t\tgradeLevel = sec.gradeLevel;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (course == null && gradeLevel != null && !gradeLevel.isEmpty()) {\r\n\t\t\tGradeLevel lvl = (GradeLevel) GradeLevel.extractObject(GradeLevel.class.getSimpleName(), gradeLevel);\r\n\t\t\tcollege = lvl.college;\r\n\t\t\tcourse = lvl.course;\r\n\t\t}\r\n\t\tif (course!=null && course.startsWith(\"B\")) {\r\n\t\t\tcollege = true;\r\n\t\t}\r\n\t\tif (!isEmptyKey()) {\r\n//\t\t\twe can get the latest enrollment schoolyear\r\n\t\t\ttry {\r\n\t\t\t\tif (\"ENROLLED\".equals(status)) {\r\n\t\t\t\t\tString sc = DBClient.getSingleColumn(BeanUtil.concat(\"SELECT a.schoolYear FROM Enrollment a WHERE a.studentId=\",personId,\" ORDER BY a.schoolYear DESC\")).toString();\r\n\t\t\t\t\tlatestSchoolYear = sc;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (schoolYear==null || schoolYear.isEmpty()) {\r\n\t\t\tschoolYear = AppConfig.getSchoolYear();\r\n\t\t}\r\n\t\tpersonType = \"STUDENT\";\r\n\t\tif (isEmptyKey()) {\r\n\t\t\tsuper.save();\r\n new springbean.SchoolDefaultProcess().createAllSubjects(this);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuper.save();\r\n\t\t}\r\n\t}",
"public int save(Student stud) {\r\n\t\tint status = 0;\r\n\t\ttry {\r\n\t\t\tConnection con = DatabaseUtility.getCon(inputStream);\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\r\n\t\t\t\t\t\"insert into student(first_name,last_name,email,gender,date_of_birth,address,contact_no) values(?,?,?,?,?,?,?)\");\r\n\t\t\tps.setString(1, stud.getFname());\r\n\t\t\tps.setString(2, stud.getLname());\r\n\t\t\tps.setString(3, stud.getEmail());\r\n\t\t\tps.setString(4, stud.getGender());\r\n\t\t\tps.setString(5, stud.getDOB());\r\n\t\t\tps.setString(6, stud.getAddress());\r\n\t\t\tps.setString(7, stud.getContact());\r\n\r\n\t\t\tstatus = ps.executeUpdate();\r\n\t\t\tcon.close();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(ex);\r\n\t\t}\r\n\t\treturn status;\r\n\t}",
"int insert(Student record);",
"int insert(Student record);",
"int insert(Student record);",
"@Override\r\n\t@Transactional\r\n\tpublic void createStudent(Bookmodel s1) {\n\t\tdao.createStudent(s1);\r\n\t}",
"public sust.paperlessexm.entity.Student addStudent(sust.paperlessexm.entity.Student model) throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n hibernateTemplate.save(model);\n return getStudent(model.getPrimaryKey());\n } finally {\n log.debug(\"finished addStudent(sust.paperlessexm.entity.Student model)\");\n }\n }",
"@Override\n\tpublic Student addStudent(Student std)\n\t {\n\t\t return studentrepo.save(std);\t\t \n\t }",
"private void insert() {\n\t\tConfiguration conf = new Configuration();\n\t\tconf.configure(\"hibernate.cfg.xml\");\n\t\tSessionFactory sf = conf.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\ts.beginTransaction();\n\n\t\tQuery query = s.createQuery(\"insert into OldStudent(id,name,grade) select s.id,s.name,s.grade from Student s\");\n\t\tint count = query.executeUpdate();\n\t\tSystem.out.println(\"Number of Rows inserted in the oldstudent table=\" + count);\n\n\t\ts.getTransaction().commit();\n\t\ts.clear();// s.evict() on all student objects in session\n\t\tsf.close();\n\t}",
"int insert(StudentInfo record);",
"private void addStudent(Student student) {\n\t\tSystem.out.println(\"Add Student\");\n\t\tsmb.saveStudent(student);\n\t}",
"private void saveNewStudentToFirebaseDatabase(String studentId) {\n // Extract Student information from the edit text views\n String studentName = mStudentNameEditText.getText().toString().toLowerCase().trim();\n int studentSex = mStudentSex;\n long studentBirthdate = mStudentBirthdate;\n int studentGrade = Integer.parseInt(mStudentGradeEditText.getText().toString());\n\n if (mViewModel.studentPicBitmap != null) {\n // Save photo to Firebase Storage using AsyncTask\n saveStudentPhotoToFirebaseStorage(studentId);\n } else {\n Student newStudent = new Student(studentName, studentSex, studentBirthdate, studentGrade,\n mChosenClassesList, null, studentId);\n\n mStudentsDatabaseReference.child(studentId).setValue(newStudent);\n }\n\n // Close activity\n finish();\n }",
"private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }",
"public void addStudents(Student student) {\r\n System.out.println(\"conectado con model ---> metodo addStudents\");\r\n //TODO\r\n }",
"public void addStudent(Student student) {\n\t\t\r\n\t}",
"public void addStudent(Student InStudent)\n\t{\n\t\tclassRoll.add (InStudent);\n\t\tthis.saveNeed = true;\n\n\t\t\n\t}",
"public Student addStudent(AddOrUpdateStudentDTO student) throws SQLException {\n\n\t\t// try with resources: used when we want for our applicaton to automatically\n\t\t// call the .close() method on whatever \"resource\"\n\t\t// we are using\n\t\t// The connection interface defines a close() method. This method, when invoked,\n\t\t// will disconnect from the database\n\t\t// Whenever we are done with our block of code inside with\n\t\ttry (Connection con = JDBCUtil.getConnection()) {\n\t\t\tString sql = \"INSERT INTO students (student_first_name, student_last_name, student_classification, student_age)\"\n\t\t\t\t\t+ \"VALUES (?,?,?,?)\";\n\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n\n\t\t\tpstmt.setString(1, student.getFirstName());\n\t\t\tpstmt.setString(2, student.getFirstName());\n\t\t\tpstmt.setString(3, student.getClassification());\n\t\t\tpstmt.setInt(4, student.getAge());\n\n\t\t\tint numberOfRecordsInserted = pstmt.executeUpdate(); // Instead of execute query like we use for select\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// statement, INSERT, UPDATE, and DELETE will use\n\t\t\t// executeUpdate(). This method returns an integer representing the number of\n\t\t\t// rows that were modified.\n\n\t\t\t// if numbers of records that were inserted is NOT 1, then something went wrong\n\t\t\tif (numberOfRecordsInserted != 1) {\n\t\t\t\tthrow new SQLException(\"Adding a new Student was unsucessful\");\n\t\t\t}\n\n\t\t\tResultSet rs = pstmt.getGeneratedKeys();\n\t\t\trs.next(); // iterating to the first row\n\t\t\tint automaticallyGeneratedId = rs.getInt(1); // grabing the first column information from that \"row\"\n\n\t\t\t// When we return the Student that we created in the database\n\t\t\t// The missing data is the automatically generated ID\n\t\t\t// How do we obtain that id?\n\t\t\treturn new Student(automaticallyGeneratedId, student.getFirstName(), student.getLastName(),\n\t\t\t\t\tstudent.getClassification(), student.getAge());\n\t\t}\n\t}",
"@Override\r\n\tpublic Student updateStudent(Student student) {\n\t\treturn studentRepository.save(student);\r\n\t\t//return null;\r\n\t}",
"@FXML\n private void updateStudent() {\n System.out.println(\"trying to insert new student to database\");\n DBhandler db = new DBhandler();\n Student s = new Student(\n txfID.getText(),\n txfFirstName.getText(),\n txfLastName.getText(),\n txfAddress.getText(),\n txfZIP.getText(),\n txfZIPloc.getText(),\n txfEmail.getText(),\n txfPhone.getText()\n );\n System.out.println(s.toString());\n db.updateStudentToDatabase(s);\n RecordEditPage.handledStudent=s;\n Cancel(new ActionEvent());\n }",
"public void setStudentList(DatabaseStudent student){\n this.studentSet.add(student);\n }",
"public void crudOperationStudent(){\n //Retrieve Student\n Student student=entityManager.find(Student.class,2L);\n // persistence Context have Student\n //Retrieve Passport\n Passport passport=student.getPassport();\n // persistence Context have Student,passport\n //Update passport number for student\n passport.setPassportNo(\"ZX132322\");\n // persistence Context have Student, updated-passport\n //update Student details\n student.setAge(25);\n // persistence Context have updated-Student, updated-passport\n entityManager.persist(student);\n\n }",
"@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}",
"@Put\n public void storeRepresentation(Representation entity)\n throws ResourceException {\n try {\n JaxbRepresentation<Student> jaxbRep =\n new JaxbRepresentation<Student>(entity, Student.class);\n jaxbRep.validate(FileUtils.getSchema(STUDENT_INPUT_SCHEMA_PATH));\n Student updatedStudent = (Student)jaxbRep.getObject();\n dataService.putStudent(student, updatedStudent);\n getResponse().setEntity(\n new JaxbRepresentation(MediaType.TEXT_XML, updatedStudent));\n getResponse().setStatus(Status.SUCCESS_OK);\n } catch (SAXException ex) {\n logger.log(Level.SEVERE, ex.toString(), ex);\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, ex);\n } catch (Exception ex) {\n logger.log(Level.SEVERE, ex.toString(), ex);\n throw new ResourceException(Status.SERVER_ERROR_INTERNAL, ex);\n }\n }",
"@Override\n\t\tpublic void updateStudent(Student stu) \n\t\t{\n\t\t\tSystem.out.println(\"this doa layer;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\");\n\t\t\ttry{\n\t\t\t\tsessionFactory.getCurrentSession().merge(stu);\t\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.out.println(\"Exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"+e);\n\t\t\t}\n\t\t\t\n\t\t}",
"public boolean addStudent(Student student) throws Exception {\n\t\tint collegeid = 0;\n\t\tString courseid = null;\n\t\tint i = 0;\n\t\tConnection con = null;\n\t\tcon = DBConnector.dbConnection();\n\t\ttry {\n\t\t\tSystem.out.println(student.getCoursename());\n\t\t\tPreparedStatement st = con.prepareStatement(\"select course_id from course where course_name=?\");\n\t\t\tst.setString(1, student.getCoursename());\n\t\t\tResultSet rs = st.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tcourseid = rs.getString(1);\n\t\t\t}\n\t\t\tSystem.out.println(student.getCollegename());\n\t\t\tPreparedStatement st1 = con.prepareStatement(\"select college_id from college where college_name=?\");\n\t\t\tst1.setString(1, student.getCollegename());\n\t\t\tResultSet rs1 = st1.executeQuery();\n\t\t\twhile (rs1.next()) {\n\t\t\t\tcollegeid = rs1.getInt(1);\n\t\t\t}\n\t\t\tPreparedStatement st2 = con.prepareStatement(\n\t\t\t\t\t\"insert into student(student_name, college_id, course_id, phn_no, address) values(?,?,?,?,?)\");\n\t\t\tst2.setString(1, student.getStudentname());\n\t\t\tst2.setInt(2, collegeid);\n\t\t\tst2.setString(3, courseid);\n\t\t\tst2.setString(4, student.getPhno());\n\t\t\tst2.setString(5, student.getAddress());\n\t\t\ti = st2.executeUpdate();\n\t\t\tcon.close();\n\t\t} catch (SQLSyntaxErrorException e) {\n\t\t\tthrow new SQLSyntaxErrorException(\"Error in SQL syntax\");\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException(\"Connection with database failed\");\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"Some error occured\");\n\t\t}\n\t\tif (i != 0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"@Override\n\tpublic boolean saveStudentInfo(Student student) throws Exception {\n\t\ttry {\n\t\t\t registerMapper.saveStudentInfo(student);\n\t\t\t return true ;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\t\n\t\t throw new RunTimeException(e.getMessage()) ;\n\t\t} \n\t}",
"public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}",
"int insert(StudentGuardian record);",
"public void addStudent(Student student);",
"@FXML\n private void newStudent() {\n System.out.println(\"trying to insert new student to database\");\n DBhandler db = new DBhandler();\n Student s = new Student(\n txfID.getText(),\n txfFirstName.getText(),\n txfLastName.getText(),\n txfAddress.getText(),\n txfZIP.getText(),\n txfZIPloc.getText(),\n txfEmail.getText(),\n txfPhone.getText()\n );\n System.out.println(s.toString());\n db.insertStudent(s);\n Cancel(new ActionEvent());\n }",
"Student createStudent();",
"private void updateStudentOnFirebaseDatabase() {\n String studentName = mStudentNameEditText.getText().toString().toLowerCase().trim();\n int studentSex = mStudentSex;\n long studentBirthdate = mStudentBirthdate;\n int studentGrade = Integer.parseInt(mStudentGradeEditText.getText().toString());\n String studentId = mCurrentStudent.getStudentId();\n\n if (mViewModel.studentPicBitmap != null) {\n saveStudentPhotoToFirebaseStorage(studentId);\n } else {\n // Check if the student already has a photo saved\n String photoUrl;\n if (studentHasPhoto) {\n // if has photo, resave the photo to the student database\n photoUrl = mCurrentStudent.getPhotoUrl();\n } else {\n photoUrl = null;\n }\n\n mStudentsDatabaseReference.child(studentId)\n .setValue(new Student(studentName, studentSex, studentBirthdate, studentGrade,\n mChosenClassesList, photoUrl, studentId));\n\n // Close activity\n finish();\n }\n }",
"public void registerDB(Course curs, Student stud) throws SQLException {\r\n Connection con = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/Hogwarts\",\"postgres\" , \"admin\");\r\n Statement st = con.createStatement();\r\n\r\n st.executeUpdate(\"INSERT INTO public.enrolled(\\n\" +\r\n \"\\t\\\"studentID\\\", \\\"courseID\\\")\\n\" +\r\n \"\\tVALUES (\" + stud.getId() + \", \" + curs.getId() + \")\");\r\n\r\n st.close();\r\n }",
"@Override\n\tpublic int insertOne(StudentVO vo) {\n\t\treturn 0;\n\t}",
"public void setStudent(Student s) {\r\n student = s;\r\n }",
"public void addStudent(User user) {\n\t\t\r\n\t}",
"void save(Teacher teacher);",
"@POST\r\n\t@Path(\"/student\")\r\n\tpublic void enrollStudentToCourse(@FormParam(\"studentID\") String studentID,\r\n\t\t\t@FormParam(\"courseID\") String courseID) {\r\n\r\n\t\tStudent student = InMemoryDataStore.getStudent(studentID);\r\n\t\tCourse course = InMemoryDataStore.getCourse(courseID);\r\n\r\n\t\tif (student == null || course == null) {\r\n\t\t\tthrow new WebApplicationException(Response.Status.BAD_REQUEST);\r\n\t\t}\r\n\r\n\t\tstudent.addCourse(courseID);\r\n\t\tcourse.addStudent(studentID);\r\n\t}",
"int insert(SalGrade record);",
"@Override\n public void createStudent(Student student) throws ClassRosterDuplicateIdException, ClassRosterDataValidationException, ClassRosterPersistenceException {\n if (dao.getStudent(student.getStudentId()) != null) {\n throw new ClassRosterDuplicateIdException(\"ERROR: Could not create student. Student Id \" + student.getStudentId() + \" already exists\");\n }\n \n // RULE TWO: is the student valid\n validateStudentData(student);\n \n // RULE THREE: Pass data to DAO\n dao.addStudent(student.getStudentId(), student);\n auditDao.writeAuditEntry(\"Student \" + student.getStudentId() + \" CREATED.\");\n }",
"public void setStudents(StudentDataBase students) {\n this.students = students;\n }",
"@Override\n\tpublic boolean insert(Student student) {\n\t\treturn sDao.insert(student) > 0;\n\t}",
"public Student insertStudent() {\n\t\tSystem.out.print(\"\\n--- 학생 정보 등록 ---\\n\");\n\t\tSystem.out.print(\"학생 이름 입력 \");\n\t\tString name = sc.next();\n\t\tSystem.out.print(\"학생 나이 입력 \");\n\t\tint age = sc.nextInt();\n\t\tSystem.out.print(\"학생 주소 입력 \");\n\t\tString addr= sc.next();\n\t\tStudent st = new Student(name, age, addr);\n\t\treturn st;\n\t}",
"private void updateStudentProfileInfo() {\n\t\t\n\t\tstudent.setLastName(sLastNameTF.getText());\n\t\tstudent.setFirstName(sFirstNameTF.getText());\n\t\tstudent.setSchoolName(sSchoolNameTF.getText());\n\t\t\n\t\t//Update Student profile information in database\n\t\t\n\t}",
"public void createStudent(String name, String ID){}",
"public void setStuData() {\n\n System.out.print(\"Enter The Name : \"); \t String Entered_Name = Scan.next();\n\n System.out.print(\"Enter User Name : \");\t String Entered_User = Scan.next();\n\n System.out.print(\"Enter Password : \");\t int Entered_Pass = Scan.nextInt();\n\n System.out.print(\"Enter Feild : \");\t\t String Entered_Feild = Scan.next();\n\n Students_list.add(new Student(Entered_User , Entered_Name , Entered_Pass , Entered_Feild));\n\n System.out.print(\"Data Has been Saved!\");\n\n }",
"public void setStudentId(int studentId);",
"public void registerStudent(String firstName, String lastName, String bcsYear,\n String email, String accountID) throws SQLException {\n Statement myStatement = studentConn.createStatement();\n\n myStatement.executeUpdate(\"INSERT INTO student(firstName, lastName, bcsYear, email, accountID) \"\n + \"VALUES(\\\"\" + firstName + \"\\\", \\\"\" + lastName + \"\\\", \\\"\"\n + bcsYear + \"\\\", \\\"\" + email + \"\\\", \\\"\" + accountID + \"\\\");\");\n }",
"public void saveStudentRegistrationDetails()\n {\n\n MyStudentRegistrationHandler refrence = new MyStudentRegistrationHandler(student_id,student_name,student_email,student_password);\n\n FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();\n DatabaseReference dr1 = firebaseDatabase.getReference(\"Student_Details\");\n dr1.child(student_id).child(\"Personal_Details\").setValue(refrence);\n Toast.makeText(this, \"Registration Successfull\", Toast.LENGTH_SHORT).show();\n student_name_et.setText(\"\");\n student_id_et.setText(\"\");\n student_password_et.setText(\"\");\n student_email_et.setText(\"\");\n\n }",
"public void save(T t) {\n\t\tif (t instanceof Student) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tController<Person> controller = ControllerFactory.getInstance(ControllerFactory.PERSON);\n\t\t\tcontroller.save(((Student) t).getFather());\n\t\t\tcontroller.save(((Student) t).getMother());\n\t\t}\n\t\tif (t.getId() == -1) {\n\t\t\tt.setId(this.nextID++);\n\t\t}\n\t\tthis.data.put(t.getId(), t);\n\t}",
"void create(Student entity);",
"@Override\n public void addStudent(Student student) {}",
"public int insertStudent(Student aStudent) {\n\t\tint updateCount = 0;\n\t\t\n\t\tint aId = aStudent.getId();\n\t\tString afName = aStudent.getfName();\n\t\tString alName = aStudent.getlName();\n\t\tdouble aGpa = aStudent.getGpa();\n\t\tint aSat = aStudent.getSat();\n\t\tint aMajor = aStudent.getMajor();\n\t\t\n\t\tString sql = \"insert into student values \" +\n\t\t\t\tString.format(\"(%4d, '%s', '%s', %4d, %4.2f , %4d)\", aId, afName, alName, aSat, aGpa, aMajor);\n\n\t\ttry {\n\t\t\tupdateCount = myDB.execSQLUpdate(sql);\n\t\t} catch (SQLException e) { e.printStackTrace(); }\n\t\t\n\t\treturn updateCount;\n\t}",
"public void insertCourse(){\n \n }",
"@Override\n\t/**\n\t * 修改数据\n\t * update mwfj_jdbc.Student set paramr=? where id=?\n\t */\n\tpublic void updateStudent(Student student) {\n\t\t\n\t}",
"@Override\r\n\tpublic void save() {\n\t\tSystem.out.println(\"UserServiceImplÍ┤đđ┴╦\");\r\n\t\tuserDao.save();\r\n\t}",
"public void setStudentID(long studentID);",
"public static void createRecord() throws IOException {\r\n\t\tstudRecs.add(new Student());\r\n\t\tint i = studRecs.size() - 1;\r\n\t\tStudent tempRecord = studRecs.get(i);\r\n\t\tSystem.out.println(\"Creating Student \" + i + \" (\" + tempRecord.getStudentID() + \")\");\r\n\t\ttempRecord.setFirstName(StudentInput.firstName());\r\n\t\ttempRecord.setLastName(StudentInput.lastName());\r\n\t\ttempRecord.setStreetAddress(StudentInput.streetAddress());\r\n\t\ttempRecord.setCity(StudentInput.city());\r\n\t\ttempRecord.setProvince(StudentInput.province());\r\n\t\ttempRecord.setPostalCode(StudentInput.postalCode());\r\n\t\ttempRecord.setPhoneNumber(StudentInput.phoneNumber());\r\n\t\ttempRecord.setBirthDate(StudentInput.birthDate());\r\n\t\tSystem.out.println(\"Student \" + i + \" (\" + tempRecord.getStudentID() + \")\" + \" Created!\");\r\n\t}",
"@Override\n\tpublic void insert(Student student) {\n\t\tString sql = \"INSERT INTO Student VALUES(?,?,?,?)\";\n Object[] objects= {student.getId(),student.getName(),student.getBranch(),student.getPhone()};\n int no_rows_inserted =\tjdbcTemplate.update(sql,objects);\n\t\tSystem.out.println(\"no of rows inserted is:\"+ no_rows_inserted);\n \n\t}",
"public void registerStudent(String webID, Student student) {\n if (students.getStudent(webID) != null)\n throw new IllegalArgumentException();\n\n //add student to database\n students.addStudent(webID, student);\n }",
"public void salvarProfessor(){\n \n this.professor.setName(nome);\n this.professor.setEmail(email);\n this.professor.setSenha(senha);\n\n try {\n \n this.professorServico.persistence(this.professor);\n \n } catch (CadastroUsuarioException ex) {\n \n //Precisa tratar aqui!\n }\n \n setNome(null);\n setEmail(null);\n setSenha(null);\n }",
"public Query_InsertStudent(DataSource ds) {\n\t\t\tsuper.setDataSource(ds);\n\t\t\tsetSql(sql_insertStudent);\n\t\t\tdeclareParameter(new SqlParameter(\"matnr\", Types.VARCHAR));\n\t\t\tdeclareParameter(new SqlParameter(\"firstname\", Types.VARCHAR));\n\t\t\tdeclareParameter(new SqlParameter(\"lastname\", Types.VARCHAR));\n\t\t\tdeclareParameter(new SqlParameter(\"email\", Types.VARCHAR));\n\t\t}",
"public Student addStudent(Student student){\r\n Student.assignId(student);\r\n Student response = repo.save(student);\r\n if(response == null){\r\n StudentChangeEvent event = new StudentChangeEvent(EventType.ADD, student);\r\n notifyObservers(event);\r\n }\r\n return response;\r\n }",
"@Override\r\n\tpublic void saveCourse(int studentid) {\n\t\tint courseid =0;\r\n\t\tSystem.out.println(\"输入课程编号:\");\r\n courseid = input.nextInt();\r\n\t\tStudentDAO dao = new StudentDAOimpl();\r\n\t\tint a = dao.saveCourse(studentid,courseid);\r\n\t\tif (a!=0){\r\n\t\t\tSystem.out.println(\"选课成功\");\r\n\t\t}else\r\n\t\t\tSystem.out.println(\"选课失败\");\r\n\t}",
"@Override\n\tpublic boolean insert() {\n\t\tif(num==null||name==null||email==null||phone==null||project==0||school==0)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tString format=\"INSERT INTO tc_student(num,name,email,phone,degree,project,school,is_cap) values ('%s','%s','%s','%s',%d,%d,%d,%d)\";\n\t\tString sql=String.format(format, num,name,email,phone,degree,project,school,is_cap);\n\t\t//System.out.println(sql);\n\t\treturn mysql.execute(sql);\n\t\t}",
"int insert(TrainingCourse record);",
"@Override\n public StudentDTO createNewStudent(StudentDTO studentDTO) {\n studentRepository.save(studentMapper.studentDTOToStudent(studentDTO));\n log.info(\"Student with id: \" + studentDTO.getId() + \" successfully saved\");\n return studentDTO;\n }",
"@PostMapping(\"/api/students\")\n public ResponseEntity createOrUpdateStudent(@RequestBody StudentDto studentRequest) {\n this.studentService.createOrUpdateStudent(studentRequest);\n return ResponseEntity.ok().build();\n }",
"private static int addNewStudent(){\n\t\tSystem.out.println(\"===Add New Student To Database===\");\n\t\tScanner string_input = new Scanner(System.in); //gets String input from the user\n\t\tScanner integer_input = new Scanner(System.in); //get integer input from the user\n\t\tStudentDetails new_student = new StudentDetails();\n\t\t\n\t\tString firstname;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter new student's first name: \");\n\t\t\tfirstname = string_input.next();\n\t\t}while(!new_student.setFirstName(firstname)); //loop until name input is valid\n\t\t\n\t\tString middlename;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter new student's middle name (Type 'null' if author has no middle name): \");\n\t\t\tmiddlename = string_input.next();\n\t\t}while(!new_student.setMiddleName(middlename)); //loop until name input is valid\n\t\t\n\t\tString lastname;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter new student's last name: \");\n\t\t\tlastname = string_input.next();\n\t\t}while(!new_student.setLastName(lastname)); //loop until name input is valid\n\t\t\n\t\tint grade;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter new student's grade (9 - 12): \");\n\t\t\tgrade = integer_input.nextInt();\n\t\t}while(!new_student.setGrade(grade)); //loop until name input is valid\n\t\t\n\t\tALL_STUDENTS.add(new_student);\n\t\tint new_studentId = ALL_STUDENTS.size() - 1; //since student was the most recently added element to the ALL_STUDENTS ArrayList, its index should be ALL_STUDENTS.size() - 1. Student's index in this ArrayList should be the new student's Id.\n\t\tnew_student.setId(new_studentId); //set the new student's Id\n\t\t\n\t\treturn new_student.getId();\n\t}",
"@Override\r\n\t@Transactional\r\n\tpublic StudentProfileDetail saveStudent(DtoStudentRegistration dtoStudentRegistration) throws ParseException, MessagingException {\r\n\t\t\r\n\t\tStudentProfileDetail studentProfileDetail=daoStudentProfileDetail.getStudentProfileByStudentId(dtoStudentRegistration.getUserId());\r\n\t\tif(studentProfileDetail==null){\r\n\t\t\tstudentProfileDetail=new StudentProfileDetail();\r\n\t\t}\r\n\t\t\r\n\t\tString key = new RandomKeyUtil().nextRandomKey();\r\n\t\t\r\n\t\tUser user=daoUser.get(dtoStudentRegistration.getUserId());\r\n\t\t\r\n\t\t\r\n\t\tif(dtoStudentRegistration.getParentEmail()!=null){\r\n\t\t\r\n\t\tstudentProfileDetail.setParent_Email(dtoStudentRegistration.getParentEmail());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tstudentProfileDetail.setCareer(dtoStudentRegistration.getCareer());\r\n\t\t\r\n\t\tstudentProfileDetail.setCountryMaster(daoCountryMaster.get(dtoStudentRegistration.getCountry()));\r\n\t\tstudentProfileDetail.setEducationTypeMaster(daoEducationTypeMaster.get(dtoStudentRegistration.getEducationType()));\r\n\t\tstudentProfileDetail.setGrade(dtoStudentRegistration.getGrades());\r\n\t\tstudentProfileDetail.setZone(daoZone.get(dtoStudentRegistration.getTimeZone()));\r\n\t\tstudentProfileDetail.setFirst_Name(dtoStudentRegistration.getFirstName());\r\n\t\tstudentProfileDetail.setLast_Name(dtoStudentRegistration.getLastName());\r\n\t\t\r\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yy\");\r\n\t\tString dateInString = dtoStudentRegistration.getBirthDate();\r\n\t\tDate birthDate = formatter.parse(dateInString);\r\n\t\t\r\n\t\tstudentProfileDetail.setBirthDate(birthDate);\r\n\t\t\r\n\t\tstudentProfileDetail.setUser(user);\r\n\t\t\r\n\t\t//promotional 30 min at student sign up\r\n\t\t\r\n\t\tstudentProfileDetail.setMin_Balance(\"30\");\r\n\t\t\r\n\t\t\r\n\t\tStudentProfileDetail studentProfileDetail2=daoStudentProfileDetail.saveOrUpdate(studentProfileDetail);\r\n\t\t\r\n\t\r\n\t\tuser.setFirebase_username(user.getUsername());\r\n\t\tuser.setFirebase_password(key);\r\n\t\tuser.setIs_Verified(\"Y\");\r\n\t\tuser.setLogin_status(\"N\");\r\n\t\tuser=daoUser.saveOrUpdate(user);\r\n\t\t\r\n\t\tList<ParentStudentRelationship> parentStudentRelationshipList=daoParentStudentRelationship.getRelationListByStudentEmail(user.getUsername());\r\n\t\tif(parentStudentRelationshipList!=null && parentStudentRelationshipList.size()>0)\r\n\t\t{\r\n\t\t\tfor(ParentStudentRelationship parentStudentRelationship2:parentStudentRelationshipList){\r\n\t\t\t\tparentStudentRelationship2.setStudentProfileDetail(studentProfileDetail2);\r\n\t\t\t\tdaoParentStudentRelationship.saveOrUpdate(parentStudentRelationship2);\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(dtoStudentRegistration.getParentEmail()!=null && dtoStudentRegistration.getParentEmail()!=\"\"){\r\n\t\t\t\r\n\t\tParentStudentRelationship parentStudentRelationship = daoParentStudentRelationship.getRelationRecordByParentStudentEmail(dtoStudentRegistration.getParentEmail(),user.getUsername());\r\n\t\t\t//int flag=0;\r\n\t\t\tString isVerified=\"Y\";\r\n\t\t\tString addedBy=\"parent\";\r\n\t\t\tUser userParent=daoUser.getUserByEmail(dtoStudentRegistration.getParentEmail(),RoleMaster.PARENT.getIndex());\r\n\t\t\tParentProfileDetail parentProfileDetail=null;\r\n\t\t\tif(userParent!=null)\r\n\t\t\t{\r\n\t\t\t\tparentProfileDetail=new ParentProfileDetail();\r\n\t\t\t\tparentProfileDetail=daoParentProfileDetail.getParentProfileDetailByUserID(userParent.getUser_Id());\r\n\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\t\t\tif(parentStudentRelationship == null){\r\n\t\t\t\t\tparentStudentRelationship = new ParentStudentRelationship();\r\n\t\t\t\t\tisVerified=\"N\";\r\n\t\t\t\t\taddedBy=\"student\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\t\tString parentEmail = dtoStudentRegistration.getParentEmail();\r\n\t\t\t\t\tparentStudentRelationship.setParentEmail(parentEmail);\r\n\t\t\t\t\tparentStudentRelationship.setStudentEmail(user.getUsername());\r\n\t\t\t\t\tparentStudentRelationship.setIs_Verified(isVerified);\r\n\t\t\t\t\tparentStudentRelationship.setParentProfileDetail(parentProfileDetail);\r\n\t\t\t\t\tparentStudentRelationship.setStudentProfileDetail(studentProfileDetail2);\r\n\t\t\t\t\tparentStudentRelationship.setAddedBy(addedBy);\r\n\t\t\t\t\t\r\n\t\t\t\t\tdaoParentStudentRelationship.saveOrUpdate(parentStudentRelationship);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(userParent!=null){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tEmailTemplate emailTemplate=daoEmailTemplate.get(EmailTemplateConstant.studentapprovalbylogin.getIndex());\r\n\t\t\t\t\t\tif(emailTemplate!=null){\r\n\t\t\t\t\t\t\tString parentName=parentProfileDetail.getFirstName()+\" \"+parentProfileDetail.getLastName();\r\n\t\t\t\t\t\t\tString studentName=studentProfileDetail2.getFirst_Name()+\" \"+studentProfileDetail2.getLast_Name();\r\n\t\t\t\t\t\t\tString loginUrl=appUrl+\"/login\";\r\n\t\t\t\t\t\tString emailString=emailTemplate.getTemplate_Text();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\temailString = emailString.replaceAll(\"##PARENTNAME##\", parentName).replaceAll(\"##STUDENTNAME##\", studentName).replaceAll(\"##LOGINURL##\", loginUrl);\r\n\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\temailManager.sendMessageEmail(\"Solicitud AlóProfe\",dtoStudentRegistration.getParentEmail(),emailString);\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tEmailTemplate emailTemplate=daoEmailTemplate.get(EmailTemplateConstant.studentapprovalbysignup.getIndex());\r\n\t\t\t\t\t\tif(emailTemplate!=null){\r\n\t\t\t\t\t\t\tString parentemail=dtoStudentRegistration.getParentEmail();\r\n\t\t\t\t\t\t\tString studentName=studentProfileDetail2.getFirst_Name()+\" \"+studentProfileDetail2.getLast_Name();\r\n\t\t\t\t\t\t\tString signUpUrl=appUrl+\"/signup\";\r\n\t\t\t\t\t\tString emailString=emailTemplate.getTemplate_Text();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\temailString = emailString.replaceAll(\"##PARENTEMAIL##\", parentEmail).replaceAll(\"##STUDENTNAME##\", studentName).replaceAll(\"##SIGNUPURL##\", signUpUrl);\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\temailManager.sendMessageEmail(\"Solicitud AlóProfe\",parentemail,emailString);\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\r\n\t\t\r\n\t}\r\n\t\treturn studentProfileDetail2;\r\n\t}",
"public void setStudent(Student student) {\r\n\t\tthis.student = student;\r\n\t}",
"@Override\n\tpublic void updateStudent(Student student) {\n\t\tem.merge(student);\n\t}",
"public void enrollStudent(Student student) {\n\n\t}",
"public void save() {\n\t\tSystem.out.println(\"-----------from PersonDao.save()\");\n\t}",
"int updateByPrimaryKey(Student record);"
] | [
"0.8166532",
"0.7754946",
"0.7400576",
"0.73550487",
"0.73365563",
"0.7317525",
"0.7256458",
"0.7221687",
"0.71766317",
"0.7102481",
"0.7075663",
"0.70716375",
"0.702524",
"0.7016363",
"0.69550806",
"0.69513726",
"0.694395",
"0.6858928",
"0.68353087",
"0.6813173",
"0.68064225",
"0.67572933",
"0.6699482",
"0.6671838",
"0.6633579",
"0.66334105",
"0.66288894",
"0.66273516",
"0.66273516",
"0.66273516",
"0.6621772",
"0.6610508",
"0.65733624",
"0.6555873",
"0.6518886",
"0.64761436",
"0.6451299",
"0.6446152",
"0.6445575",
"0.64400655",
"0.6428539",
"0.6423299",
"0.6420152",
"0.63511217",
"0.63228226",
"0.6320671",
"0.6317219",
"0.6312",
"0.63061047",
"0.6295137",
"0.6285113",
"0.628222",
"0.6264436",
"0.62608534",
"0.62596583",
"0.625721",
"0.62414914",
"0.6239049",
"0.62281984",
"0.618943",
"0.6175999",
"0.6167013",
"0.61620003",
"0.6160979",
"0.6158228",
"0.61541593",
"0.61508805",
"0.61426675",
"0.61370814",
"0.61275154",
"0.6127072",
"0.61145467",
"0.61138105",
"0.6100781",
"0.6099346",
"0.60966974",
"0.60893923",
"0.607219",
"0.60443115",
"0.6031455",
"0.6030853",
"0.6028148",
"0.6026844",
"0.59965295",
"0.59911716",
"0.598118",
"0.5969391",
"0.5968151",
"0.5968019",
"0.5963328",
"0.5962884",
"0.5961832",
"0.59586096",
"0.5955954",
"0.5945222",
"0.59452176",
"0.59380776",
"0.5922945",
"0.5904746",
"0.59014946"
] | 0.6941977 | 17 |
Retrieves a data object from the database by its primary key. | public sust.paperlessexm.entity.Student getStudent(java.lang.Integer id) throws GenericBusinessException {
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
Student bean = (Student) hibernateTemplate.get(Student.class, id);
return bean;
} finally {
log.debug("finished getStudent(java.lang.Integer id)");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T get(PK id);",
"T getById(PK id);",
"public T get(int objectId) throws SQLException;",
"T getByPk(int key) throws PersistException;",
"T findById(long pk);",
"@SuppressWarnings(\"unchecked\")\r\n public DomainObject getRecordByPrimaryKey(KeyType id) {\r\n Session session = getSession();\r\n try {\r\n return (DomainObject) session.get(getPersistentClass(), id);\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getRecordByPrimaryKey Method:\" + e, e);\r\n throw e;\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n }",
"T load(PK id);",
"PrhFree selectByPrimaryKey(Integer id);",
"public Data findById(Object id);",
"O obtener(PK id) throws DAOException;",
"Clazz selectByPrimaryKey(Integer id);",
"CptDataStore selectByPrimaryKey(String id);",
"PrimaryKey getPrimaryKey();",
"IceApp selectByPrimaryKey(Long id);",
"Dormitory selectByPrimaryKey(Integer id);",
"Yqbd selectByPrimaryKey(Integer id);",
"Book selectByPrimaryKey(String id);",
"Thing selectByPrimaryKey(String thingid);",
"User selectByPrimaryKey(String id);",
"public DataEntry fetchByPrimaryKey(long dataEntryId);",
"public Object get(Object key) {\n byte[] byteKey = keySerde.toBytes(key);\n byte[] result = null;\n try {\n result = db.get(byteKey);\n } catch (RocksDBException e) {\n log.error(\"can not get the value for key: \" + key);\n }\n\n if (result == null) {\n log.info(key + \" does not exist in the rocksDb\");\n return null;\n } else {\n return valueSerde.fromBytes(result);\n }\n }",
"AccessModelEntity selectByPrimaryKey(String id);",
"public E findByPK(Serializable pk) {\n Session session = DAOUtils.getSession();\n Transaction trans = session.beginTransaction();\n\n E entity = session.get(genericType, pk);\n\n trans.commit();\n return entity;\n }",
"SwipersDO selectByPrimaryKey(Integer id);",
"public PrimaryKey getPrimaryKey();",
"public T retrieveByKey(S key) throws SQLException;",
"Owner selectByPrimaryKey(String id);",
"HuoDong selectByPrimaryKey(Integer id);",
"D getById(K id);",
"Key getPrimaryKey();",
"E getObject(int ID) throws DatabaseObjectNotFoundException, DatabaseNotAccessibleException;",
"ApplicationDO selectByPrimaryKey(ApplicationDOKey key);",
"Procdef selectByPrimaryKey(String id);",
"Product selectByPrimaryKey(Long id);",
"ProEmployee selectByPrimaryKey(String id);",
"TCpySpouse selectByPrimaryKey(Integer id);",
"ClinicalData selectByPrimaryKey(Long id);",
"BookInfo selectByPrimaryKey(Integer id);",
"public E findById(Serializable pk) ;",
"Storage selectByPrimaryKey(Integer recordId);",
"Caiwu selectByPrimaryKey(Integer id);",
"User selectByPrimaryKey(Integer id);",
"User selectByPrimaryKey(Integer id);",
"User selectByPrimaryKey(Integer id);",
"User selectByPrimaryKey(Integer id);",
"User selectByPrimaryKey(Integer id);",
"Computer selectByPrimaryKey(Long id);",
"Employee selectByPrimaryKey(String id);",
"Product selectByPrimaryKey(Integer id);",
"SysId selectByPrimaryKey(String id);",
"SysCode selectByPrimaryKey(String id);",
"User selectByPrimaryKey(Long id);",
"ProSchoolWare selectByPrimaryKey(String id);",
"PmKeyDbObj selectByPrimaryKey(Integer pmKeyId);",
"HpItemParamItem selectByPrimaryKey(Long id);",
"Prueba selectByPrimaryKey(Integer id);",
"BaseReturn selectByPrimaryKey(String guid);",
"UserDO selectByPrimaryKey(Integer userCode);",
"PrimaryKey getPrimarykey();",
"Model selectByPrimaryKey(Integer id);",
"Disease selectByPrimaryKey(Integer id);",
"Ltsprojectpo selectByPrimaryKey(Long id);",
"Abum selectByPrimaryKey(String id);",
"Appraise selectByPrimaryKey(Integer id);",
"PaasCustomAutomationRecord selectByPrimaryKey(Integer id);",
"TDwBzzxBzflb selectByPrimaryKey(String objId);",
"public Todo fetchByPrimaryKey(long todoId);",
"T queryForId(ID id) throws SQLException, DaoException;",
"public Object get(Vector primaryKey) {\n CacheKey cacheKey = getCacheKeyWithReadLock(primaryKey);\n\n if (cacheKey == null) {\n return null;\n }\n return cacheKey.getObject();\n }",
"Purchase retrieve(Long id) throws SQLException, DAOException;",
"DataSync selectByPrimaryKey(Integer id);",
"public Ruta findByPrimaryKey(RutaPk pk) throws RutaDaoException;",
"EtpBase selectByPrimaryKey(String id);",
"UserInfo selectByPrimaryKey(Integer id);",
"public static FoundObject fetchByPrimaryKey(String number) {\n\t\treturn getPersistence().fetchByPrimaryKey(number);\n\t}",
"LoginRecordDO selectByPrimaryKey(Long id);",
"Object getPrimaryKey(Object metadataID);",
"AccuseInfo selectByPrimaryKey(Integer id);",
"E getById(long id);",
"@Override\n public T findById(ID id) throws SQLException {\n\n return this.dao.queryForId(id);\n\n }",
"TagData selectByPrimaryKey(Long tagid);",
"M getById(Serializable id) throws DataAccessException;",
"Account selectByPrimaryKey(String id);",
"RecordLike selectByPrimaryKey(String id);",
"QuestionOne selectByPrimaryKey(Integer id);",
"CartDO selectByPrimaryKey(Integer id);",
"ItemStockDO selectByPrimaryKey(Integer id);",
"ItemStockDO selectByPrimaryKey(Integer id);",
"AlipayInfo selectByPrimaryKey(String id);",
"EmployeeDetail getById(long identifier) throws DBException;",
"Factory selectByPrimaryKey(Long id);",
"Article selectByPrimaryKey(String id);",
"Dish selectByPrimaryKey(String id);",
"AliUserInfoDO selectByPrimaryKey(Long id);",
"SysType selectByPrimaryKey(Integer id);",
"Shareholder selectByPrimaryKey(Integer id);",
"public String fetchPrimaryKey(){\n\t\treturn primaryKey;\n\t}",
"Question selectByPrimaryKey(String id);",
"HomeWork selectByPrimaryKey(Long id);",
"Promo selectByPrimaryKey(Integer id);",
"Userinfo selectByPrimaryKey(String userId);"
] | [
"0.76658744",
"0.7487912",
"0.7421938",
"0.74134076",
"0.73507285",
"0.7342234",
"0.73308593",
"0.7302196",
"0.7267665",
"0.7212159",
"0.72092795",
"0.71708626",
"0.7167121",
"0.7143141",
"0.7102131",
"0.70786244",
"0.7072965",
"0.7067387",
"0.70472187",
"0.7041254",
"0.7009883",
"0.6984108",
"0.6983042",
"0.69772804",
"0.6969079",
"0.6966693",
"0.6962342",
"0.6957088",
"0.6948782",
"0.6941969",
"0.6935694",
"0.6934957",
"0.69205993",
"0.69127965",
"0.68969727",
"0.6896849",
"0.6895778",
"0.68940574",
"0.6888819",
"0.6885957",
"0.6881504",
"0.688106",
"0.688106",
"0.688106",
"0.688106",
"0.688106",
"0.6875678",
"0.6875672",
"0.6869647",
"0.68588203",
"0.6852459",
"0.6837077",
"0.6826608",
"0.6823478",
"0.6821933",
"0.68165207",
"0.68151647",
"0.6807156",
"0.6805878",
"0.6802962",
"0.6802181",
"0.6794767",
"0.6790383",
"0.67723566",
"0.6761827",
"0.6760131",
"0.6756815",
"0.6746754",
"0.6732984",
"0.67324674",
"0.67310923",
"0.6727401",
"0.6725548",
"0.67231864",
"0.66965497",
"0.6692013",
"0.66875625",
"0.66863036",
"0.66861314",
"0.66702586",
"0.666985",
"0.66674453",
"0.6665199",
"0.665807",
"0.6654077",
"0.66521454",
"0.66477937",
"0.66477937",
"0.6646205",
"0.66371274",
"0.6635824",
"0.66321206",
"0.66310257",
"0.66242397",
"0.66194266",
"0.66192913",
"0.6615572",
"0.6604909",
"0.66021717",
"0.65995985",
"0.6597378"
] | 0.0 | -1 |
Returns a list of all student instances. | public List getStudentList() throws GenericBusinessException {
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
String queryString = "from " + Student.class.getName() + " e";
// Add a an order by on all primary keys to assure reproducable results.
String orderByPart = "";
orderByPart += " order by e.studentId";
queryString += orderByPart;
Query query = hibernateTemplate.createQuery(queryString);
List list = hibernateTemplate.list(query);
return list;
} finally {
log.debug("finished getStudentList");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic List<Student> getAllStudents() {\n\t\treturn studentRepository.findAll();\r\n\t}",
"List<Student> getAllStudents();",
"@Override\r\n\tpublic List<Student> getAllStudent() {\n\t\treturn sdao.getAllStudent();\r\n\t}",
"public List <Student> getAllStudents();",
"@Override\n\tpublic List<Student> retrieveAllStudents() {\n\t\tTypedQuery<Student> query = em.createQuery(\"select s from Student s\",\n\t\t\t\tStudent.class);\n\t\treturn query.getResultList();\n\t}",
"@Override\r\n\tpublic Collection<Student> findAll() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic List<Student> getAll() {\n\t\treturn dao.getAll();\r\n\t}",
"static List<Student> getStudents() {\n return students;\n }",
"@Override\n\tpublic List<Student> getAllStudents() {\n\t\tList<Student> students = new ArrayList<Student>();\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\t//select CAST(gpa as DECIMAL(3,2)) AS gpa from student;\n\t\t\t//ResultSet rs = stmt.executeQuery(\"select * from student\");\n\t\t\tResultSet rs = stmt.executeQuery(\"select ID, Firstname, Lastname, Program, CAST(gpa as DECIMAL(3,2)) AS gpa from student\");\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tStudent stu = new Student();\n\t\t\t\tstu.setStudentid(rs.getInt(\"ID\"));\n\t\t\t\tstu.setFirstname(rs.getString(\"Firstname\"));\n\t\t\t\tstu.setLastname(rs.getString(\"Lastname\"));\n\t\t\t\tstu.setProgram(rs.getString(\"Program\"));\n\t\t\t\tstu.setGpa(rs.getDouble(\"GPA\"));\n\n\t\t\t\tstudents.add(stu);\n\t\t\t}\n\t\t\t\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn students;\n\t}",
"public List<Student> selectStudentAll() {\n\t\treturn this.studentMaper.selectStudentAll();\r\n\t}",
"public static List<Student> getStudents() {\n\t\tList<Student> students = new ArrayList<>();\n\t\t\n\t\t// add sample data\n\t\tstudents.add(new Student(\"James\", \"Richt\", \"[email protected]\"));\n\t\tstudents.add(new Student(\"Kelly\", \"Lou\", \"[email protected]\"));\n\t\tstudents.add(new Student(\"Lin\", \"Howe\", \"[email protected]\"));\n\t\t\n\t\t// return the list\n\t\treturn students;\n\t}",
"@Override\n\tpublic List<Student> getStudents() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Student> query = currentSession.createQuery(\"from Student order by lastName\", Student.class);\n\n\t\t// execute the query and get the results list\n\t\tList<Student> students = query.getResultList();\n\n\t\t// return the results\n\t\treturn students;\n\t}",
"public List<Student> getAllStudents() throws IOException {\n\t\tstudentList = studentListGenerator.generateList(\"StudentList.txt\");\n\t\treturn studentList;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tpublic List<Student> listStudent() {\n\t\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Student\").list();\n\t\t}",
"public ArrayList<Student> getAllStudents()\n {\n Cursor cursor = sqlServices.getData(USER_TABLE, null, USER_IS_TEACHER + \" = ?\",\n new String[]{\"0\"});\n return getStudentFromCursor(cursor);\n }",
"public static ArrayList<Student> getAllStudenti() {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.parameters = new Object[] {};\n\t\t\trp.type = RequestType.GET_ALL_STUDENTS;\n\t\t\tReceiveContent rps = sendReceive(rp);\n\t\t\treturn (ArrayList<Student>) rps.parameters[0];\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"SendNewsLetter error\");\n\t\t}\n\t\treturn new ArrayList<Student>();\n\t}",
"public ArrayList<Student> getStudents() {\n\n ArrayList<Student> students = new ArrayList<Student>();\n String query = \"SELECT * FROM student\";\n try{\n result = statement.executeQuery(query);\n while(result.next()) {\n\n String id = Integer.toString(result.getInt(\"student_id\"));\n String firstName = result.getString(\"student_first_name\");\n String lastName = result.getString(\"student_last_name\");\n String degree = result.getString(\"degree\");\n String yearOfStudy = result.getString(\"year_of_study\");\n String outcome = result.getString(\"outcome\");\n students.add(new Student(id, firstName, lastName, degree, yearOfStudy, outcome));\n\n }\n }\n catch (SQLException e){\n\n }\n\n return students;\n }",
"@Override\n\tpublic List<Student> queryAll() {\n\t\treturn sDao.queryAll();\n\t}",
"List<Student> getAll() {\n\t\tSessionFactory sessionFactory = null;\n\t\tStandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n\t\t\t\t.configure()\t// hibernate.cfg.xml\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tsessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n\t\t} catch (Exception ex) {\n\t\t\tStandardServiceRegistryBuilder.destroy(registry);\n\t\t\tSystem.out.println(\"Setup Failed:\" + ex.getMessage());\n\t\t}\n\t\t// session = configObj.buildSessionFactory(serviceRegistryObj).openSession();\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = null;\n\t\ttry {\n\t\t\ttx = session.beginTransaction();\n\t\t\tList data = session.createQuery(\"FROM Student\").list();\n\t\t\tfor (Iterator iterator = data.iterator(); iterator.hasNext();) {\n\t\t\t\tStudent st = (Student) iterator.next();\n\t\t\t\tSystem.out.print(\"Student ID: \" + st.getStudentId());\n\t\t\t\tSystem.out.print(\" Last Name: \" + st.getName());\n\t\t\t\tSystem.out.println(\" Address: \" + st.getAddress());\n\t\t\t}\n\t\t\ttx.commit();\n\t\t\treturn data;\n\t\t} catch (HibernateException e) {\n\t\t\tif (tx != null)\n\t\t\t\ttx.rollback();\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn null;\n\t}",
"List<Student> getStudent();",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Student> retrieveAllStudentObjects() {\r\n\t\tList<Student> listOfStudents = new ArrayList<Student>();\r\n\r\n\t\ttry {\r\n\t\t\tlistOfStudents = readSerializedObject();\r\n\r\n\t\t\tif (listOfStudents == null) {\r\n\t\t\t\tSystem.out.println(\"Unable to read from file!\");\r\n\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn listOfStudents;\r\n\t}",
"public ArrayList<Student> getStudents()\n {\n return students;\n }",
"public ArrayList<Student> getStudents() {\r\n\t\treturn students;\r\n\t}",
"public List<Student> stulist() throws Exception {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql:///stuu\", \"root\", \"root\");\n\t\tPreparedStatement ps = conn.prepareStatement(\"select * from student\");\n\t\tResultSet rs = ps.executeQuery();\n\t\tList<Student> list = new ArrayList<Student>();\n\t\twhile(rs.next())\n\t\t{\n\t\t\tStudent s = new Student(rs.getInt(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6));\n\t\t\tlist.add(s);\n\t\t}\n\t\trs.close();\n\t\tps.close();\n\t\tconn.close();\n\t\treturn list;\n\t}",
"public void showstudents(){\n for (int i=0; i<slist.size(); i++){\n System.out.println(slist.get(i).getStudent());\n }\n }",
"@Override\r\n\tpublic Student[] getStudents() {\n\t\treturn this.students;\r\n\t}",
"@GetMapping(path = \"/std/all\")\n\tpublic @ResponseBody Iterable<student> getAllStsudents() {\n\t\treturn studentRepo.findAll();\n\n\t}",
"public Student getStudents() {\n\t\treturn this.student;\n\t}",
"public List<StudentDto> getAllStudents() {\n\t\tList<Student> studentList = studentRepository.findAll();\n\t\tif (ObjectUtils.isEmpty(studentList))\n\t\t\tthrow new ResourceNotFoundException(Constants.noDataFound);\n\n\t\tList<StudentDto> studentDtoList = studentList.stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t .map(converter::convert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.toList());\t\t\n\t\treturn studentDtoList;\n\t}",
"Collection<Instance> getInstances();",
"public static ArrayList<Student> getAllStudents() throws SQLException {\n\t\t\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\t\t\t\r\n\t\t\t\tConnection connection = SQLUtil.getConnection();\r\n\t\t\t\tStatement statement = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\r\n\t\t\t\t\r\n\t\t\t\tString sql = \"SELECT * FROM students\";\r\n\t\t\t\t\r\n\t\t\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\t\t\t\r\n\t\t\t\tresultSet.first();\r\n\t\t\t\t\r\n\t\t\t\twhile (!resultSet.isAfterLast()) {\r\n\t\t\t\t\tStudent student = new Student(resultSet.getString(\"firstname\"), resultSet.getString(\"lastname\"), resultSet.getString(\"registration_number\"));\r\n\r\n\t\t\t\t\tstudents.add(student);\r\n\t\t\t\t\tresultSet.next();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn students;\r\n\t\t\r\n\t}",
"Student[] getStudents(){\n\t\treturn enrolled.toArray(new Student[enrolled.size()]);\n\t}",
"public ArrayList<Student> studentList()\n {\n ArrayList<Student> studentList = new ArrayList<>();\n try\n {\n DatabaseConnection databaseConnection = new DatabaseConnection();\n String query = \"select * from student\";\n ResultSet rs = databaseConnection.s.executeQuery(query);\n Student student;\n while(rs.next())\n {\n student = new Student(rs.getInt(\"student_id\"), rs.getString(\"student_name\"), rs.getString(\"batch\"), rs.getString(\"student_username\"), rs.getString(\"student_password\"));\n studentList.add(student);\n }\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(null, e);\n }\n return studentList;\n }",
"@Override\n\t public List<Student> getAllStudent(BigInteger stdId){\n\t \t\n\t\t \n\t \treturn (List<Student>) studentrepo.findAll(); \t\n\t }",
"public ArrayList<Student> getStudents() {\r\n\t\treturn this.students;\r\n\t}",
"public List<ServiceInstance> getAllInstances();",
"public ArrayList getStudents();",
"private void viewAllStudents() {\n Iterable<Student> students = ctrl.getStudentRepo().findAll();\n students.forEach(System.out::println);\n }",
"public static List<Student> getAllStudents(){\r\n Student student1 = new Student(\"Dowlath\",2,3.6,\"male\", Arrays.asList(\"Swim\",\"BasketBall\",\"VolleyBall\"),11);\r\n Student student2 = new Student(\"Bhavya\",2,3.8,\"female\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),12);\r\n\r\n\r\n /* 3rd Grade Students */\r\n Student student3 = new Student(\"Priya\",3,4.0,\"female\", Arrays.asList(\"Swim\",\"BasketBall\",\"Aerobics\"),10);\r\n Student student4 = new Student(\"Arsh\",3,3.9,\"male\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),9);\r\n\r\n\r\n /* 4th Grade Students */\r\n Student student5 = new Student(\"Sowmiya\",4,3.5,\"female\", Arrays.asList(\"Swim\",\"Dancing\",\"FootBall\"),15);\r\n Student student6 = new Student(\"Ariz\",4,3.9,\"male\",Arrays.asList(\"Swim\",\"BasketBall\",\"BaseBall\",\"FootBall\"),14);\r\n\r\n List<Student> students = Arrays.asList(student1,student2,student3,student4,student5,student6);\r\n return students;\r\n }",
"@Query(\"from Student\")\n\tList<Student> findAllStudents();",
"public ArrayList<Student> getStudentList() {\n return studentList;\n }",
"@HystrixCommand(fallbackMethod = \"reliable\")\n\tpublic List<Student> getStudents() {\n\t\tResponseEntity<List<Student>> response = this.restTemplate.exchange(this.resourceUrl + \"/all\", HttpMethod.GET,\n\t\t\t\tnull, new ParameterizedTypeReference<List<Student>>() {\n\t\t\t\t});\n\t\treturn response.getBody();\n\t}",
"public ArrayList<Student> getStudentList() {\r\n return studentList;\r\n }",
"public Iterable<StudentQualificationPersonDetail> getStudentRegisteredData(){\n\t\t\n\t\treturn sqcRepository.findAll();\n\t}",
"public StudentDataBase getStudents() {\n return students;\n }",
"@Override\n\tpublic List<Student> geStudents() {\n\t\treturn null;\n\t}",
"@GetMapping(\"/students\")\n\tpublic List<Student> getStudents(){\n\t\n\t\treturn theStudents;\n\t}",
"public List<Student> getAllStudentData() {\r\n\t\tList<Student> list = new ArrayList<Student>();\r\n\t\ttry {\r\n\t\t\tConnection con = DatabaseUtility.getCon(inputStream);\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\"select * from student\");\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tStudent stud = new Student();\r\n\r\n\t\t\t\tstud.setRollno(rs.getInt(1));\r\n\t\t\t\tstud.setFname(rs.getString(2));\r\n\t\t\t\tstud.setLname(rs.getString(3));\r\n\t\t\t\tstud.setEmail(rs.getString(4));\r\n\t\t\t\tstud.setGender(rs.getString(5));\r\n\t\t\t\tstud.setDOB(rs.getString(6));\r\n\t\t\t\tstud.setAddress(rs.getString(7));\r\n\t\t\t\tstud.setContact(rs.getString(8));\r\n\r\n\t\t\t\tlist.add(stud);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(ex);\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}",
"public List<User> getAllStudent() {\n\t\t return userDao.getAllUsers();\r\n\t }",
"@RequestMapping(value=\"/students\", method=RequestMethod.GET) //MediaType.APPLICATION_XML_VALUE\r\n\tpublic List<Student> getStudentsList() {\r\n\t\tArrayList<Student> list = new ArrayList<Student>();\r\n\t\tlist.add(new Student(\"Kaja\", \"Piloun\", \"123465\", 25, null));\r\n\t\tlist.add(new Student(\"Paja\", \"Pilouna\", \"123465\", 25, null));\r\n\t\tlist.add(new Student(\"Vaja\", \"Pilounen\", \"123465\", 25, null));\r\n\t\t\r\n\t\treturn list;\r\n\t}",
"public ArrayList<Student> getStudentList()\r\n\t {\r\n\t\treturn studentList;\r\n\t\t\r\n\t }",
"public Set<Student> getStudents() {\n return students;\n }",
"@Override\r\n public List<String> getStudenti() {\r\n List<Studente> listaStudenti = studenteFacade.findAll();\r\n List<String> result = new ArrayList<>();\r\n\r\n for (Studente s : listaStudenti) {\r\n result.add(s.toString());\r\n }\r\n return result;\r\n }",
"@Override\n\t//查询所有数据\n\tpublic List<Student> selectStudents() {\n\t\tConnection connection =null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tList<Student> sList = new ArrayList<Student>();\n\t\t\n\t\ttry {\n\t\t\tconnection = MySQLConnectUtil.getMySQLConnection();\n\t\t\tps = connection.prepareStatement(QUARYSQL);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudent student = new Student();\n\t\t\t\tstudent.setId(rs.getString(\"ID\"));\n\t\t\t\tstudent.setName(rs.getString(\"NAME\"));\n\t\t\t\tstudent.setAge(rs.getInt(\"AGE\"));\n\t\t\t\tsList.add(student);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tMySQLConnectUtil.closeResultset(rs);\n\t\t\tMySQLConnectUtil.closePreparestatement(ps);\n\t\t\tMySQLConnectUtil.closeConnection(connection);\n\t\t}\n\t\treturn sList;\n\t}",
"public ArrayList<Student> getAllStudents() throws SQLException {\r\n\t\tArrayList<Student> studentList = new ArrayList<Student>();\r\n\t\tConnection dbConnection = null;\r\n\r\n\t\ttry {\r\n\t\t\tdbConnection = openConnection();\r\n\r\n\t\t\tString sqlText = \"SELECT id, firstname, lastname, streetaddress, postcode, postoffice \"\r\n\t\t\t\t\t+ \"FROM Student ORDER BY id DESC\";\r\n\r\n\t\t\tPreparedStatement preparedStatement = dbConnection.prepareStatement(sqlText);\r\n\r\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\r\n\r\n\t\t\twhile (resultSet.next()) {\r\n\t\t\t\tint id = resultSet.getInt(\"id\");\r\n\t\t\t\tString firstname = resultSet.getString(\"firstname\");\r\n\t\t\t\tString lastname = resultSet.getString(\"lastname\");\r\n\t\t\t\tString streetaddress = resultSet.getString(\"streetaddress\");\r\n\t\t\t\tString postcode = resultSet.getString(\"postcode\");\r\n\t\t\t\tString postoffice = resultSet.getString(\"postoffice\");\r\n\r\n\t\t\t\tstudentList.add(new Student(id, firstname, lastname, streetaddress, postcode, postoffice));\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException sqle) {\r\n\t\t\tthrow sqle; // Let the caller decide what to do with the exception\r\n\r\n\t\t} finally {\r\n\t\t\tcloseConnection(dbConnection);\r\n\t\t}\r\n\t\treturn studentList;\r\n\t}",
"public ArrayList<Student> getStudentList() {\n\t\treturn studentList;\n\t}",
"public ArrayList <Students> getStudentList ()\n\n {\n\n // Returns studentList when called.\n return studentList;\n\n }",
"@Override\r\n\tpublic Students findStudents() {\n\t\treturn null;\r\n\t}",
"@Test\n public void testFindAllStudents() throws Exception {\n List<Students> list = cs.findAllStudents();\n for (Students stu :\n list) {\n System.out.println(stu);\n }\n }",
"public ArrayList<Student> selectAllStudents() {\n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n ArrayList<Student> studentList = new ArrayList<>();\n try {\n Class.forName(Tools.MYSQL_JDBC_DRIVER);\n\n connection = DriverManager.getConnection(Tools.DB_URL, Tools.USERNAME, Tools.PASSWORD);\n\n statement = connection.createStatement();\n\n String query = \"SELECT * FROM STUDENTS;\";\n\n resultSet = statement.executeQuery(query);\n\n while (resultSet.next()) {\n String id = resultSet.getString(\"STUDENT_ID\");\n String lastName = resultSet.getString(\"LAST_NAME\");\n String firstName = resultSet.getString(\"FIRST_NAME\");\n String dob = resultSet.getString(\"DATE_OF_BIRTH\");\n float fees = resultSet.getFloat(\"TUITION_FEES\");\n Student student = new Student(id, firstName, lastName, dob, fees);\n\n studentList.add(student);\n\n }\n\n } catch (ClassNotFoundException | SQLException e) {\n e.printStackTrace();\n } finally {\n if (resultSet != null) {\n try {\n resultSet.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n\n if (statement != null) {\n try {\n statement.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n if (connection != null) {\n try {\n connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n return studentList;\n }",
"java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList();",
"public Stream<Student> students() {\n ////\n return grades.keySet().stream();\n }",
"public String[] getStudents() {\n\t\treturn students;\n\t}",
"private static List<Student> getStudents() {\n \t\n List<Student> studentList = new ArrayList<>();\n Scanner readStudents=null;\n try {\n\t\t\treadStudents = new Scanner(new File(\"src/Student.csv\"));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Student file not found.\");\n\t\t}\n\t\twhile(readStudents.hasNextLine()) {\n\t\t\tString[] studentLine = readStudents.nextLine().split(\",\");\n\t\t\tlong studentId= Long.parseLong(studentLine[0]);\n\t\t\tint age = Integer.parseInt(studentLine[4]);\n\t\t\tlong recordId = Long.parseLong(studentLine[5]);\n \tStudent newStudent = new Student(studentId,age,studentLine[1],studentLine[2],studentLine[3],recordId);\n \tstudentList.add(newStudent);\n\t\t}\n \n readStudents.close();\n return studentList;\n }",
"@Override\r\n\tpublic List<StudentBean> getStudentsByClassId(String classId) {\n\t\treturn studentDAO.getStudentsByClassId(classId);\r\n\t}",
"public java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList() {\n\t\t\treturn student_;\n\t\t}",
"abstract public void showAllStudents();",
"public List<StudentExam> getRegisteredExams(Student student) {\n return null;\n }",
"public List<String> getStudents();",
"public List<ServiceInstance<InstanceDetails>> listInstances() throws Exception {\n\t\tCollection<String> serviceNames = serviceDiscovery.queryForNames();\n\t\tSystem.out.println(serviceNames.size() + \" type(s)\");\n\t\tList<ServiceInstance<InstanceDetails>> list = new ArrayList<>();\n\t\tfor (String serviceName : serviceNames) {\n\t\t\tCollection<ServiceInstance<InstanceDetails>> instances = serviceDiscovery.queryForInstances(serviceName);\n\t\t\tSystem.out.println(serviceName);\n\t\t\tfor (ServiceInstance<InstanceDetails> instance : instances) {\n\t\t\t\toutputInstance(instance);\n\t\t\t\tlist.add(instance);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"public HashMap<Integer, Student> getStudents() {\n return _students;\n }",
"public ArrayList<Student> GetAllStudentData() {\n\t\tArrayList<Student> result = new ArrayList<>();\n\t\tcurr = head;\n\t\twhile (curr != null) {\n\t\t\tArrayList<Student> theData = curr.data.students.getStudentData();\n\t\t\tfor (int i = 0; i <= curr.data.students.getStudentDataCount() - 1; i++) {\n\t\t\t\tresult.add(theData.get(i));\n\t\t\t}\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn result;\n\t}",
"public List<Student> fetch() {\n List<Student> studentList = new ArrayList<>();\n String[] columns = new String[]{DatabaseHelper.ID, DatabaseHelper.STUDENT_NAME, DatabaseHelper.STUDENT_ADDRESS};\n Cursor cursor = sqLiteDatabase.query(DatabaseHelper.TABLE_NAME, columns, null,\n null, null, null, null);\n while (cursor.moveToNext()) {\n Student student = new Student(cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_NAME)),\n cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_ADDRESS)),\n cursor.getInt(cursor.getColumnIndex(DatabaseHelper.ID)));\n studentList.add(student);\n }\n return studentList;\n }",
"public Set<Student> getStudentList() {\n\t\treturn nameList;\r\n\t}",
"List<NominatedStudentDto> showAll();",
"private static void showStudentDB () {\n for (Student s : studentDB) {\n System.out.println(\"ID: \" + s.getID() + \"\\n\" + \"Student: \" + s.getName());\n }\n }",
"public Student[] listStudents(long id) {\n\t\treturn new Tutor().listMyStudents(id);\n\t}",
"public void printStudents()\n {\n for(Student s : students)\n System.out.println(s);\n }",
"@Override\n\tpublic Iterator<Student> selectAll() {\n\t\tString sql=\"SELECT a.id,a.num,a.name,a.email,a.phone,a.degree,a.project,a.school,b.name,a.is_cap from tc_student as a,tc_school as b where a.school=b.id\";\n\t\tArrayList<Student> arr=new ArrayList<Student>();\n\t\tResultSet rs=mysql.query(sql);\n\t\ttry {\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tStudent stu=new Student();\n\t\t\t\tstu.setId(rs.getInt(1));\n\t\t\t\tstu.setNum(rs.getString(2));\n\t\t\t\tstu.setName(rs.getString(3));\n\t\t\t\tstu.setEmail(rs.getString(4));\n\t\t\t\tstu.setPhone(rs.getString(5));\n\t\t\t\tstu.setDegree(rs.getShort(6));\n\t\t\t\tstu.setProject(rs.getInt(7));\n\t\t\t\tstu.setSchool(rs.getInt(8));\n\t\t\t\tstu.setSchoolstring(rs.getString(9));\n\t\t\t\tstu.setIs_cap(rs.getInt(10));\n\t\t\t\tstu.setDegreestring(degreemap[stu.getDegree()]);\n\t\t\t\tarr.add(stu);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn arr.iterator();\n\t}",
"public ArrayList<Student> getStudentsForCourse(Course course){\n ArrayList<Student> result = new ArrayList();\n \n String statement = GET_SUDENTS_FOR_COURSE;\n \n ResultSet rs = data.makePreparedStatement(statement,new Object[]{(Object)course.getId()});\n try {\n while(rs.next()){\n Student student = new Student(rs.getInt(\"id\"),rs.getString(\"first_name\"),rs.getString(\"last_name\"),\n rs.getDate(\"birthday\").toLocalDate(),rs.getDouble(\"tuition_fees\"));\n result.add(student);\n \n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getStudentsForCourse()\");\n }finally{\n data.closeConnections(rs,data.ps, data.conn);\n }\n \n return result;\n }",
"@GetMapping(\"/api/students\")\n public ResponseEntity<List<StudentDto>> getAllStudents() {\n return ResponseEntity.ok(studentService.getAllStudents());\n }",
"private StudentRecord[] getList() {\r\n\t\treturn this.list;\r\n\t}",
"public List getStudentList(int startIndex, int endIndex) throws GenericBusinessException {\n if (startIndex < 1) {\n startIndex = 1;\n }\n if ( (endIndex - startIndex) < 0) {\n // Just return an empty list.\n return new ArrayList();\n }\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n String queryString = \"from \" + Student.class.getName() + \" e\";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n query.setFirstResult(startIndex - 1);\n query.setMaxResults(endIndex - startIndex + 1);\n List list = hibernateTemplate.list(query);\n return list;\n } finally {\n log.debug(\"finished getStudentList(int startIndex, int endIndex)\");\n }\n }",
"public List<student> getAllStudent() { \n List<student> studentArrayList = new ArrayList<>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table; // PALITAN TO NG TABLE NAME NIYO\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n student student = new student(); //PALITAN NG MGA DAPAT PALITAN NA VARIABLES\n student.setId(Integer.parseInt(cursor.getString(0)));\n student.setfName(cursor.getString(1));\n student.setlName(cursor.getString(2));\n studentArrayList.add(student);\n } while (cursor.moveToNext());\n }\n\n // return contact list\n return studentArrayList;\n }",
"List<StudentRecord> getStudents(String clientId) throws Exception;",
"@GetMapping(path = \"/all\")\n public Set<StudentCommand> getAllStudents() {\n Set<StudentCommand> studentCommands = new HashSet<>();\n\n Iterable<Student> students = studentService.getAllStudents();\n\n for (Student s : students) {\n StudentCommand command = studentToStudentCommand.converter(s);\n studentCommands.add(command);\n }\n return studentCommands;\n }",
"@Override\r\n\tpublic List<Exam> listAllExamsByStudent(Student student) {\n\t\treturn null;\r\n\t}",
"@Override\n\t@Transactional\n\tpublic List<Student> getStudents() {\n\t\tAuthentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\tString username = authentication.getName();\n\t\tSystem.out.println(\"The username is: \"+username);\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\tQuery<Student> query = currentSession.createQuery(\"from Student s where s.username='\"+username+\"'\", Student.class);\n\t\t\n List<Student> students = query.getResultList();\n\t\t\n\t\treturn students;\n\t}",
"public List<Student> search() {\n \tQuery query = em.createQuery(\"Select e FROM Student e WHERE e.grade > 50.00\");\r\n \tList<Student> result = query.getResultList();\r\n \t\r\n \t \r\n \t// Query for a List of data elements.\r\n// \tQuery query = em.createQuery(\"Select e.firstname FROM Student e\");\r\n// \tList<String> result = query.getResultList();\r\n \t \r\n \t// Query for a List of element arrays.\r\n// \tQuery query = em.createQuery(\"Select e.firstname, e.grade FROM Student e\");\r\n// \tList<Object[]> result = query.getResultList();\r\n \t\r\n\t\t// \tsetFirstResult()\r\n\t\t// \tsetMaxResults()\r\n \t\r\n \treturn result;\r\n }",
"public ProxyList<Student> getStudents() {\n return students;\n }",
"private ArrayList<Student> getStudentsFromRS(ResultSet rs) {\t\n\t\t\n\t\tArrayList<Student> someStudents = new ArrayList<Student>();\n\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudent aStudent = new Student();\n\t\t\t\taStudent.setId(rs.getInt(\"id\"));\n\t\t\t\taStudent.setfName(rs.getString(\"first_name\"));\n\t\t\t\taStudent.setlName(rs.getString(\"last_name\"));\n\t\t\t\taStudent.setGpa(rs.getDouble(\"gpa\"));\n\t\t\t\taStudent.setSat(rs.getInt(\"sat\"));\n\t\t\t\taStudent.setMajor(rs.getInt(\"major_id\"));\n\t\t\t\tsomeStudents.add(aStudent);\n\t\t\t}\n\t\t} catch (SQLException ex) {ex.printStackTrace();};\n\t\t\n\t\treturn someStudents.isEmpty() ? null : someStudents;\n\t}",
"@Override\n public List<Student> getStudentsByCourse(Course course) {\n return null;\n }",
"public void findallstudentservice() {\n\t\t dao.findallstudent();\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic List<Student> getStudents(String courseName) {\n\t\tList<Student> students=new ArrayList<>();\r\n\t\tString sql=\"select studentid, studentname, studentshv.courseid from studentshv inner join courseshv on studentshv.courseid=courseshv.courseid where coursename=?\";\r\n\t\tPreparedStatement pstmt = null;\r\n\t\ttry {\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, courseName);\r\n\t\t\tResultSet rs=pstmt.executeQuery();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tlong studentId=rs.getLong(\"studentid\");\r\n\t\t\t\tString studentName=rs.getString(\"studentname\");\r\n\t\t\t\tlong courseId=rs.getLong(\"courseid\");\r\n\t\t\t\tstudents.add(new Student(studentId,studentName,courseId));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn students;\r\n\t}",
"public static List<String> getActivitiesOfAllStudents(){\r\n\t\treturn StudentRepository.getStudents()\r\n\t\t\t.stream() // Stream<Student>\r\n\t\t\t.map(Student :: getActivities) // Stream<List<String>>\r\n\t\t\t// want to pass a List and get back a stream of that list\r\n\t\t\t.flatMap(List :: stream) // Stream<String>\r\n\t\t\t.collect(Collectors.toList());\r\n\t}",
"public String getStudents(){\n\t\treturn this.students;\n\t}",
"private void initializeStudentRegList() {\r\n try {\r\n String query = \"SELECT * FROM ongoingregistrations WHERE studentid=?\";\r\n PreparedStatement pstmt = conn.prepareStatement(query);\r\n pstmt.setInt(1, id);\r\n ResultSet rs = pstmt.executeQuery();\r\n studentRegList = new ArrayList<>();\r\n while (rs.next()) {\r\n studentRegList.add(new Registration(rs.getInt(\"studentid\"), rs.getInt(\"courseid\"), rs.getInt(\"secnum\"), rs.getString(\"grade\"), conn));\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"List<ScoreEntity> findList(int studentId);",
"public ArrayList<Studentdto> studentList() throws Exception {\n\t\tArrayList<Studentdto> studentlist = new ArrayList<Studentdto>();\n\t\tConnection con = null;\n\t\tcon = DBConnector.dbConnection();\n\t\ttry {\n\t\t\tPreparedStatement st = con.prepareStatement(\n\t\t\t\t\t\"select student_name,college_name, course_name,phn_no,address from student s ,college co,course cr where s.course_id=cr.course_id and s.college_id=co.college_id\");\n\t\t\tResultSet rs = st.executeQuery();\n\t\t\tint i = 1;\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudentdto studentdto = new Studentdto();\n\t\t\t\tstudentdto.setSlno(i++);\n\t\t\t\tstudentdto.setStudentname(rs.getString(1));\n\t\t\t\tstudentdto.setCollegename(rs.getString(2));\n\t\t\t\tstudentdto.setCoursename(rs.getString(3));\n\t\t\t\tstudentdto.setAddress(rs.getString(4));\n\t\t\t\tstudentdto.setPhno(rs.getString(5));\n\t\t\t\tstudentlist.add(studentdto);\n\t\t\t}\n\t\t\tcon.close();\n\t\t} catch (SQLSyntaxErrorException e) {\n\t\t\tthrow new SQLSyntaxErrorException(\"Error in SQL syntax\");\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException(\"Connection with database failed\");\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"Some error occured\");\n\t\t}\n\t\treturn studentlist;\n\t}",
"public List<ServiceInstance> getAllInstances(String serviceName);"
] | [
"0.7435255",
"0.735632",
"0.7302495",
"0.7272416",
"0.7233815",
"0.71994746",
"0.71855533",
"0.71575934",
"0.7135459",
"0.7124268",
"0.70958775",
"0.70415765",
"0.7011582",
"0.693926",
"0.6931916",
"0.6919689",
"0.6829478",
"0.68229836",
"0.6793494",
"0.6745023",
"0.6740324",
"0.6738216",
"0.6698756",
"0.66953653",
"0.66615975",
"0.66517925",
"0.6644504",
"0.66425085",
"0.6642044",
"0.6638376",
"0.66354436",
"0.66256934",
"0.66151494",
"0.6614612",
"0.66139305",
"0.66070557",
"0.6598469",
"0.65928173",
"0.657267",
"0.6555901",
"0.6540064",
"0.65363055",
"0.6525296",
"0.6516508",
"0.650227",
"0.64968395",
"0.6494105",
"0.64918846",
"0.6486358",
"0.6485147",
"0.6480442",
"0.64703906",
"0.64599025",
"0.6455286",
"0.64476466",
"0.64435136",
"0.6435652",
"0.6420979",
"0.63932127",
"0.638652",
"0.6378905",
"0.636991",
"0.63467807",
"0.6345598",
"0.63130814",
"0.6297948",
"0.6297208",
"0.62945163",
"0.6285258",
"0.6270615",
"0.62677747",
"0.6235919",
"0.62233436",
"0.61911994",
"0.61688787",
"0.61681783",
"0.6159952",
"0.61566913",
"0.6139405",
"0.6131328",
"0.612418",
"0.6121342",
"0.61202574",
"0.60997325",
"0.60783297",
"0.60757554",
"0.606984",
"0.6066896",
"0.6030139",
"0.601832",
"0.6004476",
"0.5996019",
"0.597381",
"0.59501",
"0.5931536",
"0.59264994",
"0.59256774",
"0.5920639",
"0.5914194",
"0.5908308"
] | 0.666703 | 24 |
Returns a subset of all student instances. | public List getStudentList(int startIndex, int endIndex) throws GenericBusinessException {
if (startIndex < 1) {
startIndex = 1;
}
if ( (endIndex - startIndex) < 0) {
// Just return an empty list.
return new ArrayList();
}
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
String queryString = "from " + Student.class.getName() + " e";
// Add a an order by on all primary keys to assure reproducable results.
String orderByPart = "";
orderByPart += " order by e.studentId";
queryString += orderByPart;
Query query = hibernateTemplate.createQuery(queryString);
query.setFirstResult(startIndex - 1);
query.setMaxResults(endIndex - startIndex + 1);
List list = hibernateTemplate.list(query);
return list;
} finally {
log.debug("finished getStudentList(int startIndex, int endIndex)");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Student> selectStudentAll() {\n\t\treturn this.studentMaper.selectStudentAll();\r\n\t}",
"@Override\r\n\tpublic Collection<Student> findAll() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List<StudentVO> sellectAll() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<Student> queryAll() {\n\t\treturn sDao.queryAll();\n\t}",
"@Override\r\n\tpublic List<Student> getAllStudent() {\n\t\treturn sdao.getAllStudent();\r\n\t}",
"List<Student> getAllStudents();",
"@Override\r\n\tpublic List<Student> getAll() {\n\t\treturn dao.getAll();\r\n\t}",
"public List <Student> getAllStudents();",
"@Override\n\tpublic List<Student> retrieveAllStudents() {\n\t\tTypedQuery<Student> query = em.createQuery(\"select s from Student s\",\n\t\t\t\tStudent.class);\n\t\treturn query.getResultList();\n\t}",
"Student[] getStudents(){\n\t\treturn enrolled.toArray(new Student[enrolled.size()]);\n\t}",
"@Override\r\n\tpublic List<Student> getAllStudents() {\n\t\treturn studentRepository.findAll();\r\n\t}",
"@Override\n\tpublic Iterator<Student> selectAll() {\n\t\tString sql=\"SELECT a.id,a.num,a.name,a.email,a.phone,a.degree,a.project,a.school,b.name,a.is_cap from tc_student as a,tc_school as b where a.school=b.id\";\n\t\tArrayList<Student> arr=new ArrayList<Student>();\n\t\tResultSet rs=mysql.query(sql);\n\t\ttry {\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tStudent stu=new Student();\n\t\t\t\tstu.setId(rs.getInt(1));\n\t\t\t\tstu.setNum(rs.getString(2));\n\t\t\t\tstu.setName(rs.getString(3));\n\t\t\t\tstu.setEmail(rs.getString(4));\n\t\t\t\tstu.setPhone(rs.getString(5));\n\t\t\t\tstu.setDegree(rs.getShort(6));\n\t\t\t\tstu.setProject(rs.getInt(7));\n\t\t\t\tstu.setSchool(rs.getInt(8));\n\t\t\t\tstu.setSchoolstring(rs.getString(9));\n\t\t\t\tstu.setIs_cap(rs.getInt(10));\n\t\t\t\tstu.setDegreestring(degreemap[stu.getDegree()]);\n\t\t\t\tarr.add(stu);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn arr.iterator();\n\t}",
"@Override\n\t//查询所有数据\n\tpublic List<Student> selectStudents() {\n\t\tConnection connection =null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tList<Student> sList = new ArrayList<Student>();\n\t\t\n\t\ttry {\n\t\t\tconnection = MySQLConnectUtil.getMySQLConnection();\n\t\t\tps = connection.prepareStatement(QUARYSQL);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudent student = new Student();\n\t\t\t\tstudent.setId(rs.getString(\"ID\"));\n\t\t\t\tstudent.setName(rs.getString(\"NAME\"));\n\t\t\t\tstudent.setAge(rs.getInt(\"AGE\"));\n\t\t\t\tsList.add(student);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tMySQLConnectUtil.closeResultset(rs);\n\t\t\tMySQLConnectUtil.closePreparestatement(ps);\n\t\t\tMySQLConnectUtil.closeConnection(connection);\n\t\t}\n\t\treturn sList;\n\t}",
"abstract public void showAllStudents();",
"public ArrayList<Student> getAllStudents()\n {\n Cursor cursor = sqlServices.getData(USER_TABLE, null, USER_IS_TEACHER + \" = ?\",\n new String[]{\"0\"});\n return getStudentFromCursor(cursor);\n }",
"public Set<Student> getStudents() {\n return students;\n }",
"public static List<Student> getAllStudents(){\r\n Student student1 = new Student(\"Dowlath\",2,3.6,\"male\", Arrays.asList(\"Swim\",\"BasketBall\",\"VolleyBall\"),11);\r\n Student student2 = new Student(\"Bhavya\",2,3.8,\"female\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),12);\r\n\r\n\r\n /* 3rd Grade Students */\r\n Student student3 = new Student(\"Priya\",3,4.0,\"female\", Arrays.asList(\"Swim\",\"BasketBall\",\"Aerobics\"),10);\r\n Student student4 = new Student(\"Arsh\",3,3.9,\"male\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),9);\r\n\r\n\r\n /* 4th Grade Students */\r\n Student student5 = new Student(\"Sowmiya\",4,3.5,\"female\", Arrays.asList(\"Swim\",\"Dancing\",\"FootBall\"),15);\r\n Student student6 = new Student(\"Ariz\",4,3.9,\"male\",Arrays.asList(\"Swim\",\"BasketBall\",\"BaseBall\",\"FootBall\"),14);\r\n\r\n List<Student> students = Arrays.asList(student1,student2,student3,student4,student5,student6);\r\n return students;\r\n }",
"Student findWithSectionsBy(int studentNumber);",
"@Override\r\n\tpublic Students findStudents() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List<Student> geStudents() {\n\t\treturn null;\n\t}",
"public static ArrayList<Student> getAllStudenti() {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.parameters = new Object[] {};\n\t\t\trp.type = RequestType.GET_ALL_STUDENTS;\n\t\t\tReceiveContent rps = sendReceive(rp);\n\t\t\treturn (ArrayList<Student>) rps.parameters[0];\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"SendNewsLetter error\");\n\t\t}\n\t\treturn new ArrayList<Student>();\n\t}",
"@Override\n\tpublic List<Student> getAllStudents() {\n\t\tList<Student> students = new ArrayList<Student>();\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\t//select CAST(gpa as DECIMAL(3,2)) AS gpa from student;\n\t\t\t//ResultSet rs = stmt.executeQuery(\"select * from student\");\n\t\t\tResultSet rs = stmt.executeQuery(\"select ID, Firstname, Lastname, Program, CAST(gpa as DECIMAL(3,2)) AS gpa from student\");\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tStudent stu = new Student();\n\t\t\t\tstu.setStudentid(rs.getInt(\"ID\"));\n\t\t\t\tstu.setFirstname(rs.getString(\"Firstname\"));\n\t\t\t\tstu.setLastname(rs.getString(\"Lastname\"));\n\t\t\t\tstu.setProgram(rs.getString(\"Program\"));\n\t\t\t\tstu.setGpa(rs.getDouble(\"GPA\"));\n\n\t\t\t\tstudents.add(stu);\n\t\t\t}\n\t\t\t\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn students;\n\t}",
"@Override\r\n\tpublic Student[] getStudents() {\n\t\treturn this.students;\r\n\t}",
"Student findWithoutSectionsBy(int studentNumber);",
"public static List<Student> getStudents() {\n\t\tList<Student> students = new ArrayList<>();\n\t\t\n\t\t// add sample data\n\t\tstudents.add(new Student(\"James\", \"Richt\", \"[email protected]\"));\n\t\tstudents.add(new Student(\"Kelly\", \"Lou\", \"[email protected]\"));\n\t\tstudents.add(new Student(\"Lin\", \"Howe\", \"[email protected]\"));\n\t\t\n\t\t// return the list\n\t\treturn students;\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Student> retrieveAllStudentObjects() {\r\n\t\tList<Student> listOfStudents = new ArrayList<Student>();\r\n\r\n\t\ttry {\r\n\t\t\tlistOfStudents = readSerializedObject();\r\n\r\n\t\t\tif (listOfStudents == null) {\r\n\t\t\t\tSystem.out.println(\"Unable to read from file!\");\r\n\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn listOfStudents;\r\n\t}",
"List<Student> getStudent();",
"static List<Student> getStudents() {\n return students;\n }",
"public List<Student> search() {\n \tQuery query = em.createQuery(\"Select e FROM Student e WHERE e.grade > 50.00\");\r\n \tList<Student> result = query.getResultList();\r\n \t\r\n \t \r\n \t// Query for a List of data elements.\r\n// \tQuery query = em.createQuery(\"Select e.firstname FROM Student e\");\r\n// \tList<String> result = query.getResultList();\r\n \t \r\n \t// Query for a List of element arrays.\r\n// \tQuery query = em.createQuery(\"Select e.firstname, e.grade FROM Student e\");\r\n// \tList<Object[]> result = query.getResultList();\r\n \t\r\n\t\t// \tsetFirstResult()\r\n\t\t// \tsetMaxResults()\r\n \t\r\n \treturn result;\r\n }",
"public ArrayList getStudents();",
"public Stream<Student> students() {\n ////\n return grades.keySet().stream();\n }",
"List<Member> selectAll();",
"List<Student> selectByExample(StudentExample example);",
"@Override\n\tpublic List<Student> getStudents() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Student> query = currentSession.createQuery(\"from Student order by lastName\", Student.class);\n\n\t\t// execute the query and get the results list\n\t\tList<Student> students = query.getResultList();\n\n\t\t// return the results\n\t\treturn students;\n\t}",
"@Override\n\t public List<Student> getAllStudent(BigInteger stdId){\n\t \t\n\t\t \n\t \treturn (List<Student>) studentrepo.findAll(); \t\n\t }",
"public Iterable<StudentQualificationPersonDetail> getStudentRegisteredData(){\n\t\t\n\t\treturn sqcRepository.findAll();\n\t}",
"List<Student> selectByExample(StudentCriteria example);",
"public Student getStudents() {\n\t\treturn this.student;\n\t}",
"@HystrixCommand(fallbackMethod = \"reliable\")\n\tpublic List<Student> getStudents() {\n\t\tResponseEntity<List<Student>> response = this.restTemplate.exchange(this.resourceUrl + \"/all\", HttpMethod.GET,\n\t\t\t\tnull, new ParameterizedTypeReference<List<Student>>() {\n\t\t\t\t});\n\t\treturn response.getBody();\n\t}",
"public ArrayList<Student> GetAllStudentData() {\n\t\tArrayList<Student> result = new ArrayList<>();\n\t\tcurr = head;\n\t\twhile (curr != null) {\n\t\t\tArrayList<Student> theData = curr.data.students.getStudentData();\n\t\t\tfor (int i = 0; i <= curr.data.students.getStudentDataCount() - 1; i++) {\n\t\t\t\tresult.add(theData.get(i));\n\t\t\t}\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn result;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tpublic List<Student> listStudent() {\n\t\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Student\").list();\n\t\t}",
"public List<Student> getAllStudents() throws IOException {\n\t\tstudentList = studentListGenerator.generateList(\"StudentList.txt\");\n\t\treturn studentList;\n\t}",
"public ArrayList<Student> getStudents() {\n\n ArrayList<Student> students = new ArrayList<Student>();\n String query = \"SELECT * FROM student\";\n try{\n result = statement.executeQuery(query);\n while(result.next()) {\n\n String id = Integer.toString(result.getInt(\"student_id\"));\n String firstName = result.getString(\"student_first_name\");\n String lastName = result.getString(\"student_last_name\");\n String degree = result.getString(\"degree\");\n String yearOfStudy = result.getString(\"year_of_study\");\n String outcome = result.getString(\"outcome\");\n students.add(new Student(id, firstName, lastName, degree, yearOfStudy, outcome));\n\n }\n }\n catch (SQLException e){\n\n }\n\n return students;\n }",
"public ArrayList<Student> getStudents()\n {\n return students;\n }",
"public ArrayList<Student> selectAllStudents() {\n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n ArrayList<Student> studentList = new ArrayList<>();\n try {\n Class.forName(Tools.MYSQL_JDBC_DRIVER);\n\n connection = DriverManager.getConnection(Tools.DB_URL, Tools.USERNAME, Tools.PASSWORD);\n\n statement = connection.createStatement();\n\n String query = \"SELECT * FROM STUDENTS;\";\n\n resultSet = statement.executeQuery(query);\n\n while (resultSet.next()) {\n String id = resultSet.getString(\"STUDENT_ID\");\n String lastName = resultSet.getString(\"LAST_NAME\");\n String firstName = resultSet.getString(\"FIRST_NAME\");\n String dob = resultSet.getString(\"DATE_OF_BIRTH\");\n float fees = resultSet.getFloat(\"TUITION_FEES\");\n Student student = new Student(id, firstName, lastName, dob, fees);\n\n studentList.add(student);\n\n }\n\n } catch (ClassNotFoundException | SQLException e) {\n e.printStackTrace();\n } finally {\n if (resultSet != null) {\n try {\n resultSet.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n\n if (statement != null) {\n try {\n statement.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n if (connection != null) {\n try {\n connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n return studentList;\n }",
"List<ScPartyMember> selectAll();",
"@GetMapping(path = \"/std/all\")\n\tpublic @ResponseBody Iterable<student> getAllStsudents() {\n\t\treturn studentRepo.findAll();\n\n\t}",
"List<ExamRoom> selectAll();",
"public static List<Student> filterExample(){\n\t\tList<Student> genderFilter = StudentDataBase.getAllStudents().stream()\n\t\t\t\t.filter(stu->stu.getGender().equals(\"female\")).collect(Collectors.toList());\n\t\treturn genderFilter;\n\t}",
"@Override\r\n\tpublic List<StudentBean> getStudentsByClassId(String classId) {\n\t\treturn studentDAO.getStudentsByClassId(classId);\r\n\t}",
"List<Course> selectAll();",
"Boolean subset(MultiSet<X> s);",
"@Test\n public void testFindAllStudents() throws Exception {\n List<Students> list = cs.findAllStudents();\n for (Students stu :\n list) {\n System.out.println(stu);\n }\n }",
"List<Teacher> selectAll();",
"public ArrayList<Student> getStudents() {\r\n\t\treturn students;\r\n\t}",
"List<Student> getAll() {\n\t\tSessionFactory sessionFactory = null;\n\t\tStandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n\t\t\t\t.configure()\t// hibernate.cfg.xml\n\t\t\t\t.build();\n\t\ttry {\n\t\t\tsessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n\t\t} catch (Exception ex) {\n\t\t\tStandardServiceRegistryBuilder.destroy(registry);\n\t\t\tSystem.out.println(\"Setup Failed:\" + ex.getMessage());\n\t\t}\n\t\t// session = configObj.buildSessionFactory(serviceRegistryObj).openSession();\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = null;\n\t\ttry {\n\t\t\ttx = session.beginTransaction();\n\t\t\tList data = session.createQuery(\"FROM Student\").list();\n\t\t\tfor (Iterator iterator = data.iterator(); iterator.hasNext();) {\n\t\t\t\tStudent st = (Student) iterator.next();\n\t\t\t\tSystem.out.print(\"Student ID: \" + st.getStudentId());\n\t\t\t\tSystem.out.print(\" Last Name: \" + st.getName());\n\t\t\t\tSystem.out.println(\" Address: \" + st.getAddress());\n\t\t\t}\n\t\t\ttx.commit();\n\t\t\treturn data;\n\t\t} catch (HibernateException e) {\n\t\t\tif (tx != null)\n\t\t\t\ttx.rollback();\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t\treturn null;\n\t}",
"List<NominatedStudentDto> showAll();",
"public void showstudents(){\n for (int i=0; i<slist.size(); i++){\n System.out.println(slist.get(i).getStudent());\n }\n }",
"public ArrayList<Student> getStudents() {\r\n\t\treturn this.students;\r\n\t}",
"public StudentDataBase getStudents() {\n return students;\n }",
"@Override\n\tpublic List<JSONObject> selectStudents(JSONObject params) {\n\t\treturn this.selectList(\"selectStudents\", params);\n\t}",
"public List<String> getStudents();",
"@Override\n\tpublic List<Course> queryAll(Student student) {\n\t\treturn null;\n\t}",
"public String[] getStudents() {\n\t\treturn students;\n\t}",
"public static ArrayList<Student> getAllStudents() throws SQLException {\n\t\t\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\t\t\t\r\n\t\t\t\tConnection connection = SQLUtil.getConnection();\r\n\t\t\t\tStatement statement = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\r\n\t\t\t\t\r\n\t\t\t\tString sql = \"SELECT * FROM students\";\r\n\t\t\t\t\r\n\t\t\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\t\t\t\r\n\t\t\t\tresultSet.first();\r\n\t\t\t\t\r\n\t\t\t\twhile (!resultSet.isAfterLast()) {\r\n\t\t\t\t\tStudent student = new Student(resultSet.getString(\"firstname\"), resultSet.getString(\"lastname\"), resultSet.getString(\"registration_number\"));\r\n\r\n\t\t\t\t\tstudents.add(student);\r\n\t\t\t\t\tresultSet.next();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn students;\r\n\t\t\r\n\t}",
"public List getStudentList() throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n\n String queryString = \"from \" + Student.class.getName() + \" e\";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n List list = hibernateTemplate.list(query);\n\n return list;\n } finally {\n log.debug(\"finished getStudentList\");\n }\n }",
"public ArrayList<Student> studentList()\n {\n ArrayList<Student> studentList = new ArrayList<>();\n try\n {\n DatabaseConnection databaseConnection = new DatabaseConnection();\n String query = \"select * from student\";\n ResultSet rs = databaseConnection.s.executeQuery(query);\n Student student;\n while(rs.next())\n {\n student = new Student(rs.getInt(\"student_id\"), rs.getString(\"student_name\"), rs.getString(\"batch\"), rs.getString(\"student_username\"), rs.getString(\"student_password\"));\n studentList.add(student);\n }\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(null, e);\n }\n return studentList;\n }",
"public List<Student> getAllStudentData() {\r\n\t\tList<Student> list = new ArrayList<Student>();\r\n\t\ttry {\r\n\t\t\tConnection con = DatabaseUtility.getCon(inputStream);\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\"select * from student\");\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tStudent stud = new Student();\r\n\r\n\t\t\t\tstud.setRollno(rs.getInt(1));\r\n\t\t\t\tstud.setFname(rs.getString(2));\r\n\t\t\t\tstud.setLname(rs.getString(3));\r\n\t\t\t\tstud.setEmail(rs.getString(4));\r\n\t\t\t\tstud.setGender(rs.getString(5));\r\n\t\t\t\tstud.setDOB(rs.getString(6));\r\n\t\t\t\tstud.setAddress(rs.getString(7));\r\n\t\t\t\tstud.setContact(rs.getString(8));\r\n\r\n\t\t\t\tlist.add(stud);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(ex);\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}",
"@Override\n\tpublic List<Student> queryByGid(int gid) {\n\t\treturn sDao.queryByGid(gid);\n\t}",
"Collection<Instance> getInstances();",
"@Override\r\n public List<String> getStudenti() {\r\n List<Studente> listaStudenti = studenteFacade.findAll();\r\n List<String> result = new ArrayList<>();\r\n\r\n for (Studente s : listaStudenti) {\r\n result.add(s.toString());\r\n }\r\n return result;\r\n }",
"public ArrayList<Student> getStudentsForCourse(Course course){\n ArrayList<Student> result = new ArrayList();\n \n String statement = GET_SUDENTS_FOR_COURSE;\n \n ResultSet rs = data.makePreparedStatement(statement,new Object[]{(Object)course.getId()});\n try {\n while(rs.next()){\n Student student = new Student(rs.getInt(\"id\"),rs.getString(\"first_name\"),rs.getString(\"last_name\"),\n rs.getDate(\"birthday\").toLocalDate(),rs.getDouble(\"tuition_fees\"));\n result.add(student);\n \n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getStudentsForCourse()\");\n }finally{\n data.closeConnections(rs,data.ps, data.conn);\n }\n \n return result;\n }",
"List<StudentRecord> getStudents(String clientId) throws Exception;",
"private void viewAllStudents() {\n Iterable<Student> students = ctrl.getStudentRepo().findAll();\n students.forEach(System.out::println);\n }",
"@Query(\"from Student\")\n\tList<Student> findAllStudents();",
"@Override\n public List<Student> getStudentsByCourse(Course course) {\n return null;\n }",
"public ArrayList <Students> getStudentList ()\n\n {\n\n // Returns studentList when called.\n return studentList;\n\n }",
"public ArrayList<Student> filterSearchStudentList(int stuNum){\n \n ArrayList<Student> filteredList = new ArrayList<Student>();\n \n int existance = 0;\n\n for(int i = 0; i<studList.size(); i++){\n \n if(studList.get(i).getStuNumber() <= stuNum){\n \n Student keyListOb = new Student(studList.get(i).getFullName(), studList.get(i).getStuNumber(), studList.get(i).getGPA());\n filteredList.add(keyListOb);\n }\n \n else{\n existance++;\n }\n }\n if(existance == studList.size()){\n System.out.println(\"\\nNo results\");\n }\n\n for(int i =0; i<filteredList.size();i++){\n System.out.println(\"Student Name: \" + filteredList.get(i).getFullName() + \", Student Number: \" + filteredList.get(i).getStuNumber() + \", Student GPA: \" + filteredList.get(i).getGPA());\n }\n\n return filteredList;\n }",
"public ArrayList<Student> retrieveAllCurrent() {\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.users inner join `is480-matching`.students on users.id=students.id WHERE users.type LIKE 'Student';\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tcal.setTime(date);\r\n\t\t\r\n\t\tint currYear = cal.get(cal.YEAR);\r\n\t\tint currMth = cal.get(cal.MONTH);\r\n\t\t\r\n\t\tint year = 0;\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint id \t\t\t\t= Integer.parseInt(array.get(0));\r\n\t\t\tString username \t= array.get(1);\r\n\t\t\tString fullName \t= array.get(2);\r\n\t\t\tString contactNum \t= array.get(3);\r\n\t\t\tString email \t\t= array.get(4);\r\n\t\t\tString type\t\t\t= array.get(5);\r\n\t\t\tString secondMajor \t= array.get(7);\r\n\t\t\tint role \t\t\t= Integer.parseInt(array.get(8));\r\n\t\t\tint teamId \t\t\t= Integer.parseInt(array.get(9));\r\n\t\t\tint prefRole \t\t= Integer.parseInt(array.get(10));\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tint matricYear = Integer.parseInt(username.substring(username.length() - 4, username.length()));\r\n\t\t\t\t\r\n\t\t\t\tyear = currYear - matricYear;\r\n\t\t\t\t\r\n\t\t\t\tStudent student = new Student(id, username, fullName, contactNum, email, type, secondMajor, role, teamId, prefRole);\r\n\t\t\t\t\r\n\t\t\t\tif(currMth > 8){\r\n\t\t\t\t\tyear++;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(year == 3 || year == 4){\r\n\t\t\t\t\tstudents.add(student);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}catch(Exception e){}\r\n\t\t}\r\n\t\t\r\n\t\treturn students;\r\n\t}",
"List<User> selectAll();",
"List<User> selectAll();",
"public ArrayList<Instance> getTestInstances() {\n ArrayList<Instance> testing = new ArrayList<>();\n testing.addAll(instances.subList(targetsize, instances.size()));\n return testing;\n }",
"public List<Subset> getElements() {\n\t\treturn subSetList;\n\t}",
"public List<User> getAllStudent() {\n\t\t return userDao.getAllUsers();\r\n\t }",
"public List<StudentExam> getRegisteredExams(Student student) {\n return null;\n }",
"public ArrayList<Student> getStudentList()\r\n\t {\r\n\t\treturn studentList;\r\n\t\t\r\n\t }",
"public ArrayList<Student> getStudentsNotInCourse(Course course){\n ArrayList<Student> result = new ArrayList();\n \n \n String statement = GET_SUDENTS_NOT_IN_COURSE;\n\n ResultSet rs = data.makePreparedStatement(statement,new Object[]{(Object)course.getId()});\n try {\n while(rs.next()){\n Student student = new Student(rs.getInt(\"id\"),rs.getString(\"first_name\"),rs.getString(\"last_name\"),\n rs.getDate(\"birthday\").toLocalDate(),rs.getDouble(\"tuition_fees\"));\n result.add(student);\n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getStudentsNotInCourse()\");\n }finally{\n data.closeConnections(rs,data.ps, data.conn);\n }\n return result;\n }",
"final public int[] getSubset() {\n\t\treturn subset;\n\t}",
"List<Salaries> selectAll();",
"@GetMapping(path = \"/all\")\n public Set<StudentCommand> getAllStudents() {\n Set<StudentCommand> studentCommands = new HashSet<>();\n\n Iterable<Student> students = studentService.getAllStudents();\n\n for (Student s : students) {\n StudentCommand command = studentToStudentCommand.converter(s);\n studentCommands.add(command);\n }\n return studentCommands;\n }",
"public Student[] listStudents(long id) {\n\t\treturn new Tutor().listMyStudents(id);\n\t}",
"public List<StudentRecord> filter(IFilter filter) {\n\t\tList<StudentRecord> temporaryList = new ArrayList<>();\n\n\t\tfor (StudentRecord studentRecord : studentRecords) {\n\t\t\tif (filter.accepts(studentRecord)) {\n\t\t\t\ttemporaryList.add(studentRecord);\n\t\t\t}\n\t\t}\n\t\treturn temporaryList;\n\t}",
"@Override\n public Page<Student> findAllStudentsByPage(Pageable pageable) {\n\n return studentRepository.findAll(PageRequest.of(pageable.getPageNumber(), pageable.getPageSize()));\n }",
"public ArrayList<Student> getStudentList() {\n return studentList;\n }",
"@Override\n\tpublic ArrayList<MemberVO> sellectAll() {\n\t\t\n\t\treturn dao.selectAll();\n\t}",
"public HashMap<Integer, Student> getStudents() {\n return _students;\n }",
"public List<Student> getCampusStudent(Campus c) {\n\t\tList<Student> allStudentList = new ArrayList<Student>();\n\t\tConnection conn = DBUtil.getConn();\n\t\tStatement stmt = DBUtil.createStmt(conn);\n\t\tString sql = \"select * from student where ville='%s' and region='%s' order by stu_ID \";\n\t\tsql = String.format(sql, c.getVille(), c.getRegion());\n\t\tSystem.out.println(sql);\n\t\tResultSet rst = DBUtil.getRs(stmt, sql);\n\t\ttry {\n\t\t\twhile (rst.next()) {\n\t\t\t\tStudent student = new Student();\n\t\t\t\tfillRsStudent(rst, student);\n\t\t\t\tallStudentList.add(student);\n\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn allStudentList;\n\t}",
"public ArrayList<Student> getStudentList() {\r\n return studentList;\r\n }",
"@Override\r\n\tpublic List<Student> getStudents(String courseName) {\n\t\tList<Student> students=new ArrayList<>();\r\n\t\tString sql=\"select studentid, studentname, studentshv.courseid from studentshv inner join courseshv on studentshv.courseid=courseshv.courseid where coursename=?\";\r\n\t\tPreparedStatement pstmt = null;\r\n\t\ttry {\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, courseName);\r\n\t\t\tResultSet rs=pstmt.executeQuery();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tlong studentId=rs.getLong(\"studentid\");\r\n\t\t\t\tString studentName=rs.getString(\"studentname\");\r\n\t\t\t\tlong courseId=rs.getLong(\"courseid\");\r\n\t\t\t\tstudents.add(new Student(studentId,studentName,courseId));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn students;\r\n\t}",
"@Override\n\tpublic List<Grade> findAll() {\n\t\tGradeDAO gradeDAO= (GradeDAO)ObjectFactory.getObject(\"gradeDAO\");\n\t\tList<Grade> grades=gradeDAO.selectAll();\n\t\treturn grades;\n\t}"
] | [
"0.7233161",
"0.66472125",
"0.65324795",
"0.64607304",
"0.63912207",
"0.6370366",
"0.63670915",
"0.6328522",
"0.6311719",
"0.6310734",
"0.6303769",
"0.6244064",
"0.6227889",
"0.6205398",
"0.61752486",
"0.61721206",
"0.6166066",
"0.6122661",
"0.6080879",
"0.60804814",
"0.6075134",
"0.60560787",
"0.60556746",
"0.6053421",
"0.6050578",
"0.603992",
"0.59748805",
"0.59724915",
"0.59547794",
"0.592304",
"0.59196645",
"0.5912686",
"0.5903687",
"0.5900599",
"0.5890724",
"0.5877695",
"0.58692473",
"0.5859143",
"0.5822734",
"0.5802796",
"0.5800073",
"0.5799023",
"0.5789272",
"0.5779638",
"0.57765764",
"0.57759964",
"0.57748586",
"0.57662594",
"0.57658035",
"0.5754505",
"0.5690274",
"0.56853",
"0.5683482",
"0.5680213",
"0.56606007",
"0.565013",
"0.5649355",
"0.5649075",
"0.56339675",
"0.56225806",
"0.56219023",
"0.55688006",
"0.5567367",
"0.5566149",
"0.5564986",
"0.55506486",
"0.55402946",
"0.5529279",
"0.55139405",
"0.5512161",
"0.55064017",
"0.5503342",
"0.54983115",
"0.5493864",
"0.54839593",
"0.5481301",
"0.5473998",
"0.54527783",
"0.5451635",
"0.5440856",
"0.5440856",
"0.5437004",
"0.54311955",
"0.54311216",
"0.5431079",
"0.5428144",
"0.5419114",
"0.53993624",
"0.53964996",
"0.539472",
"0.5392994",
"0.5390283",
"0.5382954",
"0.5380743",
"0.5380488",
"0.5376189",
"0.53742427",
"0.5371212",
"0.5370726",
"0.53626525"
] | 0.56953484 | 50 |
Obtains the total number of student objects in the database. | public int getStudentListSize() throws GenericBusinessException {
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
String queryString = "select count(*) from " + Student.class.getName();
Query query = hibernateTemplate.createQuery(queryString);
List list = hibernateTemplate.list(query);
Integer countResult = (Integer) list.get(0);
return countResult.intValue();
} finally {
log.debug("finished getStudentListSize()");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int findTotalStudents() {\n\t\treturn students.size();\r\n\t}",
"int getStudentCount();",
"public int getStudentCount() {\n\t\t\treturn student_.size();\n\t\t}",
"public int getStudentCount() {\n\t\t\t\tif (studentBuilder_ == null) {\n\t\t\t\t\treturn student_.size();\n\t\t\t\t} else {\n\t\t\t\t\treturn studentBuilder_.getCount();\n\t\t\t\t}\n\t\t\t}",
"private int numberOfStudents() {\n int sum = 0;\n for (int student : this.studentList) {\n sum += student;\n }\n return sum;\n }",
"public int bookCount() {\r\n\t\tint rowCount = jdbcTemplate.queryForInt(\"select count(1) from persone\");\r\n\t\treturn rowCount;\r\n\t}",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"public static int getNumberOfStudents() {\n\t\treturn numberOfStudents;\n\t}",
"public static int getNos() {\n\t\treturn numberOfStudents;\n\t}",
"public int getStudentCount() {\n\t\treturn studentCount;\n\t}",
"public int count() {\n\t Query count = getEntityManager().createQuery(\"select count(u) from \" + getEntityClass().getSimpleName() + \" u\");\n\t return Integer.parseInt(count.getSingleResult().toString());\n\t }",
"public int getTotalStudentsInInstitute() {\n\t\tint noOfStudents = 0;\n\t\tList<Student> students;\n\t\tfor (Department dept : departments) {\n\t\t\tstudents = dept.getStudents();\n\t\t\tfor (Student s : students) {\n\t\t\t\tnoOfStudents++;\n\t\t\t}\n\t\t}\n\t\treturn noOfStudents;\n\t}",
"public int count() {\r\n Session session = getSession();\r\n Long count = new Long(0);\r\n try {\r\n count = (Long) session.createQuery(\"select count(t) from \" + getPersistentClass().getName() + \" t \").uniqueResult();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in count Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return count.intValue();\r\n }",
"public int getNumberOfStudents() {\n\t\treturn numberOfStudents;\n\t}",
"public int getNumStudents()\n\t{\n\t\treturn numStudents;\n\t}",
"public int SelectCount() {\n return this.StudentDao.SelectCount();\n }",
"public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}",
"public int getListCount() {\n\t\tConnection con = getConnection();\r\n\t\tMemberDAO memberDao = MemberDAO.getInstance();\r\n\t\tmemberDao.setConnection(con);\r\n\r\n\t\tint listCount = memberDao.selectRatingCount();\r\n\r\n\t\tclose(con);\r\n\t\treturn listCount;\r\n\t}",
"public int findTotalSubjects() throws DAOException;",
"public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}",
"@Override\n\tpublic int getCount() {\n\t\tString sql=\"SELECT count(*) FROM `tc_student` where project=\"+project;\n\t\tResultSet rs=mysql.query(sql);\n\t\ttry {\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO 自动生成的 catch 块\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\t}",
"public long getCount() {\n return getCount(new BasicDBObject(), new DBCollectionCountOptions());\n }",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}",
"@Override\r\n\tpublic int getCollectionTotalCount() {\n\t\treturn data != null ? data.recordCount : 0;\r\n\t}",
"public int count() {\n\t\tint count = cstCustomerDao.count();\n\t\treturn count;\n\t}",
"public static int getTotal(){\n int total = 0;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select count(*) from normalposts\");\n ResultSet rs = pst.executeQuery();\n rs.next();\n total = rs.getInt(1);\n conn.close();\n } catch(Exception e){\n System.out.println(\"PostDAO: get total failed\");\n System.out.println(e);\n }\n return total;\n }",
"public int queryTotal() {\n\t\treturn this.studentMaper.queryTotal();\r\n\t}",
"public int findTotalDisplaySubjects() throws DAOException;",
"@Override\r\n\tpublic int memberCount() {\n\t\treturn sqlSession.selectOne(NAMESPACE + \".member_count_user\");\r\n\t}",
"long countNumberOfProductsInDatabase();",
"@Transactional\r\n\tpublic Integer countUserss() {\r\n\t\treturn ((Long) usersDAO.createQuerySingleResult(\"select count(o) from Users o\").getSingleResult()).intValue();\r\n\t}",
"public int getSkoreCount() {\n \tString countQuery = \"SELECT * FROM \" + \"skore\";\n \tSQLiteDatabase db = this.getReadableDatabase();\n \tCursor cursor = db.rawQuery(countQuery, null);\n \tint count = cursor.getCount(); //added line here\n \t\n \tcursor.close(); \t\n \tdb.close();\n \t\n \treturn count;\n }",
"Long getAllCount();",
"public int count() {\n\t\treturn sm.selectOne(\"com.lanzhou.entity.Longpay.count\");\n\t}",
"public int count() {\n return Query.count(iterable);\n }",
"public int numberOfRows(){\n SQLiteDatabase db = this.getReadableDatabase();\n int numRows = (int) DatabaseUtils.queryNumEntries(db,TABLE_NAME);\n return numRows;\n }",
"public int getTotalCount() {\n return totalCount;\n }",
"int getRecordCount();",
"int getTotalCount();",
"public int getUsersCount()\n\t{\n\t\tint usersCount=(int) userDao.count();\n\t\treturn usersCount;\n\t}",
"public static int getCountofPeople(){\n int training_set = 0;\n \n try (Connection con = DriverManager.getConnection(url, user, password)){\n String query = \"SELECT count(*) FROM \"+DATABASE_NAME+\".People;\";\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(query);\n if (rs.next()) {\n training_set = rs.getInt(1);\n }\n con.close();\n }catch (SQLException ex) {\n ex.printStackTrace();\n } \n\n return training_set;\n }",
"public Integer getAllCount() {\n\t\tString sql=\"select count(*) from statistics\";\n\t\tint count = (int)getCount(sql);\n\t\treturn count;\n\t}",
"public int totalRowsCount();",
"@SuppressWarnings(\"deprecation\")\r\n\tprivate int countEntities(){\r\n\t\tQuery query = new Query(\"UserProfile\");\r\n\t\treturn datastore.prepare(query).countEntities();\r\n\t}",
"@Override\n\tpublic int numerOfItems() {\n\t\treturn usersDAO.numerOfItems();\n\t}",
"@Override\n public int countAll() {\n\n Query qry = this.em.createQuery(\n \"select count(assoc) \" +\n \"from WorkToSubjectEntity assoc\");\n\n return ((Long) qry.getSingleResult()).intValue();\n }",
"@Override\r\n\tpublic int getTotal() {\n\t\treturn mapper.count();\r\n\t}",
"int findAllCount() ;",
"public Long getTotalCount() {\r\n return totalCount;\r\n }",
"public Long getCountAllResults() {\n\n //create a querybuilder for count\n QueryBuilder queryBuilderCount = dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n .add(getCurrentQueryRestrictions())\n .debug(debug);\n\n Long rowCount;\n //added distinct verification\n if (joinBuilder != null && joinBuilder.isDistinct()) {\n rowCount = queryBuilderCount.countDistinct(joinBuilder.getRootAlias());\n } else {\n rowCount = queryBuilderCount.count();\n }\n\n return rowCount;\n }",
"Long recordCount();",
"@Override\n\tpublic int getNumberOfEmployees() {\n\t\treturn template.queryForObject(\"select count(*) from employee\", Integer.class);\n\t}",
"public long getPersonesCount()throws personNotFoundExeption{\n EntityManager em = emf.createEntityManager();\n try{\n long personesCount = (long)em.createQuery(\"SELECT COUNT(p) FROM Person p\").getSingleResult();\n return personesCount;\n }finally{ \n em.close();\n }\n }",
"public int countDocuments(){\n try {\n ResultSet rs = stCountDocuments.executeQuery();\n\n int count = 0;\n\n while(rs.next()){\n count = rs.getInt(1);\n }\n rs.close();\n\n if(count<=0){\n System.out.println(\"There are no documents\");\n }\n\n return count;\n } catch(SQLException e){\n e.printStackTrace();\n }\n return 0;\n }",
"@Override\r\n\tpublic int findtotalbooks() {\n\t\t\r\n\t\tString sql=\"select count(*) from books where tag=1\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tObject query = runner.query(sql, new ScalarHandler<Object>(1));\r\n\t\t\tLong long1=(Long)query;\r\n\t\t\treturn long1.intValue();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public int numberOfRows(){\n int numRows = (int) DatabaseUtils.queryNumEntries(db, TRACKINGS_TABLE_NAME);\n return numRows;\n }",
"public int numberOfUsers() {\r\n \tint anzahlUser=userDAO.getUserList().size();\r\n \treturn anzahlUser;\r\n }",
"public int getTotalSPEntries() {\n\t\tList<SalePurchase> list = new ArrayList<>(salePurchaseEntries.values());\n\t\treturn list.size();\n\t}",
"@Override\n public long getTotalDoctors() {\n List<Long> temp=em.createNamedQuery(\"DoctorTb.getTotalDoctors\").getResultList();\n long count=0;\n for(long i:temp)\n {\n count=i;\n }\n return count;\n }",
"public int getTotalRecords() {\r\n return totalRecords;\r\n }",
"public int findTotalPapers() throws DAOException;",
"@Override\n public long getCountWithName(String studentId) {\n return 0;\n }",
"@Override\n\tpublic int studycount() throws Exception {\n\t\treturn dao.studycount();\n\t}",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"@Override\n\tpublic Long count() {\n\t\treturn SApplicationcategorydao.count(\"select count(*) from \"+tablename+\" t\");\n\t}",
"int getUsersCount();",
"int getUsersCount();",
"int getUsersCount();",
"public long countRecords();",
"public int getTotalRecord() throws SQLException, Exception {\n\t\tString query = \"Select count(*) tblDRARes\";\n\t\tConnection con = null;\n\t\tStatement st = null;\n\t\tResultSet rs = null;\n\t\tint record=0;\n\n\t\ttry{\n\t\t\tcon=ConnectionBean.getConnection();\n\t\t\tst=con.createStatement();\n\t\t\trs=st.executeQuery(query);\n\t\t\tif(rs.next()){\n\t\t\t\trecord=rs.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"DevelpmentResources.java - getTotalRecord - \"+e);\n\t\t}finally{\n\t\t\tConnectionBean.closeRset(rs); //Close ResultSet\n\t\t\tConnectionBean.closeStmt(st); //Close statement\n\t\t\tConnectionBean.close(con); //Close connection\n\n\t\t}\n\t\t\n\n\t\treturn record;\n\t}",
"public Long getTotalCount() {\n\t\treturn this.totalCount;\n\t}",
"public final int count() {\n\t\tCountFunction function = new CountFunction();\n\t\teach(function);\n\t\treturn function.getCount();\n\t}",
"public int query() {\n return totalcount;\n }",
"public int countTotal() throws SQLException {\n\n StringBuffer sqlBuffer = new StringBuffer();\n sqlBuffer.append(\" SELECT \");\n sqlBuffer.append(\" COUNT(*) \");\n sqlBuffer.append(\" FROM \");\n sqlBuffer.append(\"npo_data_prevent\");\n\n this.setSql(sqlBuffer.toString());\n\n PreparedStatement ps = null;\n ResultSet rs = null;\n int result;\n try {\n Connection c = this.getConnection();\n ps = c.prepareStatement(this.getSql());\n\n rs = ps.executeQuery();\n rs.next();\n result = rs.getInt(1);\n\n } finally {\n close(ps, rs);\n }\n\n return result;\n }",
"public int getTotalRecords() {\n return totalRecords;\n }",
"public int countPerson() {\n\t\treturn count(GraphQueries.COUNT_PERSON);\n\t}",
"int getStudentResponseCount();",
"public static int getNumberOfStudent(int ringId) {\n\r\n String sql = \"select count(studentId) from Student where ringId = ?\";\r\n System.out.println(ringId);\r\n Connection conn = DB.connect();\r\n PreparedStatement st;\r\n ResultSet rs;\r\n try {\r\n st = conn.prepareStatement(sql);\r\n st.setInt(1, ringId);\r\n rs = st.executeQuery();\r\n\r\n if (rs.next()) {\r\n return rs.getInt(\"count(studentId)\");\r\n } else {\r\n return -1;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\r\n return -1;\r\n }\r\n\r\n }",
"int getScoresCount();",
"@Transactional\n\tpublic Integer countLabConstructUsers() {\n\t\treturn ((Long) labConstructUserDAO.createQuerySingleResult(\"select count(o) from LabConstructUser o\").getSingleResult()).intValue();\n\t}",
"public long getTotalCount() {\n return _totalCount;\n }",
"public int getTotalCount() {\r\n return root.getTotalCount();\r\n }",
"@Override\r\n\tpublic int getCount(PageBean bean) {\n\t\treturn session.selectOne(\"enter.getCount\", bean);\r\n\t}",
"@Override\n public long count() {\n String countQuery = \"SELECT COUNT(*) FROM \" + getTableName();\n return getJdbcTemplate().query(countQuery, SingleColumnRowMapper.newInstance(Long.class))\n .get(0);\n }",
"@Override\r\n\tpublic int count() throws StrumentoNotFoundException {\n\t\treturn (int) strumentoRepository.count();\r\n\t}",
"@Override\n\tpublic int selectCount(Object ob) {\n\n\t\tint res = session.selectOne(\"play.all_count\", ob);\n\n\t\treturn res;\n\t}",
"public static int countOfTeachers() {\n\n int count = 0;\n\n String sql = \"SELECT COUNT(teacher_id) AS count FROM teachers\";\n\n try (Connection connection = Database.getConnection();\n Statement statement = connection.createStatement();\n ResultSet set = statement.executeQuery(sql)) {\n\n if (set.next())\n count = set.getInt(\"count\");\n\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return count;\n }",
"public int findAllCount() {\n\t\treturn mapper.selectCount(null);\n\t}",
"public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}",
"public int getRatingListSize() throws GenericBusinessException {\n sust.bookshelves.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.bookshelves.hibernatehelper.HibernateQueryHelper();\n try {\n String queryString = \"select count(*) from \" + Rating.class.getName();\n Query query = hibernateTemplate.createQuery(queryString);\n List list = hibernateTemplate.list(query);\n Integer countResult = (Integer) list.get(0);\n return countResult.intValue();\n } finally {\n log.debug(\"finished getRatingListSize()\");\n }\n }"
] | [
"0.78461003",
"0.7481771",
"0.74776953",
"0.7453008",
"0.7439663",
"0.73855346",
"0.7313412",
"0.7313412",
"0.7143326",
"0.7097647",
"0.70702225",
"0.70595",
"0.70378006",
"0.700099",
"0.6943377",
"0.6927982",
"0.69041747",
"0.68900174",
"0.6867372",
"0.6834878",
"0.6828767",
"0.6799004",
"0.6789428",
"0.67707026",
"0.67707026",
"0.67707026",
"0.67707026",
"0.67707026",
"0.67707026",
"0.67707026",
"0.67707026",
"0.67707026",
"0.67707026",
"0.6759843",
"0.675008",
"0.67365825",
"0.67317814",
"0.67299837",
"0.67204154",
"0.67147535",
"0.67145836",
"0.67126924",
"0.6712198",
"0.67035985",
"0.6687849",
"0.66768146",
"0.6671161",
"0.664773",
"0.66389126",
"0.66222477",
"0.6620791",
"0.6602634",
"0.6585352",
"0.6579231",
"0.65590423",
"0.65397435",
"0.653916",
"0.6536048",
"0.65264773",
"0.6525041",
"0.65224946",
"0.6507676",
"0.6506059",
"0.6504862",
"0.6496143",
"0.64951193",
"0.64948934",
"0.64756083",
"0.6471854",
"0.6470188",
"0.645501",
"0.6451739",
"0.6450518",
"0.6445071",
"0.6444837",
"0.6443787",
"0.6443787",
"0.6443787",
"0.644212",
"0.6435936",
"0.6434204",
"0.64341027",
"0.6431719",
"0.6431264",
"0.6429486",
"0.64256716",
"0.6423319",
"0.6420447",
"0.6412985",
"0.64015466",
"0.6398889",
"0.639842",
"0.63904107",
"0.6383137",
"0.6380736",
"0.63734764",
"0.6371461",
"0.6367794",
"0.6366728",
"0.635888"
] | 0.8024453 | 0 |
Retrieves a list of data object for the specified studentId field. To use a wildcard search, use a % in the query. | public java.util.List findStudentByStudentId(java.lang.Integer studentId) throws GenericBusinessException {
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
String queryString = "from " + Student.class.getName() + " e where e.studentId like :studentId ";
// Add a an order by on all primary keys to assure reproducable results.
String orderByPart = "";
orderByPart += " order by e.studentId";
queryString += orderByPart;
Query query = hibernateTemplate.createQuery(queryString);
hibernateTemplate.setQueryParameter(query, "studentId", studentId);
List list = hibernateTemplate.list(query);
return list;
} finally {
log.debug("finished findStudentByStudentId(java.lang.Integer studentId)");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/students/{studentId}\")\n @ApiOperation(value = \"Search StudyClasses by its students\")\n public List<StudyClassDTO> findByStudentStudentId(\n @ApiParam(value = \"The student studentId\") @PathVariable String studentId) {\n return studyClassService.findByStudentStudentId(studentId);\n }",
"private static String searchStudent ( int studentId){\n for (Student s : studentDB) {\n if (s.getID() == studentId) {\n return s.getName();\n }\n }\n return \"\";\n }",
"public StudentUnitRecordList getRecordsByStudent(Integer studentID)\n {\n StudentUnitRecordList recordList =\n studentIdStudentRecordListMap_.get(studentID);\n\n if (recordList != null)\n return recordList;\n\n recordList = new StudentUnitRecordList();\n for (Element element : (List<Element>)XmlManager.getInstance()\n .getDocument().getRootElement()\n .getChild(\"studentUnitRecordTable\")\n .getChildren(\"record\")) {\n String recordStudentId = element.getAttributeValue(\"sid\");\n\n if (studentID.toString().equals(recordStudentId)) {\n String recordUnitCode = element.getAttributeValue(\"uid\");\n\n recordList.add(new StudentUnitRecordProxy(studentID,\n recordUnitCode));\n }\n }\n\n if (recordList.size() > 0)\n // be careful - this could be empty\n studentIdStudentRecordListMap_.put(studentID, recordList);\n\n return recordList;\n }",
"@RequestMapping( value = \"/{id}/student\", method = RequestMethod.GET )\n public Set<StudentDTO> readStudents(@PathVariable(value=\"id\") long id){\n return classService.read(id).getStudents();\n }",
"public student getstudent(Integer id);",
"@GetMapping(\"student-list/{id}\")\n\tpublic Student getStudentById(@PathVariable int id) throws SQLException {\n\t\treturn studentSerivce.getStudents(id);\n\t}",
"Student getStudentById(Long id);",
"@GetMapping(\"/students/{studentID}\")\n\t\tpublic Student getStudent(@PathVariable int studentID){\n\t\t\t\n\t\t\t\n\t\t\t//check to see the if the list size is available on the students list array\n\t\t\tif ((studentID >= theStudents.size()) || (studentID<0)) {\n\t\t\t\t\n\t\t\t\tthrow new StudentNotFoundException(\"Student not found :\" + studentID);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t/*\n\t\t\t * For this example we using the ID as array index reference \n\t\t\t */\n\t\t\treturn theStudents.get(studentID);\n\t\t}",
"public comprehensive_record findByStudent(String studentid) {\n\t\tString hql=\"from comprehensive_record cr where cr.personInfo.studentid=:studentid\";\r\n\t\treturn (comprehensive_record)getSession().createQuery(hql).setString(\"studentid\", studentid).uniqueResult();\r\n\t}",
"@Override\n public List<ArrayList<String>> queryStudentPersonalData(Token token, int studentID) {\n List<ArrayList<Object>> objList = null;\n\n try {\n objList = queryStudentPersonalData1(token, studentID);\n } catch (SCRSException e) {\n System.out.println(e.getMessage());\n return null;\n }\n List<ArrayList<String>> result = UtilMethods.convertObjListToStringList(objList);\n return result;\n }",
"public java.util.List findStudentByDepartmentId(java.lang.Integer departmentId) throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n String queryString = \"from \" + Student.class.getName() + \" e where e.departmentId like :departmentId \";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n hibernateTemplate.setQueryParameter(query, \"departmentId\", departmentId);\n List list = hibernateTemplate.list(query);\n return list;\n } finally {\n log.debug(\"finished findStudentByDepartmentId(java.lang.Integer departmentId)\");\n }\n }",
"@Override\r\n\tpublic List<StudentBean> getStudentsByClassId(String classId) {\n\t\treturn studentDAO.getStudentsByClassId(classId);\r\n\t}",
"public List<Student>ViewStudentDAO(int id) {\n\t\tList<Student> students = new ArrayList<Student>();\n\t\ttry {\n stmt = connection.prepareStatement(SqlQueries.GetStudents);\n stmt.setInt(1, id);\n stmt.execute();\t \n ResultSet result =stmt.executeQuery();\n while(result.next())\n {\n \tstudents.add(SDAO.GetStudent(result.getInt(1)));\n }\n } catch(Exception ex){\n \tlogger.error(ex.getMessage()); \n } finally{\n \t//close resources\n \tDBUtil.closeStmt(stmt);\n }\n\treturn students ;\t\n\t}",
"public Student getStudent(int studentId) {\n\t\tStudent student = this.hibernateTemplate.get(Student.class, studentId);\n\t\treturn student;\n\t}",
"public Student findStudent(int id);",
"public Student findByDeviceId(String deviceId);",
"Student get(long id);",
"List<StudentRecord> getStudents(String clientId) throws Exception;",
"List<ScoreEntity> findList(int studentId);",
"@Override\n\t public List<Student> getAllStudent(BigInteger stdId){\n\t \t\n\t\t \n\t \treturn (List<Student>) studentrepo.findAll(); \t\n\t }",
"StudentInfo selectByPrimaryKey(Integer id);",
"public Student getStudentById(int id){\n String whereClause=\"id=?\";\n String[] whereArgs={String.valueOf(id)};\n SQLiteDatabase st=getReadableDatabase();\n Cursor rs=st.query(\"student\",null,whereClause,\n whereArgs,null,null,null);\n if(rs.moveToNext()){\n String n=rs.getString(1);\n boolean g=rs.getInt(2)==1;\n double m=rs.getDouble(3);\n return new Student(id,n,g,m);\n }\n return null;\n }",
"public List<Student> getAllStudentData() {\r\n\t\tList<Student> list = new ArrayList<Student>();\r\n\t\ttry {\r\n\t\t\tConnection con = DatabaseUtility.getCon(inputStream);\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\"select * from student\");\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tStudent stud = new Student();\r\n\r\n\t\t\t\tstud.setRollno(rs.getInt(1));\r\n\t\t\t\tstud.setFname(rs.getString(2));\r\n\t\t\t\tstud.setLname(rs.getString(3));\r\n\t\t\t\tstud.setEmail(rs.getString(4));\r\n\t\t\t\tstud.setGender(rs.getString(5));\r\n\t\t\t\tstud.setDOB(rs.getString(6));\r\n\t\t\t\tstud.setAddress(rs.getString(7));\r\n\t\t\t\tstud.setContact(rs.getString(8));\r\n\r\n\t\t\t\tlist.add(stud);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(ex);\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}",
"@Override\n\tpublic List<Student> selectStudent(int classId) {\n\t\t\n\t\tString sql=\"select t2.stu_id,t2.stu_name,t2.stu_no ,t1.score_jilv,t1.score_jishu,t1.score_zhiye from \"\n\t\t\t\t+ \"(select stu_id,\"\n\t\t\t\t+ \"SUM(CASE WHEN score_type=1 THEN score_value END )score_jilv,\"\n\t\t\t\t+ \"SUM(CASE WHEN score_type=2 THEN score_value END )score_jishu,\"\n\t\t\t\t+ \"SUM(CASE WHEN score_type=3 THEN score_value END )score_zhiye \"\n\t\t\t\t+ \"from tb_score where class_id=? GROUP BY stu_id)t1,\"\n\t\t\t\t+ \"tb_student t2 WHERE t1.stu_id=t2.stu_id\";\n\t\tObject[] classid={classId};\n\t\t\n\t\tList<Student> stu=ORMUtil.ormutil().selectList(sql, classid, Student.class);\n\t\t\n\t\treturn stu;\n\t}",
"StudentEntity selectByPrimaryKey(String studentId);",
"@Override\n\tpublic Student selectStudentById(int stuId) {\n\t\tString sql=\"SELECT * FROM tb_student where stu_id=?\";\n\t\tObject[] stuid={stuId};\n\t\tList<Student> stu=ORMUtil.ormutil().selectList(sql, stuid, Student.class);\n\t\treturn stu.size()>0?stu.get(0):null;\n\t}",
"StudentRecord getStudent(String recordId, String clientId) throws Exception;",
"public java.util.List findStudentByStudentName(java.lang.String studentName) throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n String queryString = \"from \" + Student.class.getName() + \" e where e.studentName like :studentName \";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n hibernateTemplate.setQueryParameter(query, \"studentName\", studentName);\n List list = hibernateTemplate.list(query);\n return list;\n } finally {\n log.debug(\"finished findStudentByStudentName(java.lang.String studentName)\");\n }\n }",
"public Student[] listStudents(long id) {\n\t\treturn new Tutor().listMyStudents(id);\n\t}",
"@Query(value = \"SELECT stu.* \"\n\t\t\t+ \"FROM student_enrollment enr INNER JOIN student stu ON stu.id = enr.studentId \"\n\t\t\t+ \"WHERE enr.courseId = :courseId\", nativeQuery = true)\n\tpublic List<Student> findStudentsWithCourseId(@Param(\"courseId\") Long courseId);",
"public Query_GetStudent(DataSource ds) {\n\t\t\tsuper(ds, sql_getStudent);\n\t\t\tsuper.declareParameter(new SqlParameter(\"id\", Types.INTEGER));\n\t\t\tcompile();\n\t\t}",
"public static Student getStudent(String studentId) {\n\t\tStudent student = new Student();\n\n\t\ttry {\n\t\t\tClass.forName(driverName);\n\n\t\t\tConnection con = DriverManager.getConnection(\n\t\t\t\t\t\"jdbc:hive://localhost:10000/default\", \"\", \"\");\n\t\t\tStatement stmt = con.createStatement();\n\t\t\tString tableName = \"eclsk\";\n\n\t\t\t// select * query\n\t\t\tString sql = \"select * from \" + tableName\n\t\t\t\t\t+ \" where childid = '\" + studentId + \"'\";\n\t\t\t\n\t\t\tLogger.log(\"Running: \" + sql);\n\t\t\t\n\t\t\tResultSet res = stmt.executeQuery(sql);\n\t\t\twhile (res.next()) {\n\t\t\t\tpopulateRecord(student, res);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn student;\n\t}",
"@Override\n\t//查询数据\n\tpublic Student selectStudent(String id) {\n\t\tStudent student =null;\n\t\tConnection connection =null;\n\t\tPreparedStatement pstatement = null;\n\t\tResultSet rset = null;\n\t\tString sql =\"SELECT * FROM mwfj_jdbc.Student WHERE id = ? \";\n\t\ttry {\n\t\t\tconnection = MySQLConnectUtil.getMySQLConnection();\n\t\t\tSystem.out.println(\"connection: \"+connection);\n\t\t\tpstatement = connection.prepareStatement(sql);\n\t\t\tpstatement.setString(1,id);\n\t\t\trset = pstatement.executeQuery();\n\t\t\twhile(rset.next()){\n\t\t\t\tstudent = new Student();\n\t\t\t\tstudent.setId(rset.getString(1));\n\t\t\t\tstudent.setName(rset.getString(2));\n\t\t\t\tstudent.setAge(rset.getInt(3));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tMySQLConnectUtil.closeResultset(rset);\n\t\t\tMySQLConnectUtil.closePreparestatement(pstatement);\n\t\t\tMySQLConnectUtil.closeConnection(connection);\n\t\t}\n\t\treturn student;\n\t}",
"Student selectByPrimaryKey(Integer id);",
"public List <Student> getAllStudents();",
"Student findById(String id);",
"Student selectByPrimaryKey(Integer studentId);",
"@Override\r\n\tpublic Student getStudentById(Long id) {\n\t\treturn studentRepository.findById(id).get();\r\n\t}",
"List<StudentDto> getStudentsBySchoolYearIdAndListOfIds(Long schoolYearId, List<Long> studentIds);",
"public void setStudentId(String studentId) {\r\n this.studentId = studentId;\r\n }",
"@Override\n\tpublic List<Student> selectStudent2(int classId) {\n\t\tString sql=\"SELECT stu_id,stu_no,stu_name,stu_profession FROM tb_student where class_id=?\";\n\t\tObject[] classid={classId};\n\t\tList<Student> stu=ORMUtil.ormutil().selectList(sql, classid, Student.class);\n\t\treturn stu;\n\t}",
"public Student getById(int id) {\r\n\r\n\t\treturn studentMapper.selectByPrimaryKey(id);\r\n\t}",
"public Student searchStudent(String id) {\n\t\tfor (String key : list.keySet()) {\n\t\t\tif(id.equals(key))\n\t\t\t\treturn list.get(key);\n\t\t}\n\t\treturn null;\n\t}",
"public ArrayList getStudentIds(String courseId)\r\n throws RemoteException;",
"java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList();",
"List<Student> getStudent();",
"public Student getStudent(String theStudentId)throws Exception {\n\t\tStudent theStudent=null;\n\t\tConnection conn=null;\n\t\tPreparedStatement myStmt=null;\n\t\tResultSet myRs=null;\n\t\tint studentId;\n\t\ttry{\n\t\t\t// convert student id to int\n\t\t\tstudentId=Integer.parseInt(theStudentId);\n\t\t\t//get connection to database\n\t\t\tconn=dataSource.getConnection();\n\t\t\t//create sql to get selected student\n\t\t\tString sql=\"select * from student where id=?\";\n\t\t\t//create prepared statement\n\t\t\tmyStmt=conn.prepareStatement(sql);\n\t\t\t// set parameters\n\t\t\tmyStmt.setInt(1, studentId);\n\t\t\t//execute statement\n\t\t\tmyRs=myStmt.executeQuery();\n\t\t\t//retrieve data from result set row\n\t\t\tif(myRs.next()) {\n\t\t\t\tString firstName=myRs.getString(\"first_name\");\n\t\t\t\tString lastName=myRs.getString(\"last_name\");\n\t\t\t\tString email=myRs.getString(\"email\");\n\t\t\t\ttheStudent=new Student(studentId,firstName,lastName,email);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new Exception(\"Could'nt find the student id:\"+ studentId);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose(conn,myStmt,myRs);\n\t\t}\n\t\treturn theStudent;\n\t}",
"public Object findByStudentID(String studentID) {\n\t\tList result = accountDao.findByStudentID(studentID);\r\n\t\treturn result.size()==0 ? null: result.get(0);\r\n\t}",
"public Student findById(int theStudent_id);",
"public List<StudentExam> findAllByExamId(Long examId) {\n log.debug(\"Request to get all student exams for Exam : {}\", examId);\n return studentExamRepository.findByExamId(examId);\n }",
"public sust.paperlessexm.entity.Student getStudent(java.lang.Integer id) throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n Student bean = (Student) hibernateTemplate.get(Student.class, id);\n return bean;\n } finally {\n log.debug(\"finished getStudent(java.lang.Integer id)\");\n }\n }",
"@GetMapping(value = getTeachersByStudentIdMapping + \"{studentId}\")\r\n\tpublic ResponseEntity<List<Teacher>> getTeachersByStudentId(@PathVariable(\"studentId\") String studentId) {\r\n\t\treturn ResponseEntity.ok().body(teacherStudentService.getTeachersByStudentId(studentId));\r\n\t}",
"List<Student> getAllStudents();",
"@Override\r\n\tpublic Student getById(int id) {\n\t\treturn sdao.getStudentById(id);\r\n\t}",
"public StudentDto getStudentById(Integer studentId) {\n\t\tif (ObjectUtils.isEmpty(studentId))\n\t\t\tthrow new BadRequestException(Constants.genericRequiredFieldsMissingMsg);\n\n\t\tOptional<Student> existingStudentOptional = studentRepository.findById(studentId);\n\t\tif (existingStudentOptional.isPresent()) {\n\t\t\treturn converter.convert(existingStudentOptional.get());\n\t\t} else {\n\t\t\tthrow new ResourceNotFoundException(Constants.studentNotFound);\n\t\t}\n\t}",
"@Override\n\tpublic List<Student> queryByGid(int gid) {\n\t\treturn sDao.queryByGid(gid);\n\t}",
"@GetMapping(\"/{id}/students\")\n public List<Students> getStudents(@PathVariable long id) {\n //code\n return null;\n }",
"public List<User_info> getListStudent(long course_id) {\n try {\n \tConnection conn = DBConnect.getConnecttion();\n String sql = \"select * from user_info,course_user where course_user.course_id='\"+course_id+\"' and user_info.id =course_user.id and user_info.quyen=2 \";\n ps = conn.prepareStatement(sql);\n rs = ps.executeQuery();\n \n List<User_info> listStudent = new ArrayList<User_info>();\n while (rs.next()) {\n \tUser_info u = new User_info();\n \tu.setId(rs.getLong(1));\n \tu.setTen(rs.getString(2));\n \tu.setSodienthoai(rs.getString(3));\n \tu.setGioitinh(rs.getInt(4));\n \tu.setNgaysinh(rs.getString(5));\n \tu.setEmail(rs.getString(6));\n \tu.setAnhdaidien(rs.getString(7));\n \tu.setDiachi(rs.getString(8));\n \tu.setQuyen(rs.getInt(9));\n \tlistStudent.add(u);\n }\n conn.close();\n return listStudent;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"public ArrayList getCourseIds(String studentId)\r\n throws RemoteException;",
"public ArrayList<Student> getAllStudentInfo(String student_id,\n\t\t\tString roll_no) {\n\t\tArrayList<Student> studentList = new ArrayList<Student>();\n\t\t// Select All Query\n\t\tString selectQuery = \"SELECT * FROM \" + TABLE_TEACHER_ASSIGNMENT\n\t\t\t\t+ \" WHERE \" + KEY_STUDENT_ID + \"=\" + student_id + \" AND \"\n\t\t\t\t+ KEY_ROLL_NO + \"=\" + roll_no;\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tcursor.moveToFirst();\n\t\twhile (cursor.isAfterLast() == false) {\n\t\t\tStudent info = new Student();\n\t\t\tinfo.row_id = Integer.parseInt(cursor.getString(0));\n\t\t\tinfo.id = cursor.getString(1);\n\t\t\tinfo.name = cursor.getString(2);\n\t\t\tinfo.roll_no = cursor.getString(3);\n\t\t\tinfo.section_id = cursor.getString(4);\n\t\t\tinfo.subject_id = cursor.getString(5);\n\t\t\tinfo.teacher_id = cursor.getString(6);\n\t\t\t// Adding contact to list\n\t\t\tstudentList.add(info);\n\t\t\tcursor.moveToNext();\n\t\t}\n\t\tcursor.close();\n\t\t// return contact list\n\t\treturn studentList;\n\t}",
"public void setStudentId(Long studentId) {\n this.studentId = studentId;\n }",
"@GetMapping(\"/students/{id}\")\n @Timed\n public ResponseEntity<Student> getStudent(@PathVariable Long id) {\n log.debug(\"REST request to get Student : {}\", id);\n Student student = studentService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(student));\n }",
"public Student retrieveStudentObject(String studentID) {\r\n\t\tStudent studentToRetrieve = null;\r\n\t\tStudent student = new Student();\r\n\r\n\t\ttry {\r\n\t\t\tList<Student> listOfStudents = student.retrieveAllStudentObjects();\r\n\r\n\t\t\tfor (int i = 0; i < listOfStudents.size(); i++) {\r\n\t\t\t\tif (listOfStudents.get(i).getStudentID().equals(studentID)) {\r\n\t\t\t\t\tstudentToRetrieve = listOfStudents.get(i);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (studentToRetrieve == null) {\r\n\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn studentToRetrieve;\r\n\t}",
"@Override\n\tpublic List<Student> getById(int class0) {\n\t\tString aql = \"select * from tstudent where class=?\";\n\t\tList<Student> studentlist = new ArrayList<Student>();\n\t\tList<Map<String, Object>> maplist = DBUtils2.query(aql, new Integer(class0));\n\t\tfor (Map<String, Object> map : maplist) {\n\t\t\tStudent student = new Student();\n\t\t\tstudent.setId((Integer) (map.get(\"id\")));\n\t\t\tstudent.setName((String) (map.get(\"name\")));\n\t\t\tstudent.setClass1((Integer) (map.get(\"class\")));\n\t\t\tstudent.setStudynum((Integer) (map.get(\"studynum\")));\n\n\t\t\tstudentlist.add(student);\n\t\t}\n\t\treturn studentlist;\n\t}",
"public void searchStudentByCode(String id) {\r\n System.out.println(\"conectado con model ---> metodo searchStudentByCode\");\r\n //TODO\r\n }",
"@Override\n\t//查询所有数据\n\tpublic List<Student> selectStudents() {\n\t\tConnection connection =null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tList<Student> sList = new ArrayList<Student>();\n\t\t\n\t\ttry {\n\t\t\tconnection = MySQLConnectUtil.getMySQLConnection();\n\t\t\tps = connection.prepareStatement(QUARYSQL);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudent student = new Student();\n\t\t\t\tstudent.setId(rs.getString(\"ID\"));\n\t\t\t\tstudent.setName(rs.getString(\"NAME\"));\n\t\t\t\tstudent.setAge(rs.getInt(\"AGE\"));\n\t\t\t\tsList.add(student);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tMySQLConnectUtil.closeResultset(rs);\n\t\t\tMySQLConnectUtil.closePreparestatement(ps);\n\t\t\tMySQLConnectUtil.closeConnection(connection);\n\t\t}\n\t\treturn sList;\n\t}",
"@Override\r\n\tpublic List<Student> getStudents(String courseName) {\n\t\tList<Student> students=new ArrayList<>();\r\n\t\tString sql=\"select studentid, studentname, studentshv.courseid from studentshv inner join courseshv on studentshv.courseid=courseshv.courseid where coursename=?\";\r\n\t\tPreparedStatement pstmt = null;\r\n\t\ttry {\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, courseName);\r\n\t\t\tResultSet rs=pstmt.executeQuery();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tlong studentId=rs.getLong(\"studentid\");\r\n\t\t\t\tString studentName=rs.getString(\"studentname\");\r\n\t\t\t\tlong courseId=rs.getLong(\"courseid\");\r\n\t\t\t\tstudents.add(new Student(studentId,studentName,courseId));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn students;\r\n\t}",
"public Employee getStudentOnId(int id);",
"public List<Student> search() {\n \tQuery query = em.createQuery(\"Select e FROM Student e WHERE e.grade > 50.00\");\r\n \tList<Student> result = query.getResultList();\r\n \t\r\n \t \r\n \t// Query for a List of data elements.\r\n// \tQuery query = em.createQuery(\"Select e.firstname FROM Student e\");\r\n// \tList<String> result = query.getResultList();\r\n \t \r\n \t// Query for a List of element arrays.\r\n// \tQuery query = em.createQuery(\"Select e.firstname, e.grade FROM Student e\");\r\n// \tList<Object[]> result = query.getResultList();\r\n \t\r\n\t\t// \tsetFirstResult()\r\n\t\t// \tsetMaxResults()\r\n \t\r\n \treturn result;\r\n }",
"@Override\n\tpublic List getPaperByStudentId(int studentId, int testId) {\n\t\treturn null;\n\t}",
"@GetMapping(value = getDataForMapping + \"/{studentId}\")\r\n\tpublic ResponseEntity<List<Teacher>> getTeachersForMapping(@PathVariable(\"studentId\") String studentId) {\r\n\t\treturn ResponseEntity.ok().body(teacherStudentService.getTeachersForMapping(studentId));\r\n\t}",
"@GetMapping(\"/api/students/{id}\")\n public ResponseEntity getById(@RequestParam(value = \"id\", required = false) Long id) {\n\n return ResponseEntity.ok(studentService.returnById(id));\n\n }",
"public static String getDatesListbystudentCourseandstID(String courseId,String studentId){\n String value= Prefs.getString(courseId+\"+\"+ studentId, \"\");\n\n return value;\n\n }",
"@GET(\"projects/{project_id}/students\")\n Call<ResponseBody> getStudentsInProject(@Path(\"project_id\") int id);",
"public Student getStudent(int id) {\n\t\tlog.info(\"Get Student ID = \" + id);\n\t\tList<?> students = query_getStudent.execute(id);\n\t\tif (students.size() == 1) {\n\t\t\tStudent s = (Student) students.get(0);\n\t\t\tlog.debug(\"Returning Student \\\"\" + s.getFirstname() + \" \"\n\t\t\t\t\t+ s.getLastname() + \"\\\"\");\n\t\t\treturn s;\n\t\t} else {\n\t\t\tlog.debug(\"No Student data\");\n\t\t\treturn null;\n\t\t}\n\t}",
"public List getStudentList() throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n\n String queryString = \"from \" + Student.class.getName() + \" e\";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n List list = hibernateTemplate.list(query);\n\n return list;\n } finally {\n log.debug(\"finished getStudentList\");\n }\n }",
"public ArrayList<Student> retrieveStudentRequests(int teamId) {\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM student_request WHERE team_id = \" + teamId);\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint stdId\t \t= Integer.parseInt(array.get(1));\r\n\t\t\t\r\n\t\t\tStudent student = null;\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tstudent = retrieve(stdId);\r\n\t\t\t}catch(Exception e){}\r\n\t\t\t\r\n\t\t\tstudents.add(student);\r\n\t\t}\r\n\t\t\r\n\t\treturn students;\r\n\t}",
"public List<StudentDto> getAllStudents() {\n\t\tList<Student> studentList = studentRepository.findAll();\n\t\tif (ObjectUtils.isEmpty(studentList))\n\t\t\tthrow new ResourceNotFoundException(Constants.noDataFound);\n\n\t\tList<StudentDto> studentDtoList = studentList.stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t .map(converter::convert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.toList());\t\t\n\t\treturn studentDtoList;\n\t}",
"private Student getStudentByID(String sid) {\n\t\tfor(Student student: students) {\r\n\t\t\t//no need to check for null as Array list is dynamic and \r\n\t\t\tif(student.getStudentId().equals(sid)) {\r\n\t\t\t\treturn student;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return null if sid was not found\r\n\t\treturn null;\r\n\t}",
"public Student getById(int id) {\n\t\tResultSet rs = null;\n\t\t\n\t\tString sql = String.format(\"select * from student where id = %s\", id);\n\t\ttry {\n\t\t\trs = myDB.execSQLQuery(sql);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint aPosition = 0;\n\t\tStudent aStudent = getAStudentFromRS(rs, aPosition);\n\t\treturn aStudent;\n\t}",
"List<Map<String, Object>> getStudentsList();",
"@Query(value = \"select * from javateam5.studentcourse sc where sc.studentid = :sid and sc.moduleid in (select moduleid from modules where academicyear = year(curdate())) \", nativeQuery = true)\r\n\tArrayList<Studentcourse> findModbyStuandYear(@Param(\"sid\") String sid);",
"List<Student> selectByExample(StudentExample example);",
"@Override\n public List<StudentOnYearDTO> studentsBySubject(Long subjectId, Pageable pageable)\n throws SubjectRealizationNotFoundException\n {\n SubjectRealization subjectRealization = this.subjectRealizationRepository\n .findBySubjectId(subjectId)\n .orElseThrow(\n () ->\n new SubjectRealizationNotFoundException(String.format(\"Subject realization with subject id: %s could not be found\", subjectId))\n );\n // holds students\n List<SubjectAttendance> subjectAttendances = this.subjectAttendanceRepository\n .getAllBySubjectRealizationIdAndDeletedFalse(subjectRealization.getId(), pageable);\n\n List<Long> studentIds = new ArrayList<>();\n subjectAttendances.forEach(sA -> studentIds.add(sA.getStudent().getStudentId()));\n\n List<StudentDTO> studentDTOS = this.authService.getAllStudents(jwtUtil.getToken(), studentIds);\n\n List<Long> studentIdsDTO = studentDTOS.stream().mapToLong(StudentDTO::getId).boxed().collect(Collectors.toList());\n List<StudentOnYear> studentOnYears = this.studentOnYearRepository.findAllByStudentIdIn(studentIdsDTO);\n return StudentOnYearMapper.map(studentDTOS, studentOnYears, subjectRealization);\n }",
"Collection<Section> findByStudentNo(int studentNumber);",
"@Search()\n\t\tpublic List<Patient> getResourceById(@RequiredParam(name = \"_id\") String theId) {\n\t\t\tPatient patient = getIdToPatient().get(theId);\n\t\t\tif (patient != null) {\n\t\t\t\treturn Collections.singletonList(patient);\n\t\t\t} else {\n\t\t\t\treturn Collections.emptyList();\n\t\t\t}\n\t\t}",
"Student selectByPrimaryKey(Integer userid);",
"@GetMapping(path = \"/student\")\n public Set<PlacementViewDto> getRecordsByStudentName(@RequestParam(value = \"studentName\") String studentName, @RequestParam(defaultValue = \"0\") String page) {\n return placementService.getDetailsByStudentName(studentName, page);\n }",
"public static String findStudentname(String student_id) throws SQLException\n\t{\n\t\tResultSet student;\n\t\tString full_name;\n\t\tList<String> first_name;\n\t\tList<String> middle_name;\n\t\tList<String> last_name;\n\t\tstudent = test.readDatabase(\"select distinct First_name, Middle_name, Last_name from class_2016 where Banner_Id = '\"+student_id+\"'\");\n\t\tfirst_name = test.writeResultSet(student, \"First_name\");\n\t\tstudent = test.readDatabase(\"select distinct First_name, Middle_name, Last_name from class_2016 where Banner_Id = '\"+student_id+\"'\");\n\t\tmiddle_name = test.writeResultSet(student, \"Middle_name\");\n\t\tstudent = test.readDatabase(\"select distinct First_name, Middle_name, Last_name from class_2016 where Banner_Id = '\"+student_id+\"'\");\t\t\n\t\tlast_name = test.writeResultSet(student, \"Last_name\");\n\t\t//System.out.println(first_name);\n\t\tfull_name = last_name.get(0) +\", \"+ first_name.get(0) + \" \" + middle_name.get(0);\n\t\treturn full_name;\n\t}",
"@Override\r\n\tpublic Student findStudent(String studentId, String password) {\n\t\treturn db.findStudent(studentId, password);\r\n\t}",
"public Object searchSingle() {\n \tQuery query = em.createQuery(\"Select e FROM Student e WHERE e.studentId = :id\");\r\n \tquery.setParameter(\"id\", 1);\r\n \tStudent result = (Student)query.getSingleResult();\r\n \t \r\n \t// Query for a single data element.\r\n// \tQuery query = em.createQuery(\"Select MAX(e.grade) FROM Student e\");\r\n// \tBigDecimal result = (BigDecimal)query.getSingleResult();\r\n \t\r\n// \tQuery query = em.createQuery(\"Select e FROM Student e JOIN e.projectList u WHERE u.name = :name\");\r\n// \tquery.setParameter(\"name\", \"student_example\");\r\n// \tStudent result = (Student)query.getSingleResult();\r\n \t\r\n\r\n\r\n \t\r\n \treturn result;\r\n }",
"@Override\r\n\tpublic ReportAndSummary findByStudentId(int id) {\n\t\tReportAndSummary result = reportAndSummaryDao.findByStudentId(id);\r\n\t\treturn result;\r\n\t}",
"public E returnStudent(String studentID){}",
"@GET\n @Path(\"/{id}\")\n @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\n public Response getStudentGrade(@PathParam(\"id\") int id) {\n // getting student by it's index\n StudentService studentService = new StudentService();\n Student searchedStudent = studentService.getStudent(index);\n\n // checking if student exists\n if (searchedStudent == null) {\n return Response.status(Response.Status.NOT_FOUND).entity(\"Student not found\").build();\n }\n\n // getting student's grade by it's id\n Grade searchedGrade = searchedStudent.getGradeById(id);\n\n // checking if student's grade exists\n if (searchedGrade == null) {\n return Response.status(Response.Status.NOT_FOUND).entity(\"Grade not found\").build();\n }\n\n // creating xml response\n return Response.status(Response.Status.OK).entity(searchedGrade).build();\n }",
"public ArrayList<Student> getStudents() {\n\n ArrayList<Student> students = new ArrayList<Student>();\n String query = \"SELECT * FROM student\";\n try{\n result = statement.executeQuery(query);\n while(result.next()) {\n\n String id = Integer.toString(result.getInt(\"student_id\"));\n String firstName = result.getString(\"student_first_name\");\n String lastName = result.getString(\"student_last_name\");\n String degree = result.getString(\"degree\");\n String yearOfStudy = result.getString(\"year_of_study\");\n String outcome = result.getString(\"outcome\");\n students.add(new Student(id, firstName, lastName, degree, yearOfStudy, outcome));\n\n }\n }\n catch (SQLException e){\n\n }\n\n return students;\n }",
"List<StudentClass> findClassesBySchoolId(int id) throws TechnicalException;",
"public ArrayList<Student> getStudentsForCourse(Course course){\n ArrayList<Student> result = new ArrayList();\n \n String statement = GET_SUDENTS_FOR_COURSE;\n \n ResultSet rs = data.makePreparedStatement(statement,new Object[]{(Object)course.getId()});\n try {\n while(rs.next()){\n Student student = new Student(rs.getInt(\"id\"),rs.getString(\"first_name\"),rs.getString(\"last_name\"),\n rs.getDate(\"birthday\").toLocalDate(),rs.getDouble(\"tuition_fees\"));\n result.add(student);\n \n }\n } catch (SQLException ex) {\n System.out.println(\"Problem with CourseDao.getStudentsForCourse()\");\n }finally{\n data.closeConnections(rs,data.ps, data.conn);\n }\n \n return result;\n }",
"public List<Student> fetch() {\n List<Student> studentList = new ArrayList<>();\n String[] columns = new String[]{DatabaseHelper.ID, DatabaseHelper.STUDENT_NAME, DatabaseHelper.STUDENT_ADDRESS};\n Cursor cursor = sqLiteDatabase.query(DatabaseHelper.TABLE_NAME, columns, null,\n null, null, null, null);\n while (cursor.moveToNext()) {\n Student student = new Student(cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_NAME)),\n cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_ADDRESS)),\n cursor.getInt(cursor.getColumnIndex(DatabaseHelper.ID)));\n studentList.add(student);\n }\n return studentList;\n }",
"@Override\n\tpublic TblVToeic searchToeic(int idStudent) {\n\t\tSessionFactory factory = HibernateUtils.getSessionFactory();\n\t\tSession session = factory.getCurrentSession();\n\t\ttry {\n\t\t\tsession.getTransaction().begin();\n\t\t\tString hql=\"select e from TblVToeic e where idStudent= :idStudent\";\n\t\t\tQuery query= session.createQuery(hql);\n\t\t\tquery.setParameter(\"idStudent\",idStudent);\n\t\t\tList<TblVToeic> listToeic=query.list();\n\t\t\tsession.getTransaction().commit();\n\t\t\treturn listToeic.get(0);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(\"Loi: \" + ex.getMessage());\n\t\t}\n\t\treturn null;\n\t}",
"Student findWithSectionsBy(int studentNumber);"
] | [
"0.72518843",
"0.695708",
"0.66644615",
"0.6656006",
"0.6650189",
"0.6571186",
"0.6549743",
"0.65193224",
"0.6510071",
"0.64951545",
"0.64502084",
"0.6445017",
"0.64373755",
"0.64212173",
"0.63933104",
"0.6378848",
"0.63445276",
"0.6342496",
"0.6341367",
"0.62423354",
"0.62376195",
"0.6196483",
"0.61944664",
"0.6184628",
"0.6139151",
"0.6130239",
"0.6125057",
"0.6118656",
"0.6109201",
"0.6100799",
"0.6099724",
"0.6094922",
"0.60819906",
"0.6081411",
"0.60792446",
"0.60733795",
"0.6070268",
"0.6048288",
"0.60400856",
"0.6012599",
"0.6009809",
"0.6006177",
"0.59895456",
"0.59888124",
"0.5987637",
"0.59858495",
"0.5983299",
"0.5961427",
"0.59519047",
"0.5950735",
"0.59493446",
"0.5944988",
"0.5918237",
"0.58909225",
"0.58839786",
"0.58838916",
"0.5882116",
"0.587777",
"0.58765304",
"0.5874237",
"0.5863045",
"0.58534247",
"0.58521104",
"0.5844675",
"0.5843473",
"0.5818085",
"0.58176875",
"0.5814802",
"0.5808559",
"0.5795647",
"0.5789533",
"0.57686627",
"0.5766287",
"0.57598376",
"0.57533014",
"0.5745038",
"0.5738747",
"0.5738457",
"0.57364196",
"0.57225513",
"0.57187253",
"0.5716098",
"0.5714993",
"0.5712845",
"0.5702903",
"0.5693168",
"0.56770754",
"0.5674366",
"0.56735194",
"0.5668317",
"0.5650702",
"0.56470627",
"0.5645334",
"0.5642989",
"0.5635659",
"0.5634593",
"0.563259",
"0.56322074",
"0.5624051",
"0.561411"
] | 0.73085433 | 0 |
Retrieves a list of data object for the specified registrationNo field. To use a wildcard search, use a % in the query. | public java.util.List findStudentByRegistrationNo(java.lang.String registrationNo) throws GenericBusinessException {
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
String queryString = "from " + Student.class.getName() + " e where e.registrationNo like :registrationNo ";
// Add a an order by on all primary keys to assure reproducable results.
String orderByPart = "";
orderByPart += " order by e.studentId";
queryString += orderByPart;
Query query = hibernateTemplate.createQuery(queryString);
hibernateTemplate.setQueryParameter(query, "registrationNo", registrationNo);
List list = hibernateTemplate.list(query);
return list;
} finally {
log.debug("finished findStudentByRegistrationNo(java.lang.String registrationNo)");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public List<String> getSlotNumberForRegNumber(String registrationNumber) {\n List<String> retVal = new ArrayList<>();\n\n List<Slot> slots = getSlots();\n if (slots == null) {\n retVal.add(NOT_FOUND);\n return retVal;\n }\n\n String collect = slots.stream()\n .filter(x -> x.getVehicle() != null && x.getVehicle().getRegistrationNumber().equals(registrationNumber))\n .map(y -> String.valueOf(y.getId()))\n .collect(Collectors.joining(\", \"));\n\n if (collect == null || \"\".equals(collect)) {\n retVal.add(NOT_FOUND);\n } else {\n retVal.add(collect);\n }\n return retVal;\n }",
"static SearchResult<AccountHolder> getHolders(String no) throws RecordSearchException {\n String condition = \"AccountNo = '\" + no + \"'\";\n\n LinkedList<Record> records = AccountHolderTable.getInstance().read(condition);\n\n if (records == null || records.size() == 0) {\n throw new RecordSearchException();\n }\n\n try {\n SearchResult<AccountHolder> holders = new SearchResult<>();\n\n for (LinkedHashMap<String, Object> record : records) {\n holders.add(new AccountHolder(record));\n }\n\n return holders;\n } catch (SchemaCreationException e) {\n Logger.error(e);\n\n throw new RecordSearchException(\"Error reading records from the Database\");\n }\n }",
"public List<ResponseVO> getResponseVOByReqNo(int queryReqNo) {\n\t\treturn responseDAO.getResponseVOByReqNo(queryReqNo);\n\t}",
"public void setRegistNo(java.lang.String registNo) {\n this.registNo = registNo;\n }",
"@Override\n public ArrayList<VendorInfoDetails> getVendorInformation(String orinNo)\n throws PEPPersistencyException{\n LOGGER.info(\"in getVendorInfoDetails()\"); \n List<VendorInfoDetails> vendorDetailsList = new ArrayList<VendorInfoDetails>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getVendorInformation());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(10);\n List<Object[]> rows = query.list();\n try{\n for(Object[] row : rows){\n \n VendorInfoDetails viDetails = new VendorInfoDetails();\n //Null check\n if(row[2] != null){\n viDetails.setCarrierAcct(row[0]!=null?row[2].toString():null); \n }else{\n \n viDetails.setCarrierAcct(\"\"); \n }if(row[3]!= null){ \n viDetails.setVendorsampleAddress(row[3]!=null?row[3].toString():null);\n }else{\n \n viDetails.setVendorsampleAddress(\"\");\n }\n \n viDetails.setVendorsampleIndicator(row[0]!=null?row[1].toString():null);\n \n vendorDetailsList.add(viDetails);\n \n } \n }catch(Exception e){\n \te.printStackTrace();\n }\n \n tx.commit();\n session.close(); \n \n LOGGER.info(\"Exiting getVendorInfoDetails\");\n return (ArrayList<VendorInfoDetails>) vendorDetailsList;\n }",
"public Vehicle getRegNo(String regNo) {\n\t\tfor (int i = 0; i < vehicles.size(); i++) {\n\t\t\tVehicle temp = vehicles.get(i);\n\n\t\t\tif (temp.getRegNo().equals(regNo)) {\n\t\t\t\treturn temp;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic List<AadharBean> getDetails(int aadharNo) {\r\n\t\tString hql = \"from AadharBean where aadharNo = :id\";\r\n\t\tSession session = factory.openSession();\r\n\t\tAadharBean register = (AadharBean) session.get(AadharBean.class, aadharNo);\r\n\r\n\t\tQuery query = session.createQuery(hql);\r\n\t\tquery.setParameter(\"id\", register.getAadharNo());\r\n\t\treturn null;\r\n\t}",
"public void listSpecificVehicle(String registerNumber)\n\t{\n\t\tif(garageMap.containsKey(registerNumber)) {\n\t\t\tfor (Vehicle nextVehicle : garageMap.values() ) {\n\t\t\t\tif(nextVehicle.getRegistrationNumber().equals(registerNumber))\n\t\t\t\t{\n\t\t\t\t\texists = true;\n\t\t\t\t\tSystem.out.println(\"\\n\" + \"Vehicle Found! \\n\");\n\t\t\t\t\tSystem.out.println(nextVehicle.toString() );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\texists = false;\n\t\t}\n\t}",
"public List<Telefono> getTelefonos(String dni);",
"@Override\r\n\tprotected List<ApplMstHousestatus> getData(int pageNo, int numOfBulkRecord) {\n\t\treturn service.getByPage(pageNo, numOfBulkRecord);\r\n\t}",
"@GET\n\t@Produces({\"application/json\",\"application/xml\"}) //we want to send the pnrdetails in the json form\n\tpublic List<Train> getPNRDetails(@QueryParam(\"pnrNo\") long pnrNo){\n\t\t\n\t\tRailwayReservationSystem rs=new RailwayReservationSystem();\n\t\t//PNRDetails pnrDetails=rs.getPNRDetails(pnrNo);\n\t\tList<Train> a=rs.getTrainList();\n\t\treturn a;\n\t\t\n\t}",
"public List<Patient> getFHIR() {\n IGenericClient client;\n FhirContext ctx;\n ctx = FhirContext.forDstu3();\n ctx.setRestfulClientFactory(new OkHttpRestfulClientFactory(ctx));\n client = ctx.newRestfulGenericClient(\"http://fhirtest.uhn.ca/baseDstu3\");\n\n // .lastUpdated(new DateRangeParam(\"2011-01-01\",\"2018-11-25\")) - to get latest data\n // Not used since unable to get proper records with names\n Bundle bundle = client.search().forResource(Patient.class)\n .where(Patient.NAME.isMissing(false))\n .and(Patient.BIRTHDATE.isMissing(false))\n .and(Patient.GENDER.isMissing(false))\n .sort().ascending(Patient.NAME)\n .count(10)\n .returnBundle(Bundle.class)\n .execute();\n return BundleUtil.toListOfResourcesOfType(ctx, bundle, Patient.class);\n }",
"@Override\n\tpublic List<P0001VO> searchAdd() throws DataAccessException {\n\t\treturn null;\n\t}",
"List<Registration> allRegUser(long idUser);",
"public List<Registration> getRegistrateById(int id1) throws Exception {\n\t\tList<Registration> list = new ArrayList<Registration>();\n\t\tconn=DBUtil.getConnection();\n\t\tString sql =\"select * from registration where id=?\";\n\t\tps =conn.prepareStatement(sql);\n\t\tps.setInt(1, id1);\n\t\trs= ps.executeQuery();\n\t\twhile (rs.next()) {\n\t\t\tint id = rs.getInt(\"id\");\n\t\t\tint group_id = rs.getInt(\"group_id\");\n\t\t\tString name = rs.getString(\"name\");\n\t\t\tString birthday = rs.getString(\"birthday\");\n\t\t\tString sex = rs.getString(\"sex\");\n\t\t\tString address = rs.getString(\"address\");\n\t\t\tString idCard = rs.getString(\"idCard\");\n\t\t\tString marriage = rs.getString(\"marriage\");\n\t\t\tString nationa = rs.getString(\"nationa\");\n\t\t\tString phone_number = rs.getString(\"phone_number\");\n\t\t\tString date = rs.getString(\"date\");\n\t\t\tString reservation_date = rs.getString(\"reservation_date\");\n\t\t\tString physical_examination = rs.getString(\"physical_examination\");\n\t\t\tString combo = rs.getString(\"combo\");\n\t\t\tString comments = rs.getString(\"comments\");\n\n\t\t\tRegistration registration = new Registration(id, group_id, name, sex, birthday,\n\t\t\t\t\t idCard, address, marriage, nationa,\n\t\t\t\t\t reservation_date, phone_number, date,\n\t\t\t\t\t physical_examination, combo, comments);\n\t\t\tlist.add(registration);\n\t\t}\n\t\treturn list;\n\t}",
"public List<?> queryBySingleCriteria(String field, String value)\n throws DataAccessLayerException {\n return queryBySingleCriteria(field, value, \"=\");\n }",
"public RegistrationKey[] getForPatient(long patNum) throws Exception {\n if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)\n {\n return Meth.<RegistrationKey[]>GetObject(MethodBase.GetCurrentMethod(), patNum);\n }\n \n String command = \"SELECT * FROM registrationkey WHERE \";\n Family fam = Patients.getFamily(patNum);\n for (int i = 0;i < fam.ListPats.Length;i++)\n {\n command += \"PatNum=\" + POut.Long(fam.ListPats[i].PatNum) + \" \";\n if (i < fam.ListPats.Length - 1)\n {\n command += \"OR \";\n }\n \n }\n DataTable table = db.getTable(command);\n RegistrationKey[] keys = new RegistrationKey[table.Rows.Count];\n for (int i = 0;i < keys.Length;i++)\n {\n keys[i] = new RegistrationKey();\n keys[i].RegistrationKeyNum = PIn.Long(table.Rows[i][0].ToString());\n keys[i].PatNum = PIn.Long(table.Rows[i][1].ToString());\n keys[i].RegKey = PIn.String(table.Rows[i][2].ToString());\n keys[i].Note = PIn.String(table.Rows[i][3].ToString());\n keys[i].DateStarted = PIn.Date(table.Rows[i][4].ToString());\n keys[i].DateDisabled = PIn.Date(table.Rows[i][5].ToString());\n keys[i].DateEnded = PIn.Date(table.Rows[i][6].ToString());\n keys[i].IsForeign = PIn.Bool(table.Rows[i][7].ToString());\n keys[i].UsesServerVersion = PIn.Bool(table.Rows[i][8].ToString());\n keys[i].IsFreeVersion = PIn.Bool(table.Rows[i][9].ToString());\n keys[i].IsOnlyForTesting = PIn.Bool(table.Rows[i][10].ToString());\n keys[i].VotesAllotted = PIn.Int(table.Rows[i][11].ToString());\n }\n return keys;\n }",
"@Override\n\tpublic List<BpFundIntent> getByRequestNo(String requestNo) {\n\t\treturn dao.getByRequestNo(requestNo);\n\t}",
"public static void viewFindRegistrant() {\n\t\tint regNum = requestRegNum();\r\n\t\tRegistrant reg = rc.findRegistrant(regNum);\r\n\t\tSystem.out.println(\"\" + ((reg == null) ? // Registrant does not exist\r\n\t\t\t\t\"A registrant having the registration number\\n\" + regNum\r\n\t\t\t\t\t\t+ \" could not be found in the registrants list.\"\r\n\t\t\t\t: // Registrant found\r\n\t\t\t\t\"The registrant associated with that registration number \" + \"is\\n\" + reg.toString() + \"\\n\"));\r\n\t}",
"@Override\n\tpublic List searchByPage(int index, int num) {\n\t\tConnection conn = null;\n\t\tList list = new ArrayList();\n\t\ttry {\n\t\t\tconn = DbcpConnectionPool.getConnection();\n\t\t\tCallableStatement cstmt = conn.prepareCall(\"{call Member_searchByPage(?,?)}\");\n\t\t\tif (index <0) index= 0;\n\t\t\tif (num < 0) num= 0;\n\t\t\tcstmt.setInt(1, (index-1)*num);\n\t\t\tcstmt.setInt(2, num);\n\t\t\tResultSet rs = cstmt.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tMember member = new Member();\n\t\t\t\tmember.setMemberID(rs.getString(\"MemberID\"));\n\t\t\t\tmember.setMemberCard(rs.getString(\"MemberCard\"));\n\t\t\t\tmember.setTotalCost(rs.getDouble(\"TotalCost\"));\n\t\t\t\tString time = rs.getString(\"RegDate\");\n\t\t\t\ttry {\n\t\t\t\t\tmember.setRegDate((Date)(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parseObject(time)));\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tlist.add(member);\n\t\t\t}\n\t\t\trs.close();\n\t\t\tcstmt.close();\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}",
"public List<Df00201VO> searchList(RequestParams<Df00201VO> param) {\n Df00201VO df00201VO = new Df00201VO();\n\n df00201VO.setStatusUuid(param.getString(\"statusUuid\"));\n df00201VO.setEventCode(param.getString(\"eventCode\"));\n df00201VO.setEventName(param.getString(\"eventName\"));\n df00201VO.setDegree(param.getInt(\"degree\"));\n df00201VO.setEndYN(param.getString(\"endYN\"));\n\n return mapper.searchList(df00201VO);\n }",
"public List<StaffDTO> findByiDNumber(String iDNumber);",
"List<MasterZipcode> getByPage(int pageNo);",
"@Override\n\tpublic List<WaybillExpressEntity> queryReturnWaybillNoInfo(\n\t\t\tString returnWaybillNo) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Map<String, Object> listRefund(int refundNo) throws Exception {\n\t\treturn null;\r\n\t}",
"public List<GoogleMobilityData> getDataByFipsCode(String fipscode) throws SQLException {\n\n List<GoogleMobilityData> records = new ArrayList<GoogleMobilityData>();\n\n String select = \"SELECT * FROM GoogleMobilityData WHERE JHCountyStat_FipsCode=?\";\n Connection connection = null;\n PreparedStatement selectStmt = null;\n ResultSet results = null;\n try {\n connection = connectionManager.getConnection();\n selectStmt = connection.prepareStatement(select);\n selectStmt.setString(1, fipscode);\n results = selectStmt.executeQuery();\n while (results.next()) {\n Long pk = results.getLong(\"Synthetic_Mobility_PK\");\n Date date = results.getDate(\"Date\");\n String country = results.getString(\"Country\");\n Long rec = results.getLong(\"Rec\");\n Long grocery = results.getLong(\"Grocery\");\n Long parks = results.getLong(\"Parks\");\n Long transit = results.getLong(\"Transit_Station\");\n Long work = results.getLong(\"Work\");\n Long residential = results.getLong(\"Residential\");\n String fips = results.getString(\"JHCountyStat_FipsCode\");\n\n GoogleMobilityData record = new GoogleMobilityData(pk, date, country, rec, grocery, parks, transit, work, residential, fips);\n records.add(record);\n }\n return records;\n } catch (SQLException e) {\n e.printStackTrace();\n throw e;\n } finally {\n if (connection != null) {\n connection.close();\n }\n if (selectStmt != null) {\n selectStmt.close();\n }\n if (results != null) {\n results.close();\n }\n }\n }",
"public List<Register> testTimeQuery(){\n NativeSearchQueryBuilder queryBuilder = new NativeSearchQueryBuilder();\n queryBuilder.withQuery(QueryBuilders.rangeQuery(\"order_time\").gt(\"2016-11-01T00:00:00.000Z\"));\n\n // 初始化分页参数\n int page =50;\n int size =3000;\n\n\n // 设置分页参数\n queryBuilder.withPageable(PageRequest.of(page, size));\n // 执行搜索,获取结果\n Page<OrderImes> Ot = this.orderImesRepository.search(queryBuilder.build());\n List<Register> Rt = new ArrayList<Register>();\n System.out.println(Ot.getTotalElements());\n // List<Page<Test>> Lt=new ArrayList<Page<Test> >();\n\n // Page<JtSelfRegisterDay> Jt = this.jtSelfRegisterDayRepository.search(queryBuilder.build());\n\n for (OrderImes O:Ot)\n {\n SearchQuery searchQuery1=new NativeSearchQueryBuilder().withQuery(QueryBuilders.matchQuery(\"meid\",O.getImes())).build();\n //System.out.println(J.getRow_id().getClass());\n List<Register> Te = elasticsearchTemplate.queryForList(searchQuery1, Register.class);\n //System.out.println(Te.size());\n for (int i = 0; i <Te.size() ; i++) {\n Rt.add(Te.get(i));\n }\n\n }\n System.out.println(Rt.size());\n\n\n return Rt;\n\n\n }",
"@Query(\"customField = ?\")\n List<PersonDocument> findByCustomField(String value);",
"public Field<T> getFieldByNumber(int n)\r\n/* 48: */ {\r\n/* 49:63 */ return n < this.fieldsByNumber.length ? this.fieldsByNumber[n] : null;\r\n/* 50: */ }",
"public List<DaftarhunianDtl> getDaftarhunianDtl(int no) {\n //return daftarhunianDtls.stream().filter(t -> t.getId().equals(id)).findFirst().get();\n String s = String.valueOf(no);\n// String[] as = {s};\n// return daftarhunianDtlRepository.findOne(s); //ambil banyak row: bukan satu row.\n List<DaftarhunianDtl> daftarhunianDtls = new ArrayList<>();\n// daftarhunianDtlRepository.findByNoTrx(as).forEach(daftarhunianDtls::add);\n daftarhunianDtlRepository.findByNoTrx(s).forEach(daftarhunianDtls::add); \n //\n //Query query = createNamedQuery(\"DaftarhunianDtl.findByNoTrx\");\n //\n \n return daftarhunianDtls;\n }",
"@Override\r\n\tpublic List<DetailResep> getByResep(String noResep) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tList<DetailResep> list = session.createQuery(\"from \" + DetailResep.class.getName() + \"where id = '\"+ noResep + \"'\").list();\r\n\t\treturn list;\r\n\t}",
"List<UserDTO> getUserByOccupation( String occupation );",
"@Override\n\tpublic List<String> getDataByGroupcode(String paramString)\n\t{\n\t\treturn null;\n\t}",
"List<UserRegistrationDto> getAllRegistrations();",
"@Override\n\tpublic List<F_P002_D005VO> searchAdd() throws DataAccessException {\n\t\treturn null;\n\t}",
"public List<?> queryBySingleCriteria(String field, String value,\n String operand) throws DataAccessLayerException {\n\n DatabaseQuery query = new DatabaseQuery(this.daoClass.getName());\n query.addQueryParam(field, value, QueryParam.translateOperand(operand));\n return queryByCriteria(query);\n }",
"public String getRegistrationNumber(){\n return registrationNumber;\n }",
"@GET\n @Produces(\"application/hal+json\")\n public Response list(@PathParam(\"regNo\") String regNo, @PathParam(\"accountNo\") String accountNo) {\n Optional<Account> account = admin.findAccount(regNo, accountNo);\n if (account.isPresent()) {\n CacheControl cc = new CacheControl();\n cc.setMaxAge(10);\n return Response.ok(entityBuilder.buildTransactionsJson(account.get(), uriInfo)).cacheControl(cc).build();\n } else {\n return Response.status(Response.Status.NOT_FOUND).build();\n }\n }",
"public List<ConsultVO> selectByCusNo(int customerNo) {\n\t\treturn sqlSessionTemplate.selectList(\"consult.ConsultDAO.select\", customerNo);\n\t}",
"@Transactional\r\n\tpublic List<Registration> findRegistrations() {\n\t\tList<Registration> regList;\r\n\t\tregList = new ArrayList<Registration>();\r\n\t\tString queryString = \"from Registrations\"; \r\n\t\tQuery query=entityManager.createQuery(queryString);\r\n\t\treturn null;\r\n\t}",
"public java.util.List findStudentByContactNo(java.lang.String contactNo) throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n String queryString = \"from \" + Student.class.getName() + \" e where e.contactNo like :contactNo \";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n hibernateTemplate.setQueryParameter(query, \"contactNo\", contactNo);\n List list = hibernateTemplate.list(query);\n return list;\n } finally {\n log.debug(\"finished findStudentByContactNo(java.lang.String contactNo)\");\n }\n }",
"@ApiOperation(value = \"Retourner une liste des personnes couvertes par la caserne de pompiers est fournir un décompte du nombre d'adultes et du nombre d'enfants\")\n @GetMapping(\"/firestations\")\n public PersonsInFirestationNumberResponse getPersonsFromFirestationNumber(@RequestParam String stationNumber) {\n log.info(\"Request to: \" + request.getRequestURI(), stationNumber);\n return firestationService.getPersonsFromFirestationNumber(stationNumber);\n }",
"public void getPatientFromDatabase(String nhi) throws SQLException \n {\n DefaultTableModel model = new DefaultTableModel();\n DatabaseConnection dbc = new DatabaseConnection();\n //static final String tableName = \"ADMIN1.PATIENTS\"; \n \n try \n {\n PreparedStatement prepstmt = dbc.getConnectionPatients().prepareStatement(\"SELECT * FROM PATIENTS WHERE NHI = \" + \"\\'\" +nhi.toLowerCase()+ \"\\'\");\n ResultSet rs = prepstmt.executeQuery();\n\n\n while (rs.next()) \n {\n model.addRow(new Object[]{rs.getString(3), rs.getString(1), rs.getString(2), rs.getInt(11), rs.getInt(4),\n rs.getString(5), rs.getString(6), rs.getString(7), rs.getString(8), rs.getString(9), rs.getString(10)});\n }\n } \n catch (SQLException e) \n {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic List searchByLikeProperty(String property, String val) {\n\t\tConnection conn = null;\n\t\tList list = new ArrayList();\n\t\ttry {\n\t\t\tconn = DbcpConnectionPool.getConnection();\n\t\t\tString sql = \"select * from \"+Member.TABLE_NAME+\" where \"+property+\" like '%\"+val+\"%'\";\n\t\t\tStatement ps = conn.createStatement();\n\t\t\tResultSet rs = ps.executeQuery(sql);\n\t\t\twhile(rs.next()){\n\t\t\t\tMember member = new Member();\n\t\t\t\tmember.setMemberID(rs.getString(\"MemberID\"));\n\t\t\t\tmember.setMemberCard(rs.getString(\"MemberCard\"));\n\t\t\t\tmember.setTotalCost(rs.getDouble(\"TotalCost\"));\n\t\t\t\tString time = rs.getString(\"DealingDate\");\n\t\t\t\ttry {\n\t\t\t\t\tmember.setRegDate((Date)(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parseObject(time)));\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tlist.add(member);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}",
"public List<Customer> findByName(String n) {\n\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n ResultSet rest = null;\n List<Customer> customers = new ArrayList<>();\n\n try {\n ppst = conn.prepareStatement(\"SELECT * FROM customer WHERE LOWER(name) LIKE LOWER(?)\");\n ppst.setString(1, \"%\" + n + \"%\");\n rest = ppst.executeQuery();\n\n while (rest.next()) {\n Customer c = new Customer(\n rest.getInt(\"customer_key\"),\n rest.getString(\"name\"),\n rest.getString(\"id\"),\n rest.getString(\"phone\")\n );\n customers.add(c);\n }\n } catch (SQLException e) {\n throw new RuntimeException(\"Query error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst, rest);\n }\n return customers;\n }",
"public List findRecords(String informationType, String queryString) throws DatabaseException;",
"@Override\r\n\tpublic List<Object[]> searchPlantDetails() {\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId ,p.plantName,p.add1,p.add2,p.add3,p.city,p.state,p.phone,p.fax,p.mobile,p.organization,p.countrysList from Plant p\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn list;\r\n\t}",
"@Override\n\tpublic String queryWaybillTypeByOrderNo(String orderNo) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<OaAutoInfo> getDataList(String param) throws Exception {\n\t\treturn null;\n\t}",
"public Instruction staticGet(final Integer register, final FieldIdItem field) {\n\t\tfinal Opcode opcode;\n\t\tfinal TypeIdItem type = field.getFieldType();\n\n\t\t// determine the correct opcode from the field type\n\t\tif (TypeUtils.isWide(type)) {\n\t\t\topcode = Opcode.SGET_WIDE;\n\t\t} else if (TypeUtils.isPrimitive(type)) {\n\t\t\tfinal char descriptor = type.getTypeDescriptor().charAt(0);\n\t\t\tswitch (descriptor) {\n\t\t\t\tcase 'Z':\n\t\t\t\t\topcode = Opcode.SGET_BOOLEAN;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'B':\n\t\t\t\t\topcode = Opcode.SGET_BYTE;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'C':\n\t\t\t\t\topcode = Opcode.SGET_CHAR;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'S':\n\t\t\t\t\topcode = Opcode.SGET_SHORT;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\topcode = Opcode.SGET;\n\t\t\t}\n\t\t} else {\n\t\t\topcode = Opcode.SGET_OBJECT;\n\t\t}\n\n\t\treturn new Instruction21c(opcode, register.shortValue(), field);\n\t}",
"public Reservation searchReservation(int resvNo) {\n\t\tReservation resv;\n\t\tfor (int i = 0; i < rList.size(); i++) {\n\t\t\tif (rList.get(i).getResvNo() == resvNo) {\n\t\t\t\tresv = rList.get(i);\n\t\t\t\treturn resv;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Reservation number does not exist!\");\n\t\treturn null;\n\t}",
"public List getReCaseReportRegs(ReCaseReportReg reCaseReportReg);",
"public List findRecordsFrom(String informationType, Date date) throws DatabaseException;",
"List<Register> selectByExample(RegisterExample example);",
"public java.lang.String getRegistNo() {\n return registNo;\n }",
"Data<User> getUserSearch(String user, String fields);",
"@GET\n @Path(\"/{register_id}\")\n Response getRegisterById(@PathParam(\"register_id\") Long registerId);",
"@Override\n\tpublic Patient fetchByPhone(long pNumber) throws DAOException\n\t{\n\t\tConnection con = DBUtil.getConnection();\n\t\tPatient patientObject = null;\n\t\ttry {\n\n\t\t\tString query = \"select * from patient where phone=?;\";\n\t\t\tPreparedStatement preparedStmt = con.prepareStatement(query);\n\t\t\tpreparedStmt.setLong(1, pNumber);\n\t\t\tResultSet rs = preparedStmt.executeQuery();\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\tpatientObject = new Patient(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4), rs.getString(5));\n\t\t\t}\n\t\t} catch (SQLException e) \n\t\t{\n\t\t\tthrow new DAOException(\"Sorry cannot reach now.\",e);\n\t\t}\n\t\tfinally \n\t\t{\n\t\t\tDBUtil.releaseResource(con);\n\t\t}\n\t\treturn patientObject;\n\t}",
"@Override\n\tpublic List<RegistrationForm> findAll(int start, int num) {\n\t\tlogger.info(\"select all registration form\");\n\t\treturn rfi.findAll(start, num);\n\t}",
"public List<Registration> getRegistrateByRule(String rule, String value, String orderBy) throws Exception {\n\t\tList<Registration> list = new ArrayList<Registration>();\n\t\tconn=DBUtil.getConnection();\n\t\tString order = \"ORDER BY \"+orderBy;\n\t\tswitch(rule) {\n\t\tcase \"id\":\n\t\t\tString sql =\"select * from registration where id=? \"+order;\n\t\t\tps =conn.prepareStatement(sql);\n\t\t\tint id = Integer.parseInt(value);\n\t\t\tps.setInt(1, id);\n\t\t\trs= ps.executeQuery();\n\t\t\tbreak; \n\t\tcase \"name\":\n\t\t\tString sql1 =\"select * from registration where name=? \"+order;\n\t\t\tps =conn.prepareStatement(sql1);\t\t\t\n\t\t\tps.setString(1, value);\n\t\t\trs= ps.executeQuery();\n\t\t\tbreak; \n\t\tcase \"sex\":\n\t\t\tString sex = value;\n\t\t\tif(value.equals(\"男\")){\n\t\t\t\tsex = \"man\";\n\t\t\t}else if(value.equals(\"女\")) {\n\t\t\t\tsex = \"woman\";\n\t\t\t}\n\t\t\tString sql2 =\"select * from registration where sex=? \"+order;\n\t\t\tps =conn.prepareStatement(sql2);\t\t\t\n\t\t\tps.setString(1, sex);\n\t\t\trs= ps.executeQuery();\n\t\t\tbreak;\n\t\tcase \"birthday\":\n\t\t\tString sql3 =\"select * from registration where birthday=? \"+order;\n\t\t\tps =conn.prepareStatement(sql3);\t\t\t\n\t\t\tps.setString(1, value);\n\t\t\trs= ps.executeQuery();\n\t\t\tbreak;\n\t\tcase \"phone_number\":\n\t\t\tString sql4 =\"select * from registration where phone_number=? \"+order;\n\t\t\tps =conn.prepareStatement(sql4);\t\t\t\n\t\t\tps.setString(1, value);\n\t\t\trs= ps.executeQuery();\n\t\t\tbreak;\n\t\tcase \"day\":\n\t\t\tString sql5 =\"select * from registration where date=? \"+order;\n\t\t\tps =conn.prepareStatement(sql5);\t\t\t\n\t\t\tps.setString(1, value);\n\t\t\trs= ps.executeQuery();\n\t\t\tbreak;\n\t\tcase \"combo\":\n\t\t\tString sql6 =\"select * from registration where combo=? \"+order;\n\t\t\tps =conn.prepareStatement(sql6);\t\t\t\n\t\t\tps.setString(1, value);\n\t\t\trs= ps.executeQuery();\n\t\t\tbreak;\t\t\n\t\tcase \"reservation_date\":\n\t\t\tString sql7 =\"select * from registration where reservation_date=? \"+order;\n\t\t\tps =conn.prepareStatement(sql7);\t\t\t\n\t\t\tps.setString(1, value);\n\t\t\trs= ps.executeQuery();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tString sql8 =\"select * from registration \"+order;\n\t\t\tps =conn.prepareStatement(sql8);\t\t\t\n\t\t\trs= ps.executeQuery();\n\t\t}\n\t\n\t\n\t\twhile(rs.next()){\n\t\t\tint id = rs.getInt(\"id\");\n\t\t\tint group_id = rs.getInt(\"group_id\");\n\t\t\tString name = rs.getString(\"name\");\n\t\t\tString birthday = rs.getString(\"birthday\");\n\t\t\tString sex = rs.getString(\"sex\");\n\t\t\tString address = rs.getString(\"address\");\n\t\t\tString idCard = rs.getString(\"idCard\");\n\t\t\tString marriage = rs.getString(\"marriage\");\n\t\t\tString nationa = rs.getString(\"nationa\");\n\t\t\tString phone_number = rs.getString(\"phone_number\");\n\t\t\tString date = rs.getString(\"date\");\n\t\t\tString reservation_date = rs.getString(\"reservation_date\");\n\t\t\tString physical_examination = rs.getString(\"physical_examination\");\n\t\t\tString combo = rs.getString(\"combo\");\n\t\t\tString comments = rs.getString(\"comments\");\n\n\t\t\tRegistration registration = new Registration(id, group_id, name, sex, birthday,\n\t\t\t\t\t idCard, address, marriage, nationa,\n\t\t\t\t\t reservation_date, phone_number, date,\n\t\t\t\t\t physical_examination, combo, comments);\n\t\t\tlist.add(registration);\n\t\t}\n\t\treturn list;\n\t}",
"public static modelPurchasesI searchPurchase(int nRicevuta){\r\n\t\tif(modelUsersI.isLogged()){\r\n\t\t\treturn modelPurchasesI.purchasesList().stream()\r\n\t\t\t\t.filter(p -> p.getNumberPaymentReceipt() == nRicevuta)\r\n\t\t\t\t.findFirst()\r\n\t\t\t\t.orElse(null);\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"public String getRegisterDueDate(TransferNORInPSTBean registrationDueData){\r\n\t\t\r\n\t\tString registerDueDate=\"\";\r\n\t\ttry{\r\n//\t\t\tSystem.out.println(registrationDueData.getProgramCourseKey()+\" and \"+registrationDueData.getSemesterStartDate()+\"\"\r\n//\t\t\t\t\t+\" and \"+registrationDueData.getSemesterEndDate());\r\n\t\t\tList<TransferNORInPSTBean> dueDateList=(List<TransferNORInPSTBean>)sqlMapClient.queryForList(\"TransferNORInPSTBean.getRegisterDueDate\", registrationDueData);\r\n\t\t\tfor(TransferNORInPSTBean registrationDueDateValue: dueDateList){\r\n\t\t\t\tregisterDueDate=registrationDueDateValue.getRegisterDueDate();\r\n\t\t\t\t//System.out.println(registerDueDate+\"inside coming\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\t//System.out.println(\"Exception in register due date: \"+e);\r\n\t\t\tlogger.info(\"Exception in register due date\"+e.getMessage());\r\n\t\t}\r\n\t\treturn registerDueDate;\r\n\t}",
"@Override\n public List<Patente> searchPatenteNumber(Patente patente) {\n if (patente.getNumero() < 1) {\n // um numero de patente não pode ser menor que 1\n return null;\n }\n return this.getDaoPatente().findByNumber(patente);\n }",
"public List<String> query1(){\n List<String> list = this.stats.bus_non_available(this.mR.clone(), this.mB.clone());\n return list;\n }",
"@Transactional(readOnly=true)\n public ForumContent queryRegisteredForumContent(\n\t\t\t int communityId,int periodNo, int buildingId,\n\t\t\t String floorNo, String roomNo){\n \tList<ForumContent> ForumContents = this.forumDAO.query(\"from ForumContent u where u.communityId =? and u.periodNo=? and u.buildingId =? and u.floorNo =? and u.roomNo =?\", (Object)communityId,(Object)periodNo,(Object)buildingId,(Object)floorNo,(Object)roomNo);\n\n \tif(ForumContents!=null&&ForumContents.size()>0){\n \t\treturn ForumContents.get(0);\n \t}else{\n \t\treturn null;\n \t}\n }",
"@Override\n\tpublic List<OrganizationUnit> getOrganizationUnitDetails(Integer orgUnitCode) throws Exception\n\t{\n\t\treturn organizationDAO.getOrganizationUnitDetails(orgUnitCode);\n\t}",
"public Vehicle findVehicle(String registerNumber) throws VehicleNotFoundException\n\t{\n\t\tfor(Vehicle vehicle : garageMap.values())\n\t\t{\n\t\t\tif(vehicle.getRegistrationNumber().equalsIgnoreCase(registerNumber))\n\t\t\t{\n\t\t\t\treturn vehicle;\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new VehicleNotFoundException();\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n @Transactional\n public Patient selectPatientByInsurance(String insuranceNumber) {\n return patientDAO.getByInsuranceNumber(insuranceNumber);\n }",
"@Override\r\n\tpublic MarketDto readMarketByRegisterNum(int register_num) {\n\t\treturn session.selectOne(\"kdc.market.readMarketByRegisterNum\", register_num);\r\n\t}",
"@Override\n public List<? extends BusinessObject> getSearchResultsUnbounded(Map<String, String> fieldValues) {\n Collection searchResultsCollection;\n // Get the list and Convert to suitable list\n searchResultsCollection = getInvoiceDocumentsForReferralToCollectionsLookup(fieldValues);\n return this.buildSearchResultList(searchResultsCollection, new Long(searchResultsCollection.size()));\n }",
"@Override\r\n\tpublic Member getPayment(int no) {\n\t\treturn session.selectOne(\"payments.selectOneMember\", no);\r\n\t}",
"public RegistrationInfo getRegistrationInfo();",
"@Override\n\tpublic RoomInfo selectByRoomno(String roomno) {\n\t\treturn roomInfoDao.selectByRoomno(roomno);\n\t}",
"public Map<String, Object> getWgzdList(String field, String search) {\n return null;\n }",
"private String marriageRegisterSearchResult() {\n noOfRows = appParametersDAO.getIntParameter(MR_APPROVAL_ROWS_PER_PAGE);\n MarriageRegister.State mrState = null;\n String divisionType = AppConstants.NONE;\n int divisionId = 0;\n\n if (state != -1) {\n mrState = StateUtil.getStateById(state);\n }\n\n //Search by marriage registration number - IDukey\n if (marriageIdUKey != 0) {\n marriageRegisterSearchList = new ArrayList<MarriageRegister>();\n MarriageRegister mr = marriageRegistrationService.getMarriageRegisterByIdUKeyAndState(marriageIdUKey, user);\n if (mr != null) {\n marriageRegisterSearchList.add(mr);\n }\n } else if (pinOrNic != null) {\n //search by male/female/registrar identification number\n marriageRegisterSearchList = marriageRegistrationService.getMarriageRegisterByPINNumber(pinOrNic, true, user);\n\n } else if (noticeSerialNo != null) {\n //search by marriage serial number.\n marriageRegisterSearchList = marriageRegistrationService.getMarriageRegisterBySerialNumber(noticeSerialNo, user);\n\n } else {\n if (districtId != 0 & dsDivisionId != 0 & mrDivisionId != 0) { // all selected\n //filter by mr division\n divisionId = mrDivisionId;\n divisionType = AppConstants.MARRIAGE;\n\n } else if (districtId != 0 & dsDivisionId != 0) { // only mr division selected\n //filter by ds division\n divisionId = dsDivisionId;\n divisionType = AppConstants.DS_DIVISION;\n\n } else if (districtId != 0) { // only district selected\n //filter by district\n divisionId = districtId;\n divisionType = AppConstants.DISTRICT;\n\n }\n\n marriageRegisterSearchList = marriageRegistrationService.getMarriageRegisterList(divisionType, divisionId,\n mrState, true, searchStartDate, searchEndDate, pageNo, noOfRows, user);\n // districtId = 0;\n }\n\n if (marriageRegisterSearchList.size() == 0) {\n addActionError(getText(\"error.marriageregister.norecords\"));\n }\n return SUCCESS;\n }",
"@Override\n\tpublic DictCode searchByCodeNoCountry(String dictName, String codeNo, String country) {\n\t\treturn dictCodeDao.searchByCodeNoCountry(dictName, codeNo, country);\n\t}",
"public ArrayList<Users> ListUsers(String ValToSearch) {\n ArrayList<Users> usersList = new ArrayList<Users>();\n\n Statement st;\n ResultSet rs;\n\n try {\n Connection con = getConnection();\n st = con.createStatement();\n String searchQuery = \"SELECT * FROM `tbl_registered` WHERE CONCAT(`user_id`,'username', `firstname`,`middlename`, `lastname`, `email`)LIKE '%\" + ValToSearch + \"%'\";\n rs = st.executeQuery(searchQuery);\n\n Users user;\n\n while (rs.next()) {\n user = new Users(\n rs.getString(\"username\"),\n rs.getString(\"firstname\"),\n rs.getString(\"middlename\"),\n rs.getString(\"lastname\"),\n rs.getString(\"email\"),\n rs.getInt(\"user_id\"));\n\n usersList.add(user);\n }\n\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage());\n }\n\n return usersList;\n }",
"public static String getDeviceRegId(String orderNo ){\n\t\tString deviceregId = \"\";\n\t\ttry {\n\t\t\tConnection connection = DBConnection.createConnection();\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tSQL:{\n\t\t\t\tString sql = \"SELECT device_reg_id FROM fapp_devices\"\n\t\t\t\t\t\t+\" WHERE email_id = (SELECT user_mail_id FROM fapp_orders\"\n\t\t\t\t\t\t+ \" WHERE order_id = (SELECT order_id from fapp_orders where order_no = ?) )\";\n\t\t\t\ttry {\n\t\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\t\tpreparedStatement.setString(1, orderNo);\n\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\tif(resultSet.next()){\n\t\t\t\t\t\tdeviceregId = resultSet.getString(\"device_reg_id\");\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}finally{\n\t\t\t\t\tif(connection !=null){\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn deviceregId;\n\t}",
"public Booking findResNo(int resNo, Connection con) {\n\n Booking r = null;\n try {\n r = new BookingMapper().findResNumber(resNo, con);\n } catch (Exception e) {\n System.out.println(\"fail in UnitOfWork - findResNo\");\n System.err.println(e);\n }\n return r;\n\n }",
"public abstract List<CustomerType> findCustomerTypebyCustomerTypeNumber(String searchString);",
"List<ShipmentInfoPODDTO> search(String query);",
"@ApiOperation(value = \"Api Endpoint to search for the Patient record - Only using User name\")\n @GetMapping(\"search\")\n @LogExecutionTime\n public List<PatientDto> searchPatientRecords(@RequestParam(name = \"search\") String search,\n @RequestParam(name = \"page\", defaultValue = \"0\") int page,\n @RequestParam(name = \"limit\", defaultValue = \"10\") int limit,\n @RequestParam(name = \"orderBy\", defaultValue = \"asc\") String orderBy) {\n return patientService.searchPatientRecords(search, page, limit, orderBy);\n }",
"@Override\n public List<Object[]> getCodeLookupData(String codeName) {\n Session session = getSession();\n\n Criteria criteria = session.createCriteria(CodeLookup.class);\n criteria.add(Restrictions.eq(\"id.codeName\", codeName));\n criteria.addOrder(Order.asc(\"displayOrder\"));\n\n ProjectionList proList = Projections.projectionList();\n proList.add(Projections.property(\"id.codeValue\"), \"key\");\n\n // There is no translation codes at the moment so just default to\n // code value at the moment\n proList.add(Projections.property(\"id.codeValue\"), \"value\"); //if no translation = key\n proList.add(Projections.property(\"displayOrder\"));\n\n criteria.setProjection(proList);\n\n List<Object[]> results = criteria.list();\n\n return results;\n }",
"public ResultSet fetchSelectUserBookingsByBookingNo(String bookingNo) {\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tTo create connection to the DataBase\r\n\t\t\t*/\r\n\t\t\tnew DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tStore the table data in ResultSet rs and then return it\r\n\t\t\t*/\r\n\t\t\tpstmt = conn.prepareStatement(SELECT_USER_BOOKING_BY_BOOKINGNO_QUERY);\r\n\r\n\t\t\tpstmt.setString(1, bookingNo);\r\n\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t//SqlExcep.printStackTrace();\r\n\t\t} catch(ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\tcloseDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn rs;\r\n\t}",
"public String search(String GoodNum) {\n\t\tBillsDataService billsData;\n\t\ttry {\n\t\t\tbillsData=RMIHelper.getDataFactory().getBillsDataFactory().getNewSendingBillsData();\n\t\t\tif(!billsData.Used(GoodNum)){\n\t\t\t\treturn \"托运单号不存在\";\n\t\t\t}\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"\";\n\t}",
"public String get(RegistrationPlate plate){\n if(!this.registrationList.containsKey(plate))\n return null;\n\n return this.registrationList.get(plate);\n\n }",
"public interface RegistrationRepository extends JpaRepository<RegistrationToken, Long> {\n\n RegistrationToken findByToken(String token);\n}",
"public List<String> getUniquePhoneNo();",
"@Override\n public List<CrSDevice> findDevice(String building, String roomNumber) throws SQLException {\n String sql = \"call GetClassroomDevice(?,?);\";\n return qr.query(conn, sql, new BeanListHandler<CrSDevice>(CrSDevice.class, processor), building, roomNumber);\n\n }",
"List<Registration> allRegUserPagination(long idUser, int currentPage, int elementPerPage);",
"@Override\r\n\tpublic List<String> listSearchableFields() {\r\n\t\tList<String> listSearchableFields = new ArrayList<String>();\r\n\t\tlistSearchableFields.addAll(super.listSearchableFields());\r\n\r\n\t\tlistSearchableFields.add(\"employeeNumber\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.primaryPhone\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.secondaryPhone\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.streetAddress\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.city\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.zip\");\r\n\r\n\t\treturn listSearchableFields;\r\n\t}",
"public static List<PatientItem> getAllItemsForRegimen(Connection conn, Long regimenId) throws ServletException, SQLException {\r\n List<PatientItem> items;\r\n String sql = \"SELECT id, item_id \" +\r\n \t\t\"FROM regimen_item_bridge \" +\r\n \t\t\"WHERE regimen_id = ?\";\r\n Class clazz = PatientItem.class;\r\n ArrayList values = new ArrayList();\r\n values.add(regimenId);\r\n BeanProcessor beanprocessor = new AuditInfoBeanProcessor();\r\n RowProcessor convert = new ZEPRSRowProcessor(beanprocessor);\r\n items = DatabaseUtils.getList(conn, clazz, sql, values, convert);\r\n return items;\r\n }",
"public Account searchAccount(String account_no)\n {\n Account account=null;\n \n try\n {\n String query=\"select * from account where account_no=\"+account_no;\n PreparedStatement ps=this.conn.prepareStatement(query);\n \n ResultSet rs=ps.executeQuery();\n \n if(rs.next())\n {\n account=new Account();\n \n account.setAccount_no(rs.getString(\"account_no\"));\n account.setAadhar_id(rs.getString(\"aadhar_no\"));\n account.setAccount_type(rs.getString(\"ac_type\"));\n account.setInterest_rate(rs.getString(\"interest\"));\n account.setBalance(rs.getString(\"balance\"));\n account.setAccount_status(rs.getString(\"ac_status\"));\n account.setName(rs.getString(\"name\"));\n }\n \n }catch(Exception e)\n {\n JOptionPane.showMessageDialog(null,e);\n }\n return account;\n }",
"@Override\n\tpublic List<CustomerType> queryByUseLikeAndPage(String property, String value, int pageSize, int pageNumber) {\n\t\treturn null;\n\t}",
"public List<BarrioCovid> readAll(String email);",
"private void searchSpecificCar() {\n\t\tSystem.out.print(\"Enter Registration Number: \");\n\t\tSystem.out.println(application.displaySpecificCar(console.nextLine()));\n\t}",
"public List<Patient> getByName(String name) {\n\t\treturn getByCriterion(Restrictions.or(Restrictions.like(\"firstname\", name), Restrictions.like(\"lastname\", name)));\n\t}",
"Item findByNo(Long No);",
"@Override\r\n\tpublic PageData queryHLikeByPage(int pageNo, int pageSize, String search) {\n\t\treturn adi.queryHLikeByPage(pageNo, pageSize, search);\r\n\t}",
"@Override\n\tpublic List<Discomfort> getDiscomfortData(String patientId, String start, String end) {\n\t\treturn null;\n\t}"
] | [
"0.59308314",
"0.54272836",
"0.52957904",
"0.52540153",
"0.5101665",
"0.50433683",
"0.50319433",
"0.49595279",
"0.49583966",
"0.49386644",
"0.49267736",
"0.48954943",
"0.48822242",
"0.4874038",
"0.48466808",
"0.4830871",
"0.48192245",
"0.48175353",
"0.4798003",
"0.4786475",
"0.47802767",
"0.47428906",
"0.47399533",
"0.47394708",
"0.47329378",
"0.4729609",
"0.4713898",
"0.47072667",
"0.46894333",
"0.4682025",
"0.46759",
"0.4672906",
"0.4671065",
"0.4670837",
"0.46594065",
"0.4638417",
"0.4638069",
"0.46331403",
"0.46200135",
"0.46162394",
"0.46135026",
"0.4610965",
"0.46076044",
"0.46046463",
"0.45914856",
"0.4584515",
"0.45740506",
"0.4566871",
"0.4563788",
"0.45612732",
"0.4557645",
"0.4554577",
"0.4548612",
"0.45434967",
"0.4543379",
"0.4536835",
"0.45268476",
"0.45086253",
"0.45054418",
"0.45046836",
"0.4502571",
"0.4502424",
"0.45018753",
"0.45017827",
"0.45005316",
"0.44966426",
"0.44883174",
"0.4482814",
"0.448177",
"0.44749466",
"0.44723484",
"0.44715798",
"0.44687238",
"0.4465321",
"0.44641206",
"0.44636384",
"0.44606054",
"0.44523287",
"0.4438047",
"0.4431928",
"0.4429794",
"0.44278696",
"0.44237596",
"0.4421327",
"0.44193834",
"0.44178364",
"0.4416152",
"0.4413392",
"0.44122598",
"0.44016966",
"0.4396747",
"0.43966106",
"0.43949416",
"0.4389108",
"0.43882042",
"0.43823352",
"0.43784332",
"0.4377432",
"0.43767294",
"0.43761295"
] | 0.6614132 | 0 |
Retrieves a list of data object for the specified studentName field. To use a wildcard search, use a % in the query. | public java.util.List findStudentByStudentName(java.lang.String studentName) throws GenericBusinessException {
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
String queryString = "from " + Student.class.getName() + " e where e.studentName like :studentName ";
// Add a an order by on all primary keys to assure reproducable results.
String orderByPart = "";
orderByPart += " order by e.studentId";
queryString += orderByPart;
Query query = hibernateTemplate.createQuery(queryString);
hibernateTemplate.setQueryParameter(query, "studentName", studentName);
List list = hibernateTemplate.list(query);
return list;
} finally {
log.debug("finished findStudentByStudentName(java.lang.String studentName)");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Student> searchStudent(String name) {\n List<Student> studentList = new ArrayList<>();\n Cursor cursor = sqLiteDatabase.rawQuery(\"SELECT * FROM Students WHERE name = ? \", new String[]{name});\n while (cursor.moveToNext()) {\n Student student = new Student(cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_NAME)),\n cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_ADDRESS)),\n cursor.getInt(cursor.getColumnIndex(DatabaseHelper.ID)));\n studentList.add(student);\n }\n return studentList;\n }",
"@Override\r\n\tpublic List<Student> getStudents(String courseName) {\n\t\tList<Student> students=new ArrayList<>();\r\n\t\tString sql=\"select studentid, studentname, studentshv.courseid from studentshv inner join courseshv on studentshv.courseid=courseshv.courseid where coursename=?\";\r\n\t\tPreparedStatement pstmt = null;\r\n\t\ttry {\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, courseName);\r\n\t\t\tResultSet rs=pstmt.executeQuery();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tlong studentId=rs.getLong(\"studentid\");\r\n\t\t\t\tString studentName=rs.getString(\"studentname\");\r\n\t\t\t\tlong courseId=rs.getLong(\"courseid\");\r\n\t\t\t\tstudents.add(new Student(studentId,studentName,courseId));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn students;\r\n\t}",
"public ArrayList<Student> get(String searchedStudentName) throws StudentException, CPFException, PersonException {\n\t\t\n\t\tResultSet resultOfTheSearch = null;\n\t\tString query = \"SELECT * FROM \" + STUDENT_TABLE_NAME + \" WHERE \" + NAME_COLUMN + \" LIKE \\\"%\" + searchedStudentName + \"%\\\"\"; \n\t\tArrayList<Student> foundStudents = new ArrayList<Student>();\n\t\tStudent student = null;\n\t\tCPF studentCpf = null;\n\t\t\n\t\ttry{\n\t\t\tresultOfTheSearch = this.search(query);\n\t\t\t\n\t\t\twhile(resultOfTheSearch.next()){\n\t\t\t\tString studentName = (resultOfTheSearch.getString(\"name_student\"));\n\t\t\t\tString cpf = (resultOfTheSearch.getString(\"cpf\"));\n\t\t\t\tstudentCpf = new CPF(cpf);\n\t\t\t\tstudent = new Student(studentName, studentCpf);\n\t\t\t\tfoundStudents.add(student);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\t\n\t\t}\n\n\t\treturn foundStudents;\n\t}",
"@GetMapping(path = \"/student\")\n public Set<PlacementViewDto> getRecordsByStudentName(@RequestParam(value = \"studentName\") String studentName, @RequestParam(defaultValue = \"0\") String page) {\n return placementService.getDetailsByStudentName(studentName, page);\n }",
"public List<Student> getAllStudentData() {\r\n\t\tList<Student> list = new ArrayList<Student>();\r\n\t\ttry {\r\n\t\t\tConnection con = DatabaseUtility.getCon(inputStream);\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\"select * from student\");\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tStudent stud = new Student();\r\n\r\n\t\t\t\tstud.setRollno(rs.getInt(1));\r\n\t\t\t\tstud.setFname(rs.getString(2));\r\n\t\t\t\tstud.setLname(rs.getString(3));\r\n\t\t\t\tstud.setEmail(rs.getString(4));\r\n\t\t\t\tstud.setGender(rs.getString(5));\r\n\t\t\t\tstud.setDOB(rs.getString(6));\r\n\t\t\t\tstud.setAddress(rs.getString(7));\r\n\t\t\t\tstud.setContact(rs.getString(8));\r\n\r\n\t\t\t\tlist.add(stud);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(ex);\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}",
"private static String searchStudent ( int studentId){\n for (Student s : studentDB) {\n if (s.getID() == studentId) {\n return s.getName();\n }\n }\n return \"\";\n }",
"Student fetchBy(String name);",
"@Override\n public List<ArrayList<String>> queryStudentPersonalData(Token token, int studentID) {\n List<ArrayList<Object>> objList = null;\n\n try {\n objList = queryStudentPersonalData1(token, studentID);\n } catch (SCRSException e) {\n System.out.println(e.getMessage());\n return null;\n }\n List<ArrayList<String>> result = UtilMethods.convertObjListToStringList(objList);\n return result;\n }",
"public List<Student> search() {\n \tQuery query = em.createQuery(\"Select e FROM Student e WHERE e.grade > 50.00\");\r\n \tList<Student> result = query.getResultList();\r\n \t\r\n \t \r\n \t// Query for a List of data elements.\r\n// \tQuery query = em.createQuery(\"Select e.firstname FROM Student e\");\r\n// \tList<String> result = query.getResultList();\r\n \t \r\n \t// Query for a List of element arrays.\r\n// \tQuery query = em.createQuery(\"Select e.firstname, e.grade FROM Student e\");\r\n// \tList<Object[]> result = query.getResultList();\r\n \t\r\n\t\t// \tsetFirstResult()\r\n\t\t// \tsetMaxResults()\r\n \t\r\n \treturn result;\r\n }",
"public List<Student> findAllStudentsByName(String name) {\n\t\t\n\t\tArrayList<Student> list = new ArrayList<Student>();\n\t\t\n\t\tname = name.toLowerCase();\n\t\t\n\t\tfor(Student s : students) {\n\t\t\tString sName = s.getName().toLowerCase();\n\t\t\tif (sName.startsWith(name)) {\n\t\t\t\tlist.add(s);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list;\n\t}",
"@Transactional(propagation = Propagation.SUPPORTS,isolation = Isolation.DEFAULT,readOnly = true)\r\n\tpublic List<Student> findStudentsByStuName(String stuName) {\n\t\treturn studentMapper.findStudentsByStuName(\"%\"+stuName+\"%\");\r\n\t}",
"List<StudentRecord> getStudentsWithNameFilter(char lastNameCharFilter, String clientId) throws Exception;",
"public StudentUnitRecordList getRecordsByStudent(Integer studentID)\n {\n StudentUnitRecordList recordList =\n studentIdStudentRecordListMap_.get(studentID);\n\n if (recordList != null)\n return recordList;\n\n recordList = new StudentUnitRecordList();\n for (Element element : (List<Element>)XmlManager.getInstance()\n .getDocument().getRootElement()\n .getChild(\"studentUnitRecordTable\")\n .getChildren(\"record\")) {\n String recordStudentId = element.getAttributeValue(\"sid\");\n\n if (studentID.toString().equals(recordStudentId)) {\n String recordUnitCode = element.getAttributeValue(\"uid\");\n\n recordList.add(new StudentUnitRecordProxy(studentID,\n recordUnitCode));\n }\n }\n\n if (recordList.size() > 0)\n // be careful - this could be empty\n studentIdStudentRecordListMap_.put(studentID, recordList);\n\n return recordList;\n }",
"@Override\n\tpublic List<StudentVO> selectName(String name) {\n\t\treturn null;\n\t}",
"public synchronized String list(String name) {\n\t\tString result = \"\";\n\t\tboolean found = false;\n\t\tfor (Record r : record) {\n\t\t\tif (r.student.equals(name)) {\n\t\t\t\tfound = true;\n\t\t\t\tresult = result + r.ID + \" \" + r.book + \"*\";\n\t\t\t}\n\t\t}\n\t\tif (!found) {\n\t\t\tresult = \"No record found for \" + name;\n\t\t}\n\t\treturn result;\n\t}",
"java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList();",
"List<Student> getStudent();",
"public static List<StudentInfo> searchStudentInfo(String firtname, String lastname) {\r\n \r\n List<StudentInfo> students = new ArrayList<>();\r\n \r\n // declare resultSet\r\n ResultSet rs = null;\r\n \r\n // declare prepared statement\r\n PreparedStatement preparedStatement = null;\r\n \r\n // declare connection\r\n Connection conn = null;\r\n try {\r\n // get connection\r\n conn = DBUtils.getConnection();\r\n\r\n // set prepared statement\r\n preparedStatement = conn\r\n .prepareStatement(\"SELECT instructor.FName, instructor.LName,\" +\r\n \" IF(EXISTS ( SELECT * FROM gra WHERE gra.StudentId = phdstudent.StudentId) , 'GRA', \" +\r\n \" IF(EXISTS ( SELECT * FROM gta WHERE gta.StudentId = phdstudent.StudentId) , 'GTA', \" +\r\n \" IF(EXISTS ( SELECT * FROM scholarshipsupport WHERE scholarshipsupport.StudentId = phdstudent.StudentId) , 'scholarship', \" +\r\n \" IF(EXISTS ( SELECT * FROM selfsupport WHERE selfsupport.StudentId = phdstudent.StudentId) , 'self', ''))\" +\r\n \" )) AS StudentType, \" +\r\n \" milestone.MName, milestonespassed.PassDate\" +\r\n \" FROM phdstudent left join instructor on instructor.InstructorId = phdstudent.Supervisor\"\r\n + \" left join milestonespassed on phdstudent.StudentId = milestonespassed.StudentId\"\r\n + \" left join milestone on milestonespassed.MID = milestone.MID\" +\r\n \" WHERE phdstudent.FName = ? AND phdstudent.LName = ?\");\r\n \r\n // execute query\r\n preparedStatement.setString(1, firtname);\r\n preparedStatement.setString(2, lastname); \r\n\r\n rs = preparedStatement.executeQuery();\r\n \r\n //iterate and create the StudentInfo objects\r\n while (rs.next()) {\r\n \r\n students.add(new StudentInfo(rs.getString(1)+ \" \" + rs.getString(2), rs.getString(3), rs.getString(4), \r\n utils.Utils.toDate(rs.getDate(5))));\r\n\r\n }\r\n }catch(Exception ex){\r\n ex.printStackTrace();\r\n }\r\n finally {\r\n DBUtils.closeResource(conn);\r\n DBUtils.closeResource(preparedStatement);\r\n DBUtils.closeResource(rs);\r\n } \r\n \r\n return students; \r\n }",
"@Override\r\n\tpublic List<Student> selectStudent(String name, String alias) {return null;\r\n\t}",
"public String getData(){\n try{\n \n String query = \"SELECT * from student\";\n rs = st.executeQuery(query);\n rs.next();\n String name = rs.getString(\"studentName\");\n return dName = name;\n \n }catch(Exception ex){\n System.out.println(ex);\n return null;\n }\n \n }",
"@GetMapping(\"/students/{studentId}\")\n @ApiOperation(value = \"Search StudyClasses by its students\")\n public List<StudyClassDTO> findByStudentStudentId(\n @ApiParam(value = \"The student studentId\") @PathVariable String studentId) {\n return studyClassService.findByStudentStudentId(studentId);\n }",
"public List <Student> getAllStudents();",
"public List<String> getStudents();",
"List<StudentRecord> getStudents(String clientId) throws Exception;",
"public List<Student> fetch() {\n List<Student> studentList = new ArrayList<>();\n String[] columns = new String[]{DatabaseHelper.ID, DatabaseHelper.STUDENT_NAME, DatabaseHelper.STUDENT_ADDRESS};\n Cursor cursor = sqLiteDatabase.query(DatabaseHelper.TABLE_NAME, columns, null,\n null, null, null, null);\n while (cursor.moveToNext()) {\n Student student = new Student(cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_NAME)),\n cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_ADDRESS)),\n cursor.getInt(cursor.getColumnIndex(DatabaseHelper.ID)));\n studentList.add(student);\n }\n return studentList;\n }",
"public java.util.List findStudentByRegistrationNo(java.lang.String registrationNo) throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n String queryString = \"from \" + Student.class.getName() + \" e where e.registrationNo like :registrationNo \";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n hibernateTemplate.setQueryParameter(query, \"registrationNo\", registrationNo);\n List list = hibernateTemplate.list(query);\n return list;\n } finally {\n log.debug(\"finished findStudentByRegistrationNo(java.lang.String registrationNo)\");\n }\n }",
"List<Student> getAllStudents();",
"public comprehensive_record findByStudent(String studentid) {\n\t\tString hql=\"from comprehensive_record cr where cr.personInfo.studentid=:studentid\";\r\n\t\treturn (comprehensive_record)getSession().createQuery(hql).setString(\"studentid\", studentid).uniqueResult();\r\n\t}",
"@Override\n\t//查询所有数据\n\tpublic List<Student> selectStudents() {\n\t\tConnection connection =null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tList<Student> sList = new ArrayList<Student>();\n\t\t\n\t\ttry {\n\t\t\tconnection = MySQLConnectUtil.getMySQLConnection();\n\t\t\tps = connection.prepareStatement(QUARYSQL);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudent student = new Student();\n\t\t\t\tstudent.setId(rs.getString(\"ID\"));\n\t\t\t\tstudent.setName(rs.getString(\"NAME\"));\n\t\t\t\tstudent.setAge(rs.getInt(\"AGE\"));\n\t\t\t\tsList.add(student);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tMySQLConnectUtil.closeResultset(rs);\n\t\t\tMySQLConnectUtil.closePreparestatement(ps);\n\t\t\tMySQLConnectUtil.closeConnection(connection);\n\t\t}\n\t\treturn sList;\n\t}",
"public java.util.List findStudentByContactNo(java.lang.String contactNo) throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n String queryString = \"from \" + Student.class.getName() + \" e where e.contactNo like :contactNo \";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n hibernateTemplate.setQueryParameter(query, \"contactNo\", contactNo);\n List list = hibernateTemplate.list(query);\n return list;\n } finally {\n log.debug(\"finished findStudentByContactNo(java.lang.String contactNo)\");\n }\n }",
"public void getStudentNameStudentDsc()\n\t{\n\t\tDatabaseHandler db = new DatabaseHandler(getApplicationContext());\n\n\t\tstudent_name_list_studname_dsc = db.getStudentNameAllEnquiryStudentDsc();\n\t\tIterator itr = student_name_list_studname_dsc.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\t}",
"List<Map<String, Object>> getStudentsList();",
"public java.util.List findStudentByStudentId(java.lang.Integer studentId) throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n String queryString = \"from \" + Student.class.getName() + \" e where e.studentId like :studentId \";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n hibernateTemplate.setQueryParameter(query, \"studentId\", studentId);\n List list = hibernateTemplate.list(query);\n return list;\n } finally {\n log.debug(\"finished findStudentByStudentId(java.lang.Integer studentId)\");\n }\n }",
"public static ArrayList<String> retrieveStudentInfo(ArrayList<Student> al,String schoolName) {\n \tArrayList<String> str=new ArrayList<String>();\n \tfor(int i=0;i<al.size();i++){\n \tStudent s=al.get(i);\n \tif(s.getSchoolName().equalsIgnoreCase(schoolName)){\n \t str.add(s.getStudName());\n \t}\n }\n \treturn str;\n }",
"public ArrayList<String> getStudentsByClass(String stud_info) {\n\n ArrayList<String> arrayList = new ArrayList<>();\n Cursor cursor;\n try {\n cursor = liteDatabase.rawQuery(\"SELECT s.stud_name FROM student_data s, class_data c WHERE \" +\n \" s.ssg = c.ssg_id AND s.ssg ='\" + stud_info + \"'\",null);\n if (cursor != null) {\n cursor.moveToFirst();\n while (cursor.isAfterLast() == false) {\n arrayList.add(cursor.getString(cursor.getColumnIndex(KEY_STUDENT_NAME)));\n //arrayList.add(cursor.getString(cursor.getColumnIndex(KEY_STUDENT_ROLL)));\n cursor.moveToNext();\n }\n }\n }catch (Exception e){\n Toast.makeText(this, \"\"+e, Toast.LENGTH_SHORT).show();\n }\n return arrayList;\n }",
"List<Student> findAllByLastNameLike(String lastName);",
"@Override\n\tpublic List<Student> getStudents() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Student> query = currentSession.createQuery(\"from Student order by lastName\", Student.class);\n\n\t\t// execute the query and get the results list\n\t\tList<Student> students = query.getResultList();\n\n\t\t// return the results\n\t\treturn students;\n\t}",
"public static String findStudent(String name) throws SQLException\n\t{\n\t\tString[] split = name.split(\"\\\\s+\");\n\t\tResultSet student_id;\n\t\tList<String> id;\n\t\tstudent_id = test.readDatabase(\"select distinct Banner_id from class_2016 where First_name = '\"+split[0]+\"' and Middle_name = '\"+split[1]+\"' and Last_name = '\"+split[2]+\"'\");\n\t\tid = test.writeResultSet(student_id,\"Banner_id\");\n\t\treturn id.get(0); \n\t}",
"public List getStudentList() throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n\n String queryString = \"from \" + Student.class.getName() + \" e\";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n List list = hibernateTemplate.list(query);\n\n return list;\n } finally {\n log.debug(\"finished getStudentList\");\n }\n }",
"public void setStudentName(String studentName) {\n\t\tthis.studentName = studentName;\n\t}",
"public ArrayList<Student> studentList()\n {\n ArrayList<Student> studentList = new ArrayList<>();\n try\n {\n DatabaseConnection databaseConnection = new DatabaseConnection();\n String query = \"select * from student\";\n ResultSet rs = databaseConnection.s.executeQuery(query);\n Student student;\n while(rs.next())\n {\n student = new Student(rs.getInt(\"student_id\"), rs.getString(\"student_name\"), rs.getString(\"batch\"), rs.getString(\"student_username\"), rs.getString(\"student_password\"));\n studentList.add(student);\n }\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(null, e);\n }\n return studentList;\n }",
"@Override\n\tpublic StudentForm findByName(String student) {\n\t\treturn null;\n\t}",
"public Student findByDeviceId(String deviceId);",
"public ArrayList<Student> getStudents() {\n\n ArrayList<Student> students = new ArrayList<Student>();\n String query = \"SELECT * FROM student\";\n try{\n result = statement.executeQuery(query);\n while(result.next()) {\n\n String id = Integer.toString(result.getInt(\"student_id\"));\n String firstName = result.getString(\"student_first_name\");\n String lastName = result.getString(\"student_last_name\");\n String degree = result.getString(\"degree\");\n String yearOfStudy = result.getString(\"year_of_study\");\n String outcome = result.getString(\"outcome\");\n students.add(new Student(id, firstName, lastName, degree, yearOfStudy, outcome));\n\n }\n }\n catch (SQLException e){\n\n }\n\n return students;\n }",
"Student findByLastName(String lastName);",
"private List<Student> getStudentList(StudentSearchResponse srchResponse) {\r\n\t\tList<Student> studentList = new ArrayList<Student>();\r\n\t\tif (srchResponse != null && srchResponse.size() > 0) {\r\n\t\t\tfor (StudentSearchResult srchRes : srchResponse) {\r\n\t\t\t\tStudent std = new Student(srchRes.getInquiryId(),\r\n\t\t\t\t\t\tsrchRes.getStudentNumber(), srchRes.getFirstName(),\r\n\t\t\t\t\t\tsrchRes.getLastName(), srchRes.getMaidenName(),\r\n\t\t\t\t\t\tsrchRes.getDateOfBirth(), srchRes.getCity(),\r\n\t\t\t\t\t\tsrchRes.getStateProvince(), srchRes.getSSN());\r\n\t\t\t\tstudentList.add(std);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn studentList;\r\n\t}",
"public static List<Student> getStudents() {\n\t\tList<Student> students = new ArrayList<>();\n\t\t\n\t\t// add sample data\n\t\tstudents.add(new Student(\"James\", \"Richt\", \"[email protected]\"));\n\t\tstudents.add(new Student(\"Kelly\", \"Lou\", \"[email protected]\"));\n\t\tstudents.add(new Student(\"Lin\", \"Howe\", \"[email protected]\"));\n\t\t\n\t\t// return the list\n\t\treturn students;\n\t}",
"List<Student> findByNameContainingIgnoringCase(String name);",
"public List<student> getAllStudent() { \n List<student> studentArrayList = new ArrayList<>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table; // PALITAN TO NG TABLE NAME NIYO\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n student student = new student(); //PALITAN NG MGA DAPAT PALITAN NA VARIABLES\n student.setId(Integer.parseInt(cursor.getString(0)));\n student.setfName(cursor.getString(1));\n student.setlName(cursor.getString(2));\n studentArrayList.add(student);\n } while (cursor.moveToNext());\n }\n\n // return contact list\n return studentArrayList;\n }",
"StudentRecord getStudent(String recordId, String clientId) throws Exception;",
"@GetMapping(\"/students/{studentID}\")\n\t\tpublic Student getStudent(@PathVariable int studentID){\n\t\t\t\n\t\t\t\n\t\t\t//check to see the if the list size is available on the students list array\n\t\t\tif ((studentID >= theStudents.size()) || (studentID<0)) {\n\t\t\t\t\n\t\t\t\tthrow new StudentNotFoundException(\"Student not found :\" + studentID);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t/*\n\t\t\t * For this example we using the ID as array index reference \n\t\t\t */\n\t\t\treturn theStudents.get(studentID);\n\t\t}",
"public Student getStudent(String match);",
"public List<District> findbyname(String districtName) {\n\t\tList<District> sdlist = districtdao.findbyname(\"%\"+districtName+\"%\");\n\t\t\n\t\treturn sdlist;\n\t}",
"List<Student> selectByExample(StudentExample example);",
"@Override\n\t\tpublic String queryStudent(int no) throws RemoteException {\n\t\t\treturn queryString(no);\n\t\t}",
"public interface SearchStudentService {\n List<Student> searchStudentByName(String name);\n}",
"public Object searchSingle() {\n \tQuery query = em.createQuery(\"Select e FROM Student e WHERE e.studentId = :id\");\r\n \tquery.setParameter(\"id\", 1);\r\n \tStudent result = (Student)query.getSingleResult();\r\n \t \r\n \t// Query for a single data element.\r\n// \tQuery query = em.createQuery(\"Select MAX(e.grade) FROM Student e\");\r\n// \tBigDecimal result = (BigDecimal)query.getSingleResult();\r\n \t\r\n// \tQuery query = em.createQuery(\"Select e FROM Student e JOIN e.projectList u WHERE u.name = :name\");\r\n// \tquery.setParameter(\"name\", \"student_example\");\r\n// \tStudent result = (Student)query.getSingleResult();\r\n \t\r\n\r\n\r\n \t\r\n \treturn result;\r\n }",
"@RequestMapping(value=\"/students\", method=RequestMethod.GET) //MediaType.APPLICATION_XML_VALUE\r\n\tpublic List<Student> getStudentsList() {\r\n\t\tArrayList<Student> list = new ArrayList<Student>();\r\n\t\tlist.add(new Student(\"Kaja\", \"Piloun\", \"123465\", 25, null));\r\n\t\tlist.add(new Student(\"Paja\", \"Pilouna\", \"123465\", 25, null));\r\n\t\tlist.add(new Student(\"Vaja\", \"Pilounen\", \"123465\", 25, null));\r\n\t\t\r\n\t\treturn list;\r\n\t}",
"public static List<Student> getAllStudents(){\r\n Student student1 = new Student(\"Dowlath\",2,3.6,\"male\", Arrays.asList(\"Swim\",\"BasketBall\",\"VolleyBall\"),11);\r\n Student student2 = new Student(\"Bhavya\",2,3.8,\"female\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),12);\r\n\r\n\r\n /* 3rd Grade Students */\r\n Student student3 = new Student(\"Priya\",3,4.0,\"female\", Arrays.asList(\"Swim\",\"BasketBall\",\"Aerobics\"),10);\r\n Student student4 = new Student(\"Arsh\",3,3.9,\"male\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),9);\r\n\r\n\r\n /* 4th Grade Students */\r\n Student student5 = new Student(\"Sowmiya\",4,3.5,\"female\", Arrays.asList(\"Swim\",\"Dancing\",\"FootBall\"),15);\r\n Student student6 = new Student(\"Ariz\",4,3.9,\"male\",Arrays.asList(\"Swim\",\"BasketBall\",\"BaseBall\",\"FootBall\"),14);\r\n\r\n List<Student> students = Arrays.asList(student1,student2,student3,student4,student5,student6);\r\n return students;\r\n }",
"public Student setStudentName(String studentName) {\n this.studentName = studentName;\n return this;\n }",
"public static String findStudentname(String student_id) throws SQLException\n\t{\n\t\tResultSet student;\n\t\tString full_name;\n\t\tList<String> first_name;\n\t\tList<String> middle_name;\n\t\tList<String> last_name;\n\t\tstudent = test.readDatabase(\"select distinct First_name, Middle_name, Last_name from class_2016 where Banner_Id = '\"+student_id+\"'\");\n\t\tfirst_name = test.writeResultSet(student, \"First_name\");\n\t\tstudent = test.readDatabase(\"select distinct First_name, Middle_name, Last_name from class_2016 where Banner_Id = '\"+student_id+\"'\");\n\t\tmiddle_name = test.writeResultSet(student, \"Middle_name\");\n\t\tstudent = test.readDatabase(\"select distinct First_name, Middle_name, Last_name from class_2016 where Banner_Id = '\"+student_id+\"'\");\t\t\n\t\tlast_name = test.writeResultSet(student, \"Last_name\");\n\t\t//System.out.println(first_name);\n\t\tfull_name = last_name.get(0) +\", \"+ first_name.get(0) + \" \" + middle_name.get(0);\n\t\treturn full_name;\n\t}",
"public Object findByStudentID(String studentID) {\n\t\tList result = accountDao.findByStudentID(studentID);\r\n\t\treturn result.size()==0 ? null: result.get(0);\r\n\t}",
"@Query(\"select firstName,score from Student\")\n\tList<Object[]> findAllStudentWithScores();",
"public void getStudentNameStudentAsc()\n\t{\n\t\tDatabaseHandler db = new DatabaseHandler(getApplicationContext());\n\n\t\tstudent_name_studname_asc = db.getStudentNameAllEnquiryStudentAsc();\n\t\tIterator itr = student_name_studname_asc.iterator();\n\t\twhile(itr.hasNext())\n\t\t{\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\t}",
"public ArrayList<Studentdto> studentList() throws Exception {\n\t\tArrayList<Studentdto> studentlist = new ArrayList<Studentdto>();\n\t\tConnection con = null;\n\t\tcon = DBConnector.dbConnection();\n\t\ttry {\n\t\t\tPreparedStatement st = con.prepareStatement(\n\t\t\t\t\t\"select student_name,college_name, course_name,phn_no,address from student s ,college co,course cr where s.course_id=cr.course_id and s.college_id=co.college_id\");\n\t\t\tResultSet rs = st.executeQuery();\n\t\t\tint i = 1;\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudentdto studentdto = new Studentdto();\n\t\t\t\tstudentdto.setSlno(i++);\n\t\t\t\tstudentdto.setStudentname(rs.getString(1));\n\t\t\t\tstudentdto.setCollegename(rs.getString(2));\n\t\t\t\tstudentdto.setCoursename(rs.getString(3));\n\t\t\t\tstudentdto.setAddress(rs.getString(4));\n\t\t\t\tstudentdto.setPhno(rs.getString(5));\n\t\t\t\tstudentlist.add(studentdto);\n\t\t\t}\n\t\t\tcon.close();\n\t\t} catch (SQLSyntaxErrorException e) {\n\t\t\tthrow new SQLSyntaxErrorException(\"Error in SQL syntax\");\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException(\"Connection with database failed\");\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"Some error occured\");\n\t\t}\n\t\treturn studentlist;\n\t}",
"com.demo.springprotobuff.Demoproto.Student getStudent(int index);",
"public List<StudentDto> getAllStudents() {\n\t\tList<Student> studentList = studentRepository.findAll();\n\t\tif (ObjectUtils.isEmpty(studentList))\n\t\t\tthrow new ResourceNotFoundException(Constants.noDataFound);\n\n\t\tList<StudentDto> studentDtoList = studentList.stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t .map(converter::convert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.toList());\t\t\n\t\treturn studentDtoList;\n\t}",
"@Query(\"from Student\")\n\tList<Student> findAllStudents();",
"public List<Student> getStudentsByFirstName(String fname) {\n\t\tList<Student> sameNames = new ArrayList<Student>();\r\n\t\t\r\n\t\t//loop over array list\r\n\t\t//for student type elements in the students array list do\r\n\t\tfor(Student student: students) {\r\n\t\t\t//if i find a student with the given first name then add to list\r\n\t\t\tif(student.getFirstName().equalsIgnoreCase(fname)) {\r\n\t\t\t\tsameNames.add(student);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//check if list has any students\r\n\t\tif(sameNames.size()>0) {\r\n\t\t\t//if students were found then return the list\r\n\t\t\treturn sameNames;\r\n\t\t}\r\n\t\t\r\n\t\t//if no students were found with that first name then return null\r\n\t\treturn null;\r\n\t}",
"public ArrayList<Student> GetAllStudentData() {\n\t\tArrayList<Student> result = new ArrayList<>();\n\t\tcurr = head;\n\t\twhile (curr != null) {\n\t\t\tArrayList<Student> theData = curr.data.students.getStudentData();\n\t\t\tfor (int i = 0; i <= curr.data.students.getStudentDataCount() - 1; i++) {\n\t\t\t\tresult.add(theData.get(i));\n\t\t\t}\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn result;\n\t}",
"public ArrayList<Student> selectAllStudents() {\n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n ArrayList<Student> studentList = new ArrayList<>();\n try {\n Class.forName(Tools.MYSQL_JDBC_DRIVER);\n\n connection = DriverManager.getConnection(Tools.DB_URL, Tools.USERNAME, Tools.PASSWORD);\n\n statement = connection.createStatement();\n\n String query = \"SELECT * FROM STUDENTS;\";\n\n resultSet = statement.executeQuery(query);\n\n while (resultSet.next()) {\n String id = resultSet.getString(\"STUDENT_ID\");\n String lastName = resultSet.getString(\"LAST_NAME\");\n String firstName = resultSet.getString(\"FIRST_NAME\");\n String dob = resultSet.getString(\"DATE_OF_BIRTH\");\n float fees = resultSet.getFloat(\"TUITION_FEES\");\n Student student = new Student(id, firstName, lastName, dob, fees);\n\n studentList.add(student);\n\n }\n\n } catch (ClassNotFoundException | SQLException e) {\n e.printStackTrace();\n } finally {\n if (resultSet != null) {\n try {\n resultSet.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n\n if (statement != null) {\n try {\n statement.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n if (connection != null) {\n try {\n connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n return studentList;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Student> retrieveAllStudentObjects() {\r\n\t\tList<Student> listOfStudents = new ArrayList<Student>();\r\n\r\n\t\ttry {\r\n\t\t\tlistOfStudents = readSerializedObject();\r\n\r\n\t\t\tif (listOfStudents == null) {\r\n\t\t\t\tSystem.out.println(\"Unable to read from file!\");\r\n\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn listOfStudents;\r\n\t}",
"public List<Patient> getByName(String name) {\n\t\treturn getByCriterion(Restrictions.or(Restrictions.like(\"firstname\", name), Restrictions.like(\"lastname\", name)));\n\t}",
"public List<users> getStudents(String course_ID){\n String stringStudents = usersRepository.getStudents(course_ID);\r\n //chop up string and put it into a list of students\r\n List<users> listOfStudents = new ArrayList<>();\r\n //returns empty list if no students are found\r\n if(stringStudents.length() <=1){\r\n return listOfStudents;\r\n }\r\n String[] students = stringStudents.split(\" \");\r\n for(int i = 0; i < students.length; i++) {\r\n if(!students[i].equals(\"\")) {\r\n listOfStudents.add(usersRepository.getAStudent(students[i]));\r\n }\r\n }\r\n return listOfStudents;\r\n }",
"@Override\n\tpublic List<Student> getStudentsByTeacher(String teacherName) {\n\t\tCollection<Student> allStudents = getAllEntities(); \n\t\t\n\t\t/** Here add students only bounded to this teacher */\n\t\tList<Student> studentsByTeacher = new ArrayList<>();\n\t\t\n\t\t/** Loop through all students in collection */\n\t\tfor(Student student : allStudents) { \n\t\t\tHibernate.initialize(student.getSubjects());\n\t\t\tfor(int i = 0; i < student.getTeachers().size(); i++) {\n\t\t\t\t/** Compare passed argument's teacher's name with teacher names bounded with students */\n\t\t\t\tif(teacherName.equals(student.getTeachers().get(i).getUsername())) {\n\t\t\t\t\tstudentsByTeacher.add(student);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn studentsByTeacher;\n\t}",
"public E returnStudent(String studentID){}",
"public Student retrieveStudentObject(String studentID) {\r\n\t\tStudent studentToRetrieve = null;\r\n\t\tStudent student = new Student();\r\n\r\n\t\ttry {\r\n\t\t\tList<Student> listOfStudents = student.retrieveAllStudentObjects();\r\n\r\n\t\t\tfor (int i = 0; i < listOfStudents.size(); i++) {\r\n\t\t\t\tif (listOfStudents.get(i).getStudentID().equals(studentID)) {\r\n\t\t\t\t\tstudentToRetrieve = listOfStudents.get(i);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (studentToRetrieve == null) {\r\n\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn studentToRetrieve;\r\n\t}",
"List<ScoreEntity> findList(int studentId);",
"public List<StaffPojo> staffSearchByName(String sname) {\n\t\treturn staffDao.staffSearchByName(sname);\n\t}",
"@Override\r\n\tpublic Student findByUserName(String userName) {\n\t\treturn studentRepository.findByUserName(userName);\r\n\t}",
"List<Student> selectByExample(StudentCriteria example);",
"public java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList() {\n\t\t\treturn student_;\n\t\t}",
"@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tpublic List<Student> listStudent() {\n\t\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Student\").list();\n\t\t}",
"public static ArrayList<Student> getAllStudenti() {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.parameters = new Object[] {};\n\t\t\trp.type = RequestType.GET_ALL_STUDENTS;\n\t\t\tReceiveContent rps = sendReceive(rp);\n\t\t\treturn (ArrayList<Student>) rps.parameters[0];\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"SendNewsLetter error\");\n\t\t}\n\t\treturn new ArrayList<Student>();\n\t}",
"@Override\r\n\tpublic List<Student> getAllStudent() {\n\t\treturn sdao.getAllStudent();\r\n\t}",
"public ArrayList getStudents();",
"public Query_GetStudent(DataSource ds) {\n\t\t\tsuper(ds, sql_getStudent);\n\t\t\tsuper.declareParameter(new SqlParameter(\"id\", Types.INTEGER));\n\t\t\tcompile();\n\t\t}",
"public Student getStudentDataByRollno(int rollno) {\r\n\t\tStudent stud = new Student();\r\n\t\ttry {\r\n\t\t\tConnection con = DatabaseUtility.getCon(inputStream);\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\"select * from student where roll_no=?\");\r\n\t\t\tps.setInt(1, rollno);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\r\n\t\t\t\tstud.setRollno(rs.getInt(1));\r\n\t\t\t\tstud.setFname(rs.getString(2));\r\n\t\t\t\tstud.setLname(rs.getString(3));\r\n\t\t\t\tstud.setEmail(rs.getString(4));\r\n\t\t\t\tstud.setGender(rs.getString(5));\r\n\t\t\t\tstud.setDOB(rs.getString(6));\r\n\t\t\t\tstud.setAddress(rs.getString(7));\r\n\t\t\t\tstud.setContact(rs.getString(8));\r\n\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(ex);\r\n\t\t}\r\n\r\n\t\treturn stud;\r\n\t}",
"@Override\n\tpublic List<Student> getAllStudents() {\n\t\tList<Student> students = new ArrayList<Student>();\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\t//select CAST(gpa as DECIMAL(3,2)) AS gpa from student;\n\t\t\t//ResultSet rs = stmt.executeQuery(\"select * from student\");\n\t\t\tResultSet rs = stmt.executeQuery(\"select ID, Firstname, Lastname, Program, CAST(gpa as DECIMAL(3,2)) AS gpa from student\");\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tStudent stu = new Student();\n\t\t\t\tstu.setStudentid(rs.getInt(\"ID\"));\n\t\t\t\tstu.setFirstname(rs.getString(\"Firstname\"));\n\t\t\t\tstu.setLastname(rs.getString(\"Lastname\"));\n\t\t\t\tstu.setProgram(rs.getString(\"Program\"));\n\t\t\t\tstu.setGpa(rs.getDouble(\"GPA\"));\n\n\t\t\t\tstudents.add(stu);\n\t\t\t}\n\t\t\t\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn students;\n\t}",
"Student getStudentById(Long id);",
"@CrossOrigin(origins = \"http://localhost:3000\")\n @RequestMapping(value = \"/getByName\", method = RequestMethod.GET, produces = \"application/json\")\n public Page<Student> getStudentsByFirstLastName(@RequestParam(value = \"fName\", required = false) String firstName,\n @RequestParam(value = \"lName\", required = false) String lastName,\n @RequestParam(\"page\") int page,\n @RequestParam(\"size\") int size\n ){\n page = page <0 ? PAGINATION_DEFAULT_PAGE : page;\n size = (size <0) ? PAGINATION_DEFAULT_SIZE: size;\n return studentService.findStudentByNamePagingCriteria(firstName, lastName, PageRequest.of(page, size));\n }",
"public static ArrayList<String> getStudents(String course)\n\t{\n\t\tHashMap<String, String> map = createMap();\n\t\tArrayList<String> students = new ArrayList<String>();\n\t\t\n\t\treturn students;\n\t}",
"public static ArrayList<String> getStudents(String course)\n\t{\n\t\tHashMap<String, String> map = createMap();\n\t\tArrayList<String> students = new ArrayList<String>();\n\t\t\n\t\treturn students;\n\t}",
"public ArrayList<Student> getAllStudentInfo(String student_id,\n\t\t\tString roll_no) {\n\t\tArrayList<Student> studentList = new ArrayList<Student>();\n\t\t// Select All Query\n\t\tString selectQuery = \"SELECT * FROM \" + TABLE_TEACHER_ASSIGNMENT\n\t\t\t\t+ \" WHERE \" + KEY_STUDENT_ID + \"=\" + student_id + \" AND \"\n\t\t\t\t+ KEY_ROLL_NO + \"=\" + roll_no;\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tcursor.moveToFirst();\n\t\twhile (cursor.isAfterLast() == false) {\n\t\t\tStudent info = new Student();\n\t\t\tinfo.row_id = Integer.parseInt(cursor.getString(0));\n\t\t\tinfo.id = cursor.getString(1);\n\t\t\tinfo.name = cursor.getString(2);\n\t\t\tinfo.roll_no = cursor.getString(3);\n\t\t\tinfo.section_id = cursor.getString(4);\n\t\t\tinfo.subject_id = cursor.getString(5);\n\t\t\tinfo.teacher_id = cursor.getString(6);\n\t\t\t// Adding contact to list\n\t\t\tstudentList.add(info);\n\t\t\tcursor.moveToNext();\n\t\t}\n\t\tcursor.close();\n\t\t// return contact list\n\t\treturn studentList;\n\t}",
"public List<Student> searchStudent(Map<String, String> map);",
"public static void fetchStudent(Session session) {\n\t\tQuery query = session.createQuery(\"from StudentEntity stud where stud.name=:name_to_be_passed_by_user\");\n\t\tquery.setParameter(\"name_to_be_passed_by_user\", \"Ram\");\n\t\tList studentResult = query.list();\n\t\t\n\t\tfor(Iterator iterator= studentResult.iterator();iterator.hasNext();) { \t\n\t\t\tStudentEntity student = (StudentEntity)iterator.next();\n\t\t\t\n\t\t\tSystem.out.println(student);\n\t\t}\n\t\t\n\t}",
"public String getInfo(String student) throws SQLException{\n\n try(PreparedStatement st = conn.prepareStatement(\n // replace this with something more useful\n \"WITH RegData as (SELECT * FROM Registrations FULL OUTER JOIN CourseQueuePositions USING (student,course)),\" +\n \"Finished as (SELECT COALESCE(json_agg(jsonb_build_object('course',Courses.name,'code',Courses.code,\" +\n \"'grade',grade,'credits',Courses.credits)),'[]'::json) AS finishedArray FROM FinishedCourses,Courses \" +\n \"WHERE student = ? AND FinishedCourses.course = Courses.Code), Registered AS \" +\n \"(SELECT COALESCE(json_agg(jsonb_build_object('course',Courses.name,'code',Courses.code,'status',status,'position', place)),'[]'::json)\" +\n \"AS registeredArray FROM RegData,Courses WHERE student = ? AND RegData.course = Courses.Code) \" +\n \"SELECT jsonb_build_object('student',idnr,'name',name,'login',login,'program',program,'branch',\" +\n \"branch,'finished',finishedArray,'registered',registeredArray,'seminarCourses',seminarCourses,\" +\n \"'mathCredits',mathCredits,'researchCredits',researchCredits,'totalCredits',totalCredits,\" +\n \"'canGraduate',qualified) AS jsondata FROM BasicInformation,PathToGraduation,Finished,\" +\n \"Registered WHERE BasicInformation.idnr=? AND BasicInformation.idnr = PathToGraduation.student\"\n );){\n\n st.setString(1, student);\n st.setString(2, student);\n st.setString(3, student);\n\n ResultSet rs = st.executeQuery();\n\n if(rs.next())\n return rs.getString(\"jsondata\");\n else\n return \"{\\\"student\\\":\\\"does not exist :(\\\"}\";\n\n }\n\n }",
"public List<Book> readByBookName(String searchString) throws Exception{\n\t\tsearchString = \"%\"+searchString+\"%\";\n\t\treturn (List<Book>) template.query(\"select * from tbl_book where title like ?\", new Object[] {searchString}, this);\n\t}",
"List<Subject> findByName(String name);",
"@Override\n\tpublic Student retrieveStudentByFirstName(String fName)\n\t\t\tthrows MoreThanOneResultException {\n\t\tTypedQuery<Student> query = em.createQuery(\n\t\t\t\t\"select s from Student s where s.fName =:fName\", Student.class);\n\t\tquery.setParameter(\"fName\", fName);\n\t\ttry {\n\t\t\treturn query.getSingleResult();\n\t\t} catch (NonUniqueResultException e) {\n\t\t\tthrow new MoreThanOneResultException();\n\t\t}\n\t}"
] | [
"0.7028414",
"0.69212216",
"0.6885072",
"0.68388283",
"0.65465283",
"0.6489136",
"0.64687884",
"0.63748604",
"0.6355862",
"0.6276612",
"0.626698",
"0.6225903",
"0.6120366",
"0.61164665",
"0.61046827",
"0.6097532",
"0.6091439",
"0.609037",
"0.6088575",
"0.60883653",
"0.6065851",
"0.6031981",
"0.59645396",
"0.594691",
"0.5936832",
"0.5914305",
"0.59033465",
"0.58493537",
"0.58487934",
"0.583488",
"0.58218575",
"0.5813006",
"0.580211",
"0.57909375",
"0.5738877",
"0.5738345",
"0.5730368",
"0.571676",
"0.5695676",
"0.5687106",
"0.5682068",
"0.5670339",
"0.5667657",
"0.5664793",
"0.5661917",
"0.56488943",
"0.56485814",
"0.5639072",
"0.5632235",
"0.5624715",
"0.5624372",
"0.56104946",
"0.5607121",
"0.5605024",
"0.5595623",
"0.5580387",
"0.55787164",
"0.5571146",
"0.55657333",
"0.5562432",
"0.5559058",
"0.5557091",
"0.5547307",
"0.5541341",
"0.55387",
"0.5537056",
"0.55305916",
"0.5526127",
"0.55233413",
"0.5520601",
"0.5518222",
"0.5515811",
"0.5512154",
"0.5501544",
"0.54988694",
"0.54869103",
"0.5483974",
"0.54820055",
"0.5478927",
"0.5463663",
"0.5458621",
"0.5455635",
"0.5430002",
"0.54182434",
"0.5417154",
"0.541385",
"0.54135895",
"0.54022056",
"0.5398752",
"0.53958046",
"0.53930724",
"0.53787494",
"0.53787494",
"0.5368162",
"0.53669226",
"0.5365436",
"0.5361353",
"0.53548086",
"0.5349797",
"0.5345172"
] | 0.7525289 | 0 |
Retrieves a list of data object for the specified password field. To use a wildcard search, use a % in the query. | public java.util.List findStudentByPassword(java.lang.String password) throws GenericBusinessException {
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
String queryString = "from " + Student.class.getName() + " e where e.password like :password ";
// Add a an order by on all primary keys to assure reproducable results.
String orderByPart = "";
orderByPart += " order by e.studentId";
queryString += orderByPart;
Query query = hibernateTemplate.createQuery(queryString);
hibernateTemplate.setQueryParameter(query, "password", password);
List list = hibernateTemplate.list(query);
return list;
} finally {
log.debug("finished findStudentByPassword(java.lang.String password)");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<PasswordCard> selectByExample(PasswordCardExample example);",
"protected BaseFilter<T> getPasswordFilter(String password) throws DataFault{\n\t\tLogger log = getContext().getService(LoggerService.class).getLogger(getClass());\n\t\tif( DatabasePasswordComposite.JAVA_HASH.isEnabled(getContext())){\n\t\t\tlog.debug(\"Using java hash\");\n\t\t\treturn new AcceptHashFilter(password);\n\t\t}\n\t\ttry{\n\t\t\tHash default_hash = Hash.getDefault(getContext());\n\t\t\tif( getRepository().hasField(DatabasePasswordComposite.ALG)){\n\t\t\t\tlog.debug(\"Has alg field\");\n\t\t\t\tSQLOrFilter<T> of = getFactory().getSQLOrFilter();\n\t\t\t\tAppContext conn = getContext();\n\t\t\t\tfor(Hash h : Hash.values()){\n\t\t\t\t\tif( h.equals(default_hash) || h.isEnabled(conn)){\n\t\t\t\t\t\tSQLAndFilter<T> clause = getFactory().getSQLAndFilter(\t\n\t\t\t\t\t\t\t\tnew SQLValueFilter<>(getRepository(), DatabasePasswordComposite.ALG, h.ordinal()),\n\t\t\t\t\t\t\t\tnew SQLHashFilter(getContext(),h, password));\n\t\t\t\t\t\tof.addFilter(clause);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn of;\n\t\t\t}else{\n\t\t\t\t\n\t\t\t\tlog.debug(\"SQL filter for default hash \"+default_hash.name());\n\t\t\t\treturn new SQLHashFilter(getContext(),default_hash, password);\n\t\t\t}\n\t\t}catch(CannotUseSQLException e){\n\t\t\treturn new AcceptHashFilter(password);\n\t\t}\n\t}",
"@Override\r\npublic User getUserByPassword(String password) throws ClassNotFoundException, IOException, SQLException\r\n{\r\n\tConnection conn = null;\r\n\tPreparedStatement stmt = null;\r\n\tResultSet rs = null;\r\n\tOracleConnection orcl = new OracleConnection();\r\n\r\n\t//Create List Object to return, and User Object to to store in list from database.\r\n\tList<User> userList = null;\r\n\tUser user = null;\r\n\r\n\tString fetchString = \"SELECT * FROM users WHERE password = ?\";//Since username is unique, only one user can be generated\r\n\ttry\r\n\t{\r\n\t\tconn = orcl.getConnection();\r\n\t\tstmt = conn.prepareStatement(fetchString);\r\n\t\tstmt.setString(1, password);\r\n\t\trs = stmt.executeQuery();\r\n\t\tuserList = new ArrayList<User>();\r\n\t\r\n\t\twhile(rs.next())\r\n\t\t{\r\n\t\t\tuser = new User(rs.getString(2), rs.getString(3), rs.getString(4));\r\n\t\t\tuser.setUserId(rs.getInt(1));\r\n\t\t\tuserList.add(user);\r\n\t\t}\r\n\t}\r\n\tcatch(SQLException e)\r\n\t{\r\n\t\tSystem.out.println(\"Error: \" + e.getMessage());\r\n\t}\r\n\tfinally\r\n\t{\r\n\t\tif (rs != null) \r\n\t\t{\r\n\t\t\trs.close();\r\n\t\t}\r\n\t\tif (stmt != null) \r\n\t\t{\r\n\t\t\tstmt.close();\r\n\t\t}\r\n\t\tif (conn != null) \r\n\t\t{\r\n\t\t\tconn.close();\r\n\t\t}\r\n\t}\r\n\treturn user;\r\n}",
"public abstract String getPassword() throws DataServiceException;",
"Data<User> getUserSearch(String user, String fields);",
"public String searchPassword(String username){\n\n db = this.getReadableDatabase();\n String query = \"select username, password from \"+ TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname, pass;\n pass = \"not found\";\n if (cursor.moveToFirst()){\n\n do {\n uname = cursor.getString(0);\n if (uname.equals(username)) {\n pass = cursor.getString(1);\n break;\n }\n\n } while (cursor.moveToNext());\n }\n\n return pass;\n }",
"public List<Password> getPasswordList() {\n return passwordList;\n }",
"public List<com.ims.dataAccess.tables.pojos.User> fetchByPassword(String... values) {\n return fetch(User.USER.PASSWORD, values);\n }",
"@WebElementLocator(webDesktop = \"//input[@type='password']\",webPhone = \"//input[@type='password']\")\n private static WebElement passwordField() {\n return getDriver().findElement(By.xpath(new WebElementLocatorFactory().getLocator(LoginPage.class, \"passwordField\")));\n }",
"public GetPasswordDataResponse getPasswordData(GetPasswordData getPasswordData) {\n \t\treturn null;\r\n \t}",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"Data<User> getMe(String fields);",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"String getPassword();",
"public Patient getPatien(String email, String pass) {\n Patient p = null;\n String query = \"SELECT * FROM PATIENTS WHERE email = ? AND password = ?\";\n try (PreparedStatement pst = this.transaction.prepareStatement(query)) {\n pst.setString(1, email);\n pst.setString(2, pass);\n try (ResultSet rs = pst.executeQuery()) {\n while (rs.next()) {\n p = new Patient(rs);\n }\n }\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n }\n\n return p;\n }",
"public JPasswordField getPasswordField() {\n return passwordField;\n }",
"@Query(\"SELECT * FROM nurse WHERE nurseId = :nurseId AND password = :password\")\n LiveData<Nurse> getByUserIdAndPassword(String nurseId, String password);",
"public String getPassword();",
"public String getPassword();",
"@Override\n\tpublic List<String> getPassWord(String name) {\n\t\treturn userDao.getPassWord(name);\n\t}",
"public List<Authentication> getLoginCredentials(String username,String password) {\n // select * from administrators where adminID='Admin1' and password='123456';\n String loginQuery = \"SELECT * FROM administrators WHERE adminID = ? and password = ?\";\n return loginTemplate.query(loginQuery, (rs, rowNum) -> {\n Authentication authentication = new Authentication();\n authentication.setPassword(rs.getString(\"password\"));\n authentication.setUsername(rs.getString(\"adminID\"));\n\n System.out.println(authentication);\n return authentication;\n\n }, username,password\n );\n }",
"public java.lang.String getPassword();",
"public String getPassword() {return password;}",
"public Map<String, String> listUserData(String login, int limit, int offset);",
"public char[] getPassword();",
"UserDTO findUserByUseridAndPassword ( String userid , String password);",
"public JPasswordField getPasswordField() {\n return pwPassword;\n }",
"public Employee getEmployeeUsingPass(String username, String password) {\n\t\tfor (Employee E : employeeList) {\n\t\t\tif (E.getUsername().equals(username) && E.getPassword().equals(password))\n\t\t\t\treturn E;\n\t\t}\n\t\treturn null;\n\t}",
"List<UserBean> findByMUserAccountAndMUserPassword(String mUserAccount,String mUserPassword);",
"UserPasswordDO selectByUserId(Integer id);",
"public User queryUserByUsernameAndPassword(String username, String password);",
"public List findPageFields(User loginUser)\r\n {\r\n QueryBuffer query = new QueryBuffer();\r\n \r\n query.append(\"SELECT \");\r\n query.append(\" sfile_id pageId, \");\r\n query.append(\" (SELECT b.sfile_name FROM TSFILE b WHERE b.sfile_id = x.sfile_id) fileName, \");\r\n query.append(\" sfilefield_id fieldId, \");\r\n query.append(\" issystem hiddenYn, \");\r\n query.append(\" x.iseditable readonlyYn, \");\r\n query.append(\" x.ord_no ordNo, \");\r\n query.append(\" x.isdisplay displayYn, \");\r\n query.append(\" x.field_option fieldOption, \");\r\n query.append(\" '' ||'.'||'' langKey \");\r\n query.append(\"FROM TSFILEFIELD x \");\r\n query.append(\"ORDER BY x.ord_no DESC \");\r\n\r\n return getJdbcTemplate().queryForList(query.toString());\r\n }",
"@Override\n \tpublic LidPOJO findLidByPasw(String pasw) throws SQLException {\n \tConnection connect = getConnection();\n\n \t\n \t\tString queryString = \"SELECT * FROM leden WHERE password = \" + pasw;\n \t\tResultSet res = getConnection().prepareStatement(queryString).executeQuery();\n \t\tLidPOJO lid = new LidPOJO();\n \t\twhile (res.next()) {\n \t\t\tlid = new LidPOJO(res.getString(\"naam\"), res.getString(\"achternaam\"), res.getInt(\"leeftijd\"), res.getInt(\"teamcode\"), res.getString(\"pasw\"));\n \t\t}\n \t\tconnect.close();\n \t\treturn lid;\n }",
"public PasswordDTO findPassword(String email) throws SQLException {\n Password password = repositorioFreelancer.findPassword(email);\n return (PasswordDTO) password.toDTO();\n }",
"private User getUserFromUsersBy(String email, String password){\n \tUser user=null;\n \tfor(User u : users ){\n \t\tif(u.getEmail().equals(email)&&u.getPassword().equals(password)){\n \t\t\tuser = u;\n \t\t}\n \t}\n \treturn user;\n }",
"public List<com.ims.dataAccess.tables.pojos.User> fetchRangeOfPassword(String lowerInclusive, String upperInclusive) {\n return fetchRange(User.USER.PASSWORD, lowerInclusive, upperInclusive);\n }",
"public ForgetPassword() {\n initComponents();\n try {\n for (User member : Serialization.deserializeUsers()) {\n searchUsers.addUser(member);\n member.print();\n }\n\n for (randomCode code : Serialization.deserializeRandomCode()) {\n searchCode.addCode(code);\n code.print();\n }\n } catch (IOException | ClassNotFoundException ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage());\n }\n }",
"public List<ApplicationUser> listApplicationUserByPassword(String password)\n {\n List<ApplicationUser> result = this.getApplicationUserDao().listApplicationUserByPassword(password);\n\n return result;\n }",
"void retrievePassWord(User user);",
"public WebElement getPassword(String identifier) {\n return findInputElement(\"password\", identifier);\n }",
"PasswdDo selectByPrimaryKey(Integer id);",
"private List<UserPermissionBO> getAuthorizedData(String username, String password) throws MalformedURLException {\n URL wsdlUrl = new URL(login_wsUrl);\n QName qname = new QName(\"http://webservice.vps.viettel.com/\", \"AuthorizedDataService\");\n Service service = Service.create(wsdlUrl, qname);\n AuthorizedDataService ads = service.getPort(AuthorizedDataService.class);\n AuthorizedData authorizedData = ads.getAuthorizedData(username, \"CTCT\", password);\n com.viettel.vps.webservice.SysUserBO user = authorizedData.getUser();\n List<UserPermissionBO> businessUserPermissions = authorizedData.getBusinessUserPermissions();\n\n return businessUserPermissions;\n }",
"public String getPassword() { \n return this.password; \n }",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"public RestaurantDetails getRestaurantDetails(String userName, String password);",
"private List<String> queryForAll() {\n // query for all of the data objects in the database\n List<Contact> list = dao.queryForAll();\n List<String> creadentials = new ArrayList<String>();\n for (Contact contact : list) {\n creadentials.add(contact.email);\n creadentials.add(contact.password);\n }\n return creadentials;\n }",
"public String getPassword(){\n \treturn password;\n }",
"public String getPassword(){\n return this.password;\n }",
"public String getPassword(){\n return password;\n\t}",
"public String getPassword() {\n return (String) getObject(\"password\");\n }",
"public ArrayList getQandA(String username, String password) {\n String query = \"SELECT * FROM SilentAuction.Users \";\n query += \"WHERE Username = '\" + username + \"'\"\n + \"AND Password = '\" + password + \"'\";\n \n ArrayList<String> QandA = new ArrayList<String>();\n Connection DBConn = null;\n \n try {\n DBHelper.loadDriver(\"org.apache.derby.jdbc.ClientDriver\");\n String myDB = \"jdbc:derby://localhost:1527/SilentAuction\";\n DBConn = DBHelper.connect2DB(myDB, \"itkstu\", \"student\");\n Statement stmt = DBConn.createStatement();\n ResultSet rs = stmt.executeQuery(query);\n \n String question, answer;\n \n while (rs.next()) {\n question = rs.getString(\"Question\");\n answer = rs.getString(\"Answer\");\n QandA.add(question);\n QandA.add(answer);\n }\n rs.close();\n stmt.close();\n } catch (Exception e) {\n System.err.println(\"ERROR: Problems with SQL select\");\n e.printStackTrace();\n }\n try {\n DBConn.close();\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n } \n return QandA;\n }",
"public String getPassword()\n {\n return _password;\n }",
"@Override\n\tpublic User getUserByCredentials(String userName, String password) {\n\t\tList<User> userList = new ArrayList<User>();\n\t\tString query = \"SELECT u FROM User u\";\n\t\tuserList = em.createQuery(query, User.class).getResultList();\n\t\tUser returnUser = null;\n\t\tfor (User user : userList) {\n\t\t\tif (user.getUserName().equals(userName) && user.getPassword().equals(password)) {\n\t\t\t\tSystem.out.println(user);\n\t\t\t\treturnUser = user;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Not found\");\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn returnUser;\n\t}",
"@Override\r\n\tpublic UserAccount get(String username, String password) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tUserAccount ua = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetByUsernamePwd);\r\n\t\t\tps.setString(1, username);\r\n\t\t\tps.setString(2, password);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tua = get(rs.getInt(\"id\"));\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ua;\r\n\t}",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic UserDO getUserByUsernameAndPassword(String username, String password) {\n\t\tlog.debug(\"getting UserDO instance with username: \" + username+\",password: \"+password);\n\t\ttry {\n\t\t\tString sql = \"from UserDO where username = '\"+username+\"' and password='\"+password+\"'\";\n\t\t\tSession se = this.currentSession();\n\t\t\n\t\t\tQuery q = se.createQuery(sql);\n\t\t\tList<UserDO> result = q.list();\n\t\t\treturn result.size()==0?null:result.get(0);\n\t\t} catch (RuntimeException re) {\n\t\t\tlog.error(\"get failed\", re);\n\t\t\tthrow re;\n\t\t}\n\t}",
"@Query(\"{ 'userName' : ?0, 'userPassword' : ?1 }\")\n //method to authenticate DomainExpert Credentials\n public List<DomainExpert> findByUserName(@Param(\"userName\")String userName, @Param(\"userPassword\") String userPassword);",
"String getUserPassword();",
"public String getPassword() {\r\n return password;\r\n }",
"User selectUserByUserNameAndPassword(@Param(\"username\") String username, @Param(\"password\") String password);",
"private JPasswordField getPasswordField() {\n\t\tif (PasswordField == null) {\n\t\t\tPasswordField = new JPasswordField();\n\t\t\tPasswordField.setBounds(new Rectangle(225, 170, 180, 30));\n\t\t}\n\t\treturn PasswordField;\n\t}",
"public String getPassword()\r\n {\r\n return password;\r\n }",
"public String getPassword() {\n\treturn password;\n}",
"@Override\n public User getUserByMailAndPassword(String mail, String password) { String hql = \"SELECT u FROM User u WHERE u.f_mail=:mail and u.f_password=:password\";\n// Query query = getSession().createQuery(hql)\n// .setParameter(\"mail\", mail)\n// .setParameter(\"password\", password);\n// return (User) query.uniqueResult();\n//\n Criteria criteria = getSession().createCriteria(User.class)\n .add(Restrictions.eq(\"mail\", mail))\n .add(Restrictions.eq(\"password\", password));\n if (criteria.list().size() > 0) {\n return (User) criteria.uniqueResult();\n } else {\n return null;\n }\n }",
"public String getPassword(){\r\n\t\treturn password;\r\n\t}",
"public String getPassword() {\r\n return this.password;\r\n }",
"public String getPassword() {\n return password;\n }",
"public String getPassword() {\n return password;\n }",
"public String getPassword() {\n return password;\r\n }",
"public String getPassword()\n {\n return password;\n }",
"public String getPassword()\n {\n return password;\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"public String getPassword() {\r\n return password;\r\n }",
"Password getPsw();",
"public PasswordCredential getPasswordCredential() {\n return passCred;\n }",
"public String getPassword()\n {\n return _password;\n }",
"public User queryByname(String name, String password) {\n\t\tSystem.out.println(this.getClass().getName()+\"queryByname\");\n\t\treturn null;\n\t}",
"private void getInfo() throws SQLException {\n printAllWebsites();\n\n System.out.println(\"What website do you want to look up?\");\n String website = input.next();\n System.out.println(\"What is the username?\");\n String username = input.next();\n\n try (PreparedStatement stmt = connection.prepareStatement(\"SELECT password FROM website_data\\n\" +\n \"LEFT JOIN passwords p on website_data.website_data_id = p.website_data_id\\n\" +\n \"LEFT JOIN users u on p.user_id = u.id\\n\" +\n \"WHERE website like (?) AND u.id like (?) AND website_data.username like (?)\")) {\n stmt.setString(1, website);\n stmt.setInt(2, this.user.getId());\n stmt.setString(3, username);\n ResultSet rs = stmt.executeQuery();\n String password;\n if (rs.next()) {\n SecretKey key = User.getKey(user.getDecryptedKey());\n try {\n Cipher cipher = Cipher.getInstance(\"AES/ECB/PKCS5PADDING\");\n cipher.init(Cipher.DECRYPT_MODE, key);\n password = new String(cipher.doFinal(Base64.getDecoder().decode(rs.getString(\"password\"))));\n System.out.println(\"password: \" + password);\n } catch (Exception e) {\n System.out.println(\"Error while decrypting: \" + e.toString());\n }\n } else System.out.println(\"No passwords found.\");\n } catch (SQLException e) {\n System.out.println(\"Error while retrieving password.\");\n throw e;\n }\n }"
] | [
"0.62844574",
"0.59994084",
"0.5817357",
"0.57773334",
"0.57633024",
"0.5757029",
"0.5708489",
"0.5698381",
"0.5697216",
"0.56490076",
"0.56285304",
"0.56285304",
"0.56285304",
"0.56285304",
"0.56285304",
"0.56285304",
"0.56285304",
"0.5627763",
"0.55508953",
"0.55508953",
"0.55508953",
"0.55508953",
"0.55508953",
"0.55508953",
"0.55508953",
"0.55508953",
"0.55508953",
"0.5520271",
"0.55123687",
"0.5508112",
"0.5503207",
"0.5503207",
"0.54953283",
"0.5494333",
"0.5473459",
"0.5458885",
"0.5445139",
"0.5435845",
"0.54337335",
"0.5433153",
"0.54253995",
"0.5424228",
"0.54153806",
"0.54099375",
"0.540055",
"0.5383816",
"0.53812915",
"0.5362795",
"0.5353707",
"0.5353637",
"0.53442407",
"0.53417075",
"0.5324394",
"0.53157735",
"0.53127575",
"0.53121525",
"0.5306848",
"0.5302465",
"0.53013194",
"0.5288593",
"0.52748924",
"0.5273631",
"0.5272983",
"0.52728665",
"0.5269086",
"0.52678376",
"0.5260621",
"0.52592963",
"0.52578574",
"0.5255226",
"0.52542484",
"0.5247276",
"0.5243386",
"0.52363604",
"0.5235809",
"0.52296454",
"0.5224176",
"0.5223219",
"0.5213315",
"0.5203498",
"0.5203498",
"0.5195357",
"0.519313",
"0.519313",
"0.5192984",
"0.5192984",
"0.5192984",
"0.5192984",
"0.5192984",
"0.5192984",
"0.5192984",
"0.5192984",
"0.5192984",
"0.5192984",
"0.5192984",
"0.5172952",
"0.5169743",
"0.51692146",
"0.5165651",
"0.5164133"
] | 0.63113683 | 0 |
Retrieves a list of data object for the specified session field. To use a wildcard search, use a % in the query. | public java.util.List findStudentBySession(java.lang.Integer session) throws GenericBusinessException {
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
String queryString = "from " + Student.class.getName() + " e where e.session like :session ";
// Add a an order by on all primary keys to assure reproducable results.
String orderByPart = "";
orderByPart += " order by e.studentId";
queryString += orderByPart;
Query query = hibernateTemplate.createQuery(queryString);
hibernateTemplate.setQueryParameter(query, "session", session);
List list = hibernateTemplate.list(query);
return list;
} finally {
log.debug("finished findStudentBySession(java.lang.Integer session)");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic <T, S> List<T> getRecords(S session) {\n\t\treturn null;\n\t}",
"public List<?> queryBySingleCriteria(String field, String value)\n throws DataAccessLayerException {\n return queryBySingleCriteria(field, value, \"=\");\n }",
"List<T> fetch(Session session);",
"@Override\n\tpublic List<Object[]> getObjectData(String hql) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction transaction = session.beginTransaction();\n\t\tQuery query = session.createQuery(hql);\n\t\tList<Object[]> lists = query.list();\n\t\ttransaction.commit();\n\t\tsession.close();\n\t\treturn lists;\n\t}",
"User getBySession(String session);",
"public static List getAllSessions() {\n\t\tsynchronized (FQN) {\n\t\t\tList<MemberSession> msList = new ArrayList<MemberSession>();\n//\t\t\tObject object = cache.getValues(FQN);\n\t\t\tObject object = null;\n\t\t\tif (object != null) {\n\t\t\t\tmsList = (List<MemberSession>) object;\n\t\t\t\treturn new ArrayList(msList);\n\t\t\t} else {\n\t\t\t\tCollection list = new ArrayList();\n\t\t\t\tobject = cache.getValues(FQN);\n\t\t\t\tif(object != null){\n\t\t\t\t\tlist = (Collection) object;\n\t\t\t\t}\n\t\t\t\tmsList = new ArrayList(list);\n//\t\t\t\tfor (MemberSession ms : msList) {\n//\t\t\t\t\tcache.add(FQN, ms.getSessionId(), ms);\n//\t\t\t\t}\n\t\t\t\treturn msList;\n\t\t\t}\n\n\t\t}\n\t}",
"public List<?> queryBySingleCriteria(String field, String value,\n String operand) throws DataAccessLayerException {\n\n DatabaseQuery query = new DatabaseQuery(this.daoClass.getName());\n query.addQueryParam(field, value, QueryParam.translateOperand(operand));\n return queryByCriteria(query);\n }",
"public List<com.scratch.database.mysql.jv.tables.pojos.Session> fetchByData(String... values) {\n return fetch(Session.SESSION.DATA, values);\n }",
"List<Item> getItems(IDAOSession session);",
"public Session[] findSessions();",
"@GET\n\t@Path(\"{sessionToken}\")\n\tpublic Response getSessionFields(\n\t\t\t@PathParam(\"sessionToken\") String sessionToken,\n\t\t\t@CookieParam(value = \"sessionToken\") String sessionTokenCookie) {\n\t\tResponse response = null;\n\t\tif (appsMid.sessionTokenExists(sessionTokenCookie)) {\n\t\t\tresponse = Response.status(Status.OK).entity(sessionToken).build();\n\t\t} else\n\t\t\tresponse = Response.status(Status.NOT_FOUND).entity(sessionToken)\n\t\t\t\t\t.build();\n\t\treturn response;\n\t}",
"List<Session> getAllSessions();",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Session> \n getSessionsList();",
"@Override\n public Collection searchByRestriction(String sessionId, RestrictionCondition restricion) throws SessionException, RestrictionException, DatevalueException {\n String userId = user.getUserIdFromSessionId(sessionId);\n\n return DatasetSearch.searchByRestriction(userId, restricion, DatasetInclude.NONE, manager);\n }",
"public synchronized Session[] getVisibleSessions(Session session) {\n return session.isAdmin() ? getAllSessions()\n : new Session[]{ session };\n }",
"@SimpleFunction(description = \"Get the Data Sets for the current project\")\n public YailList GetDataSetsByField(final String Field) {\n ArrayList<String> result = api.getDataSetsByField(ProjectID, Field);\n return YailList.makeList(result); \n }",
"public final List queryField(String query, String fieldName)\n\t\t\tthrows SQLException {\n\t\tfinal Connection con = getConnection();\n\t\tStatement stmt = null;\n\t\ttry {\n\t\t\tstmt = con.createStatement();\n\t\t\treturn resultSet2List(stmt.executeQuery(query), fieldName);\n\t\t} finally {\n\t\t\tif (stmt != null)\n\t\t\t\tstmt.close();\n\t\t\tif (con != null)\n\t\t\t\tcon.close();\n\t\t}\n\t}",
"@RequestMapping(\"/find\")\n public String find(HttpSession session) {\n return \"custom_list\";\n }",
"public ArrayList<Session> getSessionList(){\n \n ArrayList<Session> sessionList= new ArrayList<Session>(); \n Connection connection=getConnection();\n \n String studentGroup = combo_studentGroup.getSelectedItem().toString();\n\n String query= \"SELECT `SessionId`,`Tag`,`StudentGroup`,`Subject`,`NoOfStudents`,`SessionDuration` FROM `sessions` WHERE StudentGroup='\"+studentGroup+\"' \";\n Statement st;\n ResultSet rs;\n\n try{\n st = connection.createStatement();\n rs= st.executeQuery(query);\n Session session;\n while(rs.next()){\n session = new Session(rs.getInt(\"SessionId\"),rs.getString(\"Tag\"),rs.getString(\"StudentGroup\"),rs.getString(\"Subject\"),rs.getInt(\"NoOfStudents\"),rs.getInt(\"SessionDuration\"));\n sessionList.add(session);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return sessionList; \n }",
"@Query(\"customField = ?\")\n List<PersonDocument> findByCustomField(String value);",
"List<Joined> findBySession(Long Session);",
"List<MedicalRecord> getAllPatientMedicalRecords(HttpSession session, int patientId);",
"public List getObjectByQuery(StringBuffer sqlquery)\n {\n List list = new ArrayList();\n Query query = getSession().createQuery(sqlquery.toString());\n list = query.list();\n return list;\n }",
"public static UserData getLogin(HttpSession session) {\n return (UserData) getObject(session, LOGIN);\n }",
"public List<String> get_field_from_table(String table, String field, String order);",
"List<ShipmentInfoPODDTO> search(String query);",
"public List<DomainObject> getListByKeyandValue(String colname, Object value) {\r\n Session session = getSession();\r\n List<DomainObject> retList = null;\r\n try {\r\n Criteria query = session.createCriteria(getPersistentClass()).add(Restrictions.eq(colname, value));\r\n retList = query.list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getListByKeyandValue Method:\" + e, e);\r\n } finally {\r\n// if (session.isOpen()) {\r\n// session.close();\r\n// }\r\n }\r\n return retList;\r\n }",
"private static void getFromCache(Session session) {\n\t\tCacheManager cm=CacheManager.getInstance();\n\t\tCache cache=cm.getCache(\"namanCache\");\n\t\tfor(int i=0;i<2;i++){\n\t\t\tif(cache.get(i)!=null){\n\t\t\t\tSystem.out.println(((UserDetails)cache.get(1).getObjectValue()).getName());\n\t\t\t}else{\n\t\t\t\tUserDetails user1=(UserDetails)session.get(UserDetails.class, i);\n\t\t\t\tSystem.out.println(user1.getName());\n\t\t\t\tcache.put(new Element(i+1,user1));\n\t\t\t}\n\t\t}\n\t\tcm.shutdown();\n\t}",
"public abstract String getSessionList();",
"public native Record[] findAll(String propertyName, Long value) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var recordsJS = self.findAll(propertyName, value);\r\n return recordsJS == null || recordsJS === undefined ? null : @com.smartgwt.client.data.Record::convertToRecordArray(Lcom/google/gwt/core/client/JavaScriptObject;)(recordsJS);\r\n }-*/;",
"@Override\n\tpublic UserSessionBean getSessionDao(String input) {\n\t\tUserSessionBean data=null;\n\t\tfor(UserSessionBean obj: this.userDao.getSessionDao(input)){\n\t\t\tdata=obj;\n\t\t}\n\t\treturn data;\n\t}",
"public List<Document> SearchField(String queryStr ,String fieldName)\r\n\t{\r\n\t\treturn null;\r\n\t}",
"public List findPageFields(User loginUser)\r\n {\r\n QueryBuffer query = new QueryBuffer();\r\n \r\n query.append(\"SELECT \");\r\n query.append(\" sfile_id pageId, \");\r\n query.append(\" (SELECT b.sfile_name FROM TSFILE b WHERE b.sfile_id = x.sfile_id) fileName, \");\r\n query.append(\" sfilefield_id fieldId, \");\r\n query.append(\" issystem hiddenYn, \");\r\n query.append(\" x.iseditable readonlyYn, \");\r\n query.append(\" x.ord_no ordNo, \");\r\n query.append(\" x.isdisplay displayYn, \");\r\n query.append(\" x.field_option fieldOption, \");\r\n query.append(\" '' ||'.'||'' langKey \");\r\n query.append(\"FROM TSFILEFIELD x \");\r\n query.append(\"ORDER BY x.ord_no DESC \");\r\n\r\n return getJdbcTemplate().queryForList(query.toString());\r\n }",
"public static Object getObject(HttpSession session, String key) {\n return session.getAttribute(key);\n }",
"public List<SessionDetails> getSessionDetails(JobStep js);",
"public List<com.scratch.database.mysql.jv.tables.pojos.Session> fetchByName(String... values) {\n return fetch(Session.SESSION.NAME, values);\n }",
"public native Record[] findAll(String propertyName, String value) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var recordsJS = self.findAll(propertyName, value);\r\n return recordsJS == null || recordsJS === undefined ? null : @com.smartgwt.client.data.Record::convertToRecordArray(Lcom/google/gwt/core/client/JavaScriptObject;)(recordsJS);\r\n }-*/;",
"public abstract I_SessionInfo getSession(I_SessionName sessionName);",
"public interface FormSessionListView {\n String getId();\n String getTitle();\n Instant getDateCreated();\n Map<String, String> getSessionData();\n}",
"public static Hashtable getObjects(HttpSession session) {\n Hashtable objects = new Hashtable();\n\n String attribute = null;\n for (Enumeration e = session.getAttributeNames(); e.hasMoreElements(); ) {\n attribute = (String)e.nextElement();\n objects.put(attribute, getObject(session, attribute));\n }\n\n return objects;\n }",
"public Object getObjFromSession(String key)\n\t{\n\t\treturn context.getSession().get(key);\n\t}",
"@Query(\"select a from UserSpace a where a.title =?1\")\n\tpublic List<UserSpace> userSpacesearch(String text);",
"@Transactional\n public List<MsInjectionSample> listRawDataSamples(String sessionToken);",
"public List<Object> queryAll(String col_name, String dto) {\n\t\tDBCollection dbc = db.getCollection(col_name);\n DBCursor cur = dbc.find();\n List<Object> res = new ArrayList<Object>();\n try {\n \twhile (cur.hasNext()) {\n \t\tDBObject doc = cur.next();\n \t\ttry {\n \t\t\tres.add(Util.deserialize(doc, dto));\n \t\t} catch(InvocationTargetException ite) {\n \t\t\tite.printStackTrace();\n \t\t} \t\t\n \t\t//System.out.println(doc);\n }\n } catch(ClassNotFoundException cnfe) {\n \tcnfe.printStackTrace();\n } catch(InstantiationException ie) {\n \tie.printStackTrace();\n } catch(IllegalAccessException iae) {\n \tiae.printStackTrace();\n }\n return res;\n\t}",
"public abstract I_SessionInfo[] getSessions();",
"List<DataTerm> search(String searchTerm);",
"@And(\"^I searched for \\\"([^\\\"]*)\\\"$\")\t\t\t//Currently used by Order search & Passive Device Container \r\n\tpublic void i_searched_for_device(String field) throws Exception {\r\n\t\tSystem.out.println(field);\r\n\t\tenduser.fill_fields(field);\r\n\t\t//enduser.click_searchBtn();\t \r\n\t}",
"@Override\n public Collection searchByRestriction(String sessionId, RestrictionCondition... restricion) throws SessionException, RestrictionException, DatevalueException {\n String userId = user.getUserIdFromSessionId(sessionId);\n\n RestrictionLogicalCondition restLogCond = new RestrictionLogicalCondition(LogicalOperator.AND);\n for (RestrictionCondition r : restricion)\n restLogCond.add(r);\n\n return DatasetSearch.searchByRestriction(userId, restLogCond, manager);\n }",
"List<?> query(Object inputObject, Settings settings);",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic <T> List<T> getRecordList(String sqlID, Object object)\r\n\t\t\tthrows DataAccessException {\n\t\treturn (List<T>) queryForList(sqlID, object);\r\n\t}",
"Data<User> getUserSearch(String user, String fields);",
"public static ArrayList<Object[]> getData(String query){\n ArrayList<Object[]> resultList = new ArrayList<Object[]>();\n ResultSet result;\n ResultSetMetaData rsmd;\n connect();\n try{\n Statement stm = conn.createStatement();\n result = stm.executeQuery(query);\n rsmd = result.getMetaData();\n Object[] obj = new Object[rsmd.getColumnCount()];\n while(result.next()){\n for(int col = 1; col < rsmd.getColumnCount(); col++){\n obj[col-1] = result.getObject(col);\n }\n resultList.add(obj);\n }\n }catch(Exception e) {\n System.out.println(e.getMessage());\n }\n disconnect();\n return resultList;\n }",
"@RequestMapping(\"/find\")\n public String find(HttpSession session) {\n return \"work_list\";\n }",
"public Map<String, Object> getWgzdList(String field, String search) {\n return null;\n }",
"public List getAllSessionList(){\n \tList l=null;\n try {\n Criteria crit=new Criteria();\n l=LecturePeer.doSelect(crit);\n } catch(Exception e) { ServerLog.log(\"Exception in Lecture select \"+e.getMessage());}\n \treturn l;\n }",
"@Transactional\n public List<MsInjectionSample> listAllRawDataSamples(String sessionToken);",
"@SuppressWarnings(\"unused\")\n\t\tprivate String querySingleValue(String query, String field){\n\t\t\treturn field;\n\n\t\t/*\tJdbcTemplate jdt = new JdbcTemplate(getDataSource());\n\t \tList queryList;\n\t \tString result = \"\";\n\n\t \t queryList = jdt.queryForList(query);\n\t \t Iterator i = queryList.iterator();\n\t \t i = queryList.iterator();\n\t \t if (i.hasNext()) {\n\t\t\t\t ListOrderedMap data = (ListOrderedMap) i.next();\n\t\t\t\t if (data.get(field) == null){\n\t\t\t\t } else {\n\t\t\t\t\t result = data.get(field).toString();\n\t\t\t\t }\n\t \t }\n\t \t return result;*/\n\t\t}",
"public static Object listUsers(String sessionToken) throws IOException, SQLException {\n if (validateToken(sessionToken)) {\n String callingUsername = getUsernameFromToken(sessionToken);\n if (!hasPermission(callingUsername, EditUser)) { // Require edit users permission\n System.out.println(\"Insufficient permissions, no list of users was retrieved\");\n return InsufficientPermission; // 1. Valid token but insufficient permission\n } else {\n System.out.println(\"Session and permission requirements were valid, list of users was retrieved\");\n return DbUser.listUsers(); // 2. Success, list of users returned\n }\n } else {\n System.out.println(\"Session was not valid, no list of users was retrieved\");\n return InvalidToken; // 3. Invalid Token\n }\n }",
"public native Record[] findAll(String propertyName, float value) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var recordsJS = self.findAll(propertyName, value);\r\n return recordsJS == null || recordsJS === undefined ? null : @com.smartgwt.client.data.Record::convertToRecordArray(Lcom/google/gwt/core/client/JavaScriptObject;)(recordsJS);\r\n }-*/;",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic <T> List<T> getRecordList(String sqlID, Object object, int offset,\r\n\t\t\tint limit) throws DataAccessException {\n\t\treturn (List<T>) queryForList(sqlID, object, offset, limit);\r\n\t}",
"public java.util.List<DataEntry> findAll();",
"public static JSONArray searchPlayground(String searchField)\n\t\t\tthrows SocketTimeoutException, JSONException {\n\n\t\t// Get JSON array from the server\n\t\tJSONArray getResult = null;\n\t\tgetResult = new JSONArray(Communicator.sendPost(\"?m=Index&a=search\",\n\t\t\t\t\"&searchName=\" + searchField));\n\t\treturn getResult;\n\t}",
"public native Record[] findAll(String propertyName, boolean value) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var recordsJS = self.findAll(propertyName, value);\r\n return recordsJS == null || recordsJS === undefined ? null : @com.smartgwt.client.data.Record::convertToRecordArray(Lcom/google/gwt/core/client/JavaScriptObject;)(recordsJS);\r\n }-*/;",
"protected List<DataObject> getDataObjectsByDql(String dql) {\r\n\r\n\t\tList<DataObject> emcDataObjectList = new ArrayList<DataObject>();\r\n\r\n\t\ttry {\r\n\r\n\t\t\tQueryResult queryResult = this.getQueryResult(dql);\r\n\r\n\t\t\tDataPackage resultDp = queryResult.getDataPackage();\r\n\r\n\t\t\tList<DataObject> dataObjects = resultDp.getDataObjects();\r\n\r\n\t\t\tint numberOfObjects = dataObjects.size();\r\n\r\n\t\t\tlogger.info(INFO_NUMBER_OF_ITENS.concat(String\r\n\t\t\t\t\t.valueOf(numberOfObjects)));\r\n\r\n\t\t\tfor (DataObject dObj : dataObjects) {\r\n\r\n\t\t\t\temcDataObjectList.add(dObj);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (ServiceException e) {\r\n\r\n\t\t\tlogger.error(ERROR_SERVICO_EMC.concat(e.getLocalizedMessage()));\r\n\r\n\t\t}\r\n\r\n\t\treturn emcDataObjectList;\r\n\r\n\t}",
"public List<T> query(QueryObject qo) {\n\t\treturn null;\n\t}",
"public Session getSession() { return session; }",
"@WebMethod()\n public Collection<String> listDatasetTypes(String sessionId) throws SessionException {\n //for user bean get userId\n String userId = user.getUserIdFromSessionId(sessionId);\n \n return DatasetSearch.listDatasetTypes(manager);\n }",
"public List getRecordListByKeyandValue(String keyName, Object keyValue) {\r\n DomainObject returnValue = null;\r\n Session session = getSession();\r\n List<DomainObject> lst = null;\r\n try {\r\n Criteria query = session.createCriteria(getPersistentClass()).add(Restrictions.eq(keyName, keyValue));\r\n lst = query.list();\r\n if (lst != null && lst.size() > 0) {\r\n return lst;\r\n }\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getRecordByKeyandValue Method:\" + e, e);\r\n } finally {\r\n if (session != null && session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n return lst;\r\n }",
"public Session getSession();",
"@Override\r\n\tpublic List<Object> findReturnObject(String hql, Object[] param) {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\tif (param != null && param.length > 0) {\r\n\t\t\tfor (int i = 0; i < param.length; i++) {\r\n\t\t\t\tq.setParameter(i, param[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn q.list();\r\n\t}",
"public Map<String, String> listUserData(String login, int limit, int offset);",
"List<String> getListInput(String fieldName);",
"public Session getSessionbyCookie(int cookie);",
"public static List getAlumniByDept(String department)\n { \n session=SessionFact.getSessionFact().openSession();\n List li=session.createQuery(\"from Alumni_data where department=:department\").setString(\"department\", department).list();\n session.close();\n return li;\n }",
"public String getField(String field) throws RemoteException;",
"@GetMapping\n public List<Session> list() {\n return sessionRepository.findAll();\n }",
"public List search(Doctor o) {\n\t\treturn dao.search(o);\n\t}",
"@Transactional(readOnly = true)\n public List<Patient> search(String query) {\n log.debug(\"Request to search Patients for query {}\", query);\n List<Patient> result = StreamSupport\n .stream(patientSearchRepository.search(wrapperQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n return result;\n }",
"List<Flight> findFlightByName(String name) throws DataAccessException;",
"@Override\r\n\tpublic List<T> find(String hql) throws Exception {\n\t\treturn this.getcurrentSession().createQuery(hql).list();\r\n\t}",
"List<StockList> fetch(String title);",
"protected Session getSession() { return session; }",
"public <T> List queryObjects(T entity) throws DataAccessException {\n\t\treturn (List<?>) mapper.queryDeptByProperty((Map<String, Object>) entity);\n\t}",
"public List<?> queryByNative(String jql){\r\n\t\treturn queryByNative(jql, new Object[0]);\r\n\t}",
"@Override\n public List<ArrayList<String>> queryAdminPersonalData(Token token) {\n\n List<ArrayList<Object>> objList = null;\n\n try {\n objList = queryAdminPersonalData2(token);\n } catch (SCRSException e) {\n System.out.println(e.getMessage());\n return null;\n }\n\n List<ArrayList<String>> result = UtilMethods.convertObjListToStringList(objList);\n\n return result;\n\n }",
"public Vector<Object> getFieldContents(String fieldname) {\r\n\t\treturn getFieldContents(fieldname, false);\r\n\t}",
"public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}",
"public final List queryField(String statementName, String fieldName,\n\t\t\tObject[] args) throws SQLException {\n\t\tSQLStatement ss = this.getStatement(statementName);\n\t\tfinal Connection con = getConnection();\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tstmt = ss.prepareStatement(con, args);\n\t\t\treturn resultSet2List(stmt.executeQuery(), fieldName);\n\t\t} finally {\n\t\t\tif (stmt != null)\n\t\t\t\tstmt.close();\n\t\t\tif (con != null)\n\t\t\t\tcon.close();\n\t\t}\n\t}",
"public List<Document> SearchField(String queryStr ,List<String> fieldName)\r\n\t{\r\n\t\treturn null;\r\n\t}",
"@GET\n public List<Session> getAllSessions() {\n log.debug(\"REST request to get all Sessions\");\n List<Session> sessions = sessionRepository.findAll();\n return sessions;\n }",
"public List<String> getRecordings(){\n findRecordings();\n return _records;\n }",
"public native Record[] findAll(String propertyName, int value) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var recordsJS = self.findAll(propertyName, value);\r\n return recordsJS == null || recordsJS === undefined ? null : @com.smartgwt.client.data.Record::convertToRecordArray(Lcom/google/gwt/core/client/JavaScriptObject;)(recordsJS);\r\n }-*/;",
"public String getSession() {\n return this.session;\n }",
"List<E> list(String field, String contains);",
"public List search() {\n\t\t\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tSessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();\r\n\t\t\tSession session= sessionFactory.openSession();\r\n\t\t\t\r\n\t\t\tQuery q = session.createQuery(\"from EventMasterVO\");\r\n\t\t\t\r\n\t\t\tList ls = new ArrayList();\r\n\t\t\t\r\n\t\t\tls = q.list();\r\n\t\t\t\r\n\t\t\treturn ls;\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public List<SsoAuthDO> queryByAppId(Integer appId) throws DataAccessException;",
"@Override\r\n\tpublic List<T> find(String hql, Object[] param) {\n\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\tif (param != null && param.length > 0) {\r\n\t\t\tfor (int i = 0; i < param.length; i++) {\r\n\t\t\t\tq.setParameter(i, param[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn q.list();\r\n\t}",
"@Override\n\tpublic List<T> find(String hql) {\n\t\treturn hibernateTemplate.find(hql);\n\t}",
"private void read(Session session) {\n\t\t\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Aluno> AlunoList = session.createQuery(\"FROM Aluno\").getResultList();\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Reading Aluno records...\");\n\t\tSystem.out.printf(\"%-30.30s %-30.30s%n\", \"Model\", \"Price\");\n\t\tfor (Aluno al : AlunoList) {\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.printf(\"%-30.30s %-30.30s%n\", al.getNome(), al.getRa());\n\t\t}\n\t}",
"@Override\r\n\tpublic List<PedidoDet> getByCriteria(String scriteria) {\n\t\treturn null;\r\n\t}"
] | [
"0.58541054",
"0.58134514",
"0.57182056",
"0.5445007",
"0.53934795",
"0.5334894",
"0.53262603",
"0.53181297",
"0.5236999",
"0.52123815",
"0.5195756",
"0.51613486",
"0.50874084",
"0.50712085",
"0.5044577",
"0.5042062",
"0.502518",
"0.5008124",
"0.49983832",
"0.497348",
"0.49595815",
"0.49200186",
"0.49076918",
"0.4882145",
"0.48668236",
"0.4847876",
"0.48476484",
"0.48392665",
"0.4833601",
"0.48314196",
"0.4822912",
"0.479759",
"0.4779606",
"0.47758734",
"0.47686917",
"0.47662747",
"0.47485688",
"0.47456753",
"0.47434604",
"0.47286412",
"0.4726325",
"0.47093704",
"0.47066215",
"0.4698186",
"0.46829405",
"0.4670244",
"0.46684852",
"0.46641508",
"0.4658937",
"0.46417886",
"0.46400353",
"0.4636228",
"0.46277925",
"0.46208805",
"0.46091443",
"0.45849666",
"0.4584517",
"0.45716187",
"0.45707265",
"0.45579574",
"0.45531803",
"0.45504722",
"0.45425868",
"0.45412403",
"0.45362318",
"0.45326424",
"0.45323536",
"0.45313862",
"0.45312554",
"0.4517832",
"0.4514015",
"0.4508376",
"0.4506249",
"0.4505528",
"0.4505263",
"0.45012218",
"0.4500755",
"0.44959867",
"0.44823697",
"0.44796884",
"0.44752935",
"0.44700897",
"0.44678915",
"0.4466744",
"0.4460275",
"0.4460152",
"0.44585344",
"0.44543427",
"0.44462445",
"0.4443682",
"0.4443524",
"0.44434017",
"0.44419673",
"0.443708",
"0.44369727",
"0.44252852",
"0.44249818",
"0.44234386",
"0.4420489",
"0.44198716"
] | 0.5352553 | 5 |
Retrieves a list of data object for the specified emailAddress field. To use a wildcard search, use a % in the query. | public java.util.List findStudentByEmailAddress(java.lang.String emailAddress) throws GenericBusinessException {
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
String queryString = "from " + Student.class.getName() + " e where e.emailAddress like :emailAddress ";
// Add a an order by on all primary keys to assure reproducable results.
String orderByPart = "";
orderByPart += " order by e.studentId";
queryString += orderByPart;
Query query = hibernateTemplate.createQuery(queryString);
hibernateTemplate.setQueryParameter(query, "emailAddress", emailAddress);
List list = hibernateTemplate.list(query);
return list;
} finally {
log.debug("finished findStudentByEmailAddress(java.lang.String emailAddress)");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic List getByEmail(String email) throws DAOException {\n\t\treturn null;\n\t}",
"List<Email> selectByExample(EmailCriteria example);",
"@Path(\"lister/{email}\")\r\n @GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public Listings getEmail(@PathParam(\"email\") String email) throws JAXBException, IOException {\r\n appR applicationR = getApp();\r\n Listings listings = applicationR.getListings();\r\n Listings ret = new Listings();\r\n Boolean s = false;\r\n\r\n for (Listing listing : listings.getList()) {\r\n if (listing.getEmail().equals(email)) {\r\n ret.addListing(listing);\r\n }\r\n }\r\n return ret;\r\n }",
"public List<BarrioCovid> readAll(String email);",
"@GetMapping(\"/getAnUserAddresses/{emailId}\") \n\tpublic ResponseEntity<List<Address>> getAnUserAddresses(@PathVariable String emailId) throws ResourceNotFoundException\n\t{\n\t\tlogger.trace(\"Requested to get all the addresses of a user\");\n\t\tList<Address> addressList= service.getAnUserAdresses(emailId);\n\t\tlogger.trace(\"Completed request to get all the addresses of a user\");\n\t\treturn ResponseEntity.ok(addressList);\n\t}",
"Coach findByEmail(String email);",
"public Customer getCustomerByEmail(String email) throws Exception\r\n { \r\n\t //String searchClause = email.toLowerCase();\r\n\t //String qryString = \"from City where LOWER(cityName) LIKE :param\";\r\n\t String qryString = \"from Customer where LOWER(email) = :param\";\r\n\t \t \r\n\t EntityManager em = emf.createEntityManager();\r\n\t Query qry = em.createQuery(qryString);\r\n\t qry.setParameter(\"param\", email.toLowerCase());//binding parameter to mitigate SQL Injection attacks\r\n\t \r\n\t /*List<City> citiestList = qry.setMaxResults(maxRowsToDisplay)\r\n\t\t\t \t\t\t\t\t\t\t\t.getResultList();*/\r\n\t \r\n\t logger.info(\"-------------qry.toString() \"+qry.toString());\r\n\t \r\n\t List<Customer> customerList = qry.getResultList();\r\n\t \r\n\t if(customerList == null || customerList.size() == 0)\r\n\t {\r\n\t\t return null;\r\n\t }\t \t \r\n\t \r\n\t return customerList.get(0);\r\n }",
"public User readByEmail(String email) throws DaoException;",
"List<ClientName> findNameByEmail(String email);",
"@Override\n\tpublic UserVO searchEmail(String email) throws Exception {\n\t\treturn dao.searchEmail(email);\n\t}",
"public Employee getEmployeeByEmail(String email) {\n\t\ttry {\r\n\t\t\tEmployee f = temp.queryForObject(\"Select * from fm_employees where EMAIL =?\",new EmployeeMapper(),email);\r\n\t\t\treturn f;\r\n\t\t} catch (EmptyResultDataAccessException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public static UserEntity search(String email) {\n\t\tDatastoreService datastore = DatastoreServiceFactory\n\t\t\t\t.getDatastoreService();\n\n\t\tQuery gaeQuery = new Query(\"users\");\n\t\tPreparedQuery pq = datastore.prepare(gaeQuery);\n\t\t\n\t\tfor (Entity entity : pq.asIterable()) {\n\t\t\t \n\t\t\tif (entity.getProperty(\"email\").toString().equals(email)) {\n\t\t\t\tUserEntity returnedUser = new UserEntity(entity.getProperty(\n\t\t\t\t\t\t\"name\").toString(), entity.getProperty(\"email\")\n\t\t\t\t\t\t.toString());\n\t\t\t\treturnedUser.setId(entity.getKey().getId());\n\t\t\t\treturn returnedUser;\n\t\t\t }\nelse{\n\t\t\t\t\n }\n\t\t}\n\n\t\treturn null;\n\t}",
"@Override\n\tpublic Patient fetchByEmail(String email) throws DAOException\n\t{\n\t\tConnection con = DBUtil.getConnection();\n\t\tPatient patientObject = null;\n\t\ttry {\n\n\t\t\tString query = \"select * from patient where email=?\";\n\t\t\tPreparedStatement preparedStmt = con.prepareStatement(query);\n\t\t\tpreparedStmt.setString(1, email);\n\t\t\tResultSet rs = preparedStmt.executeQuery();\t\t\t\t\t\t\n\t\t\tif(rs.next())\n\t\t\t{\t\t\t\n\t\t\t\tpatientObject = new Patient(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4), rs.getString(5));\n\t\t\t}\n\t\t} catch (SQLException e) \n\t\t{\n\t\t\tthrow new DAOException(\"Sorry cannot reach now.\",e);\n\t\t}\n\t\tfinally \n\t\t{\n\t\t\tDBUtil.releaseResource(con);\n\t\t}\n\t\treturn patientObject;\n\t}",
"public List<AddressEntry> searchBy(SearchBy field, String value) {\n \n switch (field) {\n case NAME:\n return searchByName(value);\n case POSTAL_ADDRESS:\n return searchByPostalAddress(value);\n case EMAIL:\n return searchByEmail(value);\n case NOTE:\n return searchByNote(value);\n case PHONE_NUMBER:\n return searchByPhoneNumber(value);\n default:\n return null;\n }\n }",
"private EmailAddress getEmail(final String mail) {\r\n\t\treturn (EmailAddress) this.getSingleResult(this.em.createNativeQuery(\"select * from emailaddress WHERE eMailAddress ='\" + mail + \"'\",\r\n\t\t\t\tEmailAddress.class));\r\n\t}",
"java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();",
"List<Member> findByEmail(String email);",
"@Override\n\tpublic List<Candidate> findByEmailAddress(String emailAddress)\n\t\tthrows SystemException {\n\t\treturn findByEmailAddress(emailAddress, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}",
"@RequestMapping(method = RequestMethod.GET, path = \"/patients/{userEmail}\")\n @Secured({\"ROLE_DOCTOR\"})\n @ResponseStatus(HttpStatus.OK)\n public List<Result> fetchPatientResults(\n @PathVariable(value = \"userEmail\") String userEmail) {\n log.info(\"Fetching results of patient with Id [{}]\", userEmail);\n return resultService.fetchResultsWithUserEmail(userEmail);\n }",
"public String findEmail(String email) {\n\t\tString sql=\"select email from SCOTT.USERS where USERNAME='\"+email+\"'\";\n\t\t\n\t\t Dbobj dj=new Dbobj();\n\t\t JdbcUtils jdbcu=new JdbcUtils();\n\t\t dj=jdbcu.executeQuery(sql);\n\t\t ResultSet rs=dj.getRs(); \n\t\t System.out.println(\"\"+sql);\t\n\t\t String t=\"\";\n\t\t try {\n\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tt=rs.getString(1);\n\t\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t \n\t\t\n\t\treturn t;\n\t\t\n\t}",
"EmployeeDTO findByEmail(String email);",
"User getUserByEmail(final String email);",
"List<Post> getPostForUser(String email) throws Exception;",
"CustomerDto findByEmailAddress(CustomerEmailDto customerEmailDto);",
"public Customer retrieveCustomerByEmail(String email) throws CustomerNotFoundException;",
"User getUserByEmail(String email);",
"@Override\n public Client findClientByEmail(String email) {\n Client client = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession()) {\n CriteriaBuilder cb = session.getCriteriaBuilder();\n CriteriaQuery cr = cb.createQuery(Client.class);\n Root root = cr.from(Client.class);\n cr.select(root);\n Query query = session.createQuery(cr);\n List<Client> results = query.getResultList();\n\n\n\n for (Client clt : results) {\n if (clt.getEmail().equals(email)) client = clt;\n }\n\n if (client==null) return null;\n\n\n\n /*\n Add accounts to List<Accounts> for client with specific parameters\n */\n String hql = \"FROM Account WHERE client_id = :paramId\";\n Query queryAccounts = session.createQuery(hql);\n queryAccounts.setParameter(\"paramId\", client.getId());\n List<Account> accounts = ((org.hibernate.query.Query) queryAccounts).list();\n client.setAccounts(accounts);\n }\n return client;\n }",
"public Data getDataContaining(Address addr);",
"public Utente retriveByEmail(String email) {\n\t\t\n\t\tTypedQuery<Utente> query = em.createNamedQuery(Utente.FIND_BY_Email, Utente.class);\n query.setParameter(\"email\", email); //parameters by name \n return query.getSingleResult();\n\t}",
"public User retrieveUserByEmail(String email) throws ApplicationException;",
"CustomerEntity findByEmail( final String email );",
"@Override\n public User getByEmail(String email) {\n List<JdbcUser> jdbcUserList = jdbcTemplate.query(\"SELECT * FROM users WHERE email=?\", ROW_MAPPER, email);\n JdbcUser jdbcUser = DataAccessUtils.singleResult(jdbcUserList);\n if (jdbcUser == null) {\n return null;\n }\n return convertToUser(jdbcUser);\n }",
"public ArrayList<AddressEntry> searchByEmail(String text) {\r\n ArrayList<AddressEntry> textMatches = new ArrayList<AddressEntry>();\r\n text = text.toLowerCase();\r\n for (AddressEntry current : contacts) {\r\n String currentname = current.getEmail().toLowerCase();\r\n if (currentname.contains(text)) {\r\n textMatches.add(current);\r\n }\r\n }\r\n return textMatches;\r\n }",
"public ArrayList<AgentObject> getAllAgentDetailsFromDelphiClientWithEmail(String email) {\n try {\n Map<String, ArrayList> accountServiceMap = AccountsService.getInstance().getAccountDetailsObjectFromEmail(httpclient, email);\n if ((accountServiceMap.get(\"code\")) != null) {\n log.info(accountServiceMap.get(\"message\"));\n } else {\n ArrayList<String> meshIDs = accountServiceMap.get(\"mesh_ids\");\n if (meshIDs.size() != 0) {\n ArrayList<AgentObject> agentObjectList = DelphiService.getInstance().getAgentObjectListFromMeshId(httpclient, meshIDs.get(0));\n// AgentObject agentObject = getEachAgentDetailsFromAgentObjectList(agentObjectList);\n\n }\n }\n } catch (IndexOutOfBoundsException iob) {\n iob.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return agentObjectList;\n }",
"public User getUserByEmail(String email);",
"public User getUserByEmail(String email);",
"List<Company> getCompaniesByEmailDomain(String domain);",
"Responsable getCredentialByEmail(String email) throws ServiceException;",
"public void searchByEmail() {\n System.out.println(\"enter email to get that person details:\");\n Scanner sc = new Scanner(System.in);\n String email = sc.nextLine();\n Iterator itr = list.iterator();\n while (itr.hasNext()) {\n Contact person = (Contact) itr.next();\n if (email.equals(person.getEmail())) {\n List streamList = list.stream().filter(n -> n.getEmail().contains(email)).collect(Collectors.toList());\n System.out.println(streamList);\n }\n }\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Mentor> getMentorsByEmail(String email) throws Exception {\r\n\t\tlogger.info(\"inside getMentorsByEmail()\");\r\n\t\tlogger.info(\"email ==>\" + email);\r\n\t\tList<Mentor> mentorList = null;\r\n\t\tString qry = \"Select Object(c) from mentor c where c.email LIKE :email\";\r\n\t\tQuery query = entityManager.createQuery(qry);\r\n\t\tquery.setParameter(\"email\", email);\r\n\t\ttry {\r\n\t\t\tmentorList = query.getResultList();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Error while reteriving classified\", e);\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\tlogger.info(\"No of mentor for the \" + email + \" is ==>\"\r\n\t\t\t\t+ mentorList.size());\r\n\t\treturn mentorList;\r\n\t}",
"Customer findByEmail(String email);",
"public Users findBYEmailId(String email) {\r\n Query query = em.createNamedQuery(\"findUserByEmailId\");\r\n query.setParameter(\"uemail\", email);\r\n if (!query.getResultList().isEmpty()) {\r\n Users registeredUser = (Users) query.getSingleResult();\r\n return registeredUser;\r\n }\r\n return null;\r\n }",
"public AppUser findByEmail(String email);",
"Collection lookupTransactions(String email);",
"public User getUser(String email) {\n\n Query query = new Query(\"User\")\n .setFilter(new Query.FilterPredicate(\"email\", FilterOperator.EQUAL, email));\n PreparedQuery results = datastore.prepare(query);\n Entity userEntity = results.asSingleEntity();\n if(userEntity == null) {return null; }\n String aboutMe = (String) userEntity.getProperty(\"aboutMe\");\n //ArrayList<String> advisees = new ArrayList<String>(Arrays.asList(((String) userEntity.getProperty(\"advisees\")).split(\" \")));\n //ArrayList<String> advisors = new ArrayList<String>(Arrays.asList(((String) userEntity.getProperty(\"advisors\")).split(\" \")));\n String fn = (String) userEntity.getProperty(\"firstName\");\n String ln = (String) userEntity.getProperty(\"lastName\");\n User user = new User(email, fn, ln, aboutMe);\n return user;\n\n }",
"@GetMapping(path = \"email/{email}\")\n public ResponseEntity<List<Contractor>> findAllByEmail(@PathVariable String email){\n logger.debug(\"findAllByEmail(\" + email + \")\");\n\t\tAssert.notNull(email, \"Expects a valid email\");\n\n List<Contractor> contractors = contractorService.findAllByEmail(email);\n if(contractors == null || contractors.size() < 1) throw new ResourceNotFoundException(\"Unable to find any contractors matching criteria\");\n return new ResponseEntity(getDTOs(contractors), HttpStatus.ACCEPTED);\n }",
"public List<com.ims.dataAccess.tables.pojos.User> fetchRangeOfEmail(String lowerInclusive, String upperInclusive) {\n return fetchRange(User.USER.EMAIL, lowerInclusive, upperInclusive);\n }",
"private ArrayList<String> getContactsEmails() {\n //Credits go to \n //http://stackoverflow.com/questions/10117049/get-only-email-address-from-contact-list-android\n ArrayList<String> emlRecs = new ArrayList<String>();\n HashSet<String> emlRecsHS = new HashSet<String>();\n Context context = getBaseContext();\n ContentResolver cr = context.getContentResolver();\n String[] projection = new String[] { \n ContactsContract.RawContacts._ID, \n ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.PHOTO_ID,\n ContactsContract.CommonDataKinds.Email.DATA, \n ContactsContract.CommonDataKinds.Photo.CONTACT_ID };\n String order = \"CASE WHEN \" \n + ContactsContract.Contacts.DISPLAY_NAME \n + \" NOT LIKE '%@%' THEN 1 ELSE 2 END, \" \n + ContactsContract.Contacts.DISPLAY_NAME \n + \", \" \n + ContactsContract.CommonDataKinds.Email.DATA\n + \" COLLATE NOCASE\";\n String filter = ContactsContract.CommonDataKinds.Email.DATA + \" NOT LIKE ''\";\n Cursor cursor = cr.query(ContactsContract.CommonDataKinds.Email.CONTENT_URI, projection, filter, null, order);\n if (cursor.moveToFirst()) {\n do {\n // names comes in hand sometimes\n //String name = cursor.getString(1);\n String emaillAddress = cursor.getString(EMAIL_INDEX);\n\n // keep unique only\n if (emlRecsHS.add(emaillAddress.toLowerCase(Locale.US))) {\n emlRecs.add(emaillAddress.toLowerCase(Locale.US));\n }\n } while (cursor.moveToNext());\n }\n cursor.close();\n Collections.sort(emlRecs.subList(0, emlRecs.size()));\n return emlRecs;\n }",
"@PostMapping(\"/findByEmail\")\n public Account findAccountByEmail(@RequestBody String email) {\n return getService().findByEmail(email);\n }",
"public void setEmailAddress(String emailAddress) {\n this.emailAddress = emailAddress;\n }",
"EmailAddress fetchEmailAddress(AccessToken token);",
"@Override\r\n\tpublic List<AsxDataVO> findByName(String name) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn mongoTemplate.find(new Query(Criteria.where(\"email\").is(name)), AsxDataVO.class);\r\n\t}",
"ArrayList<Resume> getAllAspirantResume(String email)\n throws IllegalArgumentException, ServiceException;",
"Account findByEmail(String email);",
"public void setEmailAddress(String emailAddress) {\n this.emailAddress = emailAddress;\n }",
"public void setEmailAddress(String emailAddress) {\n this.emailAddress = emailAddress;\n }",
"public void setEmailAddress(String emailAddress) {\n this.emailAddress = emailAddress;\n }",
"public void setEmailAddress(String emailAddress) {\n this.emailAddress = emailAddress;\n }",
"User findByEmail(String email);",
"User findByEmail(String email);",
"User findByEmail(String email);",
"User findByEmail(String email);",
"User findByEmail(String email);",
"User findByEmail(String email);",
"@GetMapping(\"/{email:.+}\")\n\t@CrossOrigin(origins = \"http://localhost:3000\")\n\tpublic List<Project> getProjectsByEmail(@PathVariable(\"email\") String email) {\n\t\tStakeholder user = userService.findStakeholderByEmail(email);\n\t\tList<Project> projects = userService.getStakeholderProjects(user);\n\t\treturn projects;\n\t}",
"public List<Address> findByProperty(String propertyName, Object value);",
"public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchRangeOfEmailId(ULong lowerInclusive, ULong upperInclusive) {\n return fetchRange(UserEmail.USER_EMAIL.EMAIL_ID, lowerInclusive, upperInclusive);\n }",
"@Override\r\n\tpublic AccountDTO getAccount(String email) {\n\t\treturn accountDao.getAccount(email);\r\n\t}",
"public java.lang.String getEmailAddress();",
"public User findUserByEmail(final String email);",
"public User findByEmail(String email);",
"public User findByEmail(String email);",
"public User findByEmail(String email);",
"public AddressEntry setEmailAddress(String emailAddress){\r\n\t\tthis.emailAddress=emailAddress;\r\n\t\treturn this;\r\n\t}",
"public void setEmailAddress(String emailAddress) {\r\n\t\tthis.emailAddress = emailAddress;\r\n\t}",
"@Query(\"select u from User u where u.email = :email\")\n User getUserByEmail(@Param(\"email\") String email);",
"@Override\n\tpublic Employee readEmployeeByEmail(String email) {\n\t\treturn null;\n\t}",
"public boolean findEmail(String email);",
"public Student findByEmail(String email);",
"@RequestMapping( value = CONTEXT_URL + \"/email/{email:.+}\",\n method = RequestMethod.GET,\n produces = {MediaType.APPLICATION_JSON_VALUE} )\n public CustomerDTO getCustomerByEmail( @PathVariable String email )\n throws CustomerNotFoundException\n {\n final String methodName = \"getCustomerByEmail\";\n logMethodBegin( methodName, email );\n CustomerDTO customerDTO = customerEntityService.getCustomerByEmail( email );\n logMethodEnd( methodName, customerDTO );\n return customerDTO;\n }",
"public List<ReservationModel> getReservationListByEmail(String email, Integer hospitalId) {\n\t\tList<ReservationModel> result = new ArrayList<ReservationModel>();\n\t\tList<Reservation> resList = new ArrayList<>();\n\t\tif (MssContextHolder.isKcck()) {\n\t\t\tresList = reservationRepository.findKcckCompletedReservationListByEmail(email, hospitalId);\n\t\t} else {\n\t\t\tresList = reservationRepository.findCompletedReservationListByEmail(email, hospitalId);\n\t\t}\n\t\tif (resList != null && resList.size() > 0) {\n\t\t\tfor (Reservation res : resList) {\n\t\t\t\tReservationModel resModel = new ReservationModel();\n\t\t\t\tresModel = res.toModel(mapper, \"exclude-departmentAnddoctor\");\n\t\t\t\tresModel.setDepartmentCode(res.getDepartCode());\n\t\t\t\tresult.add(resModel);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public List<ReconhecimentoGPDTO> getAll(String email) throws SQLException{\n List<ReconhecimentoGP> reconhecimentosGP = repositorioReconhecimentoGP.getAll(email);\n List<ReconhecimentoGPDTO> reconhecimentosGPDTO = new ArrayList<>();\n\n for(ReconhecimentoGP reconhecimentoGP : reconhecimentosGP) {\n reconhecimentosGPDTO.add((ReconhecimentoGPDTO) reconhecimentoGP.toDTO());\n }\n return reconhecimentosGPDTO;\n }",
"public Member selectByEmail(String email) {\n\t\t\n\t\ttry {\n\t\tMember member = jdbcTemplate.queryForObject(\"select * from member where email = ?\", new RowMapper<Member>() {\n\n\t\t\t@Override\n\t\t\tpublic Member mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\tMember member = new Member(rs.getString(\"EMAIL\"), rs.getString(\"PASSWORD\"), rs.getString(\"NAME\"), rs.getTimestamp(\"REGDATE\").toLocalDateTime());\n\t\t\t\t\n\t\t\t\tmember.setId(rs.getString(\"ID\"));\n\t\t\t\treturn member;\n\t\t\t}\n\t\t\t\n\t\t}, email);\n\t\t\n\t\treturn member;\n\t\t\n\t\t}catch(EmptyResultDataAccessException e) {\n\t\t\treturn null;\n\t\t}\t \n\t}",
"public void setEmailAddress(String email_address){\n this.email_address = email_address;\n }",
"public void setEmailAddress(String email) {\n this.email = email;\n }",
"@Override\n public List getAllProductByEmail(String email) {\n \n List sharingProducts = new ArrayList();\n SharingProduct sharingProduct = null;\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n ResultSet result = null;\n \n try {\n connection = MySQLDAOFactory.createConnection();\n preparedStatement = connection.prepareStatement(Read_All_PIDs_By_Email_Query);\n preparedStatement.setString(1, email);\n preparedStatement.execute();\n result = preparedStatement.getResultSet();\n \n while (result.next()) {\n sharingProduct = new SharingProduct(result.getString(1), result.getInt(2));\n sharingProducts.add(sharingProduct);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n try {\n result.close();\n } catch (Exception rse) {\n rse.printStackTrace();\n }\n try {\n preparedStatement.close();\n } catch (Exception sse) {\n sse.printStackTrace();\n }\n try {\n connection.close();\n } catch (Exception cse) {\n cse.printStackTrace();\n }\n }\n \n return sharingProducts;\n \n }",
"private static Cliente getCliente(String email) throws Exception {\r\n Cliente cliente = null;\r\n ArrayList<Cliente> lista = arqClientes.toList();\r\n for (Cliente c : lista) {\r\n if (c.email.equals(email)) {\r\n cliente = c;\r\n break;\r\n }\r\n }\r\n return cliente;\r\n }",
"public User getUser(String emailId);",
"public UserTO getByEmail(String email) {\n\t\treturn getDao().getByEmail(email);\n\t}",
"public Producer getProducerByEmailFetchingAddressFetchingProfile(String producerEmail);",
"@Override\n public final CustomerUser getCustomerUserByEmail(final String email) {\n\treturn (CustomerUser) getEntityManager()\t\n\t\t.createQuery(\"select customer from \"\n\t\t\t+ CustomerUser.class.getName()\n\t\t\t+ \" as customer where customer.email =:email\")\n\t\t.setParameter(\"email\", email)\n\t\t.getSingleResult();\n }",
"public User get(String emailID);",
"List<mailIdentify> selectByExample(mailIdentifyExample example);",
"UserEntity findByEmail(String email);",
"public abstract String getEmail( String [ ] strLineDataArray );",
"User findUserByEmail(String email) throws Exception;",
"public JSONObject findCustomer(String email) {\n\t\tWebClient webClient = getWebClient();\n\n\t\tString response = webClient.accept(MediaType.APPLICATION_JSON)\n\t\t\t\t.path(\"get-by-filter\").query(\"email\", email).get(String.class);\n\t\ttry {\n\t\t\tJSONObject jsonObject = new JSONObject(response);\n\t\t\tjsonObject.getJSONObject(\"FindCustomerResponse\").getJSONObject(\n\t\t\t\t\t\"customerList\");\n\t\t\treturn jsonObject;\n\t\t} catch (JSONException e) {\n\t\t\tlogger.error(\"Error parsing JSONObject: \" + e.getMessage(), e);\n\t\t\tthrow new TechnicalException(e);\n\t\t}\n\t}",
"User find(String email);",
"public static Customer getCustomer(String _email) throws SQLException{\n ResultSet rs = ConnectionManager.selectAllColumns(\"Tbl_Customer_GroupNo\", \"Email= \"+_email);\n if(rs.next()){\n Customer cus = new Customer(rs.getInt(\"CustomerId\"), rs.getString(\"FirstName\"), rs.getString(\"LastName\"), rs.getString(\"Address\"), rs.getString(\"Email\"), rs.getString(\"Phone\"));\n return cus;\n }else{\n return null;\n }\n }",
"public Call<BCExplorerResult<AddressData>> getAddressData(MinterAddress address) {\n return getAddressData(address.toString());\n }"
] | [
"0.64220124",
"0.6288473",
"0.61595494",
"0.61010027",
"0.5965217",
"0.5958336",
"0.58984596",
"0.5896319",
"0.5886043",
"0.58815134",
"0.58416307",
"0.5838915",
"0.583614",
"0.5820148",
"0.58154446",
"0.5776404",
"0.57763094",
"0.5760386",
"0.5736086",
"0.57016194",
"0.56960374",
"0.5680507",
"0.5676891",
"0.5660711",
"0.5651718",
"0.56498784",
"0.56432366",
"0.56310445",
"0.56217325",
"0.5612694",
"0.5608424",
"0.5598043",
"0.5582429",
"0.5582153",
"0.5579448",
"0.5579448",
"0.5571395",
"0.55695266",
"0.55541235",
"0.55474794",
"0.5546919",
"0.55350804",
"0.5516429",
"0.55086976",
"0.55008847",
"0.54797316",
"0.5473891",
"0.545786",
"0.5448486",
"0.5448378",
"0.54483455",
"0.5429477",
"0.5428473",
"0.5423965",
"0.5417882",
"0.5417882",
"0.5417882",
"0.5417882",
"0.54160935",
"0.54160935",
"0.54160935",
"0.54160935",
"0.54160935",
"0.54160935",
"0.5410454",
"0.5409418",
"0.5406221",
"0.5402344",
"0.5389933",
"0.5389687",
"0.53891116",
"0.53891116",
"0.53891116",
"0.5388332",
"0.5352936",
"0.53351694",
"0.53325",
"0.53208506",
"0.531852",
"0.5317846",
"0.5312502",
"0.53119946",
"0.53092754",
"0.53014624",
"0.5300616",
"0.5287535",
"0.52769727",
"0.52768165",
"0.52642953",
"0.52618927",
"0.52618575",
"0.5250674",
"0.5249259",
"0.52487934",
"0.52452147",
"0.5244646",
"0.52424055",
"0.5227248",
"0.5223012",
"0.521878"
] | 0.6745593 | 0 |
Retrieves a list of data object for the specified contactNo field. To use a wildcard search, use a % in the query. | public java.util.List findStudentByContactNo(java.lang.String contactNo) throws GenericBusinessException {
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
String queryString = "from " + Student.class.getName() + " e where e.contactNo like :contactNo ";
// Add a an order by on all primary keys to assure reproducable results.
String orderByPart = "";
orderByPart += " order by e.studentId";
queryString += orderByPart;
Query query = hibernateTemplate.createQuery(queryString);
hibernateTemplate.setQueryParameter(query, "contactNo", contactNo);
List list = hibernateTemplate.list(query);
return list;
} finally {
log.debug("finished findStudentByContactNo(java.lang.String contactNo)");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setContactNo(java.lang.String contactNo) {\r\n this.contactNo = contactNo;\r\n }",
"public Contact findContactByNumber(String number){\n SQLiteDatabase db = this.getReadableDatabase();\n\n // prevent for prefix number\n String number2 = number;\n String number3 = \"+\" + number;\n String number4 = number;\n if(number.length()>=3){\n number4 = \"0\" + number.substring(2);\n if(number.contains(\"+\")){\n number2 = \"0\" + number.substring(3);\n }\n }\n\n Log.d(\"db\", number2);\n\n Cursor cur;\n cur = db.rawQuery(\n \"SELECT DISTINCT c.* FROM \"\n + TABLE_CONTACTS + \" c,\"\n + TABLE_NUMBERS + \" n \"\n + \"WHERE c.\" + _ID + \" = n.\" + C_ID\n + \" AND ( n.\" + PHONE_NUMBER + \" = ? OR\"\n +\" n.\" + PHONE_NUMBER + \" = ? OR\"\n +\" n.\" + PHONE_NUMBER + \" = ? OR\"\n +\" n.\" + PHONE_NUMBER + \" = ? )\", new String[]{number, number2, number3, number4 });\n List<Contact> ctxs = getContactObjct(db, cur, number);\n Contact c ;\n if(ctxs.size()>0){\n c = ctxs.get(0);\n }else{\n c = new Contact(-1, null, number);\n }\n\n db.close();\n return c;\n }",
"public void prepareContactData(long num) {\n\n //ASSIGN SELECTION VARIABLE WITH NUMBER FROM NUMPAD\n String[] selectionArgs = {String.valueOf(num) + \"%\"};\n\n List<Contact> contactList = new ArrayList<>();\n\n cAdapter = new ContactAdapter(contactList);\n recyclerView.setAdapter(cAdapter);\n\n //DISPLAY ALL\n if(num == 0) {\n cursor = database.query(DBContract.Contact.TABLE_NAME, projection, null, null, null, null, null, null);\n }\n //DISPLAY ONLY SELECTED DATA\n else {\n cursor = database.query(DBContract.Contact.TABLE_NAME, projection, selection, selectionArgs, null, null, null, null);\n }\n\n String name, phone, id;\n\n while(cursor.moveToNext()) {\n int index;\n\n index = cursor.getColumnIndexOrThrow(\"name\");\n name = cursor.getString(index);\n\n index = cursor.getColumnIndexOrThrow(\"phone\");\n phone = cursor.getString(index);\n\n index = cursor.getColumnIndexOrThrow(\"uid\");\n id = cursor.getString(index);\n\n contactList.add(new Contact(name, Long.valueOf(phone)));\n\n Log.d(\"TAG\", \"Name : \" + name);\n Log.d(\"TAG\", \"Phone : \" + phone);\n Log.d(\"TAG\", \"ID : \" + id);\n }\n\n //REFRESH ADAPTER LIST\n cAdapter.notifyDataSetChanged();\n }",
"com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);",
"com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);",
"com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);",
"com.ubtrobot.phone.PhoneCall.Contact getContactList(int index);",
"@GetMapping(value = \"/customers/{phoneNo}/calldetails\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic List<CallDetailsDTO> getCustomerCallDetails(@PathVariable long phoneNo) {\n\t\tlogger.info(\"Calldetails request for customer {}\", phoneNo);\n\t\treturn custService.getCustomerCallDetails(phoneNo);\n\t}",
"@RequestMapping(value = \"/customers/{phoneNo}/calldetails\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic List<CallDetailsDTO> getCustomerCallDetails(@PathVariable long phoneNo) {\n\n\t\tlogger.info(\"Calldetails request for customer {}\", phoneNo);\n\n\t\treturn callDetailsService.getCustomerCallDetails(phoneNo);\n\t}",
"public java.lang.String getContactNo() {\r\n return contactNo;\r\n }",
"private ArrayList<Contact> getContactList(Context context) {\n String[] selectCol = new String[] { ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.HAS_PHONE_NUMBER, ContactsContract.Contacts._ID };\n\n final int COL_NAME = 0;\n final int COL_HAS_PHONE = 1;\n final int COL_ID = 2;\n\n // the selected cols for phones of a user\n String[] selPhoneCols = new String[] { ContactsContract.CommonDataKinds.Phone.NUMBER,\n ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, ContactsContract.CommonDataKinds.Phone.TYPE };\n\n final int COL_PHONE_NUMBER = 0;\n final int COL_PHONE_NAME = 1;\n final int COL_PHONE_TYPE = 2;\n\n String select = \"((\" + Contacts.DISPLAY_NAME + \" NOTNULL) AND (\" + Contacts.HAS_PHONE_NUMBER + \"=1) AND (\"\n + Contacts.DISPLAY_NAME + \" != '' ))\";\n\n ArrayList<Contact> list = new ArrayList<Contact>();\n Cursor cursor = context.getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, selectCol, select,\n null, ContactsContract.Contacts.DISPLAY_NAME + \" COLLATE LOCALIZED ASC\");\n if (cursor == null) {\n return list;\n }\n if (cursor.getCount() == 0) {\n return list;\n }\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n int contactId;\n contactId = cursor.getInt(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n if (cursor.getInt(COL_HAS_PHONE) > 0) {\n // the contact has numbers\n // 获得联系人的电话号码列表\n String displayName;\n displayName = cursor.getString(COL_NAME);\n Cursor phoneCursor = context.getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI, selPhoneCols,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"=\" + contactId, null, null);\n if (phoneCursor.moveToFirst()) {\n do {\n // 遍历所有的联系人下面所有的电话号码\n String phoneNumber = phoneCursor.getString(COL_PHONE_NUMBER);\n Contact contact = new Contact(0, displayName);\n contact.phoneNumber = phoneNumber;\n list.add(contact);\n } while (phoneCursor.moveToNext());\n \n phoneCursor.close();\n }\n }\n cursor.moveToNext();\n }\n \n cursor.close();\n\n return list;\n }",
"private void requestContactInformation() {\n CONTACTS = new ArrayList<>();\n\n Cursor c = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,\n null, null, null,\n ContactsContract.Contacts.DISPLAY_NAME_PRIMARY + \" asc\");\n\n while(c.moveToNext()) {\n HashMap<String, String> map = new HashMap<String, String>();\n String id = c.getString(c.getColumnIndex(ContactsContract.Contacts._ID));\n String name = c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY));\n\n Cursor phoneCursor = getContentResolver().query(\n ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \" = \" + id,\n null, null\n );\n\n if (phoneCursor.moveToFirst()) {\n String number = phoneCursor.getString(phoneCursor.getColumnIndex(\n ContactsContract.CommonDataKinds.Phone.NUMBER\n ));\n CONTACTS.add(Pair.create(name, number));\n }\n\n phoneCursor.close();\n }\n\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic Page<Contact> findContactPage(Map<String, Object> condMap, Map<String, String> sortMap, int pageNo,\r\n\t\t\tint pageSize, String moduleId) throws FzbDaoException {\n\t\tif(moduleId!=null&&\"\".equals(moduleId)) {\r\n\t\t\tcondMap.put(\"moduleId\", moduleId);\r\n\t\t}\r\n\t\treturn super.findByPage(condMap, sortMap, pageNo, pageSize, \"Contact\");\r\n\t}",
"private void getContactList() {\r\n\r\n\t\tgroupData.clear();\r\n\t\tchildData.clear();\r\n\t\tDataHelper dataHelper = new DataHelper(ContactsActivity.this);\r\n\t\tdataHelper.openDatabase();\r\n\t\tgroupData = dataHelper.queryZoneAndCorpInfo(childData);\r\n\t\tdataHelper.closeDatabase();\r\n\t\thandler.sendEmptyMessage(1);\r\n\r\n\t\tif (groupData == null || groupData.size() == 0) {\r\n\t\t\tDataTask task = new DataTask(ContactsActivity.this);\r\n\t\t\ttask.execute(Constants.KServerurl + \"GetAllOrgList\", \"\");\r\n\t\t}\r\n\t}",
"public List<Contact> getAllContactsByName(String searchByName);",
"public Contact getContactById(int contactId);",
"org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index);",
"public static String getContactNameByPhoneNumber(Context context, String number) {\n ContentResolver contentResolver = context.getContentResolver();\n Uri uri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, Uri.encode(number));\n String[] projection = new String[] { PhoneLookup.DISPLAY_NAME, PhoneLookup._ID };\n Cursor cursor = contentResolver.query(uri, projection, null, null, null);\n if (null == cursor) {\n return null;\n }\n String id = null;\n if (cursor.moveToFirst()) {\n id = cursor.getString(cursor.getColumnIndex(PhoneLookup._ID));\n }\n cursor.close();\n if (null == id) {\n return null;\n }\n\n // Build the Entity URI.\n Uri.Builder b = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_URI, id).buildUpon();\n b.appendPath(ContactsContract.Contacts.Entity.CONTENT_DIRECTORY);\n Uri contactUri = b.build();\n Log.d(TAG, \"XXX: contactUri is \" + contactUri);\n // Create the projection (SQL fields) and sort order.\n projection = new String[] {\n ContactsContract.Contacts.Entity.RAW_CONTACT_ID,\n ContactsContract.Contacts.Entity.DATA1,\n ContactsContract.Contacts.Entity.MIMETYPE\n };\n String sortOrder = ContactsContract.Contacts.Entity.RAW_CONTACT_ID + \" ASC\";\n cursor = context.getContentResolver().query(contactUri, projection, null, null, sortOrder);\n if (null == cursor) {\n return null;\n }\n String name = null;\n int mimeIdx = cursor.getColumnIndex(ContactsContract.Contacts.Entity.MIMETYPE);\n int dataIdx = cursor.getColumnIndex(ContactsContract.Contacts.Entity.DATA1);\n if (cursor.moveToFirst()) {\n do {\n String mime = cursor.getString(mimeIdx);\n if (mime.equalsIgnoreCase(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE)) {\n name = cursor.getString(dataIdx);\n break;\n }\n } while (cursor.moveToNext());\n }\n cursor.close();\n\n return name;\n }",
"public List<Person> readContactlist()\n {\n List<Person> personList=new ArrayList<Person>();\n\n ContentResolver resolver = getContentResolver();\n Cursor cursor = resolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n\n while (cursor.moveToNext()) {\n String id = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n String name = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));\n\n\n Cursor phoneCursor = resolver.query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"= ?\", new String[]{id}, null);\n\n\n while (phoneCursor.moveToNext()) {\n String phoneNumber = phoneCursor.getString(phoneCursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n\n personList.add(new Person(name, phoneNumber));\n }\n }\n return personList;\n }",
"java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();",
"java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();",
"java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();",
"java.util.List<com.ubtrobot.phone.PhoneCall.Contact>\n getContactListList();",
"public List<Contact> getAllContacts();",
"public List<ConsultVO> selectByCusNo(int customerNo) {\n\t\treturn sqlSessionTemplate.selectList(\"consult.ConsultDAO.select\", customerNo);\n\t}",
"private void getContactDataBefore() {\n int i = 0;\n List<String> list = new ArrayList<>();\n\n Cursor c1 = getContentResolver()\n .query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n\n if ((c1 != null) && c1.moveToFirst()) {\n\n // add contact id's to the mIDs list\n do {\n String id = c1.getString(c1.getColumnIndexOrThrow(ContactsContract.Contacts._ID));\n String name = c1.getString(c1.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME));\n\n // query all contact numbers corresponding to current id\n Cursor c2 = getContentResolver()\n .query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n new String[]{ContactsContract.CommonDataKinds.Phone.NUMBER},\n ContactsContract.CommonDataKinds.Phone.CONTACT_ID + \"=?\",\n new String[]{id}, null);\n\n if (c2 != null && c2.moveToFirst()) {\n // Log.d(\"DEBUG\",\"name =\" + name);\n list = new ArrayList<>();\n\n if (idsHash.containsKey(name)) {\n list = idsHash.get(name);\n } else {\n mIDs.add(id);\n mNames.add(name);\n mNumbers.add(c2.getString(c2\n .getColumnIndexOrThrow(ContactsContract.CommonDataKinds.Phone.NUMBER)));\n }\n\n list.add(id);\n idsHash.put(name, list);\n\n c2.close();\n } else {\n c2.close();\n }\n\n i++;\n } while (c1.moveToNext() && i < c1.getCount());\n\n c1.close();\n }\n }",
"private String populateContacts() {\n // fetch the additional information (currently phone numbers)\n Map<Integer, List<Pair<String, Integer>>> numberCache = getAdditionalInformation();\n\n Cursor cursor = mContentResolver.query(\n ContactsContract.Contacts.CONTENT_URI, QUERY_PROJECTION_CONTACT, null, null, QUERY_ORDERING_CONTACT);\n\n int idIndex = cursor.getColumnIndex(ContactsContract.Contacts._ID);\n int nameIndex = cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME_PRIMARY);\n int hasNumberIndex = cursor.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER);\n\n StringBuilder concatList = new StringBuilder();\n\n // First thing we need to do is sanitize the queryString and split into tokens. One\n // important purpose of doing this is to verify if we truly have tokens to apply to a\n // search process. If we are left with an empty query, then we can simply return the\n // entire contact list. The way the algorithm logic flows, there must be at least one\n // query token in the list, even if a blank placeholder.\n ArrayList<String> sanitizedQueryTokens = new ArrayList<String>();\n if (mQueryString != null) {\n // split up the query string into tokens, based on whitespace and asterisks\n String[] queryTokens = mQueryString.trim().split(\"[\\\\*\\\\s]+\");\n // get rid of any empty string references\n for (String currentString : queryTokens) {\n if (!currentString.equals(\"\")) {\n sanitizedQueryTokens.add(currentString);\n }\n }\n // if the ArrayList is empty, then we assume match everything\n if (sanitizedQueryTokens.size() == 0) {\n mQueryString = null;\n }\n }\n\n // Now perform the search. If the queryString is null, then the search reduces\n // to a dump of all contacts\n if ( mQueryString == null) {\n // The search algorithm is designed to work without search criteria (reduction to\n // entire list dumped). However we need at least one query token to enter the main\n // search loop.\n sanitizedQueryTokens.add(\"\");\n }\n\n StringBuilder concatListMatches = new StringBuilder();\n int numMatches = 0;\n\n while (cursor.moveToNext()) {\n String currentName = cursor.getString(nameIndex);\n\n if (currentName != null && !currentName.isEmpty()) {\n // If we are not actually performing a search, we still need to enter this loop\n // once (hence why we added a blank term above).\n for (String currentString : sanitizedQueryTokens) {\n // Add this contact to the list if we are either not performing a search\n // or if the current search criteria (token) matches\n if (mQueryString == null || currentName.toLowerCase().contains(\n currentString.toLowerCase())) {\n\n concatListMatches.append(currentName).append(\"\\n\");\n\n // If this contact has phone number(s), display them\n if (cursor.getInt(hasNumberIndex) > 0) {\n // grab the number(s) from the phat cache\n List<Pair<String, Integer>> phNums;\n if ((phNums = numberCache.get(cursor.getInt(idIndex))) != null) {\n // Pair<Phone Number, Type of Number>\n for (Pair<String, Integer> phNum : phNums) {\n concatListMatches.append(\"\\t\").append(phNum.first);\n switch(phNum.second) {\n case ContactsContract.CommonDataKinds.Phone.TYPE_HOME:\n concatListMatches.append(\" [HOME]\");\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE:\n concatListMatches.append(\" [MOBILE]\");\n break;\n case ContactsContract.CommonDataKinds.Phone.TYPE_WORK:\n concatListMatches.append(\" [WORK]\");\n break;\n }\n concatListMatches.append(\"\\n\");\n }\n } else {\n // This should not happen. Means that there is a contact in which a\n // phone number is associated but yet no such number actually can\n // be found in the DB\n concatList.append(\"\\t<Phone number referenced, but not found>\\n\");\n }\n }\n\n ++numMatches;\n break;\n }\n }\n }\n }\n concatList.append(numMatches).append(\" Contacts Found\\n\\n\").append(concatListMatches);\n\n Log.d(\"populate contact list \",\"str \"+concatList.toString());\n return concatList.toString();\n }",
"Page<Contact> getContacts(int index, int size);",
"private List<ModelContacts> getContact(){\n String contenue_ecran = tableView.getText().toString().trim();\n List<ModelContacts> list = new ArrayList<>();\n if (!contenue_ecran.equals(\"\")) {\n Cursor cursor = this.getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n null, null, null,\n ContactsContract.Contacts.DISPLAY_NAME + \" ASC\");\n assert cursor != null;\n cursor.moveToFirst();\n while (cursor.moveToNext()) {\n String phoneNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n String name = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME));\n String image = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.PHOTO_ID));\n String formatPhoneNumber = \"<font color='#42A5F5'><b>\" + contenue_ecran + \"</b></font>\";\n String formatPhone = phoneNumber.replace(contenue_ecran, formatPhoneNumber);\n if (phoneNumber.contains(contenue_ecran)) {\n list.add(new ModelContacts(name, image, formatPhone));\n }\n }\n cursor.close();\n }\n return list;\n }",
"java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact> \n getContactList();",
"private List getContactNames() {\n List<Contact> contacts = new ArrayList<>();\n // Get the ContentResolver\n ContentResolver cr = getContentResolver();\n // Get the Cursor of all the contacts\n Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);\n while (cursor.moveToNext()) {\n\n\n //Sjekker om kontakt har et tlf nummer\n String hasNumber = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.HAS_PHONE_NUMBER));\n String contactName = \"\";\n if (hasNumber.equals(\"1\")) {\n contactName = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME));\n\n Contact contact = new Contact(contactName);\n contacts.add(contact);\n\n\n }\n }\n cursor.close();\n return contacts;\n }",
"public ArrayList<String[]> searchField(String phone)\n\t{\n\t\tArrayList<Customer> customers = CustomerContainer.getInstance().getCustomers();\t\n\t\tArrayList<String[]> data = new ArrayList<>();\n\t\tif (customers == null)\n\t\t{\n\t\t\treturn data;\n\t\t}\n\t\tfor (Customer customer : customers)\n\t\t{\n\t\t\tif (Integer.toString(customer.getPhone()).contains(phone))\n\t\t\t{\n\t\t\t\tdata.add(customer.tableFill());\n\t\t\t}\n\t\t}\n\t\treturn data;\n\t}",
"public static Cursor getDashboardContactList() {\n\t\tLog.d(\" QuizApp--SQLHelper\", \"Contact--Querying Data\");\n\t\treturn db.rawQuery(\"select * from Contact order by name\", null);\n\t}",
"public String getFilteredContactsStatement(String field) {\n\t\treturn \"SELECT * FROM CONTACTS WHERE \" + field + \"= ?\";\n\t}",
"@Override\n\tpublic List<Designer_case> queryByPager(int pageNo, int pageSize) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic List<ContractDetailTO> findContractDetailList(String contractNo) {\n\t\treturn contractApplicationService.findContractDetailList(contractNo);\r\n\t}",
"private String getContactname(String phoneNumber2) {\n\t\t// TODO Auto-generated method stub\n\t\t ContentResolver cr = context.getContentResolver();\n\t\t Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phoneNumber));\n\t\t Cursor cursor = cr.query(uri, new String[]{PhoneLookup.DISPLAY_NAME}, null, null, null);\n\t\t if (cursor == null) {\n\t\t return null;\n\t\t }\n\t\t String contactName = null;\n\t\t if(cursor.moveToFirst()) {\n\t\t contactName = cursor.getString(cursor.getColumnIndex(PhoneLookup.DISPLAY_NAME));\n\t\t }\n\n\t\t if(cursor != null && !cursor.isClosed()) {\n\t\t cursor.close();\n\t\t }\n\n\t\t return contactName;\n\t}",
"public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n return contactList_.get(index);\n }",
"public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n return contactList_.get(index);\n }",
"public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n return contactList_.get(index);\n }",
"public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n return contactList_.get(index);\n }",
"Page<Contact> searchContactsByName(String name, int index, int size);",
"static SearchResult<AccountHolder> getHolders(String no) throws RecordSearchException {\n String condition = \"AccountNo = '\" + no + \"'\";\n\n LinkedList<Record> records = AccountHolderTable.getInstance().read(condition);\n\n if (records == null || records.size() == 0) {\n throw new RecordSearchException();\n }\n\n try {\n SearchResult<AccountHolder> holders = new SearchResult<>();\n\n for (LinkedHashMap<String, Object> record : records) {\n holders.add(new AccountHolder(record));\n }\n\n return holders;\n } catch (SchemaCreationException e) {\n Logger.error(e);\n\n throw new RecordSearchException(\"Error reading records from the Database\");\n }\n }",
"public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }",
"public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }",
"public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }",
"public com.ubtrobot.phone.PhoneCall.Contact getContactList(int index) {\n if (contactListBuilder_ == null) {\n return contactList_.get(index);\n } else {\n return contactListBuilder_.getMessage(index);\n }\n }",
"@GET(API_ROUTE + \"/contactos-empleado/{emp_id}\")\n Call<List<Persona>> getContactsByEmployeeId(@Path(\"emp_id\") long emp_id);",
"@Override\r\n\tprotected List<ApplMstHousestatus> getData(int pageNo, int numOfBulkRecord) {\n\t\treturn service.getByPage(pageNo, numOfBulkRecord);\r\n\t}",
"public List<StaffPojo> staffSearchByPhoneNo(String sphone) {\n\t\treturn staffDao.staffSearchByPhoneNo(sphone);\n\t}",
"public List<Contact> getAllContacts() {\n List<Contact> contactList = new ArrayList<Contact>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_CONTACTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Contact contact = new Contact();\n contact.set_id((cursor.getInt(0)));\n contact.set_name(cursor.getString(1));\n contact.set_audios(cursor.getString(2));\n contact.set_captured_image(cursor.getString(3));\n contact.set_contents(cursor.getString(4));\n contact.set_delelte_var(cursor.getInt(5));\n contact.set_gallery_image(cursor.getString(6));\n contact.set_recycle_delete(cursor.getInt(7));\n contact.set_photo(cursor.getString(8));\n // Adding contact to list\n contactList.add(contact);\n } while (cursor.moveToNext());\n }\n\n // return contact list\n return contactList;\n }",
"public List<Contact> searchContacts(Map<SearchTerm,String> criteria);",
"public List<HashMap<String,String>> contacts() {\n final Uri uriContact = ContactsContract.CommonDataKinds.Phone.CONTENT_URI;\n ContentResolver cr = getActivity().getContentResolver();\n Cursor cur = cr.query(uriContact, null, null, null, null);\n\n List<HashMap<String,String>> contacts=new ArrayList<>();\n if (cur.getCount() > 0) {\n while (cur.moveToNext()) {\n String id = cur.getString(\n cur.getColumnIndex(ContactsContract.CommonDataKinds.Phone._ID));\n String name = cur.getString(\n cur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME));\n\n\n String has_phone = cur.getString(cur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.HAS_PHONE_NUMBER));\n HashMap<String,String> contact=new HashMap();\n if(!has_phone.endsWith(\"0\"))\n {\n contact.put(\"name\", name);\n String phoneNumber = cur.getString(cur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));\n contact.put(\"number\",phoneNumber);\n contacts.add(contact);\n }\n }\n }\n this.contacts_phone=contacts;\n contacts=filter_to_app(contacts);\n return contacts;\n }",
"public static String getContactDisplayNameByNumber(String number, Context context){\n\t\t\n\t\t Uri uri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, Uri.encode(number));\n\t\t String name = \"\";\n\t\n\t\t //ContentResolver contentResolver = getContentResolver();\n\t\t Cursor contactLookup = context.getContentResolver().query(uri, new String[] {BaseColumns._ID,\n\t\t ContactsContract.PhoneLookup.DISPLAY_NAME }, null, null, null);\n\t\n\t\t try {\n\t\t if (contactLookup != null && contactLookup.getCount() > 0) {\n\t\t contactLookup.moveToNext();\n\t\t name = contactLookup.getString(contactLookup.getColumnIndex(ContactsContract.Data.DISPLAY_NAME));\n\t\t //String contactId = contactLookup.getString(contactLookup.getColumnIndex(BaseColumns._ID));\n\t\t }\n\t\t } finally {\n\t\t if (contactLookup != null) {\n\t\t contactLookup.close();\n\t\t }\n\t\t }\n\t\n\t\t return name;\n\t}",
"com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);",
"com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);",
"com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);",
"com.ubtrobot.phone.PhoneCall.ContactOrBuilder getContactListOrBuilder(\n int index);",
"private List<BasicContact> getDataForListView() {\n\t\tlong groupId = getIntent().getLongExtra(Constants.INTENT_LONG_GROUP_ID, -1L);\r\n\t\tHashSet<Long> rawContactIds;\r\n\t\tif (groupId != -1) { // a group was selected\r\n\t\t\tList<Long> groupIds = new ArrayList<Long>(1);\r\n\t\t\tgroupIds.add(groupId);\r\n\t\t\trawContactIds = ContactsHelper.getRawContactIds(LabelView.this, groupIds);\r\n\t\t} else { // a tag was selected\r\n\t\t\trawContactIds = ContactsHelper.getRawContactIdsGivenTag(LabelView.this,\r\n\t\t\t\t\tmLabel);\r\n\t\t}\r\n\t\t\r\n\t\treturn ApplicationData.getBasicContacts(rawContactIds);\r\n\t}",
"public Print[] getAll(String contact){\r\n return theContacts.get(contact).getAllNumbers();\r\n }",
"@Override\n\tpublic Patient fetchByPhone(long pNumber) throws DAOException\n\t{\n\t\tConnection con = DBUtil.getConnection();\n\t\tPatient patientObject = null;\n\t\ttry {\n\n\t\t\tString query = \"select * from patient where phone=?;\";\n\t\t\tPreparedStatement preparedStmt = con.prepareStatement(query);\n\t\t\tpreparedStmt.setLong(1, pNumber);\n\t\t\tResultSet rs = preparedStmt.executeQuery();\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\tpatientObject = new Patient(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4), rs.getString(5));\n\t\t\t}\n\t\t} catch (SQLException e) \n\t\t{\n\t\t\tthrow new DAOException(\"Sorry cannot reach now.\",e);\n\t\t}\n\t\tfinally \n\t\t{\n\t\t\tDBUtil.releaseResource(con);\n\t\t}\n\t\treturn patientObject;\n\t}",
"public List<ResponseVO> getResponseVOByReqNo(int queryReqNo) {\n\t\treturn responseDAO.getResponseVOByReqNo(queryReqNo);\n\t}",
"public void getContact(int contactId) {\n view.printRecordsFromNotepad(notepad.getContacts().get(contactId).toString());\n }",
"List<MasterZipcode> getByPage(int pageNo);",
"IContact getContactById(String contactId);",
"public Cliente[] findWhereContactoEquals(String contacto) throws ClienteDaoException;",
"List<House> getHousesByContact(String telephone, String wechat, String qq);",
"public Result<List<Contact>> listContacts(Long addressBookId) {\n return listContacts(addressBookId, false, 0);\n }",
"private Document getContactsPage(final Document collectionPage)\n {\n // find the \"Contact\" element on the web page\n final String contactsSelection = String.format(\n FishStatJSourceConstants.CONTAINS_TEXT_SELECTION,\n languageVo.getContactsTabTitle());\n final Element contactsLink = collectionPage.selectFirst(contactsSelection);\n\n if (contactsLink == null)\n return null;\n\n final String contactsUrl = String.format(\n FishStatJSourceConstants.SITE_URL,\n contactsLink.attr(FishStatJSourceConstants.HREF_ATTRIBUTE));\n\n return httpRequester.getHtmlFromUrl(contactsUrl);\n }",
"@Override\n\tpublic Candidate fetchByContactNumber(String contactNumber,\n\t\tboolean retrieveFromCache) throws SystemException {\n\t\tObject[] finderArgs = new Object[] { contactNumber };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_CONTACTNUMBER,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof Candidate) {\n\t\t\tCandidate candidate = (Candidate)result;\n\n\t\t\tif (!Validator.equals(contactNumber, candidate.getContactNumber())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_SELECT_CANDIDATE_WHERE);\n\n\t\t\tboolean bindContactNumber = false;\n\n\t\t\tif (contactNumber == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_CONTACTNUMBER_CONTACTNUMBER_1);\n\t\t\t}\n\t\t\telse if (contactNumber.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_CONTACTNUMBER_CONTACTNUMBER_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindContactNumber = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_CONTACTNUMBER_CONTACTNUMBER_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindContactNumber) {\n\t\t\t\t\tqPos.add(contactNumber);\n\t\t\t\t}\n\n\t\t\t\tList<Candidate> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_CONTACTNUMBER,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"CandidatePersistenceImpl.fetchByContactNumber(String, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tCandidate candidate = list.get(0);\n\n\t\t\t\t\tresult = candidate;\n\n\t\t\t\t\tcacheResult(candidate);\n\n\t\t\t\t\tif ((candidate.getContactNumber() == null) ||\n\t\t\t\t\t\t\t!candidate.getContactNumber().equals(contactNumber)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_CONTACTNUMBER,\n\t\t\t\t\t\t\tfinderArgs, candidate);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_CONTACTNUMBER,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (Candidate)result;\n\t\t}\n\t}",
"public static void main(String[] args) {\n ContactData contactDatas = new ContactData(\"Mohon\", \"456775439\");\r\n //System.out.println(contactDatas);\r\n\r\n ContactData contactDatas1 = new ContactData(\"shihab\", \"456775439\", \"[email protected]\");\r\n\r\n ContactList list = new ContactList();\r\n list.createContact(contactDatas);\r\n list.createContact(contactDatas1);\r\n System.out.println(list);\r\n\r\n ContactData search = list.searchContact(\"mohon\");\r\n if (search != null){\r\n System.out.println(search);\r\n } else {\r\n System.out.println(\"Contact not found\");\r\n }\r\n\r\n System.out.println(list.getTotalContact());\r\n }",
"private String getContactsMessage(List<Contact> contactsInfo, String phoneNumber) {\n\t\tStringBuilder formatedMessage = new StringBuilder(getResources().getString(R.string.contact_not_found));\n\t\tString finalTextMessage = formatedMessage.toString();\n\n\t\tif (contactsInfo.size() > 0) {\n\t\t\tformatedMessage = new StringBuilder();\n\t\t\tint i = 0;\n\t\t\tfor (Contact contact : contactsInfo) {\n\t\t\t\tformatedMessage.append((i + 1) + \"- \" + contact.getName() + \": \");\n\t\t\t\tint j = 0;\n\t\t\t\tfor (String phone : contact.getPhones()) {\n\t\t\t\t\tformatedMessage.append(phone);\n\t\t\t\t\tif (j != (contact.getPhones().size() - 1)) {\n\t\t\t\t\t\tformatedMessage.append(\"/\");\n\t\t\t\t\t}\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t\tif (i != (contactsInfo.size() - 1)) {\n\t\t\t\t\tformatedMessage.append(\", \");\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tfinalTextMessage = getMessageConvertedInPDU(formatedMessage.toString());\n\t\t}\n\t\treturn finalTextMessage.trim();\n\t}",
"public org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index) {\n return contact_.get(index);\n }",
"@Override\n\tpublic List<Contact> getAllContact() {\n\n\t\tList<Contact> contactList = new ArrayList<>();\n\n\t\tList<ContactDetailsEntity> entityList = contactRepositeries.findAll();\n\n\t\tList<ContactDetailsEntity> filterEntity = entityList.stream()\n\t\t\t\t.filter(entity -> \"y\".equals(entity.getActiveSwitch())).collect(Collectors.toList());\n\n\t\tif (!filterEntity.isEmpty()) {\n\t\t\tfilterEntity.forEach(entity -> {\n\t\t\t\tContact c = new Contact();\n\t\t\t\tBeanUtils.copyProperties(entity, c);\n\t\t\t\tcontactList.add(c);\n\t\t\t});\n\t\t}\n\t\treturn contactList;\n\t}",
"public static ContactQueryResult getContactInfo(Context context, Uri uri) {\n ContactQueryResult result = new ContactQueryResult();\n String id = null;\n Cursor cursor = context.getContentResolver().query(uri, null, null, null, null);\n if (null == cursor) {\n return result;\n }\n if (cursor.moveToFirst()) {\n id = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts._ID));\n }\n cursor.close();\n // Build the Entity URI.\n Uri.Builder b = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_URI, id).buildUpon();\n b.appendPath(ContactsContract.Contacts.Entity.CONTENT_DIRECTORY);\n Uri contactUri = b.build();\n // Create the projection (SQL fields) and sort order.\n String[] projection = { ContactsContract.Contacts.Entity.RAW_CONTACT_ID,\n ContactsContract.Contacts.Entity.DATA1, ContactsContract.Contacts.Entity.MIMETYPE };\n String sortOrder = ContactsContract.Contacts.Entity.RAW_CONTACT_ID + \" ASC\";\n cursor = context.getContentResolver().query(contactUri, projection, null, null, sortOrder);\n if (null == cursor) {\n return result;\n }\n String mime;\n int mimeIdx = cursor.getColumnIndex(ContactsContract.Contacts.Entity.MIMETYPE);\n int dataIdx = cursor.getColumnIndex(ContactsContract.Contacts.Entity.DATA1);\n if (cursor.moveToFirst()) {\n do {\n mime = cursor.getString(mimeIdx);\n if (mime.equalsIgnoreCase(CommonDataKinds.Phone.CONTENT_ITEM_TYPE)) {\n result.phones.add(cursor.getString(dataIdx));\n } else if (mime.equalsIgnoreCase(CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE)) {\n result.name = cursor.getString(dataIdx);\n }\n } while (cursor.moveToNext());\n }\n cursor.close();\n return result;\n }",
"public List<contact> contact_get_all() {\n \treturn contact_get(null, KEY_CONTACT_LASTACT + \" DESC\");\n }",
"public List<VendorContact> getContactByVendorId(int vendorid) {\r\n\t\t\treturn template.query(\"select contactid,vendorid,contactname,contactDepartment,contactEmail,contactPhone from contactTable where vendorid=\"+vendorid+\"\", new RowMapper<VendorContact>() {\r\n\t\t\t\tpublic VendorContact mapRow(ResultSet rs, int row)\r\n\t\t\t\t\t\tthrows SQLException {\r\n\t\t\t\t\tVendorContact vendorContact = new VendorContact();\r\n\t\t\t\t\tvendorContact.setContactId(rs.getInt(1));\r\n\t\t\t\t\tvendorContact.setVendorId(rs.getInt(2));\r\n\t\t\t\t\tvendorContact.setContactName(rs.getString(3));\r\n\t\t\t\t\tvendorContact.setContactDepartment(rs.getString(4));\r\n\t\t\t\t\tvendorContact.setContactEmail(rs.getString(5));\r\n\t\t\t\t\tvendorContact.setContactPhone(rs.getString(6));\r\n\t\t\t\t\treturn vendorContact;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t}",
"public List<Object[]> getChartDataForPhoneNumber(String phoneNumber);",
"public TResult<Contact> contact_getmodel(Contact data) {\n\t\tString path = \"/contact/model\";\n\t\treturn RestRequest.postT(path, \"application/json\", data, new TypeToken<TResult<Contact>>(){}.getType());\n\t}",
"public void getContactByCity() {\n System.out.println(\"enter a name of city to fetch contact details:--\");\n String city = scanner.next();\n\n Iterator itrs = list.iterator();\n while (itrs.hasNext()) {\n Contact person = (Contact) itrs.next();\n\n if (city.equals(person.getCity())) {\n List streamList = list.stream().map(n -> n.getPhoneNo()).collect(Collectors.toList());\n System.out.println(streamList);\n }\n }\n }",
"@Override\n\tpublic List<CustomerType> queryByUseLikeAndPage(String property, String value, int pageSize, int pageNumber) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List getByContactsId(Integer contactsId) throws DAOException {\n\t\treturn null;\n\t}",
"public static Request getContacts(int nMessengers) throws Exception\n\t{\n\t\treturn new Request.Builder(Action.getContacts)\n\t\t\t\t.add(Extra.MESSENGER, nMessengers)\n\t\t\t\t.create();\n\t}",
"private List<Contact> getContactsList() {\n\n\t\tList<Contact> contactsList = new ArrayList<>();\n\n\t\tContentResolver cr = getActivity().getContentResolver();\n\n\t\t// Obtiene toda la informarciónd de los contactos\n\t\tCursor cursor = getActivity().getContentResolver().query(\n\t\t\t\tContactsContract.Contacts.CONTENT_URI, null, null, null,\n\t\t\t\t\"display_name\");\n\t\t// Obtiene el número de la columnas que queremos almacenar.\n\t\tint idIndex = cursor.getColumnIndex(ContactsContract.Contacts._ID);\n\t\tint displayNameIndex = cursor\n\t\t\t\t.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME);\n\n\t\tcursor.moveToFirst();\n\t\twhile (cursor.moveToNext()) {\n\t\t\t// Comprueba que tenga numero de teléfono\n\t\t\tif (Integer\n\t\t\t\t\t.parseInt(cursor.getString(cursor\n\t\t\t\t\t\t\t.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER))) > 0) {\n\t\t\t\tString id = cursor.getString(idIndex);\n\t\t\t\tString name = cursor.getString(displayNameIndex);\n\t\t\t\tString phone = null;\n\n\t\t\t\tString selectionArgs = Phone.CONTACT_ID + \" = ? AND \"\n\t\t\t\t\t\t+ Phone.TYPE + \"= \" + Phone.TYPE_MOBILE;\n\n\t\t\t\tCursor pCur = cr.query(\n\t\t\t\t\t\tContactsContract.CommonDataKinds.Phone.CONTENT_URI,\n\t\t\t\t\t\tnew String[] { Phone.NUMBER }, selectionArgs,\n\t\t\t\t\t\tnew String[] { id }, null);\n\n\t\t\t\tif (pCur.moveToFirst()) {\n\t\t\t\t\tphone = pCur.getString(0);\n\n\t\t\t\t}\n\t\t\t\tpCur.close();\n\n\t\t\t\t// Crea el objeto contact\n\t\t\t\tContact contact = new Contact(id, name, phone);\n\t\t\t\tcontactsList.add(contact);\n\t\t\t}\n\n\t\t}\n\n\t\treturn contactsList;\n\n\t}",
"@Override\n\tpublic List<Contact> search(String str) {\n\t\treturn null;\n\t}",
"public void findContact(){\n EtecsaDB database = new EtecsaDB(this.getContext());\n if (!database.hasDatabase()){\n Toast.makeText(this.getContext(), R.string.no_database, Toast.LENGTH_SHORT).show();\n }\n else //buscar contacto\n new Search(this.getActivity()).execute(advancedSearch);\n }",
"Optional<Customer> findByPhoneNumber(Long number);",
"@Override\n\tpublic List<Contact> listContact() {\n\t\ttry {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"************************* je suis dans Liste des contacts *********************************\");\n\t\t\tsession = HibernateUtil.getSessionFactory().openSession();\n\t\t\ttx = session.beginTransaction();\n\n\t\t\tQuery query = session.createQuery(\"from Contact\");\n\n\t\t\tSystem.out.println(\"\\n\");\n\t\t\tSystem.out.println(\"liste des contacts: \" + String.valueOf(query.list()));\n\n\t\t\tList<Contact> lc = (List<Contact>) query.list();\n\t\t\ttx.commit();\n\t\t\tsession.close();\n\n\t\t\treturn lc;\n\n\t\t} catch (HibernateException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"List<CustDataNotesResponseDTO> searchForCustDataNotes(CustDataNotesRequestDTO custDataNotesRequestDTO) throws Exception;",
"@Override\n\tpublic List<BpFundIntent> getByRequestNo(String requestNo) {\n\t\treturn dao.getByRequestNo(requestNo);\n\t}",
"public List getAllContacts() {\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor mCursor = db.query(DATABASE_TABLE, new String[]{KEY_ROWID, KEY_EVENT, KEY_TIME, KEY_TAG}, null, null, null, null, null, null);\n if (mCursor != null) {\n while (mCursor.moveToNext()) {\n String event = mCursor.getString(mCursor.getColumnIndex(\"event\"));\n String time = mCursor.getString(mCursor.getColumnIndex(\"time\"));\n int tag = mCursor.getInt(mCursor.getColumnIndex(\"tag\"));\n int ID=mCursor.getInt(mCursor.getColumnIndex(\"_id\"));\n Log.d(\"55555555555\",String.valueOf(ID)+\"getallcontacts\");\n if (tag==0) {\n eventbeanList.add(new eventbean(false, event, time, ID));\n }\n }\n }\n mCursor.close();\n db.close();\n return eventbeanList;\n }",
"public ArrayList<Contact> getAllContacts(){\r\n\t\t\r\n\t\tArrayList<Contact> contacts = new ArrayList<Contact>();\r\n\t\tSQLiteDatabase db = this.getReadableDatabase();\r\n\t\t\r\n\t\tCursor cursor = db.query(DBHelper.CONTACT_TABLE_NAME,\r\n\t\t\t\tnew String[] {DBHelper.COLUMN_NAME, DBHelper.COLUMN_GROUP,\r\n\t\t\t\tDBHelper.COLUMN_LATITUDE, DBHelper.COLUMN_LONGITUDE,\r\n\t\t\t\tDBHelper.COLUMN_MESSAGE, DBHelper.COLUMN_SHARE},\r\n\t\t\t\tnull, null,\r\n\t\t\t\tnull, null, null);\r\n\t\t\r\n\t\tcursor.moveToFirst();\r\n\t while (!cursor.isAfterLast()) {\r\n\t contacts.add(new Contact(cursor.getString(0), cursor.getString(1),\r\n\t \t\t cursor.getDouble(2), cursor.getDouble(3), cursor.getString(4),\r\n\t \t\t int_to_boolean(cursor.getInt(5))));\r\n\t cursor.moveToNext();\r\n\t }\r\n\t \r\n\t cursor.close();\r\n\t db.close();\r\n\t \r\n\t return contacts;\r\n\t}",
"public List<ContactBE> getContacts() {\n List<ContactBE> contacts = new ArrayList<>();\n\n try (ContactCurserWrapper cursor = queryContacts(null, null)) {\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n contacts.add(cursor.getContact());\n cursor.moveToNext();\n }\n }\n return contacts;\n }",
"public Field<T> getFieldByNumber(int n)\r\n/* 48: */ {\r\n/* 49:63 */ return n < this.fieldsByNumber.length ? this.fieldsByNumber[n] : null;\r\n/* 50: */ }",
"@Override\r\n protected Cursor doInBackground(Long... params)\r\n {\r\n databaseConnector.open();\r\n \r\n // get a cursor containing all data on given entry\r\n return databaseConnector.getOneContact(params[0]);\r\n }",
"public org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index) {\n if (contactBuilder_ == null) {\n return contact_.get(index);\n } else {\n return contactBuilder_.getMessage(index);\n }\n }",
"List<Contact> findByNameLike(String name);",
"@RequestMapping(value = \"/contact/list/{id}\", method = RequestMethod.GET)\n public Contact contactGetById(@PathVariable Long id) {\n Contact contact = contactService.list(id);\n return contact;\n }",
"public void loadContacts()\n {\n Contact sdhb = new Contact(\"SDHB\", \"(03) 474 00999\");\n //Hospitals\n Contact southland = new Contact(\"Southland Hospital\", \"(03) 218 1949\");\n Contact lakes = new Contact(\"Lakes District Hostpital\", \"(03) 441 0015\");\n Contact dunedin = new Contact(\"Dunedin Hospital\", \"(03) 474 0999\");\n Contact wakari = new Contact(\"Wakari Hospital\", \"(03) 476 2191\");\n //Departments\n Contact compD = new Contact(\"Complements & Complaints (Otago)\", \"(03) 470 9534\");\n Contact compS = new Contact(\"Complements & Complaints (Southland)\", \"(03) 214 5738\");\n\n contacts = new Contact[]{sdhb, dunedin, southland, lakes, wakari, compD, compS};\n }",
"public void onActivityResult(int reqCode, int resultCode, Intent data) {\n super.onActivityResult(reqCode, resultCode, data);\n if (reqCode != Activity.RESULT_OK && data != null) {\n Uri contactUri = data.getData();\n String[] rcontact = {ContactsContract.CommonDataKinds.Phone.NUMBER, ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME};\n Cursor c = getContentResolver()\n .query(contactUri, rcontact, null, null, null);\n c.moveToFirst();\n int contact_name = c.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER);\n int contact_number = c.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME);\n String contact_number1 = c.getString(contact_number);\n String contact_name1 = c.getString(contact_name);\n input_msg.setText(\"Number: \" + contact_number1 + \" Name:\" + contact_name1);\n Toast.makeText(this, contact_name1 + \" has number \" + contact_number1, Toast.LENGTH_LONG).show();\n }\n else{\n Toast.makeText(this, \" This Device has no Contacs \", Toast.LENGTH_LONG).show();\n finish();\n }\n }"
] | [
"0.61496806",
"0.5870491",
"0.58418447",
"0.57900095",
"0.57900095",
"0.57900095",
"0.57900095",
"0.5789959",
"0.5733474",
"0.55813366",
"0.554135",
"0.5539651",
"0.55348164",
"0.5528128",
"0.55212754",
"0.5507167",
"0.5492298",
"0.5485426",
"0.5461699",
"0.54490376",
"0.54490376",
"0.54490376",
"0.54490376",
"0.5422777",
"0.54210895",
"0.54151356",
"0.54059076",
"0.5402402",
"0.5397487",
"0.53545505",
"0.53427964",
"0.53403395",
"0.5276408",
"0.52732337",
"0.5255266",
"0.5239893",
"0.5226543",
"0.5224033",
"0.5224033",
"0.5224033",
"0.5224033",
"0.5214838",
"0.5212069",
"0.5205116",
"0.5205116",
"0.5205116",
"0.5205116",
"0.5174921",
"0.5143194",
"0.5135952",
"0.5131194",
"0.5114953",
"0.5106699",
"0.50899625",
"0.50839776",
"0.50839776",
"0.50839776",
"0.50839776",
"0.5074842",
"0.50594085",
"0.5055399",
"0.50492907",
"0.50392675",
"0.50261295",
"0.50171447",
"0.50124943",
"0.50056916",
"0.4979011",
"0.49652636",
"0.4963542",
"0.49613857",
"0.4946582",
"0.49388897",
"0.4937029",
"0.49356103",
"0.49296975",
"0.49038264",
"0.49029118",
"0.48994848",
"0.48969883",
"0.48930165",
"0.48864588",
"0.48851678",
"0.48840046",
"0.48758337",
"0.48656413",
"0.48528925",
"0.48512128",
"0.48398885",
"0.48367316",
"0.4833627",
"0.48228717",
"0.48122385",
"0.48010144",
"0.4800983",
"0.4800657",
"0.48001963",
"0.47996676",
"0.47954857",
"0.47939035"
] | 0.6531856 | 0 |
Retrieves a list of data object for the specified photo field. To use a wildcard search, use a % in the query. | public java.util.List findStudentByPhoto(java.lang.String photo) throws GenericBusinessException {
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
String queryString = "from " + Student.class.getName() + " e where e.photo like :photo ";
// Add a an order by on all primary keys to assure reproducable results.
String orderByPart = "";
orderByPart += " order by e.studentId";
queryString += orderByPart;
Query query = hibernateTemplate.createQuery(queryString);
hibernateTemplate.setQueryParameter(query, "photo", photo);
List list = hibernateTemplate.list(query);
return list;
} finally {
log.debug("finished findStudentByPhoto(java.lang.String photo)");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getPhotoList(String query){\n for(Photo p : photolist){\n for(String s : p.getLocationTaglist()){\n if(s.toLowerCase().contains(query)){\n searchResult.add(p);\n break;\n }\n }\n for(String s : p.getPersonTaglist()){\n if(s.toLowerCase().contains(query)){\n searchResult.add(p);\n break;\n }\n }\n }\n }",
"@GET\n @Produces(\"application/json\")\n public List<Photos> getPhotos() {\n \tPhotosDAO dao = new PhotosDAO();\n List photos = dao.getPhotos();\n return photos;\n }",
"public RealmResults<PhotoGalleryModel> getPhotos( ) {\n return realm.where(PhotoGalleryModel.class).findAll();\n\n }",
"List<Photo> homePagePhotos();",
"@ModelAttribute(\"imageList\")\r\n\tpublic List<ProductTO> getData(){\r\n\t\treturn searchService.getAllImage();\r\n\t}",
"public List<PictureData> searchAllPicture(String pageID) {\n\t\treturn null;\n\t}",
"public List<PictureData> searchAllPicture(String pageID) {\n\t\treturn null;\n\t}",
"List<Forumpost> selectByExampleWithBLOBs(ForumpostExample example);",
"List<Media> search(double latitude, double longitude);",
"@Query(\"customField = ?\")\n List<PersonDocument> findByCustomField(String value);",
"public void onSearchCompleted(String searchString, List<Photo> photos);",
"List<AliUserInfoDO> selectByExampleWithBLOBs(AliUserInfoDOExample example);",
"List<AlbumImage> selectByAlbum(Integer albumId);",
"@GetMapping(\"images/album/{albumIdOrTitle}/photos/{photoIdOrTitle}\")\n\tprivate PhotoEntity getImageFromAlbumByIdOrTitle(@PathVariable String albumIdOrTitle,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@PathVariable String photoIdOrTitle) {\n\t\tList<PhotoEntity> list = new ArrayList<PhotoEntity>();\n\t\tPhotosetEntity photoset = null;\n\t\tPhotoEntity photoEntity = null;\n\t\t\n\t\tlog.info(\"Request to retrieve photos from photoset...\");\n\t\t\n\t\t// Authorize edel-read or do not retrieve anything\n\t\tif (util.authEdelRead() != null) {\n\t\t\t\n\t\t\tphotoset = service.getPhotosetByIdOrTitle(albumIdOrTitle);\n\t\t\t\n\t\t\t// If photoset is not null, set the list of PhotoEntity\n\t\t\tif (photoset != null) {\n\t\t\t\tphotoEntity = service.getPhotoFromPhotosetByIdOrTitle(photoset, photoIdOrTitle);\n\t\t\t\tif (photoEntity != null) {\n\t\t\t\t\tlist.add(photoEntity);\n\t\t\t\t\tlog.info(\"Request completed with photoset.\");\n\t\t\t\t} else {\n\t\t\t\t\tlog.warn(\"Request completed with no photo.\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tlog.warn(\"Request completed with no photoset.\");\n\t\t\t}\n\t\t} else {\n\t\t\tlog.warn(\"Request completed with failed Authorization.\");\n\t\t}\n\t\t\n\t\treturn photoEntity;\n\t}",
"public PictureData searchPicture(String pictureId) {\n\t\treturn null;\n\t}",
"@Override\n public FlickrResponse searchPhoto(String tags) throws IOException {\n return flickrService.searchPhoto(tags);\n }",
"public ArrayList<String> getPhotos() {return photos;}",
"public List<Document> getArticlePhotoList() {\n if (articlePhotoList == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n DocumentDao targetDao = daoSession.getDocumentDao();\n List<Document> articlePhotoListNew = targetDao._queryArticle_ArticlePhotoList(objectId);\n synchronized (this) {\n if(articlePhotoList == null) {\n articlePhotoList = articlePhotoListNew;\n }\n }\n }\n return articlePhotoList;\n }",
"public LiveData<List<PhotoData>> getGeoLocatedImages(){\n locationImages = mRepository.findGeoLocatedImages();\n\n return locationImages;\n }",
"public List<Photo> getPhotos(int id_annonce) {\n List<Photo> allPhoto = new ArrayList<>();\n\n String table = \"photo\"; // nom de la table.\n String[] colums = {\"id_photo\", \"nom_photo\", \"id_annonce\"}; // Colonnes de la table.\n String condition = \"id_annonce = ?\";\n String[] value = {\"\"+id_annonce};\n\n Cursor cursor = this.getReadableDatabase().query(table, colums, condition,\n value, null, null, null);\n\n // Le deplacement du curseur.\n if (cursor.moveToFirst())\n do {\n int id_photo = cursor.getInt(cursor.getColumnIndex(\"id_photo\"));\n String nom_photo = cursor.getString(cursor.getColumnIndex(\"nom_photo\"));\n\n Photo photo = new Photo(id_photo, nom_photo, id_annonce);\n\n allPhoto.add(photo);\n\n }while(cursor.moveToNext());\n cursor.close();\n return allPhoto;\n }",
"private void searchImage(String text){\n\n // Set toolbar title as query string\n toolbar.setTitle(text);\n\n Map<String, String> options = setSearchOptions(text, Constants.NEW_SEARCH);\n Call<SearchResponse> call = service.searchPhoto(options);\n\n call.enqueue(new Callback<SearchResponse>() {\n @Override\n public void onResponse(Response<SearchResponse> response, Retrofit retrofit) {\n SearchResponse result = response.body();\n if (result.getStat().equals(\"ok\")) {\n // Status is ok, add result to photo list\n if (photoList != null) {\n photoList.clear();\n photoList.addAll(result.getPhotos().getPhoto());\n imageAdapter.notifyDataSetChanged();\n pageCount = 2;\n }\n\n } else {\n // Display error if something wrong with result\n Toast.makeText(context, result.getMessage(), Toast.LENGTH_LONG).show();\n }\n }\n\n @Override\n public void onFailure(Throwable t) {\n // Display error here since request failed\n Toast.makeText(context, t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }",
"@Override\n\tpublic String imageSearch(QueryBean param) throws IOException {\n\t\treturn new HttpUtil().getHttp(IData.URL_SEARCH + param.toString());\n\t}",
"Receta getByIdWithImages(long id);",
"@RequestMapping(value = \"/{userID}/{photoID}\", method = RequestMethod.GET)\n\tpublic @ResponseBody Photo getPhoto(@PathVariable long photoID) {\n\t\treturn photoServices.getPhoto(photoID);\n\t}",
"List<ZlnfBiZzdkZzdkWithBLOBs> selectByExampleWithBLOBs(ZlnfBiZzdkZzdkExample example);",
"@Override\n\tpublic List<PersonalisationMediaModel> getImageByID(final String imageID)\n\t{\n\t\tfinal String query1 = \"Select {pk} from {PersonalisationMedia} Where {code}=?imageId and {user}=?user\";\n\t\t/**\n\t\t * select distinct {val:pk} from {PersonalisationMediaModel as val join MediaModel as media on\n\t\t * {media:PK}={val.image} join User as user on {user:pk}={val:user} and {media:code}=?imageId and {user:pk}=?user}\n\t\t */\n\t\tfinal UserModel user = getUserService().getCurrentUser();\n\t\tfinal FlexibleSearchQuery fQuery = new FlexibleSearchQuery(query1);\n\t\tfinal Map<String, Object> params = new HashMap<>();\n\t\tparams.put(\"imageId\", imageID);\n\t\tparams.put(\"user\", user);\n\t\tfQuery.addQueryParameters(params);\n\t\tLOG.info(\"getImageByID\" + fQuery);\n\t\tfinal SearchResult<PersonalisationMediaModel> searchResult = flexibleSearchService.search(fQuery);\n\t\treturn searchResult.getResult();\n\t}",
"@Override\n\t\tpublic List<String> getPhotos() throws RemoteException {\n\t\t\treturn null;\n\t\t}",
"List<DashboardGoods> selectByExampleWithBLOBs(DashboardGoodsExample example);",
"@GET(\"planetary/apod?api_key=\" + API_KEY)\n Single<List<Picture>> getPicturesFromDateRange (@Query(\"start_date\") String startDate, @Query(\"end_date\") String endDate);",
"@GET(\"/tags/{query}/media/recent\" + CLIENT_ID)\n public void searchPhotos(@Path(\"query\") String query, Callback<WebResponse<ArrayList<InstagramPhoto>>> callback);",
"List<ZlnfBiZzdkZzdkWithBLOBs> selectByExample(ZlnfBiZzdkZzdkExample example);",
"List<ResourceWithBLOBs> selectByExampleWithBLOBs(ResourceExample example);",
"List<CCustomer> selectByExampleWithBLOBs(CCustomerExample example);",
"public List<Photo> getPhotos() {\n return photos;\n }",
"Data<List<Pins>> getSearchPins(String query, Integer limit, String fields);",
"DashboardGoods selectOneByExampleWithBLOBs(DashboardGoodsExample example);",
"public byte[] getPicData() {\n try {\n ParseFile pic = fetchIfNeeded().getParseFile(\"pic\");\n return pic.getData();\n }\n catch (ParseException e) {\n Log.d(TAG, \"Error in getting photo from Parse: \" + e);\n return null;\n }\n }",
"@Override\n\tpublic List<PhotoTag> findAllByPhotoID(String photoID) throws BaseException {\n\t\treturn this.findByParam(\"Mapper.PhotoTag.findAllByPhotoID\", photoID);\n\t}",
"@GET(\"planetary/apod?api_key=\" + API_KEY)\n Single<Picture> getPictureByDate(@Query(\"date\") String date);",
"List<EnterprisePicture> selectByExample(EnterprisePictureExample example);",
"@GetMapping(\"/posts/picture/{pictureId}\")\n List<PostDTO> getPostsByPicId(@PathVariable Long pictureId);",
"public static byte[] getPersonPhoto(Context context, String id) {\r\n \t\tif (id == null)\r\n \t\t\treturn null;\r\n \r\n \t\tif (\"0\".equals(id))\r\n \t\t\treturn null;\r\n \r\n \t\tbyte photo[] = null;\r\n \r\n \t\t// TODO: switch to API method:\r\n \t\t// Contacts.People.loadContactPhoto(arg0, arg1, arg2, arg3)\r\n \r\n \t\tCursor cursor = context.getContentResolver().query(Uri.withAppendedPath(Contacts.Photos.CONTENT_URI, id),\r\n \t\t\t\tnew String[] { PhotosColumns.DATA }, null, null, null);\r\n \t\tif (cursor != null) {\r\n \t\t\ttry {\r\n \t\t\t\tif (cursor.getCount() > 0) {\r\n \t\t\t\t\tcursor.moveToFirst();\r\n \t\t\t\t\tphoto = cursor.getBlob(0);\r\n \t\t\t\t\tif (photo != null) {\r\n \t\t\t\t\t\treturn photo;\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t} finally {\r\n \t\t\t\tcursor.close();\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn photo;\r\n \t}",
"@FXML\n private void getPictureUnits(){\n String search = \"\" ;\n String camera = null;\n LocalDate date = null;\n\n if(comboBox.getValue() != null){\n camera = comboBox.getValue().toString();}\n if (datePicker.getValue() != null){\n date = datePicker.getValue();}\n\n if(date != null){\n search = \"&earth_date=\" + date.toString();\n }\n if(camera != null){\n search = search + \"&camera=\" + camera;\n }\n\n listView.getItems().clear();\n try {\n NASAJsonResponse response = APIUtility.callNasaAPI(search);\n List<PhotoUnit> photoUnits = Arrays.asList(response.getResults());\n listView.getItems().addAll(photoUnits);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n }",
"public static Photo getPhoto(String id) {\n ParseQuery<Photo> query = ParseQuery.getQuery(TAG);\n try {\n return query.get(id);\n }\n catch(ParseException e) {\n Log.d(TAG, \"Failed grabbing the Photo: \" + e);\n return null;\n }\n }",
"List<AlbumVO> searchAlbum(String searchText) throws Exception;",
"@Transactional(readOnly = true)\n public List<Picture> search(String query) {\n log.debug(\"Request to search Pictures for query {}\", query);\n return StreamSupport\n .stream(pictureSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }",
"public byte[] getPhoto(String rpiId, String time) throws SQLException, IOException;",
"@Override\r\n\tpublic Set<String> getPhotos(String placeId) {\n\t\tif(conn == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tSet<String> photos = new HashSet<>();\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT photo from photos WHERE place_id = ?\";\r\n\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\r\n\t\t\tps.setString(1, placeId);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tString photo =rs.getString(\"photo\");\r\n\t\t\t\tphotos.add(photo);\r\n\t\t\t}\r\n\r\n\t\t}catch (SQLException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\treturn photos;\r\n\t}",
"List<NewsInfo> selectByExampleWithBLOBs(NewsInfoExample example);",
"@GetMapping(\"images/album/{idOrTitle}/photos\")\n\tprivate List<PhotoEntity> getImagesFromAlbum(@PathVariable String idOrTitle) {\n\t\tList<PhotoEntity> list = new ArrayList<PhotoEntity>();\n\t\tPhotosetEntity photoset = null;\n\t\t\n\t\tlog.info(\"Request to retrieve photos from photoset...\");\n\t\t\n\t\t// Authorize edel-read or do not retrieve anything\n\t\tif (util.authEdelRead() != null) {\n\t\t\t\n\t\t\tphotoset = service.getPhotosetByIdOrTitle(idOrTitle);\n\t\t\t\n\t\t\t// If photoset is not null, set the list of PhotoEntity\n\t\t\tif (photoset != null) {\n\t\t\t\tlist = service.getPhotosFromPhotoset(photoset);\n\t\t\t\tlog.info(\"Request completed with photoset.\");\n\t\t\t} else {\n\t\t\t\tlog.warn(\"Request completed with no photoset.\");\n\t\t\t}\n\t\t} else {\n\t\t\tlog.warn(\"Request completed with failed Authorization.\");\n\t\t}\n\t\t\n\t\treturn list;\n\t}",
"public void getPhoto() {\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n //for startActivityForResult, the second parameter, requestCode is used to identify this particular intent\n startActivityForResult(intent, 1);\n }",
"public void search() throws ParseException {\n for(Album a : user.getAlbums()){\n for(Photo p : a.getPhotos()){\n tempAlbum.addPhoto(p);\n }\n }\n\n fromDateFilter();\n toDateFilter();\n tagFilter();\n\n\n ObservableList<Photo> filteredList = FXCollections.observableArrayList();\n\n for(Photo p : tempAlbum.getPhotos()){\n filteredList.add(p);\n }\n\n resultsListView.setItems(filteredList);\n\n resultsListView.setCellFactory(param -> new ListCell<Photo>() {\n\n private ImageView imageView = new ImageView();\n @Override\n public void updateItem(Photo name, boolean empty) {\n super.updateItem(name, empty);\n if(empty){\n setText(null);\n setGraphic(null);\n }else{\n try {\n imageView.setImage(new Image(new FileInputStream(name.getLocation())));\n imageView.setFitHeight(50);\n imageView.setFitWidth(50);\n imageView.setPreserveRatio(true);\n setText(name.toString());\n setGraphic(imageView);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n }\n\n }\n });\n\n }",
"@GetMapping(\"/{id}/photos\")\n public GenericResponse getUserPhotos(@PathVariable(value = \"id\") String fbId) {\n // lookup user separately, so that exception is thrown when user does not exist\n userRepository.findById(fbId)\n .orElseThrow(() -> new ResourceNotFoundException(\"User\", \"fbId\", fbId));\n return new GenericResponse(photoRepository.findAllByUserId(fbId).orElse(new ArrayList<>()));\n }",
"public StreamedContent getPhotoByByte(byte[] p) {\n FacesContext context = FacesContext.getCurrentInstance();\n if (context.getRenderResponse()) {\n return new DefaultStreamedContent();\n } else if (p == null) {\n return new DefaultStreamedContent();\n } else {\n InputStream targetStream = new ByteArrayInputStream(p);\n StreamedContent str = DefaultStreamedContent.builder().contentType(\"image/png\").name(\"photo.png\").stream(() -> targetStream).build();\n return str;\n }\n }",
"public static ArrayList<Product> selectPhotos(String artistEmail) throws SQLException{\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n }\r\n catch(ClassNotFoundException ex) {\r\n \r\n System.exit(1);\r\n }\r\n String URL = \"jdbc:mysql://localhost/phototest\";\r\n String USER = \"root\";\r\n String PASS = \"\";\r\n Connection connection = DriverManager.getConnection(URL, USER, PASS);\r\n PreparedStatement ps = null;\r\n ResultSet rs = null;\r\n \r\n String query = \"SELECT id,about,url,price,type,title,name FROM photos \" + \"WHERE artistEmail = ?\";\r\n \r\n try{\r\n ps = connection.prepareStatement(query);\r\n ps.setString(1, artistEmail);\r\n ArrayList<Product> products = new ArrayList<Product>();\r\n rs = ps.executeQuery();\r\n while(rs.next())\r\n {\r\n Product p = new Product();\r\n p.setCode(rs.getString(\"id\"));\r\n p.setDescription(rs.getString(\"about\"));\r\n p.setImageURL(rs.getString(\"url\"));\r\n p.setPrice(rs.getDouble(\"price\"));\r\n p.setType(rs.getString(\"type\"));\r\n p.setTitle(rs.getString(\"title\"));\r\n p.setName(rs.getString(\"name\"));\r\n products.add(p);\r\n }\r\n return products;\r\n }\r\n catch(SQLException e){\r\n e.printStackTrace();\r\n return null;\r\n }\r\n finally\r\n {\r\n DBUtil.closeResultSet(rs);\r\n DBUtil.closePreparedStatement(ps);\r\n //pool.freeConnection(connection);\r\n }\r\n }",
"public List<RubricaFieldDTO> addressBookGetSearchField() throws ApiException {\n ApiResponse<List<RubricaFieldDTO>> resp = addressBookGetSearchFieldWithHttpInfo();\n return resp.getData();\n }",
"ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);",
"public StreamedContent getPhoto(Patient p) {\n FacesContext context = FacesContext.getCurrentInstance();\n if (context.getRenderResponse()) {\n return new DefaultStreamedContent();\n } else if (p == null) {\n return new DefaultStreamedContent();\n } else {\n if (p.getId() != null && p.getBaImage() != null) {\n //////System.out.println(\"giving image\");\n InputStream targetStream = new ByteArrayInputStream(p.getBaImage());\n StreamedContent str = DefaultStreamedContent.builder().contentType(p.getFileType()).name(p.getFileName()).stream(() -> targetStream).build();\n return str;\n// return new DefaultStreamedContent(new ByteArrayInputStream(p.getBaImage()), p.getFileType(), p.getFileName());\n } else {\n return new DefaultStreamedContent();\n }\n }\n\n }",
"ImageContentData findContentData(String imageId);",
"@RequestMapping(value = \"/{userID}\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<Photo> getPhotos(@PathVariable long userID) {\n\t\treturn photoServices.getPhotos(userID);\n\t}",
"public List<PropertyImages> findByPropertyData(String propertyDataUuid) throws PropertyImagesDaoException\n\t{\n\t\ttry {\n\t\t\treturn getJdbcTemplate().query(\"SELECT ID, TITLE, TYPE, SIZE, SRC_URL, PROPERTY_DATA_UUID FROM \" + getTableName() + \" WHERE PROPERTY_DATA_UUID = ?\", this,propertyDataUuid);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new PropertyImagesDaoException(\"Query failed\", e);\n\t\t}\n\t\t\n\t}",
"List<AccuseInfo> selectByExampleWithBLOBs(AccuseInfoExample example);",
"List<trackcomment> selectByExampleWithBLOBs(trackcommentExample example);",
"@GET(\"{roverName}/photos\")\n Call<NasaApiResponse> getPhotos(\n @Path(\"roverName\") String roverName,\n @Query(\"sol\") int sol,\n @Query(\"page\") int page,\n @Query(\"api_key\") String apiKey);",
"private Cursor initilizeData(){\n\t String[] dataToAccess = new String[]{\n\t\t \tMediaStore.Images.Media._ID,\t\t\t// This is image file ID\n\t\t MediaStore.Images.Media.DISPLAY_NAME, // filename\n\t\t MediaStore.Images.Media.DATE_TAKEN\t\t// creation date\n\t\t };\n\t String limitSize = MediaStore.Images.Media.DATE_TAKEN + \" desc limit 25\"; // desc: says descending order (in reverse newest first), limit 5: 5, e.g., can also do: \"%s limit 5\"\n\t \n\t // Make the query.\n\t System.out.println(dataToAccess.toString());\n\t Context c = getActivity().getApplicationContext();\n\t mImageRef = c.getContentResolver().query(\n\t \t\tMediaStore.Images.Media.EXTERNAL_CONTENT_URI, // Get the base URI for all of the images\n\t dataToAccess, \t// Which columns to return\n\t \"\", \t// Which rows to return (all rows)\n\t null, \t// Selection arguments (none)\n\t limitSize // Ordering\n\t \t);\n\t \n\t\t// make sure there is something to move to! \n\t\t// \t(otherwise, this will crash if there are no photos) \n\t System.out.println(\"Count: \" + mImageRef.getCount());\n\t\tif (mImageRef.getCount() > 0)\n\t\t\tmImageRef.moveToFirst();\n\t\t\n\t\t\n\t\treturn mImageRef;\n\t}",
"@Override\r\n public PhotoDTO selectPhotoById(int photoId) {\r\n PreparedStatement selectPhotoById =\r\n dalService.getPreparedStatement(\"SELECT * FROM project.photos WHERE photo_id = ?\");\r\n try {\r\n selectPhotoById.setInt(1, photoId);\r\n PhotoDTO photo = null;\r\n try (ResultSet rs = selectPhotoById.executeQuery()) {\r\n\r\n while (rs.next()) {\r\n photo = setPhotoDto(rs);\r\n }\r\n return photo;\r\n }\r\n } catch (SQLException e) {\r\n throw new FatalException(e.getMessage());\r\n }\r\n }",
"List<HpItemParamItem> selectByExampleWithBLOBs(HpItemParamItemExample example);",
"private void fetchDataFromDatabase() {\n\n listOfPersons.clear();\n Cursor cursor = AppDatabase.getInstance(context).getPersonList();\n if (cursor != null && cursor.moveToFirst()) {\n do {\n String firstName = cursor.getString(cursor.getColumnIndex(\"firstName\"));\n String lastName = cursor.getString(cursor.getColumnIndex(\"lastName\"));\n String email = cursor.getString(cursor.getColumnIndex(\"email\"));\n String dob = cursor.getString(cursor.getColumnIndex(\"dobDate\"));\n String phoneNumber = cursor.getString(cursor.getColumnIndex(\"phoneNumber\"));\n String pictureUrl = cursor.getString(cursor.getColumnIndex(\"pictureMediumUrl\"));\n String pictureImageData = cursor.getString(cursor.getColumnIndex(\"pictureImageData\"));\n String fullName = firstName + \" \" + lastName;\n Bitmap imageBitmap = UtilFunctions.stringToBitmap(pictureImageData);\n\n PersonWrapper person = new PersonWrapper(fullName, email, dob, phoneNumber, pictureUrl, imageBitmap);\n listOfPersons.add(person);\n\n } while (cursor.moveToNext());\n }\n\n initView(listOfPersons);\n }",
"public PictureData searchPicture(String goodsId) {\n\t\tString sql = \"from PictureData p where p.goodsId = '\" + goodsId +\"' \";\n\t\tList<PictureData> list = hibernateDao.queryList(sql, null);\n\t\tif(list.size()!=0)\n\t\t\treturn list.get(0);\n\t\telse\n\t\t\treturn null;\n\t\t\n\t}",
"List<WpPostsWithBLOBs> selectByExampleWithBLOBs(WpPostsExample example);",
"public interface PhotoRepository extends CrudRepository<Photo, UUID> {\n\n Photo findByFilename(String filename);\n}",
"byte[] getPhotoDetails(Long customerId,String type) throws EOTException;",
"public List<Image> getAllImage()\n {\n GetAllImageQuery getAllImageQuery = new GetAllImageQuery();\n return super.queryResult(getAllImageQuery);\n }",
"@Repository\npublic interface PhotoRepository extends JpaRepository<Photo,Long> {\n\n public List<Photo> findByProduct(Product product);\n}",
"public List<PropertyImages> findWherePropertyDataUuidEquals(String propertyDataUuid) throws PropertyImagesDaoException\n\t{\n\t\ttry {\n\t\t\treturn getJdbcTemplate().query(\"SELECT ID, TITLE, TYPE, SIZE, SRC_URL, PROPERTY_DATA_UUID FROM \" + getTableName() + \" WHERE PROPERTY_DATA_UUID = ? ORDER BY PROPERTY_DATA_UUID\", this,propertyDataUuid);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new PropertyImagesDaoException(\"Query failed\", e);\n\t\t}\n\t\t\n\t}",
"public static List getAllImgs() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT imgUrl FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n String imgUrl = result.getString(\"imgUrl\");\n polovniautomobili.add(imgUrl);\n }\n\n ps.close();\n CONNECTION.close();\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n return polovniautomobili;\n }",
"PicInfo selectByPrimaryKey(Integer r_p_i);",
"List<EventWithBLOBs> selectByExampleWithBLOBs(EventExample example);",
"public static ArrayList<Product> selectAllPhotos() throws SQLException{\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n }\r\n catch(ClassNotFoundException ex) {\r\n \r\n System.exit(1);\r\n }\r\n String URL = \"jdbc:mysql://localhost/phototest\";\r\n String USER = \"root\";\r\n String PASS = \"\";\r\n Connection connection = DriverManager.getConnection(URL, USER, PASS);\r\n PreparedStatement ps = null;\r\n ResultSet rs = null;\r\n \r\n String query = \"SELECT id,artistEmail,url,name,price,about FROM photos\";\r\n \r\n try{\r\n ps = connection.prepareStatement(query);\r\n \r\n ArrayList<Product> products = new ArrayList<Product>();\r\n rs = ps.executeQuery();\r\n while(rs.next())\r\n {\r\n Product p = new Product();\r\n p.setCode(rs.getString(\"id\"));\r\n p.setArtistEmail(rs.getString(\"artistEmail\"));\r\n p.setName(rs.getString(\"name\"));\r\n p.setImageURL(rs.getString(\"url\"));\r\n p.setPrice(rs.getDouble(\"price\"));\r\n p.setDescription(rs.getString(\"about\"));\r\n \r\n products.add(p);\r\n }\r\n return products;\r\n }\r\n catch(SQLException e){\r\n e.printStackTrace();\r\n return null;\r\n }\r\n finally\r\n {\r\n DBUtil.closeResultSet(rs);\r\n DBUtil.closePreparedStatement(ps);\r\n //pool.freeConnection(connection);\r\n }\r\n }",
"WpPostsWithBLOBs selectByPrimaryKey(Long id);",
"List<ConfigData> selectByExampleWithBLOBs(ConfigDataExample example);",
"List<Media> search(double latitude, double longitude, int distance);",
"private void invokeGetPhoto() {\n // invoke the image gallery using an implicit intent.\n Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);\n // Show only images, no videos or anything else\n photoPickerIntent.setType(\"image/*\");\n photoPickerIntent.setAction(Intent.ACTION_GET_CONTENT);\n // Always show the chooser (if there are multiple options available)\n startActivityForResult(Intent.createChooser(photoPickerIntent, \"Choose a picture\"), REQUEST_IMAGE_CAPTURE);\n }",
"@Repository\npublic interface PhotosRepository extends JpaRepository<EventPhotosEntity, Long>{\n List<EventPhotosEntity> findAll();\n}",
"public PhotoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public void loadPhoto(String photopath) {\n if (photopath != null)\r\n {\r\n Bitmap bitmap = BitmapFactory.decodeFile(photopath);\r\n Bitmap bitmapReduced = Bitmap.createScaledBitmap(bitmap, 300, 300, true);\r\n photoField.setImageBitmap(bitmapReduced);\r\n photoField.setScaleType(ImageView.ScaleType.FIT_XY);\r\n photoField.setTag(photopath);\r\n\r\n }\r\n }",
"TbSerdeParams selectOneByExampleWithBLOBs(TbSerdeParamsExample example);",
"List<SportAlbumPicture> selectByExample(SportAlbumPictureExample example);",
"String getBlobField();",
"@SuppressWarnings(\"rawtypes\")\n\t@Override\n\tpublic List<PoVO> searchData(List<? extends SearchObject> searchCriteria, int first, int pageSize, String sortField,\n\t\t\tboolean sortOrder) throws Exception {\n\t\treturn poDAO.searchData(searchCriteria, first, pageSize, sortField, sortOrder);\n\t}",
"private ArrayList<ImageItem> getData() {\n final ArrayList<ImageItem> imageItems = new ArrayList<>();\n // TypedArray imgs = getResources().obtainTypedArray(R.array.image_ids);\n for (int i = 0; i < f.size(); i++) {\n Bitmap bitmap = imageLoader.loadImageSync(\"file://\" + f.get(i));;\n imageItems.add(new ImageItem(bitmap, \"Image#\" + i));\n }\n return imageItems;\n }",
"byte[] getRecipeImage(CharSequence query);",
"public List selectByExampleWithBLOBs(ProjectFilesExample example) {\r\n List list = getSqlMapClientTemplate().queryForList(\"project_files.ibatorgenerated_selectByExampleWithBLOBs\", example);\r\n return list;\r\n }",
"Data<List<Pins>> getSearchPinsCursor(String query, String cursor, Integer limit, String fields);",
"public ArrayList<AshirBlogPostingHelper> getAllPots() {\n String query = \"SELECT * FROM \" + NAME_OF_TABLE;\n ArrayList<AshirBlogPostingHelper> ashirPostsList = new ArrayList<AshirBlogPostingHelper>();\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(query, null);\n if (c != null) {\n while (c.moveToNext()) {\n String post = c.getString(c.getColumnIndex(Col_2));\n try {\n byte[] getImageFromDb = c.getBlob(c.getColumnIndex(Col_3));\n AshirBlogPostingHelper postHelper = new AshirBlogPostingHelper();\n\n postHelper.setDataPost(post);\n postHelper.setImage(getImageFromDb);\n\n ashirPostsList.add(postHelper);\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }\n\n db.close();\n return ashirPostsList;\n\n }",
"public String getPhoto() {\r\n return photo;\r\n }",
"public String getPhoto() {\r\n return photo;\r\n }",
"List<TbSerdeParams> selectByExampleWithBLOBs(TbSerdeParamsExample example);",
"public ApiResponse<List<RubricaFieldDTO>> addressBookGetSearchFieldWithHttpInfo() throws ApiException {\n com.squareup.okhttp.Call call = addressBookGetSearchFieldValidateBeforeCall(null, null);\n Type localVarReturnType = new TypeToken<List<RubricaFieldDTO>>(){}.getType();\n return apiClient.execute(call, localVarReturnType);\n }",
"public List<? extends GTData> search(String query, Type type) throws IOException {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Search search = new Search.Builder(query)\n .addIndex(INDEX_NAME)\n .addType(type.toString())\n .setParameter(Parameters.SIZE, 10000)\n .build();\n SearchResult result = client.execute(search);\n\n List<? extends GTData> dataList = null;\n if (type.equals(Bid.class)) {\n dataList = result.getSourceAsObjectList(Bid.class);\n } else if (type.equals(Task.class)) {\n dataList = result.getSourceAsObjectList(Task.class);\n } else if (type.equals(User.class)) {\n dataList = result.getSourceAsObjectList(User.class);\n } else if (type.equals(Photo.class)) {\n dataList = result.getSourceAsObjectList(Photo.class);\n }\n\n return dataList;\n }"
] | [
"0.5968841",
"0.5761362",
"0.5700725",
"0.5525773",
"0.5511129",
"0.55077934",
"0.55077934",
"0.5484401",
"0.541424",
"0.5401454",
"0.53964347",
"0.53734994",
"0.5353342",
"0.53262407",
"0.53123796",
"0.5298657",
"0.52915186",
"0.5241072",
"0.52270895",
"0.52076834",
"0.5197746",
"0.5188863",
"0.51774234",
"0.5163824",
"0.5152936",
"0.51520646",
"0.5146726",
"0.51376027",
"0.51311296",
"0.5130601",
"0.5103199",
"0.50971043",
"0.5096707",
"0.5087344",
"0.5086017",
"0.5084792",
"0.50794095",
"0.50650895",
"0.5061113",
"0.5055611",
"0.5054011",
"0.5048129",
"0.503713",
"0.50359344",
"0.50285697",
"0.502343",
"0.5013519",
"0.5004396",
"0.5002954",
"0.49954545",
"0.49935073",
"0.49879357",
"0.4986417",
"0.4986235",
"0.49772972",
"0.497509",
"0.49710855",
"0.49666104",
"0.49642202",
"0.4961446",
"0.49580997",
"0.49541706",
"0.49514613",
"0.49502856",
"0.49358374",
"0.49325824",
"0.49249282",
"0.49212426",
"0.49128172",
"0.49126044",
"0.49106616",
"0.4894984",
"0.4880525",
"0.4870464",
"0.48627728",
"0.48618177",
"0.48603866",
"0.48565385",
"0.4853585",
"0.48528162",
"0.48507616",
"0.48464936",
"0.48304096",
"0.48261848",
"0.48122057",
"0.48094684",
"0.4809123",
"0.48040736",
"0.4791712",
"0.4789353",
"0.47853416",
"0.47848204",
"0.4776904",
"0.47760084",
"0.47718832",
"0.47691643",
"0.47691643",
"0.476698",
"0.47652417",
"0.47562274"
] | 0.53564614 | 12 |
Retrieves a list of data object for the specified departmentId field. To use a wildcard search, use a % in the query. | public java.util.List findStudentByDepartmentId(java.lang.Integer departmentId) throws GenericBusinessException {
sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();
try {
String queryString = "from " + Student.class.getName() + " e where e.departmentId like :departmentId ";
// Add a an order by on all primary keys to assure reproducable results.
String orderByPart = "";
orderByPart += " order by e.studentId";
queryString += orderByPart;
Query query = hibernateTemplate.createQuery(queryString);
hibernateTemplate.setQueryParameter(query, "departmentId", departmentId);
List list = hibernateTemplate.list(query);
return list;
} finally {
log.debug("finished findStudentByDepartmentId(java.lang.Integer departmentId)");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Department getDepartmentById(Integer id);",
"public List getDepartmentUserByDEpartment(int departmentId) {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n Query query;\n\n try {\n /*\n * Build HQL (Hibernate Query Language) query to retrieve a list\n * of all the items currently stored by Hibernate.\n */\n\n query = session.createQuery(\"select DepartmentUser from app.user.DepartmentUser DepartmentUser where \"\n + \" DepartmentUser.departmentId= \" + departmentId);\n return query.list();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }",
"@Transactional(readOnly = true)\n public List<Employee> getList(Long departmentId) {\n logger.debug(\"Testing retrieve all employees: {}\", departmentId);\n return Lists.newArrayList(employeeDao.getList(departmentId));\n }",
"public Departmentdetails getDepartmentByName(String departmentName);",
"public List<Department> getAllDepartments();",
"public List<Employee> getAllByDepartment(Department id) throws SQLException {\n Session session = currentSession();\n Transaction transaction = session.beginTransaction();\n Query<Employee> query = session.createQuery(\n \"from Employee as e where e.department = :department\",Employee.class);\n query.setParameter(\"department\", id);\n List<Employee> list = query.list();\n transaction.commit();\n session.close();\n return list;\n }",
"public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentId(Long departmentId) {\n this.departmentId = departmentId;\n }",
"public List<Departmentdetails> getDepartmentDetails();",
"@Override\n public Department getDepartment(int departmentId) {\n return null;\n }",
"public IBaseDTO getDepartment(String id) {\n\t\tIBaseDTO dto=new DynaBeanDTO();\n\t\tSysDepartment sd=(SysDepartment)dao.loadEntity(SysDepartment.class,id);\n\t\t\n\t\tdto.set(\"id\",sd.getId());\n\t\tdto.set(\"name\",sd.getName());\n\t\tdto.set(\"parentId\",sd.getParentId());\n\t\tdto.set(\"remark\",sd.getRemarks());\n\t\tdto.set(\"tagShow\",sd.getTagShow());\n\t\tdto.set(\"admin\",sd.getAdmin());\n\t\treturn dto;\n\t}",
"public Department findOne(long departmentId){\n\t\treturn departmentRepository.findOne(departmentId);\n\t}",
"public Department getDepartmentById(int id) {\n return this.dsl\n .selectFrom(DEPARTMENT)\n .where(DEPARTMENT.ID.eq(id))\n .fetchOne()\n .into(Department.class);\n }",
"@Override\r\n\tpublic Department getDepartmentById(int id) {\n\t\treturn getHibernateTemplate().get(Department.class, id);\r\n\t}",
"public Optional<Department> getDepartmentId(long departmentId) {\n\t\treturn departmentRepository.findById(departmentId);\n\t}",
"@Override\n\t/**\n\t * Lista los empleados de un departamento dada su id y lo guardamos en department.\n\t */\n\tpublic List<Employees> listadoPorDepartamento(Object department) {\n\t\tList<Employees> ls = null;\n\n\t\tls = ((SQLQuery) sm.obtenerSesionNueva().createQuery(\n\t\t\t\tInstruccionesSQL.CONSULTAR_EMPLEADOS_X_DEPARTAMENTOS\n\t\t\t\t\t\t+ department)).addEntity(Employees.class).list();\n\n\t\treturn ls;\n\t}",
"public List<GLJournalApprovalVO> getDepartmentfromuniquecode(String OrgId, String ClientId,\n String deptId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" select f.c_salesregion_id,sal.name from fact_acct f join c_salesregion sal on sal.c_salesregion_id = f.c_salesregion_id WHERE f.AD_ORG_ID IN (\"\n + OrgId + \") \" + \" AND f.AD_CLIENT_ID IN (\" + ClientId\n + \") AND f.em_efin_uniquecode IN ('\" + deptId\n + \"') and f.c_bpartner_id is not null and f.c_salesregion_id is not null and f.c_project_id is not null and f.c_campaign_id is not null and f.c_activity_id is not null and f.user1_id is not null and f.user2_id is not null limit 1\";\n st = conn.prepareStatement(sqlQuery);\n rs = st.executeQuery();\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setId(rs.getString(1));\n VO.setName(rs.getString(2));\n list.add(VO);\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }",
"public ResponseEntity<BasicApiResponse<DepartmentResponse>> getDepartmentById(Long departmentId) {\n Optional<DepartmentModel> departmentModelOptional = departmentRepository.findById(departmentId);\n\n //Checking if the Department is available\n if(departmentModelOptional.isPresent()){\n //If department found\n DepartmentModel departmentModel = departmentModelOptional.get();\n\n DepartmentResponse departmentResponse = new DepartmentResponse(departmentModel.getId(),\n departmentModel.getName(), departmentModel.getActive());\n\n return new ResponseEntity<>(new BasicApiResponse<>(200,\"Department Found\",departmentResponse),\n HttpStatus.OK);\n }\n else {\n //If No department found\n throw new ResponseStatusException(HttpStatus.NOT_FOUND, \"No Department found with ID: \" + departmentId);\n }\n }",
"@GetMapping(\"/company-departments/{id}\")\n @Timed\n public ResponseEntity<CompanyDepartment> getCompanyDepartment(@PathVariable Long id) {\n log.debug(\"REST request to get CompanyDepartment : {}\", id);\n CompanyDepartment companyDepartment = companyDepartmentRepository.findOne(id);\n return Optional.ofNullable(companyDepartment)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }",
"public void setDepartmentId(Integer departmentId) {\n this.departmentId = departmentId;\n }",
"Department findById(long id);",
"@Override\n\tpublic Department fetchByPrimaryKey(long departmentId)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((Serializable)departmentId);\n\t}",
"public void setDepartmentId (java.lang.String departmentId) {\r\n\t\tthis.departmentId = departmentId;\r\n\t}",
"public ResultSet getDepartmentByID(int dept_no);",
"@ApiOperation(value = \"Get a list of Products on Departments\", response = Map.class)\n\t@ApiResponses(value = {\n @ApiResponse(code = 200, message = \"Return the total and a list of products\", response = ProductGetAllDTO.class ),\n @ApiResponse(code = 400, message = \"Return a error object\", response = error.class) })\n\t\n\t@GetMapping(path = \"/api/products/inDepartment/{department_id}\")\n\tpublic ResponseEntity<Map<String, Object>> productOfDepartment(\n\t\t\t@PathVariable(name = \"department_id\", required = true) Integer department_id,\n\t\t\t@RequestParam(name = \"page\", required = false, defaultValue = \"1\") Integer page,\n\t\t\t@RequestParam(name = \"limit\", required = false, defaultValue = \"20\") Integer limit,\n\t\t\t@RequestParam(name = \"description_length\", required = false, defaultValue = \"200\") Integer description_length) {\n\n\t\treturn ResponseEntity\n\t\t\t\t.ok(productService.productDepartmentSearch(department_id, page, limit, description_length));\n\n\t}",
"public Department FindById(Department d) {\n\t\treturn ddi.FindById(d);\n\t}",
"public ResultSet getDepartmentByName(String dept_name);",
"public Department getSingleDepartment(Integer id) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from Department as department where department.departmentId = ?\",\n new Object[]{id},\n new Type[]{Hibernate.INTEGER});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (Department) results.get(0);\n }\n\n }",
"public Department getById(long id) {\n\t return entityManager.find(Department.class, id);\n\t }",
"@Override\n\tpublic GappDepartment getDepartmentId(Integer id) {\n\t\treturn entityManager.find(GappDepartment.class, id);\n\t\t// return entityManager.createQuery(\"from GappUsers\",\n\t\t// GappUsers.class).getResultList();\n\t}",
"public ArrayList<Empleado> getEmpleadosDepartamento(String idDept) {\r\n\t\tArrayList<Empleado> e = new ArrayList<Empleado>();\r\n\t\tfor (int i=0; i<empleados.size(); i++) {\r\n\t\t\tif (empleados.get(i).getDepartamentoId().equals(idDept))\r\n\t\t\t\te.add(empleados.get(i));\r\n\t\t}\r\n\t\tif (e.size()>0) return e;\r\n\t\treturn controlador.getEmpleadosDepartamento(getEmpleadoActual().getEmplId(),idDept);\r\n\t}",
"@Override\n\tpublic Optional<Department> findDepartmentById(Integer id) {\n\t\treturn departmentRepository.findById(id);\n\t}",
"public List<CourseObject> GetAllDepartmentCourses(int dept_id){\r\n String sql = \"SELECT * FROM COURSE WHERE DEPARTMENT_ID = ?\";\r\n List<CourseObject> courseObjectList = null;\r\n try{\r\n courseObjectList = jdbcTemplate.query(sql,new Object[]{dept_id},new BeanPropertyRowMapper(CourseObject.class));\r\n }catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n return courseObjectList;\r\n }",
"public void setDepartmentid(Integer departmentid) {\n this.departmentid = departmentid;\n }",
"public void setDepartmentid(Integer departmentid) {\n this.departmentid = departmentid;\n }",
"@Override\n\tpublic ArrayList<Employee> getEmployeesByDepartmentID(int depid) throws RemoteException {\n\t\treturn DAManager.getEmployeesByDepartmentID(depid);\n\t}",
"@Override\r\n\tpublic Department getDepartment(Long id) throws DepartmentNotFoundException {\n\t\tOptional<Department> department = deptRepo.findById(id);\r\n\t\t\r\n\t\tif(!department.isPresent()) {\r\n\t\t\tthrow new DepartmentNotFoundException(\"Oops..! No Department is available for the id.\");\r\n\t\t}\r\n\t\t\r\n\t\treturn department.get();\r\n\t}",
"public List<Department> getAll() {\n\t\tList<Department> result = new ArrayList<Department>();\n\t\tString query =\"Select * from departments\";\n\t\tStatement stmt = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = con.createStatement();\n\t\t\trs = stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\tDepartment dept =new Department();\n\t\t\t\tdept.setDepartmentId(rs.getInt(\"department_id\"));\n\t\t\t\tdept.setDepartmentName(rs.getString(\"department_name\"));\n\t\t\t\tdept.setLocationId(rs.getString(\"location_id\"));\n\t\t\t\tdept.setManagerId(rs.getString(\"manager_id\"));\n\t\t\t\t\n\t\t\t\tresult.add(dept);\n\t\t\t}\n\t\t}catch (SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"@RequestMapping(path = \"/listaContactoDepartamento/{idDepartamento}\", method = RequestMethod.GET)\r\n\tpublic List<ContactoDepartamento> listaContactoDepartamentos(\r\n\t\t\t@PathVariable(\"idDepartamento\") final long idDepartamento) {\r\n\t\tfinal Departamento departamento = departamentoService.findById(idDepartamento);\r\n\t\treturn contactoDepartamentoService.findByDepartamento(departamento);\r\n\t}",
"@GetMapping(\"/department/{deptId}/staff\")\n\tpublic List<Staff> getStaffByDepartment(@PathVariable(\"deptId\") int deptid) {\n\t\treturn staffService.getStaffByDepartment(deptid);\n\t}",
"@RequestMapping(\"/departments/{departmentId}\")\n\tpublic ModelAndView departmentHandler(@PathVariable(\"departmentId\") int departmentId) {\n\n\t\tString viewName = \"departments/show\";\n\t\tModelAndView mav = new ModelAndView(viewName);\n\t\tmav.addObject(this.company.loadDepartment(departmentId));\n\n\t\tlogger.info(\"departmentHandler(): departmentId[\" + departmentId + \"], viewName[\" + viewName + \"]\");\n\t\treturn mav;\n\t}",
"@RequestMapping(\"/select.do\")\r\n\t@ResponseBody\r\n\tpublic JsonResult selectDept(String deptId){\n\t\tList<Department> list = deptService.selectDept(deptId);\r\n\t\treturn new JsonResult(list);\r\n\t}",
"Dept findByDeptId(Long deptId);",
"public Department getID(int id) {\n\t\tDepartment deptr = new Department();\n\t\tString query =\"Select * from departments where department_id=\"+id;\n\t\tStatement stmt = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\t\n\t\t\tstmt = con.createStatement();\n\t\t\trs = stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile(rs.next()) {\n\t\t\t\t\n\t\t\t\tdeptr.setDepartmentId(rs.getInt(\"department_id\"));\n\t\t\t\tdeptr.setDepartmentName(rs.getString(\"department_name\"));\n\t\t\t\tdeptr.setLocationId(rs.getString(\"location_id\"));\n\t\t\t\tdeptr.setManagerId(rs.getString(\"manager_id\"));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}catch (SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn deptr;\n\t}",
"public List<Department> getAllDepartments() {\n return this.departmentDao.findAll();\n }",
"@Override\n\tpublic List<Department> getAllDepartement(Department record) {\n\t\treturn this.departementMapper.getAllDepartement(record);\n\t}",
"public Department getSingleDepartment(String department) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from Department as department where department.department = ?\",\n new Object[]{department},\n new Type[]{Hibernate.STRING});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (Department) results.get(0);\n }\n\n }",
"public String getDepartmentid() {\n return departmentid;\n }",
"private List<Department> pamDepts(Long deptId) {\n \n PersistenceManager pm = PMF.get().getPersistenceManager();\n depts = new ArrayList<Department>();\n // add primary dept\n Department dPrimary = pm.getObjectById(Department.class, deptId);\n depts.add(dPrimary); \n // primary dept's mutual aid depts\n String dMutualAid = dPrimary.getmutualAid();\n if (dMutualAid.length() != 0) {\n \n if (dMutualAid.contains(\",\")) {\n String[] maDepts = dMutualAid.split(\", \", -1);\n for (int i=0; i< maDepts.length; i++) {\n Long maDeptId = Long.valueOf(maDepts[i]);\n Department dMAs = pm.getObjectById(Department.class, maDeptId);\n if (dMAs != null) {\n depts.add(dMAs);\n }\n }\n } else {\n Department dMAsolo = pm.getObjectById(Department.class, Long.valueOf((dMutualAid).trim()));\n if (dMAsolo != null) {\n depts.add(dMAsolo);\n }\n }\n } \n System.out.println(\"Depts Qty: \" + depts.size());\n System.out.println(\"Exit: pamDepts\");\n return depts;\n }",
"@Override\r\n\tpublic List<Department> getAllDepartment() {\n\t\tString hql = \"from Department\";\r\n\t\treturn (List<Department>) getHibernateTemplate().find(hql);\r\n\t}",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public Long getDepartmentId() {\n return departmentId;\n }",
"public Department showDepById(int id)\n\t\t\tthrows ClassNotFoundException, FileNotFoundException, SQLException, IOException {\n\t\tConnection connection = jdbcUtils.connect();\n\t\tDepartment department = new Department();\n\t\t// Create a statement object\n\t\tString sql = \"SELECT * FROM Department WHERE DepartmentId = ?\";\n\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\n\t\t// set parameter\n\t\tpreparedStatement.setInt(1, id);\n\n\t\t// Step 4: execute query\n\t\tResultSet resultSet = preparedStatement.executeQuery();\n\n\t\t// Step 5: handling result set\n\t\tif (resultSet.next()) {\n\t\t\tSystem.out.println((\"DepartmentID: \" + resultSet.getInt(\"DepartmentId\") + \" //\" + \" DepartmentName: \"\n\t\t\t\t\t+ resultSet.getString(\"DepartmentName\")));\n\t\t\treturn department;\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Cannot find department which has id = \" + id);\n\t\t}\n\t\tjdbcUtils.disconnect();\n\t\treturn department;\n\t}",
"public List<Department> findAll(){\n\t\treturn departmentRepository.findAll();\n\t}",
"@Override\r\n\tpublic List<Account> getAccountsByDeptId(int deptId) {\n\t\treturn this.accountMapper.selectAccountsByDeptId(deptId);\r\n\t}",
"public List<Department> getAllDepartments()\n\t\t{\n\t\t\treturn departmentRepository.findAll();\n\t\t}",
"public final void setDepartmentId(final Integer dId) {\n this.departmentId = dId;\n }",
"@Override\r\n\tpublic List<Department> getDepartmentByName(String name) {\n\t\tString hql = \"from Department d where d.name =?\";\r\n\t\treturn (List<Department>) getHibernateTemplate().find(hql, name);\r\n\t}",
"public static List getAlumniByDept(String department)\n { \n session=SessionFact.getSessionFact().openSession();\n List li=session.createQuery(\"from Alumni_data where department=:department\").setString(\"department\", department).list();\n session.close();\n return li;\n }",
"public static List getDeptList() \n {\n session=SessionFact.getSessionFact().openSession();\n List li=session.createQuery(\"select department from Alumni_data group by department\").list();\n session.close();\n return li;\n }",
"public List<CatalogDescription> getCatalogDescriptionsByDepartment(String department);",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"public Integer getDepartmentId() {\n return departmentId;\n }",
"public void setDepartmentId(int value) {\n this.departmentId = value;\n }",
"@Override\r\n\tpublic List<Department> getAllDepartments() {\n\t\treturn deptRepo.findAll();\r\n\t}",
"public ArrayList<Department> getAllDepartments() {\n ArrayList<Department> toReturn = new ArrayList<Department>();\n Connection connect = null;\n try {\n connect = DBConnection.getConnection();\n Statement stmt = connect.createStatement();\n rs = stmt.executeQuery(\"SELECT * FROM \" + TABLE + \" order by title\");\n connect.commit();\n while (rs.next()) {\n Department b = getDepartmentFromResultSet(rs);\n toReturn.add(b);\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n DBConnection.releaseConnection(connect);\n }\n return toReturn;\n }",
"public ResponseEntity<ApiMessageResponse> deleteDepartment(Long departmentId) {\n Optional<DepartmentModel> departmentModelOptional = departmentRepository.findById(departmentId);\n //Checking if the Department is available\n if (departmentModelOptional.isPresent()) {\n //If department found\n DepartmentModel departmentModel = departmentModelOptional.get();\n\n departmentRepository.delete(departmentModel);\n\n return new ResponseEntity<>(new ApiMessageResponse(200, \"Department info delete Successful\"),\n HttpStatus.OK);\n } else {\n //If No department found\n throw new ResponseStatusException(HttpStatus.NOT_FOUND, \"No Department found with ID: \" + departmentId);\n }\n }",
"void getAllDeparments(Vector<Integer> departmentIDs, Vector<String> departmentCodes, Vector<Integer> categoryIDs, String empresa);",
"public java.lang.String getDepartmentId () {\r\n\t\treturn departmentId;\r\n\t}",
"public List<LabelValueBean> getDepListByDep(String id) {\n\t\tSysDepartment sd=(SysDepartment)dao.loadEntity(SysDepartment.class,id);\n\t\tif(sd==null)\n\t\t\treturn null;\n\t\tList<LabelValueBean> depList=new ArrayList<LabelValueBean>();\n\t\tLabelValueBean lvb1=new LabelValueBean();\n\t\tlvb1.setLabel(\"--\"+sd.getName());\n\t\tlvb1.setValue(sd.getId());\n\t\tdepList.add(lvb1);\n\t\tObject[] re=dao.findEntity(subDep(id));\n\t\tfor(int i=0,size=re.length;i<size;i++)\n\t\t{\n\t\t\tSysDepartment s=(SysDepartment)re[i];\n\t\t\tLabelValueBean lvb=new LabelValueBean();\n\t\t\tlvb.setLabel(\"--\"+s.getName());\n\t\t\tlvb.setValue(s.getId());\n\t\t\tdepList.add(lvb);\n\t\t}\n\t\treturn depList;\n\t\t\n\t}",
"private List<Department> getDepartments()\n\t\t\tthrows FileNotFoundException, ClassNotFoundException, IOException, SQLException {\n\t\tList<Department> departments = new ArrayList<Department>();\n\t\tStatement statement = connection.createStatement();\n\t\tString sql = \"SELECT * FROM Department\";\n\t\tResultSet resultSet = statement.executeQuery(sql);\n\t\twhile (resultSet.next()) {\n\t\t\tDepartment department = new Department();\n\t\t\tdepartment.setId(resultSet.getInt(\"DepartmentId\"));\n\t\t\tdepartment.setName(resultSet.getString(\"DepartmentName\"));\n\t\t\tdepartments.add(department);\n\t\t}\n\t\treturn departments;\n\n\t}",
"@GetMapping(\"/company-departments\")\n @Timed\n public List<CompanyDepartment> getAllCompanyDepartments() {\n log.debug(\"REST request to get all CompanyDepartments\");\n List<CompanyDepartment> companyDepartments = companyDepartmentRepository.findAll();\n return companyDepartments;\n }",
"public void setDepartmentid(String departmentid) {\n this.departmentid = departmentid == null ? null : departmentid.trim();\n }",
"public int getDepartmentId() {\n return departmentId;\n }",
"public ResponseEntity<BasicApiResponse<List<DepartmentResponse>>> getDepartments() {\n //Getting All The list of departments\n List<DepartmentModel> departmentModels = departmentRepository.findAll();\n\n List<DepartmentResponse> departmentResponses = new ArrayList<>();\n //Converting Department model to department response for sending in frontend\n for (DepartmentModel departmentModel : departmentModels) {\n DepartmentResponse departmentResponse = new DepartmentResponse(departmentModel.getId(),\n departmentModel.getName(), departmentModel.getActive());\n departmentResponses.add(departmentResponse);\n }\n\n if (departmentModels.isEmpty()) {\n //If No department found\n throw new ResponseStatusException(HttpStatus.NOT_FOUND, \"No Departments Found\");\n } else {\n //If department found\n return new ResponseEntity<>(new BasicApiResponse<>(200, \"Departments Found\",\n departmentResponses), HttpStatus.OK);\n }\n\n }",
"@Override\n\tpublic DeptInf findDeptById(Integer id) {\n\t\treturn deptMapper.selectByPrimaryKey(id);\n\t}",
"public Department findByNameDepartment(String nameDepartment);",
"@Override\r\n\tpublic Department getDepartmentByName(String departmentName) {\n\t\treturn deptRepo.findByDepartmentNameIgnoreCase(departmentName);\r\n\t}",
"@Override\n public List<Department> getAllDepartments() {\n return null;\n }",
"public final int getDepartmentId() {\n return departmentId;\n }",
"@Override\n\tpublic List<SaleDepartmentEntity> querySaleDeptsByBillingGroupCode(\n\t\t\tString billGroupCode) {\n\t\treturn null;\n\t}",
"public Integer getDepartmentid() {\n return departmentid;\n }",
"public Integer getDepartmentid() {\n return departmentid;\n }",
"@Override\r\n\tpublic List<Employee> departmentHaveEmployee(int id) {\n\t\treturn employeedao.departmentHaveEmployee(id);\r\n\t}",
"public BaseDepartment findById(Long id) throws Exception {\n\t\tString hql = \"FROM BaseDepartment dp WHERE dp.pkDeptId=?\";\n\t\tObject[] values = {\n\t\t\t\tid\n\t\t};\n\t\ttry {\n\t\t\tList list = this.find(hql, values);\n\t\t\tif(list != null && list.size() > 0 && list.get(0) != null){\n\t\t\t\treturn (BaseDepartment)list.get(0);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public void setDeptId(Long deptId) {\n this.deptId = deptId;\n }",
"public Department findDepartment(Department department) {\n\t\treturn (Department)getHibernateTemplate().find(String.valueOf(department.getIdDepartment())).get(0);\n\t}",
"public ArrayList getAllDepartmentIds() {\n\t\tConnection dbAccess = DataAccess.getDbAccess();\n\t\tStatement sttmnt;\n\t\tResultSet rs;\n\t\ttry {\n\t\t\tsttmnt = dbAccess.createStatement();\n\t\t\trs = sttmnt.executeQuery(\"SELECT dept_id FROM departments\");\n\t\t\twhile (rs.next()) {\n\t\t\t\tdeptIds.add(rs.getInt(\"dept_id\"));\n\t\t\t}\n\t\t\tdbAccess.close();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn deptIds;\n\t}",
"@WebMethod\n public List<Employee> getEmployeesInSpecificDepartment(@WebParam(name = \"arg0\") int dep_id) {\n Connection conn = null;\n List<Employee> emplyeeList = new ArrayList<Employee>();\n try {\n conn = EmpDBUtil.getConnection();\n PreparedStatement pStmt = conn.prepareStatement(\"select * from EMPLOYEES where DEPARTMENT_ID = ?\");\n pStmt.setInt(1, dep_id);\n ResultSet rSet = pStmt.executeQuery();\n while (rSet.next()) {\n Employee emp = new Employee();\n emp.setEmployee_id(rSet.getInt(\"EMPLOYEE_ID\"));\n emp.setFirst_name(rSet.getString(\"FIRST_NAME\"));\n emp.setLast_name(rSet.getString(\"LAST_NAME\"));\n emp.setEmail(rSet.getString(\"EMAIL\"));\n emp.setPhone_number(rSet.getString(\"PHONE_NUMBER\"));\n emp.setHire_date(rSet.getDate(\"HIRE_DATE\"));\n emp.setJop_id(rSet.getString(\"JOB_ID\"));\n emp.setSalary(rSet.getInt(\"SALARY\"));\n emp.setCommission_pct(rSet.getDouble(\"COMMISSION_PCT\"));\n emp.setManager_id(rSet.getInt(\"MANAGER_ID\"));\n emp.setDepartment_id(rSet.getInt(\"DEPARTMENT_ID\"));\n\n emplyeeList.add(emp);\n \n }\n \n System.out.println(\"done\");\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n EmpDBUtil.closeConnection(conn);\n }\n\n return emplyeeList;\n }",
"@Override\npublic List<Department> queryForEmp() {\n\treturn departmentMapper.queryForEmp();\n}",
"public static List<SalDeptPsn> getDeptPsns(Integer branchId, Integer departId) {\r\n\t\tMap qo = new Hashtable();\r\n\t\tif (branchId != null && departId != 0) qo.put(\"branch.id\", branchId);\r\n\t\tif (departId != null && departId != 0) qo.put(\"depart.id\", departId);\r\n\t\treturn getDeptPsns(qo);\r\n\t}",
"@Override\r\n\tpublic DeptBean findByPrimaryKey(BigDecimal id) throws SQLException {\n\t\tDeptBean ret[] = findByDynamicSelect( SQL_SELECT + \" WHERE ID = ?\", new Object[] { id } );\r\n\t\treturn ret.length==0 ? null : ret[0];\r\n\t}",
"public String getId()\r\n {\r\n return departmentBean.getId();\r\n }",
"@Override\n\tpublic List<DeptInf> findDept(DeptInf dept, PageModel pageModel) {\n\t\tDeptInfExample example = new DeptInfExample();\n\t\tList<DeptInf> list = deptMapper.selectByExample(example);\n\t\tint recordCount = list.size();\n\t\tpageModel.setRecordCount(recordCount);\n\t\tif (recordCount != 0) {\n\t\t\tList<DeptInf> depts = new ArrayList<>();\n\t\t\tif (pageModel.getPageSize() * pageModel.getPageIndex() < recordCount) {\n\t\t\t\tfor (int i = pageModel.getFirstLimitParam(); i < pageModel.getPageSize()\n\t\t\t\t\t\t* pageModel.getPageIndex(); i++) {\n\t\t\t\t\tdepts.add(list.get(i));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (int i = pageModel.getFirstLimitParam(); i < recordCount; i++) {\n\t\t\t\t\tdepts.add(list.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn depts;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public ArrayList getDepartments();"
] | [
"0.6798102",
"0.67003554",
"0.66092324",
"0.65395665",
"0.65380186",
"0.6525686",
"0.63917",
"0.63917",
"0.63917",
"0.6364419",
"0.6363853",
"0.6358602",
"0.6311483",
"0.62971467",
"0.62937146",
"0.62851226",
"0.62841743",
"0.6267056",
"0.62592244",
"0.62515795",
"0.6244582",
"0.6244582",
"0.6244582",
"0.62323815",
"0.6228105",
"0.6206171",
"0.6194789",
"0.6089623",
"0.6035968",
"0.60188496",
"0.6013961",
"0.59989953",
"0.5992251",
"0.59898174",
"0.59707654",
"0.595287",
"0.5950236",
"0.5950236",
"0.594888",
"0.5948841",
"0.59458023",
"0.59336317",
"0.59315443",
"0.59260297",
"0.59074897",
"0.588404",
"0.58777076",
"0.5866129",
"0.58571774",
"0.5841237",
"0.5826824",
"0.58207625",
"0.5814526",
"0.5797685",
"0.5797685",
"0.5797685",
"0.5770937",
"0.5770078",
"0.57660383",
"0.5756173",
"0.57481754",
"0.5732822",
"0.57263494",
"0.5720708",
"0.56987077",
"0.5697685",
"0.5697685",
"0.5697685",
"0.5695479",
"0.56948346",
"0.56907344",
"0.5688098",
"0.5680841",
"0.56734693",
"0.5637624",
"0.56192863",
"0.56093544",
"0.56090385",
"0.55682755",
"0.55639595",
"0.55604887",
"0.55411595",
"0.55256397",
"0.5520003",
"0.55192333",
"0.55175185",
"0.5512073",
"0.5512073",
"0.55028534",
"0.55002546",
"0.5498159",
"0.54695064",
"0.54435676",
"0.5436798",
"0.5434264",
"0.5427656",
"0.5425782",
"0.540912",
"0.53927183",
"0.53926235"
] | 0.60013074 | 31 |
INTERFACE METHODS Interface LoaderCallbacks | @Override
public abstract Loader<List<E>> onCreateLoader( int id, Bundle args ); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onLoaderLoading();",
"public interface Loader {\n\t\tpublic void load();\n\t}",
"public interface LoadCallback {\n\n void onPreLoad();\n void onProgressUpdate(long progress);\n void onLoadSucces();\n void onLoadFailed();\n void onLoadCancel();\n}",
"void onLoaderFinished();",
"public interface LoadListener {\n\t\n\tvoid onStart();\n\n\tvoid onSuccess(byte[] data, String url, int actionId);\n\n\tvoid onError(String errorMsg, String url, int actionId);\n}",
"public interface LoaderListener {\n void onFinish(List<Picture> pictures);\n}",
"@Override\r\n public void loadBefore(@NonNull LoadParams params, @NonNull LoadCallback callback) {\n }",
"@Override\r\n\tpublic void onLoadFinished(Loader<Cursor> mLoader, Cursor mCursor) {\n\t\t\r\n\t}",
"public abstract void loaded();",
"protected abstract void loader() throws IOException;",
"public interface ImageViewLoaderListener {\n public void onFinishLoader();\n}",
"@Override\r\n public void loadAfter(@NonNull LoadParams params, @NonNull LoadCallback callback) {\n }",
"public interface DataLoaderListener {\n\n /**\n * Invoked when the AsyncTask has completed its execution.\n *\n * @param //results The resulting object from the AsyncTask.\n */\n void onDataLoaded(int requestId, Object data);\n}",
"public interface ILoader {\n\n void init(Context context,int cacheSizeInM);\n\n void request(SingleConfig config);\n\n void pause();\n\n void resume();\n\n void clearDiskCache();\n\n void clearMomoryCache();\n\n long getCacheSize();\n\n void clearCacheByUrl(String url);\n\n void clearMomoryCache(View view);\n void clearMomoryCache(String url);\n\n File getFileFromDiskCache(String url);\n\n void getFileFromDiskCache(String url,FileGetter getter);\n\n\n\n\n\n boolean isCached(String url);\n\n void trimMemory(int level);\n\n void onLowMemory();\n\n\n /**\n * 如果有缓存,就直接从缓存里拿,如果没有,就从网上下载\n * 返回的file在图片框架的缓存中,非常规文件名,需要自己拷贝出来.\n * @param url\n * @param getter\n */\n void download(String url,FileGetter getter);\n\n}",
"public interface Loader<Params, Result>\n {\n Result result(Context context, MicroFragmentEnvironment<Params> env) throws Exception;\n }",
"@Override\r\n\t\t\t\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\t\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onLoadingComplete(String arg0, View arg1, Bitmap arg2) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\n\t\t\t\t\t}",
"public void addToCallbacks(entity.LoadCallback element);",
"public interface FileLoaderCallbacks {\n\n public interface FragmentLoaderCallbacks {\n\n public void showFileListFragment(FileSystem.PredefinedFolders folderIndex);\n\n /**\n * Shows {@code FileListFragment}.\n *\n * @param folder The folder to send as argument.\n * @param clearBackStack if {@code true} the stack will be cleared for support fragment manager.\n * @param addToBackStack if {@code true} the fragment will be added to the back stack.\n */\n public void showFileListFragment(LocalFolder folder, boolean clearBackStack, boolean addToBackStack);\n\n }\n\n}",
"@Override\n public void onLoadingStarted(String arg0, View arg1) {\n }",
"@Override\r\n\tprotected void initLoad() {\n\r\n\t}",
"public void setCallbacks(entity.LoadCallback[] value);",
"@Override\r\n\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\t\t\t\r\n\t\t}",
"public interface OnLoadListener {\n void loadSuccess(NewModel newModel);\n\n void loadFailed(String tips);\n}",
"@Override\n\tpublic void onPrepareLoad(Drawable arg0) {\n\t\t\n\t}",
"@Override\n\t\t\t\t\tpublic void beginLoad(int type) {\n\n\t\t\t\t\t}",
"public interface ImageDownLoadCallBack {\n void onDownLoadSuccess(File file);\n void onDownLoadSuccess(Bitmap bitmap);\n\n void onDownLoadFailed();\n}",
"public interface DownLoaderListener {\n void onProgress(int progress);\n void onSuccess();\n void onFaied();\n void onPaused();\n void onCancled();\n}",
"@Override\n protected int getLoaderId() {\n return 1;\n }",
"public interface ImageLoader {\n\n}",
"public interface OnLoadListener {\n void onSuccess(List<Data> datas,boolean isRefresh);\n void onFailure(String message,String e);\n}",
"public interface Loader {\n void loadLibrary(String str) throws Exception;\n\n void loadLibraryFromPath(String str) throws Exception;\n }",
"public interface LoadInterface {\n void onLoadTaskCompleted(List<Dados> dadosList);\n void onLoadTaskFailed(String message);\n}",
"@gw.internal.gosu.parser.ExtendedProperty\n public entity.LoadCallback[] getCallbacks();",
"public interface OnLoadListener {\n void onSucess(String string);\n}",
"@Override\n public void onLoaderReset(Loader<Cursor> arg0) {\n\n\n }",
"private void initDataLoader() {\n\t}",
"public interface ImageLoaderListener {\n void onImageDownloaded(Bitmap bmp);\n }",
"public interface ImageLoaderInter {\n /**\n * 加载普通的图片\n *\n * @param activity\n * @param imageUrl\n * @param imageView\n */\n void loadCommonImgByUrl(Activity activity, String imageUrl, ImageView imageView);\n\n /**\n * 加载普通的图片\n *\n * @param fragment\n * @param imageUrl\n * @param imageView\n */\n void loadCommonImgByUrl(Fragment fragment, String imageUrl, ImageView imageView);\n\n /**\n * 加载圆形或者是圆角图片\n *\n * @param activity\n * @param imageUrl\n * @param imageView\n */\n void loadCircleOrReboundImgByUrl(Activity activity, String imageUrl, ImageView imageView);\n\n /**\n * 加载圆形或者是圆角图片\n *\n * @param fragment\n * @param imageUrl\n * @param imageView\n */\n void loadCircleOrReboundImgByUrl(Fragment fragment, String imageUrl, ImageView imageView);\n\n void resumeRequests(Activity activity);\n\n void resumeRequests(Fragment fragment);\n\n void pauseRequests(Activity activity);\n\n void pauseRequests(Fragment fragment);\n}",
"void onFinishedLoading();",
"@Override\n public void onManagerConnected(int status) {\n switch (status){\n case BaseLoaderCallback.SUCCESS:\n Log.i(tag, \"成功加载\");\n break;\n default:\n super.onManagerConnected(status);\n Log.i(tag, \"加载失败\");\n break;\n }\n }",
"public abstract void load();",
"@Override\n public void onLoadingStarted(String paramString, View paramView) {\n\n }",
"@Override\n public void onLoaderReset(Loader<Cursor> arg0) {\n\n }",
"@Override\n public void onLoaderReset(Loader<Cursor> arg0) {\n\n }",
"@Override\n public void load() {\n }",
"@Override\n public void load() {\n }",
"public interface LoadTexture_Async_callback extends Callback {\r\n\t\tint apply(int textureId, PointerByReference ppTexture);\r\n\t}",
"@Override\r\n public void onLoaderReset(Loader<Cursor> loader) {\n\r\n }",
"@Override\n public void onLoaderReset(Loader<Cursor> loader) {\n\n\n }",
"@Override\r\n public void onPrepareLoad(Drawable arg0) {\n\r\n }",
"public void load() ;",
"public interface LoadingListener {\n void isLoading();\n\n void loadingComplete();\n}",
"public interface FirstLoadDataCallback {\n\n void onSuccess(String message);\n void onFailure(String erro);\n}",
"public static void SelfCallForLoading() {\n\t}",
"@Override\r\n\tpublic void load() {\n\r\n\t}",
"@Override\r\n\tpublic void load() {\n\t}",
"public interface BookmarkLoadCallback {\n void bookmarkResult(boolean z);\n\n void notifyBookmarkChange();\n }",
"@Override\n\tprotected void load() {\n\t\t\n\t}",
"@Override\n\tprotected void load() {\n\t\t\n\t}",
"@Override\n\tprotected void load() {\n\t\t\n\t}",
"public abstract void init(ResourceLoader loader);",
"public native Object load( String url, OnJSONLoadCallback onLoad, OnProgressCallback onProgress );",
"public interface IImageLoader\n{\n public void loadImage(String uri, ImageView imageView);\n public void loadImage(String uri, ImageView imageView, ImageLoadListener imageLoadListener);\n}",
"public interface LoadFriendsCallback {\n void preExecute();\n void postExecute(ArrayList<Friends> friends);\n}",
"public interface LoadFriendsCallback {\n void preExecute();\n void postExecute(ArrayList<Friends> friends);\n}",
"protected abstract void loadData();",
"@Override\r\n\tprotected void load() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onLoaderReset(Loader<Cursor> mLoader) {\n\t\t\r\n\t}",
"@Override public void onLoaderReset(Loader<Cursor> loader) {\n\t\t}",
"@Override\n\tpublic void onLoaderReset(Loader<Cursor> loader) {\n\n\t}",
"public ContainerLoader getLoader();",
"@NonNull\n @Override\n public Loader<Cursor> onCreateLoader(int loaderId, @Nullable Bundle loaderArgs) {\n switch (loaderId) {\n\n// If the loader requested is our detail loader, return the appropriate CursorLoader\n case ID_DETAIL_LOADER:\n\n return new CursorLoader(this,\n mUri,\n MAIN_FORECAST_PROJECTION,\n null,\n null,\n null);\n\n default:\n throw new RuntimeException(\"Loader Not Implemented: \" + loaderId);\n }\n }",
"@Override\n public Loader<Cursor> onCreateLoader(int id, final Bundle loaderArgs) {\n return new AsyncTaskLoader<Cursor>(this) {\n // Initialize a Cursor, this will hold all the drugs data\n Cursor mTaskData = null;\n // onStartLoading() is called when a loader first starts loading data\n @Override\n protected void onStartLoading() {\n if (mTaskData != null) {\n // Delivers any previously loaded data immediately\n deliverResult(mTaskData);\n } else {\n // Force a new load\n forceLoad();\n }\n }\n // loadInBackground() performs asynchronous loading of data\n @Override\n public Cursor loadInBackground() {\n // Will implement to load data\n // Query and load all drug data in the background; sort by priority\n // use a try/catch block to catch any errors in loading data\n\n try {\n return getContentResolver().query(DataContract.FirstAidEntry.CONTENT_URI,\n null,\n null,\n null,\n DataContract.FirstAidEntry._ID);\n } catch (Exception e) {\n Log.e(TAG, \"Failed to asynchronously load data.\");\n e.printStackTrace();\n return null;\n }\n\n\n }\n // deliverResult sends the result of the load, a Cursor, to the registered listener\n public void deliverResult(Cursor data) {\n mTaskData = data;\n super.deliverResult(data);\n }\n };\n\n\n }",
"@Override\n public android.support.v4.content.Loader<Cursor> onCreateLoader(int i, final Bundle bundle) {\n return new android.support.v4.content.AsyncTaskLoader<Cursor>(this) {\n Cursor mOrderData = null;\n\n /**\n * Callback function for whenever a load operation begins\n */\n @Override\n protected void onStartLoading() {\n if(mOrderData != null){\n deliverResult(mOrderData);//if there was already data loaded(in the event that the activity was navigated away from while loading), load it\n } else {\n forceLoad();//starts a load command\n }\n }\n\n /**\n * Actions the AsyncTask performs in the background\n * @return - the Cursor for the query performed in the background\n */\n @Override\n public Cursor loadInBackground() {\n try {\n return getContentResolver().query(OrderContract.OrderEntry.CONTENT_URI,\n null,\n null,\n null,\n null);\n\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }\n\n /**\n * sets the local Cursor variable to the Cursor that was just loaded\n * @param data the Cursor that was loaded in\n */\n @Override\n public void deliverResult(Cursor data) {\n mOrderData = data;\n super.deliverResult(data);\n }\n };\n }",
"public interface LOAD {\n\n /**\n * Create a new loader with a given set of arguments and kick off the\n * loading process. An instance of the class specified by the\n * {@code java_class} parameter is created. The specified class is expected\n * to implement the {@link\n * io.ciera.runtime.instanceloading.generic.IGenericLoader IGenericLoader}\n * interface. Once created, the {@code load} method of the loader will be\n * invoked, passing {@code args} and an instance of the {@code LOAD} class\n * to link call back in to the instance population.\n *\n * @param java_class the fully qualified class name of the loader class to\n * create\n * @param args the list of arguments to pass to the loader class\n * @throws XtumlException if the class specified by {@code java_class}\n * cannot be loaded or if it does not implement the {@link\n * io.ciera.runtime.instanceloading.generic.IGenericLoader IGenericLoader}\n * interface\n * @see io.ciera.runtime.instanceloading.generic.IGenericLoader IGenericLoader\n */\n public void load(String java_class, String[] args) throws XtumlException;\n\n /**\n * Create an xtUML class instance.\n *\n * @param key_letters the key letters of the xtUML class\n * @return an instance handle to the newly created class instance\n * @throws XtumlException if no class with matching key letters can be found\n * in the component\n */\n\tpublic Object create(String key_letters) throws XtumlException;\n\n /**\n * Relate two xtUML instances together across the given relationship. For\n * non-reflexive relationships, {@code inst1} and {@code inst2} are\n * interchangeable and the value of {@code phrase} has no effect. It may be\n * {@code null}. For reflexive relationships, {@code inst1} and {@code inst2}\n * will \"read across\" according to the value of {@code phrase} with the same\n * semantics as OAL.\n *\n * @param inst1 the first instance to relate\n * @param inst2 the second instance to relate\n * @param rel_num the relationship number to create\n * @param phrase the text phrase used to disambiguate relates of reflexive\n * relationships\n * @throws XtumlException if the relationship specified does not exist\n * between inst1 and inst2 or if the act of relating the instances results in\n * a model integrity violation\n */\n public void relate(Object inst1, Object inst2, int rel_num, String phrase) throws XtumlException;\n\n /**\n *\n * Relate three xtUML instances together across the given associative\n * relationship. For non-reflexive relationships, {@code inst1} and {@code\n * inst2} are interchangeable and the value of {@code phrase} has no effect.\n * It may be {@code null}. For reflexive relationships, {@code inst1} and\n * {@code inst2} will \"read across\" according to the value of {@code phrase}\n * with the same semantics as OAL.\n *\n * @param inst1 the first instance to relate\n * @param inst2 the second instance to relate\n * @param link the associative instance to relate\n * @param rel_num the relationship number to create\n * @param phrase the text phrase used to disambiguate relates of reflexive\n * relationships\n * @throws XtumlException if the relationship specified does not exist\n * between inst1 and inst2 or if the act of relating the instances results in\n * a model integrity violation\n */\n public void relate_using(Object inst1, Object inst2, Object link, int rel_num, String phrase) throws XtumlException;\n\n /**\n * Set the value of an attribute on an instance of an xtUML class.\n *\n * @param instance the model class instance\n * @param attribute_name the name of the attribute to set\n * @param value the value to assign to the specified attribute\n * @throws XtumlException if the specified attribute does not exist on the\n * class or if the type of the passed value is not compatible with the\n * attribute type\n */\n public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;\n\n /**\n * Invoke an xtUML domain function in the same component which originally\n * created the instance of {@code LOAD}.\n *\n * @param function_name The name of the domain function to invoke\n * @param args The argument list in modeled order\n * @return The result of the function invocation or {@code null} for\n * functions with void return type\n * @throws XtumlException if the a domain function could not be found with\n * the given names, or if the number of arguments or types of arguments\n * mismatch\n */\n\tpublic Object call_function(String function_name, Object ... args) throws XtumlException;\n\n\n\n}",
"interface LoadNewsDataCallback {\r\n void onHandyLifeDataSuccess(ArticlesResult handyLifeResultBeans);\r\n void onHandyLifeDataFailed(int code, String message);\r\n }",
"public interface LoadIntoTextureD3D11_Async_callback extends Callback {\r\n\t\tint apply(int textureId, Pointer pDstTexture);\r\n\t}",
"public abstract void loadData();",
"public abstract void loadData();",
"public interface DBImageBitmapListener {\n void onLoadingComplete(DBImage dbImage);\n}",
"@Override\n\tpublic void upLoad(String url, String param, Callback callback) {\n\n\t}",
"@Override\n\tprotected void load() {\n\n\t}",
"@Override\n\tprotected void load() {\n\n\t}",
"public String getCustomLoaderName();",
"protected void onStartLoading() { forceLoad();}",
"@Override\n public Loader<List<Movie>> onCreateLoader(final int id, final Bundle args) {\n return new AsyncTaskLoader<List<Movie>>(this) {\n\n @Override\n protected void onStartLoading() {\n // set the progress bar to be visible and proceed with loading\n progressBar.setVisibility(View.VISIBLE);\n forceLoad();\n }\n\n // Method that will perform the actual url http request in another thread\n @Override\n public List<Movie> loadInBackground() {\n\n // obtain the Url, used for the http request\n URL url = AppUtilities.buildUrl(pageNumberBeingQueried, sortOrderOfResults,\n searchQuerySubmitted, preferredMovieGenre, preferredStartYear,\n preferredEndYear, preferenceValuesAreDefault);\n\n // perform the url request\n String jsonResponseString = null;\n try {\n jsonResponseString = AppUtilities.getResponseFromHttpUrl(url);\n } catch (IOException io_exception) {\n io_exception.printStackTrace();\n }\n\n // initialise the return object\n List<Movie> movieList = null;\n\n // if the response String is not null - parse it\n if (jsonResponseString != null) {\n // call helper method to parse JSON\n Pair<List<Movie>, Integer> result = JsonUtilities.extractFromJSONString(jsonResponseString);\n movieList = result.first;\n jsonResponseCode = result.second;\n }\n return movieList;\n }\n\n };\n }",
"public void load() {\n }",
"@Override\n public void onLoaderReset(@NonNull Loader<Cursor> loader) {\n\n }",
"public Runnable getLoaderDataAvailabilityCallback() {\n return loaderDataAvailabilityCallback;\n }",
"public native Object load( String url, OnJSONLoadCallback onLoad);",
"@Override\n public void onLoaderReset(Loader<ArrayList<Movie>> loader) {\n }",
"@Override\n\tprotected void onStartLoading() {\n\t\tif (mData != null) {\n\t\t\tdeliverResult(mData);\n\t\t}\n\t\t// Now we're in start state so we need to monitor for data changes.\n\t\t// To do that we start to observer the data\n\t\t// Register for changes which is Loader dependent\n\t\tregisterObserver();\n\t\t// Now if we're in the started state and content is changes we have\n\t\t// a flag that we can check with the method takeContentChanged()\n\t\t// and force the load\t\t\t\t\t\n\t\tif (takeContentChanged() || mData == null) {\n\t\t\tforceLoad();\n\t\t}\n\t}",
"public interface LoadingInterface {\n void finishLoading();\n void dispose();\n\n}",
"public interface IImageLoaderClient {\n public void init(Context context);\n\n public void destroy(Context context);\n\n public File getCacheDir(Context context);\n\n public void clearMemoryCache(Context context);\n\n public void clearDiskCache(Context context);\n\n public Bitmap getBitmapFromCache(Context context, String url);\n\n public void getBitmapFromCache(Context context, String url, IGetBitmapListener listener);\n\n public void displayImage(Context context, int resId, ImageView imageView);\n\n public void displayImage(Context context, String url, ImageView imageView);\n\n public void displayImage(Context context, String url, ImageView imageView, boolean isCache);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, ImageSize size);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, ImageSize size);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, boolean cacheInMemory);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, boolean cacheInMemory);\n\n\n public void displayImage(Context context, String url, ImageView imageView, IImageLoaderListener listener);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, IImageLoaderListener listener);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, IImageLoaderListener listener);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, IImageLoaderListener listener);\n\n\n public void displayCircleImage(Context context, String url, ImageView imageView, int defRes);\n\n public void displayCircleImage(Fragment fragment, String url, ImageView imageView, int defRes);\n @Deprecated\n public void displayRoundImage(Context context, String url, ImageView imageView, int defRes, int radius);\n\n public void displayRoundImage(Fragment fragment, String url, ImageView imageView, int defRes, int radius);\n\n public void displayBlurImage(Context context, String url, int blurRadius, IGetDrawableListener listener);\n\n public void displayBlurImage(Context context, String url, ImageView imageView, int defRes, int blurRadius);\n\n public void displayBlurImage(Context context, int resId, ImageView imageView, int blurRadius);\n\n public void displayBlurImage(Fragment fragment, String url, ImageView imageView, int defRes, int blurRadius);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView, BitmapTransformation transformations);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView, BitmapTransformation transformations);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView, int defRes);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView, int defRes);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n\n //add shiming 2018.4.20 transformation 需要装换的那种图像的风格,错误图片,或者是,正在加载中的错误图\n public void displayImageInResourceTransform(Activity activity, int resId, ImageView imageView, Transformation transformation, int errorResId);\n public void displayImageInResourceTransform(Context context, int resId, ImageView imageView, Transformation transformation, int errorResId);\n public void displayImageInResourceTransform(Fragment fragment, int resId, ImageView imageView, Transformation transformation, int errorResId);\n\n //这是对网络图片,进行的图片操作,使用的glide中的方法\n public void displayImageByNet(Context context, String url, ImageView imageView, int defRes, Transformation transformation);\n public void displayImageByNet(Fragment fragment, String url, ImageView imageView, int defRes, Transformation transformation);\n public void displayImageByNet(Activity activity, String url, ImageView imageView, int defRes, Transformation transformation);\n\n\n /**\n * 停止图片的加载,对某一个的Activity\n * @hide\n */\n public void clear(Activity activity, ImageView imageView);\n /**\n * 停止图片的加载,context\n * {@hide}\n */\n public void clear(Context context, ImageView imageView);\n /**\n * 停止图片的加载,fragment\n * {@hide}\n */\n public void clear(Fragment fragment, ImageView imageView);\n\n\n //如果需要的话,需要指定加载中,或者是失败的图片\n public void displayImageByDiskCacheStrategy(Fragment fragment, String url, DiskCacheStrategy diskCacheStrategy, ImageView imageView);\n public void displayImageByDiskCacheStrategy(Activity activity, String url, DiskCacheStrategy diskCacheStrategy, ImageView imageView);\n public void displayImageByDiskCacheStrategy(Context context, String url, DiskCacheStrategy diskCacheStrategy, ImageView imageView);\n //某些情形下,你可能希望只要图片不在缓存中则加载直接失败(比如省流量模式)\n public void disPlayImageOnlyRetrieveFromCache(Fragment fragment, String url, ImageView imageView);\n public void disPlayImageOnlyRetrieveFromCache(Activity activity, String url, ImageView imageView);\n public void disPlayImageOnlyRetrieveFromCache(Context context, String url, ImageView imageView);\n\n\n\n /**\n *如果你想确保一个特定的请求跳过磁盘和/或内存缓存(比如,图片验证码 –)\n * @param fragment\n * @param url\n * @param imageView\n * @param skipflag 是否跳过内存缓存\n * @param diskCacheStratey 是否跳过磁盘缓存\n */\n public void disPlayImageSkipMemoryCache(Fragment fragment, String url, ImageView imageView, boolean skipflag, boolean diskCacheStratey);\n public void disPlayImageSkipMemoryCache(Activity activity, String url, ImageView imageView, boolean skipflag, boolean diskCacheStratey);\n public void disPlayImageSkipMemoryCache(Context context, String url, ImageView imageView, boolean skipflag, boolean diskCacheStratey);\n\n /**\n * 知道这个图片会加载失败,那么的话,我们可以重新加载\n * @param fragment\n * @param url\n * @param fallbackUrl\n * @param imageView\n */\n //从 Glide 4.3.0 开始,你可以很轻松地使用 .error() 方法。这个方法接受一个任意的 RequestBuilder,它会且只会在主请求失败时开始一个新的请求:\n public void disPlayImageErrorReload(Fragment fragment, String url, String fallbackUrl, ImageView imageView);\n public void disPlayImageErrorReload(Activity activity, String url, String fallbackUrl, ImageView imageView);\n public void disPlayImageErrorReload(Context context, String url, String fallbackUrl, ImageView imageView);\n\n\n /**\n 未来 Glide 将默认加载硬件位图而不需要额外的启用配置,只保留禁用的选项 现在已经默认开启了这个配置,但是在有些情况下需要关闭\n 所以提供了以下的方法,禁用硬件位图 disallowHardwareConfig\n * @param fragment\n * @param url\n * @param imageView\n */\n// 哪些情况不能使用硬件位图?\n// 在显存中存储像素数据意味着这些数据不容易访问到,在某些情况下可能会发生异常。已知的情形列举如下:\n// 在 Java 中读写像素数据,包括:\n// Bitmap#getPixel\n// Bitmap#getPixels\n// Bitmap#copyPixelsToBuffer\n// Bitmap#copyPixelsFromBuffer\n// 在本地 (native) 代码中读写像素数据\n// 使用软件画布 (software Canvas) 渲染硬件位图:\n// Canvas canvas = new Canvas(normalBitmap)\n//canvas.drawBitmap(hardwareBitmap, 0, 0, new Paint());\n// 在绘制位图的 View 上使用软件层 (software layer type) (例如,绘制阴影)\n// ImageView imageView = …\n// imageView.setImageBitmap(hardwareBitmap);\n//imageView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);\n// 打开过多的文件描述符 . 每个硬件位图会消耗一个文件描述符。\n// 这里存在一个每个进程的文件描述符限制 ( Android O 及更早版本一般为 1024,在某些 O-MR1 和更高的构建上是 32K)。\n// Glide 将尝试限制分配的硬件位图以保持在这个限制以内,但如果你已经分配了大量的文件描述符,这可能是一个问题。\n// 需要ARGB_8888 Bitmaps 作为前置条件\n// 在代码中触发截屏操作,它会尝试使用 Canvas 来绘制视图层级。\n// 作为一个替代方案,在 Android O 以上版本你可以使用 PixelCopy.\n// 共享元素过渡 (shared element transition)(OMR1已修复)\n public void disPlayImagedisallowHardwareConfig(Fragment fragment, String url, ImageView imageView);\n public void disPlayImagedisallowHardwareConfig(Activity activity, String url, ImageView imageView);\n public void disPlayImagedisallowHardwareConfig(Context context, String url, ImageView imageView);\n\n //监听图片的下载进度,是否完成,百分比 也可以加载本地图片,扩张一下\n public void disPlayImageProgress(Context context, String url, ImageView imageView, int placeholderResId, int errorResId, OnGlideImageViewListener listener);\n public void disPlayImageProgress(Activity activity, String url, ImageView imageView, int placeholderResId, int errorResId, OnGlideImageViewListener listener);\n public void disPlayImageProgress(Fragment fragment, String url, ImageView imageView, int placeholderResId, int errorResId, OnGlideImageViewListener listener);\n\n public void disPlayImageProgressByOnProgressListener(Context context, String url, ImageView imageView, int placeholderResId, int errorResId, OnProgressListener onProgressListener);\n public void disPlayImageProgressByOnProgressListener(Activity activity, String url, ImageView imageView, int placeholderResId, int errorResId, OnProgressListener onProgressListener);\n public void disPlayImageProgressByOnProgressListener(Fragment fragment, String url, ImageView imageView, int placeholderResId, int errorResId, OnProgressListener onProgressListener);\n\n\n\n// TransitionOptions 用于给一个特定的请求指定过渡。\n// 每个请求可以使用 RequestBuilder 中的 transition()\n// 方法来设定 TransitionOptions 。还可以通过使用\n// BitmapTransitionOptions 或 DrawableTransitionOptions\n// 来指定类型特定的过渡动画。对于 Bitmap 和 Drawable\n// 之外的资源类型,可以使用 GenericTransitionOptions。 Glide v4 将不会默认应用交叉淡入或任何其他的过渡效果。每个请求必须手动应用过渡。\n public void displayImageByTransition(Context context, String url, TransitionOptions transitionOptions, ImageView imageView);\n public void displayImageByTransition(Activity activity, String url, TransitionOptions transitionOptions, ImageView imageView);\n public void displayImageByTransition(Fragment fragment, String url, TransitionOptions transitionOptions, ImageView imageView);\n\n //失去焦点,建议实际的项目中少用,取消求情\n public void glidePauseRequests(Context context);\n public void glidePauseRequests(Activity activity);\n public void glidePauseRequests(Fragment fragment);\n\n //获取焦点,建议实际的项目中少用\n public void glideResumeRequests(Context context);\n public void glideResumeRequests(Activity activity);\n public void glideResumeRequests(Fragment fragment);\n //加载缩图图 int thumbnailSize = 10;//越小,图片越小,低网络的情况,图片越小\n //GlideApp.with(this).load(urlnoData).override(thumbnailSize))// API 来强制 Glide 在缩略图请求中加载一个低分辨率图像\n public void displayImageThumbnail(Context context, String url, String backUrl, int thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Activity activity, String url, String backUrl, int thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Fragment fragment, String url, String backUrl, int thumbnailSize, ImageView imageView);\n //如果没有两个url的话,也想,记载一个缩略图\n public void displayImageThumbnail(Fragment fragment, String url, float thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Activity activity, String url, float thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Context context, String url, float thumbnailSize, ImageView imageView);\n}",
"private void startLoader(){\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<Cursor> movieLoader = loaderManager.getLoader(MOVIE_LOADER);\n if(movieLoader == null)\n loaderManager.initLoader(MOVIE_LOADER, null, this);\n else\n loaderManager.restartLoader(MOVIE_LOADER, null, this);\n }",
"public interface OnLoadMapListener {\n public void onLoadMapSelected(String mapFilePath);\n }",
"public interface LoadImageCallBackListener {\n public void loadImage(ImageView imageView, Bitmap bitmap);\n}"
] | [
"0.8058118",
"0.77050513",
"0.7667355",
"0.7585318",
"0.7325708",
"0.71059203",
"0.7047441",
"0.7035024",
"0.6994199",
"0.6982502",
"0.69439",
"0.6876542",
"0.6862439",
"0.68248427",
"0.6807169",
"0.6789679",
"0.6773383",
"0.67645437",
"0.6750539",
"0.67361724",
"0.6730369",
"0.6706175",
"0.669835",
"0.6696904",
"0.6678196",
"0.6658631",
"0.661216",
"0.6607423",
"0.6594007",
"0.65798116",
"0.6578304",
"0.6568276",
"0.656025",
"0.65313727",
"0.6525668",
"0.6519692",
"0.65182793",
"0.6503394",
"0.6496371",
"0.64870876",
"0.6483412",
"0.64821637",
"0.6453448",
"0.64198756",
"0.6397456",
"0.63952714",
"0.63952714",
"0.6388976",
"0.63867784",
"0.6379675",
"0.6376705",
"0.6375097",
"0.63725233",
"0.6370191",
"0.63600856",
"0.6344264",
"0.63280916",
"0.63070494",
"0.6297361",
"0.6288677",
"0.6279966",
"0.6279966",
"0.6279966",
"0.6271347",
"0.6258449",
"0.6251488",
"0.6243815",
"0.6243815",
"0.6219857",
"0.6213675",
"0.6211094",
"0.62104565",
"0.6199465",
"0.61929",
"0.61799324",
"0.61764926",
"0.6170406",
"0.6167557",
"0.6158359",
"0.61540395",
"0.6150347",
"0.6150347",
"0.6149592",
"0.6145408",
"0.6141154",
"0.6141154",
"0.6137763",
"0.6136913",
"0.61320645",
"0.6130188",
"0.61270887",
"0.61182463",
"0.6113193",
"0.611059",
"0.6106515",
"0.60932255",
"0.60900337",
"0.60836154",
"0.606082",
"0.6051148"
] | 0.69115144 | 11 |
OTHER METHODS Callback when a list view item is clicked | public void onListItemClick( ListView l, View v, int position, long id )
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onListItemClicked(int position) {\n\n }",
"void onListClick();",
"@Override\r\n public void onListItemClick(ListView l, View v, int position, long id) {\n }",
"@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }",
"@Override\n\tpublic void onListItemClick(ListView l, View v, int position, long id) {\n\t \n\t }",
"@Override\n protected void onListItemClick(ListView l, View v, int position, long id) {\n \t\n \t\n }",
"private void clickcallback() {\n final ListView listView = findViewById(R.id.listViewCollections);\n\n listView.setOnItemClickListener(ClickListener());\n\n if (friendID == null) {\n listView.setOnItemLongClickListener(LongClickListener());\n }\n }",
"@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n Log.i(\"LoaderCustom\", \"Item clicked: \" + id);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}",
"abstract public void onSingleItemClick(View view);",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}",
"public void onListItemClick(ListView l, \n\t\t\tView v, int position, long id) {\n\t}",
"@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}",
"public void onItemClick(View view, int position);",
"@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}",
"@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"void onItemClick(View view, int position);",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }",
"@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t}",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }",
"@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\tToast.makeText(getBaseContext(), list.get(arg2),\n\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}",
"@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }",
"@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\t\n\t\t\t\t\t Log.i(\"MyListViewBase\", \"你点击了ListView条目\"+arg2);\n\t\t\t\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}",
"@Override\n public void onClick(View v) {\n //getAdapterPosition() get's an Integer based on which the position of the current\n //ViewHolder (this) in the Adapter. This is how we get the correct Data.\n ListItem listItem = listOfData.get(\n this.getAdapterPosition()\n );\n\n controller.onListItemClick(\n listItem,\n v\n );\n\n }",
"void onItemClick(Note note);",
"@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }",
"void onItemClick(int position);",
"public void onItemClick(View view, int position) {\n\n }",
"@Override\n public void OnItemClick(int position) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }",
"@Override\n public void onItemClicked(int itemPosition, Object dataObject) {\n }",
"@Override\n public void onItemClick(View view, String data) {\n }",
"@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\r\n\t\t\t}",
"@Override\n public void onItemClick(int pos) {\n }",
"void onItemClickListener(View view, int postion);",
"@Override\r\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\r\n\t\t\tlong id) {\n\r\n\t}",
"@Override\n public void onItemClick(Nson parent, View view, int position) {\n }",
"@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }",
"@Override\n public void onItemClick(int position) {\n }",
"@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n //Recipe recipe = recipes.get(position);\n mListener.onListInteraction(position, false);\n }",
"@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n super.onListItemClick(l, v, position, id);\n\n Artist selectedArtist = artists.get(position);\n String name = selectedArtist.artistName;\n String genre = selectedArtist.artistGenre;\n String label = selectedArtist.artistLabel;\n String city = selectedArtist.artistCity;\n String state = selectedArtist.artistState;\n\n mListener.displayArtist(name, genre, label, city, state);\n\n\n\n }",
"@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t}",
"@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\n\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\t\n\t}",
"@Override\n public void onItemClick(View view, int position) {\n }",
"@Override\n public void onItemClick(View view, int position) {\n }",
"void onClick(View item, View widget, int position, int which);",
"@Override\n public void onItemClick(int position) {\n }",
"@Override\n public void onItemClick(int position) {\n }",
"@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\n\t}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\tif (null != mListOnItemClickListener) {\n\t\t\t\t\tmListOnItemClickListener.onItemClick(list.get(arg2), type);\n\t\t\t\t\tpopup.dismiss();\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }",
"public interface OnListClickListener {\r\n /**\r\n * Called when a view has been clicked.\r\n * \r\n * @param v\r\n * The view that was clicked.\r\n */\r\n void onListClick();\r\n }",
"@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tToast.makeText(this, String.format(\"Clicked on item #%d with text %s\",\n\t\t\tposition, mAdapter.getItem(position)), Toast.LENGTH_SHORT).show();\n\t}",
"public interface ListListener {\n public void OnClick(int itemPosition);\n}",
"public interface ListItemCallBack {\r\n\r\n void onItemClick(View view, int position,Object... object);\r\n\r\n}",
"@Override\n public void onItemClick(View view, int position) {\n\n }",
"@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> adapter, View view, int position,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.w(TAG , \"POSITION : \" + position);\n\n itemClick(position);\n }",
"public interface ItemClickListener {\n void onItemClick(View view, int position, ArrayList<MakalaModel> list);\n }",
"void onListFragmentInteraction(String item);",
"@Override\n public void onItemClick(View view, int position){\n }",
"@Override\n\tpublic void onListItemClick(ListView l, View v, int position, long id) {\n\t\tExercise exercise = ExerciseCatalog.get(getActivity()).getExercise(id);\n\t\t\n\t\tmCallbacks.onExerciseSelected(exercise);\n\t}",
"@Override\n\t public void onListItemClick(ListView l, View v, int position, long id) {\n\t mCallback.onDealSelected(mAdapter.getItem(position));\n\t \n\t // Set the item as checked to be highlighted when in two-pane layout\n\t getListView().setItemChecked(position, true);\n\t}",
"public interface ListItemClickListener {\n void onListItemClick();\n }",
"public interface ListItemClickListener {\n void onListItemClick(int clickedIndex);\n }",
"@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }",
"@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n \tsuper.onListItemClick(l, v, position, id);\n \tLog.i(TAG, \"Position: \" + position);\n \t/*String item = (String) getListAdapter().getItem(position);\n \tnew AlertDialog.Builder(this)\n \t .setTitle(\"Test\")\n \t .setMessage(item)\n \t .setPositiveButton(\"OK\",\n \t new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int which) {}}\n \t )\n \t .show();\n \t\n Toast.makeText(this, item + \" selected\", Toast.LENGTH_LONG).show();*/\n }",
"@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }",
"public interface OnItemClickCallbackInterface {\n void onClickListItem(int position, int id, String qTitle);\n}",
"public interface OnItemClickListenter {\n void onItemClickListener(View view, int position);\n}",
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tSystem.out.print(\"llego\");\n\t\t\t\tdisplayView(arg2);\n\t\t\t\t\n\t\t\t}",
"void onChamaItemClicked(int position);",
"@Override\r\n\tpublic void onListItemClick(ListView l, View v, int position, long id) {\n\t\tCrime crime = ((CrimeAdapter)getListAdapter()).getItem(position);\r\n\t\tLog.d(TAG, crime.getTitle() + \"was click!\");\r\n\t\t\r\n\t\t// Start CrimeActivity\r\n\t\t// Intent intent = new Intent(getActivity(), CrimeActivity.class);\r\n\t\t\r\n\t\t// Start CrimePagerActivity with this crime\r\n\t\t/*Intent intent = new Intent(getActivity(), CrimePagerActivity.class);\r\n\t\tintent.putExtra(CrimeFragment.EXTRA_CRIME_ID, crime.getId());\r\n\t\tstartActivity(intent);*/\r\n\t\t\r\n\t\t// 以适配手机和平板的方式展示CrimeFragment\r\n\t\tmCallbacks.onCrimeSelected(crime);\r\n\t}",
"public void onListItemClick(ListView list, View v, int position, long id)\n {\n Intent intent = new Intent(MainActivity.this, EventActivities.class);\n intent.putExtra(\"c\", position);\n startActivity(intent);\n }"
] | [
"0.81444204",
"0.796868",
"0.79662263",
"0.7941599",
"0.7851749",
"0.77773106",
"0.77665377",
"0.76652277",
"0.76551795",
"0.7648766",
"0.764225",
"0.7642143",
"0.7639294",
"0.7635471",
"0.7633131",
"0.7615163",
"0.7610137",
"0.760329",
"0.75851035",
"0.75851035",
"0.757142",
"0.75602156",
"0.75567293",
"0.75567293",
"0.75567293",
"0.7548019",
"0.75465417",
"0.75465417",
"0.75465417",
"0.75465417",
"0.75465417",
"0.75374645",
"0.7531607",
"0.7531607",
"0.75303775",
"0.7529531",
"0.75292444",
"0.75264204",
"0.7525506",
"0.7525506",
"0.7524493",
"0.75154036",
"0.75154036",
"0.7500482",
"0.75002235",
"0.7497047",
"0.7497047",
"0.74868995",
"0.7480586",
"0.74777055",
"0.74777055",
"0.74667424",
"0.7462293",
"0.7460086",
"0.7460086",
"0.74577546",
"0.7447909",
"0.7435893",
"0.7425639",
"0.74134725",
"0.73809755",
"0.73717",
"0.73638904",
"0.73634344",
"0.7357035",
"0.7356866",
"0.73553073",
"0.7348072",
"0.7344852",
"0.73291963",
"0.73291963",
"0.7306377",
"0.7298455",
"0.7298455",
"0.72966856",
"0.7292488",
"0.72916365",
"0.7289258",
"0.7286802",
"0.72843564",
"0.727801",
"0.7274689",
"0.72673994",
"0.7263054",
"0.7256777",
"0.72505194",
"0.7240239",
"0.72375786",
"0.7224327",
"0.72157705",
"0.7189336",
"0.71879745",
"0.71838367",
"0.7179173",
"0.717298",
"0.71724766",
"0.71707654",
"0.716264",
"0.71501243",
"0.71457"
] | 0.80753976 | 1 |
Refresh the fragment's list | public void refresh()
{
refresh( null );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void refreshFragment() {\n }",
"public void refreshFragment() {\n currentUser = ((HomeActivity)getActivity()).getCurrentUser();\n stock = ((HomeActivity)getActivity()).getTransferStock();\n selectAll(ORDER_NAME);\n }",
"@Override\n public void onRefresh() {\n reloadList();\n swipeContainer.setRefreshing(true);\n\n }",
"public void reload(){\n populateList();\n }",
"public void refreshList()\n {\n final ArrayAdapter adapter = (ArrayAdapter)this.foodListAdapter;\n this.getActivity().runOnUiThread(new Runnable() {\n public void run() {\n adapter.notifyDataSetChanged();\n }\n });\n }",
"@Override\n public void refreshList() {\n }",
"private void refreshListView() {\n\t\t\tisEnd=false;\n\t\t\tlistView.setMode(Mode.PULL_FROM_START);\n\t\t\tjsonArray=new JSONArray();\n\t\t\tcurrentPage=0;\n\t\t\tgetSharePage(++currentPage);\n\t\t\t\n\t\t}",
"public void refreshMemberList () {\n if (tourMemberAdapter != null) {\n tourMemberAdapter.notifyDataSetChanged();\n }\n }",
"public void refresh(){\n // close loading dialogs if they are open\n Fragment dialog = getSupportFragmentManager().findFragmentByTag(\"loading\");\n if (dialog != null) {\n loadingDialog.dismiss();\n }\n\n // update timestamp\n if (timestamp != null) {\n TextView time = findViewById(R.id.result_time_text);\n time.setText(getString(R.string.last_result, timestamp));\n }\n\n // destroy and recreate fragments with latest data\n Fragment loadedFragment = getSupportFragmentManager().findFragmentById(R.id.fragment_container);\n Fragment newFragment;\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n if (loadedFragment instanceof PsiFragment) {\n newFragment = PsiFragment.newInstance(psiValues);\n }\n else if (loadedFragment instanceof Pm25Fragment) {\n newFragment = Pm25Fragment.newInstance(pm25Values);\n }\n else{\n newFragment = HomeFragment.newInstance(psiValues,pm25Values);\n }\n transaction.replace(R.id.fragment_container, newFragment);\n transaction.commit();\n }",
"public void refreshListView() {\n if (recyclerViewAdapter != null) {\n recyclerViewAdapter.notifyDataSetChanged();\n }\n }",
"public void refresh() {\n stopLoading = false;\n Place.loadMultiple(getActivity(), 0, LIST_INITIAL_LOAD, filterParams, false, new Place.onMultipleDownloadedListener() {\n @Override\n public void onDownloaded(List<Place> places) {\n setPlaces(places);\n\n }\n });\n }",
"@Override\n\tpublic void onRefresh() {\n\t\tpage = 1;\n\t\tSystem.out.println(\"onRefresh1\");\n\t\tmyList.clear();\n\t\tSystem.out.println(\"onRefresh2\");\n\t\tgetData();\n\t}",
"public void refreshList() {\n mCursor.requery();\n mCount = mCursor.getCount() + mExtraOffset;\n notifyDataSetChanged();\n }",
"private void refreshList() {\n ArrayAdapter<Plan> planAdapter = new PlanAdapter();\n mListView.setAdapter(planAdapter);\n\n }",
"private void refreshList() {\n if (loadStepsTask != null) {\n loadStepsTask.cancel(false);\n }\n loadStepsTask = new LoadStepsTask(this, dbManager);\n loadStepsTask.execute();\n }",
"@Override\n public void onRefresh() {\n getGroupList();\n }",
"@Override\r\n public void onRefresh() {\n\r\n refreshContent();\r\n\r\n }",
"public void refresh(){\n\n data2.clear();\n data2=getActionsList(\"\");\n //actionsAdapter=new ActionsAdapter(data2,getContext());\n //myList.setAdapter(actionsAdapter);\n //actionsAdapter.notifyDataSetChanged();\n }",
"public void updateList(){\r\n preyFragmentAdapter=new PreyFragmentAdapter(CPreyArrayList,this);\r\n recyclerView.setAdapter(preyFragmentAdapter);\r\n LinearLayoutManager a=new LinearLayoutManager(this.getContext());\r\n recyclerView.setLayoutManager(a);\r\n\r\n\r\n }",
"public void refreshWeatherList()\n {\n FragmentTransaction transaction = mFragmentManager.beginTransaction();\n transaction.replace(R.id.id_activity_main, mSplashFragment, SplashFragment.TAG);\n transaction.commit();\n\n taskMode = Constants.TASK_MODE_REFRESH_WEATHER_LIST;\n mWeatherListItemsArray.clear();\n TaskGetOnlineData startingTask = new TaskGetOnlineData();\n startingTask.execute();\n killableTask = startingTask;\n\n }",
"private void refreshList() {\n List<PullRequest> storedPullRequests = mDataManager.getPullRequests();\n\n mPullRequests.clear();\n\n for (PullRequest pullRequest : storedPullRequests) {\n mPullRequests.add(pullRequest);\n }\n\n mAdapter.notifyDataSetChanged();\n\n mDialog.dismiss();\n }",
"@Override\n public void onRefresh() {\n synchronizeContent();\n }",
"@Override\n public void onRefresh() {\n listView.setOnItemClickListener(null);\n getActivity().setProgressBarIndeterminateVisibility(true);\n Log.i(TAG,\"Refresh Call\");\n //fetchMovies();\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Log.i(TAG,\"Fetch Movie Call\");\n swipeRefreshLayout.setRefreshing(false);\n fetchMovies();\n int index = listView.getFirstVisiblePosition();\n View v = listView.getChildAt(0);\n int top = (v == null) ? 0 : v.getTop();\n listView.setSelectionFromTop(index, top);\n }\n }, 2000);\n }",
"public void refreshListAdapter() {\n adapter.setListContent(requests);\n //We in turn set the adapter to the RecyclerView\n recyclerView.setAdapter(adapter);\n }",
"private void reDoFragments() {\n pageAdapter.notifyChangeInPosition(pageAdapter.getCount());\n\n fragments.clear();\n\n int i = 1;\n for (Article a : articles) {\n String count = String.format(\"%d of %d\", i++, articles.size());\n fragments.add(NewsFragment.newInstance(a.getTitle(), a.getAuthor(), a.getDescription(), a.getUrlToImage(), a.getTime(), count, a.getUrl()));\n }\n\n pageAdapter.notifyDataSetChanged();\n pager.setCurrentItem(0);\n }",
"public void refresh() {\n // The actual work is in refreshInernal(), but we don't call it directly here, because:\n // 1. refresh() is called very often.\n // 2. to avoid nested fragment transaction.\n // refresh is often called during a fragment transaction, but updateTitle() may call\n // a callback which would initiate another fragment transaction.\n mDelayedOperations.removeCallbacks(mRefreshRunnable);\n mDelayedOperations.post(mRefreshRunnable);\n }",
"@Override\n public void onRefresh() {\n viewModel.fetchAllPostsASync();\n }",
"private void refreshList() {\n\n Requester.getInstance().cancelPendingRequests(BrowseCoursesNew.TAG);\n mWishListAdapter.clearData();\n\n refreshView();\n\n wishCourses = new WishCourses(mHandler);\n wishCourses.sendWishlistCoursesRequest();\n }",
"@Override\n public void onRefresh() {\n swipeRefreshLayout.setRefreshing(false);\n heroList.clear();\n loadRecyclerViewData();\n }",
"private void refreshFragmentAfterdownloadedData() {\n Fragment fragmentToday = new FragmentToday();\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.replace(R.id.fragmentToday, fragmentToday, \"FragmentToday\");\n ft.commit();\n\n Fragment fragment5days = new Fragment5days();\n FragmentTransaction ft5days = getSupportFragmentManager().beginTransaction();\n ft5days.replace(R.id.fragment5days, fragment5days, \"Fragment5days\");\n ft5days.commit();\n }",
"@Override\n public void onRefresh(PullToRefreshBase<ListView> refreshView) {\n initListView();\n Toast.makeText(getContext(),\"刷新成功\",Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onRefresh() {\n loadData();\n }",
"@Override\n\t\t\tpublic void onRefresh() {\n\t\t\t\tcurPage = 1;\n\t\t\t\tmList.clear();\n\t\t\t\tJiaoYiJiLuExec.getInstance().getTiXianJiLuList(mHandler,\n\t\t\t\t\t\tManagerUtils.getInstance().yjtc.getId(), curPage,\n\t\t\t\t\t\tpageSize, NetworkAsyncCommonDefines.GET_TXJL_LIST_S,\n\t\t\t\t\t\tNetworkAsyncCommonDefines.GET_TXJL_LIST_F);\n\t\t\t}",
"@Override\n public void refreshRecipeList() {\n favouritePageRecyclerViewAdapter.notifyDataSetChanged();\n\n }",
"@Override\n\tpublic void refreshData(){\n\t\tpageNum = 1;\n\t\tlist.clear();\n\t\tloadData();\n\t}",
"private void refreshListView() {\n model.updateAllFilteredLists(history.getPrevKeywords(), history.getPrevStartDate(),\n history.getPrevEndDate(), history.getPrevState(),\n history.getPrevSearches());\n }",
"private void refreshContent() {\n\n mSwipeRefreshLayout.setRefreshing(false);\n }",
"private void updateList() {\n Model.instace.getAllArticles(new ArticleFirebase.GetAllArticlesAndObserveCallback() {\n @Override\n public void onComplete(List<Article> list) {\n data.clear();\n data = list;\n adapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancel() {\n\n }\n });\n }",
"public void refreshListView() {\n \n \tLog.i(\"refresh list view\", \"Enter\");\n \ttry {\n \t\tif(taskListCursor != null) {\n\t \t\ttaskListCursor.close();\n\t \t\ttaskListCursor = null;\n \t\t}\n FileDbAdapter fda = new FileDbAdapter();\n fda.open();\n \t\ttaskListCursor = fda.fetchTasksForSource(getSource(), true);\n \tfda.close();\n \t} catch (Exception e) {\n \t\te.printStackTrace(); \t// TODO handle exception\n \t}\n \ttasks.changeCursor(taskListCursor);\n \tstartManagingCursor(taskListCursor);\n \ttasks.notifyDataSetChanged();\n\n }",
"private void refreshListView() {\n\t\tSQLiteDatabase db = dbh.getReadableDatabase();\n\t\tsharedListView.setAdapter(null);\n\t\tCursor c1 = db.rawQuery(\"SELECT _id, title, subtitle, content, author, otheruser FROM todos WHERE otheruser = '\" + author + \"'\", null);\n\t\tListAdapter adapter2 = new SimpleCursorAdapter(this, R.layout.activity_items, c1, from, to, 0);\n\t\tsharedListView.setAdapter(adapter2);\n\t\tadapter.notifyDataSetChanged();\n\t}",
"@Override\n public void onRefresh() {\n refreshData();\n }",
"@Override\n public void onRefresh() {\n updateListings();\n new GetDataTask().execute();\n }",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\trefreshListView();\n\t}",
"public void refreshAdapter() {\n\t\tadapter.notifyDataSetChanged();\n\t\tthis.listView.onRefreshComplete();\n\t}",
"@Override\n public void onPullDownToRefresh(PullToRefreshBase<ListView> refreshView) {\n refresh = true;\n PageIndex = 1;\n list.clear();\n listHeader.clear();\n listmoney.clear();\n users.setLimit(12);\n getDate();\n }",
"@Override\n public void onRefresh() {\n }",
"private void refreshList(Context context) {\n if (mListManipulator.isListUpdated()) {\n mListManipulator.saveShownListState(context);\n }\n // Start service to refresh app\n Intent serviceIntent = new Intent(getActivity(), MainService.class);\n serviceIntent.setAction(Constants.ACTION_APP_REFRESH);\n getActivity().startService(serviceIntent);\n }",
"@Override\n public void onRefresh() {\n Log.d(\"DEBUG\", \"swipe refresh called\");\n populateTimeline(1L,Long.MAX_VALUE - 1);\n }",
"private void reloadListView() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mDevicesListViewAdapter.notifyDataSetChanged();\n }\n });\n }",
"@Override\n\tpublic void onRefresh(PullToRefreshBase<ListView> refreshView) {\n\t\tloadData();\n\t}",
"public void updateListView(){\n mAdapter = new ListViewAdapter(getActivity(),((MainActivity)getActivity()).getRockstarsList());\n mRockstarsListView.setAdapter(mAdapter);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_notifikasi_admin, container, false);\n list = new ArrayList<>();\n sharedPreferenceConfig = new SharedPreferenceConfig(getActivity());\n SharedPreferences mSettings = PreferenceManager.getDefaultSharedPreferences(getActivity());\n SharedPreferences.Editor editor = mSettings.edit();\n status = mSettings.getString(\"jabatan\",\"user\");\n swipeRefreshLayout = view.findViewById(R.id.swipeRefreshLayout);\n\n url = sharedPreferenceConfig.getUrl()+\"listpinjaman.php\";\n recyclerView = view.findViewById(R.id.rvcontainer);\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());\n recyclerView.setLayoutManager(layoutManager);\n NotifikasiAdminAdapter notifikasiAdminAdapter = new NotifikasiAdminAdapter(list,getActivity());\n\n recyclerView.setAdapter(notifikasiAdminAdapter);\n notifikasiAdminAdapter.notifyDataSetChanged();\n\n getData();\n\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n getData();\n Toast.makeText(getActivity(),\"refreshed\",Toast.LENGTH_SHORT).show();\n }\n });\n return view;\n }",
"@Override\n public void onListFragmentInteraction(Game game) {\n changeFragment(game);\n }",
"void doRefreshContent();",
"@Override\n public void onComplete(@NonNull Task<Void> task) {\n ((MainActivity) getActivity()).replaceFragmentsAndReset(new AppointmentListFragment());\n }",
"@Override\n public void onRefresh() {\n }",
"public void refreshLists() {\n refreshCitizenList();\n refreshPlayerList();\n }",
"@Override\n public void onRefresh() {\n new AsyncTask<DbOpenHelper,Void,List<ChatMessage>>() {\n @Override\n protected List<ChatMessage> doInBackground(DbOpenHelper... params) {\n return params[0].readMessages(mItem.email, 0);\n }\n\n @Override\n protected void onPostExecute(List<ChatMessage> list) {\n final CardListAdapter cardListAdapter = new CardListAdapter(list);\n recyclerView.setAdapter(cardListAdapter);\n cardListAdapter.notifyDataSetChanged();\n // TODO: jump to the correct position\n }\n }.execute(new DbOpenHelper(getContext()));\n\n swipeRefreshLayout.setRefreshing(false);\n swipeRefreshLayout.setEnabled(false);\n }",
"@Override\n public void onRefresh() {\n ArrayList<User> allUsers = new ArrayList<User>();\n ArrayList<User> allusers = UserContainer.getInstance().getAllUsers();\n UserContainer.getInstance().setAllUsers(allusers);\n allUsers = UserContainer.getInstance().getAllUsers();\n\n String currentUserName = UserContainer.getInstance().getUser().getUserName();\n ArrayList<User> copyOfAllUsers = new ArrayList<>(allUsers);\n for(User users: copyOfAllUsers){\n if(users.getUserName().equals(currentUserName)){\n copyOfAllUsers.remove(users);\n break;\n }\n }\n UserContainer.getInstance().setAllUsersExcludingUser(copyOfAllUsers);\n mSwipeRefreshLayout.setRefreshing(false);\n\n adapter.notifyDataSetChanged();\n }",
"@Override\n\tpublic void onRefresh() {\n\t\tmodel.getPostsByType(userId, 0, method, postListiner);\n\t\tcurrentPage = 0;\n\n\t}",
"@Override\n public void onRefresh() {\n if(!swipeRefreshLayout.isRefreshing()){\n swipeRefreshLayout.setRefreshing(true);\n }\n progressBar.setVisibility(View.GONE);\n listView.setVisibility(View.GONE);\n loadNotifications();\n }",
"public void onRefresh() {\n\t\t\t\tnew AsyncTask<Void, Void, Void>() {\r\n\t\t\t\t\tprotected Void doInBackground(Void... params) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t\t\tMusicDBAdapter.RefreshData(MusicListActivity.this);\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\treturn null;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tprotected void onPostExecute(Void result) {\r\n\t\t\t\t\t\tadapter = new MusicBaseAdapter(MusicListActivity.this, MusicDBAdapter.musicList);\r\n\t\t\t\t\t\tlist.setAdapter(adapter);\r\n\t\t\t\t\t\tTVcount.setText(String.valueOf(MusicDBAdapter.musicList.size()));\r\n\t\t\t\t\t\tlist.onRefreshComplete();\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}.execute(null, null, null);\r\n\t\t\t}",
"public void refresh(List<T> list) {\n this.items = list;\n notifyDataSetChanged();\n }",
"@Override\n public void refreshList(ArrayList<String> newList){\n }",
"public void refresh() {\n }",
"@Override\n public void onEstadoCambiado() {\n fragment = new ListadoPeticionesRecibidasVista();\n getFragmentManager().beginTransaction().replace(R.id.content_main, fragment ).commit();\n\n }",
"@Override\n public View onCreateView(final LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.list_pager_fragment,\n container, false);\n swipeContainer = (SwipeRefreshLayout) view.findViewById(R.id.container);\n position = getArguments().getInt(Constant.FRAGMENT_POS);\n\n LayoutInflater footerInflater = LayoutInflater.from(getActivity());\n listFooter = footerInflater.inflate(R.layout.list_footer, null, false);\n listFooter.setVisibility(View.GONE);\n listView = (ListView) view.findViewById(R.id.list);\n parentFragment = (InvoiceList) getParentFragment();\n listView.addFooterView(listFooter);\n db = new DatabaseHelper(context);\n\n adapter = new InvoiceListPagerFragmentListAdapter(context);\n listView.setAdapter(adapter);\n\n listFooter.setOnClickListener(null);\n\n swipeContainer.setOnRefreshListener(new OnRefreshListener() {\n @Override\n public void onRefresh() {\n\n try {\n\n if (parentFragment.isSearchEnable) {\n parentFragment.isSearchEnable = false;\n parentFragment.searchCancelImg.setVisibility(View.GONE);\n parentFragment.searchEt.setText(\"\");\n }\n if (parentFragment.isFilterEnable)\n parentFragment.isFilterEnable = false;\n\n getInvoiceList(1, SERVICE_TYPE.GET_UPPER_DATA, false,\n InvoiceList.content[position]);\n } catch (JSONException e) {\n\n e.printStackTrace();\n }\n }\n });\n\n swipeContainer.setColorSchemeResources(\n android.R.color.holo_orange_dark,\n android.R.color.holo_green_light,\n android.R.color.holo_blue_bright,\n android.R.color.holo_red_light);\n\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\n if (position >= adapter.InvoicesList.size()) return;\n Bundle arguments = new Bundle();\n System.out.println(\"Id1:\" + adapter.InvoicesList.get(position).getInvoice_id());\n arguments.putString(Constant.KEY_INVOICE_ID, adapter.InvoicesList.get(position).getInvoice_id());\n arguments.putString(Constant.KEY_INVOICE_STATUS, content[parentFragment.selectedPagePosition]);\n arguments.putInt(Constant.KEY_POSITION, 1);\n\n if (global.isNetworkAvailable()) {\n fragmentChanger.onFragmentAddWithBackStack(new InvoicePreviewCreateFragment(), Constant.InvoicePreviewCreateFragmentTag, arguments);\n } else global.showAlert(Constant.NO_CONNECTION_MESSAGE, context);\n\n }\n });\n\n listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\n @Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n if (!global.isNetworkAvailable()) {\n global.showAlert(Constant.NO_CONNECTION_MESSAGE, context);\n return true;\n }\n\n /* if (isActionPopOpen)\n return true;*/\n\n\n isActionPopOpen = true;\n parentFragment.actionRelative.setVisibility(View.VISIBLE);\n parentFragment.invoiceId = adapter.InvoicesList.get(position).getInvoice_id();\n parentFragment.InvoiceNoTV.setText(\"Invoice no : \" + adapter.InvoicesList.get(position).getInvoice_no());\n parentFragment.position = position;\n\n if(adapter.InvoicesList.get(position).getInvoice_status().equalsIgnoreCase(\"Paid\"))\n parentFragment.offlinePaymentLiner.setVisibility(View.GONE);\n else\n parentFragment.offlinePaymentLiner.setVisibility(View.VISIBLE);\n\n if (adapter.InvoicesList.get(position).getStatus().equalsIgnoreCase(\"Cancel\") || adapter.InvoicesList.get(position).getStatus().equalsIgnoreCase(\"Deleted\")) {\n parentFragment.restoreLinear.setVisibility(View.VISIBLE);\n parentFragment.deleteLinear.setVisibility(View.GONE);\n parentFragment.archiveLinear.setVisibility(View.VISIBLE);\n\n\n } else if (adapter.InvoicesList.get(position).getStatus().equalsIgnoreCase(\"Archived\")) {\n\n\n parentFragment.restoreLinear.setVisibility(View.VISIBLE);\n parentFragment.deleteLinear.setVisibility(View.VISIBLE);\n parentFragment.archiveLinear.setVisibility(View.GONE);\n\n } else {\n parentFragment.restoreLinear.setVisibility(View.GONE);\n parentFragment.deleteLinear.setVisibility(View.VISIBLE);\n parentFragment.archiveLinear.setVisibility(View.VISIBLE);\n }\n\n animation(parentFragment.actionTable, R.anim.bottom_up, Constant.LIST_ACTION_ANIMATION_TYPE.OPEN);\n\n\n return true;\n\n\n }\n });\n\n parentFragment.closeActionPopUp.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n\n animation(parentFragment.actionTable, R.anim.bottom_down, Constant.LIST_ACTION_ANIMATION_TYPE.CLOSE);\n\n }\n });\n parentFragment.actionRelative.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n }\n });\n listView.setOnScrollListener(new OnScrollListener() {\n\n @Override\n public void onScrollStateChanged(AbsListView view, int scrollState) {\n\n currentScrollState = scrollState;\n\n\n }\n\n\n @Override\n public void onScroll(AbsListView view, int firstVisibleItem,\n int visibleItemCount, int totalItemCount) {\n\n\n if ((firstVisibleItem + visibleItemCount == totalItemCount)\n && !isLoading && (visibleItemCount != totalItemCount)) {\n\n\n try {\n\n if (parentFragment.isSearchEnable)\n return;\n if (parentFragment.isFilterEnable) {\n\n return;\n }\n\n if (!global.isNetworkAvailable()) {\n global.showAlert(Constant.NO_CONNECTION_MESSAGE, context);\n return;\n }\n if (isTotalRecordGet)\n return;\n\n if (pageNo + 1 > total_pagesInt) {\n global.showAlert(\"No more record\", context);\n return;\n }\n\n\n listFooter.setVisibility(View.VISIBLE);\n isLoading = true;\n\n try {\n\n\n getInvoiceList(++pageNo,\n SERVICE_TYPE.GET_BOTTOM_DATA,\n false,\n InvoiceList.content[position]);\n\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n });\n\n\n if (position == 0)\n setList();\n\n\n return view;\n }",
"@Override\r\n\tpublic void onRefresh() {\n\r\n\t}",
"@Override\n\tpublic void onRefresh() {\n\n\t}",
"private void refresh() {\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n String name = mContext.getSharedPreferences(LoginActivity.LOGIN_PREF, Context.MODE_PRIVATE).getString(LoginActivity.USERNAME_KEY, \"user2\");\n Call<List<Question>> call = mApiService.list(name);\n call.enqueue(new Callback<List<Question>>() {\n @Override\n public void onResponse(Call<List<Question>> call, Response<List<Question>> response) {\n Log.d(TAG, \"List feed q's success: \" + (new Gson()).toJson(response.body()));\n\n adapter = new DashListAdapter(mContext, (List<Question>)response.body());\n myQuestions.setAdapter(adapter);\n }\n\n @Override\n public void onFailure(Call<List<Question>> call, Throwable t) {\n Log.d(TAG, \"List feed q's fail\");\n t.printStackTrace();\n }\n });\n }\n });\n }",
"@Override\n public void refresh() {\n refresher.enqueueRefresh();\n }",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void onRefresh() {\n }",
"public void updateUI() {\n List<Animal> animals;\n\n String searchQuery = LexiconPreferences.getSearchQuery(getActivity());\n\n // Check if there's a search query present\n if (searchQuery != null) {\n ArrayList<String> whereArgs = new ArrayList<>();\n whereArgs.add(LexiconPreferences.getFilterValue(getActivity()));\n\n animals = mAnimalManager.searchAnimals(\n mAnimalManager.createWhereClauseFromFilter(LexiconPreferences.getFilterKey(getActivity())),\n whereArgs,\n searchQuery\n );\n } else {\n animals = mAnimalManager.getAnimals(\n mAnimalManager.createWhereClauseFromFilter(LexiconPreferences.getFilterKey(getActivity())),\n new String[]{LexiconPreferences.getFilterValue(getActivity())}\n );\n }\n\n if (animals.size() > 0) {\n // If the fragment is already running, update the data in case something changed (some animal)\n if (mAnimalAdapter == null) {\n mAnimalAdapter = new AnimalAdapter(animals);\n mAnimalRecyclerView.setAdapter(mAnimalAdapter);\n } else {\n mAnimalAdapter.setAnimals(animals);\n mAnimalAdapter.notifyDataSetChanged();\n }\n } else {\n RelativeLayout emptyList = (RelativeLayout) mView.findViewById(R.id.list_empty);\n emptyList.setVisibility(View.VISIBLE);\n }\n }",
"@Override\n\tpublic void onRefresh() {\n\t\trequestTime = 1;\n\t\trefreshFromServer(ListViewCompat.REFRESH);\n\t}",
"void onItemsLoadComplete() {\n adapter.notifyDataSetChanged();\n\n // Stop refresh animation\n srl.setRefreshing(false);\n }",
"private void updateUI() {\n swipeRefreshLayout.setRefreshing(false);\n adapter.clearItems();\n itemList.addAll(DatabaseController.getInstance(getApplicationContext()).getItems());\n if (itemList.size() > 0){\n emptyTextView.setVisibility(View.GONE);\n adapter.notifyDataSetChanged();\n } else {\n emptyTextView.setVisibility(View.VISIBLE);\n }\n }",
"public void refreshWeatherDetail()\n {\n FragmentTransaction transaction = mFragmentManager.beginTransaction();\n transaction.replace(R.id.id_activity_main, mSplashFragment, SplashFragment.TAG);\n transaction.commit();\n\n taskMode = Constants.TASK_MODE_REFRESH_WEATHER_DETAIL;\n mWeatherListItemsArray.clear();\n TaskGetOnlineData startingTask = new TaskGetOnlineData();\n startingTask.execute();\n killableTask = startingTask;\n }",
"private void refreshDisplay(List<User> newUserList){\n Timber.i(\"refreshDisplay %s\",newUserList);\n\n //if we don't have any previous data loaded and the new list is empty,\n // we hide the RecyclerView and show the refresh button\n if((newUserList == null || newUserList.size() == 0) && mAdapter.getItemCount() == 0){\n mSwipeRefreshLayout.setVisibility(View.GONE);\n mNoDataLayout.setVisibility(View.VISIBLE);\n }\n else{\n mSwipeRefreshLayout.setVisibility(View.VISIBLE);\n mNoDataLayout.setVisibility(View.GONE);\n //Don't swap the existing list with an empty list\n if(newUserList != null && newUserList.size() > 0)\n mAdapter.setUserList(newUserList);\n }\n }",
"@Override\r\n\t\t\tpublic void onRefresh() {\n\t\t\t\tm_nListStatus = LISTVIEW_STATUS_ONREFRESH;\r\n\t\t\t\t// 刷新广告栏\r\n\t\t\t\tif(adzoneView != null){\r\n\t\t\t\t\tadzoneView.refreshView();\r\n\t\t\t\t}\r\n\t\t\t\t// 获取悬赏任务数据\r\n\t\t\t\tstartGetData(HeadhunterPublic.REWARD_DIRECTIONTYPE_NEW, \"\", m_nRequestType);\r\n\t\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_show_reported_question, container, false);\n\n listViewReportedQuestion = (ListView) view.findViewById(R.id.listViewReportedQuestion);\n arrayList = new ArrayList<ReportQuestionModel>();\n\n swipeRefreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.swipeRefreshLayout);\n\n\n swipeRefreshLayout.setOnRefreshListener(this);\n swipeRefreshLayout.post(new Runnable() {\n @Override\n public void run() {\n swipeRefreshLayout.setRefreshing(true);\n\n loadReportedQuestions();\n }\n }\n );\n return view;\n }",
"@Override\r\n\t\t\tpublic void onRefresh() {\n\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onRefresh(PullToRefreshBase<ListView> refreshView) {\n\t\t\t\tnew ExpertListTask(true,true).execute();\n\t\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v =inflater.inflate(R.layout.fragment_service_list, container, false);\n lang = getContext().getSharedPreferences(Constants.SHAREDPREFERENCE_LANGUAGE, 0).getString(Constants.LANG_TYPE, null);\n\n postList=(FloatingActionButton)v.findViewById(R.id.postList);\n reqList=(FloatingActionButton)v.findViewById(R.id.reqList);\n if(lang.contentEquals(\"Arabic\")){\n\n postList.setLabelText(\"قائمة المشاركات\");\n reqList.setLabelText(\"قائمة الطلبات\");\n }\n else{\n\n postList.setLabelText(\"Post List\");\n reqList.setLabelText(\"Request List\");\n }\n postList.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent=new Intent(getActivity(), CheckPost.class);\n intent.putExtra(\"PAGE\",\"user_home\");\n startActivity(intent);\n }\n });\n reqList.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent=new Intent(getActivity(), CheckIndividualPost.class);\n intent.putExtra(\"PAGE\",\"user_home\");\n startActivity(intent);\n }\n });\n pList=new ArrayList<>();\n loader_propsals=(ProgressBar)v.findViewById(R.id.loader_propsals);\n swipe_propsal=(SwipeRefreshLayout)v.findViewById(R.id.swip_propsal);\n lv_propsals=(ListView)v.findViewById(R.id.proposal_list);\n no_propsal_txt=(TextView)v.findViewById(R.id.no_propsal_txt);\n user_id = getActivity().getSharedPreferences(Constants.SHAREDPREFERENCE_KEY, 0).getString(Constants.USER_ID, null);\n getPropsalList();\n swipe_propsal.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n pList.clear();\n swipe_propsal.setRefreshing(false);\n getPropsalList();\n\n }\n });\n return v;\n }",
"@Override\n public void onRefresh() {\n getData();\n }",
"@Override\n\t\t\t\tpublic void onPullDownToRefresh(PullToRefreshBase refreshView) {\n\n\t\t\t\t\tcurrentPage = \"0\";\n\t\t\t\t\t\n\t\t\t\t\tnextPage = \"1\";\n\t\t\t\t\t\n\t\t\t\t\tdetailListView.removeAllViews();\n\t\t\t\t\t\n\t\t\t\t\tdraw();\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n protected void onPostExecute(ParseQueryAdapter<Listing> result) {\n pullToRefreshListView.onRefreshComplete();\n\n super.onPostExecute(result);\n }",
"@Override\n public void onResume() {\n super.onResume();\n refreshContent();\n }",
"@Override\n public int getCount() {\n return fragmentList.size();\n }",
"@Override\n public void onRefresh() {\n\n GetFirstData();\n }",
"public void setUpListSubReddits() {\n\n for (SubReddit s : db.getAllSubReddits()) {\n subReddits.add(s.getName());\n }\n\n adapter = new ArrayAdapter<String>(getActivity(),\n android.R.layout.simple_list_item_1, android.R.id.text1, subReddits);\n\n // Assign adapter to ListView\n lvSubRedditList.setAdapter(adapter);\n\n // ListView Item Click Listener\n lvSubRedditList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n // ListView Clicked item index\n int itemPosition = position;\n\n // ListView Clicked item value\n String sub = (String) lvSubRedditList.getItemAtPosition(position);\n Toast toast = Toast.makeText(getContext(), sub, Toast.LENGTH_SHORT);\n toast.show();\n\n\n int opened = 1;\n\n if (db.getSubReddit(sub).getOpened() == 0) {\n db.openSubRedditFirstTime(sub);\n opened = 0;\n }\n\n Class fragClass = Fragment_Posts.class;\n try {\n Fragment frag = (Fragment) fragClass.newInstance();\n Bundle args = new Bundle();\n args.putString(\"subName\", sub);\n args.putInt(\"opened\", opened);\n frag.setArguments(args);\n switchFragment(frag);\n } catch (Exception e) {\n e.printStackTrace();\n Log.i(\"StartFrag\", \"Failed\");\n }\n\n\n }\n });\n }",
"public interface INewsFragment {\n public void reloadDatas(ArrayList<?> list);\n}",
"@Override\r\n public void changeFragment() {\r\n fm.beginTransaction()\r\n .replace(R.id.fragmentContainer, new ListWonderFragment())\r\n .commit();\r\n }",
"@Override\n public int getCount() {\n return fragmentList.size();\n }"
] | [
"0.7971656",
"0.7621725",
"0.7450382",
"0.742941",
"0.7424688",
"0.7408451",
"0.73266387",
"0.72735476",
"0.7250915",
"0.7184718",
"0.7154248",
"0.70952785",
"0.70615727",
"0.69874936",
"0.69848996",
"0.69488794",
"0.69300365",
"0.6895681",
"0.68836176",
"0.68613315",
"0.68374175",
"0.68305624",
"0.68296343",
"0.6822982",
"0.68187165",
"0.68126726",
"0.68083084",
"0.6805365",
"0.6779737",
"0.6771016",
"0.67623216",
"0.67578304",
"0.67578113",
"0.6756777",
"0.6728802",
"0.67212373",
"0.6713077",
"0.67052895",
"0.67008954",
"0.66673315",
"0.6637046",
"0.6624843",
"0.6616939",
"0.6614242",
"0.6604635",
"0.6593019",
"0.6587333",
"0.65744334",
"0.6569318",
"0.65477246",
"0.6536151",
"0.65296566",
"0.6529547",
"0.65283036",
"0.650144",
"0.64941454",
"0.6483826",
"0.64687645",
"0.6462483",
"0.64611536",
"0.6460052",
"0.6458798",
"0.64580727",
"0.6452898",
"0.6445506",
"0.64349216",
"0.64288807",
"0.6428172",
"0.64175415",
"0.6415289",
"0.641511",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6391154",
"0.6390956",
"0.638175",
"0.6368011",
"0.6365384",
"0.63592666",
"0.63587224",
"0.63564396",
"0.6350043",
"0.6349278",
"0.6341122",
"0.6337936",
"0.6334602",
"0.63337713",
"0.63256156",
"0.6317221",
"0.63082397",
"0.6305735",
"0.6305588",
"0.63005435",
"0.6294192",
"0.6292062"
] | 0.6364581 | 83 |
Create adapter to display items | protected abstract SingleTypeAdapter<E> createAdapter( final List<E> items ); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ItemsAdapter() {\n\n\n }",
"public OrderAdapter() {\n super(new ArrayList<MultiItemEntity>());\n addItemType(TYPE_HEAD, R.layout.item_order_head);\n addItemType(TYPE_CONTENT, R.layout.item_order_content);\n addItemType(TYPE_FOOTER, R.layout.item_order_foot);\n }",
"public Adapter() {\n super();\n this.listItemsBT = new ArrayList<>();\n /*Random random = new Random();\n for(int i = 0; i<50;i++){\n listItemsBT.add(new ItemBT(\"El vic xd\" + i, \"10:12:... NUMBER: \"+i, random.nextBoolean()));\n }*/\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n \n /* Get the incoming data from the calling activity */\n String itemKey = getIntent().getStringExtra(\"com.gimranov.zandy.client.itemKey\");\n item = Item.load(itemKey);\n \n // When an item in the view has been updated via a sync, the temporary key may have\n // been swapped out, so we fall back on the DB ID\n if (item == null) {\n String itemDbId = getIntent().getStringExtra(\"com.gimranov.zandy.client.itemDbId\");\n \titem = Item.loadDbId(itemDbId);\n }\n \t\n // Set the activity title to the current item's title, if the title works\n if (item.getTitle() != null && !item.getTitle().equals(\"\"))\n \tthis.setTitle(item.getTitle());\n else\n \tthis.setTitle(\"Item Data\");\n \n ArrayList<Bundle> rows = item.toBundleArray();\n \n /* \n * We use the standard ArrayAdapter, passing in our data as a Bundle.\n * Since it's no longer a simple TextView, we need to override getView, but\n * we can do that anonymously.\n */\n setListAdapter(new ArrayAdapter<Bundle>(this, R.layout.list_data, rows) {\n \t@Override\n \tpublic View getView(int position, View convertView, ViewGroup parent) {\n \t\tView row;\n \t\t\n // We are reusing views, but we need to initialize it if null\n \t\tif (null == convertView) {\n LayoutInflater inflater = getLayoutInflater();\n \t\t\trow = inflater.inflate(R.layout.list_data, null);\n \t\t} else {\n \t\t\trow = convertView;\n \t\t}\n \n \t\t/* Our layout has just two fields */\n \t\tTextView tvLabel = (TextView) row.findViewById(R.id.data_label);\n \t\tTextView tvContent = (TextView) row.findViewById(R.id.data_content);\n \t\t\n \t \t/* Since the field names are the API / internal form, we\n \t \t * attempt to get a localized, human-readable version. */\n \t\ttvLabel.setText(Item.localizedStringForString(\n \t\t\t\t\tgetItem(position).getString(\"label\")));\n \t\t\n \t\tString content = getItem(position).getString(\"content\");\n \t\t\n \t\ttvContent.setText(content);\n \n \t\treturn row;\n \t}\n });\n \n ListView lv = getListView();\n lv.setTextFilterEnabled(true);\n lv.setOnItemClickListener(new OnItemClickListener() {\n \t// Warning here because Eclipse can't tell whether my ArrayAdapter is\n \t// being used with the correct parametrization.\n \t@SuppressWarnings(\"unchecked\")\n \t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n \t\t\t// If we have a click on an entry, do something...\n \t\tArrayAdapter<Bundle> adapter = (ArrayAdapter<Bundle>) parent.getAdapter();\n \t\tBundle row = adapter.getItem(position);\n \t\tif (row.getString(\"label\").equals(\"url\")) {\n \t\t\trow.putString(\"url\", row.getString(\"content\"));\n \t\t\tremoveDialog(DIALOG_CONFIRM_NAVIGATE);\n \t\t\tshowDialog(DIALOG_CONFIRM_NAVIGATE, row);\n \t\t\treturn;\n \t\t} else if (row.getString(\"label\").equals(\"DOI\")) {\n \t\t\tString url = \"http://dx.doi.org/\"+Uri.encode(row.getString(\"content\"));\n \t\t\trow.putString(\"url\", url);\n \t\t\tremoveDialog(DIALOG_CONFIRM_NAVIGATE);\n \t\t\tshowDialog(DIALOG_CONFIRM_NAVIGATE, row);\n \t\t\treturn;\n \t\t} else if (row.getString(\"label\").equals(\"creators\")) {\n \t \tLog.d(TAG, \"Trying to start creators activity\");\n \t \tIntent i = new Intent(getBaseContext(), CreatorActivity.class);\n \t\t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \tstartActivity(i);\n \t \treturn;\n \t\t} else if (row.getString(\"label\").equals(\"tags\")) {\n \t \tLog.d(TAG, \"Trying to start tag activity\");\n \t \tIntent i = new Intent(getBaseContext(), TagActivity.class);\n \t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \tstartActivity(i);\n \t\t\treturn;\n \t \t\t} else if (row.getString(\"label\").equals(\"children\")) {\n \t \t \tLog.d(TAG, \"Trying to start attachment activity\");\n \t \t \tIntent i = new Intent(getBaseContext(), AttachmentActivity.class);\n \t \t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \t \tstartActivity(i);\n \t \t\t\treturn;\n \t \t\t}\n \t\t\n \t\t\t\tToast.makeText(getApplicationContext(), row.getString(\"content\"), \n \t\t\t\tToast.LENGTH_SHORT).show();\n \t}\n });\n \n /*\n * On long click, we bring up an edit dialog.\n */\n lv.setOnItemLongClickListener(new OnItemLongClickListener() {\n \t/*\n \t * Same annotation as in onItemClick(..), above.\n \t */\n \t@SuppressWarnings(\"unchecked\")\n \t\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n \t\t\t// If we have a long click on an entry, we'll provide a way of editing it\n \t\tArrayAdapter<Bundle> adapter = (ArrayAdapter<Bundle>) parent.getAdapter();\n \t\tBundle row = adapter.getItem(position);\n \t\t// Show the right type of dialog for the row in question\n \t\tif (row.getString(\"label\").equals(\"itemType\")) {\n \t\t\t// XXX \n \tToast.makeText(getApplicationContext(), \"Item type cannot be changed.\", \n \t\t\t\tToast.LENGTH_SHORT).show();\n \t\t\t//removeDialog(DIALOG_ITEM_TYPE);\n \t\t\t//showDialog(DIALOG_ITEM_TYPE, row);\n \t\t\treturn true;\n \t\t} else if (row.getString(\"label\").equals(\"children\")) {\n \t \tLog.d(TAG, \"Not starting children activity on click-and-hold\");\n \t \treturn true;\n \t\t} else if (row.getString(\"label\").equals(\"creators\")) {\n \t \tLog.d(TAG, \"Trying to start creators activity\");\n \t \tIntent i = new Intent(getBaseContext(), CreatorActivity.class);\n \t\t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \tstartActivity(i);\n \t \treturn true;\n \t\t} else if (row.getString(\"label\").equals(\"tags\")) {\n \t \tLog.d(TAG, \"Trying to start tag activity\");\n \t \tIntent i = new Intent(getBaseContext(), TagActivity.class);\n \t \ti.putExtra(\"com.gimranov.zandy.client.itemKey\", item.getKey());\n \t \tstartActivity(i);\n \t\t\treturn true;\n \t\t}\n \t\t\tremoveDialog(DIALOG_SINGLE_VALUE);\n \t\tshowDialog(DIALOG_SINGLE_VALUE, row);\n \t\treturn true;\n }\n });\n \n }",
"private void inflateViewForItem(Item item) {\n\n //Inflate Layout\n ItemCardBinding binding = ItemCardBinding.inflate(getLayoutInflater());\n\n //Bind Data\n binding.imageView.setImageBitmap(item.bitmap);\n binding.title.setText(item.label);\n binding.title.setBackgroundColor(item.color);\n\n //Add it to the list\n b.list.addView(binding.getRoot());\n }",
"private void showArrayAdaptView() {\n\t\tPersonAdapt personAdapt = new PersonAdapt(this, persons, R.layout.listview_item);\n\t\tlistView.setAdapter(personAdapt);\n\t}",
"@NonNull\n @Override\n public Adapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int i) {\n View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_rv, parent, false);\n return new ViewHolder(view);\n }",
"public customAdapter() {\n super(SeekerRatingsListActivity.this, R.layout.rating_content, seekerRatingsList);\n }",
"private void createListView()\n {\n itens = new ArrayList<ItemListViewCarrossel>();\n ItemListViewCarrossel item1 = new ItemListViewCarrossel(\"Guilherme Biff\");\n ItemListViewCarrossel item2 = new ItemListViewCarrossel(\"Lucas Volgarini\");\n ItemListViewCarrossel item3 = new ItemListViewCarrossel(\"Eduardo Ricoldi\");\n\n\n ItemListViewCarrossel item4 = new ItemListViewCarrossel(\"Guilh\");\n ItemListViewCarrossel item5 = new ItemListViewCarrossel(\"Luc\");\n ItemListViewCarrossel item6 = new ItemListViewCarrossel(\"Edu\");\n ItemListViewCarrossel item7 = new ItemListViewCarrossel(\"Fe\");\n\n ItemListViewCarrossel item8 = new ItemListViewCarrossel(\"iff\");\n ItemListViewCarrossel item9 = new ItemListViewCarrossel(\"Lucini\");\n ItemListViewCarrossel item10 = new ItemListViewCarrossel(\"Educoldi\");\n ItemListViewCarrossel item11 = new ItemListViewCarrossel(\"Felgo\");\n\n itens.add(item1);\n itens.add(item2);\n itens.add(item3);\n itens.add(item4);\n\n itens.add(item5);\n itens.add(item6);\n itens.add(item7);\n itens.add(item8);\n\n itens.add(item9);\n itens.add(item10);\n itens.add(item11);\n\n //Cria o adapter\n adapterListView = new AdapterLsitView(this, itens);\n\n //Define o Adapter\n listView.setAdapter(adapterListView);\n //Cor quando a lista é selecionada para ralagem.\n listView.setCacheColorHint(Color.TRANSPARENT);\n }",
"public SurveyAdapter(List<Object> items) {\n this.items = items;\n }",
"private void setupAdapter() {\n FullWidthDetailsOverviewRowPresenter detailsPresenter;\n if (isIncomingRequest || isOutgoingRequest) {\n detailsPresenter = new FullWidthDetailsOverviewRowPresenter(\n new TVContactRequestDetailPresenter(),\n new DetailsOverviewLogoPresenter());\n } else {\n detailsPresenter = new FullWidthDetailsOverviewRowPresenter(\n new TVContactDetailPresenter(),\n new DetailsOverviewLogoPresenter());\n }\n\n detailsPresenter.setBackgroundColor(ContextCompat.getColor(requireContext(), R.color.grey_900));\n detailsPresenter.setInitialState(FullWidthDetailsOverviewRowPresenter.STATE_HALF);\n\n // Hook up transition element.\n Activity activity = getActivity();\n if (activity != null) {\n FullWidthDetailsOverviewSharedElementHelper mHelper = new FullWidthDetailsOverviewSharedElementHelper();\n mHelper.setSharedElementEnterTransition(activity, TVContactActivity.SHARED_ELEMENT_NAME);\n detailsPresenter.setListener(mHelper);\n detailsPresenter.setParticipatingEntranceTransition(false);\n prepareEntranceTransition();\n }\n\n detailsPresenter.setOnActionClickedListener(action -> {\n if (action.getId() == ACTION_CALL) {\n presenter.contactClicked();\n } else if (action.getId() == ACTION_DELETE) {\n presenter.removeContact();\n } else if (action.getId() == ACTION_CLEAR_HISTORY) {\n presenter.clearHistory();\n } else if (action.getId() == ACTION_ADD_CONTACT) {\n presenter.onAddContact();\n } else if (action.getId() == ACTION_ACCEPT) {\n presenter.acceptTrustRequest();\n } else if (action.getId() == ACTION_REFUSE) {\n presenter.refuseTrustRequest();\n } else if (action.getId() == ACTION_BLOCK) {\n presenter.blockTrustRequest();\n }\n });\n\n ClassPresenterSelector mPresenterSelector = new ClassPresenterSelector();\n mPresenterSelector.addClassPresenter(DetailsOverviewRow.class, detailsPresenter);\n mPresenterSelector.addClassPresenter(ListRow.class, new ListRowPresenter());\n mAdapter = new ArrayObjectAdapter(mPresenterSelector);\n setAdapter(mAdapter);\n }",
"private void displayListView() {\n\t\tArrayList<FillterItem> fillterList = new ArrayList<FillterItem>();\n\n\t\tfor (int i = 0; i < province.length; i++) {\n\t\t\tLog.i(\"\", \"province[i]: \" + province[i]);\n\t\t\tFillterItem fillter = new FillterItem();\n\t\t\tfillter.setStrContent(province[i]);\n\t\t\tfillter.setSelected(valueList[i]);\n\t\t\t// add data\n\t\t\tfillterList.add(fillter);\n\t\t}\n\n\t\t// create an ArrayAdaptar from the String Array\n\t\tdataAdapter = new MyCustomAdapter(getContext(),\n\t\t\t\tR.layout.item_fillter_header, fillterList);\n\n\t\t// Assign adapter to ListView\n\t\tlistView.setAdapter(dataAdapter);\n\n\t}",
"ExerciseAdapter(List<Programme.MyItems> items)\n {\n this.myItems = items;\n }",
"private void setAdapter(){\n ArrayList<Veranstaltung>ver = new ArrayList<>(studium.getLVS());\n recyclerView = findViewById(R.id.rc);\n LinearLayoutManager manager = new LinearLayoutManager(this);\n recyclerView.setLayoutManager(manager);\n recyclerView.setHasFixedSize(true);\n adapter = new StudiumDetailsRecylerAdapter(ver);\n recyclerView.setAdapter(adapter);\n }",
"private void showSimpleAdaptView() {\n\t\tList<HashMap<String, Object>> data = new ArrayList<HashMap<String,Object>>();\n\t\tfor (Person person : persons) {\n\t\t\tHashMap<String, Object> hashMap = new HashMap<String, Object>();\n\t\t\thashMap.put(\"name\", person.getNameString());\n\t\t\thashMap.put(\"phone\", person.getPhoneNum());\n\t\t\thashMap.put(\"amount\", person.getAmount());\n\t\t\thashMap.put(\"personid\", person.getId());\n\t\t\tdata.add(hashMap);\n\t\t}\n\t\tSimpleAdapter simpleAdapter = new SimpleAdapter(this, data, R.layout.listview_item,\n\t\t\t\tnew String[]{\"name\",\"phone\",\"amount\"}, \n\t\t\t\tnew int[]{R.id.name,R.id.phone,R.id.account});\n\t\t\n\t\tlistView.setAdapter(simpleAdapter);\n\t}",
"@Override\n\t\t\tpublic ViewHolder onCreateViewHolder(View itemView) {\n\t\t\t\treturn new MylisViewHoder(itemView);\n\t\t\t}",
"public void initView() {\n ArrayAdapter<String> arrayAdapter=new ArrayAdapter<String>(getView().getContext(),android.R.layout.simple_list_item_1,tracks);\n list.setAdapter(arrayAdapter);\n }",
"private void fillAdapter() {\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<String> recipesListLoader = loaderManager.getLoader(RECIPES_LIST_LOADER);\n if(recipesListLoader == null) {\n loaderManager.initLoader(RECIPES_LIST_LOADER, null, this);\n } else {\n loaderManager.restartLoader(RECIPES_LIST_LOADER, null, this);\n }\n }",
"public DataPenemuanListAdapter(Context context) { mInflater = LayoutInflater.from(context); }",
"@Override\n\tprotected RecycleBaseAdapter getListAdapter() {\n\t\treturn new VipStudentAdapter();\n\t}",
"private void setupCustomAdapter() {\n AnimalAdapter adapter = new AnimalAdapter(this, animals);\n aListView.setAdapter(adapter);\n }",
"AdapterItems(int ID, String product)\n {\n this.ID=ID;\n this.product=product;\n //this. Description=Description;\n }",
"public abstract ItemListAdapter getAdapter(RecyclerView recyclerView);",
"public ItemAdapter(Context context, int textViewResourceId, ArrayList<item> objects) {\n\t\tsuper(context, textViewResourceId, objects);\n\t\tthis.objects = objects;\n\t}",
"private void prepareRecyclerView() {\n equipmentInventoryListAdapter = new EquipmentInventoryListAdapter_v2(equipmentInventoryAvailableCallback, equipmentInventoryMissingCallback);\n GridLayoutManager layoutManager = new GridLayoutManager(getContext(), 2);\n binding.equipmentInventoryList.setLayoutManager(layoutManager);\n binding.equipmentInventoryList.setAdapter(equipmentInventoryListAdapter);\n //binding.equipmentInventoryList.addItemDecoration(new DividerItemDecoration(binding.equipmentInventoryList.getContext(), DividerItemDecoration.HORIZONTAL));\n }",
"private void showMyAdapt() {\n\t\tmyAdapt = new MyAdapt(this, persons);\n\t\tlistView.setAdapter(myAdapt);\n\t}",
"private void setAdapter() {\n resultsRv.setLayoutManager(new LinearLayoutManager(getActivity()));\n resultsRv.setHasFixedSize(true);\n resultsRv.setItemAnimator(new DefaultItemAnimator());\n resultsRv.setAdapter(resultsListAdapter);\n }",
"private void setupCursorAdapter() {\n // Column data from cursor to bind views from\n String[] uiBindFrom = {ContactsContract.Contacts.DISPLAY_NAME,\n ContactsContract.Contacts.PHOTO_URI};\n // View IDs which will have the respective column data inserted\n int[] uiBindTo = {R.id.contact_name };\n// int[] uiBindTo = {R.id.contact_name, R.id.contact_image};\n // Create the simple cursor adapter to use for our list\n // specifying the template to inflate (item_contact),\n adapter = new SimpleCursorAdapter(\n mContext, R.layout.contact_item,\n null, uiBindFrom, uiBindTo,\n 0);\n }",
"public void setAdapter() {\n datalist = new ArrayList<>();\n\n adapter = new SoundListAdapter(context, datalist, new AdapterClickListener() {\n @Override\n public void onItemClick(View view, int pos, Object object) {\n\n SoundsModel item = (SoundsModel) object;\n\n if (view.getId() == R.id.done) {\n stopPlaying();\n downLoadMp3(item.id, item.sound_name, item.acc_path);\n } else if (view.getId() == R.id.fav_btn) {\n callApiForFavSound(pos, item);\n } else {\n if (thread != null && !thread.isAlive()) {\n stopPlaying();\n playaudio(view, item);\n } else if (thread == null) {\n stopPlaying();\n playaudio(view, item);\n }\n }\n }\n });\n\n recyclerView.setAdapter(adapter);\n\n\n }",
"public void setupAdaptedItemView() {\r\n ArrayList<Profile> requesterList = new ArrayList<>();\r\n requesterList.add(requester);\r\n setupAdaptedItemView(requesterList);\r\n }",
"@Override\n public View getView(int position, View ConvertView, ViewGroup parent){ ///position starts from zero,one and goes on, parent would be the layout we want to display all elements\n View row=ConvertView; //to optimize we inflate the item only first else we recycle the view using converterView\n if(row==null) {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n //**View of which we want to convert to java view object\n row = inflater.inflate(R.layout.single_row, parent, false);\n }\n //*****From row view we can access the view items and populate it data\n ImageView imageView = (ImageView)row.findViewById(R.id.imageView);\n TextView myDiscription=(TextView)row.findViewById(R.id.myDescription);\n TextView myTitle=(TextView)row.findViewById(R.id.mytitle);\n\n imageView.setImageResource(images[position]); //postion will incremented automaticlly as views will populate\n myDiscription.setText(description[position]);\n myTitle.setText(titles[position]);\n\n return row;\n }",
"private void initData() {\n contents.clear();\n images.clear();\n contents.add(\"荣誉殿堂\");\n contents.add(getResources().getString(R.string.mine_item1));\n contents.add(getResources().getString(R.string.mine_item2));\n contents.add(getResources().getString(R.string.mine_item4));\n contents.add(getResources().getString(R.string.mine_item3));\n\n String sex = SPHelper.getDetailMsg(getActivity(), Cons.USER_INFO, getString(R.string.appsex_man));\n images.add(BGHelper.setButtonSetting(getActivity(), sex));\n images.add(BGHelper.setButtonNotify(getActivity(), sex));\n images.add(BGHelper.setButtonReport(getActivity(), sex));\n images.add(sex.equals(\"M\") ? R.drawable.ioc_mine_que_blue : R.drawable.ioc_mine_que_red);\n images.add(BGHelper.setButtonSetting(getActivity(), sex));\n\n\n adapter = new MineAdapter(getActivity(), contents, images, this);\n lv_mine.setAdapter(adapter);\n }",
"public RecommendAdapter(List<RecommendFood> data) {\n super(data);\n addItemType(RecommendFood.TYPE_BIG, R.layout.recommend_item_middle);\n addItemType(RecommendFood.TYPE_DETAIL, R.layout.recommend_item_detail);\n addItemType(RecommendFood.TYPE_MIDDLE, R.layout.recommend_item_middle);\n }",
"private void createAdapter() {\n Query query = partituraDaoImpl.getOwnPartituras();\n FirestoreRecyclerOptions<Partitura> options = new FirestoreRecyclerOptions.Builder<Partitura>()\n //query and class in which the data is saved\n .setQuery(query, Partitura.class).setLifecycleOwner(this).build();\n if (adapter != null) adapter.stopListening();\n //Create adapter\n adapter = new PartituraAdapter(options, getContext());\n //assign the adapter\n rvPartituras.setAdapter(adapter);\n //we began to listen.\n adapter.startListening();\n // Move the scroll of the recyclerView to the beginning to see the new message\n adapter.getSnapshots().addChangeEventListener(new ChangeEventListener() {\n @Override\n public void onChildChanged(@NonNull ChangeEventType type, @NonNull\n DocumentSnapshot snapshot, int newIndex, int oldIndex) {\n rvPartituras.smoothScrollToPosition(0);\n }\n @Override\n public void onDataChanged() {\n }\n @Override\n public void onError(@NonNull FirebaseFirestoreException e) {\n }\n });\n }",
"protected abstract ReadCell<DataType> createItemCell(LayoutInflater inflater, View convertView, ViewGroup parent);",
"MyAdapter(List<FakeNews> myList) {\n list = myList;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItem = convertView;\n int pos = position;\n\n if(listItem == null){\n listItem = layoutInflater.inflate(R.layout.item_list, null);\n }\n\n //Colocando na tela os elementos da busca\n ImageView iv = (ImageView) listItem.findViewById(R.id.thumb);\n TextView tvTitle = (TextView) listItem.findViewById(R.id.title);\n TextView tvDate = (TextView) listItem.findViewById(R.id.date);\n\n //aplicando as views no form_contato\n imageLoader.DisplayImage(feed.getItem(pos).getImage(), iv);\n tvTitle.setText(feed.getItem(pos).getTitle());\n tvDate.setText(feed.getItem(pos).getDate());\n\n return listItem;\n }",
"protected HeaderFooterListAdapter<MultiTypeAdapter> createListAdapter() {\n MultiTypeAdapter wrapped = createAdapter();\n HeaderFooterListAdapter<MultiTypeAdapter> adapter = new HeaderFooterListAdapter<MultiTypeAdapter>(getListView(), wrapped);\n if (isAddAdapterHeader()) {\n adapter.addHeader(adapterHeaderView());\n }\n return adapter;\n }",
"public RowListaCustomAdapter ( Context c, ArrayList<Row>data){\n Log.v(TAG, \"Construir Adaptador\");\n this.data = data;\n inflater = LayoutInflater.from(c);\n\n }",
"private void setUpAdapter(){\n customMovieAdapter= new CustomMovieAdapter(getActivity(),R.layout.list_movie_forecast,movieRowItemsList);\n gridView.setAdapter(customMovieAdapter);\n }",
"private void renderer(int rv, ArrayList<ItemBox> list){\n recyclerView = findViewById(rv);\r\n recyclerView.setHasFixedSize(true);\r\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);\r\n RecyclerView.Adapter adapter = new Itembox_Adapter(list, this, 1);\r\n recyclerView.setLayoutManager(layoutManager);\r\n recyclerView.setAdapter(adapter);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n HashMap<String, String> map = new HashMap<String, String>();\n //FILL\n for (int i = 0; i < players.length; i++) {\n map = new HashMap<String, String>();\n map.put(\"Player\", players[i]);\n map.put(\"Desc\", desc[i]);\n map.put(\"Image\", Integer.toString(images[i]));\n map.put(\"Imagemain\", Integer.toString(imagemain[i]));\n data.add(map);\n }\n //KEYS IN MAP\n String[] from = {\"Player\",\"Desc\", \"Image\"};\n //IDS OF VIEWS\n int[] to = {R.id.textView3, R.id.nameTxt, R.id.imageView1};\n//ADAPTER\n adapter = new SimpleAdapter(getActivity(), data, R.layout.model, from, to);\n setListAdapter(adapter);\n return super.onCreateView(inflater, container, savedInstanceState);\n }",
"@Override\n public listAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n\n\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.listitemamentitylayout, parent, false);\n\n listAdapter.ViewHolder vh = new listAdapter.ViewHolder(v);\n\n\n\n return vh;\n\n\n\n }",
"@Override\n\tprotected void initAdapter(){\n\t\tsuper.initAdapter();\n\t\tadapter = new BaseAdapter() {\n\n\t\t\t@Override\n\t\t\tpublic View getView(int position,View convertView,ViewGroup parent){\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tGoods goods = list.get(position);\n\t\t\t\tLayoutInflater inflater = getLayoutInflater();\n\t\t\t\tView view = inflater.inflate(R.layout.trade_listitem, null);\n\t\t\t\tTextView txt_goods_name = (TextView) view.findViewById(R.id.txt_goods_name);\n\t\t\t\tBmobFile file = new BmobFile();\n\t\t\t\tfile = goods.getPicture();\n\n\t\t\t\tif(file != null){\n\t\t\t\t\tString fileName = file.getFilename();\n\t\t\t\t\tString url = file.getFileUrl(mContext);\n\t\t\t\t\tString URL = BmobProFile.getInstance(mContext).signURL(fileName, url, AppConfig.AccessKey, 0, null);\n\t\t\t\t\tImageView imageView = (ImageView) view.findViewById(R.id.img_picture);\n\t\t\t\t\tImageListener listener = ImageLoader.getImageListener(imageView, android.R.drawable.ic_menu_rotate, android.R.drawable.ic_delete);\n\t\t\t\t\tmImageLoader.get(URL, listener);\n\n\t\t\t\t}\n\t\t\t\tString brand = \"\";\n\t\t\t\tif(goods.getBrand() != null){\n\t\t\t\t\tbrand = goods.getBrand();\n\t\t\t\t}\n\t\t\t\ttxt_goods_name.setText(brand + goods.getTradeName());\n\t\t\t\tTextView txt_goods_price = (TextView) view.findViewById(R.id.txt_goods_price);\n\t\t\t\ttxt_goods_price.setText(goods.getPrice() + \"\");\n\t\t\t\treturn view;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic long getItemId(int position){\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn position;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Object getItem(int position){\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn list.get(position);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int getCount(){\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn list.size();\n\t\t\t}\n\t\t};\n\t\tmPullRefreshListView.setAdapter(adapter);\n\n\t}",
"public void populateView() {\r\n populateHead();\r\n ArrayList arrayList = new ArrayList();\r\n arrayList.add(new AccDetailItem(\"Loan Amount\", this.account.totLoanAmt, MiscUtils.getColor(getResources(), this.account.totLoanAmt)));\r\n arrayList.add(new AccDetailItem(\"Interest Rate\", this.account.interestRate));\r\n arrayList.add(new AccDetailItem(\"Repayment Amount\", this.account.repaymentAmt, MiscUtils.getColor(getResources(), this.account.repaymentAmt)));\r\n arrayList.add(new AccDetailItem(\"Start Date\", this.account.startDt));\r\n arrayList.add(new AccDetailItem(\"End Date\", this.account.endDt));\r\n arrayList.add(new AccDetailItem(\"Status\", this.account.loanStatus));\r\n ArrayList arrayList2 = new ArrayList();\r\n arrayList2.add(new AccDetailItem(\"Outstanding Amount\", this.account.formattedOutstandingAmount, ContextCompat.getColor(getContext(), R.color.primary_red)));\r\n arrayList2.add(new AccDetailItem(\"Overdue Amount\", String.valueOf(this.account.overdueAmount), MiscUtils.getColor(getResources(), (double) this.account.overdueAmount)));\r\n arrayList2.add(new AccDetailItem(\"No. of Repayments Overdue\", this.account.overdueCount));\r\n this.list.setAdapter(new AccountDetailItemAdapter(getActivity(), arrayList));\r\n this.list2.setAdapter(new AccountDetailItemAdapter(getActivity(), arrayList2));\r\n MiscUtils.setListViewHeightBasedOnChildren(this.list);\r\n MiscUtils.setListViewHeightBasedOnChildren(this.list2);\r\n }",
"public ExampleDetailsAdapter(Context context, ArrayList<ExampleDetailObjects> objects) {\n super(context, R.layout.detail_itemtype_item, objects);\n this.context = context;\n this.objects = objects;\n }",
"private void setRecyclerViewData() {\n\n itemList = new ArrayList<ListItem>();\n itemList.add(new RememberCardView(\"Du musst 12€ zahlen\"));\n itemList.add(new DateCardItem(\"Mo\", \"29.07.\", \"Training\", \"20:00\", \"21:45\"));\n itemList.add(new VoteCardItem(\"Welche Trikotfarbe ist besser?\"));\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View view = mInflater.inflate(R.layout.item_data, parent, false);\n return new ViewHolder(view);\n }",
"@Override\n public int getCount() {\n return items.size();\n }",
"@Override\n public int getCount() {\n return items.size();\n }",
"@Override\n public int getCount() {\n return items.size();\n }",
"@Override\n public int getCount() {\n return items.size();\n }",
"public ProjectItemAdapter(Context context)\r\n {\r\n super();\r\n \r\n inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n projects = new ArrayList<Project>();\r\n }",
"@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tView view = LayoutInflater.from(getActivity()).inflate(R.layout.discovery_fragment_listitem, null);\n\t\t\tImageView icon = (ImageView)view.findViewById(R.id.itemIcon);\n\t\t\tTextView textView = (TextView)view.findViewById(R.id.itemTv);\n\t\t\tImageView inImageView = (ImageView)view.findViewById(R.id.itemInImg);\n\t\t\t\n\t\t\ticon.setImageResource(imgs[position]);\n\t\t\ttextView.setText(names[position]);\n\t\t\tinImageView.setImageResource(R.drawable.in);\n\t\t\treturn view;\n\t\t}",
"public void displayItems(){\n\n //Prepare Item ArrayList\n ArrayList<Item> itemList = new ArrayList<Item>();\n\n Cursor results = items_db_helper.getRecords();\n\n while(results.moveToNext()){\n int _id = results.getInt(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_ID));\n String item_title = results.getString(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_TITLE));\n int quantity_in_stock = results.getInt(results.getColumnIndex(DatabaseTables.InventoryItems.QUANTITY_IN_STOCK));\n double item_price = results.getDouble(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_PRICE));\n byte[] item_thumbnail_byte = results.getBlob(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_THUMBNAIL));\n Bitmap item_thumbnail = BitmapFactory.decodeByteArray(item_thumbnail_byte, 0, item_thumbnail_byte.length);\n\n //Create an Item object and store these data here (at this moment we will only extract data relevant to list item\n Item item = new Item();\n item.setItemId(_id);\n item.setItemTitle(item_title);\n item.setItemPrice(item_price);\n item.setItemThumbnail(item_thumbnail);\n item.setQuantityInStock(quantity_in_stock);\n\n itemList.add(item);\n }\n\n final ListView listView = (ListView) findViewById(R.id.item_list);\n listView.setItemsCanFocus(false);\n listView.setEmptyView(findViewById(R.id.empty_list_text));\n ItemAdapter itemAdapter = new ItemAdapter(MainActivity.this, itemList);\n listView.setAdapter(itemAdapter);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Item curr_item = (Item) listView.getItemAtPosition(i);\n Intent details_intent = new Intent(MainActivity.this, DetailsActivity.class);\n details_intent.putExtra(\"item_id\", curr_item.getItemId());\n startActivity(details_intent);\n }\n });\n\n }",
"public CustomAdapter(List<Quiz> quizList) {// Now lets add stuff to the quiz.\n this.quizList = quizList;\n }",
"public void setAdapter() {\n // Create Custom Adapter\n Resources res = getResources();\n adapter = null;\n adapter = new WebsearchListAdapter(this, CustomListViewValuesArr, res);\n list.setAdapter(adapter);\n }",
"public AdapterForDisplayRecipes(Context context, ArrayList<RecipeModel> data) {\n mMainActivity = (MainActivity) context;\n this.mInflater = LayoutInflater.from(context);\n this.mData = data;\n// this.listener = listener;\n }",
"public OrderItemHolder(MyAdapter myAdapter) {\n super(myAdapter, R.layout.delivered_order_item);\n ButterKnife.bind(this, itemView);\n }",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tInboxItemHolder drawerHolder;\n\t\tView view = convertView;\n\n\t\tif (view == null) {\n\t\t\tLayoutInflater inflater = ((Activity) context).getLayoutInflater();\n\t\t\tdrawerHolder = new InboxItemHolder();\n\n\t\t\tview = inflater.inflate(layoutResID, parent, false);\n\t\t\tdrawerHolder.TxtSubject = (TextView) view\n\t\t\t\t\t.findViewById(R.id.txt_subject);\n\t\t\tdrawerHolder.TxtFrom = (TextView) view.findViewById(R.id.txt_from);\n\t\t\tdrawerHolder.TxtDate = (TextView)view.findViewById(R.id.txt_date);\n\t\t\tdrawerHolder.icon = (ImageView) view.findViewById(R.id.email_ava_list);\n\n\t\t\tview.setTag(drawerHolder);\n\t\t} else {\n\t\t\tdrawerHolder = (InboxItemHolder) view.getTag();\n\t\t}\n\n\t\tInboxEntity dItem = (InboxEntity) this.drawerItemList.get(position);\n\t\t\n\t\tdrawerHolder.TxtSubject.setText(dItem.getSubject());\n\t\tdrawerHolder.TxtFrom.setText(dItem.getFrom());\n\t\tdrawerHolder.TxtDate.setText(dItem.getDate());\n\t\t\n\t\tColorGenerator generator = ColorGenerator.MATERIAL;\n\t\tint color = generator.getColor(dItem.getFrom());\n\t\tTextDrawable.IBuilder builder = TextDrawable.builder().round();\n\t\tString icon = (dItem.getFrom().matches(\"^[a-zA-Z].*$\"))?dItem.getFrom().substring(0, 1):dItem.getFrom().substring(1, 2);\n\t\ticon = (icon.matches(\"^[a-zA-Z].*$\")?icon:dItem.getFrom().substring(2,3));\n\t\tTextDrawable td = builder.build(icon.toUpperCase(), color);\n\t\tdrawerHolder.icon.setImageDrawable(td);\n\t\treturn view;\n\t}",
"public ItemListAdapter(Context inContext) {\n context = inContext;\n }",
"public MyAdapter(@NonNull Context context, @LayoutRes int resource, @NonNull List<Model> objects) {\n super(context,resource,objects);\n this.context=context;\n this.resource=resource;\n modelList=objects;\n inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n }",
"TaskukirjaListAdapter(Context context) { mInflater = LayoutInflater.from(context); }",
"public SiteItemProvider ( AdapterFactory adapterFactory )\n {\n super ( adapterFactory );\n }",
"private void populateListView() {\n String[] myItems = {\"Blue\", \"green\", \"Purple\", \"red\"};\n\n //creating listviewadapter which is an array for storing the data and linking it according to the\n //custom listview\n\n ArrayAdapter<String> listViewAdapter = new ArrayAdapter<String>(this, R.layout.da_items, myItems);\n //linking the listview with our adapter to present data\n ListView Lv = (ListView)findViewById(R.id.listView_data);\n Lv.setAdapter(listViewAdapter);\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Device device = devices.get(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.simple_list_item_default, parent, false);\n }\n // Lookup view for data population\n TextView title = (TextView) convertView.findViewById(R.id.text);\n ImageView deviceIcon = (ImageView) convertView.findViewById(R.id.image);\n // Populate the data into the template view using the data object\n\n MixpanelAPI mixpanelAPI = MixpanelAPI.getInstance(getContext(),\"d09bbd29f9af4459edcacbad0785c4c0\");\n JSONObject jsonObject = new JSONObject();\n try {\n jsonObject.put(\"Label\",device.getLabel());\n jsonObject.put(\"Type\",device.getType());\n jsonObject.put(\"ID\",device.getId());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n mixpanelAPI.track(\"Show new device adapter device\", jsonObject);\n\n\n title.setText(device.getLabel());\n Timber.d(\"Device found: \"+device.getLabel()+\", \"+device.getType());\n if (device.getType().equals(\"lock\")) {\n deviceIcon.setImageResource(R.drawable.ic_lock_outline_black_24dp);\n } else if (device.getType().equals(\"switch\")) {\n deviceIcon.setImageResource(R.drawable.ic_radio_button_checked_black_24dp);\n }\n // Return the completed view to render on screen\n return convertView;\n }",
"private void populateListView() {\n ArrayAdapter<Representative> adapter = new MyListAdapter();\n ListView list = (ListView) findViewById(R.id.repListView);\n list.setAdapter(adapter);\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Item item = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.list_layout, parent, false);\n }\n\n // Lookup view for data population\n TextView tvName = convertView.findViewById(R.id.item_textview);\n TextView tvNum = convertView.findViewById(R.id.num_textview);\n\n // TODO\n // Set the text used by tvName and tvNum using the data object\n // This will need to updated once the entity model has been updated\n tvName.setText(item.getName());\n tvNum.setText(item.getNum());\n\n // Return the completed view to render on screen\n return convertView;\n }",
"private void setAdaptersForDataToShow() {\n LinearLayoutManager linearLayoutManager_SectionOfDays = new LinearLayoutManager(this);\n linearLayoutManager_SectionOfDays.setOrientation(LinearLayoutManager.HORIZONTAL);\n recyclerView_sectionOfDays.setLayoutManager(linearLayoutManager_SectionOfDays);\n recyclerView_sectionOfDays.setAdapter(new SectionOfDays_RecyclerViewAdapter(this, daysArray, this));\n\n /**\n * Vertical Recycler View showing List Of Trains\n */\n LinearLayoutManager linearLayoutManager_ListOfTrains = new LinearLayoutManager(this);\n linearLayoutManager_ListOfTrains.setOrientation(LinearLayoutManager.VERTICAL);\n recyclerView_listOfTrains.setLayoutManager(linearLayoutManager_ListOfTrains);\n setAdapter_ListOfTrains_Vertical_RecyclerView(0);\n }",
"@Override\n\t\t\t\t\tpublic View oncreateItem(int index, View convertView,\n\t\t\t\t\t\t\tViewGroup viewgroup) {\n\n\t\t\t\t\t\tfinal WidgetItemInfo widgetItemInfo = itemInfos\n\t\t\t\t\t\t\t\t.get(index);\n\t\t\t\t\t\tif (convertView == null) {\n\t\t\t\t\t\t\t// create\n\t\t\t\t\t\t\tLayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n\t\t\t\t\t\t\tconvertView = inflater.inflate(\n\t\t\t\t\t\t\t\t\tR.layout.issue_feedback_ui, viewgroup,\n\t\t\t\t\t\t\t\t\tfalse);\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// bind tag\n\t\t\t\t\t\tconvertView.setTag(widgetItemInfo);\n\t\t\t\t\t\treturn convertView;\n\t\t\t\t\t}",
"public void createmenu(){\n\n\n Context context = getApplicationContext();\n menuadpater = new MenuAdapter(context);\n\n MENULIST.setAdapter(menuadpater);\n\n\n }",
"private void setAdapter(ArrayList<Record> allRecordItems) {\n AllRecordsAdapter allRecordsAdapter;\n if (allRecordItems.size() <=0 ){\n noBudgetData.setVisibility(View.VISIBLE);\n noDataGif.setVisibility(View.VISIBLE);\n }\n else {\n allRecordsAdapter = new AllRecordsAdapter(allRecordItems, this);\n allRecordsAdapter.onItemClickListener(new AllRecordsAdapter.onItemClick() {\n @Override\n public void itemClick(Record record) {\n ux.showRecordDetailsDialog(R.layout.dialog_record_short_details, record, new UX.onDialogOkListener() {\n @Override\n public void onClick() {\n }\n });\n }\n });\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n recyclerView.setAdapter(allRecordsAdapter);\n allRecordsAdapter.notifyDataSetChanged();\n }\n }",
"private void addDrawerItems() {\n String[] osArray = { \"Profile\", \"Email\", \"Payments\", \"Settings\", \"Help\" };\n mAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, osArray);\n mDrawerList.setAdapter(mAdapter);\n }",
"private void populateAdapter(){\n mAdapter = new MovieRecyclerAdapter(context, moviesList, this);\n mRecyclerView.setAdapter(mAdapter);\n }",
"private void showCursorAdaptView() {\n\t\tCursor cursor = personService.getCursor(0, personService.getCnt());\n\t\tSimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.listview_item, cursor,\n\t\t\t\tnew String[]{\"name\",\"phone\",\"amount\"}, \n\t\t\t\tnew int[]{R.id.name,R.id.phone,R.id.account});\n\t\t\n\t\tlistView.setAdapter(adapter);\n\t}",
"public void loadCategoryAdapter() {\n categoryAdapter = new CategoryAdapter(context, sectionItemsWithHeaders);\n listView.setAdapter(categoryAdapter);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_wikipets);\n listaWikipets = (RecyclerView)findViewById(R.id.rvWikipets);\n listaWikipets.setLayoutManager(new LinearLayoutManager(this));\n listaPreguntas.add(getString(R.string.pregunta0));\n listaPreguntas.add(getString(R.string.pregunta1));\n listaPreguntas.add(getString(R.string.pregunta2));\n listaPreguntas.add(getString(R.string.pregunta3));\n listaPreguntas.add(getString(R.string.pregunta4));\n listaPreguntas.add(getString(R.string.pregunta5));\n listaPreguntas.add(getString(R.string.pregunta6));\n listaPreguntas.add(getString(R.string.pregunta7));\n listaPreguntas.add(getString(R.string.pregunta8));\n listaPreguntas.add(getString(R.string.pregunta9));\n\n //Al tocar un item de la lista\n listener = this;\n\n AdaptadorWikipets adaptador = new AdaptadorWikipets(listaPreguntas, this, listener);\n listaWikipets.setAdapter(adaptador);\n }",
"public CineAdapter(List<Cine> items, CineInterfaz cineInterfaz)\n {\n this.items = items;\n this.cineInterfaz = cineInterfaz;\n }",
"@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tViewHolder holder;\n\t\t\tif (convertView == null) {\n\t\t\t\tconvertView = View.inflate(MainActivity.this, \n\t\t\t\t\t\tR.layout.demo_list_item, null);\n\t\t\t\tholder = new ViewHolder();\n\t\t\t\tholder.tvLable = (TextView)convertView.findViewById(R.id.label);\n\t\t\t\tholder.tvDesc = (TextView)convertView.findViewById(R.id.desc);\n\t\t\t\tconvertView.setTag(holder);\n\t\t\t} else {\n\t\t\t\tholder = (ViewHolder)convertView.getTag();\n\t\t\t}\n\n\t\t\tholder.tvLable.setText(demos[position].lable);\n\t\t\tholder.tvDesc.setText(demos[position].desc);\n\n\t\t\treturn convertView;\n\t\t}",
"public void initList(LinearLayout container) {\n for (Quote quote : this.items) {\n View view = LayoutInflater.from(this.context).inflate(R.layout.row_quote, null);\n QuoteListViewHolder viewHolder = new QuoteListViewHolder(view);\n\n viewHolder.populate(quote);\n container.addView(view);\n }\n }",
"public void setupAdaptedItemView(ArrayList<Profile> list) {\r\n RequestsForBookAdapter RequestsForBookAdapter =\r\n new RequestsForBookAdapter(context, list, book);\r\n View itemView = View.inflate(context, R.layout.user_accept_or_reject, null);\r\n adaptedView = RequestsForBookAdapter.getView(0, itemView, null);\r\n usernameTextView = adaptedView.findViewById(R.id.user_name);\r\n rejectedButton = adaptedView.findViewById(R.id.user_reject);\r\n acceptButton = adaptedView.findViewById(R.id.user_accept);\r\n }",
"@Override\n public CategoryBookRecyclerAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int arg1) {\n View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.category_items_for_view, null);\n CategoryBookRecyclerAdapter.ViewHolder holder = new CategoryBookRecyclerAdapter.ViewHolder(view);\n\n return holder;\n }",
"@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tLayoutInflater inflater=(LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);\n\t\t\tView v=inflater.inflate(R.layout.custom, null);\n\t\t\t\n\t\t\ttv1=(TextView)v.findViewById(R.id.text1);\n\t\t\ttv1.setText(names[position]);\n\t\t\t\n\t\t\t\n\t\t\ttv2=(TextView)v.findViewById(R.id.text2);\n\t\t\ttv2.setText(phones[position]);\n\t\t\t\n\t\t\t\n\t\t\treturn v;\n\t\t}",
"protected ListAdapter makeAdapter(Intent data, String[] dataNeeded, Context activity,\n int layout, int[] ids){\n //Get items that where returned\n int count = Integer.parseInt(data.getStringExtra(AppCSTR.DB_ROW_COUNT));\n //holds rows from database\n String[] row;\n //Log.e(\"Count: \", \"\" + count);\n alertList = new ArrayList<>();\n\n for(int j = 0; j < count; j++){\n row = data.getStringArrayExtra(AppCSTR.DB_ROW + j);\n // creating new HashMap\n HashMap<String, String> map = new HashMap<>();\n for(int i = 0; i < dataNeeded.length; i++){\n map.put(dataNeeded[i], row[i]);\n //Log.e(\"NAME: \", dataNeeded[i]);\n //Log.e(\"VALUE: \",items[i]);\n }\n alertList.add(map);\n }\n\n /**\n * Details of how the adapter will be laid out.\n */\n return new SimpleAdapter(\n activity, alertList,\n layout, dataNeeded, ids);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_queenb_embassy, container, false);\n\n\n //initialization of the list view (list of buttons)\n listview = v.findViewById(R.id.listview);\n\n for (int i = 0; i < names.length ; i++){\n ItemsModel itemsModel = new ItemsModel(names[i], ages[i], locations[i], images[i],\n phone_numbers[i], instagram_links[i], loved_about_queenb[i], recommendQueenb[i]); //todo try1+2\n listItem.add(itemsModel);\n }\n //required for handling the listView\n customAdapter = new CustomAdapter(listItem, getActivity());\n listview.setAdapter(customAdapter);\n return v;\n }",
"private void setAdapter() {\n adapter = new MessageAdapter(messages);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(adapter);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.list_item, container, false);\n\n // Create a list of items\n final ArrayList<Item> items = new ArrayList<Item>();\n\n items.add(new Item(getResources().getString(R.string.about_1),getResources().getString(R.string.about_1_1),R.drawable.bydgoszcz_logo));\n items.add(new Item(getResources().getString(R.string.about_2),getResources().getString(R.string.about_2_1)));\n items.add(new Item(getResources().getString(R.string.about_3),getResources().getString(R.string.about_3_1)));\n items.add(new Item(getResources().getString(R.string.about_4),getResources().getString(R.string.about_4_1)));\n\n // Create an {@link ItemAdapter}, whose data source is a list of {@link Item}s.\n ItemAdapter adapter = new ItemAdapter(getActivity(), items, R.color.tan_background);\n\n // Find the {@link ListView} object in the view hierarchy of the {@link Activity}.\n ListView listView = (ListView) rootView.findViewById(R.id.list);\n\n listView.setAdapter(adapter);\n\n return rootView;\n }",
"public void AddItemsToRecyclerView()\n {\n source = new Vector();\n source.add(\"排班\");\n source.add(\"加班\");\n source.add(\"打卡\");\n source.add(\"請假\");\n source.add(\"文件\");\n source.add(\"訂餐\");\n }",
"@Override\n\tprotected BaseListAdapter.ViewHolder createViewHolder(View root) {\n\t\tMyViewHolder holder = new MyViewHolder(root);\n\t\treturn holder;\n\t}",
"private void initAdaptersAndViews() {\n final Context context = getContext();\n mListViewAdapter = new FlickrHomeAdapter();\n mListLayoutManager = new LinearLayoutManager(context);\n mListLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n\n mViews.listView.addItemDecoration(new DividerItemDecoration(context, DividerItemDecoration.VERTICAL_LIST));\n mViews.listView.setHasFixedSize(true);\n mViews.listView.setLayoutManager(mListLayoutManager);\n mViews.listView.setAdapter(mListViewAdapter);\n }",
"QuestionListAdapter(Context context) { mInflater = LayoutInflater.from(context); }",
"@Override\n\tprotected void setupListView() {\n\t\tfinal int elementLayout = R.layout.image_selectable_list_item;\n\t\tfinal int imageView = R.id.imageView1;\n\t\tfinal int textView = R.id.textView1;\n\n\t\tmQueryListener = new QueryListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onError() {\n\t\t\t\tmAdapter = null;\n\t\t\t\tsetListAdapter(null);\n\t\t\t\tgetListView().invalidateViews();\n\t\t\t\tsetEmptyText(getString(R.string.retrievalError));\n\t\t\t\tmProgressBar.setVisibility(View.GONE);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(double data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(boolean data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(ObjectPrx data, boolean saved) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDataChange(QueryModel data, boolean saved) {\n\t\t\t\tif (saved) {\n\t\t\t\t\tmQueryModel = data;\n\t\t\t\t\tArrayList<UserTypPrx> adapterData = new ArrayList<UserTypPrx>(\n\t\t\t\t\t\t\tdata.data.size());\n\t\t\t\t\tfor (ObjectPrx oprx : data.data)\n\t\t\t\t\t\tadapterData.add(UserTypPrxHelper.checkedCast(oprx));\n\t\t\t\t\tif (mAdapter == null) {\n\t\t\t\t\t\tmAdapter = new UserListAdapter(MyMessagesActivity.this,\n\t\t\t\t\t\t\t\telementLayout, imageView, textView, adapterData);\n\t\t\t\t\t\tsetListAdapter(mAdapter);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmAdapter.addAll(adapterData);\n\t\t\t\t\t}\n\t\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t\t\tmProgressBar.setVisibility(View.GONE);\n\t\t\t\t\tif (mAdapter.getCount() <= 0)\n\t\t\t\t\t\tsetEmptyText(getString(R.string.noMessagesFound));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}",
"@Override\n public View getView(final int position, View convertView, ViewGroup parent) {\n final Holder holder=new Holder();\n\n\n\n AuctionBean users = list.get(position);\n convertView = inflater.inflate(R.layout.customelayout, null);\n\n holder.imgThumbnail = (ImageView) convertView.findViewById(R.id.imageview);\n holder.top_sr_no = (TextView) convertView.findViewById(R.id.textsrno);\n holder.bottom_sr_no = (TextView) convertView.findViewById(R.id.textbottom_srno);\n\n return convertView;\n }",
"@Override\n public int getCount() {\n return mItems.size();\n }",
"private ArrayAdapter setupAdapter(final List<Friend> friendsList) {\n /*get the adapter*/\n ArrayAdapter adapter = new ArrayAdapter(this\n , android.R.layout.simple_list_item_2\n , android.R.id.text1, friendsList) {\n\n /*get the view*/\n @Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View view = super.getView(position, convertView, parent);\n TextView text1 = (TextView) view.findViewById(android.R.id.text1);\n TextView text2 = (TextView) view.findViewById(android.R.id.text2);\n text1.setText(String.valueOf(friendsList.get(position).getTelephoneNumber()));\n text2.setText(friendsList.get(position).getFriendName());\n return view;\n }\n };\n return adapter;\n }",
"@Override\n public void showItemsForRecyclerView() {\n //Inicia el adaptadador para el rv\n myIRecyclerViewFragment.initAdapterForRVNotificationFragment(myIRecyclerViewFragment.createNotificationAdapter(this.myListNotifications));\n myIRecyclerViewFragment.generateLinearLayoutVertical();\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View item = LayoutInflater.from(parent.getContext()).inflate(R.layout.item, parent, false);\n// Pasar la vista (item.xml) al ViewHolder\n ViewHolder viewHolder = new ViewHolder(item);\n return viewHolder;\n }",
"public WidgetItemProvider(AdapterFactory adapterFactory) {\n\t\tsuper(adapterFactory);\n\t}",
"public ChainShopAdapter(List<MultiItemEntity> data) {\n super(data);\n addItemType(TYPE_LEVEL_1, R.layout.item_shop_employess_list);\n addItemType(TYPE_PERSON, R.layout.item_shop_employee);\n }",
"@Override\n\tpublic void init() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Init Quoted Line Items...\");\n\t\tsuper.init();\n\n\t\t// Define the columns on the ListView.\n\t\tlistView.addHeader(\"name\");\n\t\tlistView.addHeader(\"account_name\");\n\t\tlistView.addHeader(\"status\");\n\t\tlistView.addHeader(\"quote_name\");\n\t\tlistView.addHeader(\"quantity\");\n\t\tlistView.addHeader(\"discount_price\");\n\t\tlistView.addHeader(\"cost_price\");\n\t\tlistView.addHeader(\"discount_amount\");\n\t\tlistView.addHeader(\"assigned_user_name\");\n\n\t\t// Related Subpanels\n\t\trelatedModulesMany.put(\"contact_products\", sugar().contacts);\n\t\trelatedModulesMany.put(\"documents_products\", sugar().documents);\n\t\trelatedModulesMany.put(\"product_notes\", sugar().notes);\n\n\t\t// Add Subpanels\n\t\trecordView.addSubpanels();\n\n\t\t// Define the columns of the StandardSubpanel\n\t\tStandardSubpanel standardsubpanel = (StandardSubpanel) subpanels.get(\"standard\");\n\t\tstandardsubpanel.addHeader(\"name\");\n\t\tstandardsubpanel.addHeader(\"status\");\n\t\tstandardsubpanel.addHeader(\"account_name\");\n\t\tstandardsubpanel.addHeader(\"contact_name\");\n\t\tstandardsubpanel.addHeader(\"date_purchased\");\n\t\tstandardsubpanel.addHeader(\"discount_price\");\n\t\tstandardsubpanel.addHeader(\"date_support_expires\");\n\n\n\t\t// Account Mass Update Panel\n\t\tmassUpdate = new MassUpdate(this);\n\t}"
] | [
"0.6828687",
"0.6798184",
"0.6680938",
"0.64611936",
"0.64482516",
"0.64044476",
"0.63895905",
"0.6388192",
"0.6370206",
"0.63515687",
"0.6331986",
"0.62877196",
"0.6285825",
"0.62843186",
"0.6280349",
"0.6268814",
"0.62527424",
"0.62372476",
"0.6229482",
"0.6227141",
"0.6209846",
"0.6194276",
"0.6173006",
"0.6171342",
"0.6148359",
"0.6147122",
"0.6145071",
"0.61399794",
"0.61366564",
"0.6130032",
"0.6128243",
"0.61101365",
"0.6103581",
"0.6101335",
"0.60971546",
"0.60952985",
"0.60944563",
"0.6091017",
"0.60742724",
"0.6062308",
"0.6058412",
"0.604583",
"0.6042528",
"0.60332876",
"0.6033132",
"0.6030532",
"0.6029613",
"0.6022785",
"0.60222244",
"0.60222244",
"0.60222244",
"0.60222244",
"0.6017182",
"0.6010717",
"0.6008902",
"0.59932244",
"0.5988591",
"0.59865975",
"0.59864897",
"0.5976649",
"0.59738064",
"0.5967591",
"0.5954877",
"0.5950073",
"0.5948813",
"0.5946957",
"0.5940451",
"0.59399426",
"0.5933858",
"0.5932071",
"0.59319323",
"0.5927617",
"0.5926549",
"0.59163344",
"0.5909955",
"0.59028995",
"0.58981436",
"0.58973277",
"0.5895826",
"0.5895353",
"0.5894985",
"0.5892709",
"0.58918095",
"0.5876144",
"0.5875133",
"0.5866249",
"0.58598566",
"0.5854527",
"0.58535635",
"0.58512306",
"0.5851024",
"0.58485454",
"0.5847167",
"0.58466357",
"0.58451426",
"0.5843747",
"0.58430636",
"0.5842989",
"0.5841943",
"0.5840553"
] | 0.6611817 | 3 |
Get serializable extra from activity's intent | @SuppressWarnings("unchecked")
protected <V extends Parcelable> V getParcelableExtra( final String name )
{
return (V) getIntent().getParcelableExtra( name );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getExtra();",
"public static Object getExtraObject(Activity context, String key) {\n \tObject param = null;\n \tBundle bundle = context.getIntent().getExtras();\n \tif(bundle!=null){\n \t\tparam = bundle.get(key);\n \t}\n \treturn param;\n\t}",
"private Order getIntentData(Intent intent) {\n\t\treturn intent != null ? (Order) intent\n\t\t\t\t.getSerializableExtra(TarrifActivity.TICKET_CONTIANS_ORDER_SERIALIZABLE_KEY)\n\t\t\t\t: null;\n\t}",
"private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n testIdString = \"-1\";\n }\n }",
"public void getintent() {\n Intent intent = this.getIntent();\n acceptDetailsModel = (AcceptDetailsModel) intent.getSerializableExtra(\"menu_item\");\n }",
"public static Serializable m9363u(Intent intent, String str) {\n Serializable serializable = null;\n if (intent == null) {\n return serializable;\n }\n try {\n return intent.getSerializableExtra(str);\n } catch (Exception e) {\n new StringBuilder(\"getSerializableExtra exception:\").append(e.getMessage());\n return serializable;\n }\n }",
"private void getIntentValues() {\n\n// itemname= getIntent().getExtras().getString(IntentsConstants.item_name);\n// itemPrice = getIntent().getExtras().getDouble(IntentsConstants.item_price);\n Bundle bundle = getArguments();\n menusItem= (MenusItem) bundle.getSerializable(\"Item\");\n itemname=menusItem.getName();\n itemPrice=menusItem.getPrice();\n\n}",
"void getBundleData(Intent intent);",
"private void extractDataFromBundle() {\n Intent intent = getIntent();\n Bundle bundle = intent.getBundleExtra(MainActivity.PRACTICE_GAME_BUNDLE_KEY);\n\n mDifficulty = (Difficulty) bundle.getSerializable(MainActivity.DIFFICULTY_KEY);\n mPlayerGamePiece = (GamePiece) bundle.getSerializable(MainActivity.GAME_PIECE_KEY);\n\n }",
"@Override\n\tprotected void getIntentData(Bundle savedInstanceState) {\n\n\t}",
"private void getIncomingIntent()\n {\n if(getIntent().hasExtra(\"Title\")\n && getIntent().hasExtra(\"Time\")\n && getIntent().hasExtra(\"Date\")\n && getIntent().hasExtra(\"Duration\")\n && getIntent().hasExtra(\"Location\")\n && getIntent().hasExtra(\"EventDetails\"))\n {\n Title = getIntent().getStringExtra(\"Title\");\n Time = getIntent().getStringExtra(\"Time\");\n Date = getIntent().getStringExtra(\"Date\");\n Duration = getIntent().getStringExtra(\"Duration\");\n Location = getIntent().getStringExtra(\"Location\");\n EventDetails = getIntent().getStringExtra(\"EventDetails\");\n\n setData(Title,Time,Date,Duration,Location,EventDetails);\n }\n }",
"private void getIntentData() {\n\t\ttry{\n\t\t\tIN_CATEGORYID = getIntent().getStringExtra(CATEGORY_ID) == null ? \"0\" : getIntent().getStringExtra(CATEGORY_ID);\n\t\t\tIN_ARTICLENAME = getIntent().getStringExtra(ARTICLENAME) == null ? \"\" : getIntent().getStringExtra(ARTICLENAME) ;\n\t\t\tIN_ARTICLEID = getIntent().getStringExtra(ARTICLEID) == null ? \"\" : getIntent().getStringExtra(ARTICLEID);\n\t\t}catch(Exception e){\n\t\t}\n\t}",
"private void getIntentData() {\n if (getIntent() != null) {\n destinationLat = getIntent().getDoubleExtra(\"destinationLat\", 48.893478);\n destinationLng = getIntent().getDoubleExtra(\"destinationLng\", 2.334595);\n }\n }",
"public Intent getIntent() {\n return mIntent;\n }",
"public Intent getIntent() {\n return mIntent;\n }",
"public void getBundle (){\n idTemp = getIntent().getStringExtra(\"id\");\n }",
"private void getIntentData() {\r\n if (getIntent() != null && getIntent().getExtras() != null) {\r\n // Handling intent data from DirectoryDetailsActivity class\r\n if (Constant.ALBUM_TYPE.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n position = getIntent().getIntExtra(Constant.POSITION, 0);\r\n nameKey = getIntent().getStringExtra(Constant.KEY_NAME);\r\n } else if (Constant.LIST_TYPE.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n imageDataModel = getIntent().getParcelableExtra(Constant.DATA);\r\n } else if (Constant.SECURE_TAB.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n imageDataModel = getIntent().getParcelableExtra(Constant.DATA);\r\n } else {\r\n // Handling other intent data like camera intent\r\n Uri uri = getIntent().getData();\r\n GalleryHelper.getImageFolderMap(this);\r\n File file = new File(getRealPathFromURI(uri));\r\n nameKey = FileUtils.getParentName(file.getParent());\r\n GalleryHelperBaseOnId.getMediaFilesOnIdBasis(this, GalleryHelper.imageFolderMap.get(nameKey).get(0).getBucketId());\r\n }\r\n }\r\n }",
"public void serializeToIntentExtra(android.content.Intent param0) {\n if (wrapper) {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.location.ActivityConversionRequest) this.getHInstance()).setDataToIntent(param0)\");\n ((com.huawei.hms.location.ActivityConversionRequest) this.getHInstance()).setDataToIntent(param0);\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.location.ActivityTransitionRequest) this.getGInstance()).serializeToIntentExtra(param0)\");\n ((com.google.android.gms.location.ActivityTransitionRequest) this.getGInstance()).serializeToIntentExtra(param0);\n }\n } else {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((HImpl) ((com.huawei.hms.location.ActivityConversionRequest) this.getHInstance())).setDataToIntentCallSuper(param0)\");\n ((HImpl) ((com.huawei.hms.location.ActivityConversionRequest) this.getHInstance())).setDataToIntentCallSuper(param0);\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((GImpl) ((com.google.android.gms.location.ActivityTransitionRequest) this.getGInstance())).serializeToIntentExtraCallSuper(param0)\");\n ((GImpl) ((com.google.android.gms.location.ActivityTransitionRequest) this.getGInstance())).serializeToIntentExtraCallSuper(param0);\n }\n }\n }",
"@SafeVarargs\r\n public static Intent createIntentWithSerializableExtras(Context thiz, Class<? extends Activity> clazz, Pair<String, ? extends Serializable>... extras)\r\n {\r\n Intent intent = new Intent(thiz, clazz);\r\n for(Pair<String, ? extends Serializable> extra : extras)\r\n {\r\n intent.putExtra(extra.first, extra.second);\r\n }\r\n return intent;\r\n }",
"static /* synthetic */ byte[] m10276k(Intent intent) {\n if (intent == null) {\n return null;\n }\n Parcel obtain = Parcel.obtain();\n obtain.setDataPosition(0);\n intent.writeToParcel(obtain, 0);\n byte[] marshall = obtain.marshall();\n obtain.recycle();\n return marshall;\n }",
"public String[] getExtraInfo() {\n return extraInfo;\n }",
"public Bundle getExtras() {\n }",
"protected abstract Intent getIntent();",
"public Bundle extra() {\n if (mExtra == null)\n mExtra = new Bundle();\n return mExtra;\n }",
"public static Bundle getBundle(Activity c) {\n\t\treturn c.getIntent().getExtras();\n\t}",
"static long m43010a(Intent intent) {\n if (intent == null) {\n return -1;\n }\n return intent.getLongExtra(\"com.tonyodev.fetch.extra_id\", -1);\n }",
"private String getStringExtra(Bundle savedInstanceState, String strWhich) {\n String strRet = (savedInstanceState != null ? savedInstanceState.getString(strWhich) : \"\");\r\n \r\n if (strRet == \"\") {\r\n \tBundle extras = getIntent().getExtras(); \r\n \tstrRet = (extras != null ? extras.getString(strWhich) : \"\");\r\n }\r\n \r\n return strRet;\r\n\r\n\t}",
"@Override\n protected void getFromIntent() {\n this.groupID = getIntent().getStringExtra(\"groupId\");\n this.groupName = getIntent().getStringExtra(\"groupName\");\n }",
"public static Bundle m3a(Intent intent) {\n return intent.getBundleExtra(\"al_applink_data\");\n }",
"public static Bundle getExtrasBundle(Bundle intentExtras) {\n if (!Constants.IS_AMAZON) {\n return intentExtras.getBundle(Constants.APPBOY_PUSH_EXTRAS_KEY);\n } else {\n return intentExtras;\n }\n }",
"@Override\n public void onClick(View v) {\n\n Intent i = new Intent(context, DetailActivity.class); //create intent to switch screen\n\n //trying to place movie into putExtra by putting it into Parcelable value (bc method can't take movie object)\n //we use Parcelable (go to AndroidStudio ref. where they have the code to allow u to use Parceler library\n //essentially, you place the implementation code into buildgradle file\n i.putExtra(\"movie\", Parcels.wrap(movie));\n //add @Parcel to Movie class and add empty constructor as shown in AU (android U) page + empty constructor\n //now you can go to DetailActivity to retrieve the whole movie object just by using an intent\n\n context.startActivity(i);\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_appointment_contents);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n\n Intent intent = getIntent();\n user = (User) intent.getExtras().getSerializable(\"user\");\n chosedTime = intent.getStringExtra(\"chosed_time\");\n chosedDate = intent.getStringExtra(\"chosed_date\");\n lecturerName = intent.getStringExtra(\"lect_name\");\n\n }",
"public java.util.Map getExtra(int status) throws android.os.RemoteException;",
"public static Bundle m4b(Intent intent) {\n Bundle a = m3a(intent);\n if (a == null) {\n return null;\n }\n return a.getBundle(AppLinkData.ARGUMENTS_EXTRAS_KEY);\n }",
"private ArrayList<TodoData> getTodos() {\n Intent intent = (Intent) getIntent();\n return (ArrayList<TodoData>) intent.getSerializableExtra(\"todos\");\n }",
"Map<String, Object> extras();",
"public static String getStringIntent(Intent intent, String name) {\n\t\tString retval = null;\n\t\tif (intent != null) {\n\t\t\tif (intent.hasExtra(name))\n\t\t\t\tretval = intent.getStringExtra(name);\n\t\t}\n\t\treturn retval;\n\t}",
"@Override\n\tprotected void obtainIntentValue() {\n\n\t}",
"private void getDataFromIntent(Intent intent) {\n panAadharCardDetail = intent.getParcelableExtra(\"panAadharDetail\");\n card_type = intent.getIntExtra(\"card_type\", 0);\n imageFileUri = intent.getStringExtra(\"imageFile\");\n }",
"public Object getExtraInformation() {\n\t\treturn extraInformation;\n\t}",
"public static String getExtraString(Activity context, String key) {\n \tString param = \"\";\n \tBundle bundle = context.getIntent().getExtras();\n \tif(bundle!=null){\n \t\tparam = bundle.getString(key);\n \t}\n \treturn param;\n\t}",
"public String getExtra() {\n Object ref = extra_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n extra_ = s;\n return s;\n }\n }",
"@Override public java.util.Map getExtra(int status) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\njava.util.Map _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeInt(status);\nmRemote.transact(Stub.TRANSACTION_getExtra, _data, _reply, 0);\n_reply.readException();\njava.lang.ClassLoader cl = (java.lang.ClassLoader)this.getClass().getClassLoader();\n_result = _reply.readHashMap(cl);\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}",
"private void getDataFromIntent() {\n\t\tfinal Intent intent = getIntent();\n\t\tdata.setmUsername(intent.getStringExtra(Constants.PARAM_USERNAME));\n\t\tdata.setmPassword(intent.getStringExtra(Constants.PARAM_PASSWORD));\n\t\tdata.setmHost(intent.getStringExtra(Constants.PARAM_HOST));\n\t\tdata.setmPort(intent.getIntExtra(Constants.PARAM_PORT, 389));\n\t\tdata.setmEncryption(intent.getIntExtra(Constants.PARAM_ENCRYPTION, 0));\n\t\tdata.setmRequestNewAccount((data.getmUsername() == null));\n\t\tdata.setmConfirmCredentials(intent.getBooleanExtra(Constants.PARAM_CONFIRMCREDENTIALS, false));\n\t}",
"private void BundleData(Intent intent) {\n bundle=new Bundle();\n bundle.putString(\"FNAME\",fname);\n bundle.putString(\"LNAME\",lname);\n bundle.putString(\"LOCALITY\",locality);\n bundle.putString(\"CITY\",city);\n bundle.putInt(\"PINCODE\",pincode);\n bundle.putString(\"TIME_TO_CALL\",timers);\n bundle.putString(\"PHONE\",phone);\n bundle.putString(\"ALTPHONE\",altphone);\n bundle.putString(\"EMAIL\",emailid);\n intent.putExtras(bundle);\n }",
"private void showIntentInfo(Intent intent, TextView textView){\n StringBuilder infoBuilder = new StringBuilder();\n String action = intent.getAction();\n infoBuilder.append(\"Action=\");\n infoBuilder.append(action != null ? action : \"** NO Action **\");\n infoBuilder.append(\"\\n\");\n\n Bundle extras = intent.getExtras();\n if(extras == null){\n infoBuilder.append(\"** NO Extras **\");\n } else {\n infoBuilder.append(\"** Extras **\\n\");\n Set<String> keySet = extras.keySet();\n for(String key : keySet) {\n String value = extras.get(key).toString();\n infoBuilder.append(key);\n infoBuilder.append(\"=\");\n infoBuilder.append(value);\n infoBuilder.append(\"\\n\");\n }\n }\n textView.setText(infoBuilder.toString());\n }",
"public String getExtra() {\n Object ref = extra_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n extra_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"private void getDataFromMainActivity(){\n Intent intent = getIntent();\n Bundle bundle = intent.getExtras();\n site = bundle.getString(\"site\");\n }",
"private void getIncomingContactData() {\n // create bundle object that refers to the bundle inside the intent\n Bundle extras = getIntent().getExtras();\n contact = getObjectFromJSONString( extras.getString(\"CONTACT\") );\n displayContactDetails();\n }",
"private void addExtras(Intent intent)\n\t{\n\t\tBundle extras = getIntent().getExtras();\n\t\t\n\t\t// Load in the unused extras from the\n\t\t// previous Activity.\n\t\tintent.putExtras(extras);\n\t\t\n\t\t////////////////////////////////////////\n\t\t// Add optional standings categories. //\n\t\t////////////////////////////////////////\n\t\tif (_points.isChecked())\n\t\t{\n\t\t\tintent.putExtra(\"POINTS_ACTIVE\", true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tintent.putExtra(\"POINTS_ACTIVE\", false);\n\t\t}\n\t\t\n\t\tif (_score.isChecked())\n\t\t{\n\t\t\tintent.putExtra(\"SCORE_ACTIVE\", true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tintent.putExtra(\"SCORE_ACTIVE\", false);\n\t\t}\n\t\t/////////////////////////////////////////\n\t}",
"com.google.protobuf.ByteString getExtra();",
"public Intent getRequestIntent() {\n return requestIntent;\n }",
"private void getDataFromIntent(){\n Bundle extras = getIntent().getExtras();\n //para recibir los datos de una manera segura, se hace una verificacion\n //para ver si los extras no son nulos\n if (extras!=null){\n //en caso de tener datos en el extra, se obtendran y guardaran en variables para su uso deseado\n String data = extras.getString(\"data\");\n boolean isTrue = extras.getBoolean(\"boolean\");\n if (isTrue){\n tvData.setText(data);\n Toast.makeText(this, \"Se recibio un booleano desde MainActivity.\", Toast.LENGTH_SHORT).show();\n }\n else{\n Toast.makeText(this, \"No se recibio nada :c\", Toast.LENGTH_LONG).show();\n }\n //en caso de no tener daos dentro dle extra, entrara a esta parte de la condicion\n }else{\n Toast.makeText(this, \"No hay datos extras\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"public interface extras {\n\n Extras getExtras();\n\n}",
"public static void packageIntent(Intent intent, String json) {\n\n intent.putExtra(JSON, json);\n\n }",
"public com.google.protobuf.ByteString getExtra() {\n return extra_;\n }",
"public com.google.protobuf.ByteString getExtra() {\n return extra_;\n }",
"public Intent getActivityIntent() {\n Intent intent = new Intent(this.context, InterstitialActivity.class);\n intent.setFlags(268435456);\n intent.addFlags(67108864);\n intent.putExtra(\"id\", getPlacementID());\n if (this.setAutoPlay) {\n intent.putExtra(\"auto_play\", this.autoPlay);\n }\n if (this.setCanClose) {\n intent.putExtra(\"can_close\", isBackButtonCanClose());\n }\n if (this.setMute) {\n intent.putExtra(\"mute\", getMute());\n }\n intent.putExtra(\"cat\", getCategories());\n intent.putExtra(\"pbk\", getPostback());\n intent.putExtra(\"b_color\", getButtonColor());\n intent.putExtra(\"skip_title\", getSkipText());\n intent.putExtra(\"creative\", getCreative());\n return intent;\n }",
"private void getAndSetIncomingIntent(){\n if (getIntent().hasExtra(\"asso\")) {\n Log.d(TAG, getIntent().getStringExtra(\"asso\"));\n edt_asso_name.setText(getIntent().getStringExtra(\"asso\"));\n }\n if (getIntent().hasExtra(\"school\")) {\n edt_school.setText(getIntent().getStringExtra(\"school\"));\n }\n if (getIntent().hasExtra(\"purpose\")) {\n edt_purpose.setText(getIntent().getStringExtra(\"purpose\"));\n }\n if (getIntent().hasExtra(\"link\")) {\n edt_link.setText(getIntent().getStringExtra(\"link\"));\n }\n if (getIntent().hasExtra(\"type\")) {\n selectedSpinnerType = getIntent().getStringExtra(\"type\");\n }\n\n }",
"private void getMoviesData() {\n movieId = getIntent().getIntExtra(MOVIE_ID, 0);\n }",
"void mo21580A(Intent intent);",
"public void intentHandler() {\n Intent intent = getIntent();\n if (intent.hasExtra(\"DATA\")) {\n data = (String[]) getIntent().getSerializableExtra(\"DATA\");\n recievedPosition = (int) getIntent().getSerializableExtra(\"POS\");\n if(recievedPosition != 0){\n IOException e = new IOException();\n try {\n itemArrAdapt.updateItem(recievedPosition, data, e);\n this.setPrefs();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n } else {\n // Start Normal\n }\n }",
"public void initParams(Intent intent) {\n super.initParams(intent);\n if (intent != null) {\n this.mUccParams = (UccParams) JSON.parseObject(intent.getStringExtra(UccConstants.PARAM_UCC_PARAMS), UccParams.class);\n this.mNeedSession = intent.getStringExtra(\"needSession\");\n this.mNeedCookieOnly = intent.getStringExtra(ParamsConstants.Key.PARAM_NEED_LOCAL_COOKIE_ONLY);\n this.token = intent.getStringExtra(\"token\");\n this.scene = intent.getStringExtra(\"scene\");\n this.mNeedToast = intent.getStringExtra(ParamsConstants.Key.PARAM_NEED_TOAST);\n String bizParamsStr = intent.getStringExtra(\"params\");\n if (!TextUtils.isEmpty(bizParamsStr)) {\n this.mParams = Utils.convertJsonStrToMap(bizParamsStr);\n }\n this.mNeedLocalSession = intent.getStringExtra(ParamsConstants.Key.PARAM_NEED_LOCAL_SESSION);\n }\n }",
"@Override\n public void dataAvailable(Intent intent) {\n String uuid = BLEService.getmCharacteristicToPass().getUuid().toString();\n }",
"void getData() {\n Intent intent = this.getIntent();\n /* Obtain String from Intent */\n Sname = intent.getExtras().getString(\"name\");\n Sbloodbank = intent.getExtras().getString(\"bloodbank\");\n Sbranch = intent.getExtras().getString(\"branch\");\n Sdate = intent.getExtras().getString(\"date\");\n Stime = intent.getExtras().getString(\"time\");\n Sphone = intent.getExtras().getString(\"phone\");\n Log.d(\"userDetails received\", Sname + \",\" + Sphone ); //Don't ignore errors!\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n intent = getIntent();\n }",
"public @Nullable Bundle getExtras() {\n try {\n return mSessionBinder.getExtras();\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling getExtras\", e);\n }\n return null;\n }",
"private ParcelableNameValuePair(Parcel in) {\n\t\tname = in.readString();\n\t\tvalue = in.readString();\n\t}",
"public Bundle getExtras() {\n return mBundle.getBundle(KEY_EXTRAS);\n }",
"public static String m9362n(Intent intent, String str) {\n String str2 = null;\n if (intent == null) {\n return str2;\n }\n try {\n return intent.getStringExtra(str);\n } catch (Exception e) {\n new StringBuilder(\"getStringExtra exception:\").append(e.getMessage());\n return str2;\n }\n }",
"private void logPushExtras(Intent intent) {\n Set<String> keys = intent.getExtras().keySet();\n for (String key : keys) {\n\n // ignore standard C2DM extra keys\n List<String> ignoredKeys = (List<String>) Arrays.asList(\n \"collapse_key\",// c2dm collapse key\n \"from\",// c2dm sender\n PushManager.EXTRA_NOTIFICATION_ID,// int id of generated notification (ACTION_PUSH_RECEIVED only)\n PushManager.EXTRA_PUSH_ID,// internal UA push id\n PushManager.EXTRA_ALERT);// ignore alert\n if (ignoredKeys.contains(key)) {\n continue;\n }\n Log.i(logTag,\n \"Push Notification Extra: [\" + key + \" : \"\n + intent.getStringExtra(key) + \"]\"\n );\n }\n }",
"@NonNull\n final public Map<String, Object> getExtras() {\n return new HashMap<String, Object>(mExtras);\n }",
"public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n Intent intent = getIntent();\n if (intent != null) {\n this.Z = intent.getStringExtra(\"extra_deep_link_ots\");\n this.Y = intent.getStringExtra(\"extra_deep_link_email\");\n }\n }",
"private void obterDadosActivityLista() {\r\n bNnovo = getIntent().getExtras().getBoolean(\"novo\");\r\n }",
"@Override\n public void onClick(View view) {\n\n Intent Main_Save_Intent = new Intent(getApplicationContext(),PingTestSetup.class);\n Bundle Main_Save_Bundle = new Bundle();\n Main_Save_Bundle.putSerializable(\"Play_TC_List\",Play_TC_List);\n Main_Save_Intent.putExtras(Main_Save_Bundle);\n startActivity(Main_Save_Intent);\n\n\n }",
"public Intent getTrackedIntent(){\n Intent trackedIntent = new Intent(context, PPOpenTrackerActivity.class);\n trackedIntent.putExtra(PushPrime.NOTIFICATION, this);\n return trackedIntent;\n }",
"@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(DriverPrefrActivity.this, SearchParkActivity.class);\n //Creating a bundle\n Bundle bundle = new Bundle();\n //Adding values to bundle\n bundle.putString(\"driverlargecar\", String.valueOf(largecar));\n bundle.putString(\"drivertype\", String.valueOf(type));\n bundle.putString(\"driverprice\", String.valueOf(price));\n bundle.putString(\"driverdistancepklot\", String.valueOf(distpklot));\n\n myIntent.putExtra(\"mybundle\", bundle);\n startActivity(myIntent);\n }",
"@Nullable\n public Intent getIntent() {\n return mPrimaryIntent;\n }",
"private void getIntentAndDisplayData(Intent i) {\n\t\t\tif (!isCancelled()) {\n\t\t\t\tforumTopicID = i.getStringExtra(\"topicID\");\n\t\t\t\tuserID = i.getStringExtra(\"userID\");\n\t\t\t\tgetDataFromServer(forumTopicID);\n\t\t\t}\n\t\t}",
"public VersionedMap getExtra ()\n {\n return extra;\n }",
"@Override\r\n public void onReceive(Context context, Intent intent) {\n Log.d(TAG, \"onReceive: -->\");\r\n String str = intent.getDataString();\r\n Toast.makeText(context, \"Got brocastcast\" + intent.getStringExtra(\"Extra\"), Toast.LENGTH_SHORT).show();\r\n }",
"public static void seeIntent(Context context, Intent intent, @Nullable Bundle savedInstanceState) {\n if (savedInstanceState != null){\n return;\n }\n\n Optimobile.seeIntent(context, intent);\n }",
"public interface ActivityDetails {\n\n /**\n * Get the profile associated with the user.\n *\n * @return profile containing attributes for the user\n */\n HumanProfile getUserProfile();\n\n /**\n * Get the profile associated with the application.\n *\n * @return profile containing attributes for the application\n */\n ApplicationProfile getApplicationProfile();\n\n /**\n * Deprecated. Please use getRememberMeId() instead.\n *\n * @return user ID.\n */\n @Deprecated\n String getUserId();\n\n /**\n * Return the remember-me ID, which is a unique, stable identifier for a user in the context of an application/user\n * interaction. You can be use it to identify returning users. Note that it is different for the same user in\n * different applications.\n *\n * @return user ID.\n */\n String getRememberMeId();\n\n\n /**\n * Time and date of the activity.\n *\n * @return time and date of the activity\n */\n Date getTimestamp();\n\n /**\n * Receipt id identifying a completed activity.\n *\n * @return receipt id\n */\n String getReceiptId();\n \n /**\n * @deprecated From v2.1 onwards you should use getUserProfile().getSelfie()\n * JPEG selfie in Base64 string.\n *\n * @return JPEG selfie image in Base64 string format\n */\n @Deprecated\n String getBase64Selfie();\n\n}",
"com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder();",
"@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}",
"public void onAttach(Activity activity){\n super.onAttach(activity);\n\n try{\n ENVIAR = (Enviar) activity;\n }\n catch (ClassCastException e ){\n throw new ClassCastException(\"necesitas el msg\");\n }\n\n\n }",
"@Override\n protected void onHandleIntent(Intent intent) {\n\n }",
"public void handleIntent(Intent intent, Integer num) {\n Parcel obtain;\n Parcel obtain2;\n boolean z;\n if (intent == null) {\n if (num != null) {\n stopSelf(num.intValue());\n }\n return;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(\"myPid: \");\n sb.append(Process.myPid());\n Log.d(\"SettingsBackup\", prependPackageName(sb.toString()));\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"intent: \");\n sb2.append(intent);\n Log.d(\"SettingsBackup\", prependPackageName(sb2.toString()));\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"extras: \");\n sb3.append(intent.getExtras());\n Log.d(\"SettingsBackup\", prependPackageName(sb3.toString()));\n String action = intent.getAction();\n ResultReceiver resultReceiver = (ResultReceiver) intent.getParcelableExtra(\"result_receiver\");\n if (\"miui.action.CLOUD_BACKUP_SETTINGS\".equals(action)) {\n if (resultReceiver != null) {\n Bundle backupSettings = backupSettings();\n if (backupSettings == null) {\n Log.e(\"SettingsBackup\", prependPackageName(\"bundle result is null after backupSettings\"));\n }\n resultReceiver.send(0, backupSettings);\n }\n } else if (\"miui.action.CLOUD_RESTORE_SETTINGS\".equals(action) && resultReceiver != null) {\n IBinder binder = intent.getExtras().getBinder(\"data_package\");\n obtain = Parcel.obtain();\n obtain2 = Parcel.obtain();\n try {\n binder.transact(2, obtain, obtain2, 0);\n z = restoreSettings((DataPackage) obtain2.readParcelable(getClass().getClassLoader()), intent.getIntExtra(\"version\", -1));\n obtain.recycle();\n obtain2.recycle();\n } catch (RemoteException e) {\n Log.e(\"SettingsBackup\", \"RemoteException in onHandleIntent()\", e);\n } catch (BadParcelableException e2) {\n Log.e(\"SettingsBackup\", \"BadParcelableException when read readParcelable\", e2);\n } catch (ClassCastException unused) {\n Log.e(\"SettingsBackup\", \"ClassCastException when cast DataPackage\");\n } catch (Throwable th) {\n obtain.recycle();\n obtain2.recycle();\n throw th;\n }\n if (!z) {\n resultReceiver.send(0, new Bundle());\n } else {\n resultReceiver.send(1, null);\n }\n StringBuilder sb4 = new StringBuilder();\n sb4.append(\"r.send()\");\n sb4.append(Thread.currentThread());\n Log.d(\"SettingsBackup\", prependPackageName(sb4.toString()));\n }\n if (num != null) {\n stopSelf(num.intValue());\n }\n obtain.recycle();\n obtain2.recycle();\n z = false;\n if (!z) {\n }\n StringBuilder sb42 = new StringBuilder();\n sb42.append(\"r.send()\");\n sb42.append(Thread.currentThread());\n Log.d(\"SettingsBackup\", prependPackageName(sb42.toString()));\n if (num != null) {\n }\n }",
"public ListaAttributi getExtra() {\r\n return this.extra;\r\n }",
"public Intent getIntent() {\n return mInviteIntent;\n }",
"private void obtener(){\n Bundle bundle = getIntent().getExtras();\n id = bundle.getString(\"id\");\n nombre = bundle.getString(\"nombre\");\n apellido = bundle.getString(\"apellido\");\n telefono = bundle.getInt(\"telefono\");\n //seteo de datos\n editTextN.setText(nombre);\n editTextA.setText(apellido);\n editTextT.setText(String.valueOf(telefono));\n }",
"private void checkIntentInformation() {\n Bundle extras = getIntent().getExtras();\n Gson gson = new Gson();\n if (extras != null) {\n Curso aux;\n aux = (Curso) getIntent().getSerializableExtra(\"addCurso\");\n if (aux == null) {\n aux = (Curso) getIntent().getSerializableExtra(\"editCurso\");\n if (aux != null) {//Accion de actualizar\n //found an item that can be updated\n String cursoU = \"\";\n cursoU = gson.toJson(aux);\n\n apiUrlTemp = apiUrlAcciones+\"acc=updateC\" +\"&cursoU=\"+cursoU +\"&profesor_id=\"+aux.getProfesor().getCedula();\n MyAsyncTasksCursoOperaciones myAsyncTasksOp = new MyAsyncTasksCursoOperaciones();\n myAsyncTasksOp.execute();\n }\n } else {//Accion de agregar\n //found a new Curso Object\n String cursoA = \"\";\n cursoA = gson.toJson(aux);\n\n apiUrlTemp = apiUrlAcciones+\"acc=addC\" +\"&cursoA=\"+cursoA +\"&profesor_id=\"+aux.getProfesor().getCedula();\n MyAsyncTasksCursoOperaciones myAsyncTasksOp = new MyAsyncTasksCursoOperaciones();\n myAsyncTasksOp.execute();\n }\n }\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(getApplicationContext(), EventDetailsActivity.class);\n Event event= arrayList.get(position);\n // putting an object as an intent extra\n intent.putExtra(\"Event\",(Serializable) event);\n startActivity(intent);\n\n }",
"void intentHasBeenReceivedThroughTheBroadCast(Intent intent);",
"protected JSONObject parseNotificationIntent(Intent intent) {\n\t\tJSONObject result = null;\n\t\tif (intent != null && intent.hasExtra(Notificare.INTENT_EXTRA_NOTIFICATION)) {\n\t\t\tLog.d(TAG, \"Launched with Notification\");\n\t\t\ttry {\n\t\t\t\tNotificareNotification notification = intent.getParcelableExtra(Notificare.INTENT_EXTRA_NOTIFICATION);\n\t\t\t\tresult = notification.toJSONObject();\n\t\t\t\tif (intent.hasExtra(Notificare.INTENT_EXTRA_INBOX_ITEM_ID)) {\n\t\t\t\t\tresult.put(\"itemId\", intent.getStringExtra(Notificare.INTENT_EXTRA_INBOX_ITEM_ID));\n\t\t\t\t}\n\t\t\t\tresult.put(\"foreground\", false);\n\t\t\t} catch (JSONException e) {\n\t\t\t\tLog.w(TAG, \"JSON parse error\");\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tputExtra();\n\t\t\t\t\n\t\t\t}",
"protected String getBundleData() {\n Bundle bundle = getIntent().getExtras();\n StringBuilder temp = new StringBuilder();\n SessionManager session = new SessionManager(getApplicationContext());\n\n temp.append(\"User: \").append(session.getUserName()).append(\"\\r\\n\");\n temp.append(\"Layout: \").append(getBundle(bundle, \"layout\")).append(\"\\r\\n\");\n temp.append(\"Orientation: \").append(getBundle(bundle, \"orientation\")).append(\"\\r\\n\");\n temp.append(\"Variation: \").append(getBundle(bundle, \"variation\")).append(\"\\r\\n\");\n temp.append(\"Hardwareaddons: \").append(getBundle(bundle, \"hardwareaddons\")).append(\"\\r\\n\");\n temp.append(\"Input: \").append(getBundle(bundle, \"input\")).append(\"\\r\\n\");\n temp.append(\"Posture: \").append(getBundle(bundle, \"posture\")).append(\"\\r\\n\");\n temp.append(\"Externalfactors: \").append(getBundle(bundle, \"externalfactors\")).append(\"\\r\\n\").append(\"\\r\\n\");\n //data = temp.toString();\n return temp.toString();\n }",
"public Bundle toBundle() {\n Bundle bundle = new Bundle();\n bundle.putString(KEY_ID, mId);\n bundle.putInt(KEY_FLAGS, mFlags);\n if (mMetadata != null) {\n bundle.putBundle(KEY_METADATA, mMetadata.toBundle());\n }\n bundle.putString(KEY_UUID, mUUID.toString());\n return bundle;\n }",
"@Override\n protected void onHandleIntent(Intent workIntent) {\n String dataString = workIntent.getDataString();\n\tif(null == dataString) {\n\t\tLog.i(\"BluetoothEventService\", dataString);\n\t}\n// ...\n // Do work here, based on the contents of dataString\n// ...\n }",
"private static int m9364v(Intent intent, String str) {\n int i = -10000;\n if (intent == null) {\n return i;\n }\n try {\n return intent.getIntExtra(str, -10000);\n } catch (Exception e) {\n new StringBuilder(\"getIntExtra exception:\").append(e.getMessage());\n return i;\n }\n }"
] | [
"0.69467705",
"0.6883244",
"0.66810733",
"0.65529597",
"0.64671904",
"0.6455423",
"0.64189523",
"0.6382253",
"0.63053024",
"0.6283679",
"0.62596154",
"0.62107587",
"0.61978716",
"0.6188643",
"0.61520505",
"0.61018366",
"0.6082934",
"0.6054927",
"0.6007873",
"0.59354573",
"0.5923595",
"0.5897829",
"0.5869065",
"0.58501685",
"0.5820558",
"0.58122694",
"0.57986736",
"0.5786474",
"0.57718915",
"0.5721072",
"0.5694694",
"0.5674362",
"0.5661441",
"0.56612384",
"0.56410027",
"0.56374264",
"0.5632281",
"0.5630222",
"0.56266457",
"0.56215185",
"0.5596153",
"0.55846405",
"0.5582039",
"0.5570422",
"0.552785",
"0.55238044",
"0.55225706",
"0.5506421",
"0.5491595",
"0.54725754",
"0.54648054",
"0.54598874",
"0.5459402",
"0.54582924",
"0.5434548",
"0.54296756",
"0.54094005",
"0.5382692",
"0.53449756",
"0.5311609",
"0.5290241",
"0.5261272",
"0.52410555",
"0.5238654",
"0.52190644",
"0.5199519",
"0.51890105",
"0.51750636",
"0.51601946",
"0.51457405",
"0.5144962",
"0.5143166",
"0.5104583",
"0.5095141",
"0.50942606",
"0.50808126",
"0.50791246",
"0.5077028",
"0.506037",
"0.5059916",
"0.50543827",
"0.50505346",
"0.5045197",
"0.5042776",
"0.5042025",
"0.50323087",
"0.50277424",
"0.50263",
"0.5024416",
"0.5019885",
"0.5012413",
"0.5011734",
"0.4983376",
"0.4982661",
"0.49780568",
"0.49709725",
"0.4958212",
"0.4956232",
"0.4948399",
"0.49415722"
] | 0.6500313 | 4 |
TimePiece constructor all the gets | private String getType(){
return type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Time() {\n\t}",
"public Coursetime() {\n\t}",
"public Time(int hour, int minute, int second){ //method in the initializer block\n setHour(hour);\n setMinute(minute);\n setSecond(second);\n}",
"public Time4( int hour, int minute, int second )\r\n { \r\n this.setTime( hour, minute, second ); \r\n }",
"public Time4( int hour, int minute ) \r\n { \r\n this.setTime( hour, minute, 0 ); \r\n }",
"public CTime() {\n\t\n}",
"private TimeUtil() {}",
"public TimeField() {\n\t\tsuper('t', \"0 0\");\n\t}",
"public Clock()\n {\n hour = 11;\n min = 28;\n sec = 12;\n }",
"public Time4( int hour ) \r\n { \r\n this.setTime( hour, 0, 0 ); \r\n }",
"public EatTime() {\n }",
"public Time(int hours, int minutes) {\n this.hours = hours;\n this.minutes = minutes;\n }",
"public Time() {\r\n\t\tsecond = (System.currentTimeMillis() / 1000) % 60;\r\n\t\tminute = (System.currentTimeMillis() / 1000) / 60 % 60;\r\n\t\thour = ((System.currentTimeMillis() / 1000) / 3600) % 24;\r\n\t}",
"public ClockTime(String value) {\n this(value,null);\n }",
"public ThingTimeTriple(String english, Entity t, long from, long to)\r\n/* 390: */ {\r\n/* 391:344 */ this.english = english;\r\n/* 392:345 */ this.t = t;\r\n/* 393:346 */ this.from = from;\r\n/* 394:347 */ this.to = to;\r\n/* 395: */ }",
"public Time4() \r\n { \r\n this.setTime( 0, 0, 0 ); \r\n }",
"public Time(long hour, long minute, long second) {\r\n\t\tthis.hour = hour;\r\n\t\tthis.minute = minute;\r\n\t\tthis.second = second;\r\n\t}",
"public Time4( Time4 time )\r\n {\r\n this.setTime( time.getHour(), time.getMinute(),\r\n time.getSecond() );\r\n }",
"public Time(){\r\n Seconds = 0; \r\n }",
"public Time( int minutes ) {\n this.minutes = minutes;\n }",
"public RestaurantTime (){\r\n\t\topenTime = new int[] {0000};\r\n\t\tcloseTime = new int[] {2359};\r\n\t}",
"protected Time(int hours, int minutes, int seconds) {\n\t\tthis();\n\t\tthis.hours = hours;\n\t\tthis.minutes = minutes;\n\t\tthis.seconds = seconds;\n\t}",
"public Time( int hour, int minute ) {\n this( hour * MINS_PER_HR + minute );\n }",
"public ClockTime(String s, String subtype) {\n super(Property.CLOCKTIME_PROPERTY,subtype);\n\n\n Date value = null;\n\n try {\n StringTokenizer tokens = new StringTokenizer(s, \":\");\n if (tokens.countTokens() == 1) {\n if (s.startsWith(\"24\")) {\n s = \"00\" + s.substring(2);\n }\n if (s.startsWith(\"00\")) {\n s = s.substring(2);\n if (s == null || s.equals(\"\"))\n s = \"00\";\n if (!s.equals(\"00\") && Integer.parseInt(s) >= 60) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n try {\n value = dfMedium.get().parse(\"00:\" + s + \":00\");\n }\n catch (Exception e) {\n calValue = null;\n return;\n }\n calValue = Calendar.getInstance();\n calValue.setTime(value);\n normalize();\n return;\n }\n if (s.length() > 0 && s.charAt(0) == '0')\n s = s.substring(1);\n int h = Integer.parseInt(s);\n if (h >= 0 && h <= 9)\n s = \"0\" + s + \":00:00\";\n else if (h < 24)\n s = s + \":00:00\";\n else if (h >= 100 && h <= 959) {\n int hh = Integer.parseInt(s.substring(0, 1));\n int mm = Integer.parseInt(s.substring(1, 3));\n if (mm >= 60) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n s = \"0\" + hh + \":\" + mm + \":00\";\n }\n else if (h >= 1000 && h <= 2359) {\n int hh = Integer.parseInt(s.substring(0, 2));\n int mm = Integer.parseInt(s.substring(2, 4));\n if (hh >= 24) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n if (mm >= 60) {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n s = hh + \":\" + mm + \":00\";\n }\n else {\n calValue = null;\n return;\n //throw new Exception(\"Invalid clocktime: \" + s);\n }\n }\n else\n if (tokens.countTokens() == 2) {\n s += \":00\";\n }\n try {\n value = dfMedium.get().parse(s);\n calValue = Calendar.getInstance();\n calValue.setTime(value);\n normalize();\n if (getSubType(\"showseconds\") != null && getSubType(\"showseconds\").equalsIgnoreCase(\"false\")) {\n \tsetShortFormat(true);\n }\n }\n catch (Exception e) {\n //throw new Exception(e);\n calValue = null;\n }\n } catch (Throwable e1) {\n calValue = null;\n }\n }",
"public TimeBlock() {\n name = \"To be assigned\";\n startingTime = \"00:00\";\n endingTime = \"00:00\";\n duration = 0;\n }",
"private AbsTime(AbsTime t)\n {\n // Copy the value.\n itsValue = t.itsValue;\n }",
"private AbsTime(String t) throws NumberFormatException, Time.Ex_TimeNotAvailable\n {\n // Parse the string.\n parse(t);\n }",
"public TimeMap() {\n\n }",
"public CtRecord() {\n fill(0, MODES.CHRONO, false, false, false, false, null, null, TIME_DEFAULT_VALUE, TIME_DEFAULT_VALUE, TIME_DEFAULT_VALUE, TIME_DEFAULT_VALUE, TIME_DEFAULT_VALUE, getMidnightTimeMillis());\n }",
"protected Time(int minutes) throws ArgumentException {\n\t\tthis();\n\t\tif (minutes < 0 || minutes >= 1440) {\n\t\t\tthrow new ArgumentException(String.format(\"%s,%s\",\n\t\t\t\t\tStrings.MinutesMustBeBetween0And1439, \"minutes\"));\n\t\t}\n\n\t\tthis.hours = minutes / 60;\n\t\tthis.minutes = minutes % 60;\n\t\tthis.seconds = 0;\n\t}",
"public Timeslot() {\n }",
"public Time() {\n this(System.currentTimeMillis());\n }",
"public FreeTime() {}",
"public MyTime(int hours, int minutes, int seconds){\n\t\tsetHours(hours);\n\t\tsetMinute(minutes);\n\t\tsetSeconds(seconds);\n\t}",
"public TimeTravel() {\r\n\t\t}",
"public FromTo() {\n this(\"now-6h\", \"now\");\n }",
"public FlightTime(int hour, int minute, String timeType) {\n\t\tthis.hour = hour;\n\t\tthis.minute = minute;\n\t\tthis.timeType = timeType;\n\t}",
"public TimeField(String time_field) {\n\t\tsuper('t', time_field);\n\t}",
"public TimeField(SdpField sf) {\n\t\tsuper(sf);\n\t}",
"public WorkTimeEvent() {\r\n super();\r\n }",
"public Time(int hour, int minutes) throws BlablakidException{\n\t\tif(checkTime(hour,minutes)==false) {\n\t\t\tthrow new BlablakidException(\"The hour or the minutes introduced are wrong , \"+hour+\":\"+minutes);\n\t\t}\n\t\telse {\n\t\t\tthis.hour = hour;\n\t\t\tthis.minutes = minutes;\n\t\t}\n\t}",
"private Moment() {}",
"protected Time(Date dateTime) throws ArgumentException {\n\t\tthis.setHours(dateTime.getHours());\n\t\tthis.setMinutes(dateTime.getMinutes());\n\t\tthis.setSeconds(dateTime.getSeconds());\n\t}",
"public PuzzleThree(int time){\n\t\tclock = new Clock(time);\n\t}",
"public Clock (double tic) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // 1\n\t\tif (tic <= 0.0 || tic > 1800.0) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid tic value\");\n\t\t}\n\t\tthis.tic = tic;\n\t}",
"public static AbsTime factory(String t) throws NumberFormatException, Time.Ex_TimeNotAvailable\n {\n // The value to return.\n AbsTime result;\n\n // Check for ASAP and NEVER.\n if (t.equals(\"ASAP\")) {\n // No need to make a new object.\n result = ASAP;\n } else if (t.equals(\"NEVER\")) {\n // No need to make a new object.\n result = NEVER;\n } else if (t.equals(\"NOW\")) {\n // Make a new object using null constructor.\n result = new AbsTime();\n } else {\n // Not a special case. Need to make a new object.\n result = new AbsTime(t);\n }\n\n return result;\n }",
"public TimeMap() {\n timeMap = new HashMap<>();\n }",
"public AbsTime() throws Time.Ex_TimeNotAvailable\n {\n itsValue = timeNow();\n }",
"public DateTime(Date date,Time12 time)\n {\n\t\tthis.date=date;\n\t\tthis.time=time;\n }",
"public TimeConstraint() {\n\t\t// Start of user code constructor for TimeConstraint)\n\t\tsuper();\n\t\t// End of user code\n\t}",
"public Task(String title, int time)\n {\n try\n {\n check(time);\n\n setTitle(title);\n setTime(time);\n setActive(false);\n }\n catch (IllegalArgumentException e)\n {\n System.out.println(\"Incorrect data for a one-time tasks\");\n throw e;\n }\n }",
"TimeUnit() {\n }",
"public DERUTCTime(String time) {\n\t}",
"public TimeField(String start, String stop) {\n\t\tsuper('t', start + \" \" + stop);\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testConstructorNegativeHoursOne(){\n \tCountDownTimer s = new CountDownTimer(-5, 5, 20);\n }",
"private Time(int end) {\r\n\t\tcurrentTime = 0;\r\n\t\tendOfTime = end;\r\n\t\tobservers = new ArrayList<TimeObserver>();\r\n\t}",
"@Test\n public void testStringConstructor() {\n\n CountDownTimer s = new CountDownTimer(\"20:10:8\");\n assertEquals(s.toString(), \"20:10:08\");\n\n s = new CountDownTimer(\"20:8\");\n assertEquals(s.toString(), \"0:20:08\");\n\n s = new CountDownTimer(\"8\");\n assertEquals(s.toString(), \"0:00:08\");\n }",
"public Time( int hour, int minute, Meridiem meridiem ) {\n this(\n hour == Time.HALF_DAY_HRS ?\n meridiem == Meridiem.AM ?\n 0 :\n Time.HALF_DAY_HRS\n :\n meridiem == Meridiem.AM ?\n hour :\n hour + Time.HALF_DAY_HRS,\n minute\n );\n }",
"public Duration()\n\t{\n\t}",
"public Schedule(int timeOfDay, int minute, int duration, List<Integer> daysOfWeek, List<SprinklerGroup> sprinklerGroups) {\n\t\tsuper();\n\t\t\n\t\t\tTimeOfDay = timeOfDay;\n\t\t\tMinute = minute;\n\t\t\tDuration = duration;\n\t\t\tDaysOfWeek = daysOfWeek;\n\t\t\tSprinklerGroups = sprinklerGroups;\n\t\t\tType=ScheduleType.TIMED;\t\n\t\t\n\t}",
"public void setTime(){\r\n \r\n }",
"protected StartOfDay() {\n super();\n\n }",
"public Timestamp() {}",
"public TimeDataItem(Date time, byte value) {\n this(time, new Byte(value));\n }",
"public TimedEvent() {\n this(DEFAULT_LABEL + nextTaskID, DEFAULT_DATE, DEFAULT_TIME); // assigning default values\n }",
"public TimedEvent(String label, Date date, Time time) {\n super(label, date); // using the constructor of its superclass\n this.setTime(time); // assigns the time argument value to the attribute\n }",
"@Test (expected = IllegalArgumentException.class)\n\tpublic void testConstructor3ParametersNegHour() {\n\t\tnew CountDownTimer(-2, 3, 4);\n\t}",
"public TimeDataItem(Date time, Number value) {\n if (time == null) {\n throw new NullPointerException();\n }\n this.time = time;\n this.value = value;\n }",
"public CinemaDate() {\n }",
"public ShortDate(final long time) {\n super(time);\n }",
"public GameTime() {\n\t\tthis.total = 0;\n\t\tthis.hour = 0;\n\t}",
"public CinemaDate setTime(String t) {\n return new CinemaDate(this.month, this.day, t);\n }",
"public Times() {\n\t\ttimes = new ArrayList<Time>();\n\t}",
"public Clock() {\r\n this.hour = 0;\r\n this.minute = 0;\r\n }",
"public TimeSeriesTally() {\n\tsuper();\n\tfPrevTime = 0.0;\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testConstructorBadMinutesOne() {\n CountDownTimer s = new CountDownTimer(4, 100, 30);\n }",
"public DateHourFeatureFact(long timeInMillis) {\n super(timeInMillis, constraint);\n }",
"@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}",
"public ClockTime(Timestamp d) {\n super(Property.CLOCKTIME_PROPERTY);\n calValue = Calendar.getInstance();\n calValue.setTimeInMillis(d.getTime());\n normalize();\n }",
"@Test (expected = IllegalArgumentException.class)\n\tpublic void testConstructor3LargeMinute() {\n\t\tnew CountDownTimer(12, 60, 14);\n\t}",
"public TimeDataItem(Date time, short value) {\n this(time, new Short(value));\n }",
"public Hourly (String eName, String eAddress, String ePhone,\r\nString socSecNumber, double rate)\r\n{\r\nsuper(eName, eAddress, ePhone, socSecNumber, rate);\r\n//IMPLEMENT THIS\r\n}",
"private AbsTime(long t) throws IllegalArgumentException\n {\n itsValue = t;\n }",
"@Test\n\tpublic void testObjectConstructor(){\n\t\tCountDownTimer s1 = new CountDownTimer(1, 30, 0);\n\t\tCountDownTimer s2 = new CountDownTimer(s1);\n\t\tassertEquals(s2.toString(), \"1:30:00\");\n\t}",
"net.opengis.gml.x32.TimeInstantPropertyType addNewBegin();",
"@Test (expected = IllegalArgumentException.class)\n\tpublic void testConstructor3ParametersNegMinute() {\n\t\tnew CountDownTimer(2, -3, 4);\n\t}",
"@Override\n\tpublic void get_time_int(ShortHolder heure, ShortHolder min) {\n\t\t\n\t}",
"public Schedule() {\r\n }",
"@Test\n @Override\n public void testTime(TestContext ctx) {\n testDecodeGeneric(ctx, \"test_time\", Duration.class, Duration.ofHours(18).plusMinutes(45).plusSeconds(2));\n }",
"public QueueObject(int time, int pid) {\n this.time = time;\n this.pid = pid;\n }",
"public Timestamp() {\n crtime = System.currentTimeMillis() ;\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testConstructorNegativeMinutesOne(){\n \tCountDownTimer s = new CountDownTimer(5, -5, 5);\n }",
"public void setTime(int hour, int minute, int second){\r\n this.hour = hour ; /*when it was hour,minutes,second it was a new variable for this function bt as we used this.It gained access to the global ones. */\r\n this.minute = minute; \r\n this.second = second;\r\n }",
"@Override\n public LocalDateTime localCreateFromTime(InternalTime it) {\n if (it.getHours() < 0 || it.getHours() >= 24) {\n throw new DataReadException(\n Messages.getString(\"ResultSet.InvalidTimeValue\", new Object[] { \"\" + it.getHours() + \":\" + it.getMinutes() + \":\" + it.getSeconds() }));\n }\n return createFromTimestamp(new InternalTimestamp(1970, 1, 1, it.getHours(), it.getMinutes(), it.getSeconds(), it.getNanos(), it.getScale()));\n }",
"public CinemaDate(String m, String d, String t) {\n this.month = m;\n this.day = d;\n this.time = t;\n }",
"public static AbsTime factory(AbsTime t)\n {\n // The value to return.\n AbsTime result;\n\n if (t.isASAP() || t.isNEVER()) {\n // No need to make a new object.\n result = t;\n } else {\n // Not a special case. Make a new object.\n result = new AbsTime(t);\n }\n\n return result;\n }",
"public TimeDataItem(Date time, int value) {\n this(time, new Integer(value));\n }",
"public SlowTimer(MutableTime time, SlowBeat slowBeat, TimerDurationSeconds durationOfTimer, String owner) {\t\t\n\t\tsuper(time, slowBeat, durationOfTimer);\n\t}",
"public TimeMap2() {\n map = new HashMap<>();\n }",
"public Workout(String exercise, int minutes){\n this.exercise = exercise;0\n this.minutes = minutes;\n\n }",
"public TimeDataItem(Date time, float value) {\n this(time, new Float(value));\n }"
] | [
"0.7083223",
"0.7081501",
"0.70118374",
"0.69166607",
"0.67725646",
"0.67449105",
"0.6734955",
"0.6686562",
"0.6673179",
"0.66501087",
"0.65587825",
"0.6526012",
"0.650262",
"0.64904183",
"0.6483232",
"0.64563006",
"0.6385481",
"0.63796365",
"0.63770294",
"0.6361433",
"0.6355408",
"0.63482314",
"0.63482195",
"0.63157105",
"0.63116294",
"0.62840927",
"0.6244147",
"0.6217655",
"0.6217386",
"0.619048",
"0.6175403",
"0.6167575",
"0.6142108",
"0.61397624",
"0.6117912",
"0.607898",
"0.6063202",
"0.6046354",
"0.6014875",
"0.6005158",
"0.59989256",
"0.599353",
"0.59708357",
"0.5944834",
"0.59442174",
"0.59249645",
"0.5921912",
"0.59031177",
"0.5900983",
"0.5887556",
"0.5882746",
"0.58574307",
"0.58511233",
"0.5848746",
"0.5844883",
"0.58405185",
"0.5832116",
"0.58243996",
"0.5823529",
"0.5821761",
"0.5810325",
"0.5802497",
"0.58004713",
"0.5778272",
"0.576483",
"0.5757778",
"0.5755405",
"0.575512",
"0.57355964",
"0.5729941",
"0.5720205",
"0.57099164",
"0.5704776",
"0.56880873",
"0.5684857",
"0.5665562",
"0.565855",
"0.5646719",
"0.5642694",
"0.5635691",
"0.56190515",
"0.561796",
"0.56124747",
"0.56032175",
"0.5598457",
"0.5597988",
"0.55957896",
"0.5581596",
"0.5565523",
"0.556457",
"0.5562917",
"0.55623084",
"0.55504096",
"0.55491173",
"0.5548814",
"0.5539881",
"0.55105907",
"0.55103016",
"0.550991",
"0.55091906",
"0.5503708"
] | 0.0 | -1 |
getSeconds all the sets | protected void setType(String requiredType){
type = requiredType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSeconds(){\r\n return Seconds;\r\n }",
"public int getSeconds()\n {\n return seconds;\n }",
"EDataType getSeconds();",
"public double getSeconds() {\n return seconds;\n }",
"public int getSeconds(){\n return (int) (totalSeconds%60);\n }",
"public int getSeconds() {\n return this.seconds;\n }",
"public double getSeconds() {\n return this.seconds;\n }",
"@Contract(pure = true)\n\tpublic abstract int getSeconds();",
"public int getSeconds() {\r\n\t\treturn this.seconds;\r\n\t}",
"int getTtiSeconds();",
"public double getAsSeconds()\n {\n return itsValue / 1000000.0;\n }",
"public int getGMTOffSetSeconds() throws Exception {\n return getGMTOffSetSeconds(\"\");\n }",
"void clientProcessSecondsSet(final int index, final double time);",
"public final native int getSeconds() /*-{\n return this.getSeconds();\n }-*/;",
"public float getTimeSeconds() { return getTime()/1000f; }",
"@java.lang.Override\n public int getTtiSeconds() {\n return ttiSeconds_;\n }",
"public int getLaSeconds() {\n return laSeconds;\n }",
"int getPaceSeconds() {\r\n\t\tint m = getContents(minutes);\r\n\t\tint s = getContents(seconds);\r\n\t\treturn 60*m +s;\r\n\t}",
"@java.lang.Override\n public int getTtiSeconds() {\n return ttiSeconds_;\n }",
"public double getSecs( );",
"public void setTotalSeconds() {\n //this.totalSeconds = (int)((endTime.compareTo(startTime)*1000)/60);\n //long diff = endTime.compareTo(startTime);\n long diffMillis = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n // for testing only use no. secs\n this.totalSeconds += (int)((diffMillis/1000));\n // !!Reinstate this line: this.totalSeconds += (int)((diffMillis/1000)/60);\n\n }",
"public final native double setSeconds(int seconds) /*-{\n this.setSeconds(seconds);\n return this.getTime();\n }-*/;",
"private Set calculateTimeSet() {\n List choices = getDataChoices();\n if (choices.isEmpty()) {\n return null;\n }\n Set newSet = null;\n for (int i = 0; i < choices.size(); i++) {\n try {\n VerticalProfileInfo info = getVPInfo(i);\n GridDataInstance dataInstance = info.getDataInstance();\n Set set = GridUtil.getTimeSet(dataInstance.getGrid());\n //System.out.println(\"di.timeset[\"+i+\"] = \" + set);\n if (set != null) {\n if (newSet == null) {\n newSet = set;\n } else {\n newSet = newSet.merge1DSets(set);\n }\n }\n } catch (Exception e) {\n logger.error(\"Problem calculating TimeSet\", e);\n }\n }\n //System.out.println(\"merged time set = \" + newSet);\n return newSet;\n }",
"public int getSeconds() {\r\n return FormatUtils.uint8ToInt(mSeconds);\r\n }",
"@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}",
"public final native int getUTCSeconds() /*-{\n return this.getUTCSeconds();\n }-*/;",
"public void getSecsDetail( );",
"public java.lang.Integer getSecondsWatched() {\n return seconds_watched;\n }",
"public int getSec(){\n\t\treturn sec;\n\t}",
"public int getSamplingSeconds() {\n return samplingSeconds;\n }",
"public java.lang.Integer getSecondsWatched() {\n return seconds_watched;\n }",
"public static double getSecondsTime() {\n\t\treturn (TimeUtils.millis() - time) / 1000.0;\n\t}",
"public final native double setSeconds(int seconds, int millis) /*-{\n this.setSeconds(seconds, millis);\n return this.getTime();\n }-*/;",
"@Override\n\tpublic TimerValuesInterface getTimes() {\n\t\treturn timer;\n\t}",
"public ArrayList<Time> getTimes() {\n\t\treturn times;\n\t}",
"public List<TimeSpan> getRequestedTimes()\r\n {\r\n return myRequestedTimes;\r\n }",
"private static void calcSingleTms() {\n\t\tFloat avgLenInitial = 0f;\n\t\tFloat avgLenSc = 0f;\n\t\tInteger countSCsingle = 0;\n\t\t// get all the single TM proteins from the hash\n\t\t\n\t\t// for the initial set\n\t\tfor(int i =0;i<=singleTmProts.size()-1;i++){\n\t\t\tint id = singleTmProts.get(i);\n\t\t\tavgLenInitial = avgLenInitial + Sequences_length.get(id);\n\t\t}\n\t\tavgLenInitial = (avgLenInitial / singleTmProts.size());\n\t\t\n\t\tSystem.out.print(\"\\nNumber of Single TM proteins in initial Set \"+singleTmProts.size()+\"\\n\");\n\t\tSystem.out.print(\"\\nAvg Len of Single TM proteins in initial Set \"+avgLenInitial+\"\\n\");\n\t\t\n\t\t//for the SC\n\t\tgetSCset();\n\t\t// for all the proteins in SC_sequences\n\t\t\n\t\tfor(Integer key : SC_sequences.keySet()){\n\t\t\tif (singleTmProts.contains(key)){\n\t\t\t\t// is in SC and is single TM\n\t\t\t\tavgLenSc = avgLenSc + Sequences_length.get(key);\n\t\t\t\tcountSCsingle ++;\n\t\t\t}\n\t\t\tavgLenSc = (avgLenSc / countSCsingle); \n\t\t}\n\t\tSystem.out.print(\"\\nNumber of Single TM proteins in SC \"+countSCsingle+\"\\n\");\n\t\tSystem.out.print(\"\\nAvg Len of Single TM proteins in SC Set \"+avgLenSc+\"\\n\");\n\t\t\n\t\t\n\t\t\n\t}",
"public long getElapsedSeconds() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerSs;\n\t}",
"@Contract(pure = true)\n\tpublic int getSecondsFromMinute() {\n\t\treturn (getSeconds() - getMinutes() * 60);\n\t}",
"void clientResidenceSecondsSet(final int index, final double time);",
"@Override\n\tpublic int existseconds() {\n\t\treturn seconds;\n\t}",
"private static void getSCset(){\n\t\ttry{\n\t\t\tSystem.out.print(\"SC set being processed\\n\");\n\t\t\tPreparedStatement pstm1 = CAMPS_CONNECTION.prepareStatement(\"select cluster_id, cluster_threshold from cp_clusters2 where type=?\");\n\t\t\tPreparedStatement pstm2 = CAMPS_CONNECTION.prepareStatement(\"select sequenceid from clusters_mcl2 where cluster_id=? and cluster_threshold=? \");\n\t\t\tpstm1.setString(1, \"sc_cluster\");\n\t\t\tResultSet rs1 = pstm1.executeQuery();\n\t\t\twhile(rs1.next()){\n\t\t\t\tint clusid = rs1.getInt(1);\n\t\t\t\tfloat thresh = rs1.getFloat(2);\n\t\t\t\tpstm2.setInt(1, clusid);\n\t\t\t\tpstm2.setFloat(2, thresh);\n\t\t\t\tint seqid;\n\t\t\t\tResultSet rs2 = pstm2.executeQuery();\n\t\t\t\twhile(rs2.next()){\n\t\t\t\t\tseqid = rs2.getInt(1);\n\t\t\t\t\tint tmNo = Initial_sequences.get(seqid);\n\t\t\t\t\tSC_sequences.put(seqid, tmNo);\n\t\t\t\t}\n\t\t\t\trs2.close();\n\t\t\t\tpstm2.clearBatch();\n\n\t\t\t}\n\t\t\trs1.close();\n\t\t\tpstm1.close();\n\t\t\tpstm2.close();\n\n\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public List<Integer> getBySecond() {\n\t\treturn bySecond;\n\t}",
"public int getSecondsPassed()\n {\n return this.seconds;\n }",
"private TreeSet<Float> getKeyTimes() {\n TreeSet<Float> ret = new TreeSet<>();\n for (XmlNode animation : library_animations.getChildren(\"animation\")) {\n if (animation.getChild(\"animation\") != null) {\n animation = animation.getChild(\"animation\");\n }\n XmlNode timeData = animation.getChild(\"source\").getChild(\"float_array\");\n String[] rawTimes = timeData.getData().trim().split(\"\\\\s+\");\n for (String rawTime : rawTimes) {\n ret.add(Float.parseFloat(rawTime));\n\n }\n }\n return ret;\n }",
"public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }",
"public java.lang.Integer getPlaySeconds() {\n return play_seconds;\n }",
"public int getLoSeconds() {\n return loSeconds;\n }",
"protected double[] getTimes() {\n String vname = getTimeVarName(); //original time variable name\n double[] values = getValues(vname);\n return values;\n }",
"public List <Integer> getKeyFrameTimes() { return getKeyFrameTimes(null, true); }",
"public final native double setUTCSeconds(int seconds) /*-{\n this.setUTCSeconds(seconds);\n return this.getTime();\n }-*/;",
"public long getIntervalSeconds()\n {\n return __m_IntervalSeconds;\n }",
"public int getTempoSec() {\n return tempoSec;\n }",
"public void setSeconds(double seconds) {\n this.seconds = seconds;\n }",
"public void setSeconds(double seconds) {\n this.seconds = seconds;\n }",
"int getTimeInstants();",
"public final native double setUTCSeconds(int seconds, int millis) /*-{\n this.setUTCSeconds(seconds, millis);\n return this.getTime();\n }-*/;",
"@Test\n public void testSecs() {\n cT.setSeconds(secs);\n assertNotNull(cT.calcHMS()); \n }",
"public abstract float getSecondsPerUpdate();",
"public Integer periodSeconds() {\n return this.periodSeconds;\n }",
"public ArrayList<Long>\n getTimeStamps() \n {\n return pTimeStamps; \n }",
"static public double getSeconds(java.util.Date date){\n\treturn (double) (date.getTime()/1000L); \n }",
"public int getIntervalSeconds() {\n return this.intervalSeconds;\n }",
"protected static float toSeconds(int unit, float value) {\n \t\tswitch (unit) {\n \t\tcase CSSPrimitiveValue.CSS_MS:\n \t\t\treturn (value / 1000);\n \t\tcase CSSPrimitiveValue.CSS_S:\n \t\t\treturn value;\n \t\tdefault:\n \t\t\tthrow new DOMException(DOMException.INVALID_ACCESS_ERR, \"\");\n \t\t}\n \t}",
"public String getCurrentSeconds() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"public float getSecondsElapsed() { return _startTime==0? 0 : (System.currentTimeMillis() - _startTime)/1000f; }",
"public ArrayList<String> getCountStatics() {\n\t\tint countsPerMinute = 0;\n\t\tint countsPerHour = 0;\n\t\tint countsPerDay = 0;\n\t\tint countsPerWeek = 0;\n\t\tint countsPerMonth = 0;\n\n\t\t// get a comparison time and start comparing the times against it\n\t\tArrayList<String> myArrayString = new ArrayList<String>();\n\t\tCalendar currDate = Calendar.getInstance();\n\t\tfor (int i = 0; i < clickerCountObject.getClickerTimestamps().size(); i++) {\n\t\t\tSystem.out.println(clickerCountObject.getClickerTimestamps().get(i)\n\t\t\t\t\t.get(Calendar.MINUTE) <= currDate.get(Calendar.MINUTE));\n\t\t\tif (currDate.get(Calendar.MINUTE) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.MINUTE)\n\t\t\t\t\t&& currDate.get(Calendar.MINUTE) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.MINUTE)) {\n\t\t\t\tcountsPerMinute += 1;\n\t\t\t}\n\t\t\tif (currDate.get(Calendar.HOUR_OF_DAY) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.HOUR_OF_DAY)\n\t\t\t\t\t&& currDate.get(Calendar.HOUR_OF_DAY) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i)\n\t\t\t\t\t\t\t.get(Calendar.HOUR_OF_DAY)) {\n\t\t\t\tcountsPerHour += 1;\n\t\t\t}\n\t\t\tif ((currDate.get(Calendar.DAY_OF_MONTH) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.DAY_OF_MONTH))\n\t\t\t\t\t&& (currDate.get(Calendar.DAY_OF_MONTH) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i)\n\t\t\t\t\t\t\t.get(Calendar.DAY_OF_MONTH))) {\n\t\t\t\tcountsPerDay += 1;\n\t\t\t}\n\t\t\tif ((currDate.get(Calendar.WEEK_OF_MONTH) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.WEEK_OF_MONTH))\n\t\t\t\t\t&& (currDate.get(Calendar.WEEK_OF_MONTH) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i)\n\t\t\t\t\t\t\t.get(Calendar.WEEK_OF_MONTH))) {\n\t\t\t\tcountsPerWeek += 1;\n\t\t\t}\n\t\t\tif ((currDate.get(Calendar.MONTH) - 1 <= clickerCountObject\n\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.MONTH))\n\t\t\t\t\t&& (currDate.get(Calendar.MONTH) >= clickerCountObject\n\t\t\t\t\t\t\t.getClickerTimestamps().get(i).get(Calendar.MONTH))) {\n\t\t\t\tcountsPerMonth += 1;\n\t\t\t}\n\t\t}\n\t\tmyArrayString.add(\"Counts per Minute \"\n\t\t\t\t+ Integer.toString(countsPerMinute));\n\t\tmyArrayString.add(\"Counts per Hour \" + Integer.toString(countsPerHour));\n\t\tmyArrayString.add(\"Counts per Day \" + Integer.toString(countsPerDay));\n\t\tmyArrayString.add(\"Counts per Week \" + Integer.toString(countsPerWeek));\n\t\tmyArrayString.add(\"Counts per Month \"\n\t\t\t\t+ Integer.toString(countsPerMonth));\n\n\t\tSystem.out.println(myArrayString);\n\t\treturn myArrayString;\n\t}",
"public double getSecondsEnd() {\n return secondsEnd;\n }",
"private void getAllTotesCenterTimer()\r\n\t{\r\n\t\tswitch(autoStep)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t{\r\n\t\t\t\tstrafeLeftTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 6:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"@Override\n\tpublic List<RcuSettime> selectByExample(RcuSettimeExample example) {\n\t\treturn rcuSettimeMapper.selectByExample(example);\n\t}",
"int getSs();",
"public double getSystemTimeSec() {\n\treturn getSystemTime() / Math.pow(10, 9);\n}",
"private int totalTime()\n\t{\n\t\t//i'm using this varaible enough that I should write a separate method for it\n\t\tint totalTime = 0;\n\t\tfor(int i = 0; i < saveData.size(); i++)//for each index of saveData\n\t\t{\n\t\t\t//get the start time\n\t\t\tString startTime = saveData.get(i).get(\"startTime\");\n\t\t\t//get the end time\n\t\t\tString endTime = saveData.get(i).get(\"endTime\");\n\t\t\t//****CONTINUE\n\t\t\t//total time in minutes\n\t\t}\n\t}",
"@Test\n\tpublic void testMakeMeterSectionTimes() {\n\t\tScorePiece sp = new ScorePiece(MIDIImport.importMidiFile(midiTestGetMeterKeyInfo));\n\t\tScoreMetricalTimeLine smtl = new ScoreMetricalTimeLine(sp.getMetricalTimeLine());\n\n\t\tList<Long> expected = Arrays.asList(new Long[]{\n\t\t\t(long) 0, \n\t\t\t(long) 1800000, \n\t\t\t(long) 11400000, \n\t\t\t(long) 25800000, \n\t\t\t(long) 30600000, \n\t\t\t(long) 31350000\n\t\t});\n\n\t\tList<Long> actual = smtl.makeMeterSectionTimes();\n\n\t\tassertEquals(expected.size(), actual.size());\n\t\tfor (int i = 0; i < expected.size(); i++) {\n\t\t\tassertEquals(expected.get(i), actual.get(i));\t\t\n\t\t}\n\t\tassertEquals(expected, actual);\n\t}",
"private static void getStat(){\n\t\tfor(int key : Initial_sequences.keySet()){\n\t\t\tint tmNo = Initial_sequences.get(key);\n\t\t\tif (tmNo > 13){\n\t\t\t\ttmInitLarge ++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(tmInit.containsKey(tmNo)){\n\t\t\t\t\tint temp = tmInit.get(tmNo);\n\t\t\t\t\ttemp++;\n\t\t\t\t\ttmInit.put(tmNo, temp);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttmInit.put(tmNo, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Go through all the proteins in SC\n\t\tfor(int key : SC_sequences.keySet()){\n\t\t\tint tmNo = SC_sequences.get(key);\n\t\t\t\n\t\t\tint loop = Loop_lengths.get(key);\n\t\t\tint tmLen = TM_lengths.get(key);\n\t\t\t\n\t\t\tLoopTotalLen = LoopTotalLen + loop;\n\t\t\tTMTotalLen = TMTotalLen + tmLen;\n\t\t\t\n\t\t\t\n\t\t\tif (tmNo > 13){\n\t\t\t\ttmSCLarge ++;\n\t\t\t\tLoopLargeLen = LoopLargeLen + loop;\n\t\t\t\tTMLargeLen = TMLargeLen + tmLen;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(tmSC.containsKey(tmNo)){\n\t\t\t\t\tint temp = tmSC.get(tmNo);\n\t\t\t\t\ttemp++;\n\t\t\t\t\ttmSC.put(tmNo, temp);\n\t\t\t\t\t\n\t\t\t\t\tint looptemp = Loop_SC.get(tmNo);\n\t\t\t\t\tlooptemp = looptemp + loop;\n\t\t\t\t\tLoop_SC.put(tmNo, looptemp);\n\t\t\t\t\t\n\t\t\t\t\tint tmlenTemp = TM_len_SC.get(tmNo);\n\t\t\t\t\ttmlenTemp = tmlenTemp + tmLen;\n\t\t\t\t\tTM_len_SC.put(tmNo, tmlenTemp);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttmSC.put(tmNo, 1);\n\t\t\t\t\t\n\t\t\t\t\tLoop_SC.put(tmNo, 1);\n\t\t\t\t\tTM_len_SC.put(tmNo, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public int getDimes()\n {\n\treturn dimes;\n }",
"public ArrayList<Double> getTime(){\n\t\treturn time;\n\t}",
"public int getPlayedTimes() {\n return playedTimes;\n }",
"public int getSingles() {\n return h-(d+t+hr);\n }",
"public SpinnerNumberModel getSecondsModel() {\n\treturn this.secondsModel;\n }",
"void clientTransferSecondsSet(final int index, final double time);",
"public static int getTimeSeconds() {\n return Atlantis.getBwapi().getFrameCount() / 30;\n }",
"public int getSecond() {\n return dateTime.getSecond();\n }",
"public int getTotalTime();",
"public ArrayList getSemUnits();",
"public abstract void setSecondsPerUpdate(float secs);",
"public long[] getDurations() {\n return durations;\n }",
"@Override\r\n\tpublic int getMS() {\n\t\treturn MS;\r\n\t}",
"double clientProcessSeconds(final int index);",
"public double getAnimationSeconds()\n\t{\n\t\treturn seconds_passed;\n\t}",
"public double getSecond() {\n return second;\n }",
"public float getSecondSSN(){\n\t\t return SecondSSN;\n\t\t }",
"long getTimeInMilliSeconds();",
"public int getSecond() {\n return this.timeRuunableThread.getSecond();\n }",
"public long getTs() {\n return ts;\n }",
"public int getSlaSeconds() {\r\n String sla = this.getAttribute(WorkAttributeConstant.SLA);\r\n if (sla == null || sla.length() == 0)\r\n return 0;\r\n String unit = this.getAttribute(WorkAttributeConstant.SLA_UNITS);\r\n if (unit == null || unit.isEmpty())\r\n unit = this.getAttribute(WorkAttributeConstant.SLA_UNIT);\r\n if (unit == null || unit.isEmpty())\r\n unit = ServiceLevelAgreement.INTERVAL_HOURS;\r\n return ServiceLevelAgreement.unitsToSeconds(sla, unit);\r\n }",
"private long getPTSUs() {\n long result = System.nanoTime() / 1000L;\n if (result < prevOutputPTSUs)\n result = (prevOutputPTSUs - result) + result;\n return result;\n }",
"@Override\n public Stoptime[] getStoptimes(String stopGtfsId) throws Exception {\n String query = getStopTimesQuery(stopGtfsId);\n String json = new GraphQLAPIQuery(apiUrl, query).execute();\n \n Stop deserialized = new GsonBuilder()\n .registerTypeAdapter(Stop.class, new TransitDataJsonDeserializer())\n .create()\n .fromJson(json, Stop.class);\n \n return deserialized.getStoptimes();\n }",
"public abstract int getTicks();",
"public double getSecond()\n {\n return second;\n }",
"public int getMiliSeconds() {\r\n\t\treturn milis;\r\n\t}"
] | [
"0.65334785",
"0.64546406",
"0.64187604",
"0.6368232",
"0.6323727",
"0.62721956",
"0.62294626",
"0.6188044",
"0.61776227",
"0.612974",
"0.6013764",
"0.59494793",
"0.5938161",
"0.58997494",
"0.58837765",
"0.5836871",
"0.58357275",
"0.5822593",
"0.58039826",
"0.57813025",
"0.57541764",
"0.5690017",
"0.5682144",
"0.56614727",
"0.5612913",
"0.55933917",
"0.55673116",
"0.55600893",
"0.5557031",
"0.5556214",
"0.55504864",
"0.55326444",
"0.55078024",
"0.54466003",
"0.5443631",
"0.54423016",
"0.5404563",
"0.5403154",
"0.54001147",
"0.5382813",
"0.5362684",
"0.5340547",
"0.5337705",
"0.53307664",
"0.5328505",
"0.5326511",
"0.5323018",
"0.53073525",
"0.528747",
"0.52619743",
"0.5249609",
"0.5178797",
"0.51772285",
"0.5167608",
"0.5167608",
"0.5163201",
"0.51519775",
"0.5151593",
"0.51510125",
"0.51231974",
"0.51156086",
"0.5113772",
"0.510773",
"0.5077497",
"0.50768083",
"0.50690526",
"0.506839",
"0.50606906",
"0.50553256",
"0.50508827",
"0.5048427",
"0.50426054",
"0.50422674",
"0.5031869",
"0.5031347",
"0.50277776",
"0.50246257",
"0.5024345",
"0.5013304",
"0.5008357",
"0.49995843",
"0.49994168",
"0.49942255",
"0.4993756",
"0.49881035",
"0.49748144",
"0.49685526",
"0.49622798",
"0.49601907",
"0.49544814",
"0.49466237",
"0.49440113",
"0.4925258",
"0.4916882",
"0.49085715",
"0.49021986",
"0.4896757",
"0.48920888",
"0.48892036",
"0.48865256",
"0.48847315"
] | 0.0 | -1 |
setSeconds give the time | private void showTime(){
System.out.println(df.format(getHours()) + ":" + df.format(getMinutes()+ "\n"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSeconds(double seconds) {\n this.seconds = seconds;\n }",
"public void setSeconds(double seconds) {\n this.seconds = seconds;\n }",
"void setSeconds(int seconds) {\n this.seconds = seconds;\n notifyObservers();\n }",
"public final native double setSeconds(int seconds, int millis) /*-{\n this.setSeconds(seconds, millis);\n return this.getTime();\n }-*/;",
"public final native double setSeconds(int seconds) /*-{\n this.setSeconds(seconds);\n return this.getTime();\n }-*/;",
"public void setSeconds(final int newSeconds) {\n this.seconds = newSeconds;\n }",
"public void setTimeSeconds(float aTime) { setTime(Math.round(aTime*1000)); }",
"public void setSecond(int second) \n { \n if (second < 0 || second >= 60)\n throw new IllegalArgumentException(\"second must be 0-59\");\n\n this.second = second; \n }",
"public void setTime(int mins, int sec){\r\n this.Minutes = mins;\r\n this.Seconds = sec;\r\n }",
"public boolean setSeconds(int seconds)\n {\n this.seconds = seconds;\n return true;\n }",
"public abstract void setSecondsPerUpdate(float secs);",
"protected void setDuraction(int seconds) {\n duration = seconds * 1000L;\n }",
"public final native double setUTCSeconds(int seconds, int millis) /*-{\n this.setUTCSeconds(seconds, millis);\n return this.getTime();\n }-*/;",
"public Time4 setSecond( int second ) \r\n { \r\n this.second = \r\n ( second >= 0 && second < 60 ) ? second : 0;\r\n\r\n return this; // enables chaining\r\n }",
"public final native double setUTCSeconds(int seconds) /*-{\n this.setUTCSeconds(seconds);\n return this.getTime();\n }-*/;",
"public boolean setSeconds(int value) {\r\n if (!FormatUtils.uint8RangeCheck(value)) {\r\n return false;\r\n }\r\n mSeconds = FormatUtils.intToUint8(value);\r\n updateGattCharacteristic();\r\n return true;\r\n }",
"public void setTotalSeconds() {\n //this.totalSeconds = (int)((endTime.compareTo(startTime)*1000)/60);\n //long diff = endTime.compareTo(startTime);\n long diffMillis = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n // for testing only use no. secs\n this.totalSeconds += (int)((diffMillis/1000));\n // !!Reinstate this line: this.totalSeconds += (int)((diffMillis/1000)/60);\n\n }",
"public void setPlaySeconds(java.lang.Integer value) {\n this.play_seconds = value;\n }",
"public int getSeconds(){\r\n return Seconds;\r\n }",
"public int getSeconds()\n {\n return seconds;\n }",
"public void setSec(int sec) throws SecondInputException{\n\t\tif ((sec < 0) || (sec > 59))\n\t\t\tthrow new SecondInputException(\"Invalid second\");\n\t\telse\n\t\t\tthis.sec = sec;\n\t}",
"public int getSeconds() {\n return this.seconds;\n }",
"public int getSeconds() {\r\n\t\treturn this.seconds;\r\n\t}",
"public FormatTimerValues(int seconds) {\r\n this.seconds = seconds;\r\n }",
"void clientProcessSecondsSet(final int index, final double time);",
"void setTime(final int time);",
"public void secondsChanged() {\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}",
"public void setDuration (int sec) {\n String hoursText = \"\", minutesText = \"\", synthez = \"\";\n\n if (sec < 60) {\n synthez = \"less than one minute\";\n synthez = String.format(TEMPLATE, synthez);\n setText(Html.fromHtml(synthez)+\".\", BufferType.SPANNABLE);\n return;\n }\n\n if (sec >= 3600) {\n hoursText += sec/3600+\" Hour\";\n if (sec/3600 > 1) {\n hoursText+=\"s\";\n }\n hoursText+=\" \";\n }\n if (((sec%3600)/ 60) > 0) {\n minutesText+= ((sec%3600)/ 60)+ \" minute\";\n if (((sec%3600)/ 60 ) > 1) {\n minutesText+=\"s\";\n }\n minutesText+=\" \";\n }\n synthez = hoursText+minutesText;\n synthez = String.format(TEMPLATE, synthez);\n setText(Html.fromHtml(synthez)+\".\", BufferType.SPANNABLE);\n }",
"EDataType getSeconds();",
"public com.twc.bigdata.views.avro.viewing_info.Builder setPlaySeconds(java.lang.Integer value) {\n validate(fields()[3], value);\n this.play_seconds = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"public void setIntervalSeconds(long pIntervalSeconds)\n {\n __m_IntervalSeconds = pIntervalSeconds;\n }",
"@Test\n public void testSecs() {\n cT.setSeconds(secs);\n assertNotNull(cT.calcHMS()); \n }",
"public void setLaSeconds(int laSeconds) {\n this.laSeconds = laSeconds;\n }",
"public int getSeconds(){\n return (int) (totalSeconds%60);\n }",
"public Builder setTtiSeconds(int value) {\n\n ttiSeconds_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }",
"public void setPosition(float seconds){\r\n\t\tif(initialized){\r\n\t\t\tsound.setPosition(seconds);\r\n\t\t}\r\n\t}",
"public double getSeconds() {\n return this.seconds;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public double getSeconds() {\n return seconds;\n }",
"public void setSecondsWatched(java.lang.Integer value) {\n this.seconds_watched = value;\n }",
"public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}",
"public void setTempoSec(int tempoSec) {\n this.tempoSec = tempoSec;\n }",
"void clientTransferSecondsSet(final int index, final double time);",
"public void setTime(java.lang.Integer value) {\n this.time = value;\n }",
"protected void setInterval(int seconds) {\n interval = seconds * 1000L;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setLoSeconds(int loSeconds) {\n this.loSeconds = loSeconds;\n }",
"public void setTotalSeconds(int totalSeconds) {\n this.totalSeconds = totalSeconds;\n }",
"private void SetTime() {\r\n\t\t timelbl.setText(second/3600+\":\"+((second/60)%60)+\":\"+(second%60));\r\n\t}",
"public void setSecond(double value) {\n this.second = value;\n }",
"public void setMaxTimeSeconds(float aTime) { setMaxTime(Math.round(aTime*1000)); }",
"public void setTime(int hour, int minute, int second)\r\n\t{\r\n\t\tHours.setValue(hour);\r\n\t\tMinutes.setValue(minute);\r\n\t\tSeconds.setValue(second);\r\n\t\t\r\n\t\tupdateTime();\r\n\t}",
"private void sleep(int seconds) {\n\n\t\ttry {\n\t\t\tTimeUnit.SECONDS.sleep(seconds);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static String formatSeconds(int seconds) {\n SimpleDateFormat sf = new SimpleDateFormat(\"m:ss\");\n Date date = new Date(seconds*1000);\n return sf.format(date);\n }",
"public void setIncTimeout(int seconds);",
"public void setAutoLockTime(int seconds)\n {\n if(seconds >= 59 && seconds <= 7200)\n m_iAutoLockTime = seconds;\n }",
"public void setTime(double time) {_time = time;}",
"@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}",
"public float getTimeSeconds() { return getTime()/1000f; }",
"void currentTime(double timeInSeconds) {\n execute(\"player.currentTime = \" + timeInSeconds);\n }",
"private void setTime(long value) {\n bitField0_ |= 0x00000002;\n time_ = value;\n }",
"void clientWaitingSecondsSet(final int index, final double time);",
"public void setSit_time(int time)\n\t{\n\t\tsit_time = time - enter_time;\t\n\t}",
"public void setTime(int time) {\r\n\t\tthis.time = time;\r\n\t\tupdate();\r\n\t}",
"public void setTime(){\n\t\tthis.time = this.endTime - this.startTime;\t//calculate the time difference\n\t\t\n\t\t//now since the time is in milliseconds, convert the nanotime\n\t\tlong totalSeconds = (this.time / 1000000000);\n\t\t//Format the above seconds. So it will have at least \n\t\tint minute = (int)(totalSeconds/60);\n\t\tdouble second = totalSeconds - (minute*60);\t//get the remaining second part\n\t\t\n\t\tDecimalFormat minuteFormat = new DecimalFormat(\"##0\");\n\t\tDecimalFormat secondFormat = new DecimalFormat(\"###\");\t//so we only get the 3 digits\n\t\tString minutePart = minuteFormat.format(minute);\t//get the string for the second part\n\t\tString secondPart = secondFormat.format(second);\n\t\t\n\t\t\n\t\tString result = minutePart + \":\" + secondPart;\n\t\t\n\t\t//each time we set time, change the bounds\n\t\tthis.timeLabel.setText(String.valueOf(result));//set the JLabel text\n\t\t//when we set the time label, also set its location\n\t\tthis.timeLabel.setSize(timeLabel.getPreferredSize().width, \n\t\t\t\ttimeLabel.getPreferredSize().height);\n\t}",
"public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}",
"public static void setTime(Clock clock, int hour, int minute, int second) {\n\t\tif (hour < 0 || hour > 24) {\r\n\t\t\thour = 0;\r\n\t\t}\r\n\t\tif (minute < 0 || minute > 60) {\r\n\t\t\tminute = 0;\r\n\t\t}\r\n\t\tif (second < 0 || second > 60) {\r\n\t\t\tsecond = 0;\r\n\t\t}\r\n\r\n\t\tclock.setHour(hour);\r\n\t\tclock.setMinute(minute);\r\n\t\tclock.setSecond(second);\r\n\r\n\t}",
"public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }",
"public void setTime(){\r\n \r\n }",
"void clientResidenceSecondsSet(final int index, final double time);",
"public com.twc.bigdata.views.avro.viewing_info.Builder setSecondsWatched(java.lang.Integer value) {\n validate(fields()[4], value);\n this.seconds_watched = value;\n fieldSetFlags()[4] = true;\n return this; \n }",
"@Nonnull\n public final MutableClock plusSeconds(final int seconds) {\n getOrCreateNow().addSeconds(seconds);\n return this;\n }",
"public static void sleep(int seconds){\n seconds*=1000;\n try {\n Thread.sleep(seconds);\n }catch (InterruptedException e){\n e.getStackTrace();\n }\n }",
"@Override\n public void setSleepTime(int st) {\n this.sleepTime = st;\n\n // notify the update thread so that it can recalculate\n if (updateThread.isRunning())\n updateThread.interrupt();\n }",
"void setCurrentTime(long currentTime);",
"public static void waitForTime(int seconds) {\n\t\t//con static se posibilita no tener que crear un objeto de la clase\n\t\t//para emplear el metodo. Solo se usa el metodo llamando a la clase\n\t\ttry {\n\t\t\tThread.sleep(seconds*1000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public int getSecondsPassed()\n {\n return this.seconds;\n }",
"public void setTime(int hour, int minute, int second){\r\n this.hour = hour ; /*when it was hour,minutes,second it was a new variable for this function bt as we used this.It gained access to the global ones. */\r\n this.minute = minute; \r\n this.second = second;\r\n }",
"public void setTime(int time) {\n\t\tthis.time = time;\n\t}",
"public void setTotalTimer(int totalSec){\r\n\t\tFlashBuddyTimerActivity.totalSec = totalSec;\r\n\t}",
"public Time(){\r\n Seconds = 0; \r\n }",
"public void setTimeouts(int seconds) {\n\t\tgetHttpMethodExecutor().setTimeouts(seconds);\n\t}",
"public void setTimer(long ms) {\r\n\t\tthis.timer = ms;\r\n\t}",
"public void setTime(int time) {\n\n\t\tthis.time = time;\n\t}",
"public Builder bySecond(Integer... seconds) {\n\t\t\treturn bySecond(Arrays.asList(seconds));\n\t\t}",
"public void setTime(double minutes) {\n\t\t// implement this method.\n\n\t}",
"public final native int getSeconds() /*-{\n return this.getSeconds();\n }-*/;",
"public final native double setMinutes(int minutes, int seconds) /*-{\n this.setMinutes(minutes, seconds);\n return this.getTime();\n }-*/;",
"public int getSeconds() {\r\n return FormatUtils.uint8ToInt(mSeconds);\r\n }",
"void update(int seconds);",
"public static double getSecondsTime() {\n\t\treturn (TimeUtils.millis() - time) / 1000.0;\n\t}",
"public void sleep(long secs) {\n\t\ttry {\n\t\t\tThread.sleep(secs * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void setTs(long value) {\n this.ts = value;\n }",
"public void setTimeToLiveSeconds(String timeToLiveSeconds) {\n try {\n setTimeToLiveSeconds(Integer.parseInt(timeToLiveSeconds));\n }\n catch (Exception exception) {\n System.out.println(\"AuthStorageSession.setTimeToLiveSeconds: \"+exception);\n setTimeToLiveSeconds(-1);\n }\n }",
"public void ticksPerSec(int ticksPerSec)\n\t{\n\t\t_ticksPerSec = ticksPerSec;\n\t}",
"public void setTime( int value ) {\n final int oldTime = currentTime;\n currentTime = value;\n selectedThingsChanged( oldTime );\n\n mapComponent.getOptionContainer().getTimeCode().setText( DataExporter.generateTimeCode( value ) );\n\n mapComponent.getRadiantGoldLabel().setText( Integer.toString( appState.getReplay().getTeamGold( value, true ) ) );\n mapComponent.getDireGoldLabel().setText( Integer.toString( appState.getReplay().getTeamGold( value, false ) ) );\n\n mapComponent.getRadiantXPLabel().setText( Integer.toString( appState.getReplay().getTeamXP( value, true ) ) );\n mapComponent.getDireXPLabel().setText( Integer.toString( appState.getReplay().getTeamXP( value, false ) ) );\n\n }"
] | [
"0.84071034",
"0.84071034",
"0.81793535",
"0.7949774",
"0.7938822",
"0.7879074",
"0.7734579",
"0.75650895",
"0.75356233",
"0.7463036",
"0.7191635",
"0.7190294",
"0.7187214",
"0.7163625",
"0.7087425",
"0.697322",
"0.6872084",
"0.67779577",
"0.67695034",
"0.67602134",
"0.6751464",
"0.674304",
"0.6733991",
"0.6667062",
"0.6659241",
"0.665011",
"0.66304094",
"0.6618206",
"0.65885895",
"0.6570541",
"0.65654886",
"0.65635175",
"0.6559451",
"0.6524997",
"0.6520412",
"0.6486926",
"0.6483752",
"0.64763683",
"0.64763683",
"0.64763683",
"0.6475433",
"0.6465153",
"0.645125",
"0.64316636",
"0.6427537",
"0.64240414",
"0.6412855",
"0.6411843",
"0.6411843",
"0.6411843",
"0.6411843",
"0.64089084",
"0.63969827",
"0.6373036",
"0.6359545",
"0.634073",
"0.6301849",
"0.6263683",
"0.62349087",
"0.6232885",
"0.6232431",
"0.6226197",
"0.62255806",
"0.6204931",
"0.61888653",
"0.6185011",
"0.617021",
"0.6132812",
"0.6131597",
"0.61255324",
"0.61177236",
"0.61116725",
"0.6088571",
"0.60793394",
"0.6078579",
"0.6072564",
"0.6060623",
"0.6048699",
"0.604768",
"0.6046681",
"0.60446465",
"0.6039555",
"0.6038311",
"0.60345864",
"0.60250324",
"0.6010145",
"0.6007613",
"0.5998127",
"0.5994296",
"0.59922695",
"0.5967673",
"0.59622246",
"0.5951537",
"0.59427065",
"0.5933194",
"0.5921171",
"0.59178364",
"0.5912104",
"0.59103703",
"0.59061867",
"0.58967936"
] | 0.0 | -1 |
Dechiffrerar texten text och returnerar klartexten | String decrypt(String text) {
char letter;
String finalString = ""; // slutliga klartexten
int start = key.getStart(); // deklarerar nyckelns startläge
int k ; // variabel för bokstavens startläge i vanliga alfabetet
StringBuilder sb = new StringBuilder(); // skapar en stringbuilder som kan modifieras, bygger upp textsträngar av olika variabler
// loopen går igenom alla tecken i min krypterade text
for(int i = 0; i < text.length(); i++) { // for-loop för att gå igenom hela texten
letter = text.charAt(i); // ger bokstaven på platsen 0,1,2,3.....
if(letter == ' ') { // om det är ett blanktecken så ska det vara ett blanktecken
sb.append(' '); // sparar blanksteg i en stringBuilder
} else {
int index=0;
start=start%26; // vi behöver endast 26 värden
key.getStart();
while(index<26 &&(letter!=key.getLetter(index))) { // så länge som chiffret inte motsvarar förskjutningen
index++; // så fortsätter den leta
}
k=index-start;
if(k>=0)
letter=(char)('A'+k);
else letter=(char)('Z'-(start-1-index)); // räknar från index, om index mindre än start så räknar den bakåt
// så att det inte blir tokigt mellan Z och A.
sb.append(letter); //lagrar bokstav i stringBuilder
start++; //chiffret börjar om
}
}
return sb.toString(); // returnerar sluttexten
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"public String getPlainText();",
"String getToText();",
"private void txt() {\n\n\t}",
"public void leseTextEin()\r\n\t{\n\t\tif( this.text != \"\" )\r\n\t\t\treturn;\r\n\t\t\r\n\t StringBuffer buffer = new StringBuffer();\r\n\t BufferedReader input = null;\r\n\t \r\n\t try \r\n\t {\r\n\t \tinput = new BufferedReader( new FileReader(this.dateipfad) );\r\n\t \tString line = null; \r\n\t \twhile ((line=input.readLine()) != null)\r\n\t \t{\r\n\t \t\tbuffer.append(line); \r\n\t \t\tbuffer.append(System.getProperty(\"line.separator\"));\r\n\t \t}\r\n\t }\r\n\t catch (IOException ex)\r\n\t { ex.printStackTrace(); }\r\n\t finally \r\n\t {\r\n\t \ttry\r\n\t \t{\r\n\t \t\tif (input!= null) \r\n\t \t\t\tinput.close();\r\n\t \t}\r\n\t \tcatch (IOException ex)\r\n\t \t{ ex.printStackTrace(); }\r\n\t }\r\n\t this.text = buffer.toString();\r\n\t}",
"String text();",
"private String decodageCesar(String text) {\n if (text == null || text.equals(\"\")) {\n throw new AssertionError(\"Aucun texte n'est saisie\");\n }\n String decoding = decodageMot(text);\n SubstCipher decodingText = new SubstCipher(this.shiftAlea);\n decodingText.ensureNegativeShift();\n decodingText.buildShiftedTextFor(decoding);\n return decodingText.getLastShiftedText();\n }",
"public String text();",
"java.lang.String getHotelText();",
"public String text() { return text; }",
"public String getText();",
"public String getText();",
"public String getText();",
"public String getText();",
"public String saveText() {\n\n return \"!Základ!\\n\\n\" + \"Hrubá mzda : \" + wage + \"Kč\\n\" + \"Sleva poplatníka : \" + saveTextChoose + \"\\nSuperhrubá mzda : \" + calc.superGrossWage(wage) + \" Kč\\n\" + \"\\n!Zaměstnavatel odvody z mzdy!\\n\\n\" + \"Socialní pojištění : \" + calc.socialInsuranceEmployer(wage) + \" Kč\\n\" + \"Zdravotní pojištění: \" + calc.healthInsuranceEmployer(wage) + \" Kč\\n\" +\n \"\\n!Zaměstnanec odvody z mzdy!\\n\" + \"\\nSocialní pojištění : \" + calc.socialInsuranceEmployee(wage) + \" Kč\\n\" + \"Zdravotní pojištění : \" + calc.healthInsuranceEmployee(wage) + \" Kč\\n\" +\n \"\\n!Daň ze závislé činnosti!\\n\" + \"\\nZáklad daní :\" + calc.round(wage) + \" Kč\\n\" + \"Daň : \" + calc.tax(wage) + \" Kč \\n\" + \"Daň po odpoču slevy : \" + calc.afterDeductionOfDiscounts(wage, choose) + \" Kč\\n\" +\n \"\\nČistá mzda : \" + calc.netWage(wage, choose) + \" Kč\";\n }",
"public String getTextSchluessel() throws RemoteException;",
"@Override\r\n\t\t\tpublic String getText() {\n\t\t\t\treturn text;\r\n\t\t\t}",
"String getFromText();",
"protected Text getText()\r\n\t{\r\n\t\treturn text;\r\n\t}",
"TextDecoder getTextDecoder();",
"protected Text getText() {\n \t\treturn text;\n \t}",
"private void processText(){\n if(text == null || text.length() == 0){\n // When posting a tweet, Twitter returns the \"text\" JSON field even if it's not trimmed...\n text = trimmedText;\n }else{\n // Trim the original contents received from Twitter\n text = text.substring(0, text.offsetByCodePoints(0, displayTextRange[1]));\n }\n\n // Transform HTML characters (for some reason Twitter sends those)\n text = org.apache.commons.text.StringEscapeUtils.unescapeHtml4(text);\n }",
"String getTransformedText();",
"String getText ();",
"public String toText(String braille);",
"public abstract String text();",
"public abstract String text();",
"public String getDetaggedText() {\n\t\treturn detaggedText.toString();\n\t}",
"String getTextin_adresse() {\n return in_adresse.getText() ; //To change body of generated methods, choose Tools | Templates.\n }",
"public void nhapdltextlh(){\n\n }",
"public java.lang.String getText() {\n \t\treturn text;\n \t}",
"public abstract String getText();",
"public abstract String getText();",
"public abstract String getText();",
"public abstract String getText();",
"private String readText(NdefRecord record) throws UnsupportedEncodingException {\n\n byte[] payload = record.getPayload();\n\n // Get the Text Encoding\n String textEncoding = ((payload[0] & 128) == 0) ? \"UTF-8\" : \"UTF-16\";\n\n // Get the Language Code\n int languageCodeLength = payload[0] & 0063;\n\n // String languageCode = new String(payload, 1, languageCodeLength, \"US-ASCII\");\n // e.g. \"en\"\n\n // Get the Text\n return new String(payload, languageCodeLength + 1, payload.length - languageCodeLength - 1, textEncoding);\n }",
"public String getText(){\r\n\t\treturn text;\r\n\t}",
"private String filterText(Player player, String txt)\r\n/* */ {\r\n/* 76 */ if (this.settings.enabled)\r\n/* */ {\r\n/* 78 */ Chatter chatter = ChatterHandler.getChatter(player.getUniqueId());\r\n/* 79 */ String filteredTxt = this.plugin.getFilterHandler().execute(player, txt);\r\n/* */ \r\n/* 81 */ if (filteredTxt != null)\r\n/* */ {\r\n/* */ \r\n/* 84 */ chatter.addMessage(new ChatMessage(filteredTxt));\r\n/* */ \r\n/* 86 */ return filteredTxt;\r\n/* */ }\r\n/* */ \r\n/* 89 */ return null;\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* 93 */ return txt;\r\n/* */ }",
"public String getText(){\r\n return text;\r\n }",
"public String text() // left text\n\t{\n\t\treturn this._data.get(\"text\");\n\t}",
"public String getTextEn() {\n return textEn;\n }",
"java.lang.String getTransferTxt();",
"default String getOriginalText() {\n return meta(\"nlpcraft:nlp:origtext\");\n }",
"public void getText(){\n\t\tnoteText.setText(note.getText());\n\t}",
"void baInfo(String text);",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"@Override\n\tpublic void characters(String text) {\n\t\t\n\t}",
"public CharSequence getText();",
"public abstract String dohvatiKontakt();",
"private void convertion(){\n txtBox2.setText(workin.convertText(txtBox1.getText())) ; \n }",
"private String decodageMot(String message) {\n if (message == null || message.equals(\"\")) {\n throw new AssertionError(\"Texte non saisie\");\n } \n return transformWords(message, 2);\n }",
"@Override\n\tpublic String getText() {\n\t\treturn \"MMS: \" + text;\n\t}",
"@Override\n public void showText(String s){\n }",
"String getMyNoteTextByKey(Key verse);",
"public String ecritSansExemple(){\n\n\t\tNF = new KMADToSentenceStructure(nomFichierTemp.toString());\n\t\tNF.ecritureMdT(false);\n\t\treturn(NF.getTextMdT());\n\t}",
"public void deliverRawText(String text) {\n \n }",
"public String tagger(String textDariWebsite){\n String[] splitter = textDariWebsite.split(\"\\n\");\n\n\n String textWithTag = \"\";\n for(int i = 0; i < splitter.length; i++){\n String hasilNer = sentenceTagger.addNer(splitter[i]);\n textWithTag += hasilNer;\n textWithTag += \"\\n\";\n }\n\n return textWithTag;\n }",
"private String encodageCesar(String text) {\n if (text == null || text.equals(\"\")) {\n throw new AssertionError(\"Aucun texte n'est saisie\");\n }\n SubstCipher encodingText = new SubstCipher(this.shiftAlea);\n encodingText.buildShiftedTextFor(text);\n String encoding = encodingText.getLastShiftedText();\n return encodageMot(encoding);\n }",
"public String getText() {\r\n return text;\r\n }",
"public String getInfoText();",
"public final String zza() {\n return this.mainText;\n }",
"@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return myText;\n }",
"public java.lang.String getText() {\n return text_;\n }",
"public Text getText() {\n return this.melding;\n }",
"public String getText() {\r\n return text;\r\n }",
"public String getText() {\r\n return text;\r\n }",
"java.lang.String getExtensionText();",
"public String getText() {\n if (Language.isEnglish()) {\n return textEn;\n } else {\n return textFr;\n }\n }",
"public String getTxtKondektur() {\n return txtKondektur.getText();\n }",
"void antsInfo(String text);",
"String getText(int id);",
"public static String SPgetMessageText(Context context){\n ArrayList<Outfit> list = getOutfitList(context);\n if(list.size()>0){\n StringBuilder sb = new StringBuilder();\n for(int i = 0 ; i<list.size(); i++){\n sb.append(list.get(i).getFunCharacter());\n }\n return sb.toString();\n }else{\n return InitialOutfit.startingText();\n }\n\n\n }",
"String getDisplayText();",
"public final String getText() {\n\t\treturn text;\n\t}",
"public String text(){ // no input , some output\n\t\t\tSystem.out.println(\"text method\");\n\t\t\tString s = \"selenium\";\n\t\t\treturn s ;\n\t\t}",
"String getText()\n {\n return \"\";\n }",
"public String getTxt_potencia() {\r\n\t\treturn txt_potencia.getText();\r\n\t}",
"public String getTexto() {\n return texto;\n }"
] | [
"0.6349501",
"0.6349501",
"0.6349501",
"0.6349501",
"0.6349501",
"0.6349501",
"0.6349501",
"0.6349501",
"0.62149465",
"0.62149465",
"0.62149465",
"0.62149465",
"0.62149465",
"0.62149465",
"0.62149465",
"0.6198013",
"0.61076015",
"0.6059592",
"0.60514",
"0.6044204",
"0.60240984",
"0.6023409",
"0.59806406",
"0.59253573",
"0.59242326",
"0.59242326",
"0.59242326",
"0.59242326",
"0.5865208",
"0.5858062",
"0.58574814",
"0.58359915",
"0.58295614",
"0.58263534",
"0.5822283",
"0.57956165",
"0.57916915",
"0.5787686",
"0.5767581",
"0.57506585",
"0.57506585",
"0.57465607",
"0.5735539",
"0.57254255",
"0.57044834",
"0.5703883",
"0.5703883",
"0.5703883",
"0.5703883",
"0.57004076",
"0.56837153",
"0.5678462",
"0.5670762",
"0.5663351",
"0.5661141",
"0.56444156",
"0.5638665",
"0.5630844",
"0.5602972",
"0.55958205",
"0.55958205",
"0.55958205",
"0.55945504",
"0.55718726",
"0.5561919",
"0.55611813",
"0.555248",
"0.55380213",
"0.55354387",
"0.55354154",
"0.5528326",
"0.55203456",
"0.5510277",
"0.5503433",
"0.55020094",
"0.550173",
"0.54995567",
"0.5487273",
"0.54863524",
"0.54863524",
"0.54863524",
"0.54863524",
"0.54863524",
"0.54762447",
"0.54676074",
"0.5465819",
"0.5465763",
"0.5465763",
"0.54648244",
"0.5462323",
"0.54442954",
"0.5438038",
"0.5434391",
"0.5423848",
"0.5418415",
"0.5417712",
"0.5416295",
"0.5415961",
"0.5414156",
"0.5409814"
] | 0.56485105 | 55 |
non static and iteratively | public int sum2() {
int ans = 0;
for (ListNode<T> p = this; p != null; p = p.next) {
ans = ans + p.value; // fail!
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void iterator() {\n\t\t\r\n\t}",
"private void iterativeDataPropertyMetrics() {\n\t}",
"@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}",
"protected abstract void recombineNext();",
"@Override\n protected void runOneIteration() throws Exception {\n }",
"@Override\n\tpublic void run() {\n\t\tresult =\n\t\t\tStream.iterate(new int[]{0, 1}, s -> new int[]{s[1], s[0] + s[1]})\n\t\t\t\t.limit(limit)\n\t\t\t\t.map(n -> n[0])\n\t\t\t\t.collect(toList());\n\n\t}",
"public RunIterator iterator() {\n // Replace the following line with your solution.\n return new RunIterator(runs.getFirst());\n // You'll want to construct a new RunIterator, but first you'll need to\n // write a constructor in the RunIterator class.\n \n \n }",
"public void nextIterate() {\n\tdd1[0] = POW2_53 * d1;\n\tdd1[1] = 0.0;\n\tdddivd(dd1, POW3_33, dd2);\n\tddmuldd(POW3_33, Math.floor(dd2[0]), dd2);\n\tddsub(dd1, dd2, dd3);\n\td1 = dd3[0];\n\tif (d1 < 0.0) {\n\t d1 += POW3_33;\n\t}\n }",
"Foreach createForeach();",
"protected void runBeforeIteration() {}",
"public void inOrderTraverseIterative();",
"public void runOneIteration() {\n // Update user latent vectors\n\n //IntStream.range(0,userCount).peek(i->update_user(i)).forEach(j->{});\n\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n\n // Update item latent vectors\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n }",
"private void c()\r\n/* 91: */ {\r\n/* 92:103 */ for (cvl localcvl : this.d) {\r\n/* 93:104 */ localcvl.a(this);\r\n/* 94: */ }\r\n/* 95: */ }",
"public int getIteration();",
"void loadNext();",
"private void setAllLocalResults() {\n TreeMap<FlworKey, List<FlworTuple>> keyValuePairs = mapExpressionsToOrderedPairs();\n // get only the values(ordered tuples) and save them in a list for next() calls\n keyValuePairs.forEach((key, valueList) -> valueList.forEach((value) -> _localTupleResults.add(value)));\n\n _child.close();\n if (_localTupleResults.size() == 0) {\n this._hasNext = false;\n } else {\n this._hasNext = true;\n }\n }",
"IEmpleado next();",
"@Override\r\n\tpublic void next() {\n\n\t}",
"protected class_496 method_1607() {\n if (this.field_934.field_183 != this.field_938) {\n throw new ConcurrentModificationException();\n } else {\n class_496 var1 = this.field_937;\n if (var1 == null) {\n throw new NoSuchElementException(\"No next() entry in the iteration\");\n } else {\n class_496[] var2 = this.field_934.field_181;\n int var3 = this.field_935;\n\n class_496 var4;\n for(var4 = var1.field_903; var4 == null && var3 > 0; var4 = var2[var3]) {\n --var3;\n }\n\n this.field_937 = var4;\n this.field_935 = var3;\n this.field_936 = var1;\n return var1;\n }\n }\n }",
"public void nextSet(){\n this.fillVector();\n }",
"private void findNext() {\n \tthis.find(true);\n }",
"void eachVirtualShapeDo (FunctionalParameter doThis){\r\n\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext())\r\n doThis.execute(iter.next());\r\n\r\n // more here on\r\n }\r\n\r\n\r\n }",
"@Override\n\tpublic void next() {\n\t\t\n\t}",
"private void iterateUpdate()\n\t{\n\t\tSystem.out.println(\"ITERATE\");\n\t\t\t\n\t\tfor (Organism org : simState.getOrganisms()) \n\t\t{\n\t\t\torganismViewData.resetOrganismView(org);\n\t\t}\n\t\t\n\t\tIterationResult result = simEngine.iterate();\n\t\t\n\t\t// Process born and dead organisms\n\t\taddBornModels(result.getBorn());\n\t\tremoveDeadModels(result.getLastDead());\n\t\t\n\t\trotateAnimals();\t\t\n\t}",
"protected void computeDirectly() throws IOException {\n\n\n for(int i = mStart; i < mStart + mLength; i++) {\n mSource[i].forEachRemaining(n -> {\n try {\n Writer.writeBlockForNode(n, db, bufferedWriter, reportBlockSize, relationshipType);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }\n\n\n\n }",
"static void recorreT(){\r\n\tStruct aux=lt;\r\n\twhile(aux!=null){\r\n\t\taux.view();\r\n\t\taux=aux.sig;\r\n\t}\r\n }",
"@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}",
"private void poetries() {\n\n\t}",
"void runC() {\n\t\tArrayList<Link> links_s2 = new ArrayList<Link>(links_s);\n\t\tArrayList<Link> links_p2 = new ArrayList<Link>(links_p);\n\t\talgorithmC = new HashSet<Link>(algorithmC(links_p2, links_s2));\n\t}",
"public void k()\r\n/* 238: */ {\r\n/* 239:258 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 240:259 */ if (this.a[i] != null) {\r\n/* 241:260 */ this.a[i].a(this.d.o, this.d, i, this.c == i);\r\n/* 242: */ }\r\n/* 243: */ }\r\n/* 244: */ }",
"public abstract void completeIteration();",
"protected void runBeforeIterations() {}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t\tjj.first();\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t\tjj.first();\r\n\t\t\t}",
"@Override\n\tpublic void next()\n\t{\n\n\t}",
"public void runOneIteration() {\n\t\t// Update user latent vectors\n\t\tfor (int u = 0; u < userCount; u++) {\n\t\t\tupdate_user(u);\n\t\t}\n\n\t\t// Update item latent vectors\n\t\tfor (int i = 0; i < itemCount; i++) {\n\t\t\tupdate_item(i);\n\t\t}\n\t}",
"private void process() {\n\n Cluster current=_clusters.get(0);\n while (!current.isValid()) {\n KMeans kmeans=new KMeans(K,current);\n for (Cluster cluster : kmeans.getResult())\n if (cluster.getId()!=current.getId())\n _clusters.add(cluster);\n for (; current.isValid() && current.getId()+1<_clusters.size(); current=_clusters.get(current.getId()+1));\n }\n }",
"public void iterate() {\n\t\tfor (int i = 0; i < this.getRemainingAmount(); i++) {\n\t\t\t// O(1) getter of the Circular Vector.\n\t\t\tCarAndTime temp = mVehicles.getIndex(i);\n\t\t\t// to increment the travel time of the car self\n\t\t\ttemp.getCar().incrementTravelTime(1);\n\t\t\t// to decrement the travel time of the car in the pair(in the\n\t\t\t// street)\n\t\t\ttemp.setTime(temp.getTime() - 1);\n\t\t}\n\n\t}",
"public ChainedArraysIterator(){\r\n\t\t\tcurrentNode = beginMarker.next;\r\n\t\t\tcurrent = currentNode.getFirst();\r\n\t\t\tidx = 0;\r\n\t\t\texpectedModCount=modCount;\r\n\t\t}",
"StackManipulation cached();",
"public void next(){\n\t\tif(generated)\n\t\t\tcurr++;\n\t}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmLc.iterate() ;\n\t\t\t\t}",
"public void generate() {\n\t\tMirror m = new Mirror();\n\t\tpoints.addAll(m.fish());\n\t\twhile (remainingPoints > 0) {\n\t\t\titerate();\n\t\t\tremainingPoints--;\n\t\t}\n\n\t}",
"@Override\n\t\tpublic void reduce() {\n\t\t\t\n\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"Split getNext();",
"public void iterate() {\n\t\t// iterator\n\t\tQueue<NDLMapEntryNode<T>> nodes = new LinkedList<NDLMapEntryNode<T>>();\n\t\tnodes.add(rootNode);\n\t\twhile(!nodes.isEmpty()) {\n\t\t\t// iterate BFSwise\n\t\t\tNDLMapEntryNode<T> node = nodes.poll();\n\t\t\tif(node.end) {\n\t\t\t\t// end of entry, call processor\n\t\t\t\tif(keyProcessor != null) {\n\t\t\t\t\tkeyProcessor.process(node.data);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(node.keys != null) {\n\t\t\t\t// if available\n\t\t\t\tnodes.addAll(node.keys.values()); // next nodes to traverse\n\t\t\t}\n\t\t}\n\t}",
"public void nextIteration() {t++;}",
"private final void m11968d() {\n synchronized (this.f10173g) {\n for (zzsk a : this.f10174h) {\n a.m11971a();\n }\n }\n }",
"private void run() {\n int code = memory[pc];\n while (code != 0) {\n nextCode(code);\n code = memory[++pc];\n }\n }",
"private static void test() {\n\t\tint i = 0;\n\t\tArrays.fill(arr, -1);\n\t\tarr[++i] = 0;\n\t\tprintArray(arr);\n\t\ti = 0;\n\t\tArrays.fill(arr, -1);\n\t\tarr[i++] = 0;\n\t\tprintArray(arr);\n\t\t\n\t}",
"public abstract void next();",
"public void next();",
"public void next();",
"private Iterator<Integer> getIterator(Iterator<Iterator<Integer>> iter) {\n Iterator<Integer> iterator = null;\n while (iter.hasNext()) {\n iterator = iter.next();\n break;\n }\n return iterator;\n }",
"iterator(){current = start;}",
"public void iterateThroughtEachElement(){\r\n ArrayList<String> links = examineHTML.getHrefOffers();\r\n \r\n int index = 0;\r\n \r\n for(String link:links){\r\n getHTMLOffer(link, index);\r\n ++index;\r\n }\r\n /*for(int i = 0; i < 10; i++){\r\n getHTMLOffer(links.get(i), index);\r\n ++index;\r\n }*/\r\n \r\n analyzeEachOffer();\r\n }",
"public Vector<BasicSet> AllClosure(){\r\n\r\n\t\tVector<BasicSet> fermes=new Vector<BasicSet>();\r\n\t\tboolean success=false;\r\n\t\tint i=0;\r\n\t\t//BasicSet b=new BasicSet();\r\n\t\tfermes.add(FirstClosure());\r\n\t\tBasicSet attributs=new BasicSet();\r\n\t\tattributs.addAll(context.getAttributes());\r\n\t\twhile(success==false){\r\n\t\t\t//System.out.println(\"fermeeees iiii \"+fermes.get(i));\r\n\t\t\tBasicSet clone=(BasicSet) fermes.get(i).clone();\r\n\t\t\tfermes.add(NextClosure(attributs,clone));\r\n\t\t\t//System.out.println(\"fermeeees \"+fermes);\t\r\n\t\t\tif(fermes.lastElement().size()==context.getAttributeCount()){\r\n\t\t\t\tsuccess=true;\r\n\t\t\t\t//System.out.println(\"iiiii \"+i);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn fermes;\r\n\t}",
"private static Object[] m59444a(Iterable<?> iterable, Object[] objArr) {\n int i = 0;\n for (Object obj : iterable) {\n int i2 = i + 1;\n objArr[i] = obj;\n i = i2;\n }\n return objArr;\n }",
"@Override\r\n\tpublic void compute() {\n\t\t\r\n\t}",
"private void prepareNext() {\n this.hasNext = false;\n while (!this.hasNext && this.nodesIterator.hasNext()) {\n this.next = this.nodesIterator.next();\n this.hasNext = this.computeHasNext();\n }\n }",
"public int[][] iterate()\n {\n Random r = new Random();\n for (int i = 0; i < buffersize; i++) {\n if (unprocessed.isEmpty()) \n {\n finished = true;\n break;\n }\n int randomIndex = r.nextInt(unprocessed.size());\n nodemap.changeColor(unprocessed.get(randomIndex), 1);\n unprocessed.remove(randomIndex);\n }\n return nodemap.getIntMap();\n }",
"public abstract void next ();",
"public void iterateEventList();",
"public OpIterator iterator() {\n // some code goes here\n // throw new\n // UnsupportedOperationException(\"please implement me for lab2\");\n return new InterAggrIterator();\n }",
"private void a(String paramString, int paramInt1, int paramInt2, int paramInt3, boolean paramBoolean)\r\n/* 578: */ {\r\n/* 579:581 */ List<String> localList = c(paramString, paramInt3);\r\n/* 580:582 */ for (String str : localList)\r\n/* 581: */ {\r\n/* 582:583 */ a(str, paramInt1, paramInt2, paramInt3, this.q, paramBoolean);\r\n/* 583:584 */ paramInt2 += this.a;\r\n/* 584: */ }\r\n/* 585: */ }",
"private void gobble(Iterator<String> iter) {\n }",
"protected abstract Set method_1559();",
"public void iterate() {\n\n\t\tArrayList<int[]> pts = new ArrayList<int[]>();\n\t\tfor (int i = 0; i < POINTS_PER_ITER; i++) {\n\t\t\tint x = Window.mathRandom.nextInt(width);\n\t\t\tint y = Window.mathRandom.nextInt(width);\n\t\t\tpts.add(new int[] { x, y });\n\t\t}\n\n\t\tint[] bestPoint = new int[] {};\n\t\tdouble maxDist = 0;\n\t\tfor (int[] point : pts) {\n\t\t\tdouble dist = getDistFromOthers(point);\n\t\t\tif (dist > maxDist) {\n\t\t\t\tmaxDist = dist;\n\t\t\t\tbestPoint = point;\n\t\t\t}\n\t\t}\n\t\tif (check(bestPoint)) {\n\t\t\tpoints.add(bestPoint);\n\t\t} else {\n\t\t\tremainingPoints += 1;\n\t\t}\n\t}",
"public void doAll() {\n for (int i = 0; i < Integer.MAX_VALUE; i++) {\n sum += sumLoop(sumLoopArray);\n sum += sumIfEvenLoop(sumLoopArray);\n sum += sumIfPredicate(sumLoopArray);\n sum += sumShifted(3, 0x7f, sumLoopArray);\n addXtoArray(i, addXArray);\n sum += sumLoop(addXArray);\n addArraysIfEven(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n addArraysIfPredicate(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n sum += sumLoop(addArraysIfEvenArrayA);\n }\n }",
"protected void dataTablePlan2(int i) {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"protected void runAfterIterations() {}",
"@Override\r\n\tpublic Node visitSequential(SequentialContext ctx) {\n\t\treturn super.visitSequential(ctx);\r\n\t}",
"private void iterateLandProducers(){\n landPrimaryProducerManager.produceAll();\n\n for(Map.Entry<Sector, SecondaryProducer> v : landSecondaryProducerManager.getManagerMap().entrySet()){\n resourceManager.addProducerResourceVisitor(v.getValue(), v.getKey());\n }\n landSecondaryProducerManager.produceAll();\n }",
"protected void runAfterIteration() {}",
"@Override\n protected void iterChildren(TreeFunction f) {\n }",
"@Override\n protected void iterChildren(TreeFunction f) {\n }",
"@Override\n protected void iterChildren(TreeFunction f) {\n }",
"public static void main(String[] args) {\n\n for(int i=0; i<3;i++){\n // arr[i] = new Array1(i+3,i*2);\n //arr[0] = arr.getArray(3,5);\n\n }\n\n }",
"void m63701b() {\n for (C17455a a : this.f53839c) {\n a.m63704a();\n }\n }",
"void next();",
"private void testExternalIteration1() {\n\t\tfor(Movie m: movies){\n//\t\t\tSystem.out.println(\"Inside external iteration\");\n\t\t\tif(m.isClassic()){\n\t\t\t\ttop2Classics.add(m);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Top 2 classics (Ext Iteration): \" + top2Classics);\n\t}",
"public void next() {\n\t\t}",
"public void processingTotal(int i);",
"private void sampleOfTheGeneratedWindowedAggregate() {\n Iterator<Integer[]> iterator = null;\n\n // builder3\n Integer[] rows = iterator.next();\n\n int prevStart = -1;\n int prevEnd = -1;\n\n for ( int i = 0; i < rows.length; i++ ) {\n // builder4\n Integer row = rows[i];\n\n int start = 0;\n int end = 100;\n if ( start != prevStart || end != prevEnd ) {\n // builder5\n int actualStart = 0;\n if ( start != prevStart || end < prevEnd ) {\n // builder6\n // recompute\n actualStart = start;\n // implementReset\n } else { // must be start == prevStart && end > prevEnd\n actualStart = prevEnd + 1;\n }\n prevStart = start;\n prevEnd = end;\n\n if ( start != -1 ) {\n for ( int j = actualStart; j <= end; j++ ) {\n // builder7\n // implementAdd\n }\n }\n // implementResult\n // list.add(new Xxx(row.deptno, row.empid, sum, count));\n }\n }\n // multiMap.clear(); // allows gc\n // source = Linq4j.asEnumerable(list);\n }",
"@Override\r\n public Iterator iterator(){\n return new MyIterator(this);\r\n }",
"public List<T> next(){\n\t\tif(hasNext==true){\n\t\t\tSystem.out.println(\"***BEFORE CALL [NCR] next\");\n\t\t\tprintIndices();\n\t\t\t\n\t\t\tif(first==true){\n\t\t\t\tfirst = false;\n\t\t\t\treturn getCompList();\n\t\t\t}\n\t\t\t\n\t\t\t//current is always rightmost 1\n\t\t\tfor(int i=indices.length-1; i>=0; i--){\n\t\t\t\tif(indices[i]==1){\n\t\t\t\t\tcurrent = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//push current pointer right\n\t\t\tif(current<indices.length-1){\n\t\t\t\tSystem.out.println(\"[NCR] pushing\");\n\t\t\t\t//push\n\t\t\t\tindices[current++] = 0;\n\t\t\t\tindices[current] = 1;\n\t\t\t} \n\t\t\t//if current pointer can't be pushed right any further, pull closest base 1 spot right and reset to closest base\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"[NCR] Pulling\");\n\t\t\t\t//scan left to find closest base\n\t\t\t\tfor(int i=indices.length-1; i>=0; i--){\n\t\t\t\t\t//skip all consecutive 1's before searching for qualified base\n\t\t\t\t\tif(indices[i]==0){\n\t\t\t\t\t\tboolean addBase = true;\n\t\t\t\t\t\tfor(int j=i; j>=0; j--){\n\t\t\t\t\t\t\tif(indices[j]==1){\n\t\t\t\t\t\t\t\tindices[j++] = 0;\n\t\t\t\t\t\t\t\tindices[j] = 1;\n\t\t\t\t\t\t\t\tbase = j;\n\t\t\t\t\t\t\t\taddBase = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//if all current 1's are consecutively located at the end, add another base and reset to base\n\t\t\t\t\t\tif(addBase==true){\n\t\t\t\t\t\t\tpointers++;\n\t\t\t\t\t\t\tif(pointers==indices.length){\n\t\t\t\t\t\t\t\thasNext = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tindices[0] = 1;\n\t\t\t\t\t\t\tbase = 0;\n\t\t\t\t\t\t\tSystem.out.println(\"Add base true; added a base\");\n\t\t\t\t\t\t\tprintIndices();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//reset to base\n\t\t\t\t\t\tresetToBase();\n\t\t\t\t\t\tSystem.out.println(\"After base reset\");\n\t\t\t\t\t\tprintIndices();\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn getCompList();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n\t\tpublic void reset(int iteration) {\n\t\t\t\n\t\t}",
"private final void advance() {\n if (currentIterator == null) {\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n if (!currentIterator.hasNext()) {\n // we want advance to next iterator only when this iterator is exhausted\n if (index < intMaps.length - 1) {\n // we can advance to next iterator only if currentIterator is not the last iterator\n ++index;\n if (!fetched[index]) {\n GetAllCustomMap.this.fetchValuesForIndex(index);\n }\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n // we can not advance to next iterator because this iterator is the last iterator\n }\n } else {\n // we do not want to advance to next iterator because this iterator is not fully exhausted\n }\n }\n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs2=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size2=:\"+hs2.size());\r\n\t\t\t\tIterator<String> iter = hs2.iterator();\r\n\t\t\t\twhile(iter.hasNext()){\r\n\t\t\t\t String result = iter.next();\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time2=: \"+(end-start));\r\n\t\t\t}",
"@Override public void init_loop() {\n loop_cnt_++;\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Test\n\tpublic void testRun1() {\n\t\n\t\tRingSum s = new RingSum(3);\n\t\tfor( int i = 0; i < 120; ++i )\n\t\t{\n\t\t\ts.push(0);\n\t\t\ts.push(1);\n\t\t\ts.push(0);\n\t\t\tassertTrue(s.get() == 1);\n\t\t}\n\t\t\n\t}",
"private SBomCombiner()\n\t{}",
"private void processAccounts(){\r\n for (Account aAccount: theAccounts) {\r\n aAccount.runYear();\r\n }\r\n\r\n }",
"public void nextHard() {\n\t\titerator.next();\n\t}",
"private ArrayList<Record> test() {\n\t\t\t\tfor (int i = 0; i < numberOfIterations; i++) {\n\t\t\t\t\t// for each training record\n\t\t\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\t\t\t// calculate inputs and outputs\n\t\t\t\t\t\tforwardCalculation(records.get(j).input);\n\t\t\t\t\t}\n\t\t\t\t}\n//\t\t\t\tpostprocessOutputs();\n\t\t// forward pass\n\t\t// back pass\n\t\treturn records;\n\t}",
"private final void i() {\n }"
] | [
"0.67549074",
"0.58779633",
"0.5855645",
"0.5713079",
"0.5622387",
"0.55489516",
"0.5544647",
"0.55340505",
"0.5483751",
"0.54623765",
"0.54494923",
"0.53925943",
"0.5392018",
"0.53480005",
"0.5331759",
"0.5325155",
"0.5292152",
"0.52623534",
"0.52451295",
"0.5244268",
"0.5241506",
"0.5236364",
"0.52013505",
"0.5197272",
"0.5178979",
"0.5176025",
"0.51756805",
"0.5168987",
"0.5161573",
"0.5157216",
"0.51525396",
"0.51469684",
"0.51345116",
"0.513391",
"0.513391",
"0.51207215",
"0.5120424",
"0.51199853",
"0.50813025",
"0.5077447",
"0.5071349",
"0.50666386",
"0.5065346",
"0.50639844",
"0.5063358",
"0.5053723",
"0.50454026",
"0.5024749",
"0.50191265",
"0.5016695",
"0.5005225",
"0.4989407",
"0.49880958",
"0.4986623",
"0.4986623",
"0.4986108",
"0.49857473",
"0.49784485",
"0.49681723",
"0.4963628",
"0.49633196",
"0.49590605",
"0.4958411",
"0.49581066",
"0.4957773",
"0.49559858",
"0.495346",
"0.49534488",
"0.49528307",
"0.49509194",
"0.49503252",
"0.4940534",
"0.4939994",
"0.49342293",
"0.49315265",
"0.4923225",
"0.49227113",
"0.49125955",
"0.49125955",
"0.49125955",
"0.49106902",
"0.49083",
"0.49035522",
"0.49025655",
"0.49021778",
"0.48973346",
"0.4893778",
"0.4892306",
"0.48902738",
"0.48889405",
"0.4887996",
"0.48864594",
"0.48806655",
"0.48774746",
"0.487644",
"0.48735115",
"0.48731357",
"0.4868516",
"0.48646402",
"0.48600352",
"0.4858672"
] | 0.0 | -1 |
FIXME(Leo_Roos;Aug 27, 2011) copied from DSLResourceHandlerreadResource | public static @CheckForNull
StringBuffer readResource(IFile resource) {
try {
String stringFromReader = IOUtils.toString(resource.getContents(), resource.getCharset());
return new StringBuffer(stringFromReader);
} catch (IOException e) {
logger.error("Failed to read resource.", e);
} catch (CoreException e) {
logger.error("Failed to obtain content of specified resource.", e);
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Resource getResource();",
"public interface Resource { \n /**\n * @return the time, in <code>millis</code>, at which this resource was\n * last modified.\n */\n public long lastModified();\n\n /**\n * @return the URI that this resource corresponds to.\n */\n public String getURI();\n\n /**\n * @return the <code>InputStream</code> corresponding to this resource.\n * @throws IOException\n */\n public InputStream getInputStream() throws IOException;\n \n \n /**\n * @return the <code>Resource</code> corresponding to the given relative URI.\n * @param uri a URI.\n * @throws IOException\n */ \n public Resource getRelative(String uri) throws IOException;\n \n}",
"public abstract IResource getResource();",
"public interface ResourceReader<E> {\n /**\n * get resource types supported by this ResourceReader\n * @return types of resource which this ResourceReader understands (String array)\n */\n String [] getSupportedTypes();\n\n /**\n * Identification for vendor of this ResourceReader\n * @return string\n */\n String getProviderString();\n\n /**\n * Create appropriate Object from given Resource (for example Image if Resource.getType() returns \"gif\")\n * @param data Resource\n * @return Object\n */\n E create(Resource data);\n}",
"public abstract ResourceInputStream getResource(String resName, HttpServletRequest request);",
"public interface IResourceSource\n{\n /**\n * Get resource location based on resource name.\n *\n * @param name Name of resource to be searched\n * @return URL of resource\n */\n public URL getResourceLocation( String name );\n\n /**\n * Get resource locations based on resource name.\n *\n * @param name Name of resources to be searched\n * @return Enumeration of URLs of resources\n */\n public Enumeration getResourceLocations( String name );\n\n /**\n * Get resource path this resource source references. Each entry including the last must be\n * terminated with a semicolon.\n *\n * @return Resource path this resource source references\n */\n public String getResourcePath();\n}",
"public interface Resource extends Serializable\r\n{\r\n /**\r\n * Gets the resource id.\r\n * \r\n * @return the resource id\r\n */\r\n public String getResourceId();\r\n \r\n /**\r\n * Gets the protocol id\r\n * \r\n * @return the protocol id\r\n */\r\n public String getProtocolId(); \r\n \r\n /**\r\n * Returns the object id of the resource\r\n * \r\n * @return the object id\r\n */\r\n public String getObjectId();\r\n \r\n /**\r\n * Sets the object id.\r\n * \r\n * @param objectId the new object id\r\n */\r\n public void setObjectId(String objectId);\r\n\r\n /**\r\n * Returns the endpoint of the resource\r\n * \r\n * @return the endpoint\r\n */\r\n public String getEndpointId();\r\n\r\n /**\r\n * Sets the endpoint of the resource\r\n * \r\n * @param endpointId String\r\n */\r\n public void setEndpointId(String endpointId);\r\n \r\n /**\r\n * Gets the name.\r\n * \r\n * @return the name\r\n */\r\n public String getName();\r\n \r\n /**\r\n * Sets the name.\r\n * \r\n * @param name the new name\r\n */\r\n public void setName(String name);\r\n \r\n /**\r\n * Gets the metadata for this resource. If there is no metadata\r\n * for this resource, null will be returned.\r\n * \r\n * @return the metadata or null\r\n */\r\n public ResourceContent getMetadata() throws IOException;\r\n \r\n /**\r\n * Gets the content for this resource. If there is no content\r\n * for this resource, null will be returned.\r\n * \r\n * @return the content or null.\r\n */\r\n public ResourceContent getContent() throws IOException;\r\n \r\n /**\r\n * Gets the metadata url. If there is no metadata url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the metadata url or null.\r\n */\r\n public String getMetadataURL();\r\n\r\n /**\r\n * Gets the content url. If there is no content url for this\r\n * resource, null will be returned.\r\n * \r\n * @return the content url\r\n */\r\n public String getContentURL();\r\n \r\n /**\r\n * Gets the object type id.\r\n * \r\n * @return the object type id\r\n */\r\n public String getObjectTypeId();\r\n \r\n /**\r\n * Checks if the resource is a container.\r\n * \r\n * @return true, if is container\r\n */\r\n public boolean isContainer(); \r\n}",
"public abstract T getCreatedResource();",
"Resource getResource() {\n\t\treturn resource;\n\t}",
"void filterRead(ServerContext context, ReadRequest request, ResultHandler<Resource> handler,\n RequestHandler next);",
"public int getContents( Resource.Type type );",
"protected abstract InputStream getStream(String resource);",
"public IResource getResource();",
"public Object makeResource();",
"Resource createResource();",
"public interface ResourceAdapter {\n\n public enum Item {\n INPUT_SAME_AS_OUTPUT_ERROR,\n AUTO_KEY_SELECTION_ERROR,\n LOADING_CERTIFICATE_AND_KEY,\n PARSING_CENTRAL_DIRECTORY,\n GENERATING_MANIFEST,\n GENERATING_SIGNATURE_FILE,\n GENERATING_SIGNATURE_BLOCK,\n COPYING_ZIP_ENTRY\n };\n\n public String getString( Item item, Object... args);\n}",
"public interface ResourceDefinition\n{\n\n\t/**\n\t * Get the native path in the repository for the resource\n\t * \n\t * @return\n\t */\n\tString getRepositoryPath();\n\n\t/**\n\t * Get the external path of the passed in path releative to this resource\n\t * \n\t * @param path\n\t * @return\n\t */\n\tString getExternalPath(String path);\n\n\t/**\n\t * Get the repository path, relative to this resource\n\t * \n\t * @param name\n\t * @return\n\t */\n\tString getRepositoryPath(String name);\n\n\t/**\n\t * Does the path represent a resource that is private for the current\n\t * request This may relate to a logged in user or context. This will control\n\t * the caching headers in the http response.\n\t * \n\t * @return\n\t */\n\tboolean isPrivate();\n\n\t/**\n\t * @return\n\t */\n\tString getFunctionDefinition();\n\n\t/**\n\t * @return\n\t */\n\tint getDepth();\n\n}",
"ResourceType getResource();",
"public Resource getTargetResource() {\n Resource target = (Resource) getResource();\n edu.hkust.clap.monitor.Monitor.loopBegin(626);\nwhile (target instanceof ResourceFrame) { \nedu.hkust.clap.monitor.Monitor.loopInc(626);\n{\n target = ((ResourceFrame) target).getResource();\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(626);\n\n return target;\n }",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"@Override\n\tprotected Object handleGetObject(String key) {\n\t\treturn _resourceBundle.getObject(key);\n\t}",
"Read createRead();",
"protected abstract Object read ();",
"protected abstract T getBlankResource();",
"private JPPFResourceWrapper loadResourceData0(Map<String, Object> map, boolean asResource) throws Exception\n\t{\n\t\tif (debugEnabled) log.debug(\"loading remote definition for resource [\" + map.get(\"name\") + \"], requestUuid = \" + requestUuid);\n\t\tJPPFResourceWrapper resource = loadRemoteData(map, false);\n\t\tif (debugEnabled) log.debug(\"remote definition for resource [\" + map.get(\"name\") + \"] \"+ (resource.getDefinition()==null ? \"not \" : \"\") + \"found\");\n\t\treturn resource;\n\t}",
"@Override\n\tpublic void read() {\n\n\t}",
"public interface Resource {\n InputStream getInputStream() throws Exception;\n}",
"public interface IResource {\n\n\t/**\n\t * An optional attribute that identifies the Resource-element.\n\t */\n\tpublic URI getId();\n\n\tpublic boolean setId(URI id);\n\n\t/**\n\t * An optional attribute. If present, it provides a relative URI template for the identifier of the resource. The\n\t * resource's base URI is given by the Resource-element's parent Resource- or Resources-element. The value of the\n\t * path-attribute may be static or may contain embedded template parameters.\n\t */\n\tpublic String getPath();\n\n\tpublic boolean setPath(String path);\n\n\t/**\n\t * An optional attribute whose type is a space-separated list of URIs. Each value in the list identifies a\n\t * ResourceType-element that defines a set of methods supported by the resource.\n\t */\n\tpublic List<URI> getType();\n\n\tpublic boolean setType(List<URI> type);\n\n\tpublic boolean addType(URI type);\n\n\t/**\n\t * Defines the media type for the query component of the resourve URI. Defaults to\n\t * 'application/x-www-form-urlencoded' if not specified which results in query strings being formatted as specified.\n\t */\n\tpublic String getQueryType();\n\n\tpublic boolean setQueryType(String queryType);\n\n\t/**\n\t * A Resource-element contains zero or more Doc-elements.\n\t */\n\tpublic List<IDoc> getDocs();\n\n\tpublic boolean addDoc(IDoc doc);\n\n\t/**\n\t * A Resource-element contains zero or more Param-elements with one of the following values for its style-attriute:\n\t * template, matrix, query, header.\n\t */\n\tpublic List<IParam> getParams();\n\n\tpublic boolean addParam(IParam param);\n\n\t/**\n\t * A Resource-element contains zero or more Method-elements, each of which describes the input to and output from an\n\t * HTTP protocol method that can be applied to the resource. Such locally-defined methods are added to any methods\n\t * included in ResourceType-elements referred to using the type-attribute.\n\t */\n\tpublic List<IMethod> getMethods();\n\n\tpublic boolean addMethod(IMethod method);\n\n\t/**\n\t * A Resource-element contains zero or more Resource-elements that describe sub-resources. Such sub-resources\n\t * inherit matrix and template parameters from the parent resource since their URI is relative to that of the parent\n\t * resource but they do not inherit query or header parameters specified globally for the parent resource.\n\t */\n\tpublic List<IResource> getResources();\n\n\tpublic boolean addResource(IResource resource);\n\n\tpublic String toString();\n\n}",
"public int getResource() throws java.rmi.RemoteException;",
"DrbdResource getDrbdResource() {\n return (DrbdResource) getResource();\n }",
"private void readObject() {}",
"private void readObject() {}",
"private void readObject() {}",
"void handleNext(ResourceReference reference) throws ResourceReferenceHandlerException;",
"protected Resource getResource() {\n return resource;\n }",
"ObjectResource createObjectResource();",
"private static String p_readFromResource(String path) {\n StringBuffer content = new StringBuffer();\n\n InputStream istream = NamedTemplate.class.getResourceAsStream(path);\n\n if (istream != null) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(istream));\n\n try {\n String line = reader.readLine();\n while (line != null) {\n content.append(line).append(\"\\n\");\n\n line = reader.readLine();\n }\n } catch (IOException e) {\n logger.error(\"NamedTemplate: unable to read template from \" + path, e);\n }\n } else {\n return null;\n }\n\n return content.toString();\n }",
"@Override\r\n\tpublic void read() {\n\r\n\t}",
"com.yandex.ydb.rate_limiter.Resource getResource();",
"public interface ResourceManager extends RemoteService{\n\n /**\n * This method returns a list of the resources.\n *\n * @return This list of resources.\n * @throws ResourcesException\n */\n public List<ResourceBase> listTypes() throws ResourceException;\n}",
"InformationResource createInformationResource();",
"public Resource getResource(){\n return res;\n }",
"protected IResource getResource() {\r\n \t\tIEditorInput input = fTextEditor.getEditorInput();\r\n \t\treturn (IResource) ((IAdaptable) input).getAdapter(IResource.class);\r\n \t}",
"private Resource() {}",
"public AbstractResource resource()\r\n {\r\n\t return this.resource_state;\r\n }",
"public interface IResource {\n\t// TODO: Have priorities for resources either here or implemented in IResourceView\n\n\n\tpublic String getName();\n\t\n\tpublic IUniformLocation getLocation(); // public IStorageLocation getLocation() ?\n\t\n\tpublic IResourceType getType();\n}",
"List<Resource> resources();",
"ResourceAPI createResourceAPI();",
"public interface IWrfResource extends IAdaptableObject {\r\n\r\n /**\r\n * Returns the path of this resource\r\n * \r\n * @return the path of this resource\r\n */\r\n Path getPath();\r\n\r\n /**\r\n * Returns the provider managing this resource node\r\n * \r\n * @return the provider managing this resource node\r\n */\r\n IWrfResourceProvider getProvider();\r\n\r\n /**\r\n * This method is used to notify all registered/loaded adapters of this\r\n * resource.\r\n * \r\n * @param event the event used to notify adapters.\r\n * @see IWrfResourceAdapter#handleEvent(Object)\r\n */\r\n void notifyAdapters(Object event);\r\n\r\n /**\r\n * Removes this resource from the storage.\r\n */\r\n void remove();\r\n\r\n}",
"private String getResourcePath() {\n\t\tString reqResource = getRequest().getResourceRef().getPath();\n\t\treqResource = actualPath(reqResource, 1);\n\t\tLOGGERS.info(\"reqResourcePath---->\" + reqResource);\n\t\treturn reqResource;\n\t}",
"protected abstract T createTestResource();",
"@Override\r\n\tpublic void updateResourceInformation() {\n\t}",
"public ResourceVO getResource() {\n\treturn resource;\n}",
"protected abstract ID getResourceId(T resource);",
"@Override\n\tpublic void updateResourceInformation() {\n\t}",
"public interface Resource {\r\n\r\n String getName();\r\n\r\n void setName(String newName);\r\n\r\n boolean isFixedResource();\r\n}",
"private static String readResource(String resource) {\n String sresults = \"\";\n String sparql = \"SELECT DISTINCT *\\n\"\n + \"WHERE {\\n\"\n + \" GRAPH ?g {\\n\"\n + \" <\" + resource + \"> ?p ?o\\n\"\n + \" }\\n\"\n + \"}\";\n\n Query query = QueryFactory.create(sparql);\n String endpoint = \"http://localhost:3030/RDFChess/query\";\n QueryExecution qexec = QueryExecutionFactory.sparqlService(endpoint, query);\n// QueryExecution qexec = QueryExecutionFactory.create(query, model);\n ResultSet results = qexec.execSelect();\n for (; results.hasNext();) {\n QuerySolution soln = results.nextSolution();\n Resource p = soln.getResource(\"p\"); // Get a result variable by name.\n RDFNode o = soln.get(\"o\"); // Get a result variable - must be a resource\n String so = \"\";\n if (o.isLiteral()) {\n so = \"\\\"\" + o.toString() + \"\\\"\";\n } else {\n so = \"<\" + o.toString() + \">\";\n }\n\n sresults += \"<\" + resource + \"> <\" + p.toString() + \"> \" + so + \" . \\n\";\n }\n\n return sresults;\n }",
"public ResourceContent getContent() throws IOException;",
"public synchronized Object getResource(String resource)\r\n throws IllegalArgumentException\r\n {\r\n // ensure resource is well formed\r\n if (!isValidResource(resource))\r\n {\r\n throw new IllegalArgumentException(\"Resource '\"+resource+\r\n \"' is illformed\");\r\n }\r\n\r\n Object retval = null;\r\n\r\n Node node = findNode(root, ensureWellFormed(resource), \"\");\r\n\r\n // resource found\r\n if (node != null)\r\n {\r\n String data = node.getData();\r\n if (containsSubString(data, DELIMITER))\r\n retval = getValuesAsList(data);\r\n else\r\n retval = data;\r\n }\r\n\r\n // change returned resources of \"\" to the null reference\r\n if ((retval != null) && retval.equals(\"\"))\r\n retval = null;\r\n\r\n if (DEBUG && (retval == null))\r\n {\r\n System.err.println(\"ResourceManager.getResource(\\\"\" + resource +\r\n \"\\\") returned null\");\r\n }\r\n\r\n // return either the string, or list stored in the node\r\n return retval;\r\n }",
"protected abstract T getResource(ItemVariant currentVariant);",
"private AdvertServiceEntryResource getResource() throws RemoteException\n {\n\tObject resource = null;\n\ttry\n\t {\n\t\tresource = ResourceContext.getResourceContext().getResource();\n\t }\n\tcatch(NoSuchResourceException e)\n\t {\n\t\tthrow new RemoteException(\"Specified resource does not exist\", e);\n\t }\n\tcatch(ResourceContextException e)\n\t {\n\t\tthrow new RemoteException(\"Error during resource lookup\", e);\n\t }\n\tcatch(Exception e)\n\t {\n\t\tthrow new RemoteException(\"\", e);\n\t }\n\t\n\tAdvertServiceEntryResource entryResource = (AdvertServiceEntryResource) resource;\n\treturn entryResource;\n }",
"public Resource getTargetResource();",
"@Override\r\n\tpublic void read(Object id) {\n\t\t\r\n\t}",
"private void readObject() {\n }",
"protected void resourceSet(String resource)\r\n {\r\n // nothing to do\r\n }",
"public ResourceInfo getResource() {\n\t\treturn resource;\n\t}",
"public Resource storeResource( Resource r );",
"String encodeResourceToString(IBaseResource theResource) throws DataFormatException;",
"Service_Resource createService_Resource();",
"protected <K extends Resource> K doGetResource(String uri, Class<K> resourceType) {\n\t\tif (negCache.containsKey(uri)) {\n\t\t\t// System.out.println(\"in negative cache \" + uri);\n\t\t\treturn null;\n\t\t}\n\t\tString objectUri = uri;\n\t\tif (uri.startsWith(\"repo:\")) { //$NON-NLS-1$\n\t\t\tobjectUri = uri.substring(5);\n\t\t\tK r = getFromParent(objectUri, resourceType);\n\t\t\tif (r != null)\n\t\t\t\treturn addToCache(r, uri);\n\t\t}\n\t\tif (c != null)\n\t\t\ttry {\n\t\t\t\tIProgressMonitor monitor = new NullProgressMonitor();\n\t\t\t\t// System.out.println(\"get from server \" + uri);\n\t\t\t\tif (objectUri.contains(\"/\")) { //$NON-NLS-1$\n\t\t\t\t\t// Locate the resource inside the repository...\n\t\t\t\t\tResourceDescriptor r = new ResourceDescriptor();\n\t\t\t\t\tr.setUriString(objectUri);\n\t\t\t\t\tr = c.get(monitor, r, null);\n\t\t\t\t\tif (r.getIsReference())\n\t\t\t\t\t\tr = ReferenceResolver.resolveReference(c, r, null);\n\t\t\t\t\tif (rpath == null)\n\t\t\t\t\t\tinitRPath();\n\t\t\t\t\tString fpath = Misc.nvl(rpath);\n\t\t\t\t\tif (!objectUri.startsWith(\"/\")) //$NON-NLS-1$\n\t\t\t\t\t\tfpath += \"/\"; //$NON-NLS-1$\n\t\t\t\t\tfpath += objectUri;\n\t\t\t\t\tFile f = new File(fpath);\n\t\t\t\t\tif (f.getParentFile() != null)\n\t\t\t\t\t\tf.getParentFile().mkdirs();\n\t\t\t\t\tif (f.createNewFile()) {\n\t\t\t\t\t\tif (!r.getIsReference() && r.getHasData() && r.getData() != null) {\n\t\t\t\t\t\t\torg.apache.commons.io.FileUtils.writeByteArrayToFile(f, r.getData());\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\tc.get(monitor, r, f);\n\t\t\t\t\t}\n\t\t\t\t\tfileTypes.put(f, r.getWsType());\n\t\t\t\t} else if (runitUri != null) {\n\t\t\t\t\t// Locate the resource inside the report unit, if any...\n\t\t\t\t\tif (reportUnitResources == null) {\n\t\t\t\t\t\tResourceDescriptor rd = new ResourceDescriptor();\n\t\t\t\t\t\trd.setWsType(ResourceDescriptor.TYPE_REPORTUNIT);\n\t\t\t\t\t\trd.setUriString(runitUri);\n\t\t\t\t\t\trd = c.get(monitor, rd, null);\n\t\t\t\t\t\treportUnitResources = c.list(monitor, rd);\n\t\t\t\t\t\tif (reportUnitResources == null)\n\t\t\t\t\t\t\treportUnitResources = new ArrayList<ResourceDescriptor>();\n\t\t\t\t\t}\n\n\t\t\t\t\t// find the resource...\n\t\t\t\t\tfor (ResourceDescriptor r : reportUnitResources) {\n\t\t\t\t\t\tif (r.getName() == null || !r.getName().equals(objectUri))\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tif (r.getIsReference())\n\t\t\t\t\t\t\tr = ReferenceResolver.resolveReference(c, r, monitor);\n\t\t\t\t\t\tif (ResourceFactory.isFileResourceType(r)) {\n\t\t\t\t\t\t\tIFile file = (IFile) jConfig.get(FileUtils.KEY_FILE);\n\n\t\t\t\t\t\t\tFile fp = null;\n\t\t\t\t\t\t\tIContainer pf = file.getParent();\n\t\t\t\t\t\t\tif (pf.getRawLocation() != null)\n\t\t\t\t\t\t\t\tfp = pf.getRawLocation().toFile();\n\t\t\t\t\t\t\telse if (pf.getLocationURI() != null)\n\t\t\t\t\t\t\t\tfp = new File(pf.getLocationURI());\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\treturn addToCache(null, uri);\n\n\t\t\t\t\t\t\tFile f = new File(fp, objectUri);\n\t\t\t\t\t\t\tif (f.getParentFile() != null && !f.getParentFile().mkdirs() && f.createNewFile())\n\t\t\t\t\t\t\t\tc.get(monitor, r, f);\n\t\t\t\t\t\t\tfileTypes.put(f, r.getWsType());\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trefresh();\n\t\t\t\tString u = uri;\n\t\t\t\tif (u.startsWith(\"repo:\"))\n\t\t\t\t\tu = u.substring(5);\n\t\t\t\treturn addToCache(getFromParent(u, resourceType), uri);\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\treturn addToCache(null, uri);\n\t}",
"static String readResource(String name) throws IOException {\n InputStream is = Server.class.getResourceAsStream(name);\n String value = new Scanner(is).useDelimiter(\"\\\\A\").next();\n is.close();\n return value;\n }",
"public void ownRead();",
"@Override\n \tpublic Representation getResource() throws Exception {\n \t\tJsonRepresentation result = null;\n \t\t// Rcupre l'identifiant unique de la ressource demande.\n \t\tString interId = (String) this.getRequestAttributes().get(\"interId\");\n \t\tString srcId = (String) this.getRequestAttributes().get(\"sourceId\");\n \t\tSystem.out.println(srcId);\n \t\t// Rcupration des sources de l'intervention\n \t\tList<Source> sources = Interventions.getInstance().getIntervention(interId).getSources();\n \n \t\tSource source = null;\n \t\t\n \t\t// Si on demande un source prcis\n \t\tif (srcId != null) {\n \t\t\t// Recherche du source demand\n \t\t\tfor (int i = 0; i < sources.size(); i++) {\n \t\t\t\tif (sources.get(i).getUniqueID().equals(srcId)) {\n \t\t\t\t\tsource = sources.get(i);\n \t\t\t\t}\n \t\t\t}\n \t\t\t// Si le source n'est pas trouv\n \t\t\tif (source == null) {\n \t\t\t\tresult = null;\n \t\t\t\tgetResponse().setStatus(Status.CLIENT_ERROR_NOT_ACCEPTABLE);\n \t\t\t} else {\n \t\t\t\tresult = new JsonRepresentation(source.toJSON());\n \t\t\t}\n \t\t// Si on veut tous les sources\n \t\t} else if (srcId == null) {\n \t\t\t\n \t\t\tJSONArray jsonAr = new JSONArray(); //Cration d'une liste Json\n \t\t\tfor(int i=0; i< sources.size();i++){\n\t\t\t\tjsonAr.put(sources.get(i).toJSON()); // On ajoute un jsonObject contenant le source dans le jsonArray\n \t\t\t}\n \t\t\t\n \t\t\tresult = new JsonRepresentation(jsonAr); // On cre la reprsentation de la liste\n \t\t}\n \n \t\t// Retourne la reprsentation, le code status indique au client si elle est valide\n \t\treturn result;\n \t}",
"static byte[] readResource(String name) throws IOException {\n byte[] buf = new byte[1024];\n\n InputStream in = Main.class.getResourceAsStream(name);\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n int n;\n while ((n = in.read(buf)) > 0) {\n bout.write(buf, 0, n);\n }\n try { in.close(); } catch (Exception ignored) { } \n\n return bout.toByteArray();\n }",
"public Resource getResource(Request request);",
"String getResource();",
"String getResourceName();",
"@Override\n\tpublic Resource loadAsResource(String keyName) {\n\t\treturn null;\n\t}",
"@Override\n protected URL\n findResource\n (\n String rname\n )\n {\n LogMgr.getInstance().log\n (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n \"Resource name (\" + rname + \")\");\n\n if(pResources != null) {\n if(pResources.containsKey(rname)) {\n\tPath resourcePath = new Path(pResourceRootPath, rname);\n\n\tLogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource path (\" + resourcePath + \")\");\n\n\tFile resourceFile = resourcePath.toFile();\n\n\tLogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource file (\" + resourceFile + \") exists (\" + resourceFile.exists() + \")\");\n\n\tif(!resourceFile.exists())\n\t return null;\n\n\tURI resourceURI = resourceFile.toURI();\n\n\tLogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource URI (\" + resourceURI + \")\");\n\n\ttry {\n\t URL resourceURL = resourceURI.toURL();\n\n\t LogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Finest, \n\t \"Resource URL (\" + resourceURL + \")\");\n\n\t return resourceURL;\n\t}\n\tcatch(MalformedURLException ex) {\n\t LogMgr.getInstance().log\n\t (LogMgr.Kind.Ops, LogMgr.Level.Warning, \n\t \"Error constructing URL from (\" + rname + \")!\");\n\t}\n }\n }\n\n return null;\n }",
"@Override\n protected boolean isResourceConfigSupported() {\n return true;\n }",
"Device_Resource createDevice_Resource();",
"public interface IPropertiesHandler {\n\n /**\n * <p>\n * Returns property value from property value\n * </p>\n * @param filename name of resource bundle\n * @param lang localization\n * @param key property key\n * @return value for specific key and localization or only key if no value was found\n */\n String getPropertyValue(String filename, String lang, String key);\n}",
"public String getResourceName();",
"public interface StringMapResource<V> extends SharedResourceObject, Iterable<String> {\n /**\n * Return the mapped value V for a given key.\n * \n * @param key to fetch the value V for\n * @return the value V mapped to the key\n */\n public V get(String key);\n\n /**\n * Check if the given key exists.\n * \n * @param key to check\n * @return <code>true</code> if the key is known to the resource\n */\n public boolean containsKey(String key);\n \n /**\n * Return the number of keys.\n * \n * @return the number of keys known by this resource.\n */\n public int size();\n\n /**\n * Fetch an iterator for the keys.\n * \n * @return a key iterator\n */\n public Iterator<String> iterator();\n\n /**\n * Get the name of this resource.\n * \n * @return resource name\n */\n public String getResourceName();\n\n /**\n * Get the URL or URI of this resource.\n * \n * @return the resource URL string or <code>null</code>\n */\n public String getUrl();\n}",
"@Override\n\tpublic void readData() {\n\t\t\n\t}",
"protected abstract String getResourcePath();",
"private JPPFResourceWrapper loadResourceData(Map<String, Object> map, boolean asResource) throws ClassNotFoundException\n\t{\n\t\tJPPFResourceWrapper resource = null;\n\t\ttry\n\t\t{\n\t\t\tif (debugEnabled) log.debug(\"loading remote definition for resource [\" + map.get(\"name\") + \"]\");\n\t\t\tresource = loadResourceData0(map, asResource);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tif (debugEnabled) log.debug(\"connection with class server ended, re-initializing\");\n\t\t\tinit();\n\t\t\ttry\n\t\t\t{\n\t\t\t\tresource = loadResourceData0(map, asResource);\n\t\t\t}\n\t\t\tcatch(ClassNotFoundException ex)\n\t\t\t{\n\t\t\t\tthrow ex;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tif (debugEnabled) log.debug(e.getMessage(), e);\n\t\t\t}\n\t\t}\n\t\tcatch(ClassNotFoundException e)\n\t\t{\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tif (debugEnabled) log.debug(e.getMessage(), e);\n\t\t}\n\t\treturn resource;\n\t}",
"private ObjectNode ProcessUri(Resource resource){\n //handle uri\n String uri = resource.getURI();\n\n ObjectNode json_object = mapper.createObjectNode();\n\n json_object.put(ArangoAttributes.TYPE, RdfObjectTypes.IRI);\n json_object.put(ArangoAttributes.VALUE, uri);\n\n return json_object;\n }",
"@Override\n\t\tpublic <T extends IBaseResource> T load(Class<T> theType, IIdType theId) throws ResourceNotFoundException {\n\t\t\tif (\"ValueSet\".equals(theType.getSimpleName())) {\n\t\t\t\tIFhirResourceDao<ValueSet> dao = getDao(ValueSet.class);\n\t\t\t\tValueSet in = dao.read(theId, null);\n\t\t\t\tString encoded = getContext().newJsonParser().encodeResourceToString(in);\n\n\t\t\t\t// TODO: this is temporary until structures-dstu2 catches up to structures-hl7org.dstu2\n\t\t\t\tencoded = encoded.replace(\"\\\"define\\\"\", \"\\\"codeSystem\\\"\");\n\n\t\t\t\treturn myRefImplCtx.newJsonParser().parseResource(theType, encoded);\n\t\t\t} else if (\"Questionnaire\".equals(theType.getSimpleName())) {\n\t\t\t\tIFhirResourceDao<Questionnaire> dao = getDao(Questionnaire.class);\n\t\t\t\tQuestionnaire vs = dao.read(theId, null);\n\t\t\t\treturn myRefImplCtx.newJsonParser().parseResource(theType, getContext().newJsonParser().encodeResourceToString(vs));\n\t\t\t} else {\n\t\t\t\t// Should not happen, validator will only ask for these two\n\t\t\t\tthrow new IllegalStateException(\"Unexpected request to load resource of type \" + theType);\n\t\t\t}\n\n\t\t}",
"String getResourceID();",
"public interface ResourceBase {\n\tString getName();\n\tString getLocation();\n\t/** Path equals location*/\n\tString getPath();\n\tResourceBase getParent();\n\tList<ResourceBase> getSubResources();\n\t\n\t/** TODO: May be interface extension if resource structure cannot be changed via the interface*/\n\tvoid addElement(String newSubResourceName, ResourceBase newSubResource);\n\tResourceBase removeElement(String subResourceName);\n}",
"private void readItems() {\n }",
"public Resource getResource() {\n return resource;\n }",
"protected abstract JPPFResourceWrapper loadRemoteData(Map<String, Object> map, boolean asResource) throws Exception;",
"@Test\n public void invokePathHandlerOnExistingResource2() {\n ctx.param(ParamNames.PATH, \"foo/bar.txt\");\n pathHandler.handle(ctx);\n ByteArrayOutputStream baos = (ByteArrayOutputStream)resp.outputStream();\n String s = new String(baos.toByteArray());\n ceq(\"foo/bar.txt\", s);\n }",
"public abstract ResourceDataSet loadResources() ;",
"public interface ResourceMapper {\n\n /**\n * Delete one record by primary key.<br>\n * \n * @param uuid Primary key\n * @return The row number just inserted into the database\n * @since SDNO 0.5\n */\n int deleteByPrimaryKey(String uuid);\n\n /**\n * Add one record including all fields.<br>\n * \n * @param record New record\n * @return The row number just inserted into the database\n * @since SDNO 0.5\n */\n int insert(ResourcePojo record);\n\n /**\n * Add specified field, only for non empty fields.<br>\n * \n * @param record New record\n * @return The row number just inserted into the database\n * @since SDNO 0.5\n */\n int insertSelective(ResourcePojo record);\n\n /**\n * Query resource data by primary key.<br>\n * \n * @param bktName Bucket name\n * @return Resource data\n * @since SDNO 0.5\n */\n List<ResourcePojo> selectByBktName(String bktName);\n\n /**\n * Update specified field of resource data by primary key, only for non empty fields.<br>\n * \n * @param record Resource data record\n * @return The row number just updated in the database\n * @since SDNO 0.5\n */\n int updateByPrimaryKeySelective(ResourcePojo record);\n\n /**\n * Update one record by primary key.<br>\n * \n * @param record Resource data record\n * @return The row number just updated in the database\n * @since SDNO 0.5\n */\n int updateByPrimaryKey(ResourcePojo record);\n\n /**\n * Query resource collection by bucket name and model name.<br>\n * \n * @param bktName Bucket name\n * @param modelName Model name\n * @return Resource collection\n * @since SDNO 0.5\n */\n List<ResourcePojo> selectByBktAndModelName(@Param(\"bktName\") String bktName, @Param(\"modelName\") String modelName);\n}",
"@Override\r\n public void loadResources() {\n\r\n }",
"public void testGetResource2() throws Exception {\n if(DEBUG_FLAG) System.out.println(\"entered testGetResource2\"); \n Ivorn ivorn = new Ivorn(\"ivo://org.test/org.astrogrid.registry.RegistryService\");\n Document doc = rs.getResourceByIdentifier(ivorn);\n assertNotNull(doc);\n if(DEBUG_FLAG) System.out.println(\"received in junit test = \" + XMLUtils.DocumentToString(doc));\n System.out.println(\"exiting testGetResource2\");\n }",
"public interface ResourceService {\n /**\n * 按主键查找\n **/\n Resource findResourceById(Long id);\n\n /**\n * 按参数分页查找\n **/\n Page<Resource> findResourcePage(PageContext pageContext);\n\n /**\n * 按参数查找对象\n **/\n List<Resource> findResourceByParams(Map<String, Object> params);\n\n /**\n * 保存对象,新增或修改由主键是否为空确定\n **/\n void saveResource(Resource resource);\n\n /**\n * 按主键删除\n **/\n int deleteResourceById(Long id);\n\n List<Resource> findFunctionByUser(String username);\n\n Set<String> findFunctionCodeByUser(String username);\n\n List<Resource> findAllResources();\n\n List<Resource> buildFunctionTree(List<Resource> functions);\n}",
"@Override\n public InputStream read()\n throws EFapsException\n {\n StoreResourceInputStream in = null;\n try {\n final FileObject file = this.manager.resolveFile(this.storeFileName + VFSStoreResource.EXTENSION_NORMAL);\n if (!file.isReadable()) {\n VFSStoreResource.LOG.error(\"file for \" + this.storeFileName + \" not readable\");\n throw new EFapsException(VFSStoreResource.class, \"#####file not readable\");\n }\n in = new VFSStoreResourceInputStream(this, file);\n } catch (final FileSystemException e) {\n VFSStoreResource.LOG.error(\"read of \" + this.storeFileName + \" failed\", e);\n throw new EFapsException(VFSStoreResource.class, \"read.Throwable\", e);\n } catch (final IOException e) {\n VFSStoreResource.LOG.error(\"read of \" + this.storeFileName + \" failed\", e);\n throw new EFapsException(VFSStoreResource.class, \"read.Throwable\", e);\n }\n return in;\n }"
] | [
"0.6279344",
"0.6253881",
"0.6197031",
"0.6066555",
"0.6035578",
"0.59957135",
"0.5939492",
"0.58961153",
"0.588768",
"0.58722055",
"0.5866129",
"0.5821842",
"0.5820724",
"0.58138645",
"0.5807809",
"0.58056855",
"0.57685006",
"0.5755887",
"0.57374793",
"0.57355314",
"0.5725855",
"0.57226515",
"0.56995064",
"0.5692776",
"0.5687473",
"0.56794477",
"0.5679409",
"0.5676485",
"0.56753033",
"0.5666206",
"0.5663799",
"0.5663799",
"0.5663799",
"0.56562483",
"0.56288093",
"0.562683",
"0.5621488",
"0.5593799",
"0.55868554",
"0.558508",
"0.55815214",
"0.55796325",
"0.5576471",
"0.555957",
"0.55416995",
"0.55331755",
"0.552693",
"0.5513887",
"0.5512728",
"0.55097616",
"0.54983044",
"0.54958606",
"0.54939073",
"0.54846",
"0.5484246",
"0.54763806",
"0.546572",
"0.5463484",
"0.54590225",
"0.5455613",
"0.54466",
"0.54463905",
"0.54458064",
"0.5436856",
"0.5434611",
"0.54260206",
"0.5419844",
"0.5413629",
"0.53994054",
"0.53971875",
"0.5385594",
"0.5378342",
"0.53752035",
"0.5375146",
"0.53696185",
"0.53661305",
"0.53645915",
"0.53454113",
"0.53342295",
"0.5331947",
"0.5329187",
"0.5328781",
"0.5327801",
"0.5324918",
"0.5322155",
"0.5318501",
"0.53176",
"0.53161156",
"0.5309381",
"0.5309368",
"0.53044313",
"0.52973247",
"0.52959377",
"0.52944195",
"0.5283217",
"0.528175",
"0.5271272",
"0.5266907",
"0.5266291",
"0.52635896",
"0.5261763"
] | 0.0 | -1 |
Write your code here | public static List<Integer> reverseArray(List<Integer> a) {
int s=a.size();
List<Integer> list=new ArrayList<Integer>(s);
for(int i=s-1;i>=0;i--)
{
list.add(a.get(i));
}
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void generateCode()\n {\n \n }",
"public void logic(){\r\n\r\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"void pramitiTechTutorials() {\n\t\n}",
"public void ganar() {\n // TODO implement here\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"CD withCode();",
"public void mo38117a() {\n }",
"private stendhal() {\n\t}",
"public void mo4359a() {\n }",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"public void genCode(CodeFile code) {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"Programming(){\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void furyo ()\t{\n }",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public void working()\n {\n \n \n }",
"@Override\r\n\t\tpublic void doDomething() {\r\n\t\t\tSystem.out.println(\"I am here\");\r\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public void baocun() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}",
"@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"private void strin() {\n\n\t}",
"public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}",
"private void kk12() {\n\n\t}",
"public void mo55254a() {\n }",
"public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}",
"public void mo9848a() {\n }",
"protected void mo6255a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void themesa()\n {\n \n \n \n \n }",
"private void yy() {\n\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"public void perder() {\n // TODO implement here\n }",
"void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }",
"public static void main(String[] args) {\n\t// write your code here\n }",
"private static void oneUserExample()\t{\n\t}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"public void mo3376r() {\n }",
"public void mo97908d() {\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"public void cocinar(){\n\n }",
"private void getStatus() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public void mo5382o() {\n }",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"private static void ThridUmpireReview() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected void execute() {\n\t\t\n\t}",
"@Override\n public void execute() {\n \n \n }",
"public static void main(String args[]) throws Exception\n {\n \n \n \n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public void mo21793R() {\n }",
"public void mo12930a() {\n }",
"private void test() {\n\n\t}",
"public void mo6081a() {\n }",
"static void feladat5() {\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tvoid output() {\n\t\t\n\t}",
"public void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"void berechneFlaeche() {\n\t}",
"public void mo3749d() {\n }",
"@Override\n\tpublic void orgasm() {\n\t\t\n\t}",
"public void mo21791P() {\n }",
"public final void cpp() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"void kiemTraThangHopLi() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"public void skystonePos5() {\n }",
"@Override\n protected void execute() {\n \n }",
"@Override\n\tprotected void postRun() {\n\n\t}",
"@Override\n\tpublic void HowtoEat() {\n\t\tSystem.out.println(\"Fırında Ye!!\");\n\t}",
"@Override\n protected void codeGenMain(DecacCompiler compiler, Registres regs, Pile p) {\n }",
"@Override\n\tpublic void view() {\n\t\t\n\t}"
] | [
"0.6385292",
"0.62825674",
"0.6094859",
"0.59705144",
"0.59174407",
"0.5879631",
"0.58751583",
"0.58699447",
"0.5869017",
"0.58553624",
"0.5826625",
"0.5825323",
"0.58233553",
"0.577183",
"0.576982",
"0.5769503",
"0.57691693",
"0.5748044",
"0.57379705",
"0.573767",
"0.57285726",
"0.57275313",
"0.5722168",
"0.5715661",
"0.5709839",
"0.5709839",
"0.5704307",
"0.5681891",
"0.5681891",
"0.5673934",
"0.5651873",
"0.56415623",
"0.5629833",
"0.56136686",
"0.560722",
"0.5603319",
"0.55986965",
"0.55838263",
"0.55780625",
"0.55713314",
"0.55659115",
"0.55621606",
"0.5556605",
"0.5549954",
"0.55463374",
"0.55463374",
"0.55463374",
"0.55463374",
"0.55463374",
"0.55463374",
"0.55463374",
"0.55281407",
"0.5525562",
"0.55151445",
"0.55151445",
"0.55058944",
"0.5503766",
"0.55010456",
"0.5500997",
"0.5495365",
"0.54874974",
"0.5482034",
"0.5477928",
"0.54772",
"0.5475188",
"0.5473774",
"0.54694617",
"0.54655695",
"0.54646754",
"0.5460583",
"0.54583234",
"0.54577816",
"0.5457681",
"0.54538816",
"0.5452503",
"0.54493356",
"0.54453313",
"0.5444872",
"0.5440357",
"0.54393566",
"0.54381615",
"0.5435557",
"0.54309005",
"0.5428512",
"0.54260683",
"0.5423332",
"0.5419551",
"0.5419505",
"0.5419252",
"0.54156613",
"0.5414246",
"0.54133856",
"0.5403345",
"0.5401036",
"0.5401036",
"0.5394768",
"0.53913885",
"0.5389031",
"0.5386461",
"0.5383817",
"0.5380636"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.